configure revision 44dda7b2
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXdmcp 1.1.0. 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 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || 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 548as_awk_strverscmp=' 549 # Use only awk features that work with 7th edition Unix awk (1978). 550 # My, what an old awk you have, Mr. Solaris! 551 END { 552 while (length(v1) && length(v2)) { 553 # Set d1 to be the next thing to compare from v1, and likewise for d2. 554 # Normally this is a single character, but if v1 and v2 contain digits, 555 # compare them as integers and fractions as strverscmp does. 556 if (v1 ~ /^[0-9]/ && v2 ~ /^[0-9]/) { 557 # Split v1 and v2 into their leading digit string components d1 and d2, 558 # and advance v1 and v2 past the leading digit strings. 559 for (len1 = 1; substr(v1, len1 + 1) ~ /^[0-9]/; len1++) continue 560 for (len2 = 1; substr(v2, len2 + 1) ~ /^[0-9]/; len2++) continue 561 d1 = substr(v1, 1, len1); v1 = substr(v1, len1 + 1) 562 d2 = substr(v2, 1, len2); v2 = substr(v2, len2 + 1) 563 if (d1 ~ /^0/) { 564 if (d2 ~ /^0/) { 565 # Compare two fractions. 566 while (d1 ~ /^0/ && d2 ~ /^0/) { 567 d1 = substr(d1, 2); len1-- 568 d2 = substr(d2, 2); len2-- 569 } 570 if (len1 != len2 && ! (len1 && len2 && substr(d1, 1, 1) == substr(d2, 1, 1))) { 571 # The two components differ in length, and the common prefix 572 # contains only leading zeros. Consider the longer to be less. 573 d1 = -len1 574 d2 = -len2 575 } else { 576 # Otherwise, compare as strings. 577 d1 = "x" d1 578 d2 = "x" d2 579 } 580 } else { 581 # A fraction is less than an integer. 582 exit 1 583 } 584 } else { 585 if (d2 ~ /^0/) { 586 # An integer is greater than a fraction. 587 exit 2 588 } else { 589 # Compare two integers. 590 d1 += 0 591 d2 += 0 592 } 593 } 594 } else { 595 # The normal case, without worrying about digits. 596 d1 = substr(v1, 1, 1); v1 = substr(v1, 2) 597 d2 = substr(v2, 1, 1); v2 = substr(v2, 2) 598 } 599 if (d1 < d2) exit 1 600 if (d1 > d2) exit 2 601 } 602 # Beware Solaris /usr/xgp4/bin/awk (at least through Solaris 10), 603 # which mishandles some comparisons of empty strings to integers. 604 if (length(v2)) exit 1 605 if (length(v1)) exit 2 606 } 607' 608SHELL=${CONFIG_SHELL-/bin/sh} 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='libXdmcp' 633PACKAGE_TARNAME='libXdmcp' 634PACKAGE_VERSION='1.1.0' 635PACKAGE_STRING='libXdmcp 1.1.0' 636PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 637PACKAGE_URL='' 638 639# Factoring default headers for most tests. 640ac_includes_default="\ 641#include <stdio.h> 642#ifdef HAVE_SYS_TYPES_H 643# include <sys/types.h> 644#endif 645#ifdef HAVE_SYS_STAT_H 646# include <sys/stat.h> 647#endif 648#ifdef STDC_HEADERS 649# include <stdlib.h> 650# include <stddef.h> 651#else 652# ifdef HAVE_STDLIB_H 653# include <stdlib.h> 654# endif 655#endif 656#ifdef HAVE_STRING_H 657# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 658# include <memory.h> 659# endif 660# include <string.h> 661#endif 662#ifdef HAVE_STRINGS_H 663# include <strings.h> 664#endif 665#ifdef HAVE_INTTYPES_H 666# include <inttypes.h> 667#endif 668#ifdef HAVE_STDINT_H 669# include <stdint.h> 670#endif 671#ifdef HAVE_UNISTD_H 672# include <unistd.h> 673#endif" 674 675ac_subst_vars='am__EXEEXT_FALSE 676am__EXEEXT_TRUE 677LTLIBOBJS 678LIBOBJS 679MAKE_LINT_LIB_FALSE 680MAKE_LINT_LIB_TRUE 681LINTLIB 682LINT_FALSE 683LINT_TRUE 684LINT_FLAGS 685LINT 686HASXDMAUTH_FALSE 687HASXDMAUTH_TRUE 688XDMCP_LIBS 689XDMCP_CFLAGS 690OTOOL64 691OTOOL 692LIPO 693NMEDIT 694DSYMUTIL 695RANLIB 696AR 697NM 698ac_ct_DUMPBIN 699DUMPBIN 700LD 701FGREP 702LIBTOOL 703OBJDUMP 704DLLTOOL 705AS 706LN_S 707HAVE_STYLESHEETS_FALSE 708HAVE_STYLESHEETS_TRUE 709XSL_STYLESHEET 710STYLESHEET_SRCDIR 711XORG_SGML_PATH 712HAVE_FOP_FALSE 713HAVE_FOP_TRUE 714FOP 715HAVE_XMLTO_FALSE 716HAVE_XMLTO_TRUE 717HAVE_XMLTO_TEXT_FALSE 718HAVE_XMLTO_TEXT_TRUE 719XMLTO 720ENABLE_DOCS_FALSE 721ENABLE_DOCS_TRUE 722AM_BACKSLASH 723AM_DEFAULT_VERBOSITY 724MAN_SUBSTS 725XORG_MAN_PAGE 726ADMIN_MAN_DIR 727DRIVER_MAN_DIR 728MISC_MAN_DIR 729FILE_MAN_DIR 730LIB_MAN_DIR 731APP_MAN_DIR 732ADMIN_MAN_SUFFIX 733DRIVER_MAN_SUFFIX 734MISC_MAN_SUFFIX 735FILE_MAN_SUFFIX 736LIB_MAN_SUFFIX 737APP_MAN_SUFFIX 738SED 739host_os 740host_vendor 741host_cpu 742host 743build_os 744build_vendor 745build_cpu 746build 747INSTALL_CMD 748PKG_CONFIG 749CHANGELOG_CMD 750CWARNFLAGS 751EGREP 752GREP 753CPP 754am__fastdepCC_FALSE 755am__fastdepCC_TRUE 756CCDEPMODE 757AMDEPBACKSLASH 758AMDEP_FALSE 759AMDEP_TRUE 760am__quote 761am__include 762DEPDIR 763OBJEXT 764EXEEXT 765ac_ct_CC 766CPPFLAGS 767LDFLAGS 768CFLAGS 769CC 770MAINT 771MAINTAINER_MODE_FALSE 772MAINTAINER_MODE_TRUE 773am__untar 774am__tar 775AMTAR 776am__leading_dot 777SET_MAKE 778AWK 779mkdir_p 780MKDIR_P 781INSTALL_STRIP_PROGRAM 782STRIP 783install_sh 784MAKEINFO 785AUTOHEADER 786AUTOMAKE 787AUTOCONF 788ACLOCAL 789VERSION 790PACKAGE 791CYGPATH_W 792am__isrc 793INSTALL_DATA 794INSTALL_SCRIPT 795INSTALL_PROGRAM 796target_alias 797host_alias 798build_alias 799LIBS 800ECHO_T 801ECHO_N 802ECHO_C 803DEFS 804mandir 805localedir 806libdir 807psdir 808pdfdir 809dvidir 810htmldir 811infodir 812docdir 813oldincludedir 814includedir 815localstatedir 816sharedstatedir 817sysconfdir 818datadir 819datarootdir 820libexecdir 821sbindir 822bindir 823program_transform_name 824prefix 825exec_prefix 826PACKAGE_URL 827PACKAGE_BUGREPORT 828PACKAGE_STRING 829PACKAGE_VERSION 830PACKAGE_TARNAME 831PACKAGE_NAME 832PATH_SEPARATOR 833SHELL' 834ac_subst_files='' 835ac_user_opts=' 836enable_option_checking 837enable_maintainer_mode 838enable_dependency_tracking 839enable_strict_compilation 840enable_silent_rules 841enable_docs 842with_xmlto 843with_fop 844enable_shared 845enable_static 846with_pic 847enable_fast_install 848with_gnu_ld 849enable_libtool_lock 850with_lint 851enable_lint_library 852' 853 ac_precious_vars='build_alias 854host_alias 855target_alias 856CC 857CFLAGS 858LDFLAGS 859LIBS 860CPPFLAGS 861CPP 862PKG_CONFIG 863XMLTO 864FOP 865XDMCP_CFLAGS 866XDMCP_LIBS 867LINT 868LINT_FLAGS' 869 870 871# Initialize some variables set by options. 872ac_init_help= 873ac_init_version=false 874ac_unrecognized_opts= 875ac_unrecognized_sep= 876# The variables have the same names as the options, with 877# dashes changed to underlines. 878cache_file=/dev/null 879exec_prefix=NONE 880no_create= 881no_recursion= 882prefix=NONE 883program_prefix=NONE 884program_suffix=NONE 885program_transform_name=s,x,x, 886silent= 887site= 888srcdir= 889verbose= 890x_includes=NONE 891x_libraries=NONE 892 893# Installation directory options. 894# These are left unexpanded so users can "make install exec_prefix=/foo" 895# and all the variables that are supposed to be based on exec_prefix 896# by default will actually change. 897# Use braces instead of parens because sh, perl, etc. also accept them. 898# (The list follows the same order as the GNU Coding Standards.) 899bindir='${exec_prefix}/bin' 900sbindir='${exec_prefix}/sbin' 901libexecdir='${exec_prefix}/libexec' 902datarootdir='${prefix}/share' 903datadir='${datarootdir}' 904sysconfdir='${prefix}/etc' 905sharedstatedir='${prefix}/com' 906localstatedir='${prefix}/var' 907includedir='${prefix}/include' 908oldincludedir='/usr/include' 909docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 910infodir='${datarootdir}/info' 911htmldir='${docdir}' 912dvidir='${docdir}' 913pdfdir='${docdir}' 914psdir='${docdir}' 915libdir='${exec_prefix}/lib' 916localedir='${datarootdir}/locale' 917mandir='${datarootdir}/man' 918 919ac_prev= 920ac_dashdash= 921for ac_option 922do 923 # If the previous option needs an argument, assign it. 924 if test -n "$ac_prev"; then 925 eval $ac_prev=\$ac_option 926 ac_prev= 927 continue 928 fi 929 930 case $ac_option in 931 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 932 *=) ac_optarg= ;; 933 *) ac_optarg=yes ;; 934 esac 935 936 # Accept the important Cygnus configure options, so we can diagnose typos. 937 938 case $ac_dashdash$ac_option in 939 --) 940 ac_dashdash=yes ;; 941 942 -bindir | --bindir | --bindi | --bind | --bin | --bi) 943 ac_prev=bindir ;; 944 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 945 bindir=$ac_optarg ;; 946 947 -build | --build | --buil | --bui | --bu) 948 ac_prev=build_alias ;; 949 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 950 build_alias=$ac_optarg ;; 951 952 -cache-file | --cache-file | --cache-fil | --cache-fi \ 953 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 954 ac_prev=cache_file ;; 955 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 956 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 957 cache_file=$ac_optarg ;; 958 959 --config-cache | -C) 960 cache_file=config.cache ;; 961 962 -datadir | --datadir | --datadi | --datad) 963 ac_prev=datadir ;; 964 -datadir=* | --datadir=* | --datadi=* | --datad=*) 965 datadir=$ac_optarg ;; 966 967 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 968 | --dataroo | --dataro | --datar) 969 ac_prev=datarootdir ;; 970 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 971 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 972 datarootdir=$ac_optarg ;; 973 974 -disable-* | --disable-*) 975 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 976 # Reject names that are not valid shell variable names. 977 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 978 as_fn_error $? "invalid feature name: $ac_useropt" 979 ac_useropt_orig=$ac_useropt 980 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 981 case $ac_user_opts in 982 *" 983"enable_$ac_useropt" 984"*) ;; 985 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 986 ac_unrecognized_sep=', ';; 987 esac 988 eval enable_$ac_useropt=no ;; 989 990 -docdir | --docdir | --docdi | --doc | --do) 991 ac_prev=docdir ;; 992 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 993 docdir=$ac_optarg ;; 994 995 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 996 ac_prev=dvidir ;; 997 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 998 dvidir=$ac_optarg ;; 999 1000 -enable-* | --enable-*) 1001 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1002 # Reject names that are not valid shell variable names. 1003 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1004 as_fn_error $? "invalid feature name: $ac_useropt" 1005 ac_useropt_orig=$ac_useropt 1006 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1007 case $ac_user_opts in 1008 *" 1009"enable_$ac_useropt" 1010"*) ;; 1011 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1012 ac_unrecognized_sep=', ';; 1013 esac 1014 eval enable_$ac_useropt=\$ac_optarg ;; 1015 1016 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1017 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1018 | --exec | --exe | --ex) 1019 ac_prev=exec_prefix ;; 1020 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1021 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1022 | --exec=* | --exe=* | --ex=*) 1023 exec_prefix=$ac_optarg ;; 1024 1025 -gas | --gas | --ga | --g) 1026 # Obsolete; use --with-gas. 1027 with_gas=yes ;; 1028 1029 -help | --help | --hel | --he | -h) 1030 ac_init_help=long ;; 1031 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1032 ac_init_help=recursive ;; 1033 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1034 ac_init_help=short ;; 1035 1036 -host | --host | --hos | --ho) 1037 ac_prev=host_alias ;; 1038 -host=* | --host=* | --hos=* | --ho=*) 1039 host_alias=$ac_optarg ;; 1040 1041 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1042 ac_prev=htmldir ;; 1043 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1044 | --ht=*) 1045 htmldir=$ac_optarg ;; 1046 1047 -includedir | --includedir | --includedi | --included | --include \ 1048 | --includ | --inclu | --incl | --inc) 1049 ac_prev=includedir ;; 1050 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1051 | --includ=* | --inclu=* | --incl=* | --inc=*) 1052 includedir=$ac_optarg ;; 1053 1054 -infodir | --infodir | --infodi | --infod | --info | --inf) 1055 ac_prev=infodir ;; 1056 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1057 infodir=$ac_optarg ;; 1058 1059 -libdir | --libdir | --libdi | --libd) 1060 ac_prev=libdir ;; 1061 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1062 libdir=$ac_optarg ;; 1063 1064 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1065 | --libexe | --libex | --libe) 1066 ac_prev=libexecdir ;; 1067 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1068 | --libexe=* | --libex=* | --libe=*) 1069 libexecdir=$ac_optarg ;; 1070 1071 -localedir | --localedir | --localedi | --localed | --locale) 1072 ac_prev=localedir ;; 1073 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1074 localedir=$ac_optarg ;; 1075 1076 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1077 | --localstate | --localstat | --localsta | --localst | --locals) 1078 ac_prev=localstatedir ;; 1079 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1080 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1081 localstatedir=$ac_optarg ;; 1082 1083 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1084 ac_prev=mandir ;; 1085 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1086 mandir=$ac_optarg ;; 1087 1088 -nfp | --nfp | --nf) 1089 # Obsolete; use --without-fp. 1090 with_fp=no ;; 1091 1092 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1093 | --no-cr | --no-c | -n) 1094 no_create=yes ;; 1095 1096 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1097 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1098 no_recursion=yes ;; 1099 1100 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1101 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1102 | --oldin | --oldi | --old | --ol | --o) 1103 ac_prev=oldincludedir ;; 1104 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1105 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1106 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1107 oldincludedir=$ac_optarg ;; 1108 1109 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1110 ac_prev=prefix ;; 1111 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1112 prefix=$ac_optarg ;; 1113 1114 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1115 | --program-pre | --program-pr | --program-p) 1116 ac_prev=program_prefix ;; 1117 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1118 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1119 program_prefix=$ac_optarg ;; 1120 1121 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1122 | --program-suf | --program-su | --program-s) 1123 ac_prev=program_suffix ;; 1124 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1125 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1126 program_suffix=$ac_optarg ;; 1127 1128 -program-transform-name | --program-transform-name \ 1129 | --program-transform-nam | --program-transform-na \ 1130 | --program-transform-n | --program-transform- \ 1131 | --program-transform | --program-transfor \ 1132 | --program-transfo | --program-transf \ 1133 | --program-trans | --program-tran \ 1134 | --progr-tra | --program-tr | --program-t) 1135 ac_prev=program_transform_name ;; 1136 -program-transform-name=* | --program-transform-name=* \ 1137 | --program-transform-nam=* | --program-transform-na=* \ 1138 | --program-transform-n=* | --program-transform-=* \ 1139 | --program-transform=* | --program-transfor=* \ 1140 | --program-transfo=* | --program-transf=* \ 1141 | --program-trans=* | --program-tran=* \ 1142 | --progr-tra=* | --program-tr=* | --program-t=*) 1143 program_transform_name=$ac_optarg ;; 1144 1145 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1146 ac_prev=pdfdir ;; 1147 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1148 pdfdir=$ac_optarg ;; 1149 1150 -psdir | --psdir | --psdi | --psd | --ps) 1151 ac_prev=psdir ;; 1152 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1153 psdir=$ac_optarg ;; 1154 1155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1156 | -silent | --silent | --silen | --sile | --sil) 1157 silent=yes ;; 1158 1159 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1160 ac_prev=sbindir ;; 1161 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1162 | --sbi=* | --sb=*) 1163 sbindir=$ac_optarg ;; 1164 1165 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1166 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1167 | --sharedst | --shareds | --shared | --share | --shar \ 1168 | --sha | --sh) 1169 ac_prev=sharedstatedir ;; 1170 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1171 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1172 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1173 | --sha=* | --sh=*) 1174 sharedstatedir=$ac_optarg ;; 1175 1176 -site | --site | --sit) 1177 ac_prev=site ;; 1178 -site=* | --site=* | --sit=*) 1179 site=$ac_optarg ;; 1180 1181 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1182 ac_prev=srcdir ;; 1183 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1184 srcdir=$ac_optarg ;; 1185 1186 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1187 | --syscon | --sysco | --sysc | --sys | --sy) 1188 ac_prev=sysconfdir ;; 1189 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1190 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1191 sysconfdir=$ac_optarg ;; 1192 1193 -target | --target | --targe | --targ | --tar | --ta | --t) 1194 ac_prev=target_alias ;; 1195 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1196 target_alias=$ac_optarg ;; 1197 1198 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1199 verbose=yes ;; 1200 1201 -version | --version | --versio | --versi | --vers | -V) 1202 ac_init_version=: ;; 1203 1204 -with-* | --with-*) 1205 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1206 # Reject names that are not valid shell variable names. 1207 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1208 as_fn_error $? "invalid package name: $ac_useropt" 1209 ac_useropt_orig=$ac_useropt 1210 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1211 case $ac_user_opts in 1212 *" 1213"with_$ac_useropt" 1214"*) ;; 1215 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1216 ac_unrecognized_sep=', ';; 1217 esac 1218 eval with_$ac_useropt=\$ac_optarg ;; 1219 1220 -without-* | --without-*) 1221 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1222 # Reject names that are not valid shell variable names. 1223 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1224 as_fn_error $? "invalid package name: $ac_useropt" 1225 ac_useropt_orig=$ac_useropt 1226 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1227 case $ac_user_opts in 1228 *" 1229"with_$ac_useropt" 1230"*) ;; 1231 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1232 ac_unrecognized_sep=', ';; 1233 esac 1234 eval with_$ac_useropt=no ;; 1235 1236 --x) 1237 # Obsolete; use --with-x. 1238 with_x=yes ;; 1239 1240 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1241 | --x-incl | --x-inc | --x-in | --x-i) 1242 ac_prev=x_includes ;; 1243 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1244 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1245 x_includes=$ac_optarg ;; 1246 1247 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1248 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1249 ac_prev=x_libraries ;; 1250 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1251 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1252 x_libraries=$ac_optarg ;; 1253 1254 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1255Try \`$0 --help' for more information" 1256 ;; 1257 1258 *=*) 1259 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1260 # Reject names that are not valid shell variable names. 1261 case $ac_envvar in #( 1262 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1263 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1264 esac 1265 eval $ac_envvar=\$ac_optarg 1266 export $ac_envvar ;; 1267 1268 *) 1269 # FIXME: should be removed in autoconf 3.0. 1270 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1271 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1272 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1273 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1274 ;; 1275 1276 esac 1277done 1278 1279if test -n "$ac_prev"; then 1280 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1281 as_fn_error $? "missing argument to $ac_option" 1282fi 1283 1284if test -n "$ac_unrecognized_opts"; then 1285 case $enable_option_checking in 1286 no) ;; 1287 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1288 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1289 esac 1290fi 1291 1292# Check all directory arguments for consistency. 1293for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1294 datadir sysconfdir sharedstatedir localstatedir includedir \ 1295 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1296 libdir localedir mandir 1297do 1298 eval ac_val=\$$ac_var 1299 # Remove trailing slashes. 1300 case $ac_val in 1301 */ ) 1302 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1303 eval $ac_var=\$ac_val;; 1304 esac 1305 # Be sure to have absolute directory names. 1306 case $ac_val in 1307 [\\/$]* | ?:[\\/]* ) continue;; 1308 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1309 esac 1310 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1311done 1312 1313# There might be people who depend on the old broken behavior: `$host' 1314# used to hold the argument of --host etc. 1315# FIXME: To remove some day. 1316build=$build_alias 1317host=$host_alias 1318target=$target_alias 1319 1320# FIXME: To remove some day. 1321if test "x$host_alias" != x; then 1322 if test "x$build_alias" = x; then 1323 cross_compiling=maybe 1324 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1325 If a cross compiler is detected then cross compile mode will be used" >&2 1326 elif test "x$build_alias" != "x$host_alias"; then 1327 cross_compiling=yes 1328 fi 1329fi 1330 1331ac_tool_prefix= 1332test -n "$host_alias" && ac_tool_prefix=$host_alias- 1333 1334test "$silent" = yes && exec 6>/dev/null 1335 1336 1337ac_pwd=`pwd` && test -n "$ac_pwd" && 1338ac_ls_di=`ls -di .` && 1339ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1340 as_fn_error $? "working directory cannot be determined" 1341test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1342 as_fn_error $? "pwd does not report name of working directory" 1343 1344 1345# Find the source files, if location was not specified. 1346if test -z "$srcdir"; then 1347 ac_srcdir_defaulted=yes 1348 # Try the directory containing this script, then the parent directory. 1349 ac_confdir=`$as_dirname -- "$as_myself" || 1350$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1351 X"$as_myself" : 'X\(//\)[^/]' \| \ 1352 X"$as_myself" : 'X\(//\)$' \| \ 1353 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1354$as_echo X"$as_myself" | 1355 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1356 s//\1/ 1357 q 1358 } 1359 /^X\(\/\/\)[^/].*/{ 1360 s//\1/ 1361 q 1362 } 1363 /^X\(\/\/\)$/{ 1364 s//\1/ 1365 q 1366 } 1367 /^X\(\/\).*/{ 1368 s//\1/ 1369 q 1370 } 1371 s/.*/./; q'` 1372 srcdir=$ac_confdir 1373 if test ! -r "$srcdir/$ac_unique_file"; then 1374 srcdir=.. 1375 fi 1376else 1377 ac_srcdir_defaulted=no 1378fi 1379if test ! -r "$srcdir/$ac_unique_file"; then 1380 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1381 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1382fi 1383ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1384ac_abs_confdir=`( 1385 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1386 pwd)` 1387# When building in place, set srcdir=. 1388if test "$ac_abs_confdir" = "$ac_pwd"; then 1389 srcdir=. 1390fi 1391# Remove unnecessary trailing slashes from srcdir. 1392# Double slashes in file names in object file debugging info 1393# mess up M-x gdb in Emacs. 1394case $srcdir in 1395*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1396esac 1397for ac_var in $ac_precious_vars; do 1398 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_env_${ac_var}_value=\$${ac_var} 1400 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1401 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1402done 1403 1404# 1405# Report the --help message. 1406# 1407if test "$ac_init_help" = "long"; then 1408 # Omit some internal or obsolete options to make the list less imposing. 1409 # This message is too long to be a string in the A/UX 3.1 sh. 1410 cat <<_ACEOF 1411\`configure' configures libXdmcp 1.1.0 to adapt to many kinds of systems. 1412 1413Usage: $0 [OPTION]... [VAR=VALUE]... 1414 1415To assign environment variables (e.g., CC, CFLAGS...), specify them as 1416VAR=VALUE. See below for descriptions of some of the useful variables. 1417 1418Defaults for the options are specified in brackets. 1419 1420Configuration: 1421 -h, --help display this help and exit 1422 --help=short display options specific to this package 1423 --help=recursive display the short help of all the included packages 1424 -V, --version display version information and exit 1425 -q, --quiet, --silent do not print \`checking ...' messages 1426 --cache-file=FILE cache test results in FILE [disabled] 1427 -C, --config-cache alias for \`--cache-file=config.cache' 1428 -n, --no-create do not create output files 1429 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1430 1431Installation directories: 1432 --prefix=PREFIX install architecture-independent files in PREFIX 1433 [$ac_default_prefix] 1434 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1435 [PREFIX] 1436 1437By default, \`make install' will install all the files in 1438\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1439an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1440for instance \`--prefix=\$HOME'. 1441 1442For better control, use the options below. 1443 1444Fine tuning of the installation directories: 1445 --bindir=DIR user executables [EPREFIX/bin] 1446 --sbindir=DIR system admin executables [EPREFIX/sbin] 1447 --libexecdir=DIR program executables [EPREFIX/libexec] 1448 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1449 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1450 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1451 --libdir=DIR object code libraries [EPREFIX/lib] 1452 --includedir=DIR C header files [PREFIX/include] 1453 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1454 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1455 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1456 --infodir=DIR info documentation [DATAROOTDIR/info] 1457 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1458 --mandir=DIR man documentation [DATAROOTDIR/man] 1459 --docdir=DIR documentation root [DATAROOTDIR/doc/libXdmcp] 1460 --htmldir=DIR html documentation [DOCDIR] 1461 --dvidir=DIR dvi documentation [DOCDIR] 1462 --pdfdir=DIR pdf documentation [DOCDIR] 1463 --psdir=DIR ps documentation [DOCDIR] 1464_ACEOF 1465 1466 cat <<\_ACEOF 1467 1468Program names: 1469 --program-prefix=PREFIX prepend PREFIX to installed program names 1470 --program-suffix=SUFFIX append SUFFIX to installed program names 1471 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1472 1473System types: 1474 --build=BUILD configure for building on BUILD [guessed] 1475 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1476_ACEOF 1477fi 1478 1479if test -n "$ac_init_help"; then 1480 case $ac_init_help in 1481 short | recursive ) echo "Configuration of libXdmcp 1.1.0:";; 1482 esac 1483 cat <<\_ACEOF 1484 1485Optional Features: 1486 --disable-option-checking ignore unrecognized --enable/--with options 1487 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1488 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1489 --enable-maintainer-mode enable make rules and dependencies not useful 1490 (and sometimes confusing) to the casual installer 1491 --disable-dependency-tracking speeds up one-time build 1492 --enable-dependency-tracking do not reject slow dependency extractors 1493 --enable-strict-compilation 1494 Enable all warnings from compiler and make them 1495 errors (default: disabled) 1496 --enable-silent-rules less verbose build output (undo: `make V=1') 1497 --disable-silent-rules verbose build output (undo: `make V=0') 1498 --enable-docs Enable building the documentation (yes: yes) 1499 --enable-shared[=PKGS] build shared libraries [default=yes] 1500 --enable-static[=PKGS] build static libraries [default=yes] 1501 --enable-fast-install[=PKGS] 1502 optimize for fast installation [default=yes] 1503 --disable-libtool-lock avoid locking (might break parallel builds) 1504 --enable-lint-library Create lint library (default: disabled) 1505 1506Optional Packages: 1507 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1508 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1509 --with-xmlto Use xmlto to regenerate documentation (default: 1510 auto) 1511 --with-fop Use fop to regenerate documentation (default: auto) 1512 --with-pic try to use only PIC/non-PIC objects [default=use 1513 both] 1514 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1515 --with-lint Use a lint-style source code checker (default: 1516 disabled) 1517 1518Some influential environment variables: 1519 CC C compiler command 1520 CFLAGS C compiler flags 1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1522 nonstandard directory <lib dir> 1523 LIBS libraries to pass to the linker, e.g. -l<library> 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1525 you have headers in a nonstandard directory <include dir> 1526 CPP C preprocessor 1527 PKG_CONFIG path to pkg-config utility 1528 XMLTO Path to xmlto command 1529 FOP Path to fop command 1530 XDMCP_CFLAGS 1531 C compiler flags for XDMCP, overriding pkg-config 1532 XDMCP_LIBS linker flags for XDMCP, overriding pkg-config 1533 LINT Path to a lint-style command 1534 LINT_FLAGS Flags for the lint-style command 1535 1536Use these variables to override the choices made by `configure' or to help 1537it to find libraries and programs with nonstandard names/locations. 1538 1539Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1540_ACEOF 1541ac_status=$? 1542fi 1543 1544if test "$ac_init_help" = "recursive"; then 1545 # If there are subdirs, report their specific --help. 1546 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1547 test -d "$ac_dir" || 1548 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1549 continue 1550 ac_builddir=. 1551 1552case "$ac_dir" in 1553.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1554*) 1555 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1556 # A ".." for each directory in $ac_dir_suffix. 1557 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1558 case $ac_top_builddir_sub in 1559 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1560 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1561 esac ;; 1562esac 1563ac_abs_top_builddir=$ac_pwd 1564ac_abs_builddir=$ac_pwd$ac_dir_suffix 1565# for backward compatibility: 1566ac_top_builddir=$ac_top_build_prefix 1567 1568case $srcdir in 1569 .) # We are building in place. 1570 ac_srcdir=. 1571 ac_top_srcdir=$ac_top_builddir_sub 1572 ac_abs_top_srcdir=$ac_pwd ;; 1573 [\\/]* | ?:[\\/]* ) # Absolute name. 1574 ac_srcdir=$srcdir$ac_dir_suffix; 1575 ac_top_srcdir=$srcdir 1576 ac_abs_top_srcdir=$srcdir ;; 1577 *) # Relative name. 1578 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1579 ac_top_srcdir=$ac_top_build_prefix$srcdir 1580 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1581esac 1582ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1583 1584 cd "$ac_dir" || { ac_status=$?; continue; } 1585 # Check for guested configure. 1586 if test -f "$ac_srcdir/configure.gnu"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1589 elif test -f "$ac_srcdir/configure"; then 1590 echo && 1591 $SHELL "$ac_srcdir/configure" --help=recursive 1592 else 1593 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1594 fi || ac_status=$? 1595 cd "$ac_pwd" || { ac_status=$?; break; } 1596 done 1597fi 1598 1599test -n "$ac_init_help" && exit $ac_status 1600if $ac_init_version; then 1601 cat <<\_ACEOF 1602libXdmcp configure 1.1.0 1603generated by GNU Autoconf 2.68 1604 1605Copyright (C) 2010 Free Software Foundation, Inc. 1606This configure script is free software; the Free Software Foundation 1607gives unlimited permission to copy, distribute and modify it. 1608_ACEOF 1609 exit 1610fi 1611 1612## ------------------------ ## 1613## Autoconf initialization. ## 1614## ------------------------ ## 1615 1616# ac_fn_c_try_compile LINENO 1617# -------------------------- 1618# Try to compile conftest.$ac_ext, and return whether this succeeded. 1619ac_fn_c_try_compile () 1620{ 1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1622 rm -f conftest.$ac_objext 1623 if { { ac_try="$ac_compile" 1624case "(($ac_try" in 1625 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1626 *) ac_try_echo=$ac_try;; 1627esac 1628eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1629$as_echo "$ac_try_echo"; } >&5 1630 (eval "$ac_compile") 2>conftest.err 1631 ac_status=$? 1632 if test -s conftest.err; then 1633 grep -v '^ *+' conftest.err >conftest.er1 1634 cat conftest.er1 >&5 1635 mv -f conftest.er1 conftest.err 1636 fi 1637 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1638 test $ac_status = 0; } && { 1639 test -z "$ac_c_werror_flag" || 1640 test ! -s conftest.err 1641 } && test -s conftest.$ac_objext; then : 1642 ac_retval=0 1643else 1644 $as_echo "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 as_fn_set_status $ac_retval 1651 1652} # ac_fn_c_try_compile 1653 1654# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1655# --------------------------------------------- 1656# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1657# accordingly. 1658ac_fn_c_check_decl () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 as_decl_name=`echo $2|sed 's/ *(.*//'` 1662 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1664$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1665if eval \${$3+:} false; then : 1666 $as_echo_n "(cached) " >&6 1667else 1668 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1669/* end confdefs.h. */ 1670$4 1671int 1672main () 1673{ 1674#ifndef $as_decl_name 1675#ifdef __cplusplus 1676 (void) $as_decl_use; 1677#else 1678 (void) $as_decl_name; 1679#endif 1680#endif 1681 1682 ; 1683 return 0; 1684} 1685_ACEOF 1686if ac_fn_c_try_compile "$LINENO"; then : 1687 eval "$3=yes" 1688else 1689 eval "$3=no" 1690fi 1691rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1692fi 1693eval ac_res=\$$3 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1695$as_echo "$ac_res" >&6; } 1696 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1697 1698} # ac_fn_c_check_decl 1699 1700# ac_fn_c_try_cpp LINENO 1701# ---------------------- 1702# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1703ac_fn_c_try_cpp () 1704{ 1705 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1706 if { { ac_try="$ac_cpp conftest.$ac_ext" 1707case "(($ac_try" in 1708 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1709 *) ac_try_echo=$ac_try;; 1710esac 1711eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1712$as_echo "$ac_try_echo"; } >&5 1713 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1714 ac_status=$? 1715 if test -s conftest.err; then 1716 grep -v '^ *+' conftest.err >conftest.er1 1717 cat conftest.er1 >&5 1718 mv -f conftest.er1 conftest.err 1719 fi 1720 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1721 test $ac_status = 0; } > conftest.i && { 1722 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1723 test ! -s conftest.err 1724 }; then : 1725 ac_retval=0 1726else 1727 $as_echo "$as_me: failed program was:" >&5 1728sed 's/^/| /' conftest.$ac_ext >&5 1729 1730 ac_retval=1 1731fi 1732 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1733 as_fn_set_status $ac_retval 1734 1735} # ac_fn_c_try_cpp 1736 1737# ac_fn_c_try_run LINENO 1738# ---------------------- 1739# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1740# that executables *can* be run. 1741ac_fn_c_try_run () 1742{ 1743 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1744 if { { ac_try="$ac_link" 1745case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_link") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1755 { { case "(($ac_try" in 1756 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1757 *) ac_try_echo=$ac_try;; 1758esac 1759eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1760$as_echo "$ac_try_echo"; } >&5 1761 (eval "$ac_try") 2>&5 1762 ac_status=$? 1763 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1764 test $ac_status = 0; }; }; then : 1765 ac_retval=0 1766else 1767 $as_echo "$as_me: program exited with status $ac_status" >&5 1768 $as_echo "$as_me: failed program was:" >&5 1769sed 's/^/| /' conftest.$ac_ext >&5 1770 1771 ac_retval=$ac_status 1772fi 1773 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1774 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1775 as_fn_set_status $ac_retval 1776 1777} # ac_fn_c_try_run 1778 1779# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1780# ------------------------------------------------------- 1781# Tests whether HEADER exists and can be compiled using the include files in 1782# INCLUDES, setting the cache variable VAR accordingly. 1783ac_fn_c_check_header_compile () 1784{ 1785 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1787$as_echo_n "checking for $2... " >&6; } 1788if eval \${$3+:} false; then : 1789 $as_echo_n "(cached) " >&6 1790else 1791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1792/* end confdefs.h. */ 1793$4 1794#include <$2> 1795_ACEOF 1796if ac_fn_c_try_compile "$LINENO"; then : 1797 eval "$3=yes" 1798else 1799 eval "$3=no" 1800fi 1801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1802fi 1803eval ac_res=\$$3 1804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1805$as_echo "$ac_res" >&6; } 1806 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1807 1808} # ac_fn_c_check_header_compile 1809 1810# ac_fn_c_try_link LINENO 1811# ----------------------- 1812# Try to link conftest.$ac_ext, and return whether this succeeded. 1813ac_fn_c_try_link () 1814{ 1815 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1816 rm -f conftest.$ac_objext conftest$ac_exeext 1817 if { { ac_try="$ac_link" 1818case "(($ac_try" in 1819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1820 *) ac_try_echo=$ac_try;; 1821esac 1822eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1823$as_echo "$ac_try_echo"; } >&5 1824 (eval "$ac_link") 2>conftest.err 1825 ac_status=$? 1826 if test -s conftest.err; then 1827 grep -v '^ *+' conftest.err >conftest.er1 1828 cat conftest.er1 >&5 1829 mv -f conftest.er1 conftest.err 1830 fi 1831 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1832 test $ac_status = 0; } && { 1833 test -z "$ac_c_werror_flag" || 1834 test ! -s conftest.err 1835 } && test -s conftest$ac_exeext && { 1836 test "$cross_compiling" = yes || 1837 $as_test_x conftest$ac_exeext 1838 }; then : 1839 ac_retval=0 1840else 1841 $as_echo "$as_me: failed program was:" >&5 1842sed 's/^/| /' conftest.$ac_ext >&5 1843 1844 ac_retval=1 1845fi 1846 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1847 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1848 # interfere with the next link command; also delete a directory that is 1849 # left behind by Apple's compiler. We do this before executing the actions. 1850 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1851 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1852 as_fn_set_status $ac_retval 1853 1854} # ac_fn_c_try_link 1855 1856# ac_fn_c_check_func LINENO FUNC VAR 1857# ---------------------------------- 1858# Tests whether FUNC exists, setting the cache variable VAR accordingly 1859ac_fn_c_check_func () 1860{ 1861 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1863$as_echo_n "checking for $2... " >&6; } 1864if eval \${$3+:} false; then : 1865 $as_echo_n "(cached) " >&6 1866else 1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1868/* end confdefs.h. */ 1869/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1870 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1871#define $2 innocuous_$2 1872 1873/* System header to define __stub macros and hopefully few prototypes, 1874 which can conflict with char $2 (); below. 1875 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1876 <limits.h> exists even on freestanding compilers. */ 1877 1878#ifdef __STDC__ 1879# include <limits.h> 1880#else 1881# include <assert.h> 1882#endif 1883 1884#undef $2 1885 1886/* Override any GCC internal prototype to avoid an error. 1887 Use char because int might match the return type of a GCC 1888 builtin and then its argument prototype would still apply. */ 1889#ifdef __cplusplus 1890extern "C" 1891#endif 1892char $2 (); 1893/* The GNU C library defines this for functions which it implements 1894 to always fail with ENOSYS. Some functions are actually named 1895 something starting with __ and the normal name is an alias. */ 1896#if defined __stub_$2 || defined __stub___$2 1897choke me 1898#endif 1899 1900int 1901main () 1902{ 1903return $2 (); 1904 ; 1905 return 0; 1906} 1907_ACEOF 1908if ac_fn_c_try_link "$LINENO"; then : 1909 eval "$3=yes" 1910else 1911 eval "$3=no" 1912fi 1913rm -f core conftest.err conftest.$ac_objext \ 1914 conftest$ac_exeext conftest.$ac_ext 1915fi 1916eval ac_res=\$$3 1917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1918$as_echo "$ac_res" >&6; } 1919 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1920 1921} # ac_fn_c_check_func 1922cat >config.log <<_ACEOF 1923This file contains any messages produced by compilers while 1924running configure, to aid debugging if configure makes a mistake. 1925 1926It was created by libXdmcp $as_me 1.1.0, which was 1927generated by GNU Autoconf 2.68. Invocation command line was 1928 1929 $ $0 $@ 1930 1931_ACEOF 1932exec 5>>config.log 1933{ 1934cat <<_ASUNAME 1935## --------- ## 1936## Platform. ## 1937## --------- ## 1938 1939hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1940uname -m = `(uname -m) 2>/dev/null || echo unknown` 1941uname -r = `(uname -r) 2>/dev/null || echo unknown` 1942uname -s = `(uname -s) 2>/dev/null || echo unknown` 1943uname -v = `(uname -v) 2>/dev/null || echo unknown` 1944 1945/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1946/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1947 1948/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1949/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1950/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1951/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1952/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1953/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1954/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1955 1956_ASUNAME 1957 1958as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1959for as_dir in $PATH 1960do 1961 IFS=$as_save_IFS 1962 test -z "$as_dir" && as_dir=. 1963 $as_echo "PATH: $as_dir" 1964 done 1965IFS=$as_save_IFS 1966 1967} >&5 1968 1969cat >&5 <<_ACEOF 1970 1971 1972## ----------- ## 1973## Core tests. ## 1974## ----------- ## 1975 1976_ACEOF 1977 1978 1979# Keep a trace of the command line. 1980# Strip out --no-create and --no-recursion so they do not pile up. 1981# Strip out --silent because we don't want to record it for future runs. 1982# Also quote any args containing shell meta-characters. 1983# Make two passes to allow for proper duplicate-argument suppression. 1984ac_configure_args= 1985ac_configure_args0= 1986ac_configure_args1= 1987ac_must_keep_next=false 1988for ac_pass in 1 2 1989do 1990 for ac_arg 1991 do 1992 case $ac_arg in 1993 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1994 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1995 | -silent | --silent | --silen | --sile | --sil) 1996 continue ;; 1997 *\'*) 1998 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1999 esac 2000 case $ac_pass in 2001 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2002 2) 2003 as_fn_append ac_configure_args1 " '$ac_arg'" 2004 if test $ac_must_keep_next = true; then 2005 ac_must_keep_next=false # Got value, back to normal. 2006 else 2007 case $ac_arg in 2008 *=* | --config-cache | -C | -disable-* | --disable-* \ 2009 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2010 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2011 | -with-* | --with-* | -without-* | --without-* | --x) 2012 case "$ac_configure_args0 " in 2013 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2014 esac 2015 ;; 2016 -* ) ac_must_keep_next=true ;; 2017 esac 2018 fi 2019 as_fn_append ac_configure_args " '$ac_arg'" 2020 ;; 2021 esac 2022 done 2023done 2024{ ac_configure_args0=; unset ac_configure_args0;} 2025{ ac_configure_args1=; unset ac_configure_args1;} 2026 2027# When interrupted or exit'd, cleanup temporary files, and complete 2028# config.log. We remove comments because anyway the quotes in there 2029# would cause problems or look ugly. 2030# WARNING: Use '\'' to represent an apostrophe within the trap. 2031# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2032trap 'exit_status=$? 2033 # Save into config.log some information that might help in debugging. 2034 { 2035 echo 2036 2037 $as_echo "## ---------------- ## 2038## Cache variables. ## 2039## ---------------- ##" 2040 echo 2041 # The following way of writing the cache mishandles newlines in values, 2042( 2043 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2044 eval ac_val=\$$ac_var 2045 case $ac_val in #( 2046 *${as_nl}*) 2047 case $ac_var in #( 2048 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2049$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2050 esac 2051 case $ac_var in #( 2052 _ | IFS | as_nl) ;; #( 2053 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2054 *) { eval $ac_var=; unset $ac_var;} ;; 2055 esac ;; 2056 esac 2057 done 2058 (set) 2>&1 | 2059 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2060 *${as_nl}ac_space=\ *) 2061 sed -n \ 2062 "s/'\''/'\''\\\\'\'''\''/g; 2063 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2064 ;; #( 2065 *) 2066 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2067 ;; 2068 esac | 2069 sort 2070) 2071 echo 2072 2073 $as_echo "## ----------------- ## 2074## Output variables. ## 2075## ----------------- ##" 2076 echo 2077 for ac_var in $ac_subst_vars 2078 do 2079 eval ac_val=\$$ac_var 2080 case $ac_val in 2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2082 esac 2083 $as_echo "$ac_var='\''$ac_val'\''" 2084 done | sort 2085 echo 2086 2087 if test -n "$ac_subst_files"; then 2088 $as_echo "## ------------------- ## 2089## File substitutions. ## 2090## ------------------- ##" 2091 echo 2092 for ac_var in $ac_subst_files 2093 do 2094 eval ac_val=\$$ac_var 2095 case $ac_val in 2096 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2097 esac 2098 $as_echo "$ac_var='\''$ac_val'\''" 2099 done | sort 2100 echo 2101 fi 2102 2103 if test -s confdefs.h; then 2104 $as_echo "## ----------- ## 2105## confdefs.h. ## 2106## ----------- ##" 2107 echo 2108 cat confdefs.h 2109 echo 2110 fi 2111 test "$ac_signal" != 0 && 2112 $as_echo "$as_me: caught signal $ac_signal" 2113 $as_echo "$as_me: exit $exit_status" 2114 } >&5 2115 rm -f core *.core core.conftest.* && 2116 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2117 exit $exit_status 2118' 0 2119for ac_signal in 1 2 13 15; do 2120 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2121done 2122ac_signal=0 2123 2124# confdefs.h avoids OS command line length limits that DEFS can exceed. 2125rm -f -r conftest* confdefs.h 2126 2127$as_echo "/* confdefs.h */" > confdefs.h 2128 2129# Predefined preprocessor variables. 2130 2131cat >>confdefs.h <<_ACEOF 2132#define PACKAGE_NAME "$PACKAGE_NAME" 2133_ACEOF 2134 2135cat >>confdefs.h <<_ACEOF 2136#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2137_ACEOF 2138 2139cat >>confdefs.h <<_ACEOF 2140#define PACKAGE_VERSION "$PACKAGE_VERSION" 2141_ACEOF 2142 2143cat >>confdefs.h <<_ACEOF 2144#define PACKAGE_STRING "$PACKAGE_STRING" 2145_ACEOF 2146 2147cat >>confdefs.h <<_ACEOF 2148#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2149_ACEOF 2150 2151cat >>confdefs.h <<_ACEOF 2152#define PACKAGE_URL "$PACKAGE_URL" 2153_ACEOF 2154 2155 2156# Let the site file select an alternate cache file if it wants to. 2157# Prefer an explicitly selected file to automatically selected ones. 2158ac_site_file1=NONE 2159ac_site_file2=NONE 2160if test -n "$CONFIG_SITE"; then 2161 # We do not want a PATH search for config.site. 2162 case $CONFIG_SITE in #(( 2163 -*) ac_site_file1=./$CONFIG_SITE;; 2164 */*) ac_site_file1=$CONFIG_SITE;; 2165 *) ac_site_file1=./$CONFIG_SITE;; 2166 esac 2167elif test "x$prefix" != xNONE; then 2168 ac_site_file1=$prefix/share/config.site 2169 ac_site_file2=$prefix/etc/config.site 2170else 2171 ac_site_file1=$ac_default_prefix/share/config.site 2172 ac_site_file2=$ac_default_prefix/etc/config.site 2173fi 2174for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2175do 2176 test "x$ac_site_file" = xNONE && continue 2177 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2179$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2180 sed 's/^/| /' "$ac_site_file" >&5 2181 . "$ac_site_file" \ 2182 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2183$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2184as_fn_error $? "failed to load site script $ac_site_file 2185See \`config.log' for more details" "$LINENO" 5; } 2186 fi 2187done 2188 2189if test -r "$cache_file"; then 2190 # Some versions of bash will fail to source /dev/null (special files 2191 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2192 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2194$as_echo "$as_me: loading cache $cache_file" >&6;} 2195 case $cache_file in 2196 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2197 *) . "./$cache_file";; 2198 esac 2199 fi 2200else 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2202$as_echo "$as_me: creating cache $cache_file" >&6;} 2203 >$cache_file 2204fi 2205 2206# Check that the precious variables saved in the cache have kept the same 2207# value. 2208ac_cache_corrupted=false 2209for ac_var in $ac_precious_vars; do 2210 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2211 eval ac_new_set=\$ac_env_${ac_var}_set 2212 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2213 eval ac_new_val=\$ac_env_${ac_var}_value 2214 case $ac_old_set,$ac_new_set in 2215 set,) 2216 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2217$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2218 ac_cache_corrupted=: ;; 2219 ,set) 2220 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2221$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2222 ac_cache_corrupted=: ;; 2223 ,);; 2224 *) 2225 if test "x$ac_old_val" != "x$ac_new_val"; then 2226 # differences in whitespace do not lead to failure. 2227 ac_old_val_w=`echo x $ac_old_val` 2228 ac_new_val_w=`echo x $ac_new_val` 2229 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2230 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2231$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2232 ac_cache_corrupted=: 2233 else 2234 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2235$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2236 eval $ac_var=\$ac_old_val 2237 fi 2238 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2239$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2240 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2241$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2242 fi;; 2243 esac 2244 # Pass precious variables to config.status. 2245 if test "$ac_new_set" = set; then 2246 case $ac_new_val in 2247 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2248 *) ac_arg=$ac_var=$ac_new_val ;; 2249 esac 2250 case " $ac_configure_args " in 2251 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2252 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2253 esac 2254 fi 2255done 2256if $ac_cache_corrupted; then 2257 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2258$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2259 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2260$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2261 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2262fi 2263## -------------------- ## 2264## Main body of script. ## 2265## -------------------- ## 2266 2267ac_ext=c 2268ac_cpp='$CPP $CPPFLAGS' 2269ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2270ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2271ac_compiler_gnu=$ac_cv_c_compiler_gnu 2272 2273 2274am__api_version='1.11' 2275 2276ac_aux_dir= 2277for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2278 if test -f "$ac_dir/install-sh"; then 2279 ac_aux_dir=$ac_dir 2280 ac_install_sh="$ac_aux_dir/install-sh -c" 2281 break 2282 elif test -f "$ac_dir/install.sh"; then 2283 ac_aux_dir=$ac_dir 2284 ac_install_sh="$ac_aux_dir/install.sh -c" 2285 break 2286 elif test -f "$ac_dir/shtool"; then 2287 ac_aux_dir=$ac_dir 2288 ac_install_sh="$ac_aux_dir/shtool install -c" 2289 break 2290 fi 2291done 2292if test -z "$ac_aux_dir"; then 2293 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2294fi 2295 2296# These three variables are undocumented and unsupported, 2297# and are intended to be withdrawn in a future Autoconf release. 2298# They can cause serious problems if a builder's source tree is in a directory 2299# whose full name contains unusual characters. 2300ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2301ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2302ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2303 2304 2305# Find a good install program. We prefer a C program (faster), 2306# so one script is as good as another. But avoid the broken or 2307# incompatible versions: 2308# SysV /etc/install, /usr/sbin/install 2309# SunOS /usr/etc/install 2310# IRIX /sbin/install 2311# AIX /bin/install 2312# AmigaOS /C/install, which installs bootblocks on floppy discs 2313# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2314# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2315# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2316# OS/2's system install, which has a completely different semantic 2317# ./install, which can be erroneously created by make from ./install.sh. 2318# Reject install programs that cannot install multiple files. 2319{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2320$as_echo_n "checking for a BSD-compatible install... " >&6; } 2321if test -z "$INSTALL"; then 2322if ${ac_cv_path_install+:} false; then : 2323 $as_echo_n "(cached) " >&6 2324else 2325 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2326for as_dir in $PATH 2327do 2328 IFS=$as_save_IFS 2329 test -z "$as_dir" && as_dir=. 2330 # Account for people who put trailing slashes in PATH elements. 2331case $as_dir/ in #(( 2332 ./ | .// | /[cC]/* | \ 2333 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2334 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2335 /usr/ucb/* ) ;; 2336 *) 2337 # OSF1 and SCO ODT 3.0 have their own names for install. 2338 # Don't use installbsd from OSF since it installs stuff as root 2339 # by default. 2340 for ac_prog in ginstall scoinst install; do 2341 for ac_exec_ext in '' $ac_executable_extensions; do 2342 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2343 if test $ac_prog = install && 2344 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2345 # AIX install. It has an incompatible calling convention. 2346 : 2347 elif test $ac_prog = install && 2348 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2349 # program-specific install script used by HP pwplus--don't use. 2350 : 2351 else 2352 rm -rf conftest.one conftest.two conftest.dir 2353 echo one > conftest.one 2354 echo two > conftest.two 2355 mkdir conftest.dir 2356 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2357 test -s conftest.one && test -s conftest.two && 2358 test -s conftest.dir/conftest.one && 2359 test -s conftest.dir/conftest.two 2360 then 2361 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2362 break 3 2363 fi 2364 fi 2365 fi 2366 done 2367 done 2368 ;; 2369esac 2370 2371 done 2372IFS=$as_save_IFS 2373 2374rm -rf conftest.one conftest.two conftest.dir 2375 2376fi 2377 if test "${ac_cv_path_install+set}" = set; then 2378 INSTALL=$ac_cv_path_install 2379 else 2380 # As a last resort, use the slow shell script. Don't cache a 2381 # value for INSTALL within a source directory, because that will 2382 # break other packages using the cache if that directory is 2383 # removed, or if the value is a relative name. 2384 INSTALL=$ac_install_sh 2385 fi 2386fi 2387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2388$as_echo "$INSTALL" >&6; } 2389 2390# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2391# It thinks the first close brace ends the variable substitution. 2392test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2393 2394test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2395 2396test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2397 2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2399$as_echo_n "checking whether build environment is sane... " >&6; } 2400# Just in case 2401sleep 1 2402echo timestamp > conftest.file 2403# Reject unsafe characters in $srcdir or the absolute working directory 2404# name. Accept space and tab only in the latter. 2405am_lf=' 2406' 2407case `pwd` in 2408 *[\\\"\#\$\&\'\`$am_lf]*) 2409 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2410esac 2411case $srcdir in 2412 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2413 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2414esac 2415 2416# Do `set' in a subshell so we don't clobber the current shell's 2417# arguments. Must try -L first in case configure is actually a 2418# symlink; some systems play weird games with the mod time of symlinks 2419# (eg FreeBSD returns the mod time of the symlink's containing 2420# directory). 2421if ( 2422 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2423 if test "$*" = "X"; then 2424 # -L didn't work. 2425 set X `ls -t "$srcdir/configure" conftest.file` 2426 fi 2427 rm -f conftest.file 2428 if test "$*" != "X $srcdir/configure conftest.file" \ 2429 && test "$*" != "X conftest.file $srcdir/configure"; then 2430 2431 # If neither matched, then we have a broken ls. This can happen 2432 # if, for instance, CONFIG_SHELL is bash and it inherits a 2433 # broken ls alias from the environment. This has actually 2434 # happened. Such a system could not be considered "sane". 2435 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2436alias in your environment" "$LINENO" 5 2437 fi 2438 2439 test "$2" = conftest.file 2440 ) 2441then 2442 # Ok. 2443 : 2444else 2445 as_fn_error $? "newly created file is older than distributed files! 2446Check your system clock" "$LINENO" 5 2447fi 2448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2449$as_echo "yes" >&6; } 2450test "$program_prefix" != NONE && 2451 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2452# Use a double $ so make ignores it. 2453test "$program_suffix" != NONE && 2454 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2455# Double any \ or $. 2456# By default was `s,x,x', remove it if useless. 2457ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2458program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2459 2460# expand $ac_aux_dir to an absolute path 2461am_aux_dir=`cd $ac_aux_dir && pwd` 2462 2463if test x"${MISSING+set}" != xset; then 2464 case $am_aux_dir in 2465 *\ * | *\ *) 2466 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2467 *) 2468 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2469 esac 2470fi 2471# Use eval to expand $SHELL 2472if eval "$MISSING --run true"; then 2473 am_missing_run="$MISSING --run " 2474else 2475 am_missing_run= 2476 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2477$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2478fi 2479 2480if test x"${install_sh}" != xset; then 2481 case $am_aux_dir in 2482 *\ * | *\ *) 2483 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2484 *) 2485 install_sh="\${SHELL} $am_aux_dir/install-sh" 2486 esac 2487fi 2488 2489# Installed binaries are usually stripped using `strip' when the user 2490# run `make install-strip'. However `strip' might not be the right 2491# tool to use in cross-compilation environments, therefore Automake 2492# will honor the `STRIP' environment variable to overrule this program. 2493if test "$cross_compiling" != no; then 2494 if test -n "$ac_tool_prefix"; then 2495 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2496set dummy ${ac_tool_prefix}strip; ac_word=$2 2497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2498$as_echo_n "checking for $ac_word... " >&6; } 2499if ${ac_cv_prog_STRIP+:} false; then : 2500 $as_echo_n "(cached) " >&6 2501else 2502 if test -n "$STRIP"; then 2503 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2504else 2505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2506for as_dir in $PATH 2507do 2508 IFS=$as_save_IFS 2509 test -z "$as_dir" && as_dir=. 2510 for ac_exec_ext in '' $ac_executable_extensions; do 2511 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2512 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2514 break 2 2515 fi 2516done 2517 done 2518IFS=$as_save_IFS 2519 2520fi 2521fi 2522STRIP=$ac_cv_prog_STRIP 2523if test -n "$STRIP"; then 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2525$as_echo "$STRIP" >&6; } 2526else 2527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2528$as_echo "no" >&6; } 2529fi 2530 2531 2532fi 2533if test -z "$ac_cv_prog_STRIP"; then 2534 ac_ct_STRIP=$STRIP 2535 # Extract the first word of "strip", so it can be a program name with args. 2536set dummy strip; ac_word=$2 2537{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2538$as_echo_n "checking for $ac_word... " >&6; } 2539if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2540 $as_echo_n "(cached) " >&6 2541else 2542 if test -n "$ac_ct_STRIP"; then 2543 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2544else 2545as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2546for as_dir in $PATH 2547do 2548 IFS=$as_save_IFS 2549 test -z "$as_dir" && as_dir=. 2550 for ac_exec_ext in '' $ac_executable_extensions; do 2551 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2552 ac_cv_prog_ac_ct_STRIP="strip" 2553 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2554 break 2 2555 fi 2556done 2557 done 2558IFS=$as_save_IFS 2559 2560fi 2561fi 2562ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2563if test -n "$ac_ct_STRIP"; then 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2565$as_echo "$ac_ct_STRIP" >&6; } 2566else 2567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2568$as_echo "no" >&6; } 2569fi 2570 2571 if test "x$ac_ct_STRIP" = x; then 2572 STRIP=":" 2573 else 2574 case $cross_compiling:$ac_tool_warned in 2575yes:) 2576{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2577$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2578ac_tool_warned=yes ;; 2579esac 2580 STRIP=$ac_ct_STRIP 2581 fi 2582else 2583 STRIP="$ac_cv_prog_STRIP" 2584fi 2585 2586fi 2587INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2588 2589{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2590$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2591if test -z "$MKDIR_P"; then 2592 if ${ac_cv_path_mkdir+:} false; then : 2593 $as_echo_n "(cached) " >&6 2594else 2595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2596for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2597do 2598 IFS=$as_save_IFS 2599 test -z "$as_dir" && as_dir=. 2600 for ac_prog in mkdir gmkdir; do 2601 for ac_exec_ext in '' $ac_executable_extensions; do 2602 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2603 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2604 'mkdir (GNU coreutils) '* | \ 2605 'mkdir (coreutils) '* | \ 2606 'mkdir (fileutils) '4.1*) 2607 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2608 break 3;; 2609 esac 2610 done 2611 done 2612 done 2613IFS=$as_save_IFS 2614 2615fi 2616 2617 test -d ./--version && rmdir ./--version 2618 if test "${ac_cv_path_mkdir+set}" = set; then 2619 MKDIR_P="$ac_cv_path_mkdir -p" 2620 else 2621 # As a last resort, use the slow shell script. Don't cache a 2622 # value for MKDIR_P within a source directory, because that will 2623 # break other packages using the cache if that directory is 2624 # removed, or if the value is a relative name. 2625 MKDIR_P="$ac_install_sh -d" 2626 fi 2627fi 2628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2629$as_echo "$MKDIR_P" >&6; } 2630 2631mkdir_p="$MKDIR_P" 2632case $mkdir_p in 2633 [\\/$]* | ?:[\\/]*) ;; 2634 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2635esac 2636 2637for ac_prog in gawk mawk nawk awk 2638do 2639 # Extract the first word of "$ac_prog", so it can be a program name with args. 2640set dummy $ac_prog; ac_word=$2 2641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2642$as_echo_n "checking for $ac_word... " >&6; } 2643if ${ac_cv_prog_AWK+:} false; then : 2644 $as_echo_n "(cached) " >&6 2645else 2646 if test -n "$AWK"; then 2647 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2648else 2649as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2650for as_dir in $PATH 2651do 2652 IFS=$as_save_IFS 2653 test -z "$as_dir" && as_dir=. 2654 for ac_exec_ext in '' $ac_executable_extensions; do 2655 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2656 ac_cv_prog_AWK="$ac_prog" 2657 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2658 break 2 2659 fi 2660done 2661 done 2662IFS=$as_save_IFS 2663 2664fi 2665fi 2666AWK=$ac_cv_prog_AWK 2667if test -n "$AWK"; then 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2669$as_echo "$AWK" >&6; } 2670else 2671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2672$as_echo "no" >&6; } 2673fi 2674 2675 2676 test -n "$AWK" && break 2677done 2678 2679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2680$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2681set x ${MAKE-make} 2682ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2683if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2684 $as_echo_n "(cached) " >&6 2685else 2686 cat >conftest.make <<\_ACEOF 2687SHELL = /bin/sh 2688all: 2689 @echo '@@@%%%=$(MAKE)=@@@%%%' 2690_ACEOF 2691# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2692case `${MAKE-make} -f conftest.make 2>/dev/null` in 2693 *@@@%%%=?*=@@@%%%*) 2694 eval ac_cv_prog_make_${ac_make}_set=yes;; 2695 *) 2696 eval ac_cv_prog_make_${ac_make}_set=no;; 2697esac 2698rm -f conftest.make 2699fi 2700if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2702$as_echo "yes" >&6; } 2703 SET_MAKE= 2704else 2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2706$as_echo "no" >&6; } 2707 SET_MAKE="MAKE=${MAKE-make}" 2708fi 2709 2710rm -rf .tst 2>/dev/null 2711mkdir .tst 2>/dev/null 2712if test -d .tst; then 2713 am__leading_dot=. 2714else 2715 am__leading_dot=_ 2716fi 2717rmdir .tst 2>/dev/null 2718 2719if test "`cd $srcdir && pwd`" != "`pwd`"; then 2720 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2721 # is not polluted with repeated "-I." 2722 am__isrc=' -I$(srcdir)' 2723 # test to see if srcdir already configured 2724 if test -f $srcdir/config.status; then 2725 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2726 fi 2727fi 2728 2729# test whether we have cygpath 2730if test -z "$CYGPATH_W"; then 2731 if (cygpath --version) >/dev/null 2>/dev/null; then 2732 CYGPATH_W='cygpath -w' 2733 else 2734 CYGPATH_W=echo 2735 fi 2736fi 2737 2738 2739# Define the identity of the package. 2740 PACKAGE='libXdmcp' 2741 VERSION='1.1.0' 2742 2743 2744cat >>confdefs.h <<_ACEOF 2745#define PACKAGE "$PACKAGE" 2746_ACEOF 2747 2748 2749cat >>confdefs.h <<_ACEOF 2750#define VERSION "$VERSION" 2751_ACEOF 2752 2753# Some tools Automake needs. 2754 2755ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2756 2757 2758AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2759 2760 2761AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2762 2763 2764AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2765 2766 2767MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2768 2769# We need awk for the "check" target. The system "awk" is bad on 2770# some platforms. 2771# Always define AMTAR for backward compatibility. 2772 2773AMTAR=${AMTAR-"${am_missing_run}tar"} 2774 2775am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2776 2777 2778 2779 2780 2781 2782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2783$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2784 # Check whether --enable-maintainer-mode was given. 2785if test "${enable_maintainer_mode+set}" = set; then : 2786 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2787else 2788 USE_MAINTAINER_MODE=no 2789fi 2790 2791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2792$as_echo "$USE_MAINTAINER_MODE" >&6; } 2793 if test $USE_MAINTAINER_MODE = yes; then 2794 MAINTAINER_MODE_TRUE= 2795 MAINTAINER_MODE_FALSE='#' 2796else 2797 MAINTAINER_MODE_TRUE='#' 2798 MAINTAINER_MODE_FALSE= 2799fi 2800 2801 MAINT=$MAINTAINER_MODE_TRUE 2802 2803 2804 2805ac_config_headers="$ac_config_headers config.h" 2806 2807 2808# Require xorg-macros minimum of 1.10 for HAVE_STYLESHEETS in XORG_CHECK_SGML_DOCTOOLS 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820DEPDIR="${am__leading_dot}deps" 2821 2822ac_config_commands="$ac_config_commands depfiles" 2823 2824 2825am_make=${MAKE-make} 2826cat > confinc << 'END' 2827am__doit: 2828 @echo this is the am__doit target 2829.PHONY: am__doit 2830END 2831# If we don't find an include directive, just comment out the code. 2832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2833$as_echo_n "checking for style of include used by $am_make... " >&6; } 2834am__include="#" 2835am__quote= 2836_am_result=none 2837# First try GNU make style include. 2838echo "include confinc" > confmf 2839# Ignore all kinds of additional output from `make'. 2840case `$am_make -s -f confmf 2> /dev/null` in #( 2841*the\ am__doit\ target*) 2842 am__include=include 2843 am__quote= 2844 _am_result=GNU 2845 ;; 2846esac 2847# Now try BSD make style include. 2848if test "$am__include" = "#"; then 2849 echo '.include "confinc"' > confmf 2850 case `$am_make -s -f confmf 2> /dev/null` in #( 2851 *the\ am__doit\ target*) 2852 am__include=.include 2853 am__quote="\"" 2854 _am_result=BSD 2855 ;; 2856 esac 2857fi 2858 2859 2860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2861$as_echo "$_am_result" >&6; } 2862rm -f confinc confmf 2863 2864# Check whether --enable-dependency-tracking was given. 2865if test "${enable_dependency_tracking+set}" = set; then : 2866 enableval=$enable_dependency_tracking; 2867fi 2868 2869if test "x$enable_dependency_tracking" != xno; then 2870 am_depcomp="$ac_aux_dir/depcomp" 2871 AMDEPBACKSLASH='\' 2872fi 2873 if test "x$enable_dependency_tracking" != xno; then 2874 AMDEP_TRUE= 2875 AMDEP_FALSE='#' 2876else 2877 AMDEP_TRUE='#' 2878 AMDEP_FALSE= 2879fi 2880 2881 2882ac_ext=c 2883ac_cpp='$CPP $CPPFLAGS' 2884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2886ac_compiler_gnu=$ac_cv_c_compiler_gnu 2887if test -n "$ac_tool_prefix"; then 2888 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2889set dummy ${ac_tool_prefix}gcc; ac_word=$2 2890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2891$as_echo_n "checking for $ac_word... " >&6; } 2892if ${ac_cv_prog_CC+:} false; then : 2893 $as_echo_n "(cached) " >&6 2894else 2895 if test -n "$CC"; then 2896 ac_cv_prog_CC="$CC" # Let the user override the test. 2897else 2898as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2899for as_dir in $PATH 2900do 2901 IFS=$as_save_IFS 2902 test -z "$as_dir" && as_dir=. 2903 for ac_exec_ext in '' $ac_executable_extensions; do 2904 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2905 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2906 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2907 break 2 2908 fi 2909done 2910 done 2911IFS=$as_save_IFS 2912 2913fi 2914fi 2915CC=$ac_cv_prog_CC 2916if test -n "$CC"; then 2917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2918$as_echo "$CC" >&6; } 2919else 2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2921$as_echo "no" >&6; } 2922fi 2923 2924 2925fi 2926if test -z "$ac_cv_prog_CC"; then 2927 ac_ct_CC=$CC 2928 # Extract the first word of "gcc", so it can be a program name with args. 2929set dummy gcc; ac_word=$2 2930{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2931$as_echo_n "checking for $ac_word... " >&6; } 2932if ${ac_cv_prog_ac_ct_CC+:} false; then : 2933 $as_echo_n "(cached) " >&6 2934else 2935 if test -n "$ac_ct_CC"; then 2936 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2937else 2938as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2939for as_dir in $PATH 2940do 2941 IFS=$as_save_IFS 2942 test -z "$as_dir" && as_dir=. 2943 for ac_exec_ext in '' $ac_executable_extensions; do 2944 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2945 ac_cv_prog_ac_ct_CC="gcc" 2946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2947 break 2 2948 fi 2949done 2950 done 2951IFS=$as_save_IFS 2952 2953fi 2954fi 2955ac_ct_CC=$ac_cv_prog_ac_ct_CC 2956if test -n "$ac_ct_CC"; then 2957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2958$as_echo "$ac_ct_CC" >&6; } 2959else 2960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2961$as_echo "no" >&6; } 2962fi 2963 2964 if test "x$ac_ct_CC" = x; then 2965 CC="" 2966 else 2967 case $cross_compiling:$ac_tool_warned in 2968yes:) 2969{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2970$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2971ac_tool_warned=yes ;; 2972esac 2973 CC=$ac_ct_CC 2974 fi 2975else 2976 CC="$ac_cv_prog_CC" 2977fi 2978 2979if test -z "$CC"; then 2980 if test -n "$ac_tool_prefix"; then 2981 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2982set dummy ${ac_tool_prefix}cc; ac_word=$2 2983{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2984$as_echo_n "checking for $ac_word... " >&6; } 2985if ${ac_cv_prog_CC+:} false; then : 2986 $as_echo_n "(cached) " >&6 2987else 2988 if test -n "$CC"; then 2989 ac_cv_prog_CC="$CC" # Let the user override the test. 2990else 2991as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2992for as_dir in $PATH 2993do 2994 IFS=$as_save_IFS 2995 test -z "$as_dir" && as_dir=. 2996 for ac_exec_ext in '' $ac_executable_extensions; do 2997 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2998 ac_cv_prog_CC="${ac_tool_prefix}cc" 2999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3000 break 2 3001 fi 3002done 3003 done 3004IFS=$as_save_IFS 3005 3006fi 3007fi 3008CC=$ac_cv_prog_CC 3009if test -n "$CC"; then 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3011$as_echo "$CC" >&6; } 3012else 3013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3014$as_echo "no" >&6; } 3015fi 3016 3017 3018 fi 3019fi 3020if test -z "$CC"; then 3021 # Extract the first word of "cc", so it can be a program name with args. 3022set dummy cc; ac_word=$2 3023{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3024$as_echo_n "checking for $ac_word... " >&6; } 3025if ${ac_cv_prog_CC+:} false; then : 3026 $as_echo_n "(cached) " >&6 3027else 3028 if test -n "$CC"; then 3029 ac_cv_prog_CC="$CC" # Let the user override the test. 3030else 3031 ac_prog_rejected=no 3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3033for as_dir in $PATH 3034do 3035 IFS=$as_save_IFS 3036 test -z "$as_dir" && as_dir=. 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3039 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3040 ac_prog_rejected=yes 3041 continue 3042 fi 3043 ac_cv_prog_CC="cc" 3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3045 break 2 3046 fi 3047done 3048 done 3049IFS=$as_save_IFS 3050 3051if test $ac_prog_rejected = yes; then 3052 # We found a bogon in the path, so make sure we never use it. 3053 set dummy $ac_cv_prog_CC 3054 shift 3055 if test $# != 0; then 3056 # We chose a different compiler from the bogus one. 3057 # However, it has the same basename, so the bogon will be chosen 3058 # first if we set CC to just the basename; use the full file name. 3059 shift 3060 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3061 fi 3062fi 3063fi 3064fi 3065CC=$ac_cv_prog_CC 3066if test -n "$CC"; then 3067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3068$as_echo "$CC" >&6; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3071$as_echo "no" >&6; } 3072fi 3073 3074 3075fi 3076if test -z "$CC"; then 3077 if test -n "$ac_tool_prefix"; then 3078 for ac_prog in cl.exe 3079 do 3080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3081set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3083$as_echo_n "checking for $ac_word... " >&6; } 3084if ${ac_cv_prog_CC+:} false; then : 3085 $as_echo_n "(cached) " >&6 3086else 3087 if test -n "$CC"; then 3088 ac_cv_prog_CC="$CC" # Let the user override the test. 3089else 3090as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3091for as_dir in $PATH 3092do 3093 IFS=$as_save_IFS 3094 test -z "$as_dir" && as_dir=. 3095 for ac_exec_ext in '' $ac_executable_extensions; do 3096 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3097 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3099 break 2 3100 fi 3101done 3102 done 3103IFS=$as_save_IFS 3104 3105fi 3106fi 3107CC=$ac_cv_prog_CC 3108if test -n "$CC"; then 3109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3110$as_echo "$CC" >&6; } 3111else 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3113$as_echo "no" >&6; } 3114fi 3115 3116 3117 test -n "$CC" && break 3118 done 3119fi 3120if test -z "$CC"; then 3121 ac_ct_CC=$CC 3122 for ac_prog in cl.exe 3123do 3124 # Extract the first word of "$ac_prog", so it can be a program name with args. 3125set dummy $ac_prog; ac_word=$2 3126{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3127$as_echo_n "checking for $ac_word... " >&6; } 3128if ${ac_cv_prog_ac_ct_CC+:} false; then : 3129 $as_echo_n "(cached) " >&6 3130else 3131 if test -n "$ac_ct_CC"; then 3132 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3133else 3134as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3135for as_dir in $PATH 3136do 3137 IFS=$as_save_IFS 3138 test -z "$as_dir" && as_dir=. 3139 for ac_exec_ext in '' $ac_executable_extensions; do 3140 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3141 ac_cv_prog_ac_ct_CC="$ac_prog" 3142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3143 break 2 3144 fi 3145done 3146 done 3147IFS=$as_save_IFS 3148 3149fi 3150fi 3151ac_ct_CC=$ac_cv_prog_ac_ct_CC 3152if test -n "$ac_ct_CC"; then 3153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3154$as_echo "$ac_ct_CC" >&6; } 3155else 3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3157$as_echo "no" >&6; } 3158fi 3159 3160 3161 test -n "$ac_ct_CC" && break 3162done 3163 3164 if test "x$ac_ct_CC" = x; then 3165 CC="" 3166 else 3167 case $cross_compiling:$ac_tool_warned in 3168yes:) 3169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3171ac_tool_warned=yes ;; 3172esac 3173 CC=$ac_ct_CC 3174 fi 3175fi 3176 3177fi 3178 3179 3180test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3181$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3182as_fn_error $? "no acceptable C compiler found in \$PATH 3183See \`config.log' for more details" "$LINENO" 5; } 3184 3185# Provide some information about the compiler. 3186$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3187set X $ac_compile 3188ac_compiler=$2 3189for ac_option in --version -v -V -qversion; do 3190 { { ac_try="$ac_compiler $ac_option >&5" 3191case "(($ac_try" in 3192 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3193 *) ac_try_echo=$ac_try;; 3194esac 3195eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3196$as_echo "$ac_try_echo"; } >&5 3197 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3198 ac_status=$? 3199 if test -s conftest.err; then 3200 sed '10a\ 3201... rest of stderr output deleted ... 3202 10q' conftest.err >conftest.er1 3203 cat conftest.er1 >&5 3204 fi 3205 rm -f conftest.er1 conftest.err 3206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3207 test $ac_status = 0; } 3208done 3209 3210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3211/* end confdefs.h. */ 3212 3213int 3214main () 3215{ 3216 3217 ; 3218 return 0; 3219} 3220_ACEOF 3221ac_clean_files_save=$ac_clean_files 3222ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3223# Try to create an executable without -o first, disregard a.out. 3224# It will help us diagnose broken compilers, and finding out an intuition 3225# of exeext. 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3227$as_echo_n "checking whether the C compiler works... " >&6; } 3228ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3229 3230# The possible output files: 3231ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3232 3233ac_rmfiles= 3234for ac_file in $ac_files 3235do 3236 case $ac_file in 3237 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3238 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3239 esac 3240done 3241rm -f $ac_rmfiles 3242 3243if { { ac_try="$ac_link_default" 3244case "(($ac_try" in 3245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3246 *) ac_try_echo=$ac_try;; 3247esac 3248eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3249$as_echo "$ac_try_echo"; } >&5 3250 (eval "$ac_link_default") 2>&5 3251 ac_status=$? 3252 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3253 test $ac_status = 0; }; then : 3254 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3255# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3256# in a Makefile. We should not override ac_cv_exeext if it was cached, 3257# so that the user can short-circuit this test for compilers unknown to 3258# Autoconf. 3259for ac_file in $ac_files '' 3260do 3261 test -f "$ac_file" || continue 3262 case $ac_file in 3263 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3264 ;; 3265 [ab].out ) 3266 # We found the default executable, but exeext='' is most 3267 # certainly right. 3268 break;; 3269 *.* ) 3270 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3271 then :; else 3272 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3273 fi 3274 # We set ac_cv_exeext here because the later test for it is not 3275 # safe: cross compilers may not add the suffix if given an `-o' 3276 # argument, so we may need to know it at that point already. 3277 # Even if this section looks crufty: it has the advantage of 3278 # actually working. 3279 break;; 3280 * ) 3281 break;; 3282 esac 3283done 3284test "$ac_cv_exeext" = no && ac_cv_exeext= 3285 3286else 3287 ac_file='' 3288fi 3289if test -z "$ac_file"; then : 3290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3291$as_echo "no" >&6; } 3292$as_echo "$as_me: failed program was:" >&5 3293sed 's/^/| /' conftest.$ac_ext >&5 3294 3295{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3296$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3297as_fn_error 77 "C compiler cannot create executables 3298See \`config.log' for more details" "$LINENO" 5; } 3299else 3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3301$as_echo "yes" >&6; } 3302fi 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3304$as_echo_n "checking for C compiler default output file name... " >&6; } 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3306$as_echo "$ac_file" >&6; } 3307ac_exeext=$ac_cv_exeext 3308 3309rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3310ac_clean_files=$ac_clean_files_save 3311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3312$as_echo_n "checking for suffix of executables... " >&6; } 3313if { { ac_try="$ac_link" 3314case "(($ac_try" in 3315 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3316 *) ac_try_echo=$ac_try;; 3317esac 3318eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3319$as_echo "$ac_try_echo"; } >&5 3320 (eval "$ac_link") 2>&5 3321 ac_status=$? 3322 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3323 test $ac_status = 0; }; then : 3324 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3325# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3326# work properly (i.e., refer to `conftest.exe'), while it won't with 3327# `rm'. 3328for ac_file in conftest.exe conftest conftest.*; do 3329 test -f "$ac_file" || continue 3330 case $ac_file in 3331 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3332 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3333 break;; 3334 * ) break;; 3335 esac 3336done 3337else 3338 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3339$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3340as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3341See \`config.log' for more details" "$LINENO" 5; } 3342fi 3343rm -f conftest conftest$ac_cv_exeext 3344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3345$as_echo "$ac_cv_exeext" >&6; } 3346 3347rm -f conftest.$ac_ext 3348EXEEXT=$ac_cv_exeext 3349ac_exeext=$EXEEXT 3350cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3351/* end confdefs.h. */ 3352#include <stdio.h> 3353int 3354main () 3355{ 3356FILE *f = fopen ("conftest.out", "w"); 3357 return ferror (f) || fclose (f) != 0; 3358 3359 ; 3360 return 0; 3361} 3362_ACEOF 3363ac_clean_files="$ac_clean_files conftest.out" 3364# Check that the compiler produces executables we can run. If not, either 3365# the compiler is broken, or we cross compile. 3366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3367$as_echo_n "checking whether we are cross compiling... " >&6; } 3368if test "$cross_compiling" != yes; then 3369 { { ac_try="$ac_link" 3370case "(($ac_try" in 3371 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3372 *) ac_try_echo=$ac_try;; 3373esac 3374eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3375$as_echo "$ac_try_echo"; } >&5 3376 (eval "$ac_link") 2>&5 3377 ac_status=$? 3378 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3379 test $ac_status = 0; } 3380 if { ac_try='./conftest$ac_cv_exeext' 3381 { { case "(($ac_try" in 3382 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3383 *) ac_try_echo=$ac_try;; 3384esac 3385eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3386$as_echo "$ac_try_echo"; } >&5 3387 (eval "$ac_try") 2>&5 3388 ac_status=$? 3389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3390 test $ac_status = 0; }; }; then 3391 cross_compiling=no 3392 else 3393 if test "$cross_compiling" = maybe; then 3394 cross_compiling=yes 3395 else 3396 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3398as_fn_error $? "cannot run C compiled programs. 3399If you meant to cross compile, use \`--host'. 3400See \`config.log' for more details" "$LINENO" 5; } 3401 fi 3402 fi 3403fi 3404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3405$as_echo "$cross_compiling" >&6; } 3406 3407rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3408ac_clean_files=$ac_clean_files_save 3409{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3410$as_echo_n "checking for suffix of object files... " >&6; } 3411if ${ac_cv_objext+:} false; then : 3412 $as_echo_n "(cached) " >&6 3413else 3414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3415/* end confdefs.h. */ 3416 3417int 3418main () 3419{ 3420 3421 ; 3422 return 0; 3423} 3424_ACEOF 3425rm -f conftest.o conftest.obj 3426if { { ac_try="$ac_compile" 3427case "(($ac_try" in 3428 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3429 *) ac_try_echo=$ac_try;; 3430esac 3431eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3432$as_echo "$ac_try_echo"; } >&5 3433 (eval "$ac_compile") 2>&5 3434 ac_status=$? 3435 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3436 test $ac_status = 0; }; then : 3437 for ac_file in conftest.o conftest.obj conftest.*; do 3438 test -f "$ac_file" || continue; 3439 case $ac_file in 3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3441 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3442 break;; 3443 esac 3444done 3445else 3446 $as_echo "$as_me: failed program was:" >&5 3447sed 's/^/| /' conftest.$ac_ext >&5 3448 3449{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3450$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3451as_fn_error $? "cannot compute suffix of object files: cannot compile 3452See \`config.log' for more details" "$LINENO" 5; } 3453fi 3454rm -f conftest.$ac_cv_objext conftest.$ac_ext 3455fi 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3457$as_echo "$ac_cv_objext" >&6; } 3458OBJEXT=$ac_cv_objext 3459ac_objext=$OBJEXT 3460{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3461$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3462if ${ac_cv_c_compiler_gnu+:} false; then : 3463 $as_echo_n "(cached) " >&6 3464else 3465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3466/* end confdefs.h. */ 3467 3468int 3469main () 3470{ 3471#ifndef __GNUC__ 3472 choke me 3473#endif 3474 3475 ; 3476 return 0; 3477} 3478_ACEOF 3479if ac_fn_c_try_compile "$LINENO"; then : 3480 ac_compiler_gnu=yes 3481else 3482 ac_compiler_gnu=no 3483fi 3484rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3485ac_cv_c_compiler_gnu=$ac_compiler_gnu 3486 3487fi 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3489$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3490if test $ac_compiler_gnu = yes; then 3491 GCC=yes 3492else 3493 GCC= 3494fi 3495ac_test_CFLAGS=${CFLAGS+set} 3496ac_save_CFLAGS=$CFLAGS 3497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3498$as_echo_n "checking whether $CC accepts -g... " >&6; } 3499if ${ac_cv_prog_cc_g+:} false; then : 3500 $as_echo_n "(cached) " >&6 3501else 3502 ac_save_c_werror_flag=$ac_c_werror_flag 3503 ac_c_werror_flag=yes 3504 ac_cv_prog_cc_g=no 3505 CFLAGS="-g" 3506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3507/* end confdefs.h. */ 3508 3509int 3510main () 3511{ 3512 3513 ; 3514 return 0; 3515} 3516_ACEOF 3517if ac_fn_c_try_compile "$LINENO"; then : 3518 ac_cv_prog_cc_g=yes 3519else 3520 CFLAGS="" 3521 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3522/* end confdefs.h. */ 3523 3524int 3525main () 3526{ 3527 3528 ; 3529 return 0; 3530} 3531_ACEOF 3532if ac_fn_c_try_compile "$LINENO"; then : 3533 3534else 3535 ac_c_werror_flag=$ac_save_c_werror_flag 3536 CFLAGS="-g" 3537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3538/* end confdefs.h. */ 3539 3540int 3541main () 3542{ 3543 3544 ; 3545 return 0; 3546} 3547_ACEOF 3548if ac_fn_c_try_compile "$LINENO"; then : 3549 ac_cv_prog_cc_g=yes 3550fi 3551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3552fi 3553rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3554fi 3555rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3556 ac_c_werror_flag=$ac_save_c_werror_flag 3557fi 3558{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3559$as_echo "$ac_cv_prog_cc_g" >&6; } 3560if test "$ac_test_CFLAGS" = set; then 3561 CFLAGS=$ac_save_CFLAGS 3562elif test $ac_cv_prog_cc_g = yes; then 3563 if test "$GCC" = yes; then 3564 CFLAGS="-g -O2" 3565 else 3566 CFLAGS="-g" 3567 fi 3568else 3569 if test "$GCC" = yes; then 3570 CFLAGS="-O2" 3571 else 3572 CFLAGS= 3573 fi 3574fi 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3576$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3577if ${ac_cv_prog_cc_c89+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 ac_cv_prog_cc_c89=no 3581ac_save_CC=$CC 3582cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3583/* end confdefs.h. */ 3584#include <stdarg.h> 3585#include <stdio.h> 3586#include <sys/types.h> 3587#include <sys/stat.h> 3588/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3589struct buf { int x; }; 3590FILE * (*rcsopen) (struct buf *, struct stat *, int); 3591static char *e (p, i) 3592 char **p; 3593 int i; 3594{ 3595 return p[i]; 3596} 3597static char *f (char * (*g) (char **, int), char **p, ...) 3598{ 3599 char *s; 3600 va_list v; 3601 va_start (v,p); 3602 s = g (p, va_arg (v,int)); 3603 va_end (v); 3604 return s; 3605} 3606 3607/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3608 function prototypes and stuff, but not '\xHH' hex character constants. 3609 These don't provoke an error unfortunately, instead are silently treated 3610 as 'x'. The following induces an error, until -std is added to get 3611 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3612 array size at least. It's necessary to write '\x00'==0 to get something 3613 that's true only with -std. */ 3614int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3615 3616/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3617 inside strings and character constants. */ 3618#define FOO(x) 'x' 3619int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3620 3621int test (int i, double x); 3622struct s1 {int (*f) (int a);}; 3623struct s2 {int (*f) (double a);}; 3624int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3625int argc; 3626char **argv; 3627int 3628main () 3629{ 3630return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3631 ; 3632 return 0; 3633} 3634_ACEOF 3635for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3636 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3637do 3638 CC="$ac_save_CC $ac_arg" 3639 if ac_fn_c_try_compile "$LINENO"; then : 3640 ac_cv_prog_cc_c89=$ac_arg 3641fi 3642rm -f core conftest.err conftest.$ac_objext 3643 test "x$ac_cv_prog_cc_c89" != "xno" && break 3644done 3645rm -f conftest.$ac_ext 3646CC=$ac_save_CC 3647 3648fi 3649# AC_CACHE_VAL 3650case "x$ac_cv_prog_cc_c89" in 3651 x) 3652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3653$as_echo "none needed" >&6; } ;; 3654 xno) 3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3656$as_echo "unsupported" >&6; } ;; 3657 *) 3658 CC="$CC $ac_cv_prog_cc_c89" 3659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3660$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3661esac 3662if test "x$ac_cv_prog_cc_c89" != xno; then : 3663 3664fi 3665 3666ac_ext=c 3667ac_cpp='$CPP $CPPFLAGS' 3668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3670ac_compiler_gnu=$ac_cv_c_compiler_gnu 3671 3672depcc="$CC" am_compiler_list= 3673 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3675$as_echo_n "checking dependency style of $depcc... " >&6; } 3676if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3680 # We make a subdir and do the tests there. Otherwise we can end up 3681 # making bogus files that we don't know about and never remove. For 3682 # instance it was reported that on HP-UX the gcc test will end up 3683 # making a dummy file named `D' -- because `-MD' means `put the output 3684 # in D'. 3685 mkdir conftest.dir 3686 # Copy depcomp to subdir because otherwise we won't find it if we're 3687 # using a relative directory. 3688 cp "$am_depcomp" conftest.dir 3689 cd conftest.dir 3690 # We will build objects and dependencies in a subdirectory because 3691 # it helps to detect inapplicable dependency modes. For instance 3692 # both Tru64's cc and ICC support -MD to output dependencies as a 3693 # side effect of compilation, but ICC will put the dependencies in 3694 # the current directory while Tru64 will put them in the object 3695 # directory. 3696 mkdir sub 3697 3698 am_cv_CC_dependencies_compiler_type=none 3699 if test "$am_compiler_list" = ""; then 3700 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3701 fi 3702 am__universal=false 3703 case " $depcc " in #( 3704 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3705 esac 3706 3707 for depmode in $am_compiler_list; do 3708 # Setup a source with many dependencies, because some compilers 3709 # like to wrap large dependency lists on column 80 (with \), and 3710 # we should not choose a depcomp mode which is confused by this. 3711 # 3712 # We need to recreate these files for each test, as the compiler may 3713 # overwrite some of them when testing with obscure command lines. 3714 # This happens at least with the AIX C compiler. 3715 : > sub/conftest.c 3716 for i in 1 2 3 4 5 6; do 3717 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3718 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3719 # Solaris 8's {/usr,}/bin/sh. 3720 touch sub/conftst$i.h 3721 done 3722 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3723 3724 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3725 # mode. It turns out that the SunPro C++ compiler does not properly 3726 # handle `-M -o', and we need to detect this. Also, some Intel 3727 # versions had trouble with output in subdirs 3728 am__obj=sub/conftest.${OBJEXT-o} 3729 am__minus_obj="-o $am__obj" 3730 case $depmode in 3731 gcc) 3732 # This depmode causes a compiler race in universal mode. 3733 test "$am__universal" = false || continue 3734 ;; 3735 nosideeffect) 3736 # after this tag, mechanisms are not by side-effect, so they'll 3737 # only be used when explicitly requested 3738 if test "x$enable_dependency_tracking" = xyes; then 3739 continue 3740 else 3741 break 3742 fi 3743 ;; 3744 msvisualcpp | msvcmsys) 3745 # This compiler won't grok `-c -o', but also, the minuso test has 3746 # not run yet. These depmodes are late enough in the game, and 3747 # so weak that their functioning should not be impacted. 3748 am__obj=conftest.${OBJEXT-o} 3749 am__minus_obj= 3750 ;; 3751 none) break ;; 3752 esac 3753 if depmode=$depmode \ 3754 source=sub/conftest.c object=$am__obj \ 3755 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3756 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3757 >/dev/null 2>conftest.err && 3758 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3759 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3760 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3761 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3762 # icc doesn't choke on unknown options, it will just issue warnings 3763 # or remarks (even with -Werror). So we grep stderr for any message 3764 # that says an option was ignored or not supported. 3765 # When given -MP, icc 7.0 and 7.1 complain thusly: 3766 # icc: Command line warning: ignoring option '-M'; no argument required 3767 # The diagnosis changed in icc 8.0: 3768 # icc: Command line remark: option '-MP' not supported 3769 if (grep 'ignoring option' conftest.err || 3770 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3771 am_cv_CC_dependencies_compiler_type=$depmode 3772 break 3773 fi 3774 fi 3775 done 3776 3777 cd .. 3778 rm -rf conftest.dir 3779else 3780 am_cv_CC_dependencies_compiler_type=none 3781fi 3782 3783fi 3784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3785$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3786CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3787 3788 if 3789 test "x$enable_dependency_tracking" != xno \ 3790 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3791 am__fastdepCC_TRUE= 3792 am__fastdepCC_FALSE='#' 3793else 3794 am__fastdepCC_TRUE='#' 3795 am__fastdepCC_FALSE= 3796fi 3797 3798 3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3800$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3801if ${ac_cv_prog_cc_c99+:} false; then : 3802 $as_echo_n "(cached) " >&6 3803else 3804 ac_cv_prog_cc_c99=no 3805ac_save_CC=$CC 3806cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3807/* end confdefs.h. */ 3808#include <stdarg.h> 3809#include <stdbool.h> 3810#include <stdlib.h> 3811#include <wchar.h> 3812#include <stdio.h> 3813 3814// Check varargs macros. These examples are taken from C99 6.10.3.5. 3815#define debug(...) fprintf (stderr, __VA_ARGS__) 3816#define showlist(...) puts (#__VA_ARGS__) 3817#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3818static void 3819test_varargs_macros (void) 3820{ 3821 int x = 1234; 3822 int y = 5678; 3823 debug ("Flag"); 3824 debug ("X = %d\n", x); 3825 showlist (The first, second, and third items.); 3826 report (x>y, "x is %d but y is %d", x, y); 3827} 3828 3829// Check long long types. 3830#define BIG64 18446744073709551615ull 3831#define BIG32 4294967295ul 3832#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3833#if !BIG_OK 3834 your preprocessor is broken; 3835#endif 3836#if BIG_OK 3837#else 3838 your preprocessor is broken; 3839#endif 3840static long long int bignum = -9223372036854775807LL; 3841static unsigned long long int ubignum = BIG64; 3842 3843struct incomplete_array 3844{ 3845 int datasize; 3846 double data[]; 3847}; 3848 3849struct named_init { 3850 int number; 3851 const wchar_t *name; 3852 double average; 3853}; 3854 3855typedef const char *ccp; 3856 3857static inline int 3858test_restrict (ccp restrict text) 3859{ 3860 // See if C++-style comments work. 3861 // Iterate through items via the restricted pointer. 3862 // Also check for declarations in for loops. 3863 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3864 continue; 3865 return 0; 3866} 3867 3868// Check varargs and va_copy. 3869static void 3870test_varargs (const char *format, ...) 3871{ 3872 va_list args; 3873 va_start (args, format); 3874 va_list args_copy; 3875 va_copy (args_copy, args); 3876 3877 const char *str; 3878 int number; 3879 float fnumber; 3880 3881 while (*format) 3882 { 3883 switch (*format++) 3884 { 3885 case 's': // string 3886 str = va_arg (args_copy, const char *); 3887 break; 3888 case 'd': // int 3889 number = va_arg (args_copy, int); 3890 break; 3891 case 'f': // float 3892 fnumber = va_arg (args_copy, double); 3893 break; 3894 default: 3895 break; 3896 } 3897 } 3898 va_end (args_copy); 3899 va_end (args); 3900} 3901 3902int 3903main () 3904{ 3905 3906 // Check bool. 3907 _Bool success = false; 3908 3909 // Check restrict. 3910 if (test_restrict ("String literal") == 0) 3911 success = true; 3912 char *restrict newvar = "Another string"; 3913 3914 // Check varargs. 3915 test_varargs ("s, d' f .", "string", 65, 34.234); 3916 test_varargs_macros (); 3917 3918 // Check flexible array members. 3919 struct incomplete_array *ia = 3920 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3921 ia->datasize = 10; 3922 for (int i = 0; i < ia->datasize; ++i) 3923 ia->data[i] = i * 1.234; 3924 3925 // Check named initializers. 3926 struct named_init ni = { 3927 .number = 34, 3928 .name = L"Test wide string", 3929 .average = 543.34343, 3930 }; 3931 3932 ni.number = 58; 3933 3934 int dynamic_array[ni.number]; 3935 dynamic_array[ni.number - 1] = 543; 3936 3937 // work around unused variable warnings 3938 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3939 || dynamic_array[ni.number - 1] != 543); 3940 3941 ; 3942 return 0; 3943} 3944_ACEOF 3945for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3946do 3947 CC="$ac_save_CC $ac_arg" 3948 if ac_fn_c_try_compile "$LINENO"; then : 3949 ac_cv_prog_cc_c99=$ac_arg 3950fi 3951rm -f core conftest.err conftest.$ac_objext 3952 test "x$ac_cv_prog_cc_c99" != "xno" && break 3953done 3954rm -f conftest.$ac_ext 3955CC=$ac_save_CC 3956 3957fi 3958# AC_CACHE_VAL 3959case "x$ac_cv_prog_cc_c99" in 3960 x) 3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3962$as_echo "none needed" >&6; } ;; 3963 xno) 3964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3965$as_echo "unsupported" >&6; } ;; 3966 *) 3967 CC="$CC $ac_cv_prog_cc_c99" 3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3969$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3970esac 3971if test "x$ac_cv_prog_cc_c99" != xno; then : 3972 3973fi 3974 3975 3976 3977ac_ext=c 3978ac_cpp='$CPP $CPPFLAGS' 3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3981ac_compiler_gnu=$ac_cv_c_compiler_gnu 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3983$as_echo_n "checking how to run the C preprocessor... " >&6; } 3984# On Suns, sometimes $CPP names a directory. 3985if test -n "$CPP" && test -d "$CPP"; then 3986 CPP= 3987fi 3988if test -z "$CPP"; then 3989 if ${ac_cv_prog_CPP+:} false; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 # Double quotes because CPP needs to be expanded 3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3994 do 3995 ac_preproc_ok=false 3996for ac_c_preproc_warn_flag in '' yes 3997do 3998 # Use a header file that comes with gcc, so configuring glibc 3999 # with a fresh cross-compiler works. 4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4001 # <limits.h> exists even on freestanding compilers. 4002 # On the NeXT, cc -E runs the code through the compiler's parser, 4003 # not just through cpp. "Syntax error" is here to catch this case. 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006#ifdef __STDC__ 4007# include <limits.h> 4008#else 4009# include <assert.h> 4010#endif 4011 Syntax error 4012_ACEOF 4013if ac_fn_c_try_cpp "$LINENO"; then : 4014 4015else 4016 # Broken: fails on valid input. 4017continue 4018fi 4019rm -f conftest.err conftest.i conftest.$ac_ext 4020 4021 # OK, works on sane cases. Now check whether nonexistent headers 4022 # can be detected and how. 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025#include <ac_nonexistent.h> 4026_ACEOF 4027if ac_fn_c_try_cpp "$LINENO"; then : 4028 # Broken: success on invalid input. 4029continue 4030else 4031 # Passes both tests. 4032ac_preproc_ok=: 4033break 4034fi 4035rm -f conftest.err conftest.i conftest.$ac_ext 4036 4037done 4038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4039rm -f conftest.i conftest.err conftest.$ac_ext 4040if $ac_preproc_ok; then : 4041 break 4042fi 4043 4044 done 4045 ac_cv_prog_CPP=$CPP 4046 4047fi 4048 CPP=$ac_cv_prog_CPP 4049else 4050 ac_cv_prog_CPP=$CPP 4051fi 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4053$as_echo "$CPP" >&6; } 4054ac_preproc_ok=false 4055for ac_c_preproc_warn_flag in '' yes 4056do 4057 # Use a header file that comes with gcc, so configuring glibc 4058 # with a fresh cross-compiler works. 4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4060 # <limits.h> exists even on freestanding compilers. 4061 # On the NeXT, cc -E runs the code through the compiler's parser, 4062 # not just through cpp. "Syntax error" is here to catch this case. 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065#ifdef __STDC__ 4066# include <limits.h> 4067#else 4068# include <assert.h> 4069#endif 4070 Syntax error 4071_ACEOF 4072if ac_fn_c_try_cpp "$LINENO"; then : 4073 4074else 4075 # Broken: fails on valid input. 4076continue 4077fi 4078rm -f conftest.err conftest.i conftest.$ac_ext 4079 4080 # OK, works on sane cases. Now check whether nonexistent headers 4081 # can be detected and how. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#include <ac_nonexistent.h> 4085_ACEOF 4086if ac_fn_c_try_cpp "$LINENO"; then : 4087 # Broken: success on invalid input. 4088continue 4089else 4090 # Passes both tests. 4091ac_preproc_ok=: 4092break 4093fi 4094rm -f conftest.err conftest.i conftest.$ac_ext 4095 4096done 4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4098rm -f conftest.i conftest.err conftest.$ac_ext 4099if $ac_preproc_ok; then : 4100 4101else 4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4104as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4105See \`config.log' for more details" "$LINENO" 5; } 4106fi 4107 4108ac_ext=c 4109ac_cpp='$CPP $CPPFLAGS' 4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4112ac_compiler_gnu=$ac_cv_c_compiler_gnu 4113 4114 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4116$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4117if ${ac_cv_path_GREP+:} false; then : 4118 $as_echo_n "(cached) " >&6 4119else 4120 if test -z "$GREP"; then 4121 ac_path_GREP_found=false 4122 # Loop through the user's path and test for each of PROGNAME-LIST 4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4125do 4126 IFS=$as_save_IFS 4127 test -z "$as_dir" && as_dir=. 4128 for ac_prog in grep ggrep; do 4129 for ac_exec_ext in '' $ac_executable_extensions; do 4130 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4131 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4132# Check for GNU ac_path_GREP and select it if it is found. 4133 # Check for GNU $ac_path_GREP 4134case `"$ac_path_GREP" --version 2>&1` in 4135*GNU*) 4136 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4137*) 4138 ac_count=0 4139 $as_echo_n 0123456789 >"conftest.in" 4140 while : 4141 do 4142 cat "conftest.in" "conftest.in" >"conftest.tmp" 4143 mv "conftest.tmp" "conftest.in" 4144 cp "conftest.in" "conftest.nl" 4145 $as_echo 'GREP' >> "conftest.nl" 4146 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4148 as_fn_arith $ac_count + 1 && ac_count=$as_val 4149 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4150 # Best one so far, save it but keep looking for a better one 4151 ac_cv_path_GREP="$ac_path_GREP" 4152 ac_path_GREP_max=$ac_count 4153 fi 4154 # 10*(2^10) chars as input seems more than enough 4155 test $ac_count -gt 10 && break 4156 done 4157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4158esac 4159 4160 $ac_path_GREP_found && break 3 4161 done 4162 done 4163 done 4164IFS=$as_save_IFS 4165 if test -z "$ac_cv_path_GREP"; then 4166 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4167 fi 4168else 4169 ac_cv_path_GREP=$GREP 4170fi 4171 4172fi 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4174$as_echo "$ac_cv_path_GREP" >&6; } 4175 GREP="$ac_cv_path_GREP" 4176 4177 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4179$as_echo_n "checking for egrep... " >&6; } 4180if ${ac_cv_path_EGREP+:} false; then : 4181 $as_echo_n "(cached) " >&6 4182else 4183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4184 then ac_cv_path_EGREP="$GREP -E" 4185 else 4186 if test -z "$EGREP"; then 4187 ac_path_EGREP_found=false 4188 # Loop through the user's path and test for each of PROGNAME-LIST 4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4191do 4192 IFS=$as_save_IFS 4193 test -z "$as_dir" && as_dir=. 4194 for ac_prog in egrep; do 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4198# Check for GNU ac_path_EGREP and select it if it is found. 4199 # Check for GNU $ac_path_EGREP 4200case `"$ac_path_EGREP" --version 2>&1` in 4201*GNU*) 4202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4203*) 4204 ac_count=0 4205 $as_echo_n 0123456789 >"conftest.in" 4206 while : 4207 do 4208 cat "conftest.in" "conftest.in" >"conftest.tmp" 4209 mv "conftest.tmp" "conftest.in" 4210 cp "conftest.in" "conftest.nl" 4211 $as_echo 'EGREP' >> "conftest.nl" 4212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4214 as_fn_arith $ac_count + 1 && ac_count=$as_val 4215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4216 # Best one so far, save it but keep looking for a better one 4217 ac_cv_path_EGREP="$ac_path_EGREP" 4218 ac_path_EGREP_max=$ac_count 4219 fi 4220 # 10*(2^10) chars as input seems more than enough 4221 test $ac_count -gt 10 && break 4222 done 4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4224esac 4225 4226 $ac_path_EGREP_found && break 3 4227 done 4228 done 4229 done 4230IFS=$as_save_IFS 4231 if test -z "$ac_cv_path_EGREP"; then 4232 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4233 fi 4234else 4235 ac_cv_path_EGREP=$EGREP 4236fi 4237 4238 fi 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4241$as_echo "$ac_cv_path_EGREP" >&6; } 4242 EGREP="$ac_cv_path_EGREP" 4243 4244 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4246$as_echo_n "checking for ANSI C header files... " >&6; } 4247if ${ac_cv_header_stdc+:} false; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252#include <stdlib.h> 4253#include <stdarg.h> 4254#include <string.h> 4255#include <float.h> 4256 4257int 4258main () 4259{ 4260 4261 ; 4262 return 0; 4263} 4264_ACEOF 4265if ac_fn_c_try_compile "$LINENO"; then : 4266 ac_cv_header_stdc=yes 4267else 4268 ac_cv_header_stdc=no 4269fi 4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4271 4272if test $ac_cv_header_stdc = yes; then 4273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276#include <string.h> 4277 4278_ACEOF 4279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4280 $EGREP "memchr" >/dev/null 2>&1; then : 4281 4282else 4283 ac_cv_header_stdc=no 4284fi 4285rm -f conftest* 4286 4287fi 4288 4289if test $ac_cv_header_stdc = yes; then 4290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293#include <stdlib.h> 4294 4295_ACEOF 4296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4297 $EGREP "free" >/dev/null 2>&1; then : 4298 4299else 4300 ac_cv_header_stdc=no 4301fi 4302rm -f conftest* 4303 4304fi 4305 4306if test $ac_cv_header_stdc = yes; then 4307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4308 if test "$cross_compiling" = yes; then : 4309 : 4310else 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#include <ctype.h> 4314#include <stdlib.h> 4315#if ((' ' & 0x0FF) == 0x020) 4316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4318#else 4319# define ISLOWER(c) \ 4320 (('a' <= (c) && (c) <= 'i') \ 4321 || ('j' <= (c) && (c) <= 'r') \ 4322 || ('s' <= (c) && (c) <= 'z')) 4323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4324#endif 4325 4326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4327int 4328main () 4329{ 4330 int i; 4331 for (i = 0; i < 256; i++) 4332 if (XOR (islower (i), ISLOWER (i)) 4333 || toupper (i) != TOUPPER (i)) 4334 return 2; 4335 return 0; 4336} 4337_ACEOF 4338if ac_fn_c_try_run "$LINENO"; then : 4339 4340else 4341 ac_cv_header_stdc=no 4342fi 4343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4344 conftest.$ac_objext conftest.beam conftest.$ac_ext 4345fi 4346 4347fi 4348fi 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4350$as_echo "$ac_cv_header_stdc" >&6; } 4351if test $ac_cv_header_stdc = yes; then 4352 4353$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4354 4355fi 4356 4357# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4358for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4359 inttypes.h stdint.h unistd.h 4360do : 4361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4362ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4363" 4364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4365 cat >>confdefs.h <<_ACEOF 4366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4367_ACEOF 4368 4369fi 4370 4371done 4372 4373 4374 4375 4376if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4377 if test -n "$ac_tool_prefix"; then 4378 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4379set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4380{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4381$as_echo_n "checking for $ac_word... " >&6; } 4382if ${ac_cv_path_PKG_CONFIG+:} false; then : 4383 $as_echo_n "(cached) " >&6 4384else 4385 case $PKG_CONFIG in 4386 [\\/]* | ?:[\\/]*) 4387 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4388 ;; 4389 *) 4390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4391for as_dir in $PATH 4392do 4393 IFS=$as_save_IFS 4394 test -z "$as_dir" && as_dir=. 4395 for ac_exec_ext in '' $ac_executable_extensions; do 4396 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4397 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4399 break 2 4400 fi 4401done 4402 done 4403IFS=$as_save_IFS 4404 4405 ;; 4406esac 4407fi 4408PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4409if test -n "$PKG_CONFIG"; then 4410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4411$as_echo "$PKG_CONFIG" >&6; } 4412else 4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4414$as_echo "no" >&6; } 4415fi 4416 4417 4418fi 4419if test -z "$ac_cv_path_PKG_CONFIG"; then 4420 ac_pt_PKG_CONFIG=$PKG_CONFIG 4421 # Extract the first word of "pkg-config", so it can be a program name with args. 4422set dummy pkg-config; ac_word=$2 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4424$as_echo_n "checking for $ac_word... " >&6; } 4425if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 case $ac_pt_PKG_CONFIG in 4429 [\\/]* | ?:[\\/]*) 4430 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4431 ;; 4432 *) 4433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4434for as_dir in $PATH 4435do 4436 IFS=$as_save_IFS 4437 test -z "$as_dir" && as_dir=. 4438 for ac_exec_ext in '' $ac_executable_extensions; do 4439 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4440 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4442 break 2 4443 fi 4444done 4445 done 4446IFS=$as_save_IFS 4447 4448 ;; 4449esac 4450fi 4451ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4452if test -n "$ac_pt_PKG_CONFIG"; then 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4454$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4455else 4456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4457$as_echo "no" >&6; } 4458fi 4459 4460 if test "x$ac_pt_PKG_CONFIG" = x; then 4461 PKG_CONFIG="" 4462 else 4463 case $cross_compiling:$ac_tool_warned in 4464yes:) 4465{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4466$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4467ac_tool_warned=yes ;; 4468esac 4469 PKG_CONFIG=$ac_pt_PKG_CONFIG 4470 fi 4471else 4472 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4473fi 4474 4475fi 4476if test -n "$PKG_CONFIG"; then 4477 _pkg_min_version=0.9.0 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4479$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4480 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4481 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4482$as_echo "yes" >&6; } 4483 else 4484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4485$as_echo "no" >&6; } 4486 PKG_CONFIG="" 4487 fi 4488 4489fi 4490# Make sure we can run config.sub. 4491$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4492 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4493 4494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4495$as_echo_n "checking build system type... " >&6; } 4496if ${ac_cv_build+:} false; then : 4497 $as_echo_n "(cached) " >&6 4498else 4499 ac_build_alias=$build_alias 4500test "x$ac_build_alias" = x && 4501 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4502test "x$ac_build_alias" = x && 4503 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4504ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4505 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4506 4507fi 4508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4509$as_echo "$ac_cv_build" >&6; } 4510case $ac_cv_build in 4511*-*-*) ;; 4512*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4513esac 4514build=$ac_cv_build 4515ac_save_IFS=$IFS; IFS='-' 4516set x $ac_cv_build 4517shift 4518build_cpu=$1 4519build_vendor=$2 4520shift; shift 4521# Remember, the first character of IFS is used to create $*, 4522# except with old shells: 4523build_os=$* 4524IFS=$ac_save_IFS 4525case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4526 4527 4528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4529$as_echo_n "checking host system type... " >&6; } 4530if ${ac_cv_host+:} false; then : 4531 $as_echo_n "(cached) " >&6 4532else 4533 if test "x$host_alias" = x; then 4534 ac_cv_host=$ac_cv_build 4535else 4536 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4537 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4538fi 4539 4540fi 4541{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4542$as_echo "$ac_cv_host" >&6; } 4543case $ac_cv_host in 4544*-*-*) ;; 4545*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4546esac 4547host=$ac_cv_host 4548ac_save_IFS=$IFS; IFS='-' 4549set x $ac_cv_host 4550shift 4551host_cpu=$1 4552host_vendor=$2 4553shift; shift 4554# Remember, the first character of IFS is used to create $*, 4555# except with old shells: 4556host_os=$* 4557IFS=$ac_save_IFS 4558case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4559 4560 4561{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4562$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4563if ${ac_cv_path_SED+:} false; then : 4564 $as_echo_n "(cached) " >&6 4565else 4566 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4567 for ac_i in 1 2 3 4 5 6 7; do 4568 ac_script="$ac_script$as_nl$ac_script" 4569 done 4570 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4571 { ac_script=; unset ac_script;} 4572 if test -z "$SED"; then 4573 ac_path_SED_found=false 4574 # Loop through the user's path and test for each of PROGNAME-LIST 4575 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4576for as_dir in $PATH 4577do 4578 IFS=$as_save_IFS 4579 test -z "$as_dir" && as_dir=. 4580 for ac_prog in sed gsed; do 4581 for ac_exec_ext in '' $ac_executable_extensions; do 4582 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4583 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4584# Check for GNU ac_path_SED and select it if it is found. 4585 # Check for GNU $ac_path_SED 4586case `"$ac_path_SED" --version 2>&1` in 4587*GNU*) 4588 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4589*) 4590 ac_count=0 4591 $as_echo_n 0123456789 >"conftest.in" 4592 while : 4593 do 4594 cat "conftest.in" "conftest.in" >"conftest.tmp" 4595 mv "conftest.tmp" "conftest.in" 4596 cp "conftest.in" "conftest.nl" 4597 $as_echo '' >> "conftest.nl" 4598 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4599 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4600 as_fn_arith $ac_count + 1 && ac_count=$as_val 4601 if test $ac_count -gt ${ac_path_SED_max-0}; then 4602 # Best one so far, save it but keep looking for a better one 4603 ac_cv_path_SED="$ac_path_SED" 4604 ac_path_SED_max=$ac_count 4605 fi 4606 # 10*(2^10) chars as input seems more than enough 4607 test $ac_count -gt 10 && break 4608 done 4609 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4610esac 4611 4612 $ac_path_SED_found && break 3 4613 done 4614 done 4615 done 4616IFS=$as_save_IFS 4617 if test -z "$ac_cv_path_SED"; then 4618 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4619 fi 4620else 4621 ac_cv_path_SED=$SED 4622fi 4623 4624fi 4625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4626$as_echo "$ac_cv_path_SED" >&6; } 4627 SED="$ac_cv_path_SED" 4628 rm -f conftest.sed 4629 4630 4631 4632 4633 4634if test "x$GCC" = xyes ; then 4635 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4636-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4637-Wbad-function-cast -Wformat=2" 4638 case `$CC -dumpversion` in 4639 3.4.* | 4.*) 4640 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4641 ;; 4642 esac 4643else 4644 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4645if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4646 SUNCC="yes" 4647else 4648 SUNCC="no" 4649fi 4650 4651 if test "x$SUNCC" = "xyes"; then 4652 CWARNFLAGS="-v" 4653 fi 4654fi 4655 4656 4657 4658# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4659 4660 4661 4662# Check whether --enable-strict-compilation was given. 4663if test "${enable_strict_compilation+set}" = set; then : 4664 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4665else 4666 STRICT_COMPILE=no 4667fi 4668 4669if test "x$STRICT_COMPILE" = "xyes"; then 4670 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4671if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4672 SUNCC="yes" 4673else 4674 SUNCC="no" 4675fi 4676 4677 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4678if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4679 INTELCC="yes" 4680else 4681 INTELCC="no" 4682fi 4683 4684 if test "x$GCC" = xyes ; then 4685 STRICT_CFLAGS="-pedantic -Werror" 4686 elif test "x$SUNCC" = "xyes"; then 4687 STRICT_CFLAGS="-errwarn" 4688 elif test "x$INTELCC" = "xyes"; then 4689 STRICT_CFLAGS="-Werror" 4690 fi 4691fi 4692CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4693 4694 4695 4696 4697cat >>confdefs.h <<_ACEOF 4698#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4699_ACEOF 4700 4701 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4702 if test "x$PVM" = "x"; then 4703 PVM="0" 4704 fi 4705 4706cat >>confdefs.h <<_ACEOF 4707#define PACKAGE_VERSION_MINOR $PVM 4708_ACEOF 4709 4710 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4711 if test "x$PVP" = "x"; then 4712 PVP="0" 4713 fi 4714 4715cat >>confdefs.h <<_ACEOF 4716#define PACKAGE_VERSION_PATCHLEVEL $PVP 4717_ACEOF 4718 4719 4720 4721CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4722mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4723|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4724echo 'git directory not found: installing possibly empty changelog.' >&2)" 4725 4726 4727 4728 4729macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4730INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4731mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4732|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4733echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4734 4735 4736 4737 4738 4739 4740if test x$APP_MAN_SUFFIX = x ; then 4741 APP_MAN_SUFFIX=1 4742fi 4743if test x$APP_MAN_DIR = x ; then 4744 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4745fi 4746 4747if test x$LIB_MAN_SUFFIX = x ; then 4748 LIB_MAN_SUFFIX=3 4749fi 4750if test x$LIB_MAN_DIR = x ; then 4751 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4752fi 4753 4754if test x$FILE_MAN_SUFFIX = x ; then 4755 case $host_os in 4756 solaris*) FILE_MAN_SUFFIX=4 ;; 4757 *) FILE_MAN_SUFFIX=5 ;; 4758 esac 4759fi 4760if test x$FILE_MAN_DIR = x ; then 4761 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4762fi 4763 4764if test x$MISC_MAN_SUFFIX = x ; then 4765 case $host_os in 4766 solaris*) MISC_MAN_SUFFIX=5 ;; 4767 *) MISC_MAN_SUFFIX=7 ;; 4768 esac 4769fi 4770if test x$MISC_MAN_DIR = x ; then 4771 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4772fi 4773 4774if test x$DRIVER_MAN_SUFFIX = x ; then 4775 case $host_os in 4776 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4777 *) DRIVER_MAN_SUFFIX=4 ;; 4778 esac 4779fi 4780if test x$DRIVER_MAN_DIR = x ; then 4781 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4782fi 4783 4784if test x$ADMIN_MAN_SUFFIX = x ; then 4785 case $host_os in 4786 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4787 *) ADMIN_MAN_SUFFIX=8 ;; 4788 esac 4789fi 4790if test x$ADMIN_MAN_DIR = x ; then 4791 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4792fi 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808XORG_MAN_PAGE="X Version 11" 4809 4810MAN_SUBSTS="\ 4811 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4812 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4813 -e 's|__xservername__|Xorg|g' \ 4814 -e 's|__xconfigfile__|xorg.conf|g' \ 4815 -e 's|__projectroot__|\$(prefix)|g' \ 4816 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4817 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4818 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4819 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4820 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4821 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4822 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4823 4824 4825 4826# Check whether --enable-silent-rules was given. 4827if test "${enable_silent_rules+set}" = set; then : 4828 enableval=$enable_silent_rules; 4829fi 4830 4831case $enable_silent_rules in 4832yes) AM_DEFAULT_VERBOSITY=0;; 4833no) AM_DEFAULT_VERBOSITY=1;; 4834*) AM_DEFAULT_VERBOSITY=0;; 4835esac 4836AM_BACKSLASH='\' 4837 4838 4839 4840 4841# Check whether --enable-docs was given. 4842if test "${enable_docs+set}" = set; then : 4843 enableval=$enable_docs; build_docs=$enableval 4844else 4845 build_docs=yes 4846fi 4847 4848 4849 if test x$build_docs = xyes; then 4850 ENABLE_DOCS_TRUE= 4851 ENABLE_DOCS_FALSE='#' 4852else 4853 ENABLE_DOCS_TRUE='#' 4854 ENABLE_DOCS_FALSE= 4855fi 4856 4857{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build documentation" >&5 4858$as_echo_n "checking whether to build documentation... " >&6; } 4859{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_docs" >&5 4860$as_echo "$build_docs" >&6; } 4861 4862 4863 4864 4865 4866# Check whether --with-xmlto was given. 4867if test "${with_xmlto+set}" = set; then : 4868 withval=$with_xmlto; use_xmlto=$withval 4869else 4870 use_xmlto=auto 4871fi 4872 4873 4874 4875if test "x$use_xmlto" = x"auto"; then 4876 # Extract the first word of "xmlto", so it can be a program name with args. 4877set dummy xmlto; ac_word=$2 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4879$as_echo_n "checking for $ac_word... " >&6; } 4880if ${ac_cv_path_XMLTO+:} false; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 case $XMLTO in 4884 [\\/]* | ?:[\\/]*) 4885 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 4886 ;; 4887 *) 4888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889for as_dir in $PATH 4890do 4891 IFS=$as_save_IFS 4892 test -z "$as_dir" && as_dir=. 4893 for ac_exec_ext in '' $ac_executable_extensions; do 4894 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4895 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4897 break 2 4898 fi 4899done 4900 done 4901IFS=$as_save_IFS 4902 4903 ;; 4904esac 4905fi 4906XMLTO=$ac_cv_path_XMLTO 4907if test -n "$XMLTO"; then 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 4909$as_echo "$XMLTO" >&6; } 4910else 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4912$as_echo "no" >&6; } 4913fi 4914 4915 4916 if test "x$XMLTO" = "x"; then 4917 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 4918$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 4919 have_xmlto=no 4920 else 4921 have_xmlto=yes 4922 fi 4923elif test "x$use_xmlto" = x"yes" ; then 4924 # Extract the first word of "xmlto", so it can be a program name with args. 4925set dummy xmlto; ac_word=$2 4926{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4927$as_echo_n "checking for $ac_word... " >&6; } 4928if ${ac_cv_path_XMLTO+:} false; then : 4929 $as_echo_n "(cached) " >&6 4930else 4931 case $XMLTO in 4932 [\\/]* | ?:[\\/]*) 4933 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 4934 ;; 4935 *) 4936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4937for as_dir in $PATH 4938do 4939 IFS=$as_save_IFS 4940 test -z "$as_dir" && as_dir=. 4941 for ac_exec_ext in '' $ac_executable_extensions; do 4942 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4943 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 4944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4945 break 2 4946 fi 4947done 4948 done 4949IFS=$as_save_IFS 4950 4951 ;; 4952esac 4953fi 4954XMLTO=$ac_cv_path_XMLTO 4955if test -n "$XMLTO"; then 4956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 4957$as_echo "$XMLTO" >&6; } 4958else 4959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4960$as_echo "no" >&6; } 4961fi 4962 4963 4964 if test "x$XMLTO" = "x"; then 4965 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 4966 fi 4967 have_xmlto=yes 4968elif test "x$use_xmlto" = x"no" ; then 4969 if test "x$XMLTO" != "x"; then 4970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 4971$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 4972 fi 4973 have_xmlto=no 4974else 4975 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 4976fi 4977 4978# Test for a minimum version of xmlto, if provided. 4979if test "$have_xmlto" = yes; then 4980 # scrape the xmlto version 4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 4982$as_echo_n "checking the xmlto version... " >&6; } 4983 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 4984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 4985$as_echo "$xmlto_version" >&6; } 4986 as_arg_v1=$xmlto_version 4987as_arg_v2=0.0.20 4988awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 4989case $? in #( 4990 1) : 4991 if test "x$use_xmlto" = xauto; then 4992 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 4993$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 4994 have_xmlto=no 4995 else 4996 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 4997 fi ;; #( 4998 0) : 4999 ;; #( 5000 2) : 5001 ;; #( 5002 *) : 5003 ;; 5004esac 5005fi 5006 5007# Test for the ability of xmlto to generate a text target 5008have_xmlto_text=no 5009cat > conftest.xml << "EOF" 5010EOF 5011if test "$have_xmlto" = yes; then : 5012 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 5013 have_xmlto_text=yes 5014else 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 5016$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 5017fi 5018fi 5019rm -f conftest.xml 5020 if test $have_xmlto_text = yes; then 5021 HAVE_XMLTO_TEXT_TRUE= 5022 HAVE_XMLTO_TEXT_FALSE='#' 5023else 5024 HAVE_XMLTO_TEXT_TRUE='#' 5025 HAVE_XMLTO_TEXT_FALSE= 5026fi 5027 5028 if test "$have_xmlto" = yes; then 5029 HAVE_XMLTO_TRUE= 5030 HAVE_XMLTO_FALSE='#' 5031else 5032 HAVE_XMLTO_TRUE='#' 5033 HAVE_XMLTO_FALSE= 5034fi 5035 5036 5037 5038 5039 5040 5041# Check whether --with-fop was given. 5042if test "${with_fop+set}" = set; then : 5043 withval=$with_fop; use_fop=$withval 5044else 5045 use_fop=auto 5046fi 5047 5048 5049 5050if test "x$use_fop" = x"auto"; then 5051 # Extract the first word of "fop", so it can be a program name with args. 5052set dummy fop; ac_word=$2 5053{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5054$as_echo_n "checking for $ac_word... " >&6; } 5055if ${ac_cv_path_FOP+:} false; then : 5056 $as_echo_n "(cached) " >&6 5057else 5058 case $FOP in 5059 [\\/]* | ?:[\\/]*) 5060 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5061 ;; 5062 *) 5063 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5064for as_dir in $PATH 5065do 5066 IFS=$as_save_IFS 5067 test -z "$as_dir" && as_dir=. 5068 for ac_exec_ext in '' $ac_executable_extensions; do 5069 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5070 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5071 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5072 break 2 5073 fi 5074done 5075 done 5076IFS=$as_save_IFS 5077 5078 ;; 5079esac 5080fi 5081FOP=$ac_cv_path_FOP 5082if test -n "$FOP"; then 5083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5084$as_echo "$FOP" >&6; } 5085else 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5087$as_echo "no" >&6; } 5088fi 5089 5090 5091 if test "x$FOP" = "x"; then 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 5093$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 5094 have_fop=no 5095 else 5096 have_fop=yes 5097 fi 5098elif test "x$use_fop" = x"yes" ; then 5099 # Extract the first word of "fop", so it can be a program name with args. 5100set dummy fop; ac_word=$2 5101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5102$as_echo_n "checking for $ac_word... " >&6; } 5103if ${ac_cv_path_FOP+:} false; then : 5104 $as_echo_n "(cached) " >&6 5105else 5106 case $FOP in 5107 [\\/]* | ?:[\\/]*) 5108 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5109 ;; 5110 *) 5111 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5112for as_dir in $PATH 5113do 5114 IFS=$as_save_IFS 5115 test -z "$as_dir" && as_dir=. 5116 for ac_exec_ext in '' $ac_executable_extensions; do 5117 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5118 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5119 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5120 break 2 5121 fi 5122done 5123 done 5124IFS=$as_save_IFS 5125 5126 ;; 5127esac 5128fi 5129FOP=$ac_cv_path_FOP 5130if test -n "$FOP"; then 5131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5132$as_echo "$FOP" >&6; } 5133else 5134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5135$as_echo "no" >&6; } 5136fi 5137 5138 5139 if test "x$FOP" = "x"; then 5140 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 5141 fi 5142 have_fop=yes 5143elif test "x$use_fop" = x"no" ; then 5144 if test "x$FOP" != "x"; then 5145 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 5146$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 5147 fi 5148 have_fop=no 5149else 5150 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 5151fi 5152 if test "$have_fop" = yes; then 5153 HAVE_FOP_TRUE= 5154 HAVE_FOP_FALSE='#' 5155else 5156 HAVE_FOP_TRUE='#' 5157 HAVE_FOP_FALSE= 5158fi 5159 5160 5161 5162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 5163$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; } 5164XORG_SGML_PATH= 5165if test -n "$PKG_CONFIG" && \ 5166 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 5167 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 5168 ac_status=$? 5169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5170 test $ac_status = 0; }; then 5171 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 5172else 5173 : 5174 5175fi 5176 5177# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 5178# the path and the name of the doc stylesheet 5179if test "x$XORG_SGML_PATH" != "x" ; then 5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 5181$as_echo "$XORG_SGML_PATH" >&6; } 5182 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 5183 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 5184else 5185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5186$as_echo "no" >&6; } 5187fi 5188 5189 5190 5191 5192 if test "x$XSL_STYLESHEET" != "x"; then 5193 HAVE_STYLESHEETS_TRUE= 5194 HAVE_STYLESHEETS_FALSE='#' 5195else 5196 HAVE_STYLESHEETS_TRUE='#' 5197 HAVE_STYLESHEETS_FALSE= 5198fi 5199 5200 5201 5202{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5203$as_echo_n "checking whether ln -s works... " >&6; } 5204LN_S=$as_ln_s 5205if test "$LN_S" = "ln -s"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5207$as_echo "yes" >&6; } 5208else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5210$as_echo "no, using $LN_S" >&6; } 5211fi 5212 5213enable_win32_dll=yes 5214 5215case $host in 5216*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 5217 if test -n "$ac_tool_prefix"; then 5218 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 5219set dummy ${ac_tool_prefix}as; ac_word=$2 5220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5221$as_echo_n "checking for $ac_word... " >&6; } 5222if ${ac_cv_prog_AS+:} false; then : 5223 $as_echo_n "(cached) " >&6 5224else 5225 if test -n "$AS"; then 5226 ac_cv_prog_AS="$AS" # Let the user override the test. 5227else 5228as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5229for as_dir in $PATH 5230do 5231 IFS=$as_save_IFS 5232 test -z "$as_dir" && as_dir=. 5233 for ac_exec_ext in '' $ac_executable_extensions; do 5234 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5235 ac_cv_prog_AS="${ac_tool_prefix}as" 5236 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5237 break 2 5238 fi 5239done 5240 done 5241IFS=$as_save_IFS 5242 5243fi 5244fi 5245AS=$ac_cv_prog_AS 5246if test -n "$AS"; then 5247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 5248$as_echo "$AS" >&6; } 5249else 5250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5251$as_echo "no" >&6; } 5252fi 5253 5254 5255fi 5256if test -z "$ac_cv_prog_AS"; then 5257 ac_ct_AS=$AS 5258 # Extract the first word of "as", so it can be a program name with args. 5259set dummy as; ac_word=$2 5260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5261$as_echo_n "checking for $ac_word... " >&6; } 5262if ${ac_cv_prog_ac_ct_AS+:} false; then : 5263 $as_echo_n "(cached) " >&6 5264else 5265 if test -n "$ac_ct_AS"; then 5266 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 5267else 5268as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5269for as_dir in $PATH 5270do 5271 IFS=$as_save_IFS 5272 test -z "$as_dir" && as_dir=. 5273 for ac_exec_ext in '' $ac_executable_extensions; do 5274 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5275 ac_cv_prog_ac_ct_AS="as" 5276 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5277 break 2 5278 fi 5279done 5280 done 5281IFS=$as_save_IFS 5282 5283fi 5284fi 5285ac_ct_AS=$ac_cv_prog_ac_ct_AS 5286if test -n "$ac_ct_AS"; then 5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 5288$as_echo "$ac_ct_AS" >&6; } 5289else 5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5291$as_echo "no" >&6; } 5292fi 5293 5294 if test "x$ac_ct_AS" = x; then 5295 AS="false" 5296 else 5297 case $cross_compiling:$ac_tool_warned in 5298yes:) 5299{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5300$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5301ac_tool_warned=yes ;; 5302esac 5303 AS=$ac_ct_AS 5304 fi 5305else 5306 AS="$ac_cv_prog_AS" 5307fi 5308 5309 if test -n "$ac_tool_prefix"; then 5310 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5311set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5313$as_echo_n "checking for $ac_word... " >&6; } 5314if ${ac_cv_prog_DLLTOOL+:} false; then : 5315 $as_echo_n "(cached) " >&6 5316else 5317 if test -n "$DLLTOOL"; then 5318 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5319else 5320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5321for as_dir in $PATH 5322do 5323 IFS=$as_save_IFS 5324 test -z "$as_dir" && as_dir=. 5325 for ac_exec_ext in '' $ac_executable_extensions; do 5326 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5327 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5329 break 2 5330 fi 5331done 5332 done 5333IFS=$as_save_IFS 5334 5335fi 5336fi 5337DLLTOOL=$ac_cv_prog_DLLTOOL 5338if test -n "$DLLTOOL"; then 5339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5340$as_echo "$DLLTOOL" >&6; } 5341else 5342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5343$as_echo "no" >&6; } 5344fi 5345 5346 5347fi 5348if test -z "$ac_cv_prog_DLLTOOL"; then 5349 ac_ct_DLLTOOL=$DLLTOOL 5350 # Extract the first word of "dlltool", so it can be a program name with args. 5351set dummy dlltool; ac_word=$2 5352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5353$as_echo_n "checking for $ac_word... " >&6; } 5354if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5355 $as_echo_n "(cached) " >&6 5356else 5357 if test -n "$ac_ct_DLLTOOL"; then 5358 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5359else 5360as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5361for as_dir in $PATH 5362do 5363 IFS=$as_save_IFS 5364 test -z "$as_dir" && as_dir=. 5365 for ac_exec_ext in '' $ac_executable_extensions; do 5366 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5367 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5368 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5369 break 2 5370 fi 5371done 5372 done 5373IFS=$as_save_IFS 5374 5375fi 5376fi 5377ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5378if test -n "$ac_ct_DLLTOOL"; then 5379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5380$as_echo "$ac_ct_DLLTOOL" >&6; } 5381else 5382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5383$as_echo "no" >&6; } 5384fi 5385 5386 if test "x$ac_ct_DLLTOOL" = x; then 5387 DLLTOOL="false" 5388 else 5389 case $cross_compiling:$ac_tool_warned in 5390yes:) 5391{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5392$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5393ac_tool_warned=yes ;; 5394esac 5395 DLLTOOL=$ac_ct_DLLTOOL 5396 fi 5397else 5398 DLLTOOL="$ac_cv_prog_DLLTOOL" 5399fi 5400 5401 if test -n "$ac_tool_prefix"; then 5402 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5403set dummy ${ac_tool_prefix}objdump; ac_word=$2 5404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5405$as_echo_n "checking for $ac_word... " >&6; } 5406if ${ac_cv_prog_OBJDUMP+:} false; then : 5407 $as_echo_n "(cached) " >&6 5408else 5409 if test -n "$OBJDUMP"; then 5410 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5411else 5412as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5413for as_dir in $PATH 5414do 5415 IFS=$as_save_IFS 5416 test -z "$as_dir" && as_dir=. 5417 for ac_exec_ext in '' $ac_executable_extensions; do 5418 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5419 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5420 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5421 break 2 5422 fi 5423done 5424 done 5425IFS=$as_save_IFS 5426 5427fi 5428fi 5429OBJDUMP=$ac_cv_prog_OBJDUMP 5430if test -n "$OBJDUMP"; then 5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5432$as_echo "$OBJDUMP" >&6; } 5433else 5434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5435$as_echo "no" >&6; } 5436fi 5437 5438 5439fi 5440if test -z "$ac_cv_prog_OBJDUMP"; then 5441 ac_ct_OBJDUMP=$OBJDUMP 5442 # Extract the first word of "objdump", so it can be a program name with args. 5443set dummy objdump; ac_word=$2 5444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5445$as_echo_n "checking for $ac_word... " >&6; } 5446if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5447 $as_echo_n "(cached) " >&6 5448else 5449 if test -n "$ac_ct_OBJDUMP"; then 5450 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5451else 5452as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5453for as_dir in $PATH 5454do 5455 IFS=$as_save_IFS 5456 test -z "$as_dir" && as_dir=. 5457 for ac_exec_ext in '' $ac_executable_extensions; do 5458 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5459 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5461 break 2 5462 fi 5463done 5464 done 5465IFS=$as_save_IFS 5466 5467fi 5468fi 5469ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5470if test -n "$ac_ct_OBJDUMP"; then 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5472$as_echo "$ac_ct_OBJDUMP" >&6; } 5473else 5474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5475$as_echo "no" >&6; } 5476fi 5477 5478 if test "x$ac_ct_OBJDUMP" = x; then 5479 OBJDUMP="false" 5480 else 5481 case $cross_compiling:$ac_tool_warned in 5482yes:) 5483{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5484$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5485ac_tool_warned=yes ;; 5486esac 5487 OBJDUMP=$ac_ct_OBJDUMP 5488 fi 5489else 5490 OBJDUMP="$ac_cv_prog_OBJDUMP" 5491fi 5492 5493 ;; 5494esac 5495 5496test -z "$AS" && AS=as 5497 5498 5499 5500 5501 5502test -z "$DLLTOOL" && DLLTOOL=dlltool 5503 5504 5505 5506 5507 5508test -z "$OBJDUMP" && OBJDUMP=objdump 5509 5510 5511 5512 5513 5514 5515 5516case `pwd` in 5517 *\ * | *\ *) 5518 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5519$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5520esac 5521 5522 5523 5524macro_version='2.2.10' 5525macro_revision='1.3175' 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539ltmain="$ac_aux_dir/ltmain.sh" 5540 5541# Backslashify metacharacters that are still active within 5542# double-quoted strings. 5543sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5544 5545# Same as above, but do not quote variable references. 5546double_quote_subst='s/\(["`\\]\)/\\\1/g' 5547 5548# Sed substitution to delay expansion of an escaped shell variable in a 5549# double_quote_subst'ed string. 5550delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5551 5552# Sed substitution to delay expansion of an escaped single quote. 5553delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5554 5555# Sed substitution to avoid accidental globbing in evaled expressions 5556no_glob_subst='s/\*/\\\*/g' 5557 5558ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5559ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5560ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5561 5562{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5563$as_echo_n "checking how to print strings... " >&6; } 5564# Test print first, because it will be a builtin if present. 5565if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5566 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5567 ECHO='print -r --' 5568elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5569 ECHO='printf %s\n' 5570else 5571 # Use this function as a fallback that always works. 5572 func_fallback_echo () 5573 { 5574 eval 'cat <<_LTECHO_EOF 5575$1 5576_LTECHO_EOF' 5577 } 5578 ECHO='func_fallback_echo' 5579fi 5580 5581# func_echo_all arg... 5582# Invoke $ECHO with all args, space-separated. 5583func_echo_all () 5584{ 5585 $ECHO "" 5586} 5587 5588case "$ECHO" in 5589 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5590$as_echo "printf" >&6; } ;; 5591 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5592$as_echo "print -r" >&6; } ;; 5593 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5594$as_echo "cat" >&6; } ;; 5595esac 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5611$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5612if ${ac_cv_path_SED+:} false; then : 5613 $as_echo_n "(cached) " >&6 5614else 5615 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5616 for ac_i in 1 2 3 4 5 6 7; do 5617 ac_script="$ac_script$as_nl$ac_script" 5618 done 5619 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5620 { ac_script=; unset ac_script;} 5621 if test -z "$SED"; then 5622 ac_path_SED_found=false 5623 # Loop through the user's path and test for each of PROGNAME-LIST 5624 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5625for as_dir in $PATH 5626do 5627 IFS=$as_save_IFS 5628 test -z "$as_dir" && as_dir=. 5629 for ac_prog in sed gsed; do 5630 for ac_exec_ext in '' $ac_executable_extensions; do 5631 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5632 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5633# Check for GNU ac_path_SED and select it if it is found. 5634 # Check for GNU $ac_path_SED 5635case `"$ac_path_SED" --version 2>&1` in 5636*GNU*) 5637 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5638*) 5639 ac_count=0 5640 $as_echo_n 0123456789 >"conftest.in" 5641 while : 5642 do 5643 cat "conftest.in" "conftest.in" >"conftest.tmp" 5644 mv "conftest.tmp" "conftest.in" 5645 cp "conftest.in" "conftest.nl" 5646 $as_echo '' >> "conftest.nl" 5647 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5648 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5649 as_fn_arith $ac_count + 1 && ac_count=$as_val 5650 if test $ac_count -gt ${ac_path_SED_max-0}; then 5651 # Best one so far, save it but keep looking for a better one 5652 ac_cv_path_SED="$ac_path_SED" 5653 ac_path_SED_max=$ac_count 5654 fi 5655 # 10*(2^10) chars as input seems more than enough 5656 test $ac_count -gt 10 && break 5657 done 5658 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5659esac 5660 5661 $ac_path_SED_found && break 3 5662 done 5663 done 5664 done 5665IFS=$as_save_IFS 5666 if test -z "$ac_cv_path_SED"; then 5667 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5668 fi 5669else 5670 ac_cv_path_SED=$SED 5671fi 5672 5673fi 5674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5675$as_echo "$ac_cv_path_SED" >&6; } 5676 SED="$ac_cv_path_SED" 5677 rm -f conftest.sed 5678 5679test -z "$SED" && SED=sed 5680Xsed="$SED -e 1s/^X//" 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5693$as_echo_n "checking for fgrep... " >&6; } 5694if ${ac_cv_path_FGREP+:} false; then : 5695 $as_echo_n "(cached) " >&6 5696else 5697 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5698 then ac_cv_path_FGREP="$GREP -F" 5699 else 5700 if test -z "$FGREP"; then 5701 ac_path_FGREP_found=false 5702 # Loop through the user's path and test for each of PROGNAME-LIST 5703 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5704for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5705do 5706 IFS=$as_save_IFS 5707 test -z "$as_dir" && as_dir=. 5708 for ac_prog in fgrep; do 5709 for ac_exec_ext in '' $ac_executable_extensions; do 5710 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5711 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5712# Check for GNU ac_path_FGREP and select it if it is found. 5713 # Check for GNU $ac_path_FGREP 5714case `"$ac_path_FGREP" --version 2>&1` in 5715*GNU*) 5716 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5717*) 5718 ac_count=0 5719 $as_echo_n 0123456789 >"conftest.in" 5720 while : 5721 do 5722 cat "conftest.in" "conftest.in" >"conftest.tmp" 5723 mv "conftest.tmp" "conftest.in" 5724 cp "conftest.in" "conftest.nl" 5725 $as_echo 'FGREP' >> "conftest.nl" 5726 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5727 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5728 as_fn_arith $ac_count + 1 && ac_count=$as_val 5729 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5730 # Best one so far, save it but keep looking for a better one 5731 ac_cv_path_FGREP="$ac_path_FGREP" 5732 ac_path_FGREP_max=$ac_count 5733 fi 5734 # 10*(2^10) chars as input seems more than enough 5735 test $ac_count -gt 10 && break 5736 done 5737 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5738esac 5739 5740 $ac_path_FGREP_found && break 3 5741 done 5742 done 5743 done 5744IFS=$as_save_IFS 5745 if test -z "$ac_cv_path_FGREP"; then 5746 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5747 fi 5748else 5749 ac_cv_path_FGREP=$FGREP 5750fi 5751 5752 fi 5753fi 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5755$as_echo "$ac_cv_path_FGREP" >&6; } 5756 FGREP="$ac_cv_path_FGREP" 5757 5758 5759test -z "$GREP" && GREP=grep 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779# Check whether --with-gnu-ld was given. 5780if test "${with_gnu_ld+set}" = set; then : 5781 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5782else 5783 with_gnu_ld=no 5784fi 5785 5786ac_prog=ld 5787if test "$GCC" = yes; then 5788 # Check if gcc -print-prog-name=ld gives a path. 5789 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5790$as_echo_n "checking for ld used by $CC... " >&6; } 5791 case $host in 5792 *-*-mingw*) 5793 # gcc leaves a trailing carriage return which upsets mingw 5794 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5795 *) 5796 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5797 esac 5798 case $ac_prog in 5799 # Accept absolute paths. 5800 [\\/]* | ?:[\\/]*) 5801 re_direlt='/[^/][^/]*/\.\./' 5802 # Canonicalize the pathname of ld 5803 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5804 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5805 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5806 done 5807 test -z "$LD" && LD="$ac_prog" 5808 ;; 5809 "") 5810 # If it fails, then pretend we aren't using GCC. 5811 ac_prog=ld 5812 ;; 5813 *) 5814 # If it is relative, then search for the first ld in PATH. 5815 with_gnu_ld=unknown 5816 ;; 5817 esac 5818elif test "$with_gnu_ld" = yes; then 5819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5820$as_echo_n "checking for GNU ld... " >&6; } 5821else 5822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5823$as_echo_n "checking for non-GNU ld... " >&6; } 5824fi 5825if ${lt_cv_path_LD+:} false; then : 5826 $as_echo_n "(cached) " >&6 5827else 5828 if test -z "$LD"; then 5829 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5830 for ac_dir in $PATH; do 5831 IFS="$lt_save_ifs" 5832 test -z "$ac_dir" && ac_dir=. 5833 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5834 lt_cv_path_LD="$ac_dir/$ac_prog" 5835 # Check to see if the program is GNU ld. I'd rather use --version, 5836 # but apparently some variants of GNU ld only accept -v. 5837 # Break only if it was the GNU/non-GNU ld that we prefer. 5838 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5839 *GNU* | *'with BFD'*) 5840 test "$with_gnu_ld" != no && break 5841 ;; 5842 *) 5843 test "$with_gnu_ld" != yes && break 5844 ;; 5845 esac 5846 fi 5847 done 5848 IFS="$lt_save_ifs" 5849else 5850 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5851fi 5852fi 5853 5854LD="$lt_cv_path_LD" 5855if test -n "$LD"; then 5856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5857$as_echo "$LD" >&6; } 5858else 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5860$as_echo "no" >&6; } 5861fi 5862test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5864$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5865if ${lt_cv_prog_gnu_ld+:} false; then : 5866 $as_echo_n "(cached) " >&6 5867else 5868 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5869case `$LD -v 2>&1 </dev/null` in 5870*GNU* | *'with BFD'*) 5871 lt_cv_prog_gnu_ld=yes 5872 ;; 5873*) 5874 lt_cv_prog_gnu_ld=no 5875 ;; 5876esac 5877fi 5878{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5879$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5880with_gnu_ld=$lt_cv_prog_gnu_ld 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5891$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5892if ${lt_cv_path_NM+:} false; then : 5893 $as_echo_n "(cached) " >&6 5894else 5895 if test -n "$NM"; then 5896 # Let the user override the test. 5897 lt_cv_path_NM="$NM" 5898else 5899 lt_nm_to_check="${ac_tool_prefix}nm" 5900 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5901 lt_nm_to_check="$lt_nm_to_check nm" 5902 fi 5903 for lt_tmp_nm in $lt_nm_to_check; do 5904 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5905 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5906 IFS="$lt_save_ifs" 5907 test -z "$ac_dir" && ac_dir=. 5908 tmp_nm="$ac_dir/$lt_tmp_nm" 5909 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5910 # Check to see if the nm accepts a BSD-compat flag. 5911 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5912 # nm: unknown option "B" ignored 5913 # Tru64's nm complains that /dev/null is an invalid object file 5914 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5915 */dev/null* | *'Invalid file or object type'*) 5916 lt_cv_path_NM="$tmp_nm -B" 5917 break 5918 ;; 5919 *) 5920 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5921 */dev/null*) 5922 lt_cv_path_NM="$tmp_nm -p" 5923 break 5924 ;; 5925 *) 5926 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5927 continue # so that we can try to find one that supports BSD flags 5928 ;; 5929 esac 5930 ;; 5931 esac 5932 fi 5933 done 5934 IFS="$lt_save_ifs" 5935 done 5936 : ${lt_cv_path_NM=no} 5937fi 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5940$as_echo "$lt_cv_path_NM" >&6; } 5941if test "$lt_cv_path_NM" != "no"; then 5942 NM="$lt_cv_path_NM" 5943else 5944 # Didn't find any BSD compatible name lister, look for dumpbin. 5945 if test -n "$DUMPBIN"; then : 5946 # Let the user override the test. 5947 else 5948 if test -n "$ac_tool_prefix"; then 5949 for ac_prog in dumpbin "link -dump" 5950 do 5951 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5952set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5953{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5954$as_echo_n "checking for $ac_word... " >&6; } 5955if ${ac_cv_prog_DUMPBIN+:} false; then : 5956 $as_echo_n "(cached) " >&6 5957else 5958 if test -n "$DUMPBIN"; then 5959 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5960else 5961as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5962for as_dir in $PATH 5963do 5964 IFS=$as_save_IFS 5965 test -z "$as_dir" && as_dir=. 5966 for ac_exec_ext in '' $ac_executable_extensions; do 5967 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5968 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5970 break 2 5971 fi 5972done 5973 done 5974IFS=$as_save_IFS 5975 5976fi 5977fi 5978DUMPBIN=$ac_cv_prog_DUMPBIN 5979if test -n "$DUMPBIN"; then 5980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5981$as_echo "$DUMPBIN" >&6; } 5982else 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5984$as_echo "no" >&6; } 5985fi 5986 5987 5988 test -n "$DUMPBIN" && break 5989 done 5990fi 5991if test -z "$DUMPBIN"; then 5992 ac_ct_DUMPBIN=$DUMPBIN 5993 for ac_prog in dumpbin "link -dump" 5994do 5995 # Extract the first word of "$ac_prog", so it can be a program name with args. 5996set dummy $ac_prog; ac_word=$2 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5998$as_echo_n "checking for $ac_word... " >&6; } 5999if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 if test -n "$ac_ct_DUMPBIN"; then 6003 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6004else 6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6006for as_dir in $PATH 6007do 6008 IFS=$as_save_IFS 6009 test -z "$as_dir" && as_dir=. 6010 for ac_exec_ext in '' $ac_executable_extensions; do 6011 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6012 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6014 break 2 6015 fi 6016done 6017 done 6018IFS=$as_save_IFS 6019 6020fi 6021fi 6022ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6023if test -n "$ac_ct_DUMPBIN"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6025$as_echo "$ac_ct_DUMPBIN" >&6; } 6026else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028$as_echo "no" >&6; } 6029fi 6030 6031 6032 test -n "$ac_ct_DUMPBIN" && break 6033done 6034 6035 if test "x$ac_ct_DUMPBIN" = x; then 6036 DUMPBIN=":" 6037 else 6038 case $cross_compiling:$ac_tool_warned in 6039yes:) 6040{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6041$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6042ac_tool_warned=yes ;; 6043esac 6044 DUMPBIN=$ac_ct_DUMPBIN 6045 fi 6046fi 6047 6048 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6049 *COFF*) 6050 DUMPBIN="$DUMPBIN -symbols" 6051 ;; 6052 *) 6053 DUMPBIN=: 6054 ;; 6055 esac 6056 fi 6057 6058 if test "$DUMPBIN" != ":"; then 6059 NM="$DUMPBIN" 6060 fi 6061fi 6062test -z "$NM" && NM=nm 6063 6064 6065 6066 6067 6068 6069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6070$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6071if ${lt_cv_nm_interface+:} false; then : 6072 $as_echo_n "(cached) " >&6 6073else 6074 lt_cv_nm_interface="BSD nm" 6075 echo "int some_variable = 0;" > conftest.$ac_ext 6076 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6077 (eval "$ac_compile" 2>conftest.err) 6078 cat conftest.err >&5 6079 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6080 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6081 cat conftest.err >&5 6082 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6083 cat conftest.out >&5 6084 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6085 lt_cv_nm_interface="MS dumpbin" 6086 fi 6087 rm -f conftest* 6088fi 6089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6090$as_echo "$lt_cv_nm_interface" >&6; } 6091 6092# find the maximum length of command line arguments 6093{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6094$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6095if ${lt_cv_sys_max_cmd_len+:} false; then : 6096 $as_echo_n "(cached) " >&6 6097else 6098 i=0 6099 teststring="ABCD" 6100 6101 case $build_os in 6102 msdosdjgpp*) 6103 # On DJGPP, this test can blow up pretty badly due to problems in libc 6104 # (any single argument exceeding 2000 bytes causes a buffer overrun 6105 # during glob expansion). Even if it were fixed, the result of this 6106 # check would be larger than it should be. 6107 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6108 ;; 6109 6110 gnu*) 6111 # Under GNU Hurd, this test is not required because there is 6112 # no limit to the length of command line arguments. 6113 # Libtool will interpret -1 as no limit whatsoever 6114 lt_cv_sys_max_cmd_len=-1; 6115 ;; 6116 6117 cygwin* | mingw* | cegcc*) 6118 # On Win9x/ME, this test blows up -- it succeeds, but takes 6119 # about 5 minutes as the teststring grows exponentially. 6120 # Worse, since 9x/ME are not pre-emptively multitasking, 6121 # you end up with a "frozen" computer, even though with patience 6122 # the test eventually succeeds (with a max line length of 256k). 6123 # Instead, let's just punt: use the minimum linelength reported by 6124 # all of the supported platforms: 8192 (on NT/2K/XP). 6125 lt_cv_sys_max_cmd_len=8192; 6126 ;; 6127 6128 mint*) 6129 # On MiNT this can take a long time and run out of memory. 6130 lt_cv_sys_max_cmd_len=8192; 6131 ;; 6132 6133 amigaos*) 6134 # On AmigaOS with pdksh, this test takes hours, literally. 6135 # So we just punt and use a minimum line length of 8192. 6136 lt_cv_sys_max_cmd_len=8192; 6137 ;; 6138 6139 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6140 # This has been around since 386BSD, at least. Likely further. 6141 if test -x /sbin/sysctl; then 6142 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6143 elif test -x /usr/sbin/sysctl; then 6144 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6145 else 6146 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6147 fi 6148 # And add a safety zone 6149 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6150 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6151 ;; 6152 6153 interix*) 6154 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6155 lt_cv_sys_max_cmd_len=196608 6156 ;; 6157 6158 osf*) 6159 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6160 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6161 # nice to cause kernel panics so lets avoid the loop below. 6162 # First set a reasonable default. 6163 lt_cv_sys_max_cmd_len=16384 6164 # 6165 if test -x /sbin/sysconfig; then 6166 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6167 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6168 esac 6169 fi 6170 ;; 6171 sco3.2v5*) 6172 lt_cv_sys_max_cmd_len=102400 6173 ;; 6174 sysv5* | sco5v6* | sysv4.2uw2*) 6175 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6176 if test -n "$kargmax"; then 6177 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6178 else 6179 lt_cv_sys_max_cmd_len=32768 6180 fi 6181 ;; 6182 *) 6183 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6184 if test -n "$lt_cv_sys_max_cmd_len"; then 6185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6187 else 6188 # Make teststring a little bigger before we do anything with it. 6189 # a 1K string should be a reasonable start. 6190 for i in 1 2 3 4 5 6 7 8 ; do 6191 teststring=$teststring$teststring 6192 done 6193 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6194 # If test is not a shell built-in, we'll probably end up computing a 6195 # maximum length that is only half of the actual maximum length, but 6196 # we can't tell. 6197 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6198 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6199 test $i != 17 # 1/2 MB should be enough 6200 do 6201 i=`expr $i + 1` 6202 teststring=$teststring$teststring 6203 done 6204 # Only check the string length outside the loop. 6205 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6206 teststring= 6207 # Add a significant safety factor because C++ compilers can tack on 6208 # massive amounts of additional arguments before passing them to the 6209 # linker. It appears as though 1/2 is a usable value. 6210 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6211 fi 6212 ;; 6213 esac 6214 6215fi 6216 6217if test -n $lt_cv_sys_max_cmd_len ; then 6218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6219$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6220else 6221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6222$as_echo "none" >&6; } 6223fi 6224max_cmd_len=$lt_cv_sys_max_cmd_len 6225 6226 6227 6228 6229 6230 6231: ${CP="cp -f"} 6232: ${MV="mv -f"} 6233: ${RM="rm -f"} 6234 6235{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6236$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6237# Try some XSI features 6238xsi_shell=no 6239( _lt_dummy="a/b/c" 6240 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6241 = c,a/b,, \ 6242 && eval 'test $(( 1 + 1 )) -eq 2 \ 6243 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6244 && xsi_shell=yes 6245{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6246$as_echo "$xsi_shell" >&6; } 6247 6248 6249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6250$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6251lt_shell_append=no 6252( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6253 >/dev/null 2>&1 \ 6254 && lt_shell_append=yes 6255{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6256$as_echo "$lt_shell_append" >&6; } 6257 6258 6259if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6260 lt_unset=unset 6261else 6262 lt_unset=false 6263fi 6264 6265 6266 6267 6268 6269# test EBCDIC or ASCII 6270case `echo X|tr X '\101'` in 6271 A) # ASCII based system 6272 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6273 lt_SP2NL='tr \040 \012' 6274 lt_NL2SP='tr \015\012 \040\040' 6275 ;; 6276 *) # EBCDIC based system 6277 lt_SP2NL='tr \100 \n' 6278 lt_NL2SP='tr \r\n \100\100' 6279 ;; 6280esac 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6291$as_echo_n "checking for $LD option to reload object files... " >&6; } 6292if ${lt_cv_ld_reload_flag+:} false; then : 6293 $as_echo_n "(cached) " >&6 6294else 6295 lt_cv_ld_reload_flag='-r' 6296fi 6297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6298$as_echo "$lt_cv_ld_reload_flag" >&6; } 6299reload_flag=$lt_cv_ld_reload_flag 6300case $reload_flag in 6301"" | " "*) ;; 6302*) reload_flag=" $reload_flag" ;; 6303esac 6304reload_cmds='$LD$reload_flag -o $output$reload_objs' 6305case $host_os in 6306 darwin*) 6307 if test "$GCC" = yes; then 6308 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6309 else 6310 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6311 fi 6312 ;; 6313esac 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323if test -n "$ac_tool_prefix"; then 6324 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6325set dummy ${ac_tool_prefix}objdump; ac_word=$2 6326{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6327$as_echo_n "checking for $ac_word... " >&6; } 6328if ${ac_cv_prog_OBJDUMP+:} false; then : 6329 $as_echo_n "(cached) " >&6 6330else 6331 if test -n "$OBJDUMP"; then 6332 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6333else 6334as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6335for as_dir in $PATH 6336do 6337 IFS=$as_save_IFS 6338 test -z "$as_dir" && as_dir=. 6339 for ac_exec_ext in '' $ac_executable_extensions; do 6340 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6341 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6342 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6343 break 2 6344 fi 6345done 6346 done 6347IFS=$as_save_IFS 6348 6349fi 6350fi 6351OBJDUMP=$ac_cv_prog_OBJDUMP 6352if test -n "$OBJDUMP"; then 6353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6354$as_echo "$OBJDUMP" >&6; } 6355else 6356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6357$as_echo "no" >&6; } 6358fi 6359 6360 6361fi 6362if test -z "$ac_cv_prog_OBJDUMP"; then 6363 ac_ct_OBJDUMP=$OBJDUMP 6364 # Extract the first word of "objdump", so it can be a program name with args. 6365set dummy objdump; ac_word=$2 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6367$as_echo_n "checking for $ac_word... " >&6; } 6368if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 if test -n "$ac_ct_OBJDUMP"; then 6372 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6373else 6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6375for as_dir in $PATH 6376do 6377 IFS=$as_save_IFS 6378 test -z "$as_dir" && as_dir=. 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6381 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi 6390fi 6391ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6392if test -n "$ac_ct_OBJDUMP"; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6394$as_echo "$ac_ct_OBJDUMP" >&6; } 6395else 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397$as_echo "no" >&6; } 6398fi 6399 6400 if test "x$ac_ct_OBJDUMP" = x; then 6401 OBJDUMP="false" 6402 else 6403 case $cross_compiling:$ac_tool_warned in 6404yes:) 6405{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6406$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6407ac_tool_warned=yes ;; 6408esac 6409 OBJDUMP=$ac_ct_OBJDUMP 6410 fi 6411else 6412 OBJDUMP="$ac_cv_prog_OBJDUMP" 6413fi 6414 6415test -z "$OBJDUMP" && OBJDUMP=objdump 6416 6417 6418 6419 6420 6421 6422{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6423$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6424if ${lt_cv_deplibs_check_method+:} false; then : 6425 $as_echo_n "(cached) " >&6 6426else 6427 lt_cv_file_magic_cmd='$MAGIC_CMD' 6428lt_cv_file_magic_test_file= 6429lt_cv_deplibs_check_method='unknown' 6430# Need to set the preceding variable on all platforms that support 6431# interlibrary dependencies. 6432# 'none' -- dependencies not supported. 6433# `unknown' -- same as none, but documents that we really don't know. 6434# 'pass_all' -- all dependencies passed with no checks. 6435# 'test_compile' -- check by making test program. 6436# 'file_magic [[regex]]' -- check by looking for files in library path 6437# which responds to the $file_magic_cmd with a given extended regex. 6438# If you have `file' or equivalent on your system and you're not sure 6439# whether `pass_all' will *always* work, you probably want this one. 6440 6441case $host_os in 6442aix[4-9]*) 6443 lt_cv_deplibs_check_method=pass_all 6444 ;; 6445 6446beos*) 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 6450bsdi[45]*) 6451 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6452 lt_cv_file_magic_cmd='/usr/bin/file -L' 6453 lt_cv_file_magic_test_file=/shlib/libc.so 6454 ;; 6455 6456cygwin*) 6457 # func_win32_libid is a shell function defined in ltmain.sh 6458 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6459 lt_cv_file_magic_cmd='func_win32_libid' 6460 ;; 6461 6462mingw* | pw32*) 6463 # Base MSYS/MinGW do not provide the 'file' command needed by 6464 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6465 # unless we find 'file', for example because we are cross-compiling. 6466 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6467 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6468 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6469 lt_cv_file_magic_cmd='func_win32_libid' 6470 else 6471 # Keep this pattern in sync with the one in func_win32_libid. 6472 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6473 lt_cv_file_magic_cmd='$OBJDUMP -f' 6474 fi 6475 ;; 6476 6477cegcc*) 6478 # use the weaker test based on 'objdump'. See mingw*. 6479 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6480 lt_cv_file_magic_cmd='$OBJDUMP -f' 6481 ;; 6482 6483darwin* | rhapsody*) 6484 lt_cv_deplibs_check_method=pass_all 6485 ;; 6486 6487freebsd* | dragonfly*) 6488 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6489 case $host_cpu in 6490 i*86 ) 6491 # Not sure whether the presence of OpenBSD here was a mistake. 6492 # Let's accept both of them until this is cleared up. 6493 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6494 lt_cv_file_magic_cmd=/usr/bin/file 6495 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6496 ;; 6497 esac 6498 else 6499 lt_cv_deplibs_check_method=pass_all 6500 fi 6501 ;; 6502 6503gnu*) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 6507haiku*) 6508 lt_cv_deplibs_check_method=pass_all 6509 ;; 6510 6511hpux10.20* | hpux11*) 6512 lt_cv_file_magic_cmd=/usr/bin/file 6513 case $host_cpu in 6514 ia64*) 6515 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6516 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6517 ;; 6518 hppa*64*) 6519 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]' 6520 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6521 ;; 6522 *) 6523 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6524 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6525 ;; 6526 esac 6527 ;; 6528 6529interix[3-9]*) 6530 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6532 ;; 6533 6534irix5* | irix6* | nonstopux*) 6535 case $LD in 6536 *-32|*"-32 ") libmagic=32-bit;; 6537 *-n32|*"-n32 ") libmagic=N32;; 6538 *-64|*"-64 ") libmagic=64-bit;; 6539 *) libmagic=never-match;; 6540 esac 6541 lt_cv_deplibs_check_method=pass_all 6542 ;; 6543 6544# This must be Linux ELF. 6545linux* | k*bsd*-gnu | kopensolaris*-gnu) 6546 lt_cv_deplibs_check_method=pass_all 6547 ;; 6548 6549netbsd*) 6550 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6551 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6552 else 6553 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6554 fi 6555 ;; 6556 6557newos6*) 6558 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6559 lt_cv_file_magic_cmd=/usr/bin/file 6560 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6561 ;; 6562 6563*nto* | *qnx*) 6564 lt_cv_deplibs_check_method=pass_all 6565 ;; 6566 6567openbsd*) 6568 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6569 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6570 else 6571 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6572 fi 6573 ;; 6574 6575osf3* | osf4* | osf5*) 6576 lt_cv_deplibs_check_method=pass_all 6577 ;; 6578 6579rdos*) 6580 lt_cv_deplibs_check_method=pass_all 6581 ;; 6582 6583solaris*) 6584 lt_cv_deplibs_check_method=pass_all 6585 ;; 6586 6587sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6588 lt_cv_deplibs_check_method=pass_all 6589 ;; 6590 6591sysv4 | sysv4.3*) 6592 case $host_vendor in 6593 motorola) 6594 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]' 6595 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6596 ;; 6597 ncr) 6598 lt_cv_deplibs_check_method=pass_all 6599 ;; 6600 sequent) 6601 lt_cv_file_magic_cmd='/bin/file' 6602 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6603 ;; 6604 sni) 6605 lt_cv_file_magic_cmd='/bin/file' 6606 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6607 lt_cv_file_magic_test_file=/lib/libc.so 6608 ;; 6609 siemens) 6610 lt_cv_deplibs_check_method=pass_all 6611 ;; 6612 pc) 6613 lt_cv_deplibs_check_method=pass_all 6614 ;; 6615 esac 6616 ;; 6617 6618tpf*) 6619 lt_cv_deplibs_check_method=pass_all 6620 ;; 6621esac 6622 6623fi 6624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6625$as_echo "$lt_cv_deplibs_check_method" >&6; } 6626file_magic_cmd=$lt_cv_file_magic_cmd 6627deplibs_check_method=$lt_cv_deplibs_check_method 6628test -z "$deplibs_check_method" && deplibs_check_method=unknown 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641if test -n "$ac_tool_prefix"; then 6642 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6643set dummy ${ac_tool_prefix}ar; ac_word=$2 6644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6645$as_echo_n "checking for $ac_word... " >&6; } 6646if ${ac_cv_prog_AR+:} false; then : 6647 $as_echo_n "(cached) " >&6 6648else 6649 if test -n "$AR"; then 6650 ac_cv_prog_AR="$AR" # Let the user override the test. 6651else 6652as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6653for as_dir in $PATH 6654do 6655 IFS=$as_save_IFS 6656 test -z "$as_dir" && as_dir=. 6657 for ac_exec_ext in '' $ac_executable_extensions; do 6658 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6659 ac_cv_prog_AR="${ac_tool_prefix}ar" 6660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6661 break 2 6662 fi 6663done 6664 done 6665IFS=$as_save_IFS 6666 6667fi 6668fi 6669AR=$ac_cv_prog_AR 6670if test -n "$AR"; then 6671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6672$as_echo "$AR" >&6; } 6673else 6674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6675$as_echo "no" >&6; } 6676fi 6677 6678 6679fi 6680if test -z "$ac_cv_prog_AR"; then 6681 ac_ct_AR=$AR 6682 # Extract the first word of "ar", so it can be a program name with args. 6683set dummy ar; ac_word=$2 6684{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6685$as_echo_n "checking for $ac_word... " >&6; } 6686if ${ac_cv_prog_ac_ct_AR+:} false; then : 6687 $as_echo_n "(cached) " >&6 6688else 6689 if test -n "$ac_ct_AR"; then 6690 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6691else 6692as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6693for as_dir in $PATH 6694do 6695 IFS=$as_save_IFS 6696 test -z "$as_dir" && as_dir=. 6697 for ac_exec_ext in '' $ac_executable_extensions; do 6698 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6699 ac_cv_prog_ac_ct_AR="ar" 6700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6701 break 2 6702 fi 6703done 6704 done 6705IFS=$as_save_IFS 6706 6707fi 6708fi 6709ac_ct_AR=$ac_cv_prog_ac_ct_AR 6710if test -n "$ac_ct_AR"; then 6711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6712$as_echo "$ac_ct_AR" >&6; } 6713else 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6715$as_echo "no" >&6; } 6716fi 6717 6718 if test "x$ac_ct_AR" = x; then 6719 AR="false" 6720 else 6721 case $cross_compiling:$ac_tool_warned in 6722yes:) 6723{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6724$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6725ac_tool_warned=yes ;; 6726esac 6727 AR=$ac_ct_AR 6728 fi 6729else 6730 AR="$ac_cv_prog_AR" 6731fi 6732 6733test -z "$AR" && AR=ar 6734test -z "$AR_FLAGS" && AR_FLAGS=cru 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746if test -n "$ac_tool_prefix"; then 6747 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6748set dummy ${ac_tool_prefix}strip; ac_word=$2 6749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6750$as_echo_n "checking for $ac_word... " >&6; } 6751if ${ac_cv_prog_STRIP+:} false; then : 6752 $as_echo_n "(cached) " >&6 6753else 6754 if test -n "$STRIP"; then 6755 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6756else 6757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6758for as_dir in $PATH 6759do 6760 IFS=$as_save_IFS 6761 test -z "$as_dir" && as_dir=. 6762 for ac_exec_ext in '' $ac_executable_extensions; do 6763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6764 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6766 break 2 6767 fi 6768done 6769 done 6770IFS=$as_save_IFS 6771 6772fi 6773fi 6774STRIP=$ac_cv_prog_STRIP 6775if test -n "$STRIP"; then 6776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6777$as_echo "$STRIP" >&6; } 6778else 6779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6780$as_echo "no" >&6; } 6781fi 6782 6783 6784fi 6785if test -z "$ac_cv_prog_STRIP"; then 6786 ac_ct_STRIP=$STRIP 6787 # Extract the first word of "strip", so it can be a program name with args. 6788set dummy strip; ac_word=$2 6789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6790$as_echo_n "checking for $ac_word... " >&6; } 6791if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6792 $as_echo_n "(cached) " >&6 6793else 6794 if test -n "$ac_ct_STRIP"; then 6795 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6796else 6797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6798for as_dir in $PATH 6799do 6800 IFS=$as_save_IFS 6801 test -z "$as_dir" && as_dir=. 6802 for ac_exec_ext in '' $ac_executable_extensions; do 6803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6804 ac_cv_prog_ac_ct_STRIP="strip" 6805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6806 break 2 6807 fi 6808done 6809 done 6810IFS=$as_save_IFS 6811 6812fi 6813fi 6814ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6815if test -n "$ac_ct_STRIP"; then 6816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6817$as_echo "$ac_ct_STRIP" >&6; } 6818else 6819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6820$as_echo "no" >&6; } 6821fi 6822 6823 if test "x$ac_ct_STRIP" = x; then 6824 STRIP=":" 6825 else 6826 case $cross_compiling:$ac_tool_warned in 6827yes:) 6828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6830ac_tool_warned=yes ;; 6831esac 6832 STRIP=$ac_ct_STRIP 6833 fi 6834else 6835 STRIP="$ac_cv_prog_STRIP" 6836fi 6837 6838test -z "$STRIP" && STRIP=: 6839 6840 6841 6842 6843 6844 6845if test -n "$ac_tool_prefix"; then 6846 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6847set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6848{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6849$as_echo_n "checking for $ac_word... " >&6; } 6850if ${ac_cv_prog_RANLIB+:} false; then : 6851 $as_echo_n "(cached) " >&6 6852else 6853 if test -n "$RANLIB"; then 6854 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6855else 6856as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6857for as_dir in $PATH 6858do 6859 IFS=$as_save_IFS 6860 test -z "$as_dir" && as_dir=. 6861 for ac_exec_ext in '' $ac_executable_extensions; do 6862 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6863 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6865 break 2 6866 fi 6867done 6868 done 6869IFS=$as_save_IFS 6870 6871fi 6872fi 6873RANLIB=$ac_cv_prog_RANLIB 6874if test -n "$RANLIB"; then 6875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6876$as_echo "$RANLIB" >&6; } 6877else 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6879$as_echo "no" >&6; } 6880fi 6881 6882 6883fi 6884if test -z "$ac_cv_prog_RANLIB"; then 6885 ac_ct_RANLIB=$RANLIB 6886 # Extract the first word of "ranlib", so it can be a program name with args. 6887set dummy ranlib; ac_word=$2 6888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6889$as_echo_n "checking for $ac_word... " >&6; } 6890if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6891 $as_echo_n "(cached) " >&6 6892else 6893 if test -n "$ac_ct_RANLIB"; then 6894 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6895else 6896as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6897for as_dir in $PATH 6898do 6899 IFS=$as_save_IFS 6900 test -z "$as_dir" && as_dir=. 6901 for ac_exec_ext in '' $ac_executable_extensions; do 6902 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6903 ac_cv_prog_ac_ct_RANLIB="ranlib" 6904 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6905 break 2 6906 fi 6907done 6908 done 6909IFS=$as_save_IFS 6910 6911fi 6912fi 6913ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6914if test -n "$ac_ct_RANLIB"; then 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6916$as_echo "$ac_ct_RANLIB" >&6; } 6917else 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6919$as_echo "no" >&6; } 6920fi 6921 6922 if test "x$ac_ct_RANLIB" = x; then 6923 RANLIB=":" 6924 else 6925 case $cross_compiling:$ac_tool_warned in 6926yes:) 6927{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6928$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6929ac_tool_warned=yes ;; 6930esac 6931 RANLIB=$ac_ct_RANLIB 6932 fi 6933else 6934 RANLIB="$ac_cv_prog_RANLIB" 6935fi 6936 6937test -z "$RANLIB" && RANLIB=: 6938 6939 6940 6941 6942 6943 6944# Determine commands to create old-style static archives. 6945old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6946old_postinstall_cmds='chmod 644 $oldlib' 6947old_postuninstall_cmds= 6948 6949if test -n "$RANLIB"; then 6950 case $host_os in 6951 openbsd*) 6952 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6953 ;; 6954 *) 6955 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6956 ;; 6957 esac 6958 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6959fi 6960 6961case $host_os in 6962 darwin*) 6963 lock_old_archive_extraction=yes ;; 6964 *) 6965 lock_old_archive_extraction=no ;; 6966esac 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006# If no C compiler was specified, use CC. 7007LTCC=${LTCC-"$CC"} 7008 7009# If no C compiler flags were specified, use CFLAGS. 7010LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7011 7012# Allow CC to be a program name with arguments. 7013compiler=$CC 7014 7015 7016# Check for command to grab the raw symbol name followed by C symbol from nm. 7017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7018$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7019if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7020 $as_echo_n "(cached) " >&6 7021else 7022 7023# These are sane defaults that work on at least a few old systems. 7024# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7025 7026# Character class describing NM global symbol codes. 7027symcode='[BCDEGRST]' 7028 7029# Regexp to match symbols that can be accessed directly from C. 7030sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7031 7032# Define system-specific variables. 7033case $host_os in 7034aix*) 7035 symcode='[BCDT]' 7036 ;; 7037cygwin* | mingw* | pw32* | cegcc*) 7038 symcode='[ABCDGISTW]' 7039 ;; 7040hpux*) 7041 if test "$host_cpu" = ia64; then 7042 symcode='[ABCDEGRST]' 7043 fi 7044 ;; 7045irix* | nonstopux*) 7046 symcode='[BCDEGRST]' 7047 ;; 7048osf*) 7049 symcode='[BCDEGQRST]' 7050 ;; 7051solaris*) 7052 symcode='[BDRT]' 7053 ;; 7054sco3.2v5*) 7055 symcode='[DT]' 7056 ;; 7057sysv4.2uw2*) 7058 symcode='[DT]' 7059 ;; 7060sysv5* | sco5v6* | unixware* | OpenUNIX*) 7061 symcode='[ABDT]' 7062 ;; 7063sysv4) 7064 symcode='[DFNSTU]' 7065 ;; 7066esac 7067 7068# If we're using GNU nm, then use its standard symbol codes. 7069case `$NM -V 2>&1` in 7070*GNU* | *'with BFD'*) 7071 symcode='[ABCDGIRSTW]' ;; 7072esac 7073 7074# Transform an extracted symbol line into a proper C declaration. 7075# Some systems (esp. on ia64) link data and code symbols differently, 7076# so use this general approach. 7077lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7078 7079# Transform an extracted symbol line into symbol name and symbol address 7080lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7081lt_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'" 7082 7083# Handle CRLF in mingw tool chain 7084opt_cr= 7085case $build_os in 7086mingw*) 7087 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7088 ;; 7089esac 7090 7091# Try without a prefix underscore, then with it. 7092for ac_symprfx in "" "_"; do 7093 7094 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7095 symxfrm="\\1 $ac_symprfx\\2 \\2" 7096 7097 # Write the raw and C identifiers. 7098 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7099 # Fake it for dumpbin and say T for any non-static function 7100 # and D for any global variable. 7101 # Also find C++ and __fastcall symbols from MSVC++, 7102 # which start with @ or ?. 7103 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7104" {last_section=section; section=\$ 3};"\ 7105" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7106" \$ 0!~/External *\|/{next};"\ 7107" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7108" {if(hide[section]) next};"\ 7109" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7110" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7111" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7112" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7113" ' prfx=^$ac_symprfx" 7114 else 7115 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7116 fi 7117 7118 # Check to see that the pipe works correctly. 7119 pipe_works=no 7120 7121 rm -f conftest* 7122 cat > conftest.$ac_ext <<_LT_EOF 7123#ifdef __cplusplus 7124extern "C" { 7125#endif 7126char nm_test_var; 7127void nm_test_func(void); 7128void nm_test_func(void){} 7129#ifdef __cplusplus 7130} 7131#endif 7132int main(){nm_test_var='a';nm_test_func();return(0);} 7133_LT_EOF 7134 7135 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7136 (eval $ac_compile) 2>&5 7137 ac_status=$? 7138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7139 test $ac_status = 0; }; then 7140 # Now try to grab the symbols. 7141 nlist=conftest.nm 7142 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7143 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7144 ac_status=$? 7145 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7146 test $ac_status = 0; } && test -s "$nlist"; then 7147 # Try sorting and uniquifying the output. 7148 if sort "$nlist" | uniq > "$nlist"T; then 7149 mv -f "$nlist"T "$nlist" 7150 else 7151 rm -f "$nlist"T 7152 fi 7153 7154 # Make sure that we snagged all the symbols we need. 7155 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7156 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7157 cat <<_LT_EOF > conftest.$ac_ext 7158#ifdef __cplusplus 7159extern "C" { 7160#endif 7161 7162_LT_EOF 7163 # Now generate the symbol file. 7164 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7165 7166 cat <<_LT_EOF >> conftest.$ac_ext 7167 7168/* The mapping between symbol names and symbols. */ 7169const struct { 7170 const char *name; 7171 void *address; 7172} 7173lt__PROGRAM__LTX_preloaded_symbols[] = 7174{ 7175 { "@PROGRAM@", (void *) 0 }, 7176_LT_EOF 7177 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7178 cat <<\_LT_EOF >> conftest.$ac_ext 7179 {0, (void *) 0} 7180}; 7181 7182/* This works around a problem in FreeBSD linker */ 7183#ifdef FREEBSD_WORKAROUND 7184static const void *lt_preloaded_setup() { 7185 return lt__PROGRAM__LTX_preloaded_symbols; 7186} 7187#endif 7188 7189#ifdef __cplusplus 7190} 7191#endif 7192_LT_EOF 7193 # Now try linking the two files. 7194 mv conftest.$ac_objext conftstm.$ac_objext 7195 lt_save_LIBS="$LIBS" 7196 lt_save_CFLAGS="$CFLAGS" 7197 LIBS="conftstm.$ac_objext" 7198 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7199 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7200 (eval $ac_link) 2>&5 7201 ac_status=$? 7202 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7203 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7204 pipe_works=yes 7205 fi 7206 LIBS="$lt_save_LIBS" 7207 CFLAGS="$lt_save_CFLAGS" 7208 else 7209 echo "cannot find nm_test_func in $nlist" >&5 7210 fi 7211 else 7212 echo "cannot find nm_test_var in $nlist" >&5 7213 fi 7214 else 7215 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7216 fi 7217 else 7218 echo "$progname: failed program was:" >&5 7219 cat conftest.$ac_ext >&5 7220 fi 7221 rm -rf conftest* conftst* 7222 7223 # Do not use the global_symbol_pipe unless it works. 7224 if test "$pipe_works" = yes; then 7225 break 7226 else 7227 lt_cv_sys_global_symbol_pipe= 7228 fi 7229done 7230 7231fi 7232 7233if test -z "$lt_cv_sys_global_symbol_pipe"; then 7234 lt_cv_sys_global_symbol_to_cdecl= 7235fi 7236if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7238$as_echo "failed" >&6; } 7239else 7240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7241$as_echo "ok" >&6; } 7242fi 7243 7244 7245 7246 7247 7248 7249 7250 7251 7252 7253 7254 7255 7256 7257 7258 7259 7260 7261 7262 7263 7264 7265# Check whether --enable-libtool-lock was given. 7266if test "${enable_libtool_lock+set}" = set; then : 7267 enableval=$enable_libtool_lock; 7268fi 7269 7270test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7271 7272# Some flags need to be propagated to the compiler or linker for good 7273# libtool support. 7274case $host in 7275ia64-*-hpux*) 7276 # Find out which ABI we are using. 7277 echo 'int i;' > conftest.$ac_ext 7278 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7279 (eval $ac_compile) 2>&5 7280 ac_status=$? 7281 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7282 test $ac_status = 0; }; then 7283 case `/usr/bin/file conftest.$ac_objext` in 7284 *ELF-32*) 7285 HPUX_IA64_MODE="32" 7286 ;; 7287 *ELF-64*) 7288 HPUX_IA64_MODE="64" 7289 ;; 7290 esac 7291 fi 7292 rm -rf conftest* 7293 ;; 7294*-*-irix6*) 7295 # Find out which ABI we are using. 7296 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7297 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7298 (eval $ac_compile) 2>&5 7299 ac_status=$? 7300 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7301 test $ac_status = 0; }; then 7302 if test "$lt_cv_prog_gnu_ld" = yes; then 7303 case `/usr/bin/file conftest.$ac_objext` in 7304 *32-bit*) 7305 LD="${LD-ld} -melf32bsmip" 7306 ;; 7307 *N32*) 7308 LD="${LD-ld} -melf32bmipn32" 7309 ;; 7310 *64-bit*) 7311 LD="${LD-ld} -melf64bmip" 7312 ;; 7313 esac 7314 else 7315 case `/usr/bin/file conftest.$ac_objext` in 7316 *32-bit*) 7317 LD="${LD-ld} -32" 7318 ;; 7319 *N32*) 7320 LD="${LD-ld} -n32" 7321 ;; 7322 *64-bit*) 7323 LD="${LD-ld} -64" 7324 ;; 7325 esac 7326 fi 7327 fi 7328 rm -rf conftest* 7329 ;; 7330 7331x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7332s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7333 # Find out which ABI we are using. 7334 echo 'int i;' > conftest.$ac_ext 7335 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7336 (eval $ac_compile) 2>&5 7337 ac_status=$? 7338 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7339 test $ac_status = 0; }; then 7340 case `/usr/bin/file conftest.o` in 7341 *32-bit*) 7342 case $host in 7343 x86_64-*kfreebsd*-gnu) 7344 LD="${LD-ld} -m elf_i386_fbsd" 7345 ;; 7346 x86_64-*linux*) 7347 LD="${LD-ld} -m elf_i386" 7348 ;; 7349 ppc64-*linux*|powerpc64-*linux*) 7350 LD="${LD-ld} -m elf32ppclinux" 7351 ;; 7352 s390x-*linux*) 7353 LD="${LD-ld} -m elf_s390" 7354 ;; 7355 sparc64-*linux*) 7356 LD="${LD-ld} -m elf32_sparc" 7357 ;; 7358 esac 7359 ;; 7360 *64-bit*) 7361 case $host in 7362 x86_64-*kfreebsd*-gnu) 7363 LD="${LD-ld} -m elf_x86_64_fbsd" 7364 ;; 7365 x86_64-*linux*) 7366 LD="${LD-ld} -m elf_x86_64" 7367 ;; 7368 ppc*-*linux*|powerpc*-*linux*) 7369 LD="${LD-ld} -m elf64ppc" 7370 ;; 7371 s390*-*linux*|s390*-*tpf*) 7372 LD="${LD-ld} -m elf64_s390" 7373 ;; 7374 sparc*-*linux*) 7375 LD="${LD-ld} -m elf64_sparc" 7376 ;; 7377 esac 7378 ;; 7379 esac 7380 fi 7381 rm -rf conftest* 7382 ;; 7383 7384*-*-sco3.2v5*) 7385 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7386 SAVE_CFLAGS="$CFLAGS" 7387 CFLAGS="$CFLAGS -belf" 7388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7389$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7390if ${lt_cv_cc_needs_belf+:} false; then : 7391 $as_echo_n "(cached) " >&6 7392else 7393 ac_ext=c 7394ac_cpp='$CPP $CPPFLAGS' 7395ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7396ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7397ac_compiler_gnu=$ac_cv_c_compiler_gnu 7398 7399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7400/* end confdefs.h. */ 7401 7402int 7403main () 7404{ 7405 7406 ; 7407 return 0; 7408} 7409_ACEOF 7410if ac_fn_c_try_link "$LINENO"; then : 7411 lt_cv_cc_needs_belf=yes 7412else 7413 lt_cv_cc_needs_belf=no 7414fi 7415rm -f core conftest.err conftest.$ac_objext \ 7416 conftest$ac_exeext conftest.$ac_ext 7417 ac_ext=c 7418ac_cpp='$CPP $CPPFLAGS' 7419ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7420ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7421ac_compiler_gnu=$ac_cv_c_compiler_gnu 7422 7423fi 7424{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7425$as_echo "$lt_cv_cc_needs_belf" >&6; } 7426 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7427 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7428 CFLAGS="$SAVE_CFLAGS" 7429 fi 7430 ;; 7431sparc*-*solaris*) 7432 # Find out which ABI we are using. 7433 echo 'int i;' > conftest.$ac_ext 7434 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7435 (eval $ac_compile) 2>&5 7436 ac_status=$? 7437 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7438 test $ac_status = 0; }; then 7439 case `/usr/bin/file conftest.o` in 7440 *64-bit*) 7441 case $lt_cv_prog_gnu_ld in 7442 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7443 *) 7444 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7445 LD="${LD-ld} -64" 7446 fi 7447 ;; 7448 esac 7449 ;; 7450 esac 7451 fi 7452 rm -rf conftest* 7453 ;; 7454esac 7455 7456need_locks="$enable_libtool_lock" 7457 7458 7459 case $host_os in 7460 rhapsody* | darwin*) 7461 if test -n "$ac_tool_prefix"; then 7462 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7463set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7465$as_echo_n "checking for $ac_word... " >&6; } 7466if ${ac_cv_prog_DSYMUTIL+:} false; then : 7467 $as_echo_n "(cached) " >&6 7468else 7469 if test -n "$DSYMUTIL"; then 7470 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7471else 7472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7473for as_dir in $PATH 7474do 7475 IFS=$as_save_IFS 7476 test -z "$as_dir" && as_dir=. 7477 for ac_exec_ext in '' $ac_executable_extensions; do 7478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7479 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7481 break 2 7482 fi 7483done 7484 done 7485IFS=$as_save_IFS 7486 7487fi 7488fi 7489DSYMUTIL=$ac_cv_prog_DSYMUTIL 7490if test -n "$DSYMUTIL"; then 7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7492$as_echo "$DSYMUTIL" >&6; } 7493else 7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7495$as_echo "no" >&6; } 7496fi 7497 7498 7499fi 7500if test -z "$ac_cv_prog_DSYMUTIL"; then 7501 ac_ct_DSYMUTIL=$DSYMUTIL 7502 # Extract the first word of "dsymutil", so it can be a program name with args. 7503set dummy dsymutil; ac_word=$2 7504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7505$as_echo_n "checking for $ac_word... " >&6; } 7506if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7507 $as_echo_n "(cached) " >&6 7508else 7509 if test -n "$ac_ct_DSYMUTIL"; then 7510 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7511else 7512as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7513for as_dir in $PATH 7514do 7515 IFS=$as_save_IFS 7516 test -z "$as_dir" && as_dir=. 7517 for ac_exec_ext in '' $ac_executable_extensions; do 7518 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7519 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7520 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7521 break 2 7522 fi 7523done 7524 done 7525IFS=$as_save_IFS 7526 7527fi 7528fi 7529ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7530if test -n "$ac_ct_DSYMUTIL"; then 7531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7532$as_echo "$ac_ct_DSYMUTIL" >&6; } 7533else 7534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7535$as_echo "no" >&6; } 7536fi 7537 7538 if test "x$ac_ct_DSYMUTIL" = x; then 7539 DSYMUTIL=":" 7540 else 7541 case $cross_compiling:$ac_tool_warned in 7542yes:) 7543{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7544$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7545ac_tool_warned=yes ;; 7546esac 7547 DSYMUTIL=$ac_ct_DSYMUTIL 7548 fi 7549else 7550 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7551fi 7552 7553 if test -n "$ac_tool_prefix"; then 7554 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7555set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7556{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7557$as_echo_n "checking for $ac_word... " >&6; } 7558if ${ac_cv_prog_NMEDIT+:} false; then : 7559 $as_echo_n "(cached) " >&6 7560else 7561 if test -n "$NMEDIT"; then 7562 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7563else 7564as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7565for as_dir in $PATH 7566do 7567 IFS=$as_save_IFS 7568 test -z "$as_dir" && as_dir=. 7569 for ac_exec_ext in '' $ac_executable_extensions; do 7570 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7571 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7572 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7573 break 2 7574 fi 7575done 7576 done 7577IFS=$as_save_IFS 7578 7579fi 7580fi 7581NMEDIT=$ac_cv_prog_NMEDIT 7582if test -n "$NMEDIT"; then 7583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7584$as_echo "$NMEDIT" >&6; } 7585else 7586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7587$as_echo "no" >&6; } 7588fi 7589 7590 7591fi 7592if test -z "$ac_cv_prog_NMEDIT"; then 7593 ac_ct_NMEDIT=$NMEDIT 7594 # Extract the first word of "nmedit", so it can be a program name with args. 7595set dummy nmedit; ac_word=$2 7596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7597$as_echo_n "checking for $ac_word... " >&6; } 7598if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7599 $as_echo_n "(cached) " >&6 7600else 7601 if test -n "$ac_ct_NMEDIT"; then 7602 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7603else 7604as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7605for as_dir in $PATH 7606do 7607 IFS=$as_save_IFS 7608 test -z "$as_dir" && as_dir=. 7609 for ac_exec_ext in '' $ac_executable_extensions; do 7610 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7611 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7612 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7613 break 2 7614 fi 7615done 7616 done 7617IFS=$as_save_IFS 7618 7619fi 7620fi 7621ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7622if test -n "$ac_ct_NMEDIT"; then 7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7624$as_echo "$ac_ct_NMEDIT" >&6; } 7625else 7626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7627$as_echo "no" >&6; } 7628fi 7629 7630 if test "x$ac_ct_NMEDIT" = x; then 7631 NMEDIT=":" 7632 else 7633 case $cross_compiling:$ac_tool_warned in 7634yes:) 7635{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7636$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7637ac_tool_warned=yes ;; 7638esac 7639 NMEDIT=$ac_ct_NMEDIT 7640 fi 7641else 7642 NMEDIT="$ac_cv_prog_NMEDIT" 7643fi 7644 7645 if test -n "$ac_tool_prefix"; then 7646 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7647set dummy ${ac_tool_prefix}lipo; ac_word=$2 7648{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7649$as_echo_n "checking for $ac_word... " >&6; } 7650if ${ac_cv_prog_LIPO+:} false; then : 7651 $as_echo_n "(cached) " >&6 7652else 7653 if test -n "$LIPO"; then 7654 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7655else 7656as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7657for as_dir in $PATH 7658do 7659 IFS=$as_save_IFS 7660 test -z "$as_dir" && as_dir=. 7661 for ac_exec_ext in '' $ac_executable_extensions; do 7662 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7663 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7664 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7665 break 2 7666 fi 7667done 7668 done 7669IFS=$as_save_IFS 7670 7671fi 7672fi 7673LIPO=$ac_cv_prog_LIPO 7674if test -n "$LIPO"; then 7675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7676$as_echo "$LIPO" >&6; } 7677else 7678 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7679$as_echo "no" >&6; } 7680fi 7681 7682 7683fi 7684if test -z "$ac_cv_prog_LIPO"; then 7685 ac_ct_LIPO=$LIPO 7686 # Extract the first word of "lipo", so it can be a program name with args. 7687set dummy lipo; ac_word=$2 7688{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7689$as_echo_n "checking for $ac_word... " >&6; } 7690if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7691 $as_echo_n "(cached) " >&6 7692else 7693 if test -n "$ac_ct_LIPO"; then 7694 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7695else 7696as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7697for as_dir in $PATH 7698do 7699 IFS=$as_save_IFS 7700 test -z "$as_dir" && as_dir=. 7701 for ac_exec_ext in '' $ac_executable_extensions; do 7702 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7703 ac_cv_prog_ac_ct_LIPO="lipo" 7704 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7705 break 2 7706 fi 7707done 7708 done 7709IFS=$as_save_IFS 7710 7711fi 7712fi 7713ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7714if test -n "$ac_ct_LIPO"; then 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7716$as_echo "$ac_ct_LIPO" >&6; } 7717else 7718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7719$as_echo "no" >&6; } 7720fi 7721 7722 if test "x$ac_ct_LIPO" = x; then 7723 LIPO=":" 7724 else 7725 case $cross_compiling:$ac_tool_warned in 7726yes:) 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7728$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7729ac_tool_warned=yes ;; 7730esac 7731 LIPO=$ac_ct_LIPO 7732 fi 7733else 7734 LIPO="$ac_cv_prog_LIPO" 7735fi 7736 7737 if test -n "$ac_tool_prefix"; then 7738 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7739set dummy ${ac_tool_prefix}otool; ac_word=$2 7740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7741$as_echo_n "checking for $ac_word... " >&6; } 7742if ${ac_cv_prog_OTOOL+:} false; then : 7743 $as_echo_n "(cached) " >&6 7744else 7745 if test -n "$OTOOL"; then 7746 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7747else 7748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7749for as_dir in $PATH 7750do 7751 IFS=$as_save_IFS 7752 test -z "$as_dir" && as_dir=. 7753 for ac_exec_ext in '' $ac_executable_extensions; do 7754 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7755 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7756 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7757 break 2 7758 fi 7759done 7760 done 7761IFS=$as_save_IFS 7762 7763fi 7764fi 7765OTOOL=$ac_cv_prog_OTOOL 7766if test -n "$OTOOL"; then 7767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7768$as_echo "$OTOOL" >&6; } 7769else 7770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7771$as_echo "no" >&6; } 7772fi 7773 7774 7775fi 7776if test -z "$ac_cv_prog_OTOOL"; then 7777 ac_ct_OTOOL=$OTOOL 7778 # Extract the first word of "otool", so it can be a program name with args. 7779set dummy otool; ac_word=$2 7780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7781$as_echo_n "checking for $ac_word... " >&6; } 7782if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7783 $as_echo_n "(cached) " >&6 7784else 7785 if test -n "$ac_ct_OTOOL"; then 7786 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7787else 7788as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7789for as_dir in $PATH 7790do 7791 IFS=$as_save_IFS 7792 test -z "$as_dir" && as_dir=. 7793 for ac_exec_ext in '' $ac_executable_extensions; do 7794 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7795 ac_cv_prog_ac_ct_OTOOL="otool" 7796 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7797 break 2 7798 fi 7799done 7800 done 7801IFS=$as_save_IFS 7802 7803fi 7804fi 7805ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7806if test -n "$ac_ct_OTOOL"; then 7807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7808$as_echo "$ac_ct_OTOOL" >&6; } 7809else 7810 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7811$as_echo "no" >&6; } 7812fi 7813 7814 if test "x$ac_ct_OTOOL" = x; then 7815 OTOOL=":" 7816 else 7817 case $cross_compiling:$ac_tool_warned in 7818yes:) 7819{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7820$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7821ac_tool_warned=yes ;; 7822esac 7823 OTOOL=$ac_ct_OTOOL 7824 fi 7825else 7826 OTOOL="$ac_cv_prog_OTOOL" 7827fi 7828 7829 if test -n "$ac_tool_prefix"; then 7830 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7831set dummy ${ac_tool_prefix}otool64; ac_word=$2 7832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7833$as_echo_n "checking for $ac_word... " >&6; } 7834if ${ac_cv_prog_OTOOL64+:} false; then : 7835 $as_echo_n "(cached) " >&6 7836else 7837 if test -n "$OTOOL64"; then 7838 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7839else 7840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7841for as_dir in $PATH 7842do 7843 IFS=$as_save_IFS 7844 test -z "$as_dir" && as_dir=. 7845 for ac_exec_ext in '' $ac_executable_extensions; do 7846 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7847 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7849 break 2 7850 fi 7851done 7852 done 7853IFS=$as_save_IFS 7854 7855fi 7856fi 7857OTOOL64=$ac_cv_prog_OTOOL64 7858if test -n "$OTOOL64"; then 7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7860$as_echo "$OTOOL64" >&6; } 7861else 7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7863$as_echo "no" >&6; } 7864fi 7865 7866 7867fi 7868if test -z "$ac_cv_prog_OTOOL64"; then 7869 ac_ct_OTOOL64=$OTOOL64 7870 # Extract the first word of "otool64", so it can be a program name with args. 7871set dummy otool64; ac_word=$2 7872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7873$as_echo_n "checking for $ac_word... " >&6; } 7874if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7875 $as_echo_n "(cached) " >&6 7876else 7877 if test -n "$ac_ct_OTOOL64"; then 7878 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7879else 7880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7881for as_dir in $PATH 7882do 7883 IFS=$as_save_IFS 7884 test -z "$as_dir" && as_dir=. 7885 for ac_exec_ext in '' $ac_executable_extensions; do 7886 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7887 ac_cv_prog_ac_ct_OTOOL64="otool64" 7888 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7889 break 2 7890 fi 7891done 7892 done 7893IFS=$as_save_IFS 7894 7895fi 7896fi 7897ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7898if test -n "$ac_ct_OTOOL64"; then 7899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7900$as_echo "$ac_ct_OTOOL64" >&6; } 7901else 7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7903$as_echo "no" >&6; } 7904fi 7905 7906 if test "x$ac_ct_OTOOL64" = x; then 7907 OTOOL64=":" 7908 else 7909 case $cross_compiling:$ac_tool_warned in 7910yes:) 7911{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7912$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7913ac_tool_warned=yes ;; 7914esac 7915 OTOOL64=$ac_ct_OTOOL64 7916 fi 7917else 7918 OTOOL64="$ac_cv_prog_OTOOL64" 7919fi 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7948$as_echo_n "checking for -single_module linker flag... " >&6; } 7949if ${lt_cv_apple_cc_single_mod+:} false; then : 7950 $as_echo_n "(cached) " >&6 7951else 7952 lt_cv_apple_cc_single_mod=no 7953 if test -z "${LT_MULTI_MODULE}"; then 7954 # By default we will add the -single_module flag. You can override 7955 # by either setting the environment variable LT_MULTI_MODULE 7956 # non-empty at configure time, or by adding -multi_module to the 7957 # link flags. 7958 rm -rf libconftest.dylib* 7959 echo "int foo(void){return 1;}" > conftest.c 7960 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7961-dynamiclib -Wl,-single_module conftest.c" >&5 7962 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7963 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7964 _lt_result=$? 7965 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7966 lt_cv_apple_cc_single_mod=yes 7967 else 7968 cat conftest.err >&5 7969 fi 7970 rm -rf libconftest.dylib* 7971 rm -f conftest.* 7972 fi 7973fi 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7975$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7977$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7978if ${lt_cv_ld_exported_symbols_list+:} false; then : 7979 $as_echo_n "(cached) " >&6 7980else 7981 lt_cv_ld_exported_symbols_list=no 7982 save_LDFLAGS=$LDFLAGS 7983 echo "_main" > conftest.sym 7984 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7986/* end confdefs.h. */ 7987 7988int 7989main () 7990{ 7991 7992 ; 7993 return 0; 7994} 7995_ACEOF 7996if ac_fn_c_try_link "$LINENO"; then : 7997 lt_cv_ld_exported_symbols_list=yes 7998else 7999 lt_cv_ld_exported_symbols_list=no 8000fi 8001rm -f core conftest.err conftest.$ac_objext \ 8002 conftest$ac_exeext conftest.$ac_ext 8003 LDFLAGS="$save_LDFLAGS" 8004 8005fi 8006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8007$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8009$as_echo_n "checking for -force_load linker flag... " >&6; } 8010if ${lt_cv_ld_force_load+:} false; then : 8011 $as_echo_n "(cached) " >&6 8012else 8013 lt_cv_ld_force_load=no 8014 cat > conftest.c << _LT_EOF 8015int forced_loaded() { return 2;} 8016_LT_EOF 8017 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8018 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8019 echo "$AR cru libconftest.a conftest.o" >&5 8020 $AR cru libconftest.a conftest.o 2>&5 8021 echo "$RANLIB libconftest.a" >&5 8022 $RANLIB libconftest.a 2>&5 8023 cat > conftest.c << _LT_EOF 8024int main() { return 0;} 8025_LT_EOF 8026 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8027 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8028 _lt_result=$? 8029 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8030 lt_cv_ld_force_load=yes 8031 else 8032 cat conftest.err >&5 8033 fi 8034 rm -f conftest.err libconftest.a conftest conftest.c 8035 rm -rf conftest.dSYM 8036 8037fi 8038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8039$as_echo "$lt_cv_ld_force_load" >&6; } 8040 case $host_os in 8041 rhapsody* | darwin1.[012]) 8042 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8043 darwin1.*) 8044 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8045 darwin*) # darwin 5.x on 8046 # if running on 10.5 or later, the deployment target defaults 8047 # to the OS version, if on x86, and 10.4, the deployment 8048 # target defaults to 10.4. Don't you love it? 8049 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8050 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8051 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8052 10.[012]*) 8053 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8054 10.*) 8055 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8056 esac 8057 ;; 8058 esac 8059 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8060 _lt_dar_single_mod='$single_module' 8061 fi 8062 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8063 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8064 else 8065 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8066 fi 8067 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8068 _lt_dsymutil='~$DSYMUTIL $lib || :' 8069 else 8070 _lt_dsymutil= 8071 fi 8072 ;; 8073 esac 8074 8075for ac_header in dlfcn.h 8076do : 8077 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8078" 8079if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8080 cat >>confdefs.h <<_ACEOF 8081#define HAVE_DLFCN_H 1 8082_ACEOF 8083 8084fi 8085 8086done 8087 8088 8089 8090 8091 8092# Set options 8093 8094 8095 8096 enable_dlopen=no 8097 8098 8099 8100 # Check whether --enable-shared was given. 8101if test "${enable_shared+set}" = set; then : 8102 enableval=$enable_shared; p=${PACKAGE-default} 8103 case $enableval in 8104 yes) enable_shared=yes ;; 8105 no) enable_shared=no ;; 8106 *) 8107 enable_shared=no 8108 # Look at the argument we got. We use all the common list separators. 8109 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8110 for pkg in $enableval; do 8111 IFS="$lt_save_ifs" 8112 if test "X$pkg" = "X$p"; then 8113 enable_shared=yes 8114 fi 8115 done 8116 IFS="$lt_save_ifs" 8117 ;; 8118 esac 8119else 8120 enable_shared=yes 8121fi 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 # Check whether --enable-static was given. 8132if test "${enable_static+set}" = set; then : 8133 enableval=$enable_static; p=${PACKAGE-default} 8134 case $enableval in 8135 yes) enable_static=yes ;; 8136 no) enable_static=no ;; 8137 *) 8138 enable_static=no 8139 # Look at the argument we got. We use all the common list separators. 8140 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8141 for pkg in $enableval; do 8142 IFS="$lt_save_ifs" 8143 if test "X$pkg" = "X$p"; then 8144 enable_static=yes 8145 fi 8146 done 8147 IFS="$lt_save_ifs" 8148 ;; 8149 esac 8150else 8151 enable_static=yes 8152fi 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163# Check whether --with-pic was given. 8164if test "${with_pic+set}" = set; then : 8165 withval=$with_pic; pic_mode="$withval" 8166else 8167 pic_mode=default 8168fi 8169 8170 8171test -z "$pic_mode" && pic_mode=default 8172 8173 8174 8175 8176 8177 8178 8179 # Check whether --enable-fast-install was given. 8180if test "${enable_fast_install+set}" = set; then : 8181 enableval=$enable_fast_install; p=${PACKAGE-default} 8182 case $enableval in 8183 yes) enable_fast_install=yes ;; 8184 no) enable_fast_install=no ;; 8185 *) 8186 enable_fast_install=no 8187 # Look at the argument we got. We use all the common list separators. 8188 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8189 for pkg in $enableval; do 8190 IFS="$lt_save_ifs" 8191 if test "X$pkg" = "X$p"; then 8192 enable_fast_install=yes 8193 fi 8194 done 8195 IFS="$lt_save_ifs" 8196 ;; 8197 esac 8198else 8199 enable_fast_install=yes 8200fi 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212# This can be used to rebuild libtool when needed 8213LIBTOOL_DEPS="$ltmain" 8214 8215# Always use our own libtool. 8216LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243test -z "$LN_S" && LN_S="ln -s" 8244 8245 8246 8247 8248 8249 8250 8251 8252 8253 8254 8255 8256 8257 8258if test -n "${ZSH_VERSION+set}" ; then 8259 setopt NO_GLOB_SUBST 8260fi 8261 8262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8263$as_echo_n "checking for objdir... " >&6; } 8264if ${lt_cv_objdir+:} false; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 rm -f .libs 2>/dev/null 8268mkdir .libs 2>/dev/null 8269if test -d .libs; then 8270 lt_cv_objdir=.libs 8271else 8272 # MS-DOS does not allow filenames that begin with a dot. 8273 lt_cv_objdir=_libs 8274fi 8275rmdir .libs 2>/dev/null 8276fi 8277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8278$as_echo "$lt_cv_objdir" >&6; } 8279objdir=$lt_cv_objdir 8280 8281 8282 8283 8284 8285cat >>confdefs.h <<_ACEOF 8286#define LT_OBJDIR "$lt_cv_objdir/" 8287_ACEOF 8288 8289 8290 8291 8292case $host_os in 8293aix3*) 8294 # AIX sometimes has problems with the GCC collect2 program. For some 8295 # reason, if we set the COLLECT_NAMES environment variable, the problems 8296 # vanish in a puff of smoke. 8297 if test "X${COLLECT_NAMES+set}" != Xset; then 8298 COLLECT_NAMES= 8299 export COLLECT_NAMES 8300 fi 8301 ;; 8302esac 8303 8304# Global variables: 8305ofile=libtool 8306can_build_shared=yes 8307 8308# All known linkers require a `.a' archive for static linking (except MSVC, 8309# which needs '.lib'). 8310libext=a 8311 8312with_gnu_ld="$lt_cv_prog_gnu_ld" 8313 8314old_CC="$CC" 8315old_CFLAGS="$CFLAGS" 8316 8317# Set sane defaults for various variables 8318test -z "$CC" && CC=cc 8319test -z "$LTCC" && LTCC=$CC 8320test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8321test -z "$LD" && LD=ld 8322test -z "$ac_objext" && ac_objext=o 8323 8324for cc_temp in $compiler""; do 8325 case $cc_temp in 8326 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8327 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8328 \-*) ;; 8329 *) break;; 8330 esac 8331done 8332cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8333 8334 8335# Only perform the check for file, if the check method requires it 8336test -z "$MAGIC_CMD" && MAGIC_CMD=file 8337case $deplibs_check_method in 8338file_magic*) 8339 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8341$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8342if ${lt_cv_path_MAGIC_CMD+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 case $MAGIC_CMD in 8346[\\/*] | ?:[\\/]*) 8347 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8348 ;; 8349*) 8350 lt_save_MAGIC_CMD="$MAGIC_CMD" 8351 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8352 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8353 for ac_dir in $ac_dummy; do 8354 IFS="$lt_save_ifs" 8355 test -z "$ac_dir" && ac_dir=. 8356 if test -f $ac_dir/${ac_tool_prefix}file; then 8357 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8358 if test -n "$file_magic_test_file"; then 8359 case $deplibs_check_method in 8360 "file_magic "*) 8361 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8362 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8363 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8364 $EGREP "$file_magic_regex" > /dev/null; then 8365 : 8366 else 8367 cat <<_LT_EOF 1>&2 8368 8369*** Warning: the command libtool uses to detect shared libraries, 8370*** $file_magic_cmd, produces output that libtool cannot recognize. 8371*** The result is that libtool may fail to recognize shared libraries 8372*** as such. This will affect the creation of libtool libraries that 8373*** depend on shared libraries, but programs linked with such libtool 8374*** libraries will work regardless of this problem. Nevertheless, you 8375*** may want to report the problem to your system manager and/or to 8376*** bug-libtool@gnu.org 8377 8378_LT_EOF 8379 fi ;; 8380 esac 8381 fi 8382 break 8383 fi 8384 done 8385 IFS="$lt_save_ifs" 8386 MAGIC_CMD="$lt_save_MAGIC_CMD" 8387 ;; 8388esac 8389fi 8390 8391MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8392if test -n "$MAGIC_CMD"; then 8393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8394$as_echo "$MAGIC_CMD" >&6; } 8395else 8396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8397$as_echo "no" >&6; } 8398fi 8399 8400 8401 8402 8403 8404if test -z "$lt_cv_path_MAGIC_CMD"; then 8405 if test -n "$ac_tool_prefix"; then 8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8407$as_echo_n "checking for file... " >&6; } 8408if ${lt_cv_path_MAGIC_CMD+:} false; then : 8409 $as_echo_n "(cached) " >&6 8410else 8411 case $MAGIC_CMD in 8412[\\/*] | ?:[\\/]*) 8413 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8414 ;; 8415*) 8416 lt_save_MAGIC_CMD="$MAGIC_CMD" 8417 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8418 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8419 for ac_dir in $ac_dummy; do 8420 IFS="$lt_save_ifs" 8421 test -z "$ac_dir" && ac_dir=. 8422 if test -f $ac_dir/file; then 8423 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8424 if test -n "$file_magic_test_file"; then 8425 case $deplibs_check_method in 8426 "file_magic "*) 8427 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8428 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8429 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8430 $EGREP "$file_magic_regex" > /dev/null; then 8431 : 8432 else 8433 cat <<_LT_EOF 1>&2 8434 8435*** Warning: the command libtool uses to detect shared libraries, 8436*** $file_magic_cmd, produces output that libtool cannot recognize. 8437*** The result is that libtool may fail to recognize shared libraries 8438*** as such. This will affect the creation of libtool libraries that 8439*** depend on shared libraries, but programs linked with such libtool 8440*** libraries will work regardless of this problem. Nevertheless, you 8441*** may want to report the problem to your system manager and/or to 8442*** bug-libtool@gnu.org 8443 8444_LT_EOF 8445 fi ;; 8446 esac 8447 fi 8448 break 8449 fi 8450 done 8451 IFS="$lt_save_ifs" 8452 MAGIC_CMD="$lt_save_MAGIC_CMD" 8453 ;; 8454esac 8455fi 8456 8457MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8458if test -n "$MAGIC_CMD"; then 8459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8460$as_echo "$MAGIC_CMD" >&6; } 8461else 8462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8463$as_echo "no" >&6; } 8464fi 8465 8466 8467 else 8468 MAGIC_CMD=: 8469 fi 8470fi 8471 8472 fi 8473 ;; 8474esac 8475 8476# Use C for the default configuration in the libtool script 8477 8478lt_save_CC="$CC" 8479ac_ext=c 8480ac_cpp='$CPP $CPPFLAGS' 8481ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8482ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8483ac_compiler_gnu=$ac_cv_c_compiler_gnu 8484 8485 8486# Source file extension for C test sources. 8487ac_ext=c 8488 8489# Object file extension for compiled C test sources. 8490objext=o 8491objext=$objext 8492 8493# Code to be used in simple compile tests 8494lt_simple_compile_test_code="int some_variable = 0;" 8495 8496# Code to be used in simple link tests 8497lt_simple_link_test_code='int main(){return(0);}' 8498 8499 8500 8501 8502 8503 8504 8505# If no C compiler was specified, use CC. 8506LTCC=${LTCC-"$CC"} 8507 8508# If no C compiler flags were specified, use CFLAGS. 8509LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8510 8511# Allow CC to be a program name with arguments. 8512compiler=$CC 8513 8514# Save the default compiler, since it gets overwritten when the other 8515# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8516compiler_DEFAULT=$CC 8517 8518# save warnings/boilerplate of simple test code 8519ac_outfile=conftest.$ac_objext 8520echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8521eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8522_lt_compiler_boilerplate=`cat conftest.err` 8523$RM conftest* 8524 8525ac_outfile=conftest.$ac_objext 8526echo "$lt_simple_link_test_code" >conftest.$ac_ext 8527eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8528_lt_linker_boilerplate=`cat conftest.err` 8529$RM -r conftest* 8530 8531 8532if test -n "$compiler"; then 8533 8534lt_prog_compiler_no_builtin_flag= 8535 8536if test "$GCC" = yes; then 8537 case $cc_basename in 8538 nvcc*) 8539 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8540 *) 8541 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8542 esac 8543 8544 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8545$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8546if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8547 $as_echo_n "(cached) " >&6 8548else 8549 lt_cv_prog_compiler_rtti_exceptions=no 8550 ac_outfile=conftest.$ac_objext 8551 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8552 lt_compiler_flag="-fno-rtti -fno-exceptions" 8553 # Insert the option either (1) after the last *FLAGS variable, or 8554 # (2) before a word containing "conftest.", or (3) at the end. 8555 # Note that $ac_compile itself does not contain backslashes and begins 8556 # with a dollar sign (not a hyphen), so the echo should work correctly. 8557 # The option is referenced via a variable to avoid confusing sed. 8558 lt_compile=`echo "$ac_compile" | $SED \ 8559 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8560 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8561 -e 's:$: $lt_compiler_flag:'` 8562 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8563 (eval "$lt_compile" 2>conftest.err) 8564 ac_status=$? 8565 cat conftest.err >&5 8566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8567 if (exit $ac_status) && test -s "$ac_outfile"; then 8568 # The compiler can only warn and ignore the option if not recognized 8569 # So say no if there are warnings other than the usual output. 8570 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8571 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8572 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8573 lt_cv_prog_compiler_rtti_exceptions=yes 8574 fi 8575 fi 8576 $RM conftest* 8577 8578fi 8579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8580$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8581 8582if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8583 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8584else 8585 : 8586fi 8587 8588fi 8589 8590 8591 8592 8593 8594 8595 lt_prog_compiler_wl= 8596lt_prog_compiler_pic= 8597lt_prog_compiler_static= 8598 8599{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8600$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8601 8602 if test "$GCC" = yes; then 8603 lt_prog_compiler_wl='-Wl,' 8604 lt_prog_compiler_static='-static' 8605 8606 case $host_os in 8607 aix*) 8608 # All AIX code is PIC. 8609 if test "$host_cpu" = ia64; then 8610 # AIX 5 now supports IA64 processor 8611 lt_prog_compiler_static='-Bstatic' 8612 fi 8613 ;; 8614 8615 amigaos*) 8616 case $host_cpu in 8617 powerpc) 8618 # see comment about AmigaOS4 .so support 8619 lt_prog_compiler_pic='-fPIC' 8620 ;; 8621 m68k) 8622 # FIXME: we need at least 68020 code to build shared libraries, but 8623 # adding the `-m68020' flag to GCC prevents building anything better, 8624 # like `-m68040'. 8625 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8626 ;; 8627 esac 8628 ;; 8629 8630 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8631 # PIC is the default for these OSes. 8632 ;; 8633 8634 mingw* | cygwin* | pw32* | os2* | cegcc*) 8635 # This hack is so that the source file can tell whether it is being 8636 # built for inclusion in a dll (and should export symbols for example). 8637 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8638 # (--disable-auto-import) libraries 8639 lt_prog_compiler_pic='-DDLL_EXPORT' 8640 ;; 8641 8642 darwin* | rhapsody*) 8643 # PIC is the default on this platform 8644 # Common symbols not allowed in MH_DYLIB files 8645 lt_prog_compiler_pic='-fno-common' 8646 ;; 8647 8648 haiku*) 8649 # PIC is the default for Haiku. 8650 # The "-static" flag exists, but is broken. 8651 lt_prog_compiler_static= 8652 ;; 8653 8654 hpux*) 8655 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8656 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8657 # sets the default TLS model and affects inlining. 8658 case $host_cpu in 8659 hppa*64*) 8660 # +Z the default 8661 ;; 8662 *) 8663 lt_prog_compiler_pic='-fPIC' 8664 ;; 8665 esac 8666 ;; 8667 8668 interix[3-9]*) 8669 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8670 # Instead, we relocate shared libraries at runtime. 8671 ;; 8672 8673 msdosdjgpp*) 8674 # Just because we use GCC doesn't mean we suddenly get shared libraries 8675 # on systems that don't support them. 8676 lt_prog_compiler_can_build_shared=no 8677 enable_shared=no 8678 ;; 8679 8680 *nto* | *qnx*) 8681 # QNX uses GNU C++, but need to define -shared option too, otherwise 8682 # it will coredump. 8683 lt_prog_compiler_pic='-fPIC -shared' 8684 ;; 8685 8686 sysv4*MP*) 8687 if test -d /usr/nec; then 8688 lt_prog_compiler_pic=-Kconform_pic 8689 fi 8690 ;; 8691 8692 *) 8693 lt_prog_compiler_pic='-fPIC' 8694 ;; 8695 esac 8696 8697 case $cc_basename in 8698 nvcc*) # Cuda Compiler Driver 2.2 8699 lt_prog_compiler_wl='-Xlinker ' 8700 lt_prog_compiler_pic='-Xcompiler -fPIC' 8701 ;; 8702 esac 8703 else 8704 # PORTME Check for flag to pass linker flags through the system compiler. 8705 case $host_os in 8706 aix*) 8707 lt_prog_compiler_wl='-Wl,' 8708 if test "$host_cpu" = ia64; then 8709 # AIX 5 now supports IA64 processor 8710 lt_prog_compiler_static='-Bstatic' 8711 else 8712 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8713 fi 8714 ;; 8715 8716 mingw* | cygwin* | pw32* | os2* | cegcc*) 8717 # This hack is so that the source file can tell whether it is being 8718 # built for inclusion in a dll (and should export symbols for example). 8719 lt_prog_compiler_pic='-DDLL_EXPORT' 8720 ;; 8721 8722 hpux9* | hpux10* | hpux11*) 8723 lt_prog_compiler_wl='-Wl,' 8724 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8725 # not for PA HP-UX. 8726 case $host_cpu in 8727 hppa*64*|ia64*) 8728 # +Z the default 8729 ;; 8730 *) 8731 lt_prog_compiler_pic='+Z' 8732 ;; 8733 esac 8734 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8735 lt_prog_compiler_static='${wl}-a ${wl}archive' 8736 ;; 8737 8738 irix5* | irix6* | nonstopux*) 8739 lt_prog_compiler_wl='-Wl,' 8740 # PIC (with -KPIC) is the default. 8741 lt_prog_compiler_static='-non_shared' 8742 ;; 8743 8744 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8745 case $cc_basename in 8746 # old Intel for x86_64 which still supported -KPIC. 8747 ecc*) 8748 lt_prog_compiler_wl='-Wl,' 8749 lt_prog_compiler_pic='-KPIC' 8750 lt_prog_compiler_static='-static' 8751 ;; 8752 # icc used to be incompatible with GCC. 8753 # ICC 10 doesn't accept -KPIC any more. 8754 icc* | ifort*) 8755 lt_prog_compiler_wl='-Wl,' 8756 lt_prog_compiler_pic='-fPIC' 8757 lt_prog_compiler_static='-static' 8758 ;; 8759 # Lahey Fortran 8.1. 8760 lf95*) 8761 lt_prog_compiler_wl='-Wl,' 8762 lt_prog_compiler_pic='--shared' 8763 lt_prog_compiler_static='--static' 8764 ;; 8765 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8766 # Portland Group compilers (*not* the Pentium gcc compiler, 8767 # which looks to be a dead project) 8768 lt_prog_compiler_wl='-Wl,' 8769 lt_prog_compiler_pic='-fpic' 8770 lt_prog_compiler_static='-Bstatic' 8771 ;; 8772 ccc*) 8773 lt_prog_compiler_wl='-Wl,' 8774 # All Alpha code is PIC. 8775 lt_prog_compiler_static='-non_shared' 8776 ;; 8777 xl* | bgxl* | bgf* | mpixl*) 8778 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8779 lt_prog_compiler_wl='-Wl,' 8780 lt_prog_compiler_pic='-qpic' 8781 lt_prog_compiler_static='-qstaticlink' 8782 ;; 8783 *) 8784 case `$CC -V 2>&1 | sed 5q` in 8785 *Sun\ F* | *Sun*Fortran*) 8786 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8787 lt_prog_compiler_pic='-KPIC' 8788 lt_prog_compiler_static='-Bstatic' 8789 lt_prog_compiler_wl='' 8790 ;; 8791 *Sun\ C*) 8792 # Sun C 5.9 8793 lt_prog_compiler_pic='-KPIC' 8794 lt_prog_compiler_static='-Bstatic' 8795 lt_prog_compiler_wl='-Wl,' 8796 ;; 8797 esac 8798 ;; 8799 esac 8800 ;; 8801 8802 newsos6) 8803 lt_prog_compiler_pic='-KPIC' 8804 lt_prog_compiler_static='-Bstatic' 8805 ;; 8806 8807 *nto* | *qnx*) 8808 # QNX uses GNU C++, but need to define -shared option too, otherwise 8809 # it will coredump. 8810 lt_prog_compiler_pic='-fPIC -shared' 8811 ;; 8812 8813 osf3* | osf4* | osf5*) 8814 lt_prog_compiler_wl='-Wl,' 8815 # All OSF/1 code is PIC. 8816 lt_prog_compiler_static='-non_shared' 8817 ;; 8818 8819 rdos*) 8820 lt_prog_compiler_static='-non_shared' 8821 ;; 8822 8823 solaris*) 8824 lt_prog_compiler_pic='-KPIC' 8825 lt_prog_compiler_static='-Bstatic' 8826 case $cc_basename in 8827 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8828 lt_prog_compiler_wl='-Qoption ld ';; 8829 *) 8830 lt_prog_compiler_wl='-Wl,';; 8831 esac 8832 ;; 8833 8834 sunos4*) 8835 lt_prog_compiler_wl='-Qoption ld ' 8836 lt_prog_compiler_pic='-PIC' 8837 lt_prog_compiler_static='-Bstatic' 8838 ;; 8839 8840 sysv4 | sysv4.2uw2* | sysv4.3*) 8841 lt_prog_compiler_wl='-Wl,' 8842 lt_prog_compiler_pic='-KPIC' 8843 lt_prog_compiler_static='-Bstatic' 8844 ;; 8845 8846 sysv4*MP*) 8847 if test -d /usr/nec ;then 8848 lt_prog_compiler_pic='-Kconform_pic' 8849 lt_prog_compiler_static='-Bstatic' 8850 fi 8851 ;; 8852 8853 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8854 lt_prog_compiler_wl='-Wl,' 8855 lt_prog_compiler_pic='-KPIC' 8856 lt_prog_compiler_static='-Bstatic' 8857 ;; 8858 8859 unicos*) 8860 lt_prog_compiler_wl='-Wl,' 8861 lt_prog_compiler_can_build_shared=no 8862 ;; 8863 8864 uts4*) 8865 lt_prog_compiler_pic='-pic' 8866 lt_prog_compiler_static='-Bstatic' 8867 ;; 8868 8869 *) 8870 lt_prog_compiler_can_build_shared=no 8871 ;; 8872 esac 8873 fi 8874 8875case $host_os in 8876 # For platforms which do not support PIC, -DPIC is meaningless: 8877 *djgpp*) 8878 lt_prog_compiler_pic= 8879 ;; 8880 *) 8881 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8882 ;; 8883esac 8884{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8885$as_echo "$lt_prog_compiler_pic" >&6; } 8886 8887 8888 8889 8890 8891 8892# 8893# Check to make sure the PIC flag actually works. 8894# 8895if test -n "$lt_prog_compiler_pic"; then 8896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8897$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8898if ${lt_cv_prog_compiler_pic_works+:} false; then : 8899 $as_echo_n "(cached) " >&6 8900else 8901 lt_cv_prog_compiler_pic_works=no 8902 ac_outfile=conftest.$ac_objext 8903 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8904 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8905 # Insert the option either (1) after the last *FLAGS variable, or 8906 # (2) before a word containing "conftest.", or (3) at the end. 8907 # Note that $ac_compile itself does not contain backslashes and begins 8908 # with a dollar sign (not a hyphen), so the echo should work correctly. 8909 # The option is referenced via a variable to avoid confusing sed. 8910 lt_compile=`echo "$ac_compile" | $SED \ 8911 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8912 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8913 -e 's:$: $lt_compiler_flag:'` 8914 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8915 (eval "$lt_compile" 2>conftest.err) 8916 ac_status=$? 8917 cat conftest.err >&5 8918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8919 if (exit $ac_status) && test -s "$ac_outfile"; then 8920 # The compiler can only warn and ignore the option if not recognized 8921 # So say no if there are warnings other than the usual output. 8922 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8923 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8924 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8925 lt_cv_prog_compiler_pic_works=yes 8926 fi 8927 fi 8928 $RM conftest* 8929 8930fi 8931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8932$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8933 8934if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8935 case $lt_prog_compiler_pic in 8936 "" | " "*) ;; 8937 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8938 esac 8939else 8940 lt_prog_compiler_pic= 8941 lt_prog_compiler_can_build_shared=no 8942fi 8943 8944fi 8945 8946 8947 8948 8949 8950 8951# 8952# Check to make sure the static flag actually works. 8953# 8954wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8956$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8957if ${lt_cv_prog_compiler_static_works+:} false; then : 8958 $as_echo_n "(cached) " >&6 8959else 8960 lt_cv_prog_compiler_static_works=no 8961 save_LDFLAGS="$LDFLAGS" 8962 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8963 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8964 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8965 # The linker can only warn and ignore the option if not recognized 8966 # So say no if there are warnings 8967 if test -s conftest.err; then 8968 # Append any errors to the config.log. 8969 cat conftest.err 1>&5 8970 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8971 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8972 if diff conftest.exp conftest.er2 >/dev/null; then 8973 lt_cv_prog_compiler_static_works=yes 8974 fi 8975 else 8976 lt_cv_prog_compiler_static_works=yes 8977 fi 8978 fi 8979 $RM -r conftest* 8980 LDFLAGS="$save_LDFLAGS" 8981 8982fi 8983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8984$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8985 8986if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8987 : 8988else 8989 lt_prog_compiler_static= 8990fi 8991 8992 8993 8994 8995 8996 8997 8998 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8999$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9000if ${lt_cv_prog_compiler_c_o+:} false; then : 9001 $as_echo_n "(cached) " >&6 9002else 9003 lt_cv_prog_compiler_c_o=no 9004 $RM -r conftest 2>/dev/null 9005 mkdir conftest 9006 cd conftest 9007 mkdir out 9008 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9009 9010 lt_compiler_flag="-o out/conftest2.$ac_objext" 9011 # Insert the option either (1) after the last *FLAGS variable, or 9012 # (2) before a word containing "conftest.", or (3) at the end. 9013 # Note that $ac_compile itself does not contain backslashes and begins 9014 # with a dollar sign (not a hyphen), so the echo should work correctly. 9015 lt_compile=`echo "$ac_compile" | $SED \ 9016 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9017 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9018 -e 's:$: $lt_compiler_flag:'` 9019 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9020 (eval "$lt_compile" 2>out/conftest.err) 9021 ac_status=$? 9022 cat out/conftest.err >&5 9023 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9024 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9025 then 9026 # The compiler can only warn and ignore the option if not recognized 9027 # So say no if there are warnings 9028 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9029 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9030 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9031 lt_cv_prog_compiler_c_o=yes 9032 fi 9033 fi 9034 chmod u+w . 2>&5 9035 $RM conftest* 9036 # SGI C++ compiler will create directory out/ii_files/ for 9037 # template instantiation 9038 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9039 $RM out/* && rmdir out 9040 cd .. 9041 $RM -r conftest 9042 $RM conftest* 9043 9044fi 9045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9046$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9047 9048 9049 9050 9051 9052 9053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9054$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9055if ${lt_cv_prog_compiler_c_o+:} false; then : 9056 $as_echo_n "(cached) " >&6 9057else 9058 lt_cv_prog_compiler_c_o=no 9059 $RM -r conftest 2>/dev/null 9060 mkdir conftest 9061 cd conftest 9062 mkdir out 9063 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9064 9065 lt_compiler_flag="-o out/conftest2.$ac_objext" 9066 # Insert the option either (1) after the last *FLAGS variable, or 9067 # (2) before a word containing "conftest.", or (3) at the end. 9068 # Note that $ac_compile itself does not contain backslashes and begins 9069 # with a dollar sign (not a hyphen), so the echo should work correctly. 9070 lt_compile=`echo "$ac_compile" | $SED \ 9071 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9072 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9073 -e 's:$: $lt_compiler_flag:'` 9074 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9075 (eval "$lt_compile" 2>out/conftest.err) 9076 ac_status=$? 9077 cat out/conftest.err >&5 9078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9079 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9080 then 9081 # The compiler can only warn and ignore the option if not recognized 9082 # So say no if there are warnings 9083 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9084 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9085 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9086 lt_cv_prog_compiler_c_o=yes 9087 fi 9088 fi 9089 chmod u+w . 2>&5 9090 $RM conftest* 9091 # SGI C++ compiler will create directory out/ii_files/ for 9092 # template instantiation 9093 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9094 $RM out/* && rmdir out 9095 cd .. 9096 $RM -r conftest 9097 $RM conftest* 9098 9099fi 9100{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9101$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9102 9103 9104 9105 9106hard_links="nottested" 9107if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9108 # do not overwrite the value of need_locks provided by the user 9109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9110$as_echo_n "checking if we can lock with hard links... " >&6; } 9111 hard_links=yes 9112 $RM conftest* 9113 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9114 touch conftest.a 9115 ln conftest.a conftest.b 2>&5 || hard_links=no 9116 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9118$as_echo "$hard_links" >&6; } 9119 if test "$hard_links" = no; then 9120 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9121$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9122 need_locks=warn 9123 fi 9124else 9125 need_locks=no 9126fi 9127 9128 9129 9130 9131 9132 9133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9134$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9135 9136 runpath_var= 9137 allow_undefined_flag= 9138 always_export_symbols=no 9139 archive_cmds= 9140 archive_expsym_cmds= 9141 compiler_needs_object=no 9142 enable_shared_with_static_runtimes=no 9143 export_dynamic_flag_spec= 9144 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9145 hardcode_automatic=no 9146 hardcode_direct=no 9147 hardcode_direct_absolute=no 9148 hardcode_libdir_flag_spec= 9149 hardcode_libdir_flag_spec_ld= 9150 hardcode_libdir_separator= 9151 hardcode_minus_L=no 9152 hardcode_shlibpath_var=unsupported 9153 inherit_rpath=no 9154 link_all_deplibs=unknown 9155 module_cmds= 9156 module_expsym_cmds= 9157 old_archive_from_new_cmds= 9158 old_archive_from_expsyms_cmds= 9159 thread_safe_flag_spec= 9160 whole_archive_flag_spec= 9161 # include_expsyms should be a list of space-separated symbols to be *always* 9162 # included in the symbol list 9163 include_expsyms= 9164 # exclude_expsyms can be an extended regexp of symbols to exclude 9165 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9166 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9167 # as well as any symbol that contains `d'. 9168 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9169 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9170 # platforms (ab)use it in PIC code, but their linkers get confused if 9171 # the symbol is explicitly referenced. Since portable code cannot 9172 # rely on this symbol name, it's probably fine to never include it in 9173 # preloaded symbol tables. 9174 # Exclude shared library initialization/finalization symbols. 9175 extract_expsyms_cmds= 9176 9177 case $host_os in 9178 cygwin* | mingw* | pw32* | cegcc*) 9179 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9180 # When not using gcc, we currently assume that we are using 9181 # Microsoft Visual C++. 9182 if test "$GCC" != yes; then 9183 with_gnu_ld=no 9184 fi 9185 ;; 9186 interix*) 9187 # we just hope/assume this is gcc and not c89 (= MSVC++) 9188 with_gnu_ld=yes 9189 ;; 9190 openbsd*) 9191 with_gnu_ld=no 9192 ;; 9193 esac 9194 9195 ld_shlibs=yes 9196 9197 # On some targets, GNU ld is compatible enough with the native linker 9198 # that we're better off using the native interface for both. 9199 lt_use_gnu_ld_interface=no 9200 if test "$with_gnu_ld" = yes; then 9201 case $host_os in 9202 aix*) 9203 # The AIX port of GNU ld has always aspired to compatibility 9204 # with the native linker. However, as the warning in the GNU ld 9205 # block says, versions before 2.19.5* couldn't really create working 9206 # shared libraries, regardless of the interface used. 9207 case `$LD -v 2>&1` in 9208 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9209 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9210 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9211 *) 9212 lt_use_gnu_ld_interface=yes 9213 ;; 9214 esac 9215 ;; 9216 *) 9217 lt_use_gnu_ld_interface=yes 9218 ;; 9219 esac 9220 fi 9221 9222 if test "$lt_use_gnu_ld_interface" = yes; then 9223 # If archive_cmds runs LD, not CC, wlarc should be empty 9224 wlarc='${wl}' 9225 9226 # Set some defaults for GNU ld with shared library support. These 9227 # are reset later if shared libraries are not supported. Putting them 9228 # here allows them to be overridden if necessary. 9229 runpath_var=LD_RUN_PATH 9230 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9231 export_dynamic_flag_spec='${wl}--export-dynamic' 9232 # ancient GNU ld didn't support --whole-archive et. al. 9233 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9234 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9235 else 9236 whole_archive_flag_spec= 9237 fi 9238 supports_anon_versioning=no 9239 case `$LD -v 2>&1` in 9240 *GNU\ gold*) supports_anon_versioning=yes ;; 9241 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9242 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9243 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9244 *\ 2.11.*) ;; # other 2.11 versions 9245 *) supports_anon_versioning=yes ;; 9246 esac 9247 9248 # See if GNU ld supports shared libraries. 9249 case $host_os in 9250 aix[3-9]*) 9251 # On AIX/PPC, the GNU linker is very broken 9252 if test "$host_cpu" != ia64; then 9253 ld_shlibs=no 9254 cat <<_LT_EOF 1>&2 9255 9256*** Warning: the GNU linker, at least up to release 2.19, is reported 9257*** to be unable to reliably create shared libraries on AIX. 9258*** Therefore, libtool is disabling shared libraries support. If you 9259*** really care for shared libraries, you may want to install binutils 9260*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9261*** You will then need to restart the configuration process. 9262 9263_LT_EOF 9264 fi 9265 ;; 9266 9267 amigaos*) 9268 case $host_cpu in 9269 powerpc) 9270 # see comment about AmigaOS4 .so support 9271 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9272 archive_expsym_cmds='' 9273 ;; 9274 m68k) 9275 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)' 9276 hardcode_libdir_flag_spec='-L$libdir' 9277 hardcode_minus_L=yes 9278 ;; 9279 esac 9280 ;; 9281 9282 beos*) 9283 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9284 allow_undefined_flag=unsupported 9285 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9286 # support --undefined. This deserves some investigation. FIXME 9287 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9288 else 9289 ld_shlibs=no 9290 fi 9291 ;; 9292 9293 cygwin* | mingw* | pw32* | cegcc*) 9294 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9295 # as there is no search path for DLLs. 9296 hardcode_libdir_flag_spec='-L$libdir' 9297 export_dynamic_flag_spec='${wl}--export-all-symbols' 9298 allow_undefined_flag=unsupported 9299 always_export_symbols=no 9300 enable_shared_with_static_runtimes=yes 9301 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9302 9303 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9304 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9305 # If the export-symbols file already is a .def file (1st line 9306 # is EXPORTS), use it as is; otherwise, prepend... 9307 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9308 cp $export_symbols $output_objdir/$soname.def; 9309 else 9310 echo EXPORTS > $output_objdir/$soname.def; 9311 cat $export_symbols >> $output_objdir/$soname.def; 9312 fi~ 9313 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9314 else 9315 ld_shlibs=no 9316 fi 9317 ;; 9318 9319 haiku*) 9320 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9321 link_all_deplibs=yes 9322 ;; 9323 9324 interix[3-9]*) 9325 hardcode_direct=no 9326 hardcode_shlibpath_var=no 9327 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9328 export_dynamic_flag_spec='${wl}-E' 9329 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9330 # Instead, shared libraries are loaded at an image base (0x10000000 by 9331 # default) and relocated if they conflict, which is a slow very memory 9332 # consuming and fragmenting process. To avoid this, we pick a random, 9333 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9334 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9335 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9336 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' 9337 ;; 9338 9339 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9340 tmp_diet=no 9341 if test "$host_os" = linux-dietlibc; then 9342 case $cc_basename in 9343 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9344 esac 9345 fi 9346 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9347 && test "$tmp_diet" = no 9348 then 9349 tmp_addflag= 9350 tmp_sharedflag='-shared' 9351 case $cc_basename,$host_cpu in 9352 pgcc*) # Portland Group C compiler 9353 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' 9354 tmp_addflag=' $pic_flag' 9355 ;; 9356 pgf77* | pgf90* | pgf95* | pgfortran*) 9357 # Portland Group f77 and f90 compilers 9358 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' 9359 tmp_addflag=' $pic_flag -Mnomain' ;; 9360 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9361 tmp_addflag=' -i_dynamic' ;; 9362 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9363 tmp_addflag=' -i_dynamic -nofor_main' ;; 9364 ifc* | ifort*) # Intel Fortran compiler 9365 tmp_addflag=' -nofor_main' ;; 9366 lf95*) # Lahey Fortran 8.1 9367 whole_archive_flag_spec= 9368 tmp_sharedflag='--shared' ;; 9369 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9370 tmp_sharedflag='-qmkshrobj' 9371 tmp_addflag= ;; 9372 nvcc*) # Cuda Compiler Driver 2.2 9373 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' 9374 compiler_needs_object=yes 9375 ;; 9376 esac 9377 case `$CC -V 2>&1 | sed 5q` in 9378 *Sun\ C*) # Sun C 5.9 9379 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' 9380 compiler_needs_object=yes 9381 tmp_sharedflag='-G' ;; 9382 *Sun\ F*) # Sun Fortran 8.3 9383 tmp_sharedflag='-G' ;; 9384 esac 9385 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9386 9387 if test "x$supports_anon_versioning" = xyes; then 9388 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9389 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9390 echo "local: *; };" >> $output_objdir/$libname.ver~ 9391 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9392 fi 9393 9394 case $cc_basename in 9395 xlf* | bgf* | bgxlf* | mpixlf*) 9396 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9397 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9398 hardcode_libdir_flag_spec= 9399 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9400 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9401 if test "x$supports_anon_versioning" = xyes; then 9402 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9403 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9404 echo "local: *; };" >> $output_objdir/$libname.ver~ 9405 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9406 fi 9407 ;; 9408 esac 9409 else 9410 ld_shlibs=no 9411 fi 9412 ;; 9413 9414 netbsd*) 9415 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9416 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9417 wlarc= 9418 else 9419 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9420 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9421 fi 9422 ;; 9423 9424 solaris*) 9425 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9426 ld_shlibs=no 9427 cat <<_LT_EOF 1>&2 9428 9429*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9430*** create shared libraries on Solaris systems. Therefore, libtool 9431*** is disabling shared libraries support. We urge you to upgrade GNU 9432*** binutils to release 2.9.1 or newer. Another option is to modify 9433*** your PATH or compiler configuration so that the native linker is 9434*** used, and then restart. 9435 9436_LT_EOF 9437 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9438 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9439 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9440 else 9441 ld_shlibs=no 9442 fi 9443 ;; 9444 9445 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9446 case `$LD -v 2>&1` in 9447 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9448 ld_shlibs=no 9449 cat <<_LT_EOF 1>&2 9450 9451*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9452*** reliably create shared libraries on SCO systems. Therefore, libtool 9453*** is disabling shared libraries support. We urge you to upgrade GNU 9454*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9455*** your PATH or compiler configuration so that the native linker is 9456*** used, and then restart. 9457 9458_LT_EOF 9459 ;; 9460 *) 9461 # For security reasons, it is highly recommended that you always 9462 # use absolute paths for naming shared libraries, and exclude the 9463 # DT_RUNPATH tag from executables and libraries. But doing so 9464 # requires that you compile everything twice, which is a pain. 9465 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9466 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9467 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9468 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9469 else 9470 ld_shlibs=no 9471 fi 9472 ;; 9473 esac 9474 ;; 9475 9476 sunos4*) 9477 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9478 wlarc= 9479 hardcode_direct=yes 9480 hardcode_shlibpath_var=no 9481 ;; 9482 9483 *) 9484 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9485 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9486 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9487 else 9488 ld_shlibs=no 9489 fi 9490 ;; 9491 esac 9492 9493 if test "$ld_shlibs" = no; then 9494 runpath_var= 9495 hardcode_libdir_flag_spec= 9496 export_dynamic_flag_spec= 9497 whole_archive_flag_spec= 9498 fi 9499 else 9500 # PORTME fill in a description of your system's linker (not GNU ld) 9501 case $host_os in 9502 aix3*) 9503 allow_undefined_flag=unsupported 9504 always_export_symbols=yes 9505 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' 9506 # Note: this linker hardcodes the directories in LIBPATH if there 9507 # are no directories specified by -L. 9508 hardcode_minus_L=yes 9509 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9510 # Neither direct hardcoding nor static linking is supported with a 9511 # broken collect2. 9512 hardcode_direct=unsupported 9513 fi 9514 ;; 9515 9516 aix[4-9]*) 9517 if test "$host_cpu" = ia64; then 9518 # On IA64, the linker does run time linking by default, so we don't 9519 # have to do anything special. 9520 aix_use_runtimelinking=no 9521 exp_sym_flag='-Bexport' 9522 no_entry_flag="" 9523 else 9524 # If we're using GNU nm, then we don't want the "-C" option. 9525 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9526 # Also, AIX nm treats weak defined symbols like other global 9527 # defined symbols, whereas GNU nm marks them as "W". 9528 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9529 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' 9530 else 9531 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' 9532 fi 9533 aix_use_runtimelinking=no 9534 9535 # Test if we are trying to use run time linking or normal 9536 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9537 # need to do runtime linking. 9538 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9539 for ld_flag in $LDFLAGS; do 9540 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9541 aix_use_runtimelinking=yes 9542 break 9543 fi 9544 done 9545 ;; 9546 esac 9547 9548 exp_sym_flag='-bexport' 9549 no_entry_flag='-bnoentry' 9550 fi 9551 9552 # When large executables or shared objects are built, AIX ld can 9553 # have problems creating the table of contents. If linking a library 9554 # or program results in "error TOC overflow" add -mminimal-toc to 9555 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9556 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9557 9558 archive_cmds='' 9559 hardcode_direct=yes 9560 hardcode_direct_absolute=yes 9561 hardcode_libdir_separator=':' 9562 link_all_deplibs=yes 9563 file_list_spec='${wl}-f,' 9564 9565 if test "$GCC" = yes; then 9566 case $host_os in aix4.[012]|aix4.[012].*) 9567 # We only want to do this on AIX 4.2 and lower, the check 9568 # below for broken collect2 doesn't work under 4.3+ 9569 collect2name=`${CC} -print-prog-name=collect2` 9570 if test -f "$collect2name" && 9571 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9572 then 9573 # We have reworked collect2 9574 : 9575 else 9576 # We have old collect2 9577 hardcode_direct=unsupported 9578 # It fails to find uninstalled libraries when the uninstalled 9579 # path is not listed in the libpath. Setting hardcode_minus_L 9580 # to unsupported forces relinking 9581 hardcode_minus_L=yes 9582 hardcode_libdir_flag_spec='-L$libdir' 9583 hardcode_libdir_separator= 9584 fi 9585 ;; 9586 esac 9587 shared_flag='-shared' 9588 if test "$aix_use_runtimelinking" = yes; then 9589 shared_flag="$shared_flag "'${wl}-G' 9590 fi 9591 else 9592 # not using gcc 9593 if test "$host_cpu" = ia64; then 9594 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9595 # chokes on -Wl,-G. The following line is correct: 9596 shared_flag='-G' 9597 else 9598 if test "$aix_use_runtimelinking" = yes; then 9599 shared_flag='${wl}-G' 9600 else 9601 shared_flag='${wl}-bM:SRE' 9602 fi 9603 fi 9604 fi 9605 9606 export_dynamic_flag_spec='${wl}-bexpall' 9607 # It seems that -bexpall does not export symbols beginning with 9608 # underscore (_), so it is better to generate a list of symbols to export. 9609 always_export_symbols=yes 9610 if test "$aix_use_runtimelinking" = yes; then 9611 # Warning - without using the other runtime loading flags (-brtl), 9612 # -berok will link without error, but may produce a broken library. 9613 allow_undefined_flag='-berok' 9614 # Determine the default libpath from the value encoded in an 9615 # empty executable. 9616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9617/* end confdefs.h. */ 9618 9619int 9620main () 9621{ 9622 9623 ; 9624 return 0; 9625} 9626_ACEOF 9627if ac_fn_c_try_link "$LINENO"; then : 9628 9629lt_aix_libpath_sed=' 9630 /Import File Strings/,/^$/ { 9631 /^0/ { 9632 s/^0 *\(.*\)$/\1/ 9633 p 9634 } 9635 }' 9636aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9637# Check for a 64-bit object if we didn't find anything. 9638if test -z "$aix_libpath"; then 9639 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9640fi 9641fi 9642rm -f core conftest.err conftest.$ac_objext \ 9643 conftest$ac_exeext conftest.$ac_ext 9644if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9645 9646 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9647 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" 9648 else 9649 if test "$host_cpu" = ia64; then 9650 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9651 allow_undefined_flag="-z nodefs" 9652 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" 9653 else 9654 # Determine the default libpath from the value encoded in an 9655 # empty executable. 9656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9657/* end confdefs.h. */ 9658 9659int 9660main () 9661{ 9662 9663 ; 9664 return 0; 9665} 9666_ACEOF 9667if ac_fn_c_try_link "$LINENO"; then : 9668 9669lt_aix_libpath_sed=' 9670 /Import File Strings/,/^$/ { 9671 /^0/ { 9672 s/^0 *\(.*\)$/\1/ 9673 p 9674 } 9675 }' 9676aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9677# Check for a 64-bit object if we didn't find anything. 9678if test -z "$aix_libpath"; then 9679 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9680fi 9681fi 9682rm -f core conftest.err conftest.$ac_objext \ 9683 conftest$ac_exeext conftest.$ac_ext 9684if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9685 9686 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9687 # Warning - without using the other run time loading flags, 9688 # -berok will link without error, but may produce a broken library. 9689 no_undefined_flag=' ${wl}-bernotok' 9690 allow_undefined_flag=' ${wl}-berok' 9691 if test "$with_gnu_ld" = yes; then 9692 # We only use this code for GNU lds that support --whole-archive. 9693 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9694 else 9695 # Exported symbols can be pulled into shared objects from archives 9696 whole_archive_flag_spec='$convenience' 9697 fi 9698 archive_cmds_need_lc=yes 9699 # This is similar to how AIX traditionally builds its shared libraries. 9700 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' 9701 fi 9702 fi 9703 ;; 9704 9705 amigaos*) 9706 case $host_cpu in 9707 powerpc) 9708 # see comment about AmigaOS4 .so support 9709 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9710 archive_expsym_cmds='' 9711 ;; 9712 m68k) 9713 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)' 9714 hardcode_libdir_flag_spec='-L$libdir' 9715 hardcode_minus_L=yes 9716 ;; 9717 esac 9718 ;; 9719 9720 bsdi[45]*) 9721 export_dynamic_flag_spec=-rdynamic 9722 ;; 9723 9724 cygwin* | mingw* | pw32* | cegcc*) 9725 # When not using gcc, we currently assume that we are using 9726 # Microsoft Visual C++. 9727 # hardcode_libdir_flag_spec is actually meaningless, as there is 9728 # no search path for DLLs. 9729 hardcode_libdir_flag_spec=' ' 9730 allow_undefined_flag=unsupported 9731 # Tell ltmain to make .lib files, not .a files. 9732 libext=lib 9733 # Tell ltmain to make .dll files, not .so files. 9734 shrext_cmds=".dll" 9735 # FIXME: Setting linknames here is a bad hack. 9736 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9737 # The linker will automatically build a .lib file if we build a DLL. 9738 old_archive_from_new_cmds='true' 9739 # FIXME: Should let the user specify the lib program. 9740 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9741 fix_srcfile_path='`cygpath -w "$srcfile"`' 9742 enable_shared_with_static_runtimes=yes 9743 ;; 9744 9745 darwin* | rhapsody*) 9746 9747 9748 archive_cmds_need_lc=no 9749 hardcode_direct=no 9750 hardcode_automatic=yes 9751 hardcode_shlibpath_var=unsupported 9752 if test "$lt_cv_ld_force_load" = "yes"; then 9753 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\"`' 9754 else 9755 whole_archive_flag_spec='' 9756 fi 9757 link_all_deplibs=yes 9758 allow_undefined_flag="$_lt_dar_allow_undefined" 9759 case $cc_basename in 9760 ifort*) _lt_dar_can_shared=yes ;; 9761 *) _lt_dar_can_shared=$GCC ;; 9762 esac 9763 if test "$_lt_dar_can_shared" = "yes"; then 9764 output_verbose_link_cmd=func_echo_all 9765 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9766 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9767 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}" 9768 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}" 9769 9770 else 9771 ld_shlibs=no 9772 fi 9773 9774 ;; 9775 9776 dgux*) 9777 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9778 hardcode_libdir_flag_spec='-L$libdir' 9779 hardcode_shlibpath_var=no 9780 ;; 9781 9782 freebsd1*) 9783 ld_shlibs=no 9784 ;; 9785 9786 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9787 # support. Future versions do this automatically, but an explicit c++rt0.o 9788 # does not break anything, and helps significantly (at the cost of a little 9789 # extra space). 9790 freebsd2.2*) 9791 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9792 hardcode_libdir_flag_spec='-R$libdir' 9793 hardcode_direct=yes 9794 hardcode_shlibpath_var=no 9795 ;; 9796 9797 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9798 freebsd2*) 9799 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9800 hardcode_direct=yes 9801 hardcode_minus_L=yes 9802 hardcode_shlibpath_var=no 9803 ;; 9804 9805 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9806 freebsd* | dragonfly*) 9807 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9808 hardcode_libdir_flag_spec='-R$libdir' 9809 hardcode_direct=yes 9810 hardcode_shlibpath_var=no 9811 ;; 9812 9813 hpux9*) 9814 if test "$GCC" = yes; then 9815 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9816 else 9817 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' 9818 fi 9819 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9820 hardcode_libdir_separator=: 9821 hardcode_direct=yes 9822 9823 # hardcode_minus_L: Not really in the search PATH, 9824 # but as the default location of the library. 9825 hardcode_minus_L=yes 9826 export_dynamic_flag_spec='${wl}-E' 9827 ;; 9828 9829 hpux10*) 9830 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9831 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9832 else 9833 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9834 fi 9835 if test "$with_gnu_ld" = no; then 9836 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9837 hardcode_libdir_flag_spec_ld='+b $libdir' 9838 hardcode_libdir_separator=: 9839 hardcode_direct=yes 9840 hardcode_direct_absolute=yes 9841 export_dynamic_flag_spec='${wl}-E' 9842 # hardcode_minus_L: Not really in the search PATH, 9843 # but as the default location of the library. 9844 hardcode_minus_L=yes 9845 fi 9846 ;; 9847 9848 hpux11*) 9849 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9850 case $host_cpu in 9851 hppa*64*) 9852 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9853 ;; 9854 ia64*) 9855 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9856 ;; 9857 *) 9858 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9859 ;; 9860 esac 9861 else 9862 case $host_cpu in 9863 hppa*64*) 9864 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9865 ;; 9866 ia64*) 9867 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9868 ;; 9869 *) 9870 9871 # Older versions of the 11.00 compiler do not understand -b yet 9872 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9874$as_echo_n "checking if $CC understands -b... " >&6; } 9875if ${lt_cv_prog_compiler__b+:} false; then : 9876 $as_echo_n "(cached) " >&6 9877else 9878 lt_cv_prog_compiler__b=no 9879 save_LDFLAGS="$LDFLAGS" 9880 LDFLAGS="$LDFLAGS -b" 9881 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9882 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9883 # The linker can only warn and ignore the option if not recognized 9884 # So say no if there are warnings 9885 if test -s conftest.err; then 9886 # Append any errors to the config.log. 9887 cat conftest.err 1>&5 9888 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9889 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9890 if diff conftest.exp conftest.er2 >/dev/null; then 9891 lt_cv_prog_compiler__b=yes 9892 fi 9893 else 9894 lt_cv_prog_compiler__b=yes 9895 fi 9896 fi 9897 $RM -r conftest* 9898 LDFLAGS="$save_LDFLAGS" 9899 9900fi 9901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9902$as_echo "$lt_cv_prog_compiler__b" >&6; } 9903 9904if test x"$lt_cv_prog_compiler__b" = xyes; then 9905 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9906else 9907 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9908fi 9909 9910 ;; 9911 esac 9912 fi 9913 if test "$with_gnu_ld" = no; then 9914 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9915 hardcode_libdir_separator=: 9916 9917 case $host_cpu in 9918 hppa*64*|ia64*) 9919 hardcode_direct=no 9920 hardcode_shlibpath_var=no 9921 ;; 9922 *) 9923 hardcode_direct=yes 9924 hardcode_direct_absolute=yes 9925 export_dynamic_flag_spec='${wl}-E' 9926 9927 # hardcode_minus_L: Not really in the search PATH, 9928 # but as the default location of the library. 9929 hardcode_minus_L=yes 9930 ;; 9931 esac 9932 fi 9933 ;; 9934 9935 irix5* | irix6* | nonstopux*) 9936 if test "$GCC" = yes; then 9937 archive_cmds='$CC -shared $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' 9938 # Try to use the -exported_symbol ld option, if it does not 9939 # work, assume that -exports_file does not work either and 9940 # implicitly export all symbols. 9941 save_LDFLAGS="$LDFLAGS" 9942 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9944/* end confdefs.h. */ 9945int foo(void) {} 9946_ACEOF 9947if ac_fn_c_try_link "$LINENO"; then : 9948 archive_expsym_cmds='$CC -shared $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' 9949 9950fi 9951rm -f core conftest.err conftest.$ac_objext \ 9952 conftest$ac_exeext conftest.$ac_ext 9953 LDFLAGS="$save_LDFLAGS" 9954 else 9955 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' 9956 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' 9957 fi 9958 archive_cmds_need_lc='no' 9959 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9960 hardcode_libdir_separator=: 9961 inherit_rpath=yes 9962 link_all_deplibs=yes 9963 ;; 9964 9965 netbsd*) 9966 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9967 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9968 else 9969 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9970 fi 9971 hardcode_libdir_flag_spec='-R$libdir' 9972 hardcode_direct=yes 9973 hardcode_shlibpath_var=no 9974 ;; 9975 9976 newsos6) 9977 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9978 hardcode_direct=yes 9979 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9980 hardcode_libdir_separator=: 9981 hardcode_shlibpath_var=no 9982 ;; 9983 9984 *nto* | *qnx*) 9985 ;; 9986 9987 openbsd*) 9988 if test -f /usr/libexec/ld.so; then 9989 hardcode_direct=yes 9990 hardcode_shlibpath_var=no 9991 hardcode_direct_absolute=yes 9992 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9993 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9994 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9995 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9996 export_dynamic_flag_spec='${wl}-E' 9997 else 9998 case $host_os in 9999 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10000 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10001 hardcode_libdir_flag_spec='-R$libdir' 10002 ;; 10003 *) 10004 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10005 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10006 ;; 10007 esac 10008 fi 10009 else 10010 ld_shlibs=no 10011 fi 10012 ;; 10013 10014 os2*) 10015 hardcode_libdir_flag_spec='-L$libdir' 10016 hardcode_minus_L=yes 10017 allow_undefined_flag=unsupported 10018 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' 10019 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10020 ;; 10021 10022 osf3*) 10023 if test "$GCC" = yes; then 10024 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10025 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' 10026 else 10027 allow_undefined_flag=' -expect_unresolved \*' 10028 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' 10029 fi 10030 archive_cmds_need_lc='no' 10031 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10032 hardcode_libdir_separator=: 10033 ;; 10034 10035 osf4* | osf5*) # as osf3* with the addition of -msym flag 10036 if test "$GCC" = yes; then 10037 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10038 archive_cmds='$CC -shared${allow_undefined_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' 10039 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10040 else 10041 allow_undefined_flag=' -expect_unresolved \*' 10042 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' 10043 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~ 10044 $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' 10045 10046 # Both c and cxx compiler support -rpath directly 10047 hardcode_libdir_flag_spec='-rpath $libdir' 10048 fi 10049 archive_cmds_need_lc='no' 10050 hardcode_libdir_separator=: 10051 ;; 10052 10053 solaris*) 10054 no_undefined_flag=' -z defs' 10055 if test "$GCC" = yes; then 10056 wlarc='${wl}' 10057 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10058 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10059 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10060 else 10061 case `$CC -V 2>&1` in 10062 *"Compilers 5.0"*) 10063 wlarc='' 10064 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10065 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10066 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10067 ;; 10068 *) 10069 wlarc='${wl}' 10070 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10071 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10072 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10073 ;; 10074 esac 10075 fi 10076 hardcode_libdir_flag_spec='-R$libdir' 10077 hardcode_shlibpath_var=no 10078 case $host_os in 10079 solaris2.[0-5] | solaris2.[0-5].*) ;; 10080 *) 10081 # The compiler driver will combine and reorder linker options, 10082 # but understands `-z linker_flag'. GCC discards it without `$wl', 10083 # but is careful enough not to reorder. 10084 # Supported since Solaris 2.6 (maybe 2.5.1?) 10085 if test "$GCC" = yes; then 10086 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10087 else 10088 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10089 fi 10090 ;; 10091 esac 10092 link_all_deplibs=yes 10093 ;; 10094 10095 sunos4*) 10096 if test "x$host_vendor" = xsequent; then 10097 # Use $CC to link under sequent, because it throws in some extra .o 10098 # files that make .init and .fini sections work. 10099 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10100 else 10101 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10102 fi 10103 hardcode_libdir_flag_spec='-L$libdir' 10104 hardcode_direct=yes 10105 hardcode_minus_L=yes 10106 hardcode_shlibpath_var=no 10107 ;; 10108 10109 sysv4) 10110 case $host_vendor in 10111 sni) 10112 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10113 hardcode_direct=yes # is this really true??? 10114 ;; 10115 siemens) 10116 ## LD is ld it makes a PLAMLIB 10117 ## CC just makes a GrossModule. 10118 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10119 reload_cmds='$CC -r -o $output$reload_objs' 10120 hardcode_direct=no 10121 ;; 10122 motorola) 10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10124 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10125 ;; 10126 esac 10127 runpath_var='LD_RUN_PATH' 10128 hardcode_shlibpath_var=no 10129 ;; 10130 10131 sysv4.3*) 10132 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10133 hardcode_shlibpath_var=no 10134 export_dynamic_flag_spec='-Bexport' 10135 ;; 10136 10137 sysv4*MP*) 10138 if test -d /usr/nec; then 10139 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10140 hardcode_shlibpath_var=no 10141 runpath_var=LD_RUN_PATH 10142 hardcode_runpath_var=yes 10143 ld_shlibs=yes 10144 fi 10145 ;; 10146 10147 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10148 no_undefined_flag='${wl}-z,text' 10149 archive_cmds_need_lc=no 10150 hardcode_shlibpath_var=no 10151 runpath_var='LD_RUN_PATH' 10152 10153 if test "$GCC" = yes; then 10154 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10155 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10156 else 10157 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10158 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10159 fi 10160 ;; 10161 10162 sysv5* | sco3.2v5* | sco5v6*) 10163 # Note: We can NOT use -z defs as we might desire, because we do not 10164 # link with -lc, and that would cause any symbols used from libc to 10165 # always be unresolved, which means just about no library would 10166 # ever link correctly. If we're not using GNU ld we use -z text 10167 # though, which does catch some bad symbols but isn't as heavy-handed 10168 # as -z defs. 10169 no_undefined_flag='${wl}-z,text' 10170 allow_undefined_flag='${wl}-z,nodefs' 10171 archive_cmds_need_lc=no 10172 hardcode_shlibpath_var=no 10173 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10174 hardcode_libdir_separator=':' 10175 link_all_deplibs=yes 10176 export_dynamic_flag_spec='${wl}-Bexport' 10177 runpath_var='LD_RUN_PATH' 10178 10179 if test "$GCC" = yes; then 10180 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10181 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10182 else 10183 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10184 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10185 fi 10186 ;; 10187 10188 uts4*) 10189 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10190 hardcode_libdir_flag_spec='-L$libdir' 10191 hardcode_shlibpath_var=no 10192 ;; 10193 10194 *) 10195 ld_shlibs=no 10196 ;; 10197 esac 10198 10199 if test x$host_vendor = xsni; then 10200 case $host in 10201 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10202 export_dynamic_flag_spec='${wl}-Blargedynsym' 10203 ;; 10204 esac 10205 fi 10206 fi 10207 10208{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10209$as_echo "$ld_shlibs" >&6; } 10210test "$ld_shlibs" = no && can_build_shared=no 10211 10212with_gnu_ld=$with_gnu_ld 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228# 10229# Do we need to explicitly link libc? 10230# 10231case "x$archive_cmds_need_lc" in 10232x|xyes) 10233 # Assume -lc should be added 10234 archive_cmds_need_lc=yes 10235 10236 if test "$enable_shared" = yes && test "$GCC" = yes; then 10237 case $archive_cmds in 10238 *'~'*) 10239 # FIXME: we may have to deal with multi-command sequences. 10240 ;; 10241 '$CC '*) 10242 # Test whether the compiler implicitly links with -lc since on some 10243 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10244 # to ld, don't add -lc before -lgcc. 10245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10246$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10247if ${lt_cv_archive_cmds_need_lc+:} false; then : 10248 $as_echo_n "(cached) " >&6 10249else 10250 $RM conftest* 10251 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10252 10253 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10254 (eval $ac_compile) 2>&5 10255 ac_status=$? 10256 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10257 test $ac_status = 0; } 2>conftest.err; then 10258 soname=conftest 10259 lib=conftest 10260 libobjs=conftest.$ac_objext 10261 deplibs= 10262 wl=$lt_prog_compiler_wl 10263 pic_flag=$lt_prog_compiler_pic 10264 compiler_flags=-v 10265 linker_flags=-v 10266 verstring= 10267 output_objdir=. 10268 libname=conftest 10269 lt_save_allow_undefined_flag=$allow_undefined_flag 10270 allow_undefined_flag= 10271 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10272 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10273 ac_status=$? 10274 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10275 test $ac_status = 0; } 10276 then 10277 lt_cv_archive_cmds_need_lc=no 10278 else 10279 lt_cv_archive_cmds_need_lc=yes 10280 fi 10281 allow_undefined_flag=$lt_save_allow_undefined_flag 10282 else 10283 cat conftest.err 1>&5 10284 fi 10285 $RM conftest* 10286 10287fi 10288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10289$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10290 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10291 ;; 10292 esac 10293 fi 10294 ;; 10295esac 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 10362 10363 10364 10365 10366 10367 10368 10369 10370 10371 10372 10373 10374 10375 10376 10377 10378 10379 10380 10381 10382 10383 10384 10385 10386 10387 10388 10389 10390 10391 10392 10393 10394 10395 10396 10397 10398 10399 10400 10401 10402 10403 10404 10405 10406 10407 10408 10409 10410 10411 10412 10413 10414 10415 10416 10417 10418 10419 10420 10421 10422 10423 10424 10425 10426 10427 10428 10429 10430 10431 10432 10433 10434 10435 10436 10437 10438 10439 10440 10441 10442 10443 10444 10445 10446 10447 10448 10449 10450 10451 10452 10453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10454$as_echo_n "checking dynamic linker characteristics... " >&6; } 10455 10456if test "$GCC" = yes; then 10457 case $host_os in 10458 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10459 *) lt_awk_arg="/^libraries:/" ;; 10460 esac 10461 case $host_os in 10462 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10463 *) lt_sed_strip_eq="s,=/,/,g" ;; 10464 esac 10465 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10466 case $lt_search_path_spec in 10467 *\;*) 10468 # if the path contains ";" then we assume it to be the separator 10469 # otherwise default to the standard path separator (i.e. ":") - it is 10470 # assumed that no part of a normal pathname contains ";" but that should 10471 # okay in the real world where ";" in dirpaths is itself problematic. 10472 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10473 ;; 10474 *) 10475 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10476 ;; 10477 esac 10478 # Ok, now we have the path, separated by spaces, we can step through it 10479 # and add multilib dir if necessary. 10480 lt_tmp_lt_search_path_spec= 10481 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10482 for lt_sys_path in $lt_search_path_spec; do 10483 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10484 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10485 else 10486 test -d "$lt_sys_path" && \ 10487 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10488 fi 10489 done 10490 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10491BEGIN {RS=" "; FS="/|\n";} { 10492 lt_foo=""; 10493 lt_count=0; 10494 for (lt_i = NF; lt_i > 0; lt_i--) { 10495 if ($lt_i != "" && $lt_i != ".") { 10496 if ($lt_i == "..") { 10497 lt_count++; 10498 } else { 10499 if (lt_count == 0) { 10500 lt_foo="/" $lt_i lt_foo; 10501 } else { 10502 lt_count--; 10503 } 10504 } 10505 } 10506 } 10507 if (lt_foo != "") { lt_freq[lt_foo]++; } 10508 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10509}'` 10510 # AWK program above erroneously prepends '/' to C:/dos/paths 10511 # for these hosts. 10512 case $host_os in 10513 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10514 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10515 esac 10516 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10517else 10518 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10519fi 10520library_names_spec= 10521libname_spec='lib$name' 10522soname_spec= 10523shrext_cmds=".so" 10524postinstall_cmds= 10525postuninstall_cmds= 10526finish_cmds= 10527finish_eval= 10528shlibpath_var= 10529shlibpath_overrides_runpath=unknown 10530version_type=none 10531dynamic_linker="$host_os ld.so" 10532sys_lib_dlsearch_path_spec="/lib /usr/lib" 10533need_lib_prefix=unknown 10534hardcode_into_libs=no 10535 10536# when you set need_version to no, make sure it does not cause -set_version 10537# flags to be left without arguments 10538need_version=unknown 10539 10540case $host_os in 10541aix3*) 10542 version_type=linux 10543 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10544 shlibpath_var=LIBPATH 10545 10546 # AIX 3 has no versioning support, so we append a major version to the name. 10547 soname_spec='${libname}${release}${shared_ext}$major' 10548 ;; 10549 10550aix[4-9]*) 10551 version_type=linux 10552 need_lib_prefix=no 10553 need_version=no 10554 hardcode_into_libs=yes 10555 if test "$host_cpu" = ia64; then 10556 # AIX 5 supports IA64 10557 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10558 shlibpath_var=LD_LIBRARY_PATH 10559 else 10560 # With GCC up to 2.95.x, collect2 would create an import file 10561 # for dependence libraries. The import file would start with 10562 # the line `#! .'. This would cause the generated library to 10563 # depend on `.', always an invalid library. This was fixed in 10564 # development snapshots of GCC prior to 3.0. 10565 case $host_os in 10566 aix4 | aix4.[01] | aix4.[01].*) 10567 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10568 echo ' yes ' 10569 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10570 : 10571 else 10572 can_build_shared=no 10573 fi 10574 ;; 10575 esac 10576 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10577 # soname into executable. Probably we can add versioning support to 10578 # collect2, so additional links can be useful in future. 10579 if test "$aix_use_runtimelinking" = yes; then 10580 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10581 # instead of lib<name>.a to let people know that these are not 10582 # typical AIX shared libraries. 10583 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10584 else 10585 # We preserve .a as extension for shared libraries through AIX4.2 10586 # and later when we are not doing run time linking. 10587 library_names_spec='${libname}${release}.a $libname.a' 10588 soname_spec='${libname}${release}${shared_ext}$major' 10589 fi 10590 shlibpath_var=LIBPATH 10591 fi 10592 ;; 10593 10594amigaos*) 10595 case $host_cpu in 10596 powerpc) 10597 # Since July 2007 AmigaOS4 officially supports .so libraries. 10598 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10599 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10600 ;; 10601 m68k) 10602 library_names_spec='$libname.ixlibrary $libname.a' 10603 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10604 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' 10605 ;; 10606 esac 10607 ;; 10608 10609beos*) 10610 library_names_spec='${libname}${shared_ext}' 10611 dynamic_linker="$host_os ld.so" 10612 shlibpath_var=LIBRARY_PATH 10613 ;; 10614 10615bsdi[45]*) 10616 version_type=linux 10617 need_version=no 10618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10619 soname_spec='${libname}${release}${shared_ext}$major' 10620 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10621 shlibpath_var=LD_LIBRARY_PATH 10622 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10623 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10624 # the default ld.so.conf also contains /usr/contrib/lib and 10625 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10626 # libtool to hard-code these into programs 10627 ;; 10628 10629cygwin* | mingw* | pw32* | cegcc*) 10630 version_type=windows 10631 shrext_cmds=".dll" 10632 need_version=no 10633 need_lib_prefix=no 10634 10635 case $GCC,$host_os in 10636 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10637 library_names_spec='$libname.dll.a' 10638 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10639 postinstall_cmds='base_file=`basename \${file}`~ 10640 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10641 dldir=$destdir/`dirname \$dlpath`~ 10642 test -d \$dldir || mkdir -p \$dldir~ 10643 $install_prog $dir/$dlname \$dldir/$dlname~ 10644 chmod a+x \$dldir/$dlname~ 10645 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10646 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10647 fi' 10648 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10649 dlpath=$dir/\$dldll~ 10650 $RM \$dlpath' 10651 shlibpath_overrides_runpath=yes 10652 10653 case $host_os in 10654 cygwin*) 10655 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10656 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10657 10658 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10659 ;; 10660 mingw* | cegcc*) 10661 # MinGW DLLs use traditional 'lib' prefix 10662 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10663 ;; 10664 pw32*) 10665 # pw32 DLLs use 'pw' prefix rather than 'lib' 10666 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10667 ;; 10668 esac 10669 ;; 10670 10671 *) 10672 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10673 ;; 10674 esac 10675 dynamic_linker='Win32 ld.exe' 10676 # FIXME: first we should search . and the directory the executable is in 10677 shlibpath_var=PATH 10678 ;; 10679 10680darwin* | rhapsody*) 10681 dynamic_linker="$host_os dyld" 10682 version_type=darwin 10683 need_lib_prefix=no 10684 need_version=no 10685 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10686 soname_spec='${libname}${release}${major}$shared_ext' 10687 shlibpath_overrides_runpath=yes 10688 shlibpath_var=DYLD_LIBRARY_PATH 10689 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10690 10691 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10692 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10693 ;; 10694 10695dgux*) 10696 version_type=linux 10697 need_lib_prefix=no 10698 need_version=no 10699 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10700 soname_spec='${libname}${release}${shared_ext}$major' 10701 shlibpath_var=LD_LIBRARY_PATH 10702 ;; 10703 10704freebsd1*) 10705 dynamic_linker=no 10706 ;; 10707 10708freebsd* | dragonfly*) 10709 # DragonFly does not have aout. When/if they implement a new 10710 # versioning mechanism, adjust this. 10711 if test -x /usr/bin/objformat; then 10712 objformat=`/usr/bin/objformat` 10713 else 10714 case $host_os in 10715 freebsd[123]*) objformat=aout ;; 10716 *) objformat=elf ;; 10717 esac 10718 fi 10719 version_type=freebsd-$objformat 10720 case $version_type in 10721 freebsd-elf*) 10722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10723 need_version=no 10724 need_lib_prefix=no 10725 ;; 10726 freebsd-*) 10727 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10728 need_version=yes 10729 ;; 10730 esac 10731 shlibpath_var=LD_LIBRARY_PATH 10732 case $host_os in 10733 freebsd2*) 10734 shlibpath_overrides_runpath=yes 10735 ;; 10736 freebsd3.[01]* | freebsdelf3.[01]*) 10737 shlibpath_overrides_runpath=yes 10738 hardcode_into_libs=yes 10739 ;; 10740 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10741 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10742 shlibpath_overrides_runpath=no 10743 hardcode_into_libs=yes 10744 ;; 10745 *) # from 4.6 on, and DragonFly 10746 shlibpath_overrides_runpath=yes 10747 hardcode_into_libs=yes 10748 ;; 10749 esac 10750 ;; 10751 10752gnu*) 10753 version_type=linux 10754 need_lib_prefix=no 10755 need_version=no 10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10757 soname_spec='${libname}${release}${shared_ext}$major' 10758 shlibpath_var=LD_LIBRARY_PATH 10759 hardcode_into_libs=yes 10760 ;; 10761 10762haiku*) 10763 version_type=linux 10764 need_lib_prefix=no 10765 need_version=no 10766 dynamic_linker="$host_os runtime_loader" 10767 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10768 soname_spec='${libname}${release}${shared_ext}$major' 10769 shlibpath_var=LIBRARY_PATH 10770 shlibpath_overrides_runpath=yes 10771 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10772 hardcode_into_libs=yes 10773 ;; 10774 10775hpux9* | hpux10* | hpux11*) 10776 # Give a soname corresponding to the major version so that dld.sl refuses to 10777 # link against other versions. 10778 version_type=sunos 10779 need_lib_prefix=no 10780 need_version=no 10781 case $host_cpu in 10782 ia64*) 10783 shrext_cmds='.so' 10784 hardcode_into_libs=yes 10785 dynamic_linker="$host_os dld.so" 10786 shlibpath_var=LD_LIBRARY_PATH 10787 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10788 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10789 soname_spec='${libname}${release}${shared_ext}$major' 10790 if test "X$HPUX_IA64_MODE" = X32; then 10791 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10792 else 10793 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10794 fi 10795 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10796 ;; 10797 hppa*64*) 10798 shrext_cmds='.sl' 10799 hardcode_into_libs=yes 10800 dynamic_linker="$host_os dld.sl" 10801 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10802 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10803 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10804 soname_spec='${libname}${release}${shared_ext}$major' 10805 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10806 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10807 ;; 10808 *) 10809 shrext_cmds='.sl' 10810 dynamic_linker="$host_os dld.sl" 10811 shlibpath_var=SHLIB_PATH 10812 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10813 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10814 soname_spec='${libname}${release}${shared_ext}$major' 10815 ;; 10816 esac 10817 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10818 postinstall_cmds='chmod 555 $lib' 10819 # or fails outright, so override atomically: 10820 install_override_mode=555 10821 ;; 10822 10823interix[3-9]*) 10824 version_type=linux 10825 need_lib_prefix=no 10826 need_version=no 10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10828 soname_spec='${libname}${release}${shared_ext}$major' 10829 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10830 shlibpath_var=LD_LIBRARY_PATH 10831 shlibpath_overrides_runpath=no 10832 hardcode_into_libs=yes 10833 ;; 10834 10835irix5* | irix6* | nonstopux*) 10836 case $host_os in 10837 nonstopux*) version_type=nonstopux ;; 10838 *) 10839 if test "$lt_cv_prog_gnu_ld" = yes; then 10840 version_type=linux 10841 else 10842 version_type=irix 10843 fi ;; 10844 esac 10845 need_lib_prefix=no 10846 need_version=no 10847 soname_spec='${libname}${release}${shared_ext}$major' 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10849 case $host_os in 10850 irix5* | nonstopux*) 10851 libsuff= shlibsuff= 10852 ;; 10853 *) 10854 case $LD in # libtool.m4 will add one of these switches to LD 10855 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10856 libsuff= shlibsuff= libmagic=32-bit;; 10857 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10858 libsuff=32 shlibsuff=N32 libmagic=N32;; 10859 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10860 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10861 *) libsuff= shlibsuff= libmagic=never-match;; 10862 esac 10863 ;; 10864 esac 10865 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10866 shlibpath_overrides_runpath=no 10867 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10868 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10869 hardcode_into_libs=yes 10870 ;; 10871 10872# No shared lib support for Linux oldld, aout, or coff. 10873linux*oldld* | linux*aout* | linux*coff*) 10874 dynamic_linker=no 10875 ;; 10876 10877# This must be Linux ELF. 10878linux* | k*bsd*-gnu | kopensolaris*-gnu) 10879 version_type=linux 10880 need_lib_prefix=no 10881 need_version=no 10882 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10883 soname_spec='${libname}${release}${shared_ext}$major' 10884 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10885 shlibpath_var=LD_LIBRARY_PATH 10886 shlibpath_overrides_runpath=no 10887 10888 # Some binutils ld are patched to set DT_RUNPATH 10889 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10890 $as_echo_n "(cached) " >&6 10891else 10892 lt_cv_shlibpath_overrides_runpath=no 10893 save_LDFLAGS=$LDFLAGS 10894 save_libdir=$libdir 10895 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10896 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900int 10901main () 10902{ 10903 10904 ; 10905 return 0; 10906} 10907_ACEOF 10908if ac_fn_c_try_link "$LINENO"; then : 10909 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10910 lt_cv_shlibpath_overrides_runpath=yes 10911fi 10912fi 10913rm -f core conftest.err conftest.$ac_objext \ 10914 conftest$ac_exeext conftest.$ac_ext 10915 LDFLAGS=$save_LDFLAGS 10916 libdir=$save_libdir 10917 10918fi 10919 10920 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10921 10922 # This implies no fast_install, which is unacceptable. 10923 # Some rework will be needed to allow for fast_install 10924 # before this can be enabled. 10925 hardcode_into_libs=yes 10926 10927 # Append ld.so.conf contents to the search path 10928 if test -f /etc/ld.so.conf; then 10929 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' ' '` 10930 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10931 fi 10932 10933 # We used to test for /lib/ld.so.1 and disable shared libraries on 10934 # powerpc, because MkLinux only supported shared libraries with the 10935 # GNU dynamic linker. Since this was broken with cross compilers, 10936 # most powerpc-linux boxes support dynamic linking these days and 10937 # people can always --disable-shared, the test was removed, and we 10938 # assume the GNU/Linux dynamic linker is in use. 10939 dynamic_linker='GNU/Linux ld.so' 10940 ;; 10941 10942netbsd*) 10943 version_type=sunos 10944 need_lib_prefix=no 10945 need_version=no 10946 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10949 dynamic_linker='NetBSD (a.out) ld.so' 10950 else 10951 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10952 soname_spec='${libname}${release}${shared_ext}$major' 10953 dynamic_linker='NetBSD ld.elf_so' 10954 fi 10955 shlibpath_var=LD_LIBRARY_PATH 10956 shlibpath_overrides_runpath=yes 10957 hardcode_into_libs=yes 10958 ;; 10959 10960newsos6) 10961 version_type=linux 10962 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10963 shlibpath_var=LD_LIBRARY_PATH 10964 shlibpath_overrides_runpath=yes 10965 ;; 10966 10967*nto* | *qnx*) 10968 version_type=qnx 10969 need_lib_prefix=no 10970 need_version=no 10971 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10972 soname_spec='${libname}${release}${shared_ext}$major' 10973 shlibpath_var=LD_LIBRARY_PATH 10974 shlibpath_overrides_runpath=no 10975 hardcode_into_libs=yes 10976 dynamic_linker='ldqnx.so' 10977 ;; 10978 10979openbsd*) 10980 version_type=sunos 10981 sys_lib_dlsearch_path_spec="/usr/lib" 10982 need_lib_prefix=no 10983 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10984 case $host_os in 10985 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10986 *) need_version=no ;; 10987 esac 10988 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10989 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10990 shlibpath_var=LD_LIBRARY_PATH 10991 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10992 case $host_os in 10993 openbsd2.[89] | openbsd2.[89].*) 10994 shlibpath_overrides_runpath=no 10995 ;; 10996 *) 10997 shlibpath_overrides_runpath=yes 10998 ;; 10999 esac 11000 else 11001 shlibpath_overrides_runpath=yes 11002 fi 11003 ;; 11004 11005os2*) 11006 libname_spec='$name' 11007 shrext_cmds=".dll" 11008 need_lib_prefix=no 11009 library_names_spec='$libname${shared_ext} $libname.a' 11010 dynamic_linker='OS/2 ld.exe' 11011 shlibpath_var=LIBPATH 11012 ;; 11013 11014osf3* | osf4* | osf5*) 11015 version_type=osf 11016 need_lib_prefix=no 11017 need_version=no 11018 soname_spec='${libname}${release}${shared_ext}$major' 11019 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11020 shlibpath_var=LD_LIBRARY_PATH 11021 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11022 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11023 ;; 11024 11025rdos*) 11026 dynamic_linker=no 11027 ;; 11028 11029solaris*) 11030 version_type=linux 11031 need_lib_prefix=no 11032 need_version=no 11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11034 soname_spec='${libname}${release}${shared_ext}$major' 11035 shlibpath_var=LD_LIBRARY_PATH 11036 shlibpath_overrides_runpath=yes 11037 hardcode_into_libs=yes 11038 # ldd complains unless libraries are executable 11039 postinstall_cmds='chmod +x $lib' 11040 ;; 11041 11042sunos4*) 11043 version_type=sunos 11044 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11045 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11046 shlibpath_var=LD_LIBRARY_PATH 11047 shlibpath_overrides_runpath=yes 11048 if test "$with_gnu_ld" = yes; then 11049 need_lib_prefix=no 11050 fi 11051 need_version=yes 11052 ;; 11053 11054sysv4 | sysv4.3*) 11055 version_type=linux 11056 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11057 soname_spec='${libname}${release}${shared_ext}$major' 11058 shlibpath_var=LD_LIBRARY_PATH 11059 case $host_vendor in 11060 sni) 11061 shlibpath_overrides_runpath=no 11062 need_lib_prefix=no 11063 runpath_var=LD_RUN_PATH 11064 ;; 11065 siemens) 11066 need_lib_prefix=no 11067 ;; 11068 motorola) 11069 need_lib_prefix=no 11070 need_version=no 11071 shlibpath_overrides_runpath=no 11072 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11073 ;; 11074 esac 11075 ;; 11076 11077sysv4*MP*) 11078 if test -d /usr/nec ;then 11079 version_type=linux 11080 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11081 soname_spec='$libname${shared_ext}.$major' 11082 shlibpath_var=LD_LIBRARY_PATH 11083 fi 11084 ;; 11085 11086sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11087 version_type=freebsd-elf 11088 need_lib_prefix=no 11089 need_version=no 11090 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11091 soname_spec='${libname}${release}${shared_ext}$major' 11092 shlibpath_var=LD_LIBRARY_PATH 11093 shlibpath_overrides_runpath=yes 11094 hardcode_into_libs=yes 11095 if test "$with_gnu_ld" = yes; then 11096 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11097 else 11098 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11099 case $host_os in 11100 sco3.2v5*) 11101 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11102 ;; 11103 esac 11104 fi 11105 sys_lib_dlsearch_path_spec='/usr/lib' 11106 ;; 11107 11108tpf*) 11109 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11110 version_type=linux 11111 need_lib_prefix=no 11112 need_version=no 11113 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11114 shlibpath_var=LD_LIBRARY_PATH 11115 shlibpath_overrides_runpath=no 11116 hardcode_into_libs=yes 11117 ;; 11118 11119uts4*) 11120 version_type=linux 11121 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11122 soname_spec='${libname}${release}${shared_ext}$major' 11123 shlibpath_var=LD_LIBRARY_PATH 11124 ;; 11125 11126*) 11127 dynamic_linker=no 11128 ;; 11129esac 11130{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11131$as_echo "$dynamic_linker" >&6; } 11132test "$dynamic_linker" = no && can_build_shared=no 11133 11134variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11135if test "$GCC" = yes; then 11136 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11137fi 11138 11139if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11140 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11141fi 11142if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11143 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11144fi 11145 11146 11147 11148 11149 11150 11151 11152 11153 11154 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 11168 11169 11170 11171 11172 11173 11174 11175 11176 11177 11178 11179 11180 11181 11182 11183 11184 11185 11186 11187 11188 11189 11190 11191 11192 11193 11194 11195 11196 11197 11198 11199 11200 11201 11202 11203 11204 11205 11206 11207 11208 11209 11210 11211 11212 11213 11214 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 11229 11230 11231 11232 11233 11234 11235 11236 11237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11238$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11239hardcode_action= 11240if test -n "$hardcode_libdir_flag_spec" || 11241 test -n "$runpath_var" || 11242 test "X$hardcode_automatic" = "Xyes" ; then 11243 11244 # We can hardcode non-existent directories. 11245 if test "$hardcode_direct" != no && 11246 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11247 # have to relink, otherwise we might link with an installed library 11248 # when we should be linking with a yet-to-be-installed one 11249 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11250 test "$hardcode_minus_L" != no; then 11251 # Linking always hardcodes the temporary library directory. 11252 hardcode_action=relink 11253 else 11254 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11255 hardcode_action=immediate 11256 fi 11257else 11258 # We cannot hardcode anything, or else we can only hardcode existing 11259 # directories. 11260 hardcode_action=unsupported 11261fi 11262{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11263$as_echo "$hardcode_action" >&6; } 11264 11265if test "$hardcode_action" = relink || 11266 test "$inherit_rpath" = yes; then 11267 # Fast installation is not supported 11268 enable_fast_install=no 11269elif test "$shlibpath_overrides_runpath" = yes || 11270 test "$enable_shared" = no; then 11271 # Fast installation is not necessary 11272 enable_fast_install=needless 11273fi 11274 11275 11276 11277 11278 11279 11280 if test "x$enable_dlopen" != xyes; then 11281 enable_dlopen=unknown 11282 enable_dlopen_self=unknown 11283 enable_dlopen_self_static=unknown 11284else 11285 lt_cv_dlopen=no 11286 lt_cv_dlopen_libs= 11287 11288 case $host_os in 11289 beos*) 11290 lt_cv_dlopen="load_add_on" 11291 lt_cv_dlopen_libs= 11292 lt_cv_dlopen_self=yes 11293 ;; 11294 11295 mingw* | pw32* | cegcc*) 11296 lt_cv_dlopen="LoadLibrary" 11297 lt_cv_dlopen_libs= 11298 ;; 11299 11300 cygwin*) 11301 lt_cv_dlopen="dlopen" 11302 lt_cv_dlopen_libs= 11303 ;; 11304 11305 darwin*) 11306 # if libdl is installed we need to link against it 11307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11308$as_echo_n "checking for dlopen in -ldl... " >&6; } 11309if ${ac_cv_lib_dl_dlopen+:} false; then : 11310 $as_echo_n "(cached) " >&6 11311else 11312 ac_check_lib_save_LIBS=$LIBS 11313LIBS="-ldl $LIBS" 11314cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11315/* end confdefs.h. */ 11316 11317/* Override any GCC internal prototype to avoid an error. 11318 Use char because int might match the return type of a GCC 11319 builtin and then its argument prototype would still apply. */ 11320#ifdef __cplusplus 11321extern "C" 11322#endif 11323char dlopen (); 11324int 11325main () 11326{ 11327return dlopen (); 11328 ; 11329 return 0; 11330} 11331_ACEOF 11332if ac_fn_c_try_link "$LINENO"; then : 11333 ac_cv_lib_dl_dlopen=yes 11334else 11335 ac_cv_lib_dl_dlopen=no 11336fi 11337rm -f core conftest.err conftest.$ac_objext \ 11338 conftest$ac_exeext conftest.$ac_ext 11339LIBS=$ac_check_lib_save_LIBS 11340fi 11341{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11342$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11343if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11344 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11345else 11346 11347 lt_cv_dlopen="dyld" 11348 lt_cv_dlopen_libs= 11349 lt_cv_dlopen_self=yes 11350 11351fi 11352 11353 ;; 11354 11355 *) 11356 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11357if test "x$ac_cv_func_shl_load" = xyes; then : 11358 lt_cv_dlopen="shl_load" 11359else 11360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11361$as_echo_n "checking for shl_load in -ldld... " >&6; } 11362if ${ac_cv_lib_dld_shl_load+:} false; then : 11363 $as_echo_n "(cached) " >&6 11364else 11365 ac_check_lib_save_LIBS=$LIBS 11366LIBS="-ldld $LIBS" 11367cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11368/* end confdefs.h. */ 11369 11370/* Override any GCC internal prototype to avoid an error. 11371 Use char because int might match the return type of a GCC 11372 builtin and then its argument prototype would still apply. */ 11373#ifdef __cplusplus 11374extern "C" 11375#endif 11376char shl_load (); 11377int 11378main () 11379{ 11380return shl_load (); 11381 ; 11382 return 0; 11383} 11384_ACEOF 11385if ac_fn_c_try_link "$LINENO"; then : 11386 ac_cv_lib_dld_shl_load=yes 11387else 11388 ac_cv_lib_dld_shl_load=no 11389fi 11390rm -f core conftest.err conftest.$ac_objext \ 11391 conftest$ac_exeext conftest.$ac_ext 11392LIBS=$ac_check_lib_save_LIBS 11393fi 11394{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11395$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11396if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11397 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11398else 11399 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11400if test "x$ac_cv_func_dlopen" = xyes; then : 11401 lt_cv_dlopen="dlopen" 11402else 11403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11404$as_echo_n "checking for dlopen in -ldl... " >&6; } 11405if ${ac_cv_lib_dl_dlopen+:} false; then : 11406 $as_echo_n "(cached) " >&6 11407else 11408 ac_check_lib_save_LIBS=$LIBS 11409LIBS="-ldl $LIBS" 11410cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11411/* end confdefs.h. */ 11412 11413/* Override any GCC internal prototype to avoid an error. 11414 Use char because int might match the return type of a GCC 11415 builtin and then its argument prototype would still apply. */ 11416#ifdef __cplusplus 11417extern "C" 11418#endif 11419char dlopen (); 11420int 11421main () 11422{ 11423return dlopen (); 11424 ; 11425 return 0; 11426} 11427_ACEOF 11428if ac_fn_c_try_link "$LINENO"; then : 11429 ac_cv_lib_dl_dlopen=yes 11430else 11431 ac_cv_lib_dl_dlopen=no 11432fi 11433rm -f core conftest.err conftest.$ac_objext \ 11434 conftest$ac_exeext conftest.$ac_ext 11435LIBS=$ac_check_lib_save_LIBS 11436fi 11437{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11438$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11439if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11440 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11441else 11442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11443$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11444if ${ac_cv_lib_svld_dlopen+:} false; then : 11445 $as_echo_n "(cached) " >&6 11446else 11447 ac_check_lib_save_LIBS=$LIBS 11448LIBS="-lsvld $LIBS" 11449cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11450/* end confdefs.h. */ 11451 11452/* Override any GCC internal prototype to avoid an error. 11453 Use char because int might match the return type of a GCC 11454 builtin and then its argument prototype would still apply. */ 11455#ifdef __cplusplus 11456extern "C" 11457#endif 11458char dlopen (); 11459int 11460main () 11461{ 11462return dlopen (); 11463 ; 11464 return 0; 11465} 11466_ACEOF 11467if ac_fn_c_try_link "$LINENO"; then : 11468 ac_cv_lib_svld_dlopen=yes 11469else 11470 ac_cv_lib_svld_dlopen=no 11471fi 11472rm -f core conftest.err conftest.$ac_objext \ 11473 conftest$ac_exeext conftest.$ac_ext 11474LIBS=$ac_check_lib_save_LIBS 11475fi 11476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11477$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11478if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11479 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11480else 11481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11482$as_echo_n "checking for dld_link in -ldld... " >&6; } 11483if ${ac_cv_lib_dld_dld_link+:} false; then : 11484 $as_echo_n "(cached) " >&6 11485else 11486 ac_check_lib_save_LIBS=$LIBS 11487LIBS="-ldld $LIBS" 11488cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11489/* end confdefs.h. */ 11490 11491/* Override any GCC internal prototype to avoid an error. 11492 Use char because int might match the return type of a GCC 11493 builtin and then its argument prototype would still apply. */ 11494#ifdef __cplusplus 11495extern "C" 11496#endif 11497char dld_link (); 11498int 11499main () 11500{ 11501return dld_link (); 11502 ; 11503 return 0; 11504} 11505_ACEOF 11506if ac_fn_c_try_link "$LINENO"; then : 11507 ac_cv_lib_dld_dld_link=yes 11508else 11509 ac_cv_lib_dld_dld_link=no 11510fi 11511rm -f core conftest.err conftest.$ac_objext \ 11512 conftest$ac_exeext conftest.$ac_ext 11513LIBS=$ac_check_lib_save_LIBS 11514fi 11515{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11516$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11517if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11518 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11519fi 11520 11521 11522fi 11523 11524 11525fi 11526 11527 11528fi 11529 11530 11531fi 11532 11533 11534fi 11535 11536 ;; 11537 esac 11538 11539 if test "x$lt_cv_dlopen" != xno; then 11540 enable_dlopen=yes 11541 else 11542 enable_dlopen=no 11543 fi 11544 11545 case $lt_cv_dlopen in 11546 dlopen) 11547 save_CPPFLAGS="$CPPFLAGS" 11548 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11549 11550 save_LDFLAGS="$LDFLAGS" 11551 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11552 11553 save_LIBS="$LIBS" 11554 LIBS="$lt_cv_dlopen_libs $LIBS" 11555 11556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11557$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11558if ${lt_cv_dlopen_self+:} false; then : 11559 $as_echo_n "(cached) " >&6 11560else 11561 if test "$cross_compiling" = yes; then : 11562 lt_cv_dlopen_self=cross 11563else 11564 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11565 lt_status=$lt_dlunknown 11566 cat > conftest.$ac_ext <<_LT_EOF 11567#line $LINENO "configure" 11568#include "confdefs.h" 11569 11570#if HAVE_DLFCN_H 11571#include <dlfcn.h> 11572#endif 11573 11574#include <stdio.h> 11575 11576#ifdef RTLD_GLOBAL 11577# define LT_DLGLOBAL RTLD_GLOBAL 11578#else 11579# ifdef DL_GLOBAL 11580# define LT_DLGLOBAL DL_GLOBAL 11581# else 11582# define LT_DLGLOBAL 0 11583# endif 11584#endif 11585 11586/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11587 find out it does not work in some platform. */ 11588#ifndef LT_DLLAZY_OR_NOW 11589# ifdef RTLD_LAZY 11590# define LT_DLLAZY_OR_NOW RTLD_LAZY 11591# else 11592# ifdef DL_LAZY 11593# define LT_DLLAZY_OR_NOW DL_LAZY 11594# else 11595# ifdef RTLD_NOW 11596# define LT_DLLAZY_OR_NOW RTLD_NOW 11597# else 11598# ifdef DL_NOW 11599# define LT_DLLAZY_OR_NOW DL_NOW 11600# else 11601# define LT_DLLAZY_OR_NOW 0 11602# endif 11603# endif 11604# endif 11605# endif 11606#endif 11607 11608/* When -fvisbility=hidden is used, assume the code has been annotated 11609 correspondingly for the symbols needed. */ 11610#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11611void fnord () __attribute__((visibility("default"))); 11612#endif 11613 11614void fnord () { int i=42; } 11615int main () 11616{ 11617 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11618 int status = $lt_dlunknown; 11619 11620 if (self) 11621 { 11622 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11623 else 11624 { 11625 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11626 else puts (dlerror ()); 11627 } 11628 /* dlclose (self); */ 11629 } 11630 else 11631 puts (dlerror ()); 11632 11633 return status; 11634} 11635_LT_EOF 11636 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11637 (eval $ac_link) 2>&5 11638 ac_status=$? 11639 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11640 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11641 (./conftest; exit; ) >&5 2>/dev/null 11642 lt_status=$? 11643 case x$lt_status in 11644 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11645 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11646 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11647 esac 11648 else : 11649 # compilation failed 11650 lt_cv_dlopen_self=no 11651 fi 11652fi 11653rm -fr conftest* 11654 11655 11656fi 11657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11658$as_echo "$lt_cv_dlopen_self" >&6; } 11659 11660 if test "x$lt_cv_dlopen_self" = xyes; then 11661 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11663$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11664if ${lt_cv_dlopen_self_static+:} false; then : 11665 $as_echo_n "(cached) " >&6 11666else 11667 if test "$cross_compiling" = yes; then : 11668 lt_cv_dlopen_self_static=cross 11669else 11670 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11671 lt_status=$lt_dlunknown 11672 cat > conftest.$ac_ext <<_LT_EOF 11673#line $LINENO "configure" 11674#include "confdefs.h" 11675 11676#if HAVE_DLFCN_H 11677#include <dlfcn.h> 11678#endif 11679 11680#include <stdio.h> 11681 11682#ifdef RTLD_GLOBAL 11683# define LT_DLGLOBAL RTLD_GLOBAL 11684#else 11685# ifdef DL_GLOBAL 11686# define LT_DLGLOBAL DL_GLOBAL 11687# else 11688# define LT_DLGLOBAL 0 11689# endif 11690#endif 11691 11692/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11693 find out it does not work in some platform. */ 11694#ifndef LT_DLLAZY_OR_NOW 11695# ifdef RTLD_LAZY 11696# define LT_DLLAZY_OR_NOW RTLD_LAZY 11697# else 11698# ifdef DL_LAZY 11699# define LT_DLLAZY_OR_NOW DL_LAZY 11700# else 11701# ifdef RTLD_NOW 11702# define LT_DLLAZY_OR_NOW RTLD_NOW 11703# else 11704# ifdef DL_NOW 11705# define LT_DLLAZY_OR_NOW DL_NOW 11706# else 11707# define LT_DLLAZY_OR_NOW 0 11708# endif 11709# endif 11710# endif 11711# endif 11712#endif 11713 11714/* When -fvisbility=hidden is used, assume the code has been annotated 11715 correspondingly for the symbols needed. */ 11716#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11717void fnord () __attribute__((visibility("default"))); 11718#endif 11719 11720void fnord () { int i=42; } 11721int main () 11722{ 11723 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11724 int status = $lt_dlunknown; 11725 11726 if (self) 11727 { 11728 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11729 else 11730 { 11731 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11732 else puts (dlerror ()); 11733 } 11734 /* dlclose (self); */ 11735 } 11736 else 11737 puts (dlerror ()); 11738 11739 return status; 11740} 11741_LT_EOF 11742 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11743 (eval $ac_link) 2>&5 11744 ac_status=$? 11745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11746 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11747 (./conftest; exit; ) >&5 2>/dev/null 11748 lt_status=$? 11749 case x$lt_status in 11750 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11751 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11752 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11753 esac 11754 else : 11755 # compilation failed 11756 lt_cv_dlopen_self_static=no 11757 fi 11758fi 11759rm -fr conftest* 11760 11761 11762fi 11763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11764$as_echo "$lt_cv_dlopen_self_static" >&6; } 11765 fi 11766 11767 CPPFLAGS="$save_CPPFLAGS" 11768 LDFLAGS="$save_LDFLAGS" 11769 LIBS="$save_LIBS" 11770 ;; 11771 esac 11772 11773 case $lt_cv_dlopen_self in 11774 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11775 *) enable_dlopen_self=unknown ;; 11776 esac 11777 11778 case $lt_cv_dlopen_self_static in 11779 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11780 *) enable_dlopen_self_static=unknown ;; 11781 esac 11782fi 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800striplib= 11801old_striplib= 11802{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11803$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11804if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11805 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11806 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11808$as_echo "yes" >&6; } 11809else 11810# FIXME - insert some real tests, host_os isn't really good enough 11811 case $host_os in 11812 darwin*) 11813 if test -n "$STRIP" ; then 11814 striplib="$STRIP -x" 11815 old_striplib="$STRIP -S" 11816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11817$as_echo "yes" >&6; } 11818 else 11819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11820$as_echo "no" >&6; } 11821 fi 11822 ;; 11823 *) 11824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11825$as_echo "no" >&6; } 11826 ;; 11827 esac 11828fi 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 # Report which library types will actually be built 11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11843$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11845$as_echo "$can_build_shared" >&6; } 11846 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11848$as_echo_n "checking whether to build shared libraries... " >&6; } 11849 test "$can_build_shared" = "no" && enable_shared=no 11850 11851 # On AIX, shared libraries and static libraries use the same namespace, and 11852 # are all built from PIC. 11853 case $host_os in 11854 aix3*) 11855 test "$enable_shared" = yes && enable_static=no 11856 if test -n "$RANLIB"; then 11857 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11858 postinstall_cmds='$RANLIB $lib' 11859 fi 11860 ;; 11861 11862 aix[4-9]*) 11863 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11864 test "$enable_shared" = yes && enable_static=no 11865 fi 11866 ;; 11867 esac 11868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11869$as_echo "$enable_shared" >&6; } 11870 11871 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11872$as_echo_n "checking whether to build static libraries... " >&6; } 11873 # Make sure either enable_shared or enable_static is yes. 11874 test "$enable_shared" = yes || enable_static=yes 11875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11876$as_echo "$enable_static" >&6; } 11877 11878 11879 11880 11881fi 11882ac_ext=c 11883ac_cpp='$CPP $CPPFLAGS' 11884ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11885ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11886ac_compiler_gnu=$ac_cv_c_compiler_gnu 11887 11888CC="$lt_save_CC" 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 ac_config_commands="$ac_config_commands libtool" 11903 11904 11905 11906 11907# Only expand once: 11908 11909 11910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11911$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11912set x ${MAKE-make} 11913ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11914if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11915 $as_echo_n "(cached) " >&6 11916else 11917 cat >conftest.make <<\_ACEOF 11918SHELL = /bin/sh 11919all: 11920 @echo '@@@%%%=$(MAKE)=@@@%%%' 11921_ACEOF 11922# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11923case `${MAKE-make} -f conftest.make 2>/dev/null` in 11924 *@@@%%%=?*=@@@%%%*) 11925 eval ac_cv_prog_make_${ac_make}_set=yes;; 11926 *) 11927 eval ac_cv_prog_make_${ac_make}_set=no;; 11928esac 11929rm -f conftest.make 11930fi 11931if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11933$as_echo "yes" >&6; } 11934 SET_MAKE= 11935else 11936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11937$as_echo "no" >&6; } 11938 SET_MAKE="MAKE=${MAKE-make}" 11939fi 11940 11941 11942for ac_func in srand48 lrand48 11943do : 11944 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 11945ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 11946if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 11947 cat >>confdefs.h <<_ACEOF 11948#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 11949_ACEOF 11950 11951fi 11952done 11953 11954 11955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing recvfrom" >&5 11956$as_echo_n "checking for library containing recvfrom... " >&6; } 11957if ${ac_cv_search_recvfrom+:} false; then : 11958 $as_echo_n "(cached) " >&6 11959else 11960 ac_func_search_save_LIBS=$LIBS 11961cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11962/* end confdefs.h. */ 11963 11964/* Override any GCC internal prototype to avoid an error. 11965 Use char because int might match the return type of a GCC 11966 builtin and then its argument prototype would still apply. */ 11967#ifdef __cplusplus 11968extern "C" 11969#endif 11970char recvfrom (); 11971int 11972main () 11973{ 11974return recvfrom (); 11975 ; 11976 return 0; 11977} 11978_ACEOF 11979for ac_lib in '' socket; do 11980 if test -z "$ac_lib"; then 11981 ac_res="none required" 11982 else 11983 ac_res=-l$ac_lib 11984 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 11985 fi 11986 if ac_fn_c_try_link "$LINENO"; then : 11987 ac_cv_search_recvfrom=$ac_res 11988fi 11989rm -f core conftest.err conftest.$ac_objext \ 11990 conftest$ac_exeext 11991 if ${ac_cv_search_recvfrom+:} false; then : 11992 break 11993fi 11994done 11995if ${ac_cv_search_recvfrom+:} false; then : 11996 11997else 11998 ac_cv_search_recvfrom=no 11999fi 12000rm conftest.$ac_ext 12001LIBS=$ac_func_search_save_LIBS 12002fi 12003{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_recvfrom" >&5 12004$as_echo "$ac_cv_search_recvfrom" >&6; } 12005ac_res=$ac_cv_search_recvfrom 12006if test "$ac_res" != no; then : 12007 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 12008 12009fi 12010 12011 12012 12013pkg_failed=no 12014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XDMCP" >&5 12015$as_echo_n "checking for XDMCP... " >&6; } 12016 12017if test -n "$XDMCP_CFLAGS"; then 12018 pkg_cv_XDMCP_CFLAGS="$XDMCP_CFLAGS" 12019 elif test -n "$PKG_CONFIG"; then 12020 if test -n "$PKG_CONFIG" && \ 12021 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 12022 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 12023 ac_status=$? 12024 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12025 test $ac_status = 0; }; then 12026 pkg_cv_XDMCP_CFLAGS=`$PKG_CONFIG --cflags "xproto" 2>/dev/null` 12027else 12028 pkg_failed=yes 12029fi 12030 else 12031 pkg_failed=untried 12032fi 12033if test -n "$XDMCP_LIBS"; then 12034 pkg_cv_XDMCP_LIBS="$XDMCP_LIBS" 12035 elif test -n "$PKG_CONFIG"; then 12036 if test -n "$PKG_CONFIG" && \ 12037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto\""; } >&5 12038 ($PKG_CONFIG --exists --print-errors "xproto") 2>&5 12039 ac_status=$? 12040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12041 test $ac_status = 0; }; then 12042 pkg_cv_XDMCP_LIBS=`$PKG_CONFIG --libs "xproto" 2>/dev/null` 12043else 12044 pkg_failed=yes 12045fi 12046 else 12047 pkg_failed=untried 12048fi 12049 12050 12051 12052if test $pkg_failed = yes; then 12053 12054if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12055 _pkg_short_errors_supported=yes 12056else 12057 _pkg_short_errors_supported=no 12058fi 12059 if test $_pkg_short_errors_supported = yes; then 12060 XDMCP_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto" 2>&1` 12061 else 12062 XDMCP_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto" 2>&1` 12063 fi 12064 # Put the nasty error message in config.log where it belongs 12065 echo "$XDMCP_PKG_ERRORS" >&5 12066 12067 as_fn_error $? "Package requirements (xproto) were not met: 12068 12069$XDMCP_PKG_ERRORS 12070 12071Consider adjusting the PKG_CONFIG_PATH environment variable if you 12072installed software in a non-standard prefix. 12073 12074Alternatively, you may set the environment variables XDMCP_CFLAGS 12075and XDMCP_LIBS to avoid the need to call pkg-config. 12076See the pkg-config man page for more details. 12077" "$LINENO" 5 12078elif test $pkg_failed = untried; then 12079 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12080$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12081as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12082is in your PATH or set the PKG_CONFIG environment variable to the full 12083path to pkg-config. 12084 12085Alternatively, you may set the environment variables XDMCP_CFLAGS 12086and XDMCP_LIBS to avoid the need to call pkg-config. 12087See the pkg-config man page for more details. 12088 12089To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12090See \`config.log' for more details" "$LINENO" 5; } 12091else 12092 XDMCP_CFLAGS=$pkg_cv_XDMCP_CFLAGS 12093 XDMCP_LIBS=$pkg_cv_XDMCP_LIBS 12094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12095$as_echo "yes" >&6; } 12096 : 12097fi 12098 12099if test -f ${srcdir}/Wraphelp.c; then 12100 12101$as_echo "#define HASXDMAUTH 1" >>confdefs.h 12102 12103 HASXDMAUTH=yes 12104else 12105 HASXDMAUTH=no 12106fi 12107 12108 if test x$HASXDMAUTH = xyes; then 12109 HASXDMAUTH_TRUE= 12110 HASXDMAUTH_FALSE='#' 12111else 12112 HASXDMAUTH_TRUE='#' 12113 HASXDMAUTH_FALSE= 12114fi 12115 12116 12117 12118 12119 12120 12121 12122# Check whether --with-lint was given. 12123if test "${with_lint+set}" = set; then : 12124 withval=$with_lint; use_lint=$withval 12125else 12126 use_lint=no 12127fi 12128 12129 12130# Obtain platform specific info like program name and options 12131# The lint program on FreeBSD and NetBSD is different from the one on Solaris 12132case $host_os in 12133 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 12134 lint_name=splint 12135 lint_options="-badflag" 12136 ;; 12137 *freebsd* | *netbsd*) 12138 lint_name=lint 12139 lint_options="-u -b" 12140 ;; 12141 *solaris*) 12142 lint_name=lint 12143 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12144 ;; 12145esac 12146 12147# Test for the presence of the program (either guessed by the code or spelled out by the user) 12148if test "x$use_lint" = x"yes" ; then 12149 # Extract the first word of "$lint_name", so it can be a program name with args. 12150set dummy $lint_name; ac_word=$2 12151{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12152$as_echo_n "checking for $ac_word... " >&6; } 12153if ${ac_cv_path_LINT+:} false; then : 12154 $as_echo_n "(cached) " >&6 12155else 12156 case $LINT in 12157 [\\/]* | ?:[\\/]*) 12158 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12159 ;; 12160 *) 12161 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12162for as_dir in $PATH 12163do 12164 IFS=$as_save_IFS 12165 test -z "$as_dir" && as_dir=. 12166 for ac_exec_ext in '' $ac_executable_extensions; do 12167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12168 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 12169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12170 break 2 12171 fi 12172done 12173 done 12174IFS=$as_save_IFS 12175 12176 ;; 12177esac 12178fi 12179LINT=$ac_cv_path_LINT 12180if test -n "$LINT"; then 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12182$as_echo "$LINT" >&6; } 12183else 12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12185$as_echo "no" >&6; } 12186fi 12187 12188 12189 if test "x$LINT" = "x"; then 12190 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12191 fi 12192elif test "x$use_lint" = x"no" ; then 12193 if test "x$LINT" != "x"; then 12194 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12195$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12196 fi 12197else 12198 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12199fi 12200 12201# User supplied flags override default flags 12202if test "x$LINT_FLAGS" != "x"; then 12203 lint_options=$LINT_FLAGS 12204fi 12205 12206LINT_FLAGS=$lint_options 12207 12208 if test "x$LINT" != x; then 12209 LINT_TRUE= 12210 LINT_FALSE='#' 12211else 12212 LINT_TRUE='#' 12213 LINT_FALSE= 12214fi 12215 12216 12217 12218 12219 12220# Check whether --enable-lint-library was given. 12221if test "${enable_lint_library+set}" = set; then : 12222 enableval=$enable_lint_library; make_lint_lib=$enableval 12223else 12224 make_lint_lib=no 12225fi 12226 12227 12228if test "x$make_lint_lib" = x"yes" ; then 12229 LINTLIB=llib-lXdmcp.ln 12230 if test "x$LINT" = "x"; then 12231 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 12232 fi 12233elif test "x$make_lint_lib" != x"no" ; then 12234 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 12235fi 12236 12237 12238 if test x$make_lint_lib != xno; then 12239 MAKE_LINT_LIB_TRUE= 12240 MAKE_LINT_LIB_FALSE='#' 12241else 12242 MAKE_LINT_LIB_TRUE='#' 12243 MAKE_LINT_LIB_FALSE= 12244fi 12245 12246 12247 12248 12249ac_config_files="$ac_config_files Makefile doc/Makefile xdmcp.pc" 12250 12251cat >confcache <<\_ACEOF 12252# This file is a shell script that caches the results of configure 12253# tests run on this system so they can be shared between configure 12254# scripts and configure runs, see configure's option --config-cache. 12255# It is not useful on other systems. If it contains results you don't 12256# want to keep, you may remove or edit it. 12257# 12258# config.status only pays attention to the cache file if you give it 12259# the --recheck option to rerun configure. 12260# 12261# `ac_cv_env_foo' variables (set or unset) will be overridden when 12262# loading this file, other *unset* `ac_cv_foo' will be assigned the 12263# following values. 12264 12265_ACEOF 12266 12267# The following way of writing the cache mishandles newlines in values, 12268# but we know of no workaround that is simple, portable, and efficient. 12269# So, we kill variables containing newlines. 12270# Ultrix sh set writes to stderr and can't be redirected directly, 12271# and sets the high bit in the cache file unless we assign to the vars. 12272( 12273 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12274 eval ac_val=\$$ac_var 12275 case $ac_val in #( 12276 *${as_nl}*) 12277 case $ac_var in #( 12278 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12279$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12280 esac 12281 case $ac_var in #( 12282 _ | IFS | as_nl) ;; #( 12283 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12284 *) { eval $ac_var=; unset $ac_var;} ;; 12285 esac ;; 12286 esac 12287 done 12288 12289 (set) 2>&1 | 12290 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12291 *${as_nl}ac_space=\ *) 12292 # `set' does not quote correctly, so add quotes: double-quote 12293 # substitution turns \\\\ into \\, and sed turns \\ into \. 12294 sed -n \ 12295 "s/'/'\\\\''/g; 12296 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12297 ;; #( 12298 *) 12299 # `set' quotes correctly as required by POSIX, so do not add quotes. 12300 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12301 ;; 12302 esac | 12303 sort 12304) | 12305 sed ' 12306 /^ac_cv_env_/b end 12307 t clear 12308 :clear 12309 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12310 t end 12311 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12312 :end' >>confcache 12313if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12314 if test -w "$cache_file"; then 12315 if test "x$cache_file" != "x/dev/null"; then 12316 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12317$as_echo "$as_me: updating cache $cache_file" >&6;} 12318 if test ! -f "$cache_file" || test -h "$cache_file"; then 12319 cat confcache >"$cache_file" 12320 else 12321 case $cache_file in #( 12322 */* | ?:*) 12323 mv -f confcache "$cache_file"$$ && 12324 mv -f "$cache_file"$$ "$cache_file" ;; #( 12325 *) 12326 mv -f confcache "$cache_file" ;; 12327 esac 12328 fi 12329 fi 12330 else 12331 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12332$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12333 fi 12334fi 12335rm -f confcache 12336 12337test "x$prefix" = xNONE && prefix=$ac_default_prefix 12338# Let make expand exec_prefix. 12339test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12340 12341DEFS=-DHAVE_CONFIG_H 12342 12343ac_libobjs= 12344ac_ltlibobjs= 12345U= 12346for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12347 # 1. Remove the extension, and $U if already installed. 12348 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12349 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12350 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12351 # will be set to the directory where LIBOBJS objects are built. 12352 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12353 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12354done 12355LIBOBJS=$ac_libobjs 12356 12357LTLIBOBJS=$ac_ltlibobjs 12358 12359 12360 if test -n "$EXEEXT"; then 12361 am__EXEEXT_TRUE= 12362 am__EXEEXT_FALSE='#' 12363else 12364 am__EXEEXT_TRUE='#' 12365 am__EXEEXT_FALSE= 12366fi 12367 12368if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12369 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12370Usually this means the macro was only invoked conditionally." "$LINENO" 5 12371fi 12372if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12373 as_fn_error $? "conditional \"AMDEP\" was never defined. 12374Usually this means the macro was only invoked conditionally." "$LINENO" 5 12375fi 12376if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12377 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12378Usually this means the macro was only invoked conditionally." "$LINENO" 5 12379fi 12380if test -z "${ENABLE_DOCS_TRUE}" && test -z "${ENABLE_DOCS_FALSE}"; then 12381 as_fn_error $? "conditional \"ENABLE_DOCS\" was never defined. 12382Usually this means the macro was only invoked conditionally." "$LINENO" 5 12383fi 12384if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 12385 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 12386Usually this means the macro was only invoked conditionally." "$LINENO" 5 12387fi 12388if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 12389 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 12390Usually this means the macro was only invoked conditionally." "$LINENO" 5 12391fi 12392if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 12393 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 12394Usually this means the macro was only invoked conditionally." "$LINENO" 5 12395fi 12396if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 12397 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 12398Usually this means the macro was only invoked conditionally." "$LINENO" 5 12399fi 12400if test -z "${HASXDMAUTH_TRUE}" && test -z "${HASXDMAUTH_FALSE}"; then 12401 as_fn_error $? "conditional \"HASXDMAUTH\" was never defined. 12402Usually this means the macro was only invoked conditionally." "$LINENO" 5 12403fi 12404if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12405 as_fn_error $? "conditional \"LINT\" was never defined. 12406Usually this means the macro was only invoked conditionally." "$LINENO" 5 12407fi 12408if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 12409 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 12410Usually this means the macro was only invoked conditionally." "$LINENO" 5 12411fi 12412 12413: "${CONFIG_STATUS=./config.status}" 12414ac_write_fail=0 12415ac_clean_files_save=$ac_clean_files 12416ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12417{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12418$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12419as_write_fail=0 12420cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12421#! $SHELL 12422# Generated by $as_me. 12423# Run this file to recreate the current configuration. 12424# Compiler output produced by configure, useful for debugging 12425# configure, is in config.log if it exists. 12426 12427debug=false 12428ac_cs_recheck=false 12429ac_cs_silent=false 12430 12431SHELL=\${CONFIG_SHELL-$SHELL} 12432export SHELL 12433_ASEOF 12434cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12435## -------------------- ## 12436## M4sh Initialization. ## 12437## -------------------- ## 12438 12439# Be more Bourne compatible 12440DUALCASE=1; export DUALCASE # for MKS sh 12441if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12442 emulate sh 12443 NULLCMD=: 12444 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12445 # is contrary to our usage. Disable this feature. 12446 alias -g '${1+"$@"}'='"$@"' 12447 setopt NO_GLOB_SUBST 12448else 12449 case `(set -o) 2>/dev/null` in #( 12450 *posix*) : 12451 set -o posix ;; #( 12452 *) : 12453 ;; 12454esac 12455fi 12456 12457 12458as_nl=' 12459' 12460export as_nl 12461# Printing a long string crashes Solaris 7 /usr/bin/printf. 12462as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12463as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12464as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12465# Prefer a ksh shell builtin over an external printf program on Solaris, 12466# but without wasting forks for bash or zsh. 12467if test -z "$BASH_VERSION$ZSH_VERSION" \ 12468 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12469 as_echo='print -r --' 12470 as_echo_n='print -rn --' 12471elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12472 as_echo='printf %s\n' 12473 as_echo_n='printf %s' 12474else 12475 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12476 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12477 as_echo_n='/usr/ucb/echo -n' 12478 else 12479 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12480 as_echo_n_body='eval 12481 arg=$1; 12482 case $arg in #( 12483 *"$as_nl"*) 12484 expr "X$arg" : "X\\(.*\\)$as_nl"; 12485 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12486 esac; 12487 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12488 ' 12489 export as_echo_n_body 12490 as_echo_n='sh -c $as_echo_n_body as_echo' 12491 fi 12492 export as_echo_body 12493 as_echo='sh -c $as_echo_body as_echo' 12494fi 12495 12496# The user is always right. 12497if test "${PATH_SEPARATOR+set}" != set; then 12498 PATH_SEPARATOR=: 12499 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12500 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12501 PATH_SEPARATOR=';' 12502 } 12503fi 12504 12505 12506# IFS 12507# We need space, tab and new line, in precisely that order. Quoting is 12508# there to prevent editors from complaining about space-tab. 12509# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12510# splitting by setting IFS to empty value.) 12511IFS=" "" $as_nl" 12512 12513# Find who we are. Look in the path if we contain no directory separator. 12514as_myself= 12515case $0 in #(( 12516 *[\\/]* ) as_myself=$0 ;; 12517 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12518for as_dir in $PATH 12519do 12520 IFS=$as_save_IFS 12521 test -z "$as_dir" && as_dir=. 12522 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12523 done 12524IFS=$as_save_IFS 12525 12526 ;; 12527esac 12528# We did not find ourselves, most probably we were run as `sh COMMAND' 12529# in which case we are not to be found in the path. 12530if test "x$as_myself" = x; then 12531 as_myself=$0 12532fi 12533if test ! -f "$as_myself"; then 12534 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12535 exit 1 12536fi 12537 12538# Unset variables that we do not need and which cause bugs (e.g. in 12539# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12540# suppresses any "Segmentation fault" message there. '((' could 12541# trigger a bug in pdksh 5.2.14. 12542for as_var in BASH_ENV ENV MAIL MAILPATH 12543do eval test x\${$as_var+set} = xset \ 12544 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12545done 12546PS1='$ ' 12547PS2='> ' 12548PS4='+ ' 12549 12550# NLS nuisances. 12551LC_ALL=C 12552export LC_ALL 12553LANGUAGE=C 12554export LANGUAGE 12555 12556# CDPATH. 12557(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12558 12559 12560# as_fn_error STATUS ERROR [LINENO LOG_FD] 12561# ---------------------------------------- 12562# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12563# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12564# script with STATUS, using 1 if that was 0. 12565as_fn_error () 12566{ 12567 as_status=$1; test $as_status -eq 0 && as_status=1 12568 if test "$4"; then 12569 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12570 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12571 fi 12572 $as_echo "$as_me: error: $2" >&2 12573 as_fn_exit $as_status 12574} # as_fn_error 12575 12576 12577# as_fn_set_status STATUS 12578# ----------------------- 12579# Set $? to STATUS, without forking. 12580as_fn_set_status () 12581{ 12582 return $1 12583} # as_fn_set_status 12584 12585# as_fn_exit STATUS 12586# ----------------- 12587# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12588as_fn_exit () 12589{ 12590 set +e 12591 as_fn_set_status $1 12592 exit $1 12593} # as_fn_exit 12594 12595# as_fn_unset VAR 12596# --------------- 12597# Portably unset VAR. 12598as_fn_unset () 12599{ 12600 { eval $1=; unset $1;} 12601} 12602as_unset=as_fn_unset 12603# as_fn_append VAR VALUE 12604# ---------------------- 12605# Append the text in VALUE to the end of the definition contained in VAR. Take 12606# advantage of any shell optimizations that allow amortized linear growth over 12607# repeated appends, instead of the typical quadratic growth present in naive 12608# implementations. 12609if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12610 eval 'as_fn_append () 12611 { 12612 eval $1+=\$2 12613 }' 12614else 12615 as_fn_append () 12616 { 12617 eval $1=\$$1\$2 12618 } 12619fi # as_fn_append 12620 12621# as_fn_arith ARG... 12622# ------------------ 12623# Perform arithmetic evaluation on the ARGs, and store the result in the 12624# global $as_val. Take advantage of shells that can avoid forks. The arguments 12625# must be portable across $(()) and expr. 12626if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12627 eval 'as_fn_arith () 12628 { 12629 as_val=$(( $* )) 12630 }' 12631else 12632 as_fn_arith () 12633 { 12634 as_val=`expr "$@" || test $? -eq 1` 12635 } 12636fi # as_fn_arith 12637 12638 12639if expr a : '\(a\)' >/dev/null 2>&1 && 12640 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12641 as_expr=expr 12642else 12643 as_expr=false 12644fi 12645 12646if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12647 as_basename=basename 12648else 12649 as_basename=false 12650fi 12651 12652if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12653 as_dirname=dirname 12654else 12655 as_dirname=false 12656fi 12657 12658as_me=`$as_basename -- "$0" || 12659$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12660 X"$0" : 'X\(//\)$' \| \ 12661 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12662$as_echo X/"$0" | 12663 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12664 s//\1/ 12665 q 12666 } 12667 /^X\/\(\/\/\)$/{ 12668 s//\1/ 12669 q 12670 } 12671 /^X\/\(\/\).*/{ 12672 s//\1/ 12673 q 12674 } 12675 s/.*/./; q'` 12676 12677# Avoid depending upon Character Ranges. 12678as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12679as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12680as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12681as_cr_digits='0123456789' 12682as_cr_alnum=$as_cr_Letters$as_cr_digits 12683 12684ECHO_C= ECHO_N= ECHO_T= 12685case `echo -n x` in #((((( 12686-n*) 12687 case `echo 'xy\c'` in 12688 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12689 xy) ECHO_C='\c';; 12690 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12691 ECHO_T=' ';; 12692 esac;; 12693*) 12694 ECHO_N='-n';; 12695esac 12696 12697rm -f conf$$ conf$$.exe conf$$.file 12698if test -d conf$$.dir; then 12699 rm -f conf$$.dir/conf$$.file 12700else 12701 rm -f conf$$.dir 12702 mkdir conf$$.dir 2>/dev/null 12703fi 12704if (echo >conf$$.file) 2>/dev/null; then 12705 if ln -s conf$$.file conf$$ 2>/dev/null; then 12706 as_ln_s='ln -s' 12707 # ... but there are two gotchas: 12708 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12709 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12710 # In both cases, we have to default to `cp -p'. 12711 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12712 as_ln_s='cp -p' 12713 elif ln conf$$.file conf$$ 2>/dev/null; then 12714 as_ln_s=ln 12715 else 12716 as_ln_s='cp -p' 12717 fi 12718else 12719 as_ln_s='cp -p' 12720fi 12721rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12722rmdir conf$$.dir 2>/dev/null 12723 12724 12725# as_fn_mkdir_p 12726# ------------- 12727# Create "$as_dir" as a directory, including parents if necessary. 12728as_fn_mkdir_p () 12729{ 12730 12731 case $as_dir in #( 12732 -*) as_dir=./$as_dir;; 12733 esac 12734 test -d "$as_dir" || eval $as_mkdir_p || { 12735 as_dirs= 12736 while :; do 12737 case $as_dir in #( 12738 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12739 *) as_qdir=$as_dir;; 12740 esac 12741 as_dirs="'$as_qdir' $as_dirs" 12742 as_dir=`$as_dirname -- "$as_dir" || 12743$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12744 X"$as_dir" : 'X\(//\)[^/]' \| \ 12745 X"$as_dir" : 'X\(//\)$' \| \ 12746 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12747$as_echo X"$as_dir" | 12748 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12749 s//\1/ 12750 q 12751 } 12752 /^X\(\/\/\)[^/].*/{ 12753 s//\1/ 12754 q 12755 } 12756 /^X\(\/\/\)$/{ 12757 s//\1/ 12758 q 12759 } 12760 /^X\(\/\).*/{ 12761 s//\1/ 12762 q 12763 } 12764 s/.*/./; q'` 12765 test -d "$as_dir" && break 12766 done 12767 test -z "$as_dirs" || eval "mkdir $as_dirs" 12768 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12769 12770 12771} # as_fn_mkdir_p 12772if mkdir -p . 2>/dev/null; then 12773 as_mkdir_p='mkdir -p "$as_dir"' 12774else 12775 test -d ./-p && rmdir ./-p 12776 as_mkdir_p=false 12777fi 12778 12779if test -x / >/dev/null 2>&1; then 12780 as_test_x='test -x' 12781else 12782 if ls -dL / >/dev/null 2>&1; then 12783 as_ls_L_option=L 12784 else 12785 as_ls_L_option= 12786 fi 12787 as_test_x=' 12788 eval sh -c '\'' 12789 if test -d "$1"; then 12790 test -d "$1/."; 12791 else 12792 case $1 in #( 12793 -*)set "./$1";; 12794 esac; 12795 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12796 ???[sx]*):;;*)false;;esac;fi 12797 '\'' sh 12798 ' 12799fi 12800as_executable_p=$as_test_x 12801 12802# Sed expression to map a string onto a valid CPP name. 12803as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12804 12805# Sed expression to map a string onto a valid variable name. 12806as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12807 12808 12809exec 6>&1 12810## ----------------------------------- ## 12811## Main body of $CONFIG_STATUS script. ## 12812## ----------------------------------- ## 12813_ASEOF 12814test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12815 12816cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12817# Save the log message, to keep $0 and so on meaningful, and to 12818# report actual input values of CONFIG_FILES etc. instead of their 12819# values after options handling. 12820ac_log=" 12821This file was extended by libXdmcp $as_me 1.1.0, which was 12822generated by GNU Autoconf 2.68. Invocation command line was 12823 12824 CONFIG_FILES = $CONFIG_FILES 12825 CONFIG_HEADERS = $CONFIG_HEADERS 12826 CONFIG_LINKS = $CONFIG_LINKS 12827 CONFIG_COMMANDS = $CONFIG_COMMANDS 12828 $ $0 $@ 12829 12830on `(hostname || uname -n) 2>/dev/null | sed 1q` 12831" 12832 12833_ACEOF 12834 12835case $ac_config_files in *" 12836"*) set x $ac_config_files; shift; ac_config_files=$*;; 12837esac 12838 12839case $ac_config_headers in *" 12840"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12841esac 12842 12843 12844cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12845# Files that config.status was made for. 12846config_files="$ac_config_files" 12847config_headers="$ac_config_headers" 12848config_commands="$ac_config_commands" 12849 12850_ACEOF 12851 12852cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12853ac_cs_usage="\ 12854\`$as_me' instantiates files and other configuration actions 12855from templates according to the current configuration. Unless the files 12856and actions are specified as TAGs, all are instantiated by default. 12857 12858Usage: $0 [OPTION]... [TAG]... 12859 12860 -h, --help print this help, then exit 12861 -V, --version print version number and configuration settings, then exit 12862 --config print configuration, then exit 12863 -q, --quiet, --silent 12864 do not print progress messages 12865 -d, --debug don't remove temporary files 12866 --recheck update $as_me by reconfiguring in the same conditions 12867 --file=FILE[:TEMPLATE] 12868 instantiate the configuration file FILE 12869 --header=FILE[:TEMPLATE] 12870 instantiate the configuration header FILE 12871 12872Configuration files: 12873$config_files 12874 12875Configuration headers: 12876$config_headers 12877 12878Configuration commands: 12879$config_commands 12880 12881Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12882 12883_ACEOF 12884cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12885ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12886ac_cs_version="\\ 12887libXdmcp config.status 1.1.0 12888configured by $0, generated by GNU Autoconf 2.68, 12889 with options \\"\$ac_cs_config\\" 12890 12891Copyright (C) 2010 Free Software Foundation, Inc. 12892This config.status script is free software; the Free Software Foundation 12893gives unlimited permission to copy, distribute and modify it." 12894 12895ac_pwd='$ac_pwd' 12896srcdir='$srcdir' 12897INSTALL='$INSTALL' 12898MKDIR_P='$MKDIR_P' 12899AWK='$AWK' 12900test -n "\$AWK" || AWK=awk 12901_ACEOF 12902 12903cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12904# The default lists apply if the user does not specify any file. 12905ac_need_defaults=: 12906while test $# != 0 12907do 12908 case $1 in 12909 --*=?*) 12910 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12911 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12912 ac_shift=: 12913 ;; 12914 --*=) 12915 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12916 ac_optarg= 12917 ac_shift=: 12918 ;; 12919 *) 12920 ac_option=$1 12921 ac_optarg=$2 12922 ac_shift=shift 12923 ;; 12924 esac 12925 12926 case $ac_option in 12927 # Handling of the options. 12928 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12929 ac_cs_recheck=: ;; 12930 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12931 $as_echo "$ac_cs_version"; exit ;; 12932 --config | --confi | --conf | --con | --co | --c ) 12933 $as_echo "$ac_cs_config"; exit ;; 12934 --debug | --debu | --deb | --de | --d | -d ) 12935 debug=: ;; 12936 --file | --fil | --fi | --f ) 12937 $ac_shift 12938 case $ac_optarg in 12939 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12940 '') as_fn_error $? "missing file argument" ;; 12941 esac 12942 as_fn_append CONFIG_FILES " '$ac_optarg'" 12943 ac_need_defaults=false;; 12944 --header | --heade | --head | --hea ) 12945 $ac_shift 12946 case $ac_optarg in 12947 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12948 esac 12949 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12950 ac_need_defaults=false;; 12951 --he | --h) 12952 # Conflict between --help and --header 12953 as_fn_error $? "ambiguous option: \`$1' 12954Try \`$0 --help' for more information.";; 12955 --help | --hel | -h ) 12956 $as_echo "$ac_cs_usage"; exit ;; 12957 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12958 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12959 ac_cs_silent=: ;; 12960 12961 # This is an error. 12962 -*) as_fn_error $? "unrecognized option: \`$1' 12963Try \`$0 --help' for more information." ;; 12964 12965 *) as_fn_append ac_config_targets " $1" 12966 ac_need_defaults=false ;; 12967 12968 esac 12969 shift 12970done 12971 12972ac_configure_extra_args= 12973 12974if $ac_cs_silent; then 12975 exec 6>/dev/null 12976 ac_configure_extra_args="$ac_configure_extra_args --silent" 12977fi 12978 12979_ACEOF 12980cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12981if \$ac_cs_recheck; then 12982 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12983 shift 12984 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12985 CONFIG_SHELL='$SHELL' 12986 export CONFIG_SHELL 12987 exec "\$@" 12988fi 12989 12990_ACEOF 12991cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12992exec 5>>config.log 12993{ 12994 echo 12995 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12996## Running $as_me. ## 12997_ASBOX 12998 $as_echo "$ac_log" 12999} >&5 13000 13001_ACEOF 13002cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13003# 13004# INIT-COMMANDS 13005# 13006AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13007 13008 13009# The HP-UX ksh and POSIX shell print the target directory to stdout 13010# if CDPATH is set. 13011(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13012 13013sed_quote_subst='$sed_quote_subst' 13014double_quote_subst='$double_quote_subst' 13015delay_variable_subst='$delay_variable_subst' 13016AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 13017DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 13018OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13019macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13020macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13021enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13022enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13023pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13024enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13025SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13026ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13027host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13028host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13029host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13030build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13031build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13032build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13033SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13034Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13035GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13036EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13037FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13038LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13039NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13040LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13041max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13042ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13043exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13044lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13045lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13046lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13047reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13048reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13049deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13050file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13051AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13052AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13053STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13054RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13055old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13056old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13057old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13058lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13059CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13060CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13061compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13062GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13063lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13064lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13065lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13066lt_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"`' 13067objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13068MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13069lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13070lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13071lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13072lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13073lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13074need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13075DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13076NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13077LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13078OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13079OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13080libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13081shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13082extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13083archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13084enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13085export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13086whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13087compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13088old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13089old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13090archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13091archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13092module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13093module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13094with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13095allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13096no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13097hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13098hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13099hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13100hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13101hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13102hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13103hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13104hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13105inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13106link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13107fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13108always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13109export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13110exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13111include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13112prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13113file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13114variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13115need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13116need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13117version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13118runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13119shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13120shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13121libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13122library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13123soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13124install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13125postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13126postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13127finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13128finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13129hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13130sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13131sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13132hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13133enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13134enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13135enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13136old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13137striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13138 13139LTCC='$LTCC' 13140LTCFLAGS='$LTCFLAGS' 13141compiler='$compiler_DEFAULT' 13142 13143# A function that is used when there is no print builtin or printf. 13144func_fallback_echo () 13145{ 13146 eval 'cat <<_LTECHO_EOF 13147\$1 13148_LTECHO_EOF' 13149} 13150 13151# Quote evaled strings. 13152for var in AS \ 13153DLLTOOL \ 13154OBJDUMP \ 13155SHELL \ 13156ECHO \ 13157SED \ 13158GREP \ 13159EGREP \ 13160FGREP \ 13161LD \ 13162NM \ 13163LN_S \ 13164lt_SP2NL \ 13165lt_NL2SP \ 13166reload_flag \ 13167deplibs_check_method \ 13168file_magic_cmd \ 13169AR \ 13170AR_FLAGS \ 13171STRIP \ 13172RANLIB \ 13173CC \ 13174CFLAGS \ 13175compiler \ 13176lt_cv_sys_global_symbol_pipe \ 13177lt_cv_sys_global_symbol_to_cdecl \ 13178lt_cv_sys_global_symbol_to_c_name_address \ 13179lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13180lt_prog_compiler_no_builtin_flag \ 13181lt_prog_compiler_wl \ 13182lt_prog_compiler_pic \ 13183lt_prog_compiler_static \ 13184lt_cv_prog_compiler_c_o \ 13185need_locks \ 13186DSYMUTIL \ 13187NMEDIT \ 13188LIPO \ 13189OTOOL \ 13190OTOOL64 \ 13191shrext_cmds \ 13192export_dynamic_flag_spec \ 13193whole_archive_flag_spec \ 13194compiler_needs_object \ 13195with_gnu_ld \ 13196allow_undefined_flag \ 13197no_undefined_flag \ 13198hardcode_libdir_flag_spec \ 13199hardcode_libdir_flag_spec_ld \ 13200hardcode_libdir_separator \ 13201fix_srcfile_path \ 13202exclude_expsyms \ 13203include_expsyms \ 13204file_list_spec \ 13205variables_saved_for_relink \ 13206libname_spec \ 13207library_names_spec \ 13208soname_spec \ 13209install_override_mode \ 13210finish_eval \ 13211old_striplib \ 13212striplib; do 13213 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13214 *[\\\\\\\`\\"\\\$]*) 13215 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13216 ;; 13217 *) 13218 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13219 ;; 13220 esac 13221done 13222 13223# Double-quote double-evaled strings. 13224for var in reload_cmds \ 13225old_postinstall_cmds \ 13226old_postuninstall_cmds \ 13227old_archive_cmds \ 13228extract_expsyms_cmds \ 13229old_archive_from_new_cmds \ 13230old_archive_from_expsyms_cmds \ 13231archive_cmds \ 13232archive_expsym_cmds \ 13233module_cmds \ 13234module_expsym_cmds \ 13235export_symbols_cmds \ 13236prelink_cmds \ 13237postinstall_cmds \ 13238postuninstall_cmds \ 13239finish_cmds \ 13240sys_lib_search_path_spec \ 13241sys_lib_dlsearch_path_spec; do 13242 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13243 *[\\\\\\\`\\"\\\$]*) 13244 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13245 ;; 13246 *) 13247 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13248 ;; 13249 esac 13250done 13251 13252ac_aux_dir='$ac_aux_dir' 13253xsi_shell='$xsi_shell' 13254lt_shell_append='$lt_shell_append' 13255 13256# See if we are running on zsh, and set the options which allow our 13257# commands through without removal of \ escapes INIT. 13258if test -n "\${ZSH_VERSION+set}" ; then 13259 setopt NO_GLOB_SUBST 13260fi 13261 13262 13263 PACKAGE='$PACKAGE' 13264 VERSION='$VERSION' 13265 TIMESTAMP='$TIMESTAMP' 13266 RM='$RM' 13267 ofile='$ofile' 13268 13269 13270 13271 13272_ACEOF 13273 13274cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13275 13276# Handling of arguments. 13277for ac_config_target in $ac_config_targets 13278do 13279 case $ac_config_target in 13280 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13281 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13282 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13283 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13284 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 13285 "xdmcp.pc") CONFIG_FILES="$CONFIG_FILES xdmcp.pc" ;; 13286 13287 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13288 esac 13289done 13290 13291 13292# If the user did not use the arguments to specify the items to instantiate, 13293# then the envvar interface is used. Set only those that are not. 13294# We use the long form for the default assignment because of an extremely 13295# bizarre bug on SunOS 4.1.3. 13296if $ac_need_defaults; then 13297 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13298 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13299 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13300fi 13301 13302# Have a temporary directory for convenience. Make it in the build tree 13303# simply because there is no reason against having it here, and in addition, 13304# creating and moving files from /tmp can sometimes cause problems. 13305# Hook for its removal unless debugging. 13306# Note that there is a small window in which the directory will not be cleaned: 13307# after its creation but before its name has been assigned to `$tmp'. 13308$debug || 13309{ 13310 tmp= ac_tmp= 13311 trap 'exit_status=$? 13312 : "${ac_tmp:=$tmp}" 13313 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13314' 0 13315 trap 'as_fn_exit 1' 1 2 13 15 13316} 13317# Create a (secure) tmp directory for tmp files. 13318 13319{ 13320 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13321 test -d "$tmp" 13322} || 13323{ 13324 tmp=./conf$$-$RANDOM 13325 (umask 077 && mkdir "$tmp") 13326} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13327ac_tmp=$tmp 13328 13329# Set up the scripts for CONFIG_FILES section. 13330# No need to generate them if there are no CONFIG_FILES. 13331# This happens for instance with `./config.status config.h'. 13332if test -n "$CONFIG_FILES"; then 13333 13334 13335ac_cr=`echo X | tr X '\015'` 13336# On cygwin, bash can eat \r inside `` if the user requested igncr. 13337# But we know of no other shell where ac_cr would be empty at this 13338# point, so we can use a bashism as a fallback. 13339if test "x$ac_cr" = x; then 13340 eval ac_cr=\$\'\\r\' 13341fi 13342ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13343if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13344 ac_cs_awk_cr='\\r' 13345else 13346 ac_cs_awk_cr=$ac_cr 13347fi 13348 13349echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13350_ACEOF 13351 13352 13353{ 13354 echo "cat >conf$$subs.awk <<_ACEOF" && 13355 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13356 echo "_ACEOF" 13357} >conf$$subs.sh || 13358 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13359ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13360ac_delim='%!_!# ' 13361for ac_last_try in false false false false false :; do 13362 . ./conf$$subs.sh || 13363 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13364 13365 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13366 if test $ac_delim_n = $ac_delim_num; then 13367 break 13368 elif $ac_last_try; then 13369 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13370 else 13371 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13372 fi 13373done 13374rm -f conf$$subs.sh 13375 13376cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13377cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13378_ACEOF 13379sed -n ' 13380h 13381s/^/S["/; s/!.*/"]=/ 13382p 13383g 13384s/^[^!]*!// 13385:repl 13386t repl 13387s/'"$ac_delim"'$// 13388t delim 13389:nl 13390h 13391s/\(.\{148\}\)..*/\1/ 13392t more1 13393s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13394p 13395n 13396b repl 13397:more1 13398s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13399p 13400g 13401s/.\{148\}// 13402t nl 13403:delim 13404h 13405s/\(.\{148\}\)..*/\1/ 13406t more2 13407s/["\\]/\\&/g; s/^/"/; s/$/"/ 13408p 13409b 13410:more2 13411s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13412p 13413g 13414s/.\{148\}// 13415t delim 13416' <conf$$subs.awk | sed ' 13417/^[^""]/{ 13418 N 13419 s/\n// 13420} 13421' >>$CONFIG_STATUS || ac_write_fail=1 13422rm -f conf$$subs.awk 13423cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13424_ACAWK 13425cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13426 for (key in S) S_is_set[key] = 1 13427 FS = "" 13428 13429} 13430{ 13431 line = $ 0 13432 nfields = split(line, field, "@") 13433 substed = 0 13434 len = length(field[1]) 13435 for (i = 2; i < nfields; i++) { 13436 key = field[i] 13437 keylen = length(key) 13438 if (S_is_set[key]) { 13439 value = S[key] 13440 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13441 len += length(value) + length(field[++i]) 13442 substed = 1 13443 } else 13444 len += 1 + keylen 13445 } 13446 13447 print line 13448} 13449 13450_ACAWK 13451_ACEOF 13452cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13453if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13454 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13455else 13456 cat 13457fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13458 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13459_ACEOF 13460 13461# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13462# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13463# trailing colons and then remove the whole line if VPATH becomes empty 13464# (actually we leave an empty line to preserve line numbers). 13465if test "x$srcdir" = x.; then 13466 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13467h 13468s/// 13469s/^/:/ 13470s/[ ]*$/:/ 13471s/:\$(srcdir):/:/g 13472s/:\${srcdir}:/:/g 13473s/:@srcdir@:/:/g 13474s/^:*// 13475s/:*$// 13476x 13477s/\(=[ ]*\).*/\1/ 13478G 13479s/\n// 13480s/^[^=]*=[ ]*$// 13481}' 13482fi 13483 13484cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13485fi # test -n "$CONFIG_FILES" 13486 13487# Set up the scripts for CONFIG_HEADERS section. 13488# No need to generate them if there are no CONFIG_HEADERS. 13489# This happens for instance with `./config.status Makefile'. 13490if test -n "$CONFIG_HEADERS"; then 13491cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13492BEGIN { 13493_ACEOF 13494 13495# Transform confdefs.h into an awk script `defines.awk', embedded as 13496# here-document in config.status, that substitutes the proper values into 13497# config.h.in to produce config.h. 13498 13499# Create a delimiter string that does not exist in confdefs.h, to ease 13500# handling of long lines. 13501ac_delim='%!_!# ' 13502for ac_last_try in false false :; do 13503 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13504 if test -z "$ac_tt"; then 13505 break 13506 elif $ac_last_try; then 13507 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13508 else 13509 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13510 fi 13511done 13512 13513# For the awk script, D is an array of macro values keyed by name, 13514# likewise P contains macro parameters if any. Preserve backslash 13515# newline sequences. 13516 13517ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13518sed -n ' 13519s/.\{148\}/&'"$ac_delim"'/g 13520t rset 13521:rset 13522s/^[ ]*#[ ]*define[ ][ ]*/ / 13523t def 13524d 13525:def 13526s/\\$// 13527t bsnl 13528s/["\\]/\\&/g 13529s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13530D["\1"]=" \3"/p 13531s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13532d 13533:bsnl 13534s/["\\]/\\&/g 13535s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13536D["\1"]=" \3\\\\\\n"\\/p 13537t cont 13538s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13539t cont 13540d 13541:cont 13542n 13543s/.\{148\}/&'"$ac_delim"'/g 13544t clear 13545:clear 13546s/\\$// 13547t bsnlc 13548s/["\\]/\\&/g; s/^/"/; s/$/"/p 13549d 13550:bsnlc 13551s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13552b cont 13553' <confdefs.h | sed ' 13554s/'"$ac_delim"'/"\\\ 13555"/g' >>$CONFIG_STATUS || ac_write_fail=1 13556 13557cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13558 for (key in D) D_is_set[key] = 1 13559 FS = "" 13560} 13561/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13562 line = \$ 0 13563 split(line, arg, " ") 13564 if (arg[1] == "#") { 13565 defundef = arg[2] 13566 mac1 = arg[3] 13567 } else { 13568 defundef = substr(arg[1], 2) 13569 mac1 = arg[2] 13570 } 13571 split(mac1, mac2, "(") #) 13572 macro = mac2[1] 13573 prefix = substr(line, 1, index(line, defundef) - 1) 13574 if (D_is_set[macro]) { 13575 # Preserve the white space surrounding the "#". 13576 print prefix "define", macro P[macro] D[macro] 13577 next 13578 } else { 13579 # Replace #undef with comments. This is necessary, for example, 13580 # in the case of _POSIX_SOURCE, which is predefined and required 13581 # on some systems where configure will not decide to define it. 13582 if (defundef == "undef") { 13583 print "/*", prefix defundef, macro, "*/" 13584 next 13585 } 13586 } 13587} 13588{ print } 13589_ACAWK 13590_ACEOF 13591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13592 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13593fi # test -n "$CONFIG_HEADERS" 13594 13595 13596eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13597shift 13598for ac_tag 13599do 13600 case $ac_tag in 13601 :[FHLC]) ac_mode=$ac_tag; continue;; 13602 esac 13603 case $ac_mode$ac_tag in 13604 :[FHL]*:*);; 13605 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13606 :[FH]-) ac_tag=-:-;; 13607 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13608 esac 13609 ac_save_IFS=$IFS 13610 IFS=: 13611 set x $ac_tag 13612 IFS=$ac_save_IFS 13613 shift 13614 ac_file=$1 13615 shift 13616 13617 case $ac_mode in 13618 :L) ac_source=$1;; 13619 :[FH]) 13620 ac_file_inputs= 13621 for ac_f 13622 do 13623 case $ac_f in 13624 -) ac_f="$ac_tmp/stdin";; 13625 *) # Look for the file first in the build tree, then in the source tree 13626 # (if the path is not absolute). The absolute path cannot be DOS-style, 13627 # because $ac_f cannot contain `:'. 13628 test -f "$ac_f" || 13629 case $ac_f in 13630 [\\/$]*) false;; 13631 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13632 esac || 13633 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13634 esac 13635 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13636 as_fn_append ac_file_inputs " '$ac_f'" 13637 done 13638 13639 # Let's still pretend it is `configure' which instantiates (i.e., don't 13640 # use $as_me), people would be surprised to read: 13641 # /* config.h. Generated by config.status. */ 13642 configure_input='Generated from '` 13643 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13644 `' by configure.' 13645 if test x"$ac_file" != x-; then 13646 configure_input="$ac_file. $configure_input" 13647 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13648$as_echo "$as_me: creating $ac_file" >&6;} 13649 fi 13650 # Neutralize special characters interpreted by sed in replacement strings. 13651 case $configure_input in #( 13652 *\&* | *\|* | *\\* ) 13653 ac_sed_conf_input=`$as_echo "$configure_input" | 13654 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13655 *) ac_sed_conf_input=$configure_input;; 13656 esac 13657 13658 case $ac_tag in 13659 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13660 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13661 esac 13662 ;; 13663 esac 13664 13665 ac_dir=`$as_dirname -- "$ac_file" || 13666$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13667 X"$ac_file" : 'X\(//\)[^/]' \| \ 13668 X"$ac_file" : 'X\(//\)$' \| \ 13669 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13670$as_echo X"$ac_file" | 13671 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13672 s//\1/ 13673 q 13674 } 13675 /^X\(\/\/\)[^/].*/{ 13676 s//\1/ 13677 q 13678 } 13679 /^X\(\/\/\)$/{ 13680 s//\1/ 13681 q 13682 } 13683 /^X\(\/\).*/{ 13684 s//\1/ 13685 q 13686 } 13687 s/.*/./; q'` 13688 as_dir="$ac_dir"; as_fn_mkdir_p 13689 ac_builddir=. 13690 13691case "$ac_dir" in 13692.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13693*) 13694 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13695 # A ".." for each directory in $ac_dir_suffix. 13696 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13697 case $ac_top_builddir_sub in 13698 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13699 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13700 esac ;; 13701esac 13702ac_abs_top_builddir=$ac_pwd 13703ac_abs_builddir=$ac_pwd$ac_dir_suffix 13704# for backward compatibility: 13705ac_top_builddir=$ac_top_build_prefix 13706 13707case $srcdir in 13708 .) # We are building in place. 13709 ac_srcdir=. 13710 ac_top_srcdir=$ac_top_builddir_sub 13711 ac_abs_top_srcdir=$ac_pwd ;; 13712 [\\/]* | ?:[\\/]* ) # Absolute name. 13713 ac_srcdir=$srcdir$ac_dir_suffix; 13714 ac_top_srcdir=$srcdir 13715 ac_abs_top_srcdir=$srcdir ;; 13716 *) # Relative name. 13717 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13718 ac_top_srcdir=$ac_top_build_prefix$srcdir 13719 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13720esac 13721ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13722 13723 13724 case $ac_mode in 13725 :F) 13726 # 13727 # CONFIG_FILE 13728 # 13729 13730 case $INSTALL in 13731 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13732 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13733 esac 13734 ac_MKDIR_P=$MKDIR_P 13735 case $MKDIR_P in 13736 [\\/$]* | ?:[\\/]* ) ;; 13737 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13738 esac 13739_ACEOF 13740 13741cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13742# If the template does not know about datarootdir, expand it. 13743# FIXME: This hack should be removed a few years after 2.60. 13744ac_datarootdir_hack=; ac_datarootdir_seen= 13745ac_sed_dataroot=' 13746/datarootdir/ { 13747 p 13748 q 13749} 13750/@datadir@/p 13751/@docdir@/p 13752/@infodir@/p 13753/@localedir@/p 13754/@mandir@/p' 13755case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13756*datarootdir*) ac_datarootdir_seen=yes;; 13757*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13758 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13759$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13760_ACEOF 13761cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13762 ac_datarootdir_hack=' 13763 s&@datadir@&$datadir&g 13764 s&@docdir@&$docdir&g 13765 s&@infodir@&$infodir&g 13766 s&@localedir@&$localedir&g 13767 s&@mandir@&$mandir&g 13768 s&\\\${datarootdir}&$datarootdir&g' ;; 13769esac 13770_ACEOF 13771 13772# Neutralize VPATH when `$srcdir' = `.'. 13773# Shell code in configure.ac might set extrasub. 13774# FIXME: do we really want to maintain this feature? 13775cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13776ac_sed_extra="$ac_vpsub 13777$extrasub 13778_ACEOF 13779cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13780:t 13781/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13782s|@configure_input@|$ac_sed_conf_input|;t t 13783s&@top_builddir@&$ac_top_builddir_sub&;t t 13784s&@top_build_prefix@&$ac_top_build_prefix&;t t 13785s&@srcdir@&$ac_srcdir&;t t 13786s&@abs_srcdir@&$ac_abs_srcdir&;t t 13787s&@top_srcdir@&$ac_top_srcdir&;t t 13788s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13789s&@builddir@&$ac_builddir&;t t 13790s&@abs_builddir@&$ac_abs_builddir&;t t 13791s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13792s&@INSTALL@&$ac_INSTALL&;t t 13793s&@MKDIR_P@&$ac_MKDIR_P&;t t 13794$ac_datarootdir_hack 13795" 13796eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13797 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13798 13799test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13800 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13801 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13802 "$ac_tmp/out"`; test -z "$ac_out"; } && 13803 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13804which seems to be undefined. Please make sure it is defined" >&5 13805$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13806which seems to be undefined. Please make sure it is defined" >&2;} 13807 13808 rm -f "$ac_tmp/stdin" 13809 case $ac_file in 13810 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13811 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13812 esac \ 13813 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13814 ;; 13815 :H) 13816 # 13817 # CONFIG_HEADER 13818 # 13819 if test x"$ac_file" != x-; then 13820 { 13821 $as_echo "/* $configure_input */" \ 13822 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13823 } >"$ac_tmp/config.h" \ 13824 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13825 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13826 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13827$as_echo "$as_me: $ac_file is unchanged" >&6;} 13828 else 13829 rm -f "$ac_file" 13830 mv "$ac_tmp/config.h" "$ac_file" \ 13831 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13832 fi 13833 else 13834 $as_echo "/* $configure_input */" \ 13835 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13836 || as_fn_error $? "could not create -" "$LINENO" 5 13837 fi 13838# Compute "$ac_file"'s index in $config_headers. 13839_am_arg="$ac_file" 13840_am_stamp_count=1 13841for _am_header in $config_headers :; do 13842 case $_am_header in 13843 $_am_arg | $_am_arg:* ) 13844 break ;; 13845 * ) 13846 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13847 esac 13848done 13849echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13850$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13851 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13852 X"$_am_arg" : 'X\(//\)$' \| \ 13853 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13854$as_echo X"$_am_arg" | 13855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13856 s//\1/ 13857 q 13858 } 13859 /^X\(\/\/\)[^/].*/{ 13860 s//\1/ 13861 q 13862 } 13863 /^X\(\/\/\)$/{ 13864 s//\1/ 13865 q 13866 } 13867 /^X\(\/\).*/{ 13868 s//\1/ 13869 q 13870 } 13871 s/.*/./; q'`/stamp-h$_am_stamp_count 13872 ;; 13873 13874 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13875$as_echo "$as_me: executing $ac_file commands" >&6;} 13876 ;; 13877 esac 13878 13879 13880 case $ac_file$ac_mode in 13881 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13882 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13883 # are listed without --file. Let's play safe and only enable the eval 13884 # if we detect the quoting. 13885 case $CONFIG_FILES in 13886 *\'*) eval set x "$CONFIG_FILES" ;; 13887 *) set x $CONFIG_FILES ;; 13888 esac 13889 shift 13890 for mf 13891 do 13892 # Strip MF so we end up with the name of the file. 13893 mf=`echo "$mf" | sed -e 's/:.*$//'` 13894 # Check whether this is an Automake generated Makefile or not. 13895 # We used to match only the files named `Makefile.in', but 13896 # some people rename them; so instead we look at the file content. 13897 # Grep'ing the first line is not enough: some people post-process 13898 # each Makefile.in and add a new line on top of each file to say so. 13899 # Grep'ing the whole file is not good either: AIX grep has a line 13900 # limit of 2048, but all sed's we know have understand at least 4000. 13901 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13902 dirpart=`$as_dirname -- "$mf" || 13903$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13904 X"$mf" : 'X\(//\)[^/]' \| \ 13905 X"$mf" : 'X\(//\)$' \| \ 13906 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13907$as_echo X"$mf" | 13908 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13909 s//\1/ 13910 q 13911 } 13912 /^X\(\/\/\)[^/].*/{ 13913 s//\1/ 13914 q 13915 } 13916 /^X\(\/\/\)$/{ 13917 s//\1/ 13918 q 13919 } 13920 /^X\(\/\).*/{ 13921 s//\1/ 13922 q 13923 } 13924 s/.*/./; q'` 13925 else 13926 continue 13927 fi 13928 # Extract the definition of DEPDIR, am__include, and am__quote 13929 # from the Makefile without running `make'. 13930 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13931 test -z "$DEPDIR" && continue 13932 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13933 test -z "am__include" && continue 13934 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13935 # When using ansi2knr, U may be empty or an underscore; expand it 13936 U=`sed -n 's/^U = //p' < "$mf"` 13937 # Find all dependency output files, they are included files with 13938 # $(DEPDIR) in their names. We invoke sed twice because it is the 13939 # simplest approach to changing $(DEPDIR) to its actual value in the 13940 # expansion. 13941 for file in `sed -n " 13942 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13943 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13944 # Make sure the directory exists. 13945 test -f "$dirpart/$file" && continue 13946 fdir=`$as_dirname -- "$file" || 13947$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13948 X"$file" : 'X\(//\)[^/]' \| \ 13949 X"$file" : 'X\(//\)$' \| \ 13950 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13951$as_echo X"$file" | 13952 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13953 s//\1/ 13954 q 13955 } 13956 /^X\(\/\/\)[^/].*/{ 13957 s//\1/ 13958 q 13959 } 13960 /^X\(\/\/\)$/{ 13961 s//\1/ 13962 q 13963 } 13964 /^X\(\/\).*/{ 13965 s//\1/ 13966 q 13967 } 13968 s/.*/./; q'` 13969 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13970 # echo "creating $dirpart/$file" 13971 echo '# dummy' > "$dirpart/$file" 13972 done 13973 done 13974} 13975 ;; 13976 "libtool":C) 13977 13978 # See if we are running on zsh, and set the options which allow our 13979 # commands through without removal of \ escapes. 13980 if test -n "${ZSH_VERSION+set}" ; then 13981 setopt NO_GLOB_SUBST 13982 fi 13983 13984 cfgfile="${ofile}T" 13985 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13986 $RM "$cfgfile" 13987 13988 cat <<_LT_EOF >> "$cfgfile" 13989#! $SHELL 13990 13991# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13992# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13993# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13994# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13995# 13996# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13997# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 13998# Inc. 13999# Written by Gordon Matzigkeit, 1996 14000# 14001# This file is part of GNU Libtool. 14002# 14003# GNU Libtool is free software; you can redistribute it and/or 14004# modify it under the terms of the GNU General Public License as 14005# published by the Free Software Foundation; either version 2 of 14006# the License, or (at your option) any later version. 14007# 14008# As a special exception to the GNU General Public License, 14009# if you distribute this file as part of a program or library that 14010# is built using GNU Libtool, you may include this file under the 14011# same distribution terms that you use for the rest of that program. 14012# 14013# GNU Libtool is distributed in the hope that it will be useful, 14014# but WITHOUT ANY WARRANTY; without even the implied warranty of 14015# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14016# GNU General Public License for more details. 14017# 14018# You should have received a copy of the GNU General Public License 14019# along with GNU Libtool; see the file COPYING. If not, a copy 14020# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14021# obtained by writing to the Free Software Foundation, Inc., 14022# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14023 14024 14025# The names of the tagged configurations supported by this script. 14026available_tags="" 14027 14028# ### BEGIN LIBTOOL CONFIG 14029 14030# Assembler program. 14031AS=$lt_AS 14032 14033# DLL creation program. 14034DLLTOOL=$lt_DLLTOOL 14035 14036# Object dumper program. 14037OBJDUMP=$lt_OBJDUMP 14038 14039# Which release of libtool.m4 was used? 14040macro_version=$macro_version 14041macro_revision=$macro_revision 14042 14043# Whether or not to build shared libraries. 14044build_libtool_libs=$enable_shared 14045 14046# Whether or not to build static libraries. 14047build_old_libs=$enable_static 14048 14049# What type of objects to build. 14050pic_mode=$pic_mode 14051 14052# Whether or not to optimize for fast installation. 14053fast_install=$enable_fast_install 14054 14055# Shell to use when invoking shell scripts. 14056SHELL=$lt_SHELL 14057 14058# An echo program that protects backslashes. 14059ECHO=$lt_ECHO 14060 14061# The host system. 14062host_alias=$host_alias 14063host=$host 14064host_os=$host_os 14065 14066# The build system. 14067build_alias=$build_alias 14068build=$build 14069build_os=$build_os 14070 14071# A sed program that does not truncate output. 14072SED=$lt_SED 14073 14074# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14075Xsed="\$SED -e 1s/^X//" 14076 14077# A grep program that handles long lines. 14078GREP=$lt_GREP 14079 14080# An ERE matcher. 14081EGREP=$lt_EGREP 14082 14083# A literal string matcher. 14084FGREP=$lt_FGREP 14085 14086# A BSD- or MS-compatible name lister. 14087NM=$lt_NM 14088 14089# Whether we need soft or hard links. 14090LN_S=$lt_LN_S 14091 14092# What is the maximum length of a command? 14093max_cmd_len=$max_cmd_len 14094 14095# Object file suffix (normally "o"). 14096objext=$ac_objext 14097 14098# Executable file suffix (normally ""). 14099exeext=$exeext 14100 14101# whether the shell understands "unset". 14102lt_unset=$lt_unset 14103 14104# turn spaces into newlines. 14105SP2NL=$lt_lt_SP2NL 14106 14107# turn newlines into spaces. 14108NL2SP=$lt_lt_NL2SP 14109 14110# Method to check whether dependent libraries are shared objects. 14111deplibs_check_method=$lt_deplibs_check_method 14112 14113# Command to use when deplibs_check_method == "file_magic". 14114file_magic_cmd=$lt_file_magic_cmd 14115 14116# The archiver. 14117AR=$lt_AR 14118AR_FLAGS=$lt_AR_FLAGS 14119 14120# A symbol stripping program. 14121STRIP=$lt_STRIP 14122 14123# Commands used to install an old-style archive. 14124RANLIB=$lt_RANLIB 14125old_postinstall_cmds=$lt_old_postinstall_cmds 14126old_postuninstall_cmds=$lt_old_postuninstall_cmds 14127 14128# Whether to use a lock for old archive extraction. 14129lock_old_archive_extraction=$lock_old_archive_extraction 14130 14131# A C compiler. 14132LTCC=$lt_CC 14133 14134# LTCC compiler flags. 14135LTCFLAGS=$lt_CFLAGS 14136 14137# Take the output of nm and produce a listing of raw symbols and C names. 14138global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14139 14140# Transform the output of nm in a proper C declaration. 14141global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14142 14143# Transform the output of nm in a C name address pair. 14144global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14145 14146# Transform the output of nm in a C name address pair when lib prefix is needed. 14147global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14148 14149# The name of the directory that contains temporary libtool files. 14150objdir=$objdir 14151 14152# Used to examine libraries when file_magic_cmd begins with "file". 14153MAGIC_CMD=$MAGIC_CMD 14154 14155# Must we lock files when doing compilation? 14156need_locks=$lt_need_locks 14157 14158# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14159DSYMUTIL=$lt_DSYMUTIL 14160 14161# Tool to change global to local symbols on Mac OS X. 14162NMEDIT=$lt_NMEDIT 14163 14164# Tool to manipulate fat objects and archives on Mac OS X. 14165LIPO=$lt_LIPO 14166 14167# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14168OTOOL=$lt_OTOOL 14169 14170# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14171OTOOL64=$lt_OTOOL64 14172 14173# Old archive suffix (normally "a"). 14174libext=$libext 14175 14176# Shared library suffix (normally ".so"). 14177shrext_cmds=$lt_shrext_cmds 14178 14179# The commands to extract the exported symbol list from a shared archive. 14180extract_expsyms_cmds=$lt_extract_expsyms_cmds 14181 14182# Variables whose values should be saved in libtool wrapper scripts and 14183# restored at link time. 14184variables_saved_for_relink=$lt_variables_saved_for_relink 14185 14186# Do we need the "lib" prefix for modules? 14187need_lib_prefix=$need_lib_prefix 14188 14189# Do we need a version for libraries? 14190need_version=$need_version 14191 14192# Library versioning type. 14193version_type=$version_type 14194 14195# Shared library runtime path variable. 14196runpath_var=$runpath_var 14197 14198# Shared library path variable. 14199shlibpath_var=$shlibpath_var 14200 14201# Is shlibpath searched before the hard-coded library search path? 14202shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14203 14204# Format of library name prefix. 14205libname_spec=$lt_libname_spec 14206 14207# List of archive names. First name is the real one, the rest are links. 14208# The last name is the one that the linker finds with -lNAME 14209library_names_spec=$lt_library_names_spec 14210 14211# The coded name of the library, if different from the real name. 14212soname_spec=$lt_soname_spec 14213 14214# Permission mode override for installation of shared libraries. 14215install_override_mode=$lt_install_override_mode 14216 14217# Command to use after installation of a shared archive. 14218postinstall_cmds=$lt_postinstall_cmds 14219 14220# Command to use after uninstallation of a shared archive. 14221postuninstall_cmds=$lt_postuninstall_cmds 14222 14223# Commands used to finish a libtool library installation in a directory. 14224finish_cmds=$lt_finish_cmds 14225 14226# As "finish_cmds", except a single script fragment to be evaled but 14227# not shown. 14228finish_eval=$lt_finish_eval 14229 14230# Whether we should hardcode library paths into libraries. 14231hardcode_into_libs=$hardcode_into_libs 14232 14233# Compile-time system search path for libraries. 14234sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14235 14236# Run-time system search path for libraries. 14237sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14238 14239# Whether dlopen is supported. 14240dlopen_support=$enable_dlopen 14241 14242# Whether dlopen of programs is supported. 14243dlopen_self=$enable_dlopen_self 14244 14245# Whether dlopen of statically linked programs is supported. 14246dlopen_self_static=$enable_dlopen_self_static 14247 14248# Commands to strip libraries. 14249old_striplib=$lt_old_striplib 14250striplib=$lt_striplib 14251 14252 14253# The linker used to build libraries. 14254LD=$lt_LD 14255 14256# How to create reloadable object files. 14257reload_flag=$lt_reload_flag 14258reload_cmds=$lt_reload_cmds 14259 14260# Commands used to build an old-style archive. 14261old_archive_cmds=$lt_old_archive_cmds 14262 14263# A language specific compiler. 14264CC=$lt_compiler 14265 14266# Is the compiler the GNU compiler? 14267with_gcc=$GCC 14268 14269# Compiler flag to turn off builtin functions. 14270no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14271 14272# How to pass a linker flag through the compiler. 14273wl=$lt_lt_prog_compiler_wl 14274 14275# Additional compiler flags for building library objects. 14276pic_flag=$lt_lt_prog_compiler_pic 14277 14278# Compiler flag to prevent dynamic linking. 14279link_static_flag=$lt_lt_prog_compiler_static 14280 14281# Does compiler simultaneously support -c and -o options? 14282compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14283 14284# Whether or not to add -lc for building shared libraries. 14285build_libtool_need_lc=$archive_cmds_need_lc 14286 14287# Whether or not to disallow shared libs when runtime libs are static. 14288allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14289 14290# Compiler flag to allow reflexive dlopens. 14291export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14292 14293# Compiler flag to generate shared objects directly from archives. 14294whole_archive_flag_spec=$lt_whole_archive_flag_spec 14295 14296# Whether the compiler copes with passing no objects directly. 14297compiler_needs_object=$lt_compiler_needs_object 14298 14299# Create an old-style archive from a shared archive. 14300old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14301 14302# Create a temporary old-style archive to link instead of a shared archive. 14303old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14304 14305# Commands used to build a shared archive. 14306archive_cmds=$lt_archive_cmds 14307archive_expsym_cmds=$lt_archive_expsym_cmds 14308 14309# Commands used to build a loadable module if different from building 14310# a shared archive. 14311module_cmds=$lt_module_cmds 14312module_expsym_cmds=$lt_module_expsym_cmds 14313 14314# Whether we are building with GNU ld or not. 14315with_gnu_ld=$lt_with_gnu_ld 14316 14317# Flag that allows shared libraries with undefined symbols to be built. 14318allow_undefined_flag=$lt_allow_undefined_flag 14319 14320# Flag that enforces no undefined symbols. 14321no_undefined_flag=$lt_no_undefined_flag 14322 14323# Flag to hardcode \$libdir into a binary during linking. 14324# This must work even if \$libdir does not exist 14325hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14326 14327# If ld is used when linking, flag to hardcode \$libdir into a binary 14328# during linking. This must work even if \$libdir does not exist. 14329hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14330 14331# Whether we need a single "-rpath" flag with a separated argument. 14332hardcode_libdir_separator=$lt_hardcode_libdir_separator 14333 14334# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14335# DIR into the resulting binary. 14336hardcode_direct=$hardcode_direct 14337 14338# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14339# DIR into the resulting binary and the resulting library dependency is 14340# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14341# library is relocated. 14342hardcode_direct_absolute=$hardcode_direct_absolute 14343 14344# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14345# into the resulting binary. 14346hardcode_minus_L=$hardcode_minus_L 14347 14348# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14349# into the resulting binary. 14350hardcode_shlibpath_var=$hardcode_shlibpath_var 14351 14352# Set to "yes" if building a shared library automatically hardcodes DIR 14353# into the library and all subsequent libraries and executables linked 14354# against it. 14355hardcode_automatic=$hardcode_automatic 14356 14357# Set to yes if linker adds runtime paths of dependent libraries 14358# to runtime path list. 14359inherit_rpath=$inherit_rpath 14360 14361# Whether libtool must link a program against all its dependency libraries. 14362link_all_deplibs=$link_all_deplibs 14363 14364# Fix the shell variable \$srcfile for the compiler. 14365fix_srcfile_path=$lt_fix_srcfile_path 14366 14367# Set to "yes" if exported symbols are required. 14368always_export_symbols=$always_export_symbols 14369 14370# The commands to list exported symbols. 14371export_symbols_cmds=$lt_export_symbols_cmds 14372 14373# Symbols that should not be listed in the preloaded symbols. 14374exclude_expsyms=$lt_exclude_expsyms 14375 14376# Symbols that must always be exported. 14377include_expsyms=$lt_include_expsyms 14378 14379# Commands necessary for linking programs (against libraries) with templates. 14380prelink_cmds=$lt_prelink_cmds 14381 14382# Specify filename containing input files. 14383file_list_spec=$lt_file_list_spec 14384 14385# How to hardcode a shared library path into an executable. 14386hardcode_action=$hardcode_action 14387 14388# ### END LIBTOOL CONFIG 14389 14390_LT_EOF 14391 14392 case $host_os in 14393 aix3*) 14394 cat <<\_LT_EOF >> "$cfgfile" 14395# AIX sometimes has problems with the GCC collect2 program. For some 14396# reason, if we set the COLLECT_NAMES environment variable, the problems 14397# vanish in a puff of smoke. 14398if test "X${COLLECT_NAMES+set}" != Xset; then 14399 COLLECT_NAMES= 14400 export COLLECT_NAMES 14401fi 14402_LT_EOF 14403 ;; 14404 esac 14405 14406 14407ltmain="$ac_aux_dir/ltmain.sh" 14408 14409 14410 # We use sed instead of cat because bash on DJGPP gets confused if 14411 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14412 # text mode, it properly converts lines to CR/LF. This bash problem 14413 # is reportedly fixed, but why not run on old versions too? 14414 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14415 || (rm -f "$cfgfile"; exit 1) 14416 14417 case $xsi_shell in 14418 yes) 14419 cat << \_LT_EOF >> "$cfgfile" 14420 14421# func_dirname file append nondir_replacement 14422# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14423# otherwise set result to NONDIR_REPLACEMENT. 14424func_dirname () 14425{ 14426 case ${1} in 14427 */*) func_dirname_result="${1%/*}${2}" ;; 14428 * ) func_dirname_result="${3}" ;; 14429 esac 14430} 14431 14432# func_basename file 14433func_basename () 14434{ 14435 func_basename_result="${1##*/}" 14436} 14437 14438# func_dirname_and_basename file append nondir_replacement 14439# perform func_basename and func_dirname in a single function 14440# call: 14441# dirname: Compute the dirname of FILE. If nonempty, 14442# add APPEND to the result, otherwise set result 14443# to NONDIR_REPLACEMENT. 14444# value returned in "$func_dirname_result" 14445# basename: Compute filename of FILE. 14446# value retuned in "$func_basename_result" 14447# Implementation must be kept synchronized with func_dirname 14448# and func_basename. For efficiency, we do not delegate to 14449# those functions but instead duplicate the functionality here. 14450func_dirname_and_basename () 14451{ 14452 case ${1} in 14453 */*) func_dirname_result="${1%/*}${2}" ;; 14454 * ) func_dirname_result="${3}" ;; 14455 esac 14456 func_basename_result="${1##*/}" 14457} 14458 14459# func_stripname prefix suffix name 14460# strip PREFIX and SUFFIX off of NAME. 14461# PREFIX and SUFFIX must not contain globbing or regex special 14462# characters, hashes, percent signs, but SUFFIX may contain a leading 14463# dot (in which case that matches only a dot). 14464func_stripname () 14465{ 14466 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14467 # positional parameters, so assign one to ordinary parameter first. 14468 func_stripname_result=${3} 14469 func_stripname_result=${func_stripname_result#"${1}"} 14470 func_stripname_result=${func_stripname_result%"${2}"} 14471} 14472 14473# func_opt_split 14474func_opt_split () 14475{ 14476 func_opt_split_opt=${1%%=*} 14477 func_opt_split_arg=${1#*=} 14478} 14479 14480# func_lo2o object 14481func_lo2o () 14482{ 14483 case ${1} in 14484 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14485 *) func_lo2o_result=${1} ;; 14486 esac 14487} 14488 14489# func_xform libobj-or-source 14490func_xform () 14491{ 14492 func_xform_result=${1%.*}.lo 14493} 14494 14495# func_arith arithmetic-term... 14496func_arith () 14497{ 14498 func_arith_result=$(( $* )) 14499} 14500 14501# func_len string 14502# STRING may not start with a hyphen. 14503func_len () 14504{ 14505 func_len_result=${#1} 14506} 14507 14508_LT_EOF 14509 ;; 14510 *) # Bourne compatible functions. 14511 cat << \_LT_EOF >> "$cfgfile" 14512 14513# func_dirname file append nondir_replacement 14514# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14515# otherwise set result to NONDIR_REPLACEMENT. 14516func_dirname () 14517{ 14518 # Extract subdirectory from the argument. 14519 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14520 if test "X$func_dirname_result" = "X${1}"; then 14521 func_dirname_result="${3}" 14522 else 14523 func_dirname_result="$func_dirname_result${2}" 14524 fi 14525} 14526 14527# func_basename file 14528func_basename () 14529{ 14530 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14531} 14532 14533 14534# func_stripname prefix suffix name 14535# strip PREFIX and SUFFIX off of NAME. 14536# PREFIX and SUFFIX must not contain globbing or regex special 14537# characters, hashes, percent signs, but SUFFIX may contain a leading 14538# dot (in which case that matches only a dot). 14539# func_strip_suffix prefix name 14540func_stripname () 14541{ 14542 case ${2} in 14543 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14544 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14545 esac 14546} 14547 14548# sed scripts: 14549my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14550my_sed_long_arg='1s/^-[^=]*=//' 14551 14552# func_opt_split 14553func_opt_split () 14554{ 14555 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14556 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14557} 14558 14559# func_lo2o object 14560func_lo2o () 14561{ 14562 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14563} 14564 14565# func_xform libobj-or-source 14566func_xform () 14567{ 14568 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14569} 14570 14571# func_arith arithmetic-term... 14572func_arith () 14573{ 14574 func_arith_result=`expr "$@"` 14575} 14576 14577# func_len string 14578# STRING may not start with a hyphen. 14579func_len () 14580{ 14581 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14582} 14583 14584_LT_EOF 14585esac 14586 14587case $lt_shell_append in 14588 yes) 14589 cat << \_LT_EOF >> "$cfgfile" 14590 14591# func_append var value 14592# Append VALUE to the end of shell variable VAR. 14593func_append () 14594{ 14595 eval "$1+=\$2" 14596} 14597_LT_EOF 14598 ;; 14599 *) 14600 cat << \_LT_EOF >> "$cfgfile" 14601 14602# func_append var value 14603# Append VALUE to the end of shell variable VAR. 14604func_append () 14605{ 14606 eval "$1=\$$1\$2" 14607} 14608 14609_LT_EOF 14610 ;; 14611 esac 14612 14613 14614 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14615 || (rm -f "$cfgfile"; exit 1) 14616 14617 mv -f "$cfgfile" "$ofile" || 14618 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14619 chmod +x "$ofile" 14620 14621 ;; 14622 14623 esac 14624done # for ac_tag 14625 14626 14627as_fn_exit 0 14628_ACEOF 14629ac_clean_files=$ac_clean_files_save 14630 14631test $ac_write_fail = 0 || 14632 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14633 14634 14635# configure is writing to config.log, and then calls config.status. 14636# config.status does its own redirection, appending to config.log. 14637# Unfortunately, on DOS this fails, as config.log is still kept open 14638# by configure, so config.status won't be able to write to it; its 14639# output is simply discarded. So we exec the FD to /dev/null, 14640# effectively closing config.log, so it can be properly (re)opened and 14641# appended to by config.status. When coming back to configure, we 14642# need to make the FD available again. 14643if test "$no_create" != yes; then 14644 ac_cs_success=: 14645 ac_config_status_args= 14646 test "$silent" = yes && 14647 ac_config_status_args="$ac_config_status_args --quiet" 14648 exec 5>/dev/null 14649 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14650 exec 5>>config.log 14651 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14652 # would make configure fail if this is the last instruction. 14653 $ac_cs_success || as_fn_exit 1 14654fi 14655if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14656 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14657$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14658fi 14659 14660