configure revision 25b89263
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXtst 1.2.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='libXtst' 633PACKAGE_TARNAME='libXtst' 634PACKAGE_VERSION='1.2.0' 635PACKAGE_STRING='libXtst 1.2.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 686INSTALL_MANPAGES_FALSE 687INSTALL_MANPAGES_TRUE 688XTST_LIBS 689XTST_CFLAGS 690OTOOL64 691OTOOL 692LIPO 693NMEDIT 694DSYMUTIL 695RANLIB 696AR 697OBJDUMP 698LN_S 699NM 700ac_ct_DUMPBIN 701DUMPBIN 702LD 703FGREP 704LIBTOOL 705HAVE_STYLESHEETS_FALSE 706HAVE_STYLESHEETS_TRUE 707XSL_STYLESHEET 708STYLESHEET_SRCDIR 709XORG_SGML_PATH 710HAVE_FOP_FALSE 711HAVE_FOP_TRUE 712FOP 713HAVE_XMLTO_FALSE 714HAVE_XMLTO_TRUE 715HAVE_XMLTO_TEXT_FALSE 716HAVE_XMLTO_TEXT_TRUE 717XMLTO 718ENABLE_SPECS_FALSE 719ENABLE_SPECS_TRUE 720AM_BACKSLASH 721AM_DEFAULT_VERBOSITY 722MAN_SUBSTS 723XORG_MAN_PAGE 724ADMIN_MAN_DIR 725DRIVER_MAN_DIR 726MISC_MAN_DIR 727FILE_MAN_DIR 728LIB_MAN_DIR 729APP_MAN_DIR 730ADMIN_MAN_SUFFIX 731DRIVER_MAN_SUFFIX 732MISC_MAN_SUFFIX 733FILE_MAN_SUFFIX 734LIB_MAN_SUFFIX 735APP_MAN_SUFFIX 736SED 737host_os 738host_vendor 739host_cpu 740host 741build_os 742build_vendor 743build_cpu 744build 745INSTALL_CMD 746PKG_CONFIG 747CHANGELOG_CMD 748CWARNFLAGS 749EGREP 750GREP 751CPP 752am__fastdepCC_FALSE 753am__fastdepCC_TRUE 754CCDEPMODE 755AMDEPBACKSLASH 756AMDEP_FALSE 757AMDEP_TRUE 758am__quote 759am__include 760DEPDIR 761OBJEXT 762EXEEXT 763ac_ct_CC 764CPPFLAGS 765LDFLAGS 766CFLAGS 767CC 768MAINT 769MAINTAINER_MODE_FALSE 770MAINTAINER_MODE_TRUE 771am__untar 772am__tar 773AMTAR 774am__leading_dot 775SET_MAKE 776AWK 777mkdir_p 778MKDIR_P 779INSTALL_STRIP_PROGRAM 780STRIP 781install_sh 782MAKEINFO 783AUTOHEADER 784AUTOMAKE 785AUTOCONF 786ACLOCAL 787VERSION 788PACKAGE 789CYGPATH_W 790am__isrc 791INSTALL_DATA 792INSTALL_SCRIPT 793INSTALL_PROGRAM 794target_alias 795host_alias 796build_alias 797LIBS 798ECHO_T 799ECHO_N 800ECHO_C 801DEFS 802mandir 803localedir 804libdir 805psdir 806pdfdir 807dvidir 808htmldir 809infodir 810docdir 811oldincludedir 812includedir 813localstatedir 814sharedstatedir 815sysconfdir 816datadir 817datarootdir 818libexecdir 819sbindir 820bindir 821program_transform_name 822prefix 823exec_prefix 824PACKAGE_URL 825PACKAGE_BUGREPORT 826PACKAGE_STRING 827PACKAGE_VERSION 828PACKAGE_TARNAME 829PACKAGE_NAME 830PATH_SEPARATOR 831SHELL' 832ac_subst_files='' 833ac_user_opts=' 834enable_option_checking 835enable_maintainer_mode 836enable_dependency_tracking 837enable_strict_compilation 838enable_silent_rules 839enable_specs 840with_xmlto 841with_fop 842enable_shared 843enable_static 844with_pic 845enable_fast_install 846with_gnu_ld 847enable_libtool_lock 848with_lint 849enable_lint_library 850' 851 ac_precious_vars='build_alias 852host_alias 853target_alias 854CC 855CFLAGS 856LDFLAGS 857LIBS 858CPPFLAGS 859CPP 860PKG_CONFIG 861XMLTO 862FOP 863XTST_CFLAGS 864XTST_LIBS 865LINT 866LINT_FLAGS' 867 868 869# Initialize some variables set by options. 870ac_init_help= 871ac_init_version=false 872ac_unrecognized_opts= 873ac_unrecognized_sep= 874# The variables have the same names as the options, with 875# dashes changed to underlines. 876cache_file=/dev/null 877exec_prefix=NONE 878no_create= 879no_recursion= 880prefix=NONE 881program_prefix=NONE 882program_suffix=NONE 883program_transform_name=s,x,x, 884silent= 885site= 886srcdir= 887verbose= 888x_includes=NONE 889x_libraries=NONE 890 891# Installation directory options. 892# These are left unexpanded so users can "make install exec_prefix=/foo" 893# and all the variables that are supposed to be based on exec_prefix 894# by default will actually change. 895# Use braces instead of parens because sh, perl, etc. also accept them. 896# (The list follows the same order as the GNU Coding Standards.) 897bindir='${exec_prefix}/bin' 898sbindir='${exec_prefix}/sbin' 899libexecdir='${exec_prefix}/libexec' 900datarootdir='${prefix}/share' 901datadir='${datarootdir}' 902sysconfdir='${prefix}/etc' 903sharedstatedir='${prefix}/com' 904localstatedir='${prefix}/var' 905includedir='${prefix}/include' 906oldincludedir='/usr/include' 907docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 908infodir='${datarootdir}/info' 909htmldir='${docdir}' 910dvidir='${docdir}' 911pdfdir='${docdir}' 912psdir='${docdir}' 913libdir='${exec_prefix}/lib' 914localedir='${datarootdir}/locale' 915mandir='${datarootdir}/man' 916 917ac_prev= 918ac_dashdash= 919for ac_option 920do 921 # If the previous option needs an argument, assign it. 922 if test -n "$ac_prev"; then 923 eval $ac_prev=\$ac_option 924 ac_prev= 925 continue 926 fi 927 928 case $ac_option in 929 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 930 *=) ac_optarg= ;; 931 *) ac_optarg=yes ;; 932 esac 933 934 # Accept the important Cygnus configure options, so we can diagnose typos. 935 936 case $ac_dashdash$ac_option in 937 --) 938 ac_dashdash=yes ;; 939 940 -bindir | --bindir | --bindi | --bind | --bin | --bi) 941 ac_prev=bindir ;; 942 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 943 bindir=$ac_optarg ;; 944 945 -build | --build | --buil | --bui | --bu) 946 ac_prev=build_alias ;; 947 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 948 build_alias=$ac_optarg ;; 949 950 -cache-file | --cache-file | --cache-fil | --cache-fi \ 951 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 952 ac_prev=cache_file ;; 953 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 954 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 955 cache_file=$ac_optarg ;; 956 957 --config-cache | -C) 958 cache_file=config.cache ;; 959 960 -datadir | --datadir | --datadi | --datad) 961 ac_prev=datadir ;; 962 -datadir=* | --datadir=* | --datadi=* | --datad=*) 963 datadir=$ac_optarg ;; 964 965 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 966 | --dataroo | --dataro | --datar) 967 ac_prev=datarootdir ;; 968 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 969 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 970 datarootdir=$ac_optarg ;; 971 972 -disable-* | --disable-*) 973 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 974 # Reject names that are not valid shell variable names. 975 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 976 as_fn_error $? "invalid feature name: $ac_useropt" 977 ac_useropt_orig=$ac_useropt 978 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 979 case $ac_user_opts in 980 *" 981"enable_$ac_useropt" 982"*) ;; 983 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 984 ac_unrecognized_sep=', ';; 985 esac 986 eval enable_$ac_useropt=no ;; 987 988 -docdir | --docdir | --docdi | --doc | --do) 989 ac_prev=docdir ;; 990 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 991 docdir=$ac_optarg ;; 992 993 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 994 ac_prev=dvidir ;; 995 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 996 dvidir=$ac_optarg ;; 997 998 -enable-* | --enable-*) 999 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1000 # Reject names that are not valid shell variable names. 1001 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1002 as_fn_error $? "invalid feature name: $ac_useropt" 1003 ac_useropt_orig=$ac_useropt 1004 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1005 case $ac_user_opts in 1006 *" 1007"enable_$ac_useropt" 1008"*) ;; 1009 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1010 ac_unrecognized_sep=', ';; 1011 esac 1012 eval enable_$ac_useropt=\$ac_optarg ;; 1013 1014 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1015 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1016 | --exec | --exe | --ex) 1017 ac_prev=exec_prefix ;; 1018 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1019 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1020 | --exec=* | --exe=* | --ex=*) 1021 exec_prefix=$ac_optarg ;; 1022 1023 -gas | --gas | --ga | --g) 1024 # Obsolete; use --with-gas. 1025 with_gas=yes ;; 1026 1027 -help | --help | --hel | --he | -h) 1028 ac_init_help=long ;; 1029 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1030 ac_init_help=recursive ;; 1031 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1032 ac_init_help=short ;; 1033 1034 -host | --host | --hos | --ho) 1035 ac_prev=host_alias ;; 1036 -host=* | --host=* | --hos=* | --ho=*) 1037 host_alias=$ac_optarg ;; 1038 1039 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1040 ac_prev=htmldir ;; 1041 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1042 | --ht=*) 1043 htmldir=$ac_optarg ;; 1044 1045 -includedir | --includedir | --includedi | --included | --include \ 1046 | --includ | --inclu | --incl | --inc) 1047 ac_prev=includedir ;; 1048 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1049 | --includ=* | --inclu=* | --incl=* | --inc=*) 1050 includedir=$ac_optarg ;; 1051 1052 -infodir | --infodir | --infodi | --infod | --info | --inf) 1053 ac_prev=infodir ;; 1054 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1055 infodir=$ac_optarg ;; 1056 1057 -libdir | --libdir | --libdi | --libd) 1058 ac_prev=libdir ;; 1059 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1060 libdir=$ac_optarg ;; 1061 1062 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1063 | --libexe | --libex | --libe) 1064 ac_prev=libexecdir ;; 1065 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1066 | --libexe=* | --libex=* | --libe=*) 1067 libexecdir=$ac_optarg ;; 1068 1069 -localedir | --localedir | --localedi | --localed | --locale) 1070 ac_prev=localedir ;; 1071 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1072 localedir=$ac_optarg ;; 1073 1074 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1075 | --localstate | --localstat | --localsta | --localst | --locals) 1076 ac_prev=localstatedir ;; 1077 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1078 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1079 localstatedir=$ac_optarg ;; 1080 1081 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1082 ac_prev=mandir ;; 1083 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1084 mandir=$ac_optarg ;; 1085 1086 -nfp | --nfp | --nf) 1087 # Obsolete; use --without-fp. 1088 with_fp=no ;; 1089 1090 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1091 | --no-cr | --no-c | -n) 1092 no_create=yes ;; 1093 1094 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1095 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1096 no_recursion=yes ;; 1097 1098 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1099 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1100 | --oldin | --oldi | --old | --ol | --o) 1101 ac_prev=oldincludedir ;; 1102 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1103 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1104 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1105 oldincludedir=$ac_optarg ;; 1106 1107 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1108 ac_prev=prefix ;; 1109 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1110 prefix=$ac_optarg ;; 1111 1112 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1113 | --program-pre | --program-pr | --program-p) 1114 ac_prev=program_prefix ;; 1115 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1116 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1117 program_prefix=$ac_optarg ;; 1118 1119 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1120 | --program-suf | --program-su | --program-s) 1121 ac_prev=program_suffix ;; 1122 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1123 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1124 program_suffix=$ac_optarg ;; 1125 1126 -program-transform-name | --program-transform-name \ 1127 | --program-transform-nam | --program-transform-na \ 1128 | --program-transform-n | --program-transform- \ 1129 | --program-transform | --program-transfor \ 1130 | --program-transfo | --program-transf \ 1131 | --program-trans | --program-tran \ 1132 | --progr-tra | --program-tr | --program-t) 1133 ac_prev=program_transform_name ;; 1134 -program-transform-name=* | --program-transform-name=* \ 1135 | --program-transform-nam=* | --program-transform-na=* \ 1136 | --program-transform-n=* | --program-transform-=* \ 1137 | --program-transform=* | --program-transfor=* \ 1138 | --program-transfo=* | --program-transf=* \ 1139 | --program-trans=* | --program-tran=* \ 1140 | --progr-tra=* | --program-tr=* | --program-t=*) 1141 program_transform_name=$ac_optarg ;; 1142 1143 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1144 ac_prev=pdfdir ;; 1145 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1146 pdfdir=$ac_optarg ;; 1147 1148 -psdir | --psdir | --psdi | --psd | --ps) 1149 ac_prev=psdir ;; 1150 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1151 psdir=$ac_optarg ;; 1152 1153 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1154 | -silent | --silent | --silen | --sile | --sil) 1155 silent=yes ;; 1156 1157 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1158 ac_prev=sbindir ;; 1159 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1160 | --sbi=* | --sb=*) 1161 sbindir=$ac_optarg ;; 1162 1163 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1164 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1165 | --sharedst | --shareds | --shared | --share | --shar \ 1166 | --sha | --sh) 1167 ac_prev=sharedstatedir ;; 1168 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1169 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1170 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1171 | --sha=* | --sh=*) 1172 sharedstatedir=$ac_optarg ;; 1173 1174 -site | --site | --sit) 1175 ac_prev=site ;; 1176 -site=* | --site=* | --sit=*) 1177 site=$ac_optarg ;; 1178 1179 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1180 ac_prev=srcdir ;; 1181 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1182 srcdir=$ac_optarg ;; 1183 1184 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1185 | --syscon | --sysco | --sysc | --sys | --sy) 1186 ac_prev=sysconfdir ;; 1187 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1188 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1189 sysconfdir=$ac_optarg ;; 1190 1191 -target | --target | --targe | --targ | --tar | --ta | --t) 1192 ac_prev=target_alias ;; 1193 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1194 target_alias=$ac_optarg ;; 1195 1196 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1197 verbose=yes ;; 1198 1199 -version | --version | --versio | --versi | --vers | -V) 1200 ac_init_version=: ;; 1201 1202 -with-* | --with-*) 1203 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1204 # Reject names that are not valid shell variable names. 1205 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1206 as_fn_error $? "invalid package name: $ac_useropt" 1207 ac_useropt_orig=$ac_useropt 1208 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1209 case $ac_user_opts in 1210 *" 1211"with_$ac_useropt" 1212"*) ;; 1213 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1214 ac_unrecognized_sep=', ';; 1215 esac 1216 eval with_$ac_useropt=\$ac_optarg ;; 1217 1218 -without-* | --without-*) 1219 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1220 # Reject names that are not valid shell variable names. 1221 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1222 as_fn_error $? "invalid package name: $ac_useropt" 1223 ac_useropt_orig=$ac_useropt 1224 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1225 case $ac_user_opts in 1226 *" 1227"with_$ac_useropt" 1228"*) ;; 1229 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1230 ac_unrecognized_sep=', ';; 1231 esac 1232 eval with_$ac_useropt=no ;; 1233 1234 --x) 1235 # Obsolete; use --with-x. 1236 with_x=yes ;; 1237 1238 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1239 | --x-incl | --x-inc | --x-in | --x-i) 1240 ac_prev=x_includes ;; 1241 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1242 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1243 x_includes=$ac_optarg ;; 1244 1245 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1246 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1247 ac_prev=x_libraries ;; 1248 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1249 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1250 x_libraries=$ac_optarg ;; 1251 1252 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1253Try \`$0 --help' for more information" 1254 ;; 1255 1256 *=*) 1257 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1258 # Reject names that are not valid shell variable names. 1259 case $ac_envvar in #( 1260 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1261 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1262 esac 1263 eval $ac_envvar=\$ac_optarg 1264 export $ac_envvar ;; 1265 1266 *) 1267 # FIXME: should be removed in autoconf 3.0. 1268 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1269 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1270 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1271 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1272 ;; 1273 1274 esac 1275done 1276 1277if test -n "$ac_prev"; then 1278 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1279 as_fn_error $? "missing argument to $ac_option" 1280fi 1281 1282if test -n "$ac_unrecognized_opts"; then 1283 case $enable_option_checking in 1284 no) ;; 1285 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1286 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1287 esac 1288fi 1289 1290# Check all directory arguments for consistency. 1291for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1292 datadir sysconfdir sharedstatedir localstatedir includedir \ 1293 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1294 libdir localedir mandir 1295do 1296 eval ac_val=\$$ac_var 1297 # Remove trailing slashes. 1298 case $ac_val in 1299 */ ) 1300 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1301 eval $ac_var=\$ac_val;; 1302 esac 1303 # Be sure to have absolute directory names. 1304 case $ac_val in 1305 [\\/$]* | ?:[\\/]* ) continue;; 1306 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1307 esac 1308 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1309done 1310 1311# There might be people who depend on the old broken behavior: `$host' 1312# used to hold the argument of --host etc. 1313# FIXME: To remove some day. 1314build=$build_alias 1315host=$host_alias 1316target=$target_alias 1317 1318# FIXME: To remove some day. 1319if test "x$host_alias" != x; then 1320 if test "x$build_alias" = x; then 1321 cross_compiling=maybe 1322 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1323 If a cross compiler is detected then cross compile mode will be used" >&2 1324 elif test "x$build_alias" != "x$host_alias"; then 1325 cross_compiling=yes 1326 fi 1327fi 1328 1329ac_tool_prefix= 1330test -n "$host_alias" && ac_tool_prefix=$host_alias- 1331 1332test "$silent" = yes && exec 6>/dev/null 1333 1334 1335ac_pwd=`pwd` && test -n "$ac_pwd" && 1336ac_ls_di=`ls -di .` && 1337ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1338 as_fn_error $? "working directory cannot be determined" 1339test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1340 as_fn_error $? "pwd does not report name of working directory" 1341 1342 1343# Find the source files, if location was not specified. 1344if test -z "$srcdir"; then 1345 ac_srcdir_defaulted=yes 1346 # Try the directory containing this script, then the parent directory. 1347 ac_confdir=`$as_dirname -- "$as_myself" || 1348$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1349 X"$as_myself" : 'X\(//\)[^/]' \| \ 1350 X"$as_myself" : 'X\(//\)$' \| \ 1351 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1352$as_echo X"$as_myself" | 1353 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1354 s//\1/ 1355 q 1356 } 1357 /^X\(\/\/\)[^/].*/{ 1358 s//\1/ 1359 q 1360 } 1361 /^X\(\/\/\)$/{ 1362 s//\1/ 1363 q 1364 } 1365 /^X\(\/\).*/{ 1366 s//\1/ 1367 q 1368 } 1369 s/.*/./; q'` 1370 srcdir=$ac_confdir 1371 if test ! -r "$srcdir/$ac_unique_file"; then 1372 srcdir=.. 1373 fi 1374else 1375 ac_srcdir_defaulted=no 1376fi 1377if test ! -r "$srcdir/$ac_unique_file"; then 1378 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1379 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1380fi 1381ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1382ac_abs_confdir=`( 1383 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1384 pwd)` 1385# When building in place, set srcdir=. 1386if test "$ac_abs_confdir" = "$ac_pwd"; then 1387 srcdir=. 1388fi 1389# Remove unnecessary trailing slashes from srcdir. 1390# Double slashes in file names in object file debugging info 1391# mess up M-x gdb in Emacs. 1392case $srcdir in 1393*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1394esac 1395for ac_var in $ac_precious_vars; do 1396 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1397 eval ac_env_${ac_var}_value=\$${ac_var} 1398 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1399 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1400done 1401 1402# 1403# Report the --help message. 1404# 1405if test "$ac_init_help" = "long"; then 1406 # Omit some internal or obsolete options to make the list less imposing. 1407 # This message is too long to be a string in the A/UX 3.1 sh. 1408 cat <<_ACEOF 1409\`configure' configures libXtst 1.2.0 to adapt to many kinds of systems. 1410 1411Usage: $0 [OPTION]... [VAR=VALUE]... 1412 1413To assign environment variables (e.g., CC, CFLAGS...), specify them as 1414VAR=VALUE. See below for descriptions of some of the useful variables. 1415 1416Defaults for the options are specified in brackets. 1417 1418Configuration: 1419 -h, --help display this help and exit 1420 --help=short display options specific to this package 1421 --help=recursive display the short help of all the included packages 1422 -V, --version display version information and exit 1423 -q, --quiet, --silent do not print \`checking ...' messages 1424 --cache-file=FILE cache test results in FILE [disabled] 1425 -C, --config-cache alias for \`--cache-file=config.cache' 1426 -n, --no-create do not create output files 1427 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1428 1429Installation directories: 1430 --prefix=PREFIX install architecture-independent files in PREFIX 1431 [$ac_default_prefix] 1432 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1433 [PREFIX] 1434 1435By default, \`make install' will install all the files in 1436\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1437an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1438for instance \`--prefix=\$HOME'. 1439 1440For better control, use the options below. 1441 1442Fine tuning of the installation directories: 1443 --bindir=DIR user executables [EPREFIX/bin] 1444 --sbindir=DIR system admin executables [EPREFIX/sbin] 1445 --libexecdir=DIR program executables [EPREFIX/libexec] 1446 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1447 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1448 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1449 --libdir=DIR object code libraries [EPREFIX/lib] 1450 --includedir=DIR C header files [PREFIX/include] 1451 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1452 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1453 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1454 --infodir=DIR info documentation [DATAROOTDIR/info] 1455 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1456 --mandir=DIR man documentation [DATAROOTDIR/man] 1457 --docdir=DIR documentation root [DATAROOTDIR/doc/libXtst] 1458 --htmldir=DIR html documentation [DOCDIR] 1459 --dvidir=DIR dvi documentation [DOCDIR] 1460 --pdfdir=DIR pdf documentation [DOCDIR] 1461 --psdir=DIR ps documentation [DOCDIR] 1462_ACEOF 1463 1464 cat <<\_ACEOF 1465 1466Program names: 1467 --program-prefix=PREFIX prepend PREFIX to installed program names 1468 --program-suffix=SUFFIX append SUFFIX to installed program names 1469 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1470 1471System types: 1472 --build=BUILD configure for building on BUILD [guessed] 1473 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1474_ACEOF 1475fi 1476 1477if test -n "$ac_init_help"; then 1478 case $ac_init_help in 1479 short | recursive ) echo "Configuration of libXtst 1.2.0:";; 1480 esac 1481 cat <<\_ACEOF 1482 1483Optional Features: 1484 --disable-option-checking ignore unrecognized --enable/--with options 1485 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1486 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1487 --enable-maintainer-mode enable make rules and dependencies not useful 1488 (and sometimes confusing) to the casual installer 1489 --disable-dependency-tracking speeds up one-time build 1490 --enable-dependency-tracking do not reject slow dependency extractors 1491 --enable-strict-compilation 1492 Enable all warnings from compiler and make them 1493 errors (default: disabled) 1494 --enable-silent-rules less verbose build output (undo: `make V=1') 1495 --disable-silent-rules verbose build output (undo: `make V=0') 1496 --enable-specs Enable building the specs (default: yes) 1497 --enable-shared[=PKGS] build shared libraries [default=yes] 1498 --enable-static[=PKGS] build static libraries [default=yes] 1499 --enable-fast-install[=PKGS] 1500 optimize for fast installation [default=yes] 1501 --disable-libtool-lock avoid locking (might break parallel builds) 1502 --enable-lint-library Create lint library (default: disabled) 1503 1504Optional Packages: 1505 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1506 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1507 --with-xmlto Use xmlto to regenerate documentation (default: 1508 auto) 1509 --with-fop Use fop to regenerate documentation (default: auto) 1510 --with-pic try to use only PIC/non-PIC objects [default=use 1511 both] 1512 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1513 --with-lint Use a lint-style source code checker (default: 1514 disabled) 1515 1516Some influential environment variables: 1517 CC C compiler command 1518 CFLAGS C compiler flags 1519 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1520 nonstandard directory <lib dir> 1521 LIBS libraries to pass to the linker, e.g. -l<library> 1522 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1523 you have headers in a nonstandard directory <include dir> 1524 CPP C preprocessor 1525 PKG_CONFIG path to pkg-config utility 1526 XMLTO Path to xmlto command 1527 FOP Path to fop command 1528 XTST_CFLAGS C compiler flags for XTST, overriding pkg-config 1529 XTST_LIBS linker flags for XTST, overriding pkg-config 1530 LINT Path to a lint-style command 1531 LINT_FLAGS Flags for the lint-style command 1532 1533Use these variables to override the choices made by `configure' or to help 1534it to find libraries and programs with nonstandard names/locations. 1535 1536Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1537_ACEOF 1538ac_status=$? 1539fi 1540 1541if test "$ac_init_help" = "recursive"; then 1542 # If there are subdirs, report their specific --help. 1543 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1544 test -d "$ac_dir" || 1545 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1546 continue 1547 ac_builddir=. 1548 1549case "$ac_dir" in 1550.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1551*) 1552 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1553 # A ".." for each directory in $ac_dir_suffix. 1554 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1555 case $ac_top_builddir_sub in 1556 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1557 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1558 esac ;; 1559esac 1560ac_abs_top_builddir=$ac_pwd 1561ac_abs_builddir=$ac_pwd$ac_dir_suffix 1562# for backward compatibility: 1563ac_top_builddir=$ac_top_build_prefix 1564 1565case $srcdir in 1566 .) # We are building in place. 1567 ac_srcdir=. 1568 ac_top_srcdir=$ac_top_builddir_sub 1569 ac_abs_top_srcdir=$ac_pwd ;; 1570 [\\/]* | ?:[\\/]* ) # Absolute name. 1571 ac_srcdir=$srcdir$ac_dir_suffix; 1572 ac_top_srcdir=$srcdir 1573 ac_abs_top_srcdir=$srcdir ;; 1574 *) # Relative name. 1575 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1576 ac_top_srcdir=$ac_top_build_prefix$srcdir 1577 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1578esac 1579ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1580 1581 cd "$ac_dir" || { ac_status=$?; continue; } 1582 # Check for guested configure. 1583 if test -f "$ac_srcdir/configure.gnu"; then 1584 echo && 1585 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1586 elif test -f "$ac_srcdir/configure"; then 1587 echo && 1588 $SHELL "$ac_srcdir/configure" --help=recursive 1589 else 1590 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1591 fi || ac_status=$? 1592 cd "$ac_pwd" || { ac_status=$?; break; } 1593 done 1594fi 1595 1596test -n "$ac_init_help" && exit $ac_status 1597if $ac_init_version; then 1598 cat <<\_ACEOF 1599libXtst configure 1.2.0 1600generated by GNU Autoconf 2.68 1601 1602Copyright (C) 2010 Free Software Foundation, Inc. 1603This configure script is free software; the Free Software Foundation 1604gives unlimited permission to copy, distribute and modify it. 1605_ACEOF 1606 exit 1607fi 1608 1609## ------------------------ ## 1610## Autoconf initialization. ## 1611## ------------------------ ## 1612 1613# ac_fn_c_try_compile LINENO 1614# -------------------------- 1615# Try to compile conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_compile () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext 1620 if { { ac_try="$ac_compile" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_compile") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest.$ac_objext; then : 1639 ac_retval=0 1640else 1641 $as_echo "$as_me: failed program was:" >&5 1642sed 's/^/| /' conftest.$ac_ext >&5 1643 1644 ac_retval=1 1645fi 1646 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1647 as_fn_set_status $ac_retval 1648 1649} # ac_fn_c_try_compile 1650 1651# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1652# --------------------------------------------- 1653# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1654# accordingly. 1655ac_fn_c_check_decl () 1656{ 1657 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1658 as_decl_name=`echo $2|sed 's/ *(.*//'` 1659 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1661$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1662if eval \${$3+:} false; then : 1663 $as_echo_n "(cached) " >&6 1664else 1665 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1666/* end confdefs.h. */ 1667$4 1668int 1669main () 1670{ 1671#ifndef $as_decl_name 1672#ifdef __cplusplus 1673 (void) $as_decl_use; 1674#else 1675 (void) $as_decl_name; 1676#endif 1677#endif 1678 1679 ; 1680 return 0; 1681} 1682_ACEOF 1683if ac_fn_c_try_compile "$LINENO"; then : 1684 eval "$3=yes" 1685else 1686 eval "$3=no" 1687fi 1688rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1689fi 1690eval ac_res=\$$3 1691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1692$as_echo "$ac_res" >&6; } 1693 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1694 1695} # ac_fn_c_check_decl 1696 1697# ac_fn_c_try_cpp LINENO 1698# ---------------------- 1699# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1700ac_fn_c_try_cpp () 1701{ 1702 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1703 if { { ac_try="$ac_cpp conftest.$ac_ext" 1704case "(($ac_try" in 1705 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1706 *) ac_try_echo=$ac_try;; 1707esac 1708eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1709$as_echo "$ac_try_echo"; } >&5 1710 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1711 ac_status=$? 1712 if test -s conftest.err; then 1713 grep -v '^ *+' conftest.err >conftest.er1 1714 cat conftest.er1 >&5 1715 mv -f conftest.er1 conftest.err 1716 fi 1717 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1718 test $ac_status = 0; } > conftest.i && { 1719 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1720 test ! -s conftest.err 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1730 as_fn_set_status $ac_retval 1731 1732} # ac_fn_c_try_cpp 1733 1734# ac_fn_c_try_run LINENO 1735# ---------------------- 1736# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1737# that executables *can* be run. 1738ac_fn_c_try_run () 1739{ 1740 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1741 if { { ac_try="$ac_link" 1742case "(($ac_try" in 1743 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1744 *) ac_try_echo=$ac_try;; 1745esac 1746eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1747$as_echo "$ac_try_echo"; } >&5 1748 (eval "$ac_link") 2>&5 1749 ac_status=$? 1750 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1751 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1752 { { case "(($ac_try" in 1753 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1754 *) ac_try_echo=$ac_try;; 1755esac 1756eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1757$as_echo "$ac_try_echo"; } >&5 1758 (eval "$ac_try") 2>&5 1759 ac_status=$? 1760 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1761 test $ac_status = 0; }; }; then : 1762 ac_retval=0 1763else 1764 $as_echo "$as_me: program exited with status $ac_status" >&5 1765 $as_echo "$as_me: failed program was:" >&5 1766sed 's/^/| /' conftest.$ac_ext >&5 1767 1768 ac_retval=$ac_status 1769fi 1770 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1771 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1772 as_fn_set_status $ac_retval 1773 1774} # ac_fn_c_try_run 1775 1776# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1777# ------------------------------------------------------- 1778# Tests whether HEADER exists and can be compiled using the include files in 1779# INCLUDES, setting the cache variable VAR accordingly. 1780ac_fn_c_check_header_compile () 1781{ 1782 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1784$as_echo_n "checking for $2... " >&6; } 1785if eval \${$3+:} false; then : 1786 $as_echo_n "(cached) " >&6 1787else 1788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1789/* end confdefs.h. */ 1790$4 1791#include <$2> 1792_ACEOF 1793if ac_fn_c_try_compile "$LINENO"; then : 1794 eval "$3=yes" 1795else 1796 eval "$3=no" 1797fi 1798rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1799fi 1800eval ac_res=\$$3 1801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1802$as_echo "$ac_res" >&6; } 1803 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1804 1805} # ac_fn_c_check_header_compile 1806 1807# ac_fn_c_try_link LINENO 1808# ----------------------- 1809# Try to link conftest.$ac_ext, and return whether this succeeded. 1810ac_fn_c_try_link () 1811{ 1812 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1813 rm -f conftest.$ac_objext conftest$ac_exeext 1814 if { { ac_try="$ac_link" 1815case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818esac 1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820$as_echo "$ac_try_echo"; } >&5 1821 (eval "$ac_link") 2>conftest.err 1822 ac_status=$? 1823 if test -s conftest.err; then 1824 grep -v '^ *+' conftest.err >conftest.er1 1825 cat conftest.er1 >&5 1826 mv -f conftest.er1 conftest.err 1827 fi 1828 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1829 test $ac_status = 0; } && { 1830 test -z "$ac_c_werror_flag" || 1831 test ! -s conftest.err 1832 } && test -s conftest$ac_exeext && { 1833 test "$cross_compiling" = yes || 1834 $as_test_x conftest$ac_exeext 1835 }; then : 1836 ac_retval=0 1837else 1838 $as_echo "$as_me: failed program was:" >&5 1839sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 ac_retval=1 1842fi 1843 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1844 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1845 # interfere with the next link command; also delete a directory that is 1846 # left behind by Apple's compiler. We do this before executing the actions. 1847 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1848 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1849 as_fn_set_status $ac_retval 1850 1851} # ac_fn_c_try_link 1852 1853# ac_fn_c_check_func LINENO FUNC VAR 1854# ---------------------------------- 1855# Tests whether FUNC exists, setting the cache variable VAR accordingly 1856ac_fn_c_check_func () 1857{ 1858 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1859 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1860$as_echo_n "checking for $2... " >&6; } 1861if eval \${$3+:} false; then : 1862 $as_echo_n "(cached) " >&6 1863else 1864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1865/* end confdefs.h. */ 1866/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1867 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1868#define $2 innocuous_$2 1869 1870/* System header to define __stub macros and hopefully few prototypes, 1871 which can conflict with char $2 (); below. 1872 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1873 <limits.h> exists even on freestanding compilers. */ 1874 1875#ifdef __STDC__ 1876# include <limits.h> 1877#else 1878# include <assert.h> 1879#endif 1880 1881#undef $2 1882 1883/* Override any GCC internal prototype to avoid an error. 1884 Use char because int might match the return type of a GCC 1885 builtin and then its argument prototype would still apply. */ 1886#ifdef __cplusplus 1887extern "C" 1888#endif 1889char $2 (); 1890/* The GNU C library defines this for functions which it implements 1891 to always fail with ENOSYS. Some functions are actually named 1892 something starting with __ and the normal name is an alias. */ 1893#if defined __stub_$2 || defined __stub___$2 1894choke me 1895#endif 1896 1897int 1898main () 1899{ 1900return $2 (); 1901 ; 1902 return 0; 1903} 1904_ACEOF 1905if ac_fn_c_try_link "$LINENO"; then : 1906 eval "$3=yes" 1907else 1908 eval "$3=no" 1909fi 1910rm -f core conftest.err conftest.$ac_objext \ 1911 conftest$ac_exeext conftest.$ac_ext 1912fi 1913eval ac_res=\$$3 1914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1915$as_echo "$ac_res" >&6; } 1916 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1917 1918} # ac_fn_c_check_func 1919cat >config.log <<_ACEOF 1920This file contains any messages produced by compilers while 1921running configure, to aid debugging if configure makes a mistake. 1922 1923It was created by libXtst $as_me 1.2.0, which was 1924generated by GNU Autoconf 2.68. Invocation command line was 1925 1926 $ $0 $@ 1927 1928_ACEOF 1929exec 5>>config.log 1930{ 1931cat <<_ASUNAME 1932## --------- ## 1933## Platform. ## 1934## --------- ## 1935 1936hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1937uname -m = `(uname -m) 2>/dev/null || echo unknown` 1938uname -r = `(uname -r) 2>/dev/null || echo unknown` 1939uname -s = `(uname -s) 2>/dev/null || echo unknown` 1940uname -v = `(uname -v) 2>/dev/null || echo unknown` 1941 1942/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1943/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1944 1945/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1946/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1947/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1948/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1949/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1950/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1951/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1952 1953_ASUNAME 1954 1955as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1956for as_dir in $PATH 1957do 1958 IFS=$as_save_IFS 1959 test -z "$as_dir" && as_dir=. 1960 $as_echo "PATH: $as_dir" 1961 done 1962IFS=$as_save_IFS 1963 1964} >&5 1965 1966cat >&5 <<_ACEOF 1967 1968 1969## ----------- ## 1970## Core tests. ## 1971## ----------- ## 1972 1973_ACEOF 1974 1975 1976# Keep a trace of the command line. 1977# Strip out --no-create and --no-recursion so they do not pile up. 1978# Strip out --silent because we don't want to record it for future runs. 1979# Also quote any args containing shell meta-characters. 1980# Make two passes to allow for proper duplicate-argument suppression. 1981ac_configure_args= 1982ac_configure_args0= 1983ac_configure_args1= 1984ac_must_keep_next=false 1985for ac_pass in 1 2 1986do 1987 for ac_arg 1988 do 1989 case $ac_arg in 1990 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1991 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1992 | -silent | --silent | --silen | --sile | --sil) 1993 continue ;; 1994 *\'*) 1995 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1996 esac 1997 case $ac_pass in 1998 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1999 2) 2000 as_fn_append ac_configure_args1 " '$ac_arg'" 2001 if test $ac_must_keep_next = true; then 2002 ac_must_keep_next=false # Got value, back to normal. 2003 else 2004 case $ac_arg in 2005 *=* | --config-cache | -C | -disable-* | --disable-* \ 2006 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2007 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2008 | -with-* | --with-* | -without-* | --without-* | --x) 2009 case "$ac_configure_args0 " in 2010 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2011 esac 2012 ;; 2013 -* ) ac_must_keep_next=true ;; 2014 esac 2015 fi 2016 as_fn_append ac_configure_args " '$ac_arg'" 2017 ;; 2018 esac 2019 done 2020done 2021{ ac_configure_args0=; unset ac_configure_args0;} 2022{ ac_configure_args1=; unset ac_configure_args1;} 2023 2024# When interrupted or exit'd, cleanup temporary files, and complete 2025# config.log. We remove comments because anyway the quotes in there 2026# would cause problems or look ugly. 2027# WARNING: Use '\'' to represent an apostrophe within the trap. 2028# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2029trap 'exit_status=$? 2030 # Save into config.log some information that might help in debugging. 2031 { 2032 echo 2033 2034 $as_echo "## ---------------- ## 2035## Cache variables. ## 2036## ---------------- ##" 2037 echo 2038 # The following way of writing the cache mishandles newlines in values, 2039( 2040 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2041 eval ac_val=\$$ac_var 2042 case $ac_val in #( 2043 *${as_nl}*) 2044 case $ac_var in #( 2045 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2046$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2047 esac 2048 case $ac_var in #( 2049 _ | IFS | as_nl) ;; #( 2050 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2051 *) { eval $ac_var=; unset $ac_var;} ;; 2052 esac ;; 2053 esac 2054 done 2055 (set) 2>&1 | 2056 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2057 *${as_nl}ac_space=\ *) 2058 sed -n \ 2059 "s/'\''/'\''\\\\'\'''\''/g; 2060 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2061 ;; #( 2062 *) 2063 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2064 ;; 2065 esac | 2066 sort 2067) 2068 echo 2069 2070 $as_echo "## ----------------- ## 2071## Output variables. ## 2072## ----------------- ##" 2073 echo 2074 for ac_var in $ac_subst_vars 2075 do 2076 eval ac_val=\$$ac_var 2077 case $ac_val in 2078 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2079 esac 2080 $as_echo "$ac_var='\''$ac_val'\''" 2081 done | sort 2082 echo 2083 2084 if test -n "$ac_subst_files"; then 2085 $as_echo "## ------------------- ## 2086## File substitutions. ## 2087## ------------------- ##" 2088 echo 2089 for ac_var in $ac_subst_files 2090 do 2091 eval ac_val=\$$ac_var 2092 case $ac_val in 2093 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2094 esac 2095 $as_echo "$ac_var='\''$ac_val'\''" 2096 done | sort 2097 echo 2098 fi 2099 2100 if test -s confdefs.h; then 2101 $as_echo "## ----------- ## 2102## confdefs.h. ## 2103## ----------- ##" 2104 echo 2105 cat confdefs.h 2106 echo 2107 fi 2108 test "$ac_signal" != 0 && 2109 $as_echo "$as_me: caught signal $ac_signal" 2110 $as_echo "$as_me: exit $exit_status" 2111 } >&5 2112 rm -f core *.core core.conftest.* && 2113 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2114 exit $exit_status 2115' 0 2116for ac_signal in 1 2 13 15; do 2117 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2118done 2119ac_signal=0 2120 2121# confdefs.h avoids OS command line length limits that DEFS can exceed. 2122rm -f -r conftest* confdefs.h 2123 2124$as_echo "/* confdefs.h */" > confdefs.h 2125 2126# Predefined preprocessor variables. 2127 2128cat >>confdefs.h <<_ACEOF 2129#define PACKAGE_NAME "$PACKAGE_NAME" 2130_ACEOF 2131 2132cat >>confdefs.h <<_ACEOF 2133#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2134_ACEOF 2135 2136cat >>confdefs.h <<_ACEOF 2137#define PACKAGE_VERSION "$PACKAGE_VERSION" 2138_ACEOF 2139 2140cat >>confdefs.h <<_ACEOF 2141#define PACKAGE_STRING "$PACKAGE_STRING" 2142_ACEOF 2143 2144cat >>confdefs.h <<_ACEOF 2145#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2146_ACEOF 2147 2148cat >>confdefs.h <<_ACEOF 2149#define PACKAGE_URL "$PACKAGE_URL" 2150_ACEOF 2151 2152 2153# Let the site file select an alternate cache file if it wants to. 2154# Prefer an explicitly selected file to automatically selected ones. 2155ac_site_file1=NONE 2156ac_site_file2=NONE 2157if test -n "$CONFIG_SITE"; then 2158 # We do not want a PATH search for config.site. 2159 case $CONFIG_SITE in #(( 2160 -*) ac_site_file1=./$CONFIG_SITE;; 2161 */*) ac_site_file1=$CONFIG_SITE;; 2162 *) ac_site_file1=./$CONFIG_SITE;; 2163 esac 2164elif test "x$prefix" != xNONE; then 2165 ac_site_file1=$prefix/share/config.site 2166 ac_site_file2=$prefix/etc/config.site 2167else 2168 ac_site_file1=$ac_default_prefix/share/config.site 2169 ac_site_file2=$ac_default_prefix/etc/config.site 2170fi 2171for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2172do 2173 test "x$ac_site_file" = xNONE && continue 2174 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2175 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2176$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2177 sed 's/^/| /' "$ac_site_file" >&5 2178 . "$ac_site_file" \ 2179 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2181as_fn_error $? "failed to load site script $ac_site_file 2182See \`config.log' for more details" "$LINENO" 5; } 2183 fi 2184done 2185 2186if test -r "$cache_file"; then 2187 # Some versions of bash will fail to source /dev/null (special files 2188 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2189 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2190 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2191$as_echo "$as_me: loading cache $cache_file" >&6;} 2192 case $cache_file in 2193 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2194 *) . "./$cache_file";; 2195 esac 2196 fi 2197else 2198 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2199$as_echo "$as_me: creating cache $cache_file" >&6;} 2200 >$cache_file 2201fi 2202 2203# Check that the precious variables saved in the cache have kept the same 2204# value. 2205ac_cache_corrupted=false 2206for ac_var in $ac_precious_vars; do 2207 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2208 eval ac_new_set=\$ac_env_${ac_var}_set 2209 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2210 eval ac_new_val=\$ac_env_${ac_var}_value 2211 case $ac_old_set,$ac_new_set in 2212 set,) 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2214$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2215 ac_cache_corrupted=: ;; 2216 ,set) 2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2218$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2219 ac_cache_corrupted=: ;; 2220 ,);; 2221 *) 2222 if test "x$ac_old_val" != "x$ac_new_val"; then 2223 # differences in whitespace do not lead to failure. 2224 ac_old_val_w=`echo x $ac_old_val` 2225 ac_new_val_w=`echo x $ac_new_val` 2226 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2228$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2229 ac_cache_corrupted=: 2230 else 2231 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2232$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2233 eval $ac_var=\$ac_old_val 2234 fi 2235 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2236$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2237 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2238$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2239 fi;; 2240 esac 2241 # Pass precious variables to config.status. 2242 if test "$ac_new_set" = set; then 2243 case $ac_new_val in 2244 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2245 *) ac_arg=$ac_var=$ac_new_val ;; 2246 esac 2247 case " $ac_configure_args " in 2248 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2249 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2250 esac 2251 fi 2252done 2253if $ac_cache_corrupted; then 2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2255$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2256 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2257$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2258 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2259fi 2260## -------------------- ## 2261## Main body of script. ## 2262## -------------------- ## 2263 2264ac_ext=c 2265ac_cpp='$CPP $CPPFLAGS' 2266ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2267ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2268ac_compiler_gnu=$ac_cv_c_compiler_gnu 2269 2270 2271am__api_version='1.11' 2272 2273ac_aux_dir= 2274for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2275 if test -f "$ac_dir/install-sh"; then 2276 ac_aux_dir=$ac_dir 2277 ac_install_sh="$ac_aux_dir/install-sh -c" 2278 break 2279 elif test -f "$ac_dir/install.sh"; then 2280 ac_aux_dir=$ac_dir 2281 ac_install_sh="$ac_aux_dir/install.sh -c" 2282 break 2283 elif test -f "$ac_dir/shtool"; then 2284 ac_aux_dir=$ac_dir 2285 ac_install_sh="$ac_aux_dir/shtool install -c" 2286 break 2287 fi 2288done 2289if test -z "$ac_aux_dir"; then 2290 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2291fi 2292 2293# These three variables are undocumented and unsupported, 2294# and are intended to be withdrawn in a future Autoconf release. 2295# They can cause serious problems if a builder's source tree is in a directory 2296# whose full name contains unusual characters. 2297ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2298ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2299ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2300 2301 2302# Find a good install program. We prefer a C program (faster), 2303# so one script is as good as another. But avoid the broken or 2304# incompatible versions: 2305# SysV /etc/install, /usr/sbin/install 2306# SunOS /usr/etc/install 2307# IRIX /sbin/install 2308# AIX /bin/install 2309# AmigaOS /C/install, which installs bootblocks on floppy discs 2310# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2311# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2312# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2313# OS/2's system install, which has a completely different semantic 2314# ./install, which can be erroneously created by make from ./install.sh. 2315# Reject install programs that cannot install multiple files. 2316{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2317$as_echo_n "checking for a BSD-compatible install... " >&6; } 2318if test -z "$INSTALL"; then 2319if ${ac_cv_path_install+:} false; then : 2320 $as_echo_n "(cached) " >&6 2321else 2322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2323for as_dir in $PATH 2324do 2325 IFS=$as_save_IFS 2326 test -z "$as_dir" && as_dir=. 2327 # Account for people who put trailing slashes in PATH elements. 2328case $as_dir/ in #(( 2329 ./ | .// | /[cC]/* | \ 2330 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2331 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2332 /usr/ucb/* ) ;; 2333 *) 2334 # OSF1 and SCO ODT 3.0 have their own names for install. 2335 # Don't use installbsd from OSF since it installs stuff as root 2336 # by default. 2337 for ac_prog in ginstall scoinst install; do 2338 for ac_exec_ext in '' $ac_executable_extensions; do 2339 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2340 if test $ac_prog = install && 2341 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2342 # AIX install. It has an incompatible calling convention. 2343 : 2344 elif test $ac_prog = install && 2345 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2346 # program-specific install script used by HP pwplus--don't use. 2347 : 2348 else 2349 rm -rf conftest.one conftest.two conftest.dir 2350 echo one > conftest.one 2351 echo two > conftest.two 2352 mkdir conftest.dir 2353 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2354 test -s conftest.one && test -s conftest.two && 2355 test -s conftest.dir/conftest.one && 2356 test -s conftest.dir/conftest.two 2357 then 2358 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2359 break 3 2360 fi 2361 fi 2362 fi 2363 done 2364 done 2365 ;; 2366esac 2367 2368 done 2369IFS=$as_save_IFS 2370 2371rm -rf conftest.one conftest.two conftest.dir 2372 2373fi 2374 if test "${ac_cv_path_install+set}" = set; then 2375 INSTALL=$ac_cv_path_install 2376 else 2377 # As a last resort, use the slow shell script. Don't cache a 2378 # value for INSTALL within a source directory, because that will 2379 # break other packages using the cache if that directory is 2380 # removed, or if the value is a relative name. 2381 INSTALL=$ac_install_sh 2382 fi 2383fi 2384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2385$as_echo "$INSTALL" >&6; } 2386 2387# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2388# It thinks the first close brace ends the variable substitution. 2389test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2390 2391test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2392 2393test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2394 2395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2396$as_echo_n "checking whether build environment is sane... " >&6; } 2397# Just in case 2398sleep 1 2399echo timestamp > conftest.file 2400# Reject unsafe characters in $srcdir or the absolute working directory 2401# name. Accept space and tab only in the latter. 2402am_lf=' 2403' 2404case `pwd` in 2405 *[\\\"\#\$\&\'\`$am_lf]*) 2406 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2407esac 2408case $srcdir in 2409 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2410 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2411esac 2412 2413# Do `set' in a subshell so we don't clobber the current shell's 2414# arguments. Must try -L first in case configure is actually a 2415# symlink; some systems play weird games with the mod time of symlinks 2416# (eg FreeBSD returns the mod time of the symlink's containing 2417# directory). 2418if ( 2419 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2420 if test "$*" = "X"; then 2421 # -L didn't work. 2422 set X `ls -t "$srcdir/configure" conftest.file` 2423 fi 2424 rm -f conftest.file 2425 if test "$*" != "X $srcdir/configure conftest.file" \ 2426 && test "$*" != "X conftest.file $srcdir/configure"; then 2427 2428 # If neither matched, then we have a broken ls. This can happen 2429 # if, for instance, CONFIG_SHELL is bash and it inherits a 2430 # broken ls alias from the environment. This has actually 2431 # happened. Such a system could not be considered "sane". 2432 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2433alias in your environment" "$LINENO" 5 2434 fi 2435 2436 test "$2" = conftest.file 2437 ) 2438then 2439 # Ok. 2440 : 2441else 2442 as_fn_error $? "newly created file is older than distributed files! 2443Check your system clock" "$LINENO" 5 2444fi 2445{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2446$as_echo "yes" >&6; } 2447test "$program_prefix" != NONE && 2448 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2449# Use a double $ so make ignores it. 2450test "$program_suffix" != NONE && 2451 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2452# Double any \ or $. 2453# By default was `s,x,x', remove it if useless. 2454ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2455program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2456 2457# expand $ac_aux_dir to an absolute path 2458am_aux_dir=`cd $ac_aux_dir && pwd` 2459 2460if test x"${MISSING+set}" != xset; then 2461 case $am_aux_dir in 2462 *\ * | *\ *) 2463 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2464 *) 2465 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2466 esac 2467fi 2468# Use eval to expand $SHELL 2469if eval "$MISSING --run true"; then 2470 am_missing_run="$MISSING --run " 2471else 2472 am_missing_run= 2473 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2474$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2475fi 2476 2477if test x"${install_sh}" != xset; then 2478 case $am_aux_dir in 2479 *\ * | *\ *) 2480 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2481 *) 2482 install_sh="\${SHELL} $am_aux_dir/install-sh" 2483 esac 2484fi 2485 2486# Installed binaries are usually stripped using `strip' when the user 2487# run `make install-strip'. However `strip' might not be the right 2488# tool to use in cross-compilation environments, therefore Automake 2489# will honor the `STRIP' environment variable to overrule this program. 2490if test "$cross_compiling" != no; then 2491 if test -n "$ac_tool_prefix"; then 2492 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2493set dummy ${ac_tool_prefix}strip; ac_word=$2 2494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2495$as_echo_n "checking for $ac_word... " >&6; } 2496if ${ac_cv_prog_STRIP+:} false; then : 2497 $as_echo_n "(cached) " >&6 2498else 2499 if test -n "$STRIP"; then 2500 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2501else 2502as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2503for as_dir in $PATH 2504do 2505 IFS=$as_save_IFS 2506 test -z "$as_dir" && as_dir=. 2507 for ac_exec_ext in '' $ac_executable_extensions; do 2508 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2509 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2510 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2511 break 2 2512 fi 2513done 2514 done 2515IFS=$as_save_IFS 2516 2517fi 2518fi 2519STRIP=$ac_cv_prog_STRIP 2520if test -n "$STRIP"; then 2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2522$as_echo "$STRIP" >&6; } 2523else 2524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2525$as_echo "no" >&6; } 2526fi 2527 2528 2529fi 2530if test -z "$ac_cv_prog_STRIP"; then 2531 ac_ct_STRIP=$STRIP 2532 # Extract the first word of "strip", so it can be a program name with args. 2533set dummy strip; ac_word=$2 2534{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2535$as_echo_n "checking for $ac_word... " >&6; } 2536if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2537 $as_echo_n "(cached) " >&6 2538else 2539 if test -n "$ac_ct_STRIP"; then 2540 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2541else 2542as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2543for as_dir in $PATH 2544do 2545 IFS=$as_save_IFS 2546 test -z "$as_dir" && as_dir=. 2547 for ac_exec_ext in '' $ac_executable_extensions; do 2548 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2549 ac_cv_prog_ac_ct_STRIP="strip" 2550 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2551 break 2 2552 fi 2553done 2554 done 2555IFS=$as_save_IFS 2556 2557fi 2558fi 2559ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2560if test -n "$ac_ct_STRIP"; then 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2562$as_echo "$ac_ct_STRIP" >&6; } 2563else 2564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2565$as_echo "no" >&6; } 2566fi 2567 2568 if test "x$ac_ct_STRIP" = x; then 2569 STRIP=":" 2570 else 2571 case $cross_compiling:$ac_tool_warned in 2572yes:) 2573{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2574$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2575ac_tool_warned=yes ;; 2576esac 2577 STRIP=$ac_ct_STRIP 2578 fi 2579else 2580 STRIP="$ac_cv_prog_STRIP" 2581fi 2582 2583fi 2584INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2585 2586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2587$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2588if test -z "$MKDIR_P"; then 2589 if ${ac_cv_path_mkdir+:} false; then : 2590 $as_echo_n "(cached) " >&6 2591else 2592 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2593for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2594do 2595 IFS=$as_save_IFS 2596 test -z "$as_dir" && as_dir=. 2597 for ac_prog in mkdir gmkdir; do 2598 for ac_exec_ext in '' $ac_executable_extensions; do 2599 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2600 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2601 'mkdir (GNU coreutils) '* | \ 2602 'mkdir (coreutils) '* | \ 2603 'mkdir (fileutils) '4.1*) 2604 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2605 break 3;; 2606 esac 2607 done 2608 done 2609 done 2610IFS=$as_save_IFS 2611 2612fi 2613 2614 test -d ./--version && rmdir ./--version 2615 if test "${ac_cv_path_mkdir+set}" = set; then 2616 MKDIR_P="$ac_cv_path_mkdir -p" 2617 else 2618 # As a last resort, use the slow shell script. Don't cache a 2619 # value for MKDIR_P within a source directory, because that will 2620 # break other packages using the cache if that directory is 2621 # removed, or if the value is a relative name. 2622 MKDIR_P="$ac_install_sh -d" 2623 fi 2624fi 2625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2626$as_echo "$MKDIR_P" >&6; } 2627 2628mkdir_p="$MKDIR_P" 2629case $mkdir_p in 2630 [\\/$]* | ?:[\\/]*) ;; 2631 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2632esac 2633 2634for ac_prog in gawk mawk nawk awk 2635do 2636 # Extract the first word of "$ac_prog", so it can be a program name with args. 2637set dummy $ac_prog; ac_word=$2 2638{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2639$as_echo_n "checking for $ac_word... " >&6; } 2640if ${ac_cv_prog_AWK+:} false; then : 2641 $as_echo_n "(cached) " >&6 2642else 2643 if test -n "$AWK"; then 2644 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2645else 2646as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2647for as_dir in $PATH 2648do 2649 IFS=$as_save_IFS 2650 test -z "$as_dir" && as_dir=. 2651 for ac_exec_ext in '' $ac_executable_extensions; do 2652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2653 ac_cv_prog_AWK="$ac_prog" 2654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2655 break 2 2656 fi 2657done 2658 done 2659IFS=$as_save_IFS 2660 2661fi 2662fi 2663AWK=$ac_cv_prog_AWK 2664if test -n "$AWK"; then 2665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2666$as_echo "$AWK" >&6; } 2667else 2668 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2669$as_echo "no" >&6; } 2670fi 2671 2672 2673 test -n "$AWK" && break 2674done 2675 2676{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2677$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2678set x ${MAKE-make} 2679ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2680if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2681 $as_echo_n "(cached) " >&6 2682else 2683 cat >conftest.make <<\_ACEOF 2684SHELL = /bin/sh 2685all: 2686 @echo '@@@%%%=$(MAKE)=@@@%%%' 2687_ACEOF 2688# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2689case `${MAKE-make} -f conftest.make 2>/dev/null` in 2690 *@@@%%%=?*=@@@%%%*) 2691 eval ac_cv_prog_make_${ac_make}_set=yes;; 2692 *) 2693 eval ac_cv_prog_make_${ac_make}_set=no;; 2694esac 2695rm -f conftest.make 2696fi 2697if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2699$as_echo "yes" >&6; } 2700 SET_MAKE= 2701else 2702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2703$as_echo "no" >&6; } 2704 SET_MAKE="MAKE=${MAKE-make}" 2705fi 2706 2707rm -rf .tst 2>/dev/null 2708mkdir .tst 2>/dev/null 2709if test -d .tst; then 2710 am__leading_dot=. 2711else 2712 am__leading_dot=_ 2713fi 2714rmdir .tst 2>/dev/null 2715 2716if test "`cd $srcdir && pwd`" != "`pwd`"; then 2717 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2718 # is not polluted with repeated "-I." 2719 am__isrc=' -I$(srcdir)' 2720 # test to see if srcdir already configured 2721 if test -f $srcdir/config.status; then 2722 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2723 fi 2724fi 2725 2726# test whether we have cygpath 2727if test -z "$CYGPATH_W"; then 2728 if (cygpath --version) >/dev/null 2>/dev/null; then 2729 CYGPATH_W='cygpath -w' 2730 else 2731 CYGPATH_W=echo 2732 fi 2733fi 2734 2735 2736# Define the identity of the package. 2737 PACKAGE='libXtst' 2738 VERSION='1.2.0' 2739 2740 2741cat >>confdefs.h <<_ACEOF 2742#define PACKAGE "$PACKAGE" 2743_ACEOF 2744 2745 2746cat >>confdefs.h <<_ACEOF 2747#define VERSION "$VERSION" 2748_ACEOF 2749 2750# Some tools Automake needs. 2751 2752ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2753 2754 2755AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2756 2757 2758AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2759 2760 2761AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2762 2763 2764MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2765 2766# We need awk for the "check" target. The system "awk" is bad on 2767# some platforms. 2768# Always define AMTAR for backward compatibility. 2769 2770AMTAR=${AMTAR-"${am_missing_run}tar"} 2771 2772am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2773 2774 2775 2776 2777 2778 2779{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2780$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2781 # Check whether --enable-maintainer-mode was given. 2782if test "${enable_maintainer_mode+set}" = set; then : 2783 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2784else 2785 USE_MAINTAINER_MODE=no 2786fi 2787 2788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2789$as_echo "$USE_MAINTAINER_MODE" >&6; } 2790 if test $USE_MAINTAINER_MODE = yes; then 2791 MAINTAINER_MODE_TRUE= 2792 MAINTAINER_MODE_FALSE='#' 2793else 2794 MAINTAINER_MODE_TRUE='#' 2795 MAINTAINER_MODE_FALSE= 2796fi 2797 2798 MAINT=$MAINTAINER_MODE_TRUE 2799 2800 2801 2802# Require xorg-macros minimum of 1.10 for DocBook XML documentation 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814DEPDIR="${am__leading_dot}deps" 2815 2816ac_config_commands="$ac_config_commands depfiles" 2817 2818 2819am_make=${MAKE-make} 2820cat > confinc << 'END' 2821am__doit: 2822 @echo this is the am__doit target 2823.PHONY: am__doit 2824END 2825# If we don't find an include directive, just comment out the code. 2826{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2827$as_echo_n "checking for style of include used by $am_make... " >&6; } 2828am__include="#" 2829am__quote= 2830_am_result=none 2831# First try GNU make style include. 2832echo "include confinc" > confmf 2833# Ignore all kinds of additional output from `make'. 2834case `$am_make -s -f confmf 2> /dev/null` in #( 2835*the\ am__doit\ target*) 2836 am__include=include 2837 am__quote= 2838 _am_result=GNU 2839 ;; 2840esac 2841# Now try BSD make style include. 2842if test "$am__include" = "#"; then 2843 echo '.include "confinc"' > confmf 2844 case `$am_make -s -f confmf 2> /dev/null` in #( 2845 *the\ am__doit\ target*) 2846 am__include=.include 2847 am__quote="\"" 2848 _am_result=BSD 2849 ;; 2850 esac 2851fi 2852 2853 2854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2855$as_echo "$_am_result" >&6; } 2856rm -f confinc confmf 2857 2858# Check whether --enable-dependency-tracking was given. 2859if test "${enable_dependency_tracking+set}" = set; then : 2860 enableval=$enable_dependency_tracking; 2861fi 2862 2863if test "x$enable_dependency_tracking" != xno; then 2864 am_depcomp="$ac_aux_dir/depcomp" 2865 AMDEPBACKSLASH='\' 2866fi 2867 if test "x$enable_dependency_tracking" != xno; then 2868 AMDEP_TRUE= 2869 AMDEP_FALSE='#' 2870else 2871 AMDEP_TRUE='#' 2872 AMDEP_FALSE= 2873fi 2874 2875 2876ac_ext=c 2877ac_cpp='$CPP $CPPFLAGS' 2878ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2879ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2880ac_compiler_gnu=$ac_cv_c_compiler_gnu 2881if test -n "$ac_tool_prefix"; then 2882 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2883set dummy ${ac_tool_prefix}gcc; ac_word=$2 2884{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2885$as_echo_n "checking for $ac_word... " >&6; } 2886if ${ac_cv_prog_CC+:} false; then : 2887 $as_echo_n "(cached) " >&6 2888else 2889 if test -n "$CC"; then 2890 ac_cv_prog_CC="$CC" # Let the user override the test. 2891else 2892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2893for as_dir in $PATH 2894do 2895 IFS=$as_save_IFS 2896 test -z "$as_dir" && as_dir=. 2897 for ac_exec_ext in '' $ac_executable_extensions; do 2898 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2899 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2900 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2901 break 2 2902 fi 2903done 2904 done 2905IFS=$as_save_IFS 2906 2907fi 2908fi 2909CC=$ac_cv_prog_CC 2910if test -n "$CC"; then 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2912$as_echo "$CC" >&6; } 2913else 2914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2915$as_echo "no" >&6; } 2916fi 2917 2918 2919fi 2920if test -z "$ac_cv_prog_CC"; then 2921 ac_ct_CC=$CC 2922 # Extract the first word of "gcc", so it can be a program name with args. 2923set dummy gcc; ac_word=$2 2924{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2925$as_echo_n "checking for $ac_word... " >&6; } 2926if ${ac_cv_prog_ac_ct_CC+:} false; then : 2927 $as_echo_n "(cached) " >&6 2928else 2929 if test -n "$ac_ct_CC"; then 2930 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2931else 2932as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2933for as_dir in $PATH 2934do 2935 IFS=$as_save_IFS 2936 test -z "$as_dir" && as_dir=. 2937 for ac_exec_ext in '' $ac_executable_extensions; do 2938 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2939 ac_cv_prog_ac_ct_CC="gcc" 2940 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2941 break 2 2942 fi 2943done 2944 done 2945IFS=$as_save_IFS 2946 2947fi 2948fi 2949ac_ct_CC=$ac_cv_prog_ac_ct_CC 2950if test -n "$ac_ct_CC"; then 2951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2952$as_echo "$ac_ct_CC" >&6; } 2953else 2954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2955$as_echo "no" >&6; } 2956fi 2957 2958 if test "x$ac_ct_CC" = x; then 2959 CC="" 2960 else 2961 case $cross_compiling:$ac_tool_warned in 2962yes:) 2963{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2964$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2965ac_tool_warned=yes ;; 2966esac 2967 CC=$ac_ct_CC 2968 fi 2969else 2970 CC="$ac_cv_prog_CC" 2971fi 2972 2973if test -z "$CC"; then 2974 if test -n "$ac_tool_prefix"; then 2975 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2976set dummy ${ac_tool_prefix}cc; ac_word=$2 2977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2978$as_echo_n "checking for $ac_word... " >&6; } 2979if ${ac_cv_prog_CC+:} false; then : 2980 $as_echo_n "(cached) " >&6 2981else 2982 if test -n "$CC"; then 2983 ac_cv_prog_CC="$CC" # Let the user override the test. 2984else 2985as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2986for as_dir in $PATH 2987do 2988 IFS=$as_save_IFS 2989 test -z "$as_dir" && as_dir=. 2990 for ac_exec_ext in '' $ac_executable_extensions; do 2991 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2992 ac_cv_prog_CC="${ac_tool_prefix}cc" 2993 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2994 break 2 2995 fi 2996done 2997 done 2998IFS=$as_save_IFS 2999 3000fi 3001fi 3002CC=$ac_cv_prog_CC 3003if test -n "$CC"; then 3004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3005$as_echo "$CC" >&6; } 3006else 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3008$as_echo "no" >&6; } 3009fi 3010 3011 3012 fi 3013fi 3014if test -z "$CC"; then 3015 # Extract the first word of "cc", so it can be a program name with args. 3016set dummy cc; ac_word=$2 3017{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3018$as_echo_n "checking for $ac_word... " >&6; } 3019if ${ac_cv_prog_CC+:} false; then : 3020 $as_echo_n "(cached) " >&6 3021else 3022 if test -n "$CC"; then 3023 ac_cv_prog_CC="$CC" # Let the user override the test. 3024else 3025 ac_prog_rejected=no 3026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3027for as_dir in $PATH 3028do 3029 IFS=$as_save_IFS 3030 test -z "$as_dir" && as_dir=. 3031 for ac_exec_ext in '' $ac_executable_extensions; do 3032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3033 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3034 ac_prog_rejected=yes 3035 continue 3036 fi 3037 ac_cv_prog_CC="cc" 3038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3039 break 2 3040 fi 3041done 3042 done 3043IFS=$as_save_IFS 3044 3045if test $ac_prog_rejected = yes; then 3046 # We found a bogon in the path, so make sure we never use it. 3047 set dummy $ac_cv_prog_CC 3048 shift 3049 if test $# != 0; then 3050 # We chose a different compiler from the bogus one. 3051 # However, it has the same basename, so the bogon will be chosen 3052 # first if we set CC to just the basename; use the full file name. 3053 shift 3054 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3055 fi 3056fi 3057fi 3058fi 3059CC=$ac_cv_prog_CC 3060if test -n "$CC"; then 3061 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3062$as_echo "$CC" >&6; } 3063else 3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3065$as_echo "no" >&6; } 3066fi 3067 3068 3069fi 3070if test -z "$CC"; then 3071 if test -n "$ac_tool_prefix"; then 3072 for ac_prog in cl.exe 3073 do 3074 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3075set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3077$as_echo_n "checking for $ac_word... " >&6; } 3078if ${ac_cv_prog_CC+:} false; then : 3079 $as_echo_n "(cached) " >&6 3080else 3081 if test -n "$CC"; then 3082 ac_cv_prog_CC="$CC" # Let the user override the test. 3083else 3084as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3085for as_dir in $PATH 3086do 3087 IFS=$as_save_IFS 3088 test -z "$as_dir" && as_dir=. 3089 for ac_exec_ext in '' $ac_executable_extensions; do 3090 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3091 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3093 break 2 3094 fi 3095done 3096 done 3097IFS=$as_save_IFS 3098 3099fi 3100fi 3101CC=$ac_cv_prog_CC 3102if test -n "$CC"; then 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3104$as_echo "$CC" >&6; } 3105else 3106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3107$as_echo "no" >&6; } 3108fi 3109 3110 3111 test -n "$CC" && break 3112 done 3113fi 3114if test -z "$CC"; then 3115 ac_ct_CC=$CC 3116 for ac_prog in cl.exe 3117do 3118 # Extract the first word of "$ac_prog", so it can be a program name with args. 3119set dummy $ac_prog; ac_word=$2 3120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3121$as_echo_n "checking for $ac_word... " >&6; } 3122if ${ac_cv_prog_ac_ct_CC+:} false; then : 3123 $as_echo_n "(cached) " >&6 3124else 3125 if test -n "$ac_ct_CC"; then 3126 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3127else 3128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3129for as_dir in $PATH 3130do 3131 IFS=$as_save_IFS 3132 test -z "$as_dir" && as_dir=. 3133 for ac_exec_ext in '' $ac_executable_extensions; do 3134 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3135 ac_cv_prog_ac_ct_CC="$ac_prog" 3136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3137 break 2 3138 fi 3139done 3140 done 3141IFS=$as_save_IFS 3142 3143fi 3144fi 3145ac_ct_CC=$ac_cv_prog_ac_ct_CC 3146if test -n "$ac_ct_CC"; then 3147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3148$as_echo "$ac_ct_CC" >&6; } 3149else 3150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3151$as_echo "no" >&6; } 3152fi 3153 3154 3155 test -n "$ac_ct_CC" && break 3156done 3157 3158 if test "x$ac_ct_CC" = x; then 3159 CC="" 3160 else 3161 case $cross_compiling:$ac_tool_warned in 3162yes:) 3163{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3164$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3165ac_tool_warned=yes ;; 3166esac 3167 CC=$ac_ct_CC 3168 fi 3169fi 3170 3171fi 3172 3173 3174test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3175$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3176as_fn_error $? "no acceptable C compiler found in \$PATH 3177See \`config.log' for more details" "$LINENO" 5; } 3178 3179# Provide some information about the compiler. 3180$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3181set X $ac_compile 3182ac_compiler=$2 3183for ac_option in --version -v -V -qversion; do 3184 { { ac_try="$ac_compiler $ac_option >&5" 3185case "(($ac_try" in 3186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3187 *) ac_try_echo=$ac_try;; 3188esac 3189eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3190$as_echo "$ac_try_echo"; } >&5 3191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3192 ac_status=$? 3193 if test -s conftest.err; then 3194 sed '10a\ 3195... rest of stderr output deleted ... 3196 10q' conftest.err >conftest.er1 3197 cat conftest.er1 >&5 3198 fi 3199 rm -f conftest.er1 conftest.err 3200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3201 test $ac_status = 0; } 3202done 3203 3204cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3205/* end confdefs.h. */ 3206 3207int 3208main () 3209{ 3210 3211 ; 3212 return 0; 3213} 3214_ACEOF 3215ac_clean_files_save=$ac_clean_files 3216ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3217# Try to create an executable without -o first, disregard a.out. 3218# It will help us diagnose broken compilers, and finding out an intuition 3219# of exeext. 3220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3221$as_echo_n "checking whether the C compiler works... " >&6; } 3222ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3223 3224# The possible output files: 3225ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3226 3227ac_rmfiles= 3228for ac_file in $ac_files 3229do 3230 case $ac_file in 3231 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3232 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3233 esac 3234done 3235rm -f $ac_rmfiles 3236 3237if { { ac_try="$ac_link_default" 3238case "(($ac_try" in 3239 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3240 *) ac_try_echo=$ac_try;; 3241esac 3242eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3243$as_echo "$ac_try_echo"; } >&5 3244 (eval "$ac_link_default") 2>&5 3245 ac_status=$? 3246 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3247 test $ac_status = 0; }; then : 3248 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3249# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3250# in a Makefile. We should not override ac_cv_exeext if it was cached, 3251# so that the user can short-circuit this test for compilers unknown to 3252# Autoconf. 3253for ac_file in $ac_files '' 3254do 3255 test -f "$ac_file" || continue 3256 case $ac_file in 3257 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3258 ;; 3259 [ab].out ) 3260 # We found the default executable, but exeext='' is most 3261 # certainly right. 3262 break;; 3263 *.* ) 3264 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3265 then :; else 3266 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3267 fi 3268 # We set ac_cv_exeext here because the later test for it is not 3269 # safe: cross compilers may not add the suffix if given an `-o' 3270 # argument, so we may need to know it at that point already. 3271 # Even if this section looks crufty: it has the advantage of 3272 # actually working. 3273 break;; 3274 * ) 3275 break;; 3276 esac 3277done 3278test "$ac_cv_exeext" = no && ac_cv_exeext= 3279 3280else 3281 ac_file='' 3282fi 3283if test -z "$ac_file"; then : 3284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3285$as_echo "no" >&6; } 3286$as_echo "$as_me: failed program was:" >&5 3287sed 's/^/| /' conftest.$ac_ext >&5 3288 3289{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3290$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3291as_fn_error 77 "C compiler cannot create executables 3292See \`config.log' for more details" "$LINENO" 5; } 3293else 3294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3295$as_echo "yes" >&6; } 3296fi 3297{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3298$as_echo_n "checking for C compiler default output file name... " >&6; } 3299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3300$as_echo "$ac_file" >&6; } 3301ac_exeext=$ac_cv_exeext 3302 3303rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3304ac_clean_files=$ac_clean_files_save 3305{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3306$as_echo_n "checking for suffix of executables... " >&6; } 3307if { { ac_try="$ac_link" 3308case "(($ac_try" in 3309 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3310 *) ac_try_echo=$ac_try;; 3311esac 3312eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3313$as_echo "$ac_try_echo"; } >&5 3314 (eval "$ac_link") 2>&5 3315 ac_status=$? 3316 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3317 test $ac_status = 0; }; then : 3318 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3319# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3320# work properly (i.e., refer to `conftest.exe'), while it won't with 3321# `rm'. 3322for ac_file in conftest.exe conftest conftest.*; do 3323 test -f "$ac_file" || continue 3324 case $ac_file in 3325 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3326 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3327 break;; 3328 * ) break;; 3329 esac 3330done 3331else 3332 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3333$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3334as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3335See \`config.log' for more details" "$LINENO" 5; } 3336fi 3337rm -f conftest conftest$ac_cv_exeext 3338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3339$as_echo "$ac_cv_exeext" >&6; } 3340 3341rm -f conftest.$ac_ext 3342EXEEXT=$ac_cv_exeext 3343ac_exeext=$EXEEXT 3344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3345/* end confdefs.h. */ 3346#include <stdio.h> 3347int 3348main () 3349{ 3350FILE *f = fopen ("conftest.out", "w"); 3351 return ferror (f) || fclose (f) != 0; 3352 3353 ; 3354 return 0; 3355} 3356_ACEOF 3357ac_clean_files="$ac_clean_files conftest.out" 3358# Check that the compiler produces executables we can run. If not, either 3359# the compiler is broken, or we cross compile. 3360{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3361$as_echo_n "checking whether we are cross compiling... " >&6; } 3362if test "$cross_compiling" != yes; then 3363 { { ac_try="$ac_link" 3364case "(($ac_try" in 3365 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3366 *) ac_try_echo=$ac_try;; 3367esac 3368eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3369$as_echo "$ac_try_echo"; } >&5 3370 (eval "$ac_link") 2>&5 3371 ac_status=$? 3372 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3373 test $ac_status = 0; } 3374 if { ac_try='./conftest$ac_cv_exeext' 3375 { { case "(($ac_try" in 3376 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3377 *) ac_try_echo=$ac_try;; 3378esac 3379eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3380$as_echo "$ac_try_echo"; } >&5 3381 (eval "$ac_try") 2>&5 3382 ac_status=$? 3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3384 test $ac_status = 0; }; }; then 3385 cross_compiling=no 3386 else 3387 if test "$cross_compiling" = maybe; then 3388 cross_compiling=yes 3389 else 3390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3391$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3392as_fn_error $? "cannot run C compiled programs. 3393If you meant to cross compile, use \`--host'. 3394See \`config.log' for more details" "$LINENO" 5; } 3395 fi 3396 fi 3397fi 3398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3399$as_echo "$cross_compiling" >&6; } 3400 3401rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3402ac_clean_files=$ac_clean_files_save 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3404$as_echo_n "checking for suffix of object files... " >&6; } 3405if ${ac_cv_objext+:} false; then : 3406 $as_echo_n "(cached) " >&6 3407else 3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3409/* end confdefs.h. */ 3410 3411int 3412main () 3413{ 3414 3415 ; 3416 return 0; 3417} 3418_ACEOF 3419rm -f conftest.o conftest.obj 3420if { { ac_try="$ac_compile" 3421case "(($ac_try" in 3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3423 *) ac_try_echo=$ac_try;; 3424esac 3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3426$as_echo "$ac_try_echo"; } >&5 3427 (eval "$ac_compile") 2>&5 3428 ac_status=$? 3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3430 test $ac_status = 0; }; then : 3431 for ac_file in conftest.o conftest.obj conftest.*; do 3432 test -f "$ac_file" || continue; 3433 case $ac_file in 3434 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3435 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3436 break;; 3437 esac 3438done 3439else 3440 $as_echo "$as_me: failed program was:" >&5 3441sed 's/^/| /' conftest.$ac_ext >&5 3442 3443{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3444$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3445as_fn_error $? "cannot compute suffix of object files: cannot compile 3446See \`config.log' for more details" "$LINENO" 5; } 3447fi 3448rm -f conftest.$ac_cv_objext conftest.$ac_ext 3449fi 3450{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3451$as_echo "$ac_cv_objext" >&6; } 3452OBJEXT=$ac_cv_objext 3453ac_objext=$OBJEXT 3454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3455$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3456if ${ac_cv_c_compiler_gnu+:} false; then : 3457 $as_echo_n "(cached) " >&6 3458else 3459 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3460/* end confdefs.h. */ 3461 3462int 3463main () 3464{ 3465#ifndef __GNUC__ 3466 choke me 3467#endif 3468 3469 ; 3470 return 0; 3471} 3472_ACEOF 3473if ac_fn_c_try_compile "$LINENO"; then : 3474 ac_compiler_gnu=yes 3475else 3476 ac_compiler_gnu=no 3477fi 3478rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3479ac_cv_c_compiler_gnu=$ac_compiler_gnu 3480 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3483$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3484if test $ac_compiler_gnu = yes; then 3485 GCC=yes 3486else 3487 GCC= 3488fi 3489ac_test_CFLAGS=${CFLAGS+set} 3490ac_save_CFLAGS=$CFLAGS 3491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3492$as_echo_n "checking whether $CC accepts -g... " >&6; } 3493if ${ac_cv_prog_cc_g+:} false; then : 3494 $as_echo_n "(cached) " >&6 3495else 3496 ac_save_c_werror_flag=$ac_c_werror_flag 3497 ac_c_werror_flag=yes 3498 ac_cv_prog_cc_g=no 3499 CFLAGS="-g" 3500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3501/* end confdefs.h. */ 3502 3503int 3504main () 3505{ 3506 3507 ; 3508 return 0; 3509} 3510_ACEOF 3511if ac_fn_c_try_compile "$LINENO"; then : 3512 ac_cv_prog_cc_g=yes 3513else 3514 CFLAGS="" 3515 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3516/* end confdefs.h. */ 3517 3518int 3519main () 3520{ 3521 3522 ; 3523 return 0; 3524} 3525_ACEOF 3526if ac_fn_c_try_compile "$LINENO"; then : 3527 3528else 3529 ac_c_werror_flag=$ac_save_c_werror_flag 3530 CFLAGS="-g" 3531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3532/* end confdefs.h. */ 3533 3534int 3535main () 3536{ 3537 3538 ; 3539 return 0; 3540} 3541_ACEOF 3542if ac_fn_c_try_compile "$LINENO"; then : 3543 ac_cv_prog_cc_g=yes 3544fi 3545rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3546fi 3547rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3548fi 3549rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3550 ac_c_werror_flag=$ac_save_c_werror_flag 3551fi 3552{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3553$as_echo "$ac_cv_prog_cc_g" >&6; } 3554if test "$ac_test_CFLAGS" = set; then 3555 CFLAGS=$ac_save_CFLAGS 3556elif test $ac_cv_prog_cc_g = yes; then 3557 if test "$GCC" = yes; then 3558 CFLAGS="-g -O2" 3559 else 3560 CFLAGS="-g" 3561 fi 3562else 3563 if test "$GCC" = yes; then 3564 CFLAGS="-O2" 3565 else 3566 CFLAGS= 3567 fi 3568fi 3569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3570$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3571if ${ac_cv_prog_cc_c89+:} false; then : 3572 $as_echo_n "(cached) " >&6 3573else 3574 ac_cv_prog_cc_c89=no 3575ac_save_CC=$CC 3576cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3577/* end confdefs.h. */ 3578#include <stdarg.h> 3579#include <stdio.h> 3580#include <sys/types.h> 3581#include <sys/stat.h> 3582/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3583struct buf { int x; }; 3584FILE * (*rcsopen) (struct buf *, struct stat *, int); 3585static char *e (p, i) 3586 char **p; 3587 int i; 3588{ 3589 return p[i]; 3590} 3591static char *f (char * (*g) (char **, int), char **p, ...) 3592{ 3593 char *s; 3594 va_list v; 3595 va_start (v,p); 3596 s = g (p, va_arg (v,int)); 3597 va_end (v); 3598 return s; 3599} 3600 3601/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3602 function prototypes and stuff, but not '\xHH' hex character constants. 3603 These don't provoke an error unfortunately, instead are silently treated 3604 as 'x'. The following induces an error, until -std is added to get 3605 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3606 array size at least. It's necessary to write '\x00'==0 to get something 3607 that's true only with -std. */ 3608int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3609 3610/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3611 inside strings and character constants. */ 3612#define FOO(x) 'x' 3613int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3614 3615int test (int i, double x); 3616struct s1 {int (*f) (int a);}; 3617struct s2 {int (*f) (double a);}; 3618int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3619int argc; 3620char **argv; 3621int 3622main () 3623{ 3624return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3625 ; 3626 return 0; 3627} 3628_ACEOF 3629for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3630 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3631do 3632 CC="$ac_save_CC $ac_arg" 3633 if ac_fn_c_try_compile "$LINENO"; then : 3634 ac_cv_prog_cc_c89=$ac_arg 3635fi 3636rm -f core conftest.err conftest.$ac_objext 3637 test "x$ac_cv_prog_cc_c89" != "xno" && break 3638done 3639rm -f conftest.$ac_ext 3640CC=$ac_save_CC 3641 3642fi 3643# AC_CACHE_VAL 3644case "x$ac_cv_prog_cc_c89" in 3645 x) 3646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3647$as_echo "none needed" >&6; } ;; 3648 xno) 3649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3650$as_echo "unsupported" >&6; } ;; 3651 *) 3652 CC="$CC $ac_cv_prog_cc_c89" 3653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3654$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3655esac 3656if test "x$ac_cv_prog_cc_c89" != xno; then : 3657 3658fi 3659 3660ac_ext=c 3661ac_cpp='$CPP $CPPFLAGS' 3662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3664ac_compiler_gnu=$ac_cv_c_compiler_gnu 3665 3666depcc="$CC" am_compiler_list= 3667 3668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3669$as_echo_n "checking dependency style of $depcc... " >&6; } 3670if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3671 $as_echo_n "(cached) " >&6 3672else 3673 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3674 # We make a subdir and do the tests there. Otherwise we can end up 3675 # making bogus files that we don't know about and never remove. For 3676 # instance it was reported that on HP-UX the gcc test will end up 3677 # making a dummy file named `D' -- because `-MD' means `put the output 3678 # in D'. 3679 mkdir conftest.dir 3680 # Copy depcomp to subdir because otherwise we won't find it if we're 3681 # using a relative directory. 3682 cp "$am_depcomp" conftest.dir 3683 cd conftest.dir 3684 # We will build objects and dependencies in a subdirectory because 3685 # it helps to detect inapplicable dependency modes. For instance 3686 # both Tru64's cc and ICC support -MD to output dependencies as a 3687 # side effect of compilation, but ICC will put the dependencies in 3688 # the current directory while Tru64 will put them in the object 3689 # directory. 3690 mkdir sub 3691 3692 am_cv_CC_dependencies_compiler_type=none 3693 if test "$am_compiler_list" = ""; then 3694 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3695 fi 3696 am__universal=false 3697 case " $depcc " in #( 3698 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3699 esac 3700 3701 for depmode in $am_compiler_list; do 3702 # Setup a source with many dependencies, because some compilers 3703 # like to wrap large dependency lists on column 80 (with \), and 3704 # we should not choose a depcomp mode which is confused by this. 3705 # 3706 # We need to recreate these files for each test, as the compiler may 3707 # overwrite some of them when testing with obscure command lines. 3708 # This happens at least with the AIX C compiler. 3709 : > sub/conftest.c 3710 for i in 1 2 3 4 5 6; do 3711 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3712 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3713 # Solaris 8's {/usr,}/bin/sh. 3714 touch sub/conftst$i.h 3715 done 3716 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3717 3718 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3719 # mode. It turns out that the SunPro C++ compiler does not properly 3720 # handle `-M -o', and we need to detect this. Also, some Intel 3721 # versions had trouble with output in subdirs 3722 am__obj=sub/conftest.${OBJEXT-o} 3723 am__minus_obj="-o $am__obj" 3724 case $depmode in 3725 gcc) 3726 # This depmode causes a compiler race in universal mode. 3727 test "$am__universal" = false || continue 3728 ;; 3729 nosideeffect) 3730 # after this tag, mechanisms are not by side-effect, so they'll 3731 # only be used when explicitly requested 3732 if test "x$enable_dependency_tracking" = xyes; then 3733 continue 3734 else 3735 break 3736 fi 3737 ;; 3738 msvisualcpp | msvcmsys) 3739 # This compiler won't grok `-c -o', but also, the minuso test has 3740 # not run yet. These depmodes are late enough in the game, and 3741 # so weak that their functioning should not be impacted. 3742 am__obj=conftest.${OBJEXT-o} 3743 am__minus_obj= 3744 ;; 3745 none) break ;; 3746 esac 3747 if depmode=$depmode \ 3748 source=sub/conftest.c object=$am__obj \ 3749 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3750 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3751 >/dev/null 2>conftest.err && 3752 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3753 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3754 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3755 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3756 # icc doesn't choke on unknown options, it will just issue warnings 3757 # or remarks (even with -Werror). So we grep stderr for any message 3758 # that says an option was ignored or not supported. 3759 # When given -MP, icc 7.0 and 7.1 complain thusly: 3760 # icc: Command line warning: ignoring option '-M'; no argument required 3761 # The diagnosis changed in icc 8.0: 3762 # icc: Command line remark: option '-MP' not supported 3763 if (grep 'ignoring option' conftest.err || 3764 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3765 am_cv_CC_dependencies_compiler_type=$depmode 3766 break 3767 fi 3768 fi 3769 done 3770 3771 cd .. 3772 rm -rf conftest.dir 3773else 3774 am_cv_CC_dependencies_compiler_type=none 3775fi 3776 3777fi 3778{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3779$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3780CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3781 3782 if 3783 test "x$enable_dependency_tracking" != xno \ 3784 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3785 am__fastdepCC_TRUE= 3786 am__fastdepCC_FALSE='#' 3787else 3788 am__fastdepCC_TRUE='#' 3789 am__fastdepCC_FALSE= 3790fi 3791 3792 3793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3794$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3795if ${ac_cv_prog_cc_c99+:} false; then : 3796 $as_echo_n "(cached) " >&6 3797else 3798 ac_cv_prog_cc_c99=no 3799ac_save_CC=$CC 3800cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3801/* end confdefs.h. */ 3802#include <stdarg.h> 3803#include <stdbool.h> 3804#include <stdlib.h> 3805#include <wchar.h> 3806#include <stdio.h> 3807 3808// Check varargs macros. These examples are taken from C99 6.10.3.5. 3809#define debug(...) fprintf (stderr, __VA_ARGS__) 3810#define showlist(...) puts (#__VA_ARGS__) 3811#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3812static void 3813test_varargs_macros (void) 3814{ 3815 int x = 1234; 3816 int y = 5678; 3817 debug ("Flag"); 3818 debug ("X = %d\n", x); 3819 showlist (The first, second, and third items.); 3820 report (x>y, "x is %d but y is %d", x, y); 3821} 3822 3823// Check long long types. 3824#define BIG64 18446744073709551615ull 3825#define BIG32 4294967295ul 3826#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3827#if !BIG_OK 3828 your preprocessor is broken; 3829#endif 3830#if BIG_OK 3831#else 3832 your preprocessor is broken; 3833#endif 3834static long long int bignum = -9223372036854775807LL; 3835static unsigned long long int ubignum = BIG64; 3836 3837struct incomplete_array 3838{ 3839 int datasize; 3840 double data[]; 3841}; 3842 3843struct named_init { 3844 int number; 3845 const wchar_t *name; 3846 double average; 3847}; 3848 3849typedef const char *ccp; 3850 3851static inline int 3852test_restrict (ccp restrict text) 3853{ 3854 // See if C++-style comments work. 3855 // Iterate through items via the restricted pointer. 3856 // Also check for declarations in for loops. 3857 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3858 continue; 3859 return 0; 3860} 3861 3862// Check varargs and va_copy. 3863static void 3864test_varargs (const char *format, ...) 3865{ 3866 va_list args; 3867 va_start (args, format); 3868 va_list args_copy; 3869 va_copy (args_copy, args); 3870 3871 const char *str; 3872 int number; 3873 float fnumber; 3874 3875 while (*format) 3876 { 3877 switch (*format++) 3878 { 3879 case 's': // string 3880 str = va_arg (args_copy, const char *); 3881 break; 3882 case 'd': // int 3883 number = va_arg (args_copy, int); 3884 break; 3885 case 'f': // float 3886 fnumber = va_arg (args_copy, double); 3887 break; 3888 default: 3889 break; 3890 } 3891 } 3892 va_end (args_copy); 3893 va_end (args); 3894} 3895 3896int 3897main () 3898{ 3899 3900 // Check bool. 3901 _Bool success = false; 3902 3903 // Check restrict. 3904 if (test_restrict ("String literal") == 0) 3905 success = true; 3906 char *restrict newvar = "Another string"; 3907 3908 // Check varargs. 3909 test_varargs ("s, d' f .", "string", 65, 34.234); 3910 test_varargs_macros (); 3911 3912 // Check flexible array members. 3913 struct incomplete_array *ia = 3914 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3915 ia->datasize = 10; 3916 for (int i = 0; i < ia->datasize; ++i) 3917 ia->data[i] = i * 1.234; 3918 3919 // Check named initializers. 3920 struct named_init ni = { 3921 .number = 34, 3922 .name = L"Test wide string", 3923 .average = 543.34343, 3924 }; 3925 3926 ni.number = 58; 3927 3928 int dynamic_array[ni.number]; 3929 dynamic_array[ni.number - 1] = 543; 3930 3931 // work around unused variable warnings 3932 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3933 || dynamic_array[ni.number - 1] != 543); 3934 3935 ; 3936 return 0; 3937} 3938_ACEOF 3939for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3940do 3941 CC="$ac_save_CC $ac_arg" 3942 if ac_fn_c_try_compile "$LINENO"; then : 3943 ac_cv_prog_cc_c99=$ac_arg 3944fi 3945rm -f core conftest.err conftest.$ac_objext 3946 test "x$ac_cv_prog_cc_c99" != "xno" && break 3947done 3948rm -f conftest.$ac_ext 3949CC=$ac_save_CC 3950 3951fi 3952# AC_CACHE_VAL 3953case "x$ac_cv_prog_cc_c99" in 3954 x) 3955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3956$as_echo "none needed" >&6; } ;; 3957 xno) 3958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3959$as_echo "unsupported" >&6; } ;; 3960 *) 3961 CC="$CC $ac_cv_prog_cc_c99" 3962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3963$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3964esac 3965if test "x$ac_cv_prog_cc_c99" != xno; then : 3966 3967fi 3968 3969 3970 3971ac_ext=c 3972ac_cpp='$CPP $CPPFLAGS' 3973ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3974ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3975ac_compiler_gnu=$ac_cv_c_compiler_gnu 3976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3977$as_echo_n "checking how to run the C preprocessor... " >&6; } 3978# On Suns, sometimes $CPP names a directory. 3979if test -n "$CPP" && test -d "$CPP"; then 3980 CPP= 3981fi 3982if test -z "$CPP"; then 3983 if ${ac_cv_prog_CPP+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 # Double quotes because CPP needs to be expanded 3987 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3988 do 3989 ac_preproc_ok=false 3990for ac_c_preproc_warn_flag in '' yes 3991do 3992 # Use a header file that comes with gcc, so configuring glibc 3993 # with a fresh cross-compiler works. 3994 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3995 # <limits.h> exists even on freestanding compilers. 3996 # On the NeXT, cc -E runs the code through the compiler's parser, 3997 # not just through cpp. "Syntax error" is here to catch this case. 3998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3999/* end confdefs.h. */ 4000#ifdef __STDC__ 4001# include <limits.h> 4002#else 4003# include <assert.h> 4004#endif 4005 Syntax error 4006_ACEOF 4007if ac_fn_c_try_cpp "$LINENO"; then : 4008 4009else 4010 # Broken: fails on valid input. 4011continue 4012fi 4013rm -f conftest.err conftest.i conftest.$ac_ext 4014 4015 # OK, works on sane cases. Now check whether nonexistent headers 4016 # can be detected and how. 4017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4018/* end confdefs.h. */ 4019#include <ac_nonexistent.h> 4020_ACEOF 4021if ac_fn_c_try_cpp "$LINENO"; then : 4022 # Broken: success on invalid input. 4023continue 4024else 4025 # Passes both tests. 4026ac_preproc_ok=: 4027break 4028fi 4029rm -f conftest.err conftest.i conftest.$ac_ext 4030 4031done 4032# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4033rm -f conftest.i conftest.err conftest.$ac_ext 4034if $ac_preproc_ok; then : 4035 break 4036fi 4037 4038 done 4039 ac_cv_prog_CPP=$CPP 4040 4041fi 4042 CPP=$ac_cv_prog_CPP 4043else 4044 ac_cv_prog_CPP=$CPP 4045fi 4046{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4047$as_echo "$CPP" >&6; } 4048ac_preproc_ok=false 4049for ac_c_preproc_warn_flag in '' yes 4050do 4051 # Use a header file that comes with gcc, so configuring glibc 4052 # with a fresh cross-compiler works. 4053 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4054 # <limits.h> exists even on freestanding compilers. 4055 # On the NeXT, cc -E runs the code through the compiler's parser, 4056 # not just through cpp. "Syntax error" is here to catch this case. 4057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4058/* end confdefs.h. */ 4059#ifdef __STDC__ 4060# include <limits.h> 4061#else 4062# include <assert.h> 4063#endif 4064 Syntax error 4065_ACEOF 4066if ac_fn_c_try_cpp "$LINENO"; then : 4067 4068else 4069 # Broken: fails on valid input. 4070continue 4071fi 4072rm -f conftest.err conftest.i conftest.$ac_ext 4073 4074 # OK, works on sane cases. Now check whether nonexistent headers 4075 # can be detected and how. 4076 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4077/* end confdefs.h. */ 4078#include <ac_nonexistent.h> 4079_ACEOF 4080if ac_fn_c_try_cpp "$LINENO"; then : 4081 # Broken: success on invalid input. 4082continue 4083else 4084 # Passes both tests. 4085ac_preproc_ok=: 4086break 4087fi 4088rm -f conftest.err conftest.i conftest.$ac_ext 4089 4090done 4091# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4092rm -f conftest.i conftest.err conftest.$ac_ext 4093if $ac_preproc_ok; then : 4094 4095else 4096 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4097$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4098as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4099See \`config.log' for more details" "$LINENO" 5; } 4100fi 4101 4102ac_ext=c 4103ac_cpp='$CPP $CPPFLAGS' 4104ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4105ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4106ac_compiler_gnu=$ac_cv_c_compiler_gnu 4107 4108 4109{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4110$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4111if ${ac_cv_path_GREP+:} false; then : 4112 $as_echo_n "(cached) " >&6 4113else 4114 if test -z "$GREP"; then 4115 ac_path_GREP_found=false 4116 # Loop through the user's path and test for each of PROGNAME-LIST 4117 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4118for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4119do 4120 IFS=$as_save_IFS 4121 test -z "$as_dir" && as_dir=. 4122 for ac_prog in grep ggrep; do 4123 for ac_exec_ext in '' $ac_executable_extensions; do 4124 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4125 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4126# Check for GNU ac_path_GREP and select it if it is found. 4127 # Check for GNU $ac_path_GREP 4128case `"$ac_path_GREP" --version 2>&1` in 4129*GNU*) 4130 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4131*) 4132 ac_count=0 4133 $as_echo_n 0123456789 >"conftest.in" 4134 while : 4135 do 4136 cat "conftest.in" "conftest.in" >"conftest.tmp" 4137 mv "conftest.tmp" "conftest.in" 4138 cp "conftest.in" "conftest.nl" 4139 $as_echo 'GREP' >> "conftest.nl" 4140 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4141 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4142 as_fn_arith $ac_count + 1 && ac_count=$as_val 4143 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4144 # Best one so far, save it but keep looking for a better one 4145 ac_cv_path_GREP="$ac_path_GREP" 4146 ac_path_GREP_max=$ac_count 4147 fi 4148 # 10*(2^10) chars as input seems more than enough 4149 test $ac_count -gt 10 && break 4150 done 4151 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4152esac 4153 4154 $ac_path_GREP_found && break 3 4155 done 4156 done 4157 done 4158IFS=$as_save_IFS 4159 if test -z "$ac_cv_path_GREP"; then 4160 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4161 fi 4162else 4163 ac_cv_path_GREP=$GREP 4164fi 4165 4166fi 4167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4168$as_echo "$ac_cv_path_GREP" >&6; } 4169 GREP="$ac_cv_path_GREP" 4170 4171 4172{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4173$as_echo_n "checking for egrep... " >&6; } 4174if ${ac_cv_path_EGREP+:} false; then : 4175 $as_echo_n "(cached) " >&6 4176else 4177 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4178 then ac_cv_path_EGREP="$GREP -E" 4179 else 4180 if test -z "$EGREP"; then 4181 ac_path_EGREP_found=false 4182 # Loop through the user's path and test for each of PROGNAME-LIST 4183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4184for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4185do 4186 IFS=$as_save_IFS 4187 test -z "$as_dir" && as_dir=. 4188 for ac_prog in egrep; do 4189 for ac_exec_ext in '' $ac_executable_extensions; do 4190 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4191 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4192# Check for GNU ac_path_EGREP and select it if it is found. 4193 # Check for GNU $ac_path_EGREP 4194case `"$ac_path_EGREP" --version 2>&1` in 4195*GNU*) 4196 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4197*) 4198 ac_count=0 4199 $as_echo_n 0123456789 >"conftest.in" 4200 while : 4201 do 4202 cat "conftest.in" "conftest.in" >"conftest.tmp" 4203 mv "conftest.tmp" "conftest.in" 4204 cp "conftest.in" "conftest.nl" 4205 $as_echo 'EGREP' >> "conftest.nl" 4206 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4207 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4208 as_fn_arith $ac_count + 1 && ac_count=$as_val 4209 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4210 # Best one so far, save it but keep looking for a better one 4211 ac_cv_path_EGREP="$ac_path_EGREP" 4212 ac_path_EGREP_max=$ac_count 4213 fi 4214 # 10*(2^10) chars as input seems more than enough 4215 test $ac_count -gt 10 && break 4216 done 4217 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4218esac 4219 4220 $ac_path_EGREP_found && break 3 4221 done 4222 done 4223 done 4224IFS=$as_save_IFS 4225 if test -z "$ac_cv_path_EGREP"; then 4226 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4227 fi 4228else 4229 ac_cv_path_EGREP=$EGREP 4230fi 4231 4232 fi 4233fi 4234{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4235$as_echo "$ac_cv_path_EGREP" >&6; } 4236 EGREP="$ac_cv_path_EGREP" 4237 4238 4239{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4240$as_echo_n "checking for ANSI C header files... " >&6; } 4241if ${ac_cv_header_stdc+:} false; then : 4242 $as_echo_n "(cached) " >&6 4243else 4244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4245/* end confdefs.h. */ 4246#include <stdlib.h> 4247#include <stdarg.h> 4248#include <string.h> 4249#include <float.h> 4250 4251int 4252main () 4253{ 4254 4255 ; 4256 return 0; 4257} 4258_ACEOF 4259if ac_fn_c_try_compile "$LINENO"; then : 4260 ac_cv_header_stdc=yes 4261else 4262 ac_cv_header_stdc=no 4263fi 4264rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4265 4266if test $ac_cv_header_stdc = yes; then 4267 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4269/* end confdefs.h. */ 4270#include <string.h> 4271 4272_ACEOF 4273if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4274 $EGREP "memchr" >/dev/null 2>&1; then : 4275 4276else 4277 ac_cv_header_stdc=no 4278fi 4279rm -f conftest* 4280 4281fi 4282 4283if test $ac_cv_header_stdc = yes; then 4284 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4286/* end confdefs.h. */ 4287#include <stdlib.h> 4288 4289_ACEOF 4290if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4291 $EGREP "free" >/dev/null 2>&1; then : 4292 4293else 4294 ac_cv_header_stdc=no 4295fi 4296rm -f conftest* 4297 4298fi 4299 4300if test $ac_cv_header_stdc = yes; then 4301 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4302 if test "$cross_compiling" = yes; then : 4303 : 4304else 4305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4306/* end confdefs.h. */ 4307#include <ctype.h> 4308#include <stdlib.h> 4309#if ((' ' & 0x0FF) == 0x020) 4310# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4311# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4312#else 4313# define ISLOWER(c) \ 4314 (('a' <= (c) && (c) <= 'i') \ 4315 || ('j' <= (c) && (c) <= 'r') \ 4316 || ('s' <= (c) && (c) <= 'z')) 4317# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4318#endif 4319 4320#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4321int 4322main () 4323{ 4324 int i; 4325 for (i = 0; i < 256; i++) 4326 if (XOR (islower (i), ISLOWER (i)) 4327 || toupper (i) != TOUPPER (i)) 4328 return 2; 4329 return 0; 4330} 4331_ACEOF 4332if ac_fn_c_try_run "$LINENO"; then : 4333 4334else 4335 ac_cv_header_stdc=no 4336fi 4337rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4338 conftest.$ac_objext conftest.beam conftest.$ac_ext 4339fi 4340 4341fi 4342fi 4343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4344$as_echo "$ac_cv_header_stdc" >&6; } 4345if test $ac_cv_header_stdc = yes; then 4346 4347$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4348 4349fi 4350 4351# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4352for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4353 inttypes.h stdint.h unistd.h 4354do : 4355 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4356ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4357" 4358if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4359 cat >>confdefs.h <<_ACEOF 4360#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4361_ACEOF 4362 4363fi 4364 4365done 4366 4367 4368 4369 4370if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4371 if test -n "$ac_tool_prefix"; then 4372 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4373set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4375$as_echo_n "checking for $ac_word... " >&6; } 4376if ${ac_cv_path_PKG_CONFIG+:} false; then : 4377 $as_echo_n "(cached) " >&6 4378else 4379 case $PKG_CONFIG in 4380 [\\/]* | ?:[\\/]*) 4381 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4382 ;; 4383 *) 4384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4385for as_dir in $PATH 4386do 4387 IFS=$as_save_IFS 4388 test -z "$as_dir" && as_dir=. 4389 for ac_exec_ext in '' $ac_executable_extensions; do 4390 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4391 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4392 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4393 break 2 4394 fi 4395done 4396 done 4397IFS=$as_save_IFS 4398 4399 ;; 4400esac 4401fi 4402PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4403if test -n "$PKG_CONFIG"; then 4404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4405$as_echo "$PKG_CONFIG" >&6; } 4406else 4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4408$as_echo "no" >&6; } 4409fi 4410 4411 4412fi 4413if test -z "$ac_cv_path_PKG_CONFIG"; then 4414 ac_pt_PKG_CONFIG=$PKG_CONFIG 4415 # Extract the first word of "pkg-config", so it can be a program name with args. 4416set dummy pkg-config; ac_word=$2 4417{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4418$as_echo_n "checking for $ac_word... " >&6; } 4419if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4420 $as_echo_n "(cached) " >&6 4421else 4422 case $ac_pt_PKG_CONFIG in 4423 [\\/]* | ?:[\\/]*) 4424 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4425 ;; 4426 *) 4427 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4428for as_dir in $PATH 4429do 4430 IFS=$as_save_IFS 4431 test -z "$as_dir" && as_dir=. 4432 for ac_exec_ext in '' $ac_executable_extensions; do 4433 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4434 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4436 break 2 4437 fi 4438done 4439 done 4440IFS=$as_save_IFS 4441 4442 ;; 4443esac 4444fi 4445ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4446if test -n "$ac_pt_PKG_CONFIG"; then 4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4448$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4449else 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4451$as_echo "no" >&6; } 4452fi 4453 4454 if test "x$ac_pt_PKG_CONFIG" = x; then 4455 PKG_CONFIG="" 4456 else 4457 case $cross_compiling:$ac_tool_warned in 4458yes:) 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4460$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4461ac_tool_warned=yes ;; 4462esac 4463 PKG_CONFIG=$ac_pt_PKG_CONFIG 4464 fi 4465else 4466 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4467fi 4468 4469fi 4470if test -n "$PKG_CONFIG"; then 4471 _pkg_min_version=0.9.0 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4473$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4474 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4476$as_echo "yes" >&6; } 4477 else 4478 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4479$as_echo "no" >&6; } 4480 PKG_CONFIG="" 4481 fi 4482 4483fi 4484# Make sure we can run config.sub. 4485$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4486 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4487 4488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4489$as_echo_n "checking build system type... " >&6; } 4490if ${ac_cv_build+:} false; then : 4491 $as_echo_n "(cached) " >&6 4492else 4493 ac_build_alias=$build_alias 4494test "x$ac_build_alias" = x && 4495 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4496test "x$ac_build_alias" = x && 4497 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4498ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4499 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4500 4501fi 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4503$as_echo "$ac_cv_build" >&6; } 4504case $ac_cv_build in 4505*-*-*) ;; 4506*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4507esac 4508build=$ac_cv_build 4509ac_save_IFS=$IFS; IFS='-' 4510set x $ac_cv_build 4511shift 4512build_cpu=$1 4513build_vendor=$2 4514shift; shift 4515# Remember, the first character of IFS is used to create $*, 4516# except with old shells: 4517build_os=$* 4518IFS=$ac_save_IFS 4519case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4523$as_echo_n "checking host system type... " >&6; } 4524if ${ac_cv_host+:} false; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 if test "x$host_alias" = x; then 4528 ac_cv_host=$ac_cv_build 4529else 4530 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4531 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4532fi 4533 4534fi 4535{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4536$as_echo "$ac_cv_host" >&6; } 4537case $ac_cv_host in 4538*-*-*) ;; 4539*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4540esac 4541host=$ac_cv_host 4542ac_save_IFS=$IFS; IFS='-' 4543set x $ac_cv_host 4544shift 4545host_cpu=$1 4546host_vendor=$2 4547shift; shift 4548# Remember, the first character of IFS is used to create $*, 4549# except with old shells: 4550host_os=$* 4551IFS=$ac_save_IFS 4552case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4553 4554 4555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4556$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4557if ${ac_cv_path_SED+:} false; then : 4558 $as_echo_n "(cached) " >&6 4559else 4560 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4561 for ac_i in 1 2 3 4 5 6 7; do 4562 ac_script="$ac_script$as_nl$ac_script" 4563 done 4564 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4565 { ac_script=; unset ac_script;} 4566 if test -z "$SED"; then 4567 ac_path_SED_found=false 4568 # Loop through the user's path and test for each of PROGNAME-LIST 4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4570for as_dir in $PATH 4571do 4572 IFS=$as_save_IFS 4573 test -z "$as_dir" && as_dir=. 4574 for ac_prog in sed gsed; do 4575 for ac_exec_ext in '' $ac_executable_extensions; do 4576 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4577 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4578# Check for GNU ac_path_SED and select it if it is found. 4579 # Check for GNU $ac_path_SED 4580case `"$ac_path_SED" --version 2>&1` in 4581*GNU*) 4582 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4583*) 4584 ac_count=0 4585 $as_echo_n 0123456789 >"conftest.in" 4586 while : 4587 do 4588 cat "conftest.in" "conftest.in" >"conftest.tmp" 4589 mv "conftest.tmp" "conftest.in" 4590 cp "conftest.in" "conftest.nl" 4591 $as_echo '' >> "conftest.nl" 4592 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4594 as_fn_arith $ac_count + 1 && ac_count=$as_val 4595 if test $ac_count -gt ${ac_path_SED_max-0}; then 4596 # Best one so far, save it but keep looking for a better one 4597 ac_cv_path_SED="$ac_path_SED" 4598 ac_path_SED_max=$ac_count 4599 fi 4600 # 10*(2^10) chars as input seems more than enough 4601 test $ac_count -gt 10 && break 4602 done 4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4604esac 4605 4606 $ac_path_SED_found && break 3 4607 done 4608 done 4609 done 4610IFS=$as_save_IFS 4611 if test -z "$ac_cv_path_SED"; then 4612 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4613 fi 4614else 4615 ac_cv_path_SED=$SED 4616fi 4617 4618fi 4619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4620$as_echo "$ac_cv_path_SED" >&6; } 4621 SED="$ac_cv_path_SED" 4622 rm -f conftest.sed 4623 4624 4625 4626 4627 4628if test "x$GCC" = xyes ; then 4629 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4630-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4631-Wbad-function-cast -Wformat=2" 4632 case `$CC -dumpversion` in 4633 3.4.* | 4.*) 4634 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4635 ;; 4636 esac 4637else 4638 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4639if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4640 SUNCC="yes" 4641else 4642 SUNCC="no" 4643fi 4644 4645 if test "x$SUNCC" = "xyes"; then 4646 CWARNFLAGS="-v" 4647 fi 4648fi 4649 4650 4651 4652# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4653 4654 4655 4656# Check whether --enable-strict-compilation was given. 4657if test "${enable_strict_compilation+set}" = set; then : 4658 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4659else 4660 STRICT_COMPILE=no 4661fi 4662 4663if test "x$STRICT_COMPILE" = "xyes"; then 4664 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4665if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4666 SUNCC="yes" 4667else 4668 SUNCC="no" 4669fi 4670 4671 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4672if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4673 INTELCC="yes" 4674else 4675 INTELCC="no" 4676fi 4677 4678 if test "x$GCC" = xyes ; then 4679 STRICT_CFLAGS="-pedantic -Werror" 4680 elif test "x$SUNCC" = "xyes"; then 4681 STRICT_CFLAGS="-errwarn" 4682 elif test "x$INTELCC" = "xyes"; then 4683 STRICT_CFLAGS="-Werror" 4684 fi 4685fi 4686CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4687 4688 4689 4690 4691cat >>confdefs.h <<_ACEOF 4692#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4693_ACEOF 4694 4695 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4696 if test "x$PVM" = "x"; then 4697 PVM="0" 4698 fi 4699 4700cat >>confdefs.h <<_ACEOF 4701#define PACKAGE_VERSION_MINOR $PVM 4702_ACEOF 4703 4704 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4705 if test "x$PVP" = "x"; then 4706 PVP="0" 4707 fi 4708 4709cat >>confdefs.h <<_ACEOF 4710#define PACKAGE_VERSION_PATCHLEVEL $PVP 4711_ACEOF 4712 4713 4714 4715CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4716mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4717|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4718echo 'git directory not found: installing possibly empty changelog.' >&2)" 4719 4720 4721 4722 4723macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4724INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4725mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4726|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4727echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4728 4729 4730 4731 4732 4733 4734if test x$APP_MAN_SUFFIX = x ; then 4735 APP_MAN_SUFFIX=1 4736fi 4737if test x$APP_MAN_DIR = x ; then 4738 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4739fi 4740 4741if test x$LIB_MAN_SUFFIX = x ; then 4742 LIB_MAN_SUFFIX=3 4743fi 4744if test x$LIB_MAN_DIR = x ; then 4745 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4746fi 4747 4748if test x$FILE_MAN_SUFFIX = x ; then 4749 case $host_os in 4750 solaris*) FILE_MAN_SUFFIX=4 ;; 4751 *) FILE_MAN_SUFFIX=5 ;; 4752 esac 4753fi 4754if test x$FILE_MAN_DIR = x ; then 4755 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4756fi 4757 4758if test x$MISC_MAN_SUFFIX = x ; then 4759 case $host_os in 4760 solaris*) MISC_MAN_SUFFIX=5 ;; 4761 *) MISC_MAN_SUFFIX=7 ;; 4762 esac 4763fi 4764if test x$MISC_MAN_DIR = x ; then 4765 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4766fi 4767 4768if test x$DRIVER_MAN_SUFFIX = x ; then 4769 case $host_os in 4770 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4771 *) DRIVER_MAN_SUFFIX=4 ;; 4772 esac 4773fi 4774if test x$DRIVER_MAN_DIR = x ; then 4775 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4776fi 4777 4778if test x$ADMIN_MAN_SUFFIX = x ; then 4779 case $host_os in 4780 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4781 *) ADMIN_MAN_SUFFIX=8 ;; 4782 esac 4783fi 4784if test x$ADMIN_MAN_DIR = x ; then 4785 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4786fi 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802XORG_MAN_PAGE="X Version 11" 4803 4804MAN_SUBSTS="\ 4805 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4806 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4807 -e 's|__xservername__|Xorg|g' \ 4808 -e 's|__xconfigfile__|xorg.conf|g' \ 4809 -e 's|__projectroot__|\$(prefix)|g' \ 4810 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4811 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4812 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4813 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4814 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4815 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4816 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4817 4818 4819 4820# Check whether --enable-silent-rules was given. 4821if test "${enable_silent_rules+set}" = set; then : 4822 enableval=$enable_silent_rules; 4823fi 4824 4825case $enable_silent_rules in 4826yes) AM_DEFAULT_VERBOSITY=0;; 4827no) AM_DEFAULT_VERBOSITY=1;; 4828*) AM_DEFAULT_VERBOSITY=0;; 4829esac 4830AM_BACKSLASH='\' 4831 4832 4833 4834 4835# Check whether --enable-specs was given. 4836if test "${enable_specs+set}" = set; then : 4837 enableval=$enable_specs; build_specs=$enableval 4838else 4839 build_specs=yes 4840fi 4841 4842 4843 if test x$build_specs = xyes; then 4844 ENABLE_SPECS_TRUE= 4845 ENABLE_SPECS_FALSE='#' 4846else 4847 ENABLE_SPECS_TRUE='#' 4848 ENABLE_SPECS_FALSE= 4849fi 4850 4851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build functional specifications" >&5 4852$as_echo_n "checking whether to build functional specifications... " >&6; } 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $build_specs" >&5 4854$as_echo "$build_specs" >&6; } 4855 4856 4857 4858 4859 4860# Check whether --with-xmlto was given. 4861if test "${with_xmlto+set}" = set; then : 4862 withval=$with_xmlto; use_xmlto=$withval 4863else 4864 use_xmlto=auto 4865fi 4866 4867 4868 4869if test "x$use_xmlto" = x"auto"; then 4870 # Extract the first word of "xmlto", so it can be a program name with args. 4871set dummy xmlto; ac_word=$2 4872{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4873$as_echo_n "checking for $ac_word... " >&6; } 4874if ${ac_cv_path_XMLTO+:} false; then : 4875 $as_echo_n "(cached) " >&6 4876else 4877 case $XMLTO in 4878 [\\/]* | ?:[\\/]*) 4879 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 4880 ;; 4881 *) 4882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4883for as_dir in $PATH 4884do 4885 IFS=$as_save_IFS 4886 test -z "$as_dir" && as_dir=. 4887 for ac_exec_ext in '' $ac_executable_extensions; do 4888 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4889 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 4890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4891 break 2 4892 fi 4893done 4894 done 4895IFS=$as_save_IFS 4896 4897 ;; 4898esac 4899fi 4900XMLTO=$ac_cv_path_XMLTO 4901if test -n "$XMLTO"; then 4902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 4903$as_echo "$XMLTO" >&6; } 4904else 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4906$as_echo "no" >&6; } 4907fi 4908 4909 4910 if test "x$XMLTO" = "x"; then 4911 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto not found - documentation targets will be skipped" >&5 4912$as_echo "$as_me: WARNING: xmlto not found - documentation targets will be skipped" >&2;} 4913 have_xmlto=no 4914 else 4915 have_xmlto=yes 4916 fi 4917elif test "x$use_xmlto" = x"yes" ; then 4918 # Extract the first word of "xmlto", so it can be a program name with args. 4919set dummy xmlto; ac_word=$2 4920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4921$as_echo_n "checking for $ac_word... " >&6; } 4922if ${ac_cv_path_XMLTO+:} false; then : 4923 $as_echo_n "(cached) " >&6 4924else 4925 case $XMLTO in 4926 [\\/]* | ?:[\\/]*) 4927 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path. 4928 ;; 4929 *) 4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4931for as_dir in $PATH 4932do 4933 IFS=$as_save_IFS 4934 test -z "$as_dir" && as_dir=. 4935 for ac_exec_ext in '' $ac_executable_extensions; do 4936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4937 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext" 4938 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4939 break 2 4940 fi 4941done 4942 done 4943IFS=$as_save_IFS 4944 4945 ;; 4946esac 4947fi 4948XMLTO=$ac_cv_path_XMLTO 4949if test -n "$XMLTO"; then 4950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5 4951$as_echo "$XMLTO" >&6; } 4952else 4953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4954$as_echo "no" >&6; } 4955fi 4956 4957 4958 if test "x$XMLTO" = "x"; then 4959 as_fn_error $? "--with-xmlto=yes specified but xmlto not found in PATH" "$LINENO" 5 4960 fi 4961 have_xmlto=yes 4962elif test "x$use_xmlto" = x"no" ; then 4963 if test "x$XMLTO" != "x"; then 4964 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&5 4965$as_echo "$as_me: WARNING: ignoring XMLTO environment variable since --with-xmlto=no was specified" >&2;} 4966 fi 4967 have_xmlto=no 4968else 4969 as_fn_error $? "--with-xmlto expects 'yes' or 'no'" "$LINENO" 5 4970fi 4971 4972# Test for a minimum version of xmlto, if provided. 4973if test "$have_xmlto" = yes; then 4974 # scrape the xmlto version 4975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the xmlto version" >&5 4976$as_echo_n "checking the xmlto version... " >&6; } 4977 xmlto_version=`$XMLTO --version 2>/dev/null | cut -d' ' -f3` 4978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xmlto_version" >&5 4979$as_echo "$xmlto_version" >&6; } 4980 as_arg_v1=$xmlto_version 4981as_arg_v2=0.0.20 4982awk "$as_awk_strverscmp" v1="$as_arg_v1" v2="$as_arg_v2" /dev/null 4983case $? in #( 4984 1) : 4985 if test "x$use_xmlto" = xauto; then 4986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&5 4987$as_echo "$as_me: WARNING: xmlto version $xmlto_version found, but 0.0.20 needed" >&2;} 4988 have_xmlto=no 4989 else 4990 as_fn_error $? "xmlto version $xmlto_version found, but 0.0.20 needed" "$LINENO" 5 4991 fi ;; #( 4992 0) : 4993 ;; #( 4994 2) : 4995 ;; #( 4996 *) : 4997 ;; 4998esac 4999fi 5000 5001# Test for the ability of xmlto to generate a text target 5002have_xmlto_text=no 5003cat > conftest.xml << "EOF" 5004EOF 5005if test "$have_xmlto" = yes; then : 5006 if $XMLTO --skip-validation txt conftest.xml >/dev/null 2>&1; then : 5007 have_xmlto_text=yes 5008else 5009 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: xmlto cannot generate text format, this format skipped" >&5 5010$as_echo "$as_me: WARNING: xmlto cannot generate text format, this format skipped" >&2;} 5011fi 5012fi 5013rm -f conftest.xml 5014 if test $have_xmlto_text = yes; then 5015 HAVE_XMLTO_TEXT_TRUE= 5016 HAVE_XMLTO_TEXT_FALSE='#' 5017else 5018 HAVE_XMLTO_TEXT_TRUE='#' 5019 HAVE_XMLTO_TEXT_FALSE= 5020fi 5021 5022 if test "$have_xmlto" = yes; then 5023 HAVE_XMLTO_TRUE= 5024 HAVE_XMLTO_FALSE='#' 5025else 5026 HAVE_XMLTO_TRUE='#' 5027 HAVE_XMLTO_FALSE= 5028fi 5029 5030 5031 5032 5033 5034 5035# Check whether --with-fop was given. 5036if test "${with_fop+set}" = set; then : 5037 withval=$with_fop; use_fop=$withval 5038else 5039 use_fop=auto 5040fi 5041 5042 5043 5044if test "x$use_fop" = x"auto"; then 5045 # Extract the first word of "fop", so it can be a program name with args. 5046set dummy fop; ac_word=$2 5047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5048$as_echo_n "checking for $ac_word... " >&6; } 5049if ${ac_cv_path_FOP+:} false; then : 5050 $as_echo_n "(cached) " >&6 5051else 5052 case $FOP in 5053 [\\/]* | ?:[\\/]*) 5054 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5055 ;; 5056 *) 5057 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5058for as_dir in $PATH 5059do 5060 IFS=$as_save_IFS 5061 test -z "$as_dir" && as_dir=. 5062 for ac_exec_ext in '' $ac_executable_extensions; do 5063 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5064 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5066 break 2 5067 fi 5068done 5069 done 5070IFS=$as_save_IFS 5071 5072 ;; 5073esac 5074fi 5075FOP=$ac_cv_path_FOP 5076if test -n "$FOP"; then 5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5078$as_echo "$FOP" >&6; } 5079else 5080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5081$as_echo "no" >&6; } 5082fi 5083 5084 5085 if test "x$FOP" = "x"; then 5086 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: fop not found - documentation targets will be skipped" >&5 5087$as_echo "$as_me: WARNING: fop not found - documentation targets will be skipped" >&2;} 5088 have_fop=no 5089 else 5090 have_fop=yes 5091 fi 5092elif test "x$use_fop" = x"yes" ; then 5093 # Extract the first word of "fop", so it can be a program name with args. 5094set dummy fop; ac_word=$2 5095{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5096$as_echo_n "checking for $ac_word... " >&6; } 5097if ${ac_cv_path_FOP+:} false; then : 5098 $as_echo_n "(cached) " >&6 5099else 5100 case $FOP in 5101 [\\/]* | ?:[\\/]*) 5102 ac_cv_path_FOP="$FOP" # Let the user override the test with a path. 5103 ;; 5104 *) 5105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5106for as_dir in $PATH 5107do 5108 IFS=$as_save_IFS 5109 test -z "$as_dir" && as_dir=. 5110 for ac_exec_ext in '' $ac_executable_extensions; do 5111 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5112 ac_cv_path_FOP="$as_dir/$ac_word$ac_exec_ext" 5113 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5114 break 2 5115 fi 5116done 5117 done 5118IFS=$as_save_IFS 5119 5120 ;; 5121esac 5122fi 5123FOP=$ac_cv_path_FOP 5124if test -n "$FOP"; then 5125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FOP" >&5 5126$as_echo "$FOP" >&6; } 5127else 5128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5129$as_echo "no" >&6; } 5130fi 5131 5132 5133 if test "x$FOP" = "x"; then 5134 as_fn_error $? "--with-fop=yes specified but fop not found in PATH" "$LINENO" 5 5135 fi 5136 have_fop=yes 5137elif test "x$use_fop" = x"no" ; then 5138 if test "x$FOP" != "x"; then 5139 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&5 5140$as_echo "$as_me: WARNING: ignoring FOP environment variable since --with-fop=no was specified" >&2;} 5141 fi 5142 have_fop=no 5143else 5144 as_fn_error $? "--with-fop expects 'yes' or 'no'" "$LINENO" 5 5145fi 5146 if test "$have_fop" = yes; then 5147 HAVE_FOP_TRUE= 5148 HAVE_FOP_FALSE='#' 5149else 5150 HAVE_FOP_TRUE='#' 5151 HAVE_FOP_FALSE= 5152fi 5153 5154 5155 5156{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X.Org SGML entities >= 1.5" >&5 5157$as_echo_n "checking for X.Org SGML entities >= 1.5... " >&6; } 5158XORG_SGML_PATH= 5159if test -n "$PKG_CONFIG" && \ 5160 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xorg-sgml-doctools >= 1.5\""; } >&5 5161 ($PKG_CONFIG --exists --print-errors "xorg-sgml-doctools >= 1.5") 2>&5 5162 ac_status=$? 5163 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5164 test $ac_status = 0; }; then 5165 XORG_SGML_PATH=`$PKG_CONFIG --variable=sgmlrootdir xorg-sgml-doctools` 5166else 5167 : 5168 5169fi 5170 5171# Define variables STYLESHEET_SRCDIR and XSL_STYLESHEET containing 5172# the path and the name of the doc stylesheet 5173if test "x$XORG_SGML_PATH" != "x" ; then 5174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XORG_SGML_PATH" >&5 5175$as_echo "$XORG_SGML_PATH" >&6; } 5176 STYLESHEET_SRCDIR=$XORG_SGML_PATH/X11 5177 XSL_STYLESHEET=$STYLESHEET_SRCDIR/xorg.xsl 5178else 5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5180$as_echo "no" >&6; } 5181fi 5182 5183 5184 5185 5186 if test "x$XSL_STYLESHEET" != "x"; then 5187 HAVE_STYLESHEETS_TRUE= 5188 HAVE_STYLESHEETS_FALSE='#' 5189else 5190 HAVE_STYLESHEETS_TRUE='#' 5191 HAVE_STYLESHEETS_FALSE= 5192fi 5193 5194 5195ac_config_headers="$ac_config_headers config.h" 5196 5197 5198# Check for progs 5199ac_ext=c 5200ac_cpp='$CPP $CPPFLAGS' 5201ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5202ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5203ac_compiler_gnu=$ac_cv_c_compiler_gnu 5204if test -n "$ac_tool_prefix"; then 5205 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 5206set dummy ${ac_tool_prefix}gcc; ac_word=$2 5207{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5208$as_echo_n "checking for $ac_word... " >&6; } 5209if ${ac_cv_prog_CC+:} false; then : 5210 $as_echo_n "(cached) " >&6 5211else 5212 if test -n "$CC"; then 5213 ac_cv_prog_CC="$CC" # Let the user override the test. 5214else 5215as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5216for as_dir in $PATH 5217do 5218 IFS=$as_save_IFS 5219 test -z "$as_dir" && as_dir=. 5220 for ac_exec_ext in '' $ac_executable_extensions; do 5221 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5222 ac_cv_prog_CC="${ac_tool_prefix}gcc" 5223 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5224 break 2 5225 fi 5226done 5227 done 5228IFS=$as_save_IFS 5229 5230fi 5231fi 5232CC=$ac_cv_prog_CC 5233if test -n "$CC"; then 5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5235$as_echo "$CC" >&6; } 5236else 5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5238$as_echo "no" >&6; } 5239fi 5240 5241 5242fi 5243if test -z "$ac_cv_prog_CC"; then 5244 ac_ct_CC=$CC 5245 # Extract the first word of "gcc", so it can be a program name with args. 5246set dummy gcc; ac_word=$2 5247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5248$as_echo_n "checking for $ac_word... " >&6; } 5249if ${ac_cv_prog_ac_ct_CC+:} false; then : 5250 $as_echo_n "(cached) " >&6 5251else 5252 if test -n "$ac_ct_CC"; then 5253 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5254else 5255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5256for as_dir in $PATH 5257do 5258 IFS=$as_save_IFS 5259 test -z "$as_dir" && as_dir=. 5260 for ac_exec_ext in '' $ac_executable_extensions; do 5261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5262 ac_cv_prog_ac_ct_CC="gcc" 5263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5264 break 2 5265 fi 5266done 5267 done 5268IFS=$as_save_IFS 5269 5270fi 5271fi 5272ac_ct_CC=$ac_cv_prog_ac_ct_CC 5273if test -n "$ac_ct_CC"; then 5274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5275$as_echo "$ac_ct_CC" >&6; } 5276else 5277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5278$as_echo "no" >&6; } 5279fi 5280 5281 if test "x$ac_ct_CC" = x; then 5282 CC="" 5283 else 5284 case $cross_compiling:$ac_tool_warned in 5285yes:) 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5287$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5288ac_tool_warned=yes ;; 5289esac 5290 CC=$ac_ct_CC 5291 fi 5292else 5293 CC="$ac_cv_prog_CC" 5294fi 5295 5296if test -z "$CC"; then 5297 if test -n "$ac_tool_prefix"; then 5298 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 5299set dummy ${ac_tool_prefix}cc; ac_word=$2 5300{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5301$as_echo_n "checking for $ac_word... " >&6; } 5302if ${ac_cv_prog_CC+:} false; then : 5303 $as_echo_n "(cached) " >&6 5304else 5305 if test -n "$CC"; then 5306 ac_cv_prog_CC="$CC" # Let the user override the test. 5307else 5308as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5309for as_dir in $PATH 5310do 5311 IFS=$as_save_IFS 5312 test -z "$as_dir" && as_dir=. 5313 for ac_exec_ext in '' $ac_executable_extensions; do 5314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5315 ac_cv_prog_CC="${ac_tool_prefix}cc" 5316 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5317 break 2 5318 fi 5319done 5320 done 5321IFS=$as_save_IFS 5322 5323fi 5324fi 5325CC=$ac_cv_prog_CC 5326if test -n "$CC"; then 5327 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5328$as_echo "$CC" >&6; } 5329else 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5331$as_echo "no" >&6; } 5332fi 5333 5334 5335 fi 5336fi 5337if test -z "$CC"; then 5338 # Extract the first word of "cc", so it can be a program name with args. 5339set dummy cc; ac_word=$2 5340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5341$as_echo_n "checking for $ac_word... " >&6; } 5342if ${ac_cv_prog_CC+:} false; then : 5343 $as_echo_n "(cached) " >&6 5344else 5345 if test -n "$CC"; then 5346 ac_cv_prog_CC="$CC" # Let the user override the test. 5347else 5348 ac_prog_rejected=no 5349as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5350for as_dir in $PATH 5351do 5352 IFS=$as_save_IFS 5353 test -z "$as_dir" && as_dir=. 5354 for ac_exec_ext in '' $ac_executable_extensions; do 5355 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5356 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 5357 ac_prog_rejected=yes 5358 continue 5359 fi 5360 ac_cv_prog_CC="cc" 5361 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5362 break 2 5363 fi 5364done 5365 done 5366IFS=$as_save_IFS 5367 5368if test $ac_prog_rejected = yes; then 5369 # We found a bogon in the path, so make sure we never use it. 5370 set dummy $ac_cv_prog_CC 5371 shift 5372 if test $# != 0; then 5373 # We chose a different compiler from the bogus one. 5374 # However, it has the same basename, so the bogon will be chosen 5375 # first if we set CC to just the basename; use the full file name. 5376 shift 5377 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 5378 fi 5379fi 5380fi 5381fi 5382CC=$ac_cv_prog_CC 5383if test -n "$CC"; then 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5385$as_echo "$CC" >&6; } 5386else 5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5388$as_echo "no" >&6; } 5389fi 5390 5391 5392fi 5393if test -z "$CC"; then 5394 if test -n "$ac_tool_prefix"; then 5395 for ac_prog in cl.exe 5396 do 5397 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5398set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5400$as_echo_n "checking for $ac_word... " >&6; } 5401if ${ac_cv_prog_CC+:} false; then : 5402 $as_echo_n "(cached) " >&6 5403else 5404 if test -n "$CC"; then 5405 ac_cv_prog_CC="$CC" # Let the user override the test. 5406else 5407as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5408for as_dir in $PATH 5409do 5410 IFS=$as_save_IFS 5411 test -z "$as_dir" && as_dir=. 5412 for ac_exec_ext in '' $ac_executable_extensions; do 5413 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5414 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 5415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5416 break 2 5417 fi 5418done 5419 done 5420IFS=$as_save_IFS 5421 5422fi 5423fi 5424CC=$ac_cv_prog_CC 5425if test -n "$CC"; then 5426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 5427$as_echo "$CC" >&6; } 5428else 5429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5430$as_echo "no" >&6; } 5431fi 5432 5433 5434 test -n "$CC" && break 5435 done 5436fi 5437if test -z "$CC"; then 5438 ac_ct_CC=$CC 5439 for ac_prog in cl.exe 5440do 5441 # Extract the first word of "$ac_prog", so it can be a program name with args. 5442set dummy $ac_prog; ac_word=$2 5443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5444$as_echo_n "checking for $ac_word... " >&6; } 5445if ${ac_cv_prog_ac_ct_CC+:} false; then : 5446 $as_echo_n "(cached) " >&6 5447else 5448 if test -n "$ac_ct_CC"; then 5449 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 5450else 5451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5452for as_dir in $PATH 5453do 5454 IFS=$as_save_IFS 5455 test -z "$as_dir" && as_dir=. 5456 for ac_exec_ext in '' $ac_executable_extensions; do 5457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5458 ac_cv_prog_ac_ct_CC="$ac_prog" 5459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5460 break 2 5461 fi 5462done 5463 done 5464IFS=$as_save_IFS 5465 5466fi 5467fi 5468ac_ct_CC=$ac_cv_prog_ac_ct_CC 5469if test -n "$ac_ct_CC"; then 5470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5471$as_echo "$ac_ct_CC" >&6; } 5472else 5473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5474$as_echo "no" >&6; } 5475fi 5476 5477 5478 test -n "$ac_ct_CC" && break 5479done 5480 5481 if test "x$ac_ct_CC" = x; then 5482 CC="" 5483 else 5484 case $cross_compiling:$ac_tool_warned in 5485yes:) 5486{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5487$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5488ac_tool_warned=yes ;; 5489esac 5490 CC=$ac_ct_CC 5491 fi 5492fi 5493 5494fi 5495 5496 5497test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5498$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5499as_fn_error $? "no acceptable C compiler found in \$PATH 5500See \`config.log' for more details" "$LINENO" 5; } 5501 5502# Provide some information about the compiler. 5503$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5504set X $ac_compile 5505ac_compiler=$2 5506for ac_option in --version -v -V -qversion; do 5507 { { ac_try="$ac_compiler $ac_option >&5" 5508case "(($ac_try" in 5509 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5510 *) ac_try_echo=$ac_try;; 5511esac 5512eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5513$as_echo "$ac_try_echo"; } >&5 5514 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5515 ac_status=$? 5516 if test -s conftest.err; then 5517 sed '10a\ 5518... rest of stderr output deleted ... 5519 10q' conftest.err >conftest.er1 5520 cat conftest.er1 >&5 5521 fi 5522 rm -f conftest.er1 conftest.err 5523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5524 test $ac_status = 0; } 5525done 5526 5527{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5528$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5529if ${ac_cv_c_compiler_gnu+:} false; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5533/* end confdefs.h. */ 5534 5535int 5536main () 5537{ 5538#ifndef __GNUC__ 5539 choke me 5540#endif 5541 5542 ; 5543 return 0; 5544} 5545_ACEOF 5546if ac_fn_c_try_compile "$LINENO"; then : 5547 ac_compiler_gnu=yes 5548else 5549 ac_compiler_gnu=no 5550fi 5551rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5552ac_cv_c_compiler_gnu=$ac_compiler_gnu 5553 5554fi 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5556$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5557if test $ac_compiler_gnu = yes; then 5558 GCC=yes 5559else 5560 GCC= 5561fi 5562ac_test_CFLAGS=${CFLAGS+set} 5563ac_save_CFLAGS=$CFLAGS 5564{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5565$as_echo_n "checking whether $CC accepts -g... " >&6; } 5566if ${ac_cv_prog_cc_g+:} false; then : 5567 $as_echo_n "(cached) " >&6 5568else 5569 ac_save_c_werror_flag=$ac_c_werror_flag 5570 ac_c_werror_flag=yes 5571 ac_cv_prog_cc_g=no 5572 CFLAGS="-g" 5573 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5574/* end confdefs.h. */ 5575 5576int 5577main () 5578{ 5579 5580 ; 5581 return 0; 5582} 5583_ACEOF 5584if ac_fn_c_try_compile "$LINENO"; then : 5585 ac_cv_prog_cc_g=yes 5586else 5587 CFLAGS="" 5588 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5589/* end confdefs.h. */ 5590 5591int 5592main () 5593{ 5594 5595 ; 5596 return 0; 5597} 5598_ACEOF 5599if ac_fn_c_try_compile "$LINENO"; then : 5600 5601else 5602 ac_c_werror_flag=$ac_save_c_werror_flag 5603 CFLAGS="-g" 5604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5605/* end confdefs.h. */ 5606 5607int 5608main () 5609{ 5610 5611 ; 5612 return 0; 5613} 5614_ACEOF 5615if ac_fn_c_try_compile "$LINENO"; then : 5616 ac_cv_prog_cc_g=yes 5617fi 5618rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5619fi 5620rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5621fi 5622rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5623 ac_c_werror_flag=$ac_save_c_werror_flag 5624fi 5625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5626$as_echo "$ac_cv_prog_cc_g" >&6; } 5627if test "$ac_test_CFLAGS" = set; then 5628 CFLAGS=$ac_save_CFLAGS 5629elif test $ac_cv_prog_cc_g = yes; then 5630 if test "$GCC" = yes; then 5631 CFLAGS="-g -O2" 5632 else 5633 CFLAGS="-g" 5634 fi 5635else 5636 if test "$GCC" = yes; then 5637 CFLAGS="-O2" 5638 else 5639 CFLAGS= 5640 fi 5641fi 5642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5643$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5644if ${ac_cv_prog_cc_c89+:} false; then : 5645 $as_echo_n "(cached) " >&6 5646else 5647 ac_cv_prog_cc_c89=no 5648ac_save_CC=$CC 5649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5650/* end confdefs.h. */ 5651#include <stdarg.h> 5652#include <stdio.h> 5653#include <sys/types.h> 5654#include <sys/stat.h> 5655/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5656struct buf { int x; }; 5657FILE * (*rcsopen) (struct buf *, struct stat *, int); 5658static char *e (p, i) 5659 char **p; 5660 int i; 5661{ 5662 return p[i]; 5663} 5664static char *f (char * (*g) (char **, int), char **p, ...) 5665{ 5666 char *s; 5667 va_list v; 5668 va_start (v,p); 5669 s = g (p, va_arg (v,int)); 5670 va_end (v); 5671 return s; 5672} 5673 5674/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5675 function prototypes and stuff, but not '\xHH' hex character constants. 5676 These don't provoke an error unfortunately, instead are silently treated 5677 as 'x'. The following induces an error, until -std is added to get 5678 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5679 array size at least. It's necessary to write '\x00'==0 to get something 5680 that's true only with -std. */ 5681int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5682 5683/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5684 inside strings and character constants. */ 5685#define FOO(x) 'x' 5686int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5687 5688int test (int i, double x); 5689struct s1 {int (*f) (int a);}; 5690struct s2 {int (*f) (double a);}; 5691int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5692int argc; 5693char **argv; 5694int 5695main () 5696{ 5697return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5698 ; 5699 return 0; 5700} 5701_ACEOF 5702for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5703 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5704do 5705 CC="$ac_save_CC $ac_arg" 5706 if ac_fn_c_try_compile "$LINENO"; then : 5707 ac_cv_prog_cc_c89=$ac_arg 5708fi 5709rm -f core conftest.err conftest.$ac_objext 5710 test "x$ac_cv_prog_cc_c89" != "xno" && break 5711done 5712rm -f conftest.$ac_ext 5713CC=$ac_save_CC 5714 5715fi 5716# AC_CACHE_VAL 5717case "x$ac_cv_prog_cc_c89" in 5718 x) 5719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5720$as_echo "none needed" >&6; } ;; 5721 xno) 5722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5723$as_echo "unsupported" >&6; } ;; 5724 *) 5725 CC="$CC $ac_cv_prog_cc_c89" 5726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5727$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5728esac 5729if test "x$ac_cv_prog_cc_c89" != xno; then : 5730 5731fi 5732 5733ac_ext=c 5734ac_cpp='$CPP $CPPFLAGS' 5735ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5736ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5737ac_compiler_gnu=$ac_cv_c_compiler_gnu 5738 5739depcc="$CC" am_compiler_list= 5740 5741{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5742$as_echo_n "checking dependency style of $depcc... " >&6; } 5743if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5744 $as_echo_n "(cached) " >&6 5745else 5746 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5747 # We make a subdir and do the tests there. Otherwise we can end up 5748 # making bogus files that we don't know about and never remove. For 5749 # instance it was reported that on HP-UX the gcc test will end up 5750 # making a dummy file named `D' -- because `-MD' means `put the output 5751 # in D'. 5752 mkdir conftest.dir 5753 # Copy depcomp to subdir because otherwise we won't find it if we're 5754 # using a relative directory. 5755 cp "$am_depcomp" conftest.dir 5756 cd conftest.dir 5757 # We will build objects and dependencies in a subdirectory because 5758 # it helps to detect inapplicable dependency modes. For instance 5759 # both Tru64's cc and ICC support -MD to output dependencies as a 5760 # side effect of compilation, but ICC will put the dependencies in 5761 # the current directory while Tru64 will put them in the object 5762 # directory. 5763 mkdir sub 5764 5765 am_cv_CC_dependencies_compiler_type=none 5766 if test "$am_compiler_list" = ""; then 5767 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5768 fi 5769 am__universal=false 5770 case " $depcc " in #( 5771 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5772 esac 5773 5774 for depmode in $am_compiler_list; do 5775 # Setup a source with many dependencies, because some compilers 5776 # like to wrap large dependency lists on column 80 (with \), and 5777 # we should not choose a depcomp mode which is confused by this. 5778 # 5779 # We need to recreate these files for each test, as the compiler may 5780 # overwrite some of them when testing with obscure command lines. 5781 # This happens at least with the AIX C compiler. 5782 : > sub/conftest.c 5783 for i in 1 2 3 4 5 6; do 5784 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5785 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5786 # Solaris 8's {/usr,}/bin/sh. 5787 touch sub/conftst$i.h 5788 done 5789 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5790 5791 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5792 # mode. It turns out that the SunPro C++ compiler does not properly 5793 # handle `-M -o', and we need to detect this. Also, some Intel 5794 # versions had trouble with output in subdirs 5795 am__obj=sub/conftest.${OBJEXT-o} 5796 am__minus_obj="-o $am__obj" 5797 case $depmode in 5798 gcc) 5799 # This depmode causes a compiler race in universal mode. 5800 test "$am__universal" = false || continue 5801 ;; 5802 nosideeffect) 5803 # after this tag, mechanisms are not by side-effect, so they'll 5804 # only be used when explicitly requested 5805 if test "x$enable_dependency_tracking" = xyes; then 5806 continue 5807 else 5808 break 5809 fi 5810 ;; 5811 msvisualcpp | msvcmsys) 5812 # This compiler won't grok `-c -o', but also, the minuso test has 5813 # not run yet. These depmodes are late enough in the game, and 5814 # so weak that their functioning should not be impacted. 5815 am__obj=conftest.${OBJEXT-o} 5816 am__minus_obj= 5817 ;; 5818 none) break ;; 5819 esac 5820 if depmode=$depmode \ 5821 source=sub/conftest.c object=$am__obj \ 5822 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5823 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5824 >/dev/null 2>conftest.err && 5825 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5826 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5827 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5828 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5829 # icc doesn't choke on unknown options, it will just issue warnings 5830 # or remarks (even with -Werror). So we grep stderr for any message 5831 # that says an option was ignored or not supported. 5832 # When given -MP, icc 7.0 and 7.1 complain thusly: 5833 # icc: Command line warning: ignoring option '-M'; no argument required 5834 # The diagnosis changed in icc 8.0: 5835 # icc: Command line remark: option '-MP' not supported 5836 if (grep 'ignoring option' conftest.err || 5837 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5838 am_cv_CC_dependencies_compiler_type=$depmode 5839 break 5840 fi 5841 fi 5842 done 5843 5844 cd .. 5845 rm -rf conftest.dir 5846else 5847 am_cv_CC_dependencies_compiler_type=none 5848fi 5849 5850fi 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5852$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5853CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5854 5855 if 5856 test "x$enable_dependency_tracking" != xno \ 5857 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5858 am__fastdepCC_TRUE= 5859 am__fastdepCC_FALSE='#' 5860else 5861 am__fastdepCC_TRUE='#' 5862 am__fastdepCC_FALSE= 5863fi 5864 5865 5866case `pwd` in 5867 *\ * | *\ *) 5868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5869$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5870esac 5871 5872 5873 5874macro_version='2.2.10' 5875macro_revision='1.3175' 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889ltmain="$ac_aux_dir/ltmain.sh" 5890 5891# Backslashify metacharacters that are still active within 5892# double-quoted strings. 5893sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5894 5895# Same as above, but do not quote variable references. 5896double_quote_subst='s/\(["`\\]\)/\\\1/g' 5897 5898# Sed substitution to delay expansion of an escaped shell variable in a 5899# double_quote_subst'ed string. 5900delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5901 5902# Sed substitution to delay expansion of an escaped single quote. 5903delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5904 5905# Sed substitution to avoid accidental globbing in evaled expressions 5906no_glob_subst='s/\*/\\\*/g' 5907 5908ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5909ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5910ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5911 5912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5913$as_echo_n "checking how to print strings... " >&6; } 5914# Test print first, because it will be a builtin if present. 5915if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5916 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5917 ECHO='print -r --' 5918elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5919 ECHO='printf %s\n' 5920else 5921 # Use this function as a fallback that always works. 5922 func_fallback_echo () 5923 { 5924 eval 'cat <<_LTECHO_EOF 5925$1 5926_LTECHO_EOF' 5927 } 5928 ECHO='func_fallback_echo' 5929fi 5930 5931# func_echo_all arg... 5932# Invoke $ECHO with all args, space-separated. 5933func_echo_all () 5934{ 5935 $ECHO "" 5936} 5937 5938case "$ECHO" in 5939 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5940$as_echo "printf" >&6; } ;; 5941 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5942$as_echo "print -r" >&6; } ;; 5943 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5944$as_echo "cat" >&6; } ;; 5945esac 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5961$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5962if ${ac_cv_path_SED+:} false; then : 5963 $as_echo_n "(cached) " >&6 5964else 5965 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5966 for ac_i in 1 2 3 4 5 6 7; do 5967 ac_script="$ac_script$as_nl$ac_script" 5968 done 5969 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5970 { ac_script=; unset ac_script;} 5971 if test -z "$SED"; then 5972 ac_path_SED_found=false 5973 # Loop through the user's path and test for each of PROGNAME-LIST 5974 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5975for as_dir in $PATH 5976do 5977 IFS=$as_save_IFS 5978 test -z "$as_dir" && as_dir=. 5979 for ac_prog in sed gsed; do 5980 for ac_exec_ext in '' $ac_executable_extensions; do 5981 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5982 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5983# Check for GNU ac_path_SED and select it if it is found. 5984 # Check for GNU $ac_path_SED 5985case `"$ac_path_SED" --version 2>&1` in 5986*GNU*) 5987 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5988*) 5989 ac_count=0 5990 $as_echo_n 0123456789 >"conftest.in" 5991 while : 5992 do 5993 cat "conftest.in" "conftest.in" >"conftest.tmp" 5994 mv "conftest.tmp" "conftest.in" 5995 cp "conftest.in" "conftest.nl" 5996 $as_echo '' >> "conftest.nl" 5997 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5998 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5999 as_fn_arith $ac_count + 1 && ac_count=$as_val 6000 if test $ac_count -gt ${ac_path_SED_max-0}; then 6001 # Best one so far, save it but keep looking for a better one 6002 ac_cv_path_SED="$ac_path_SED" 6003 ac_path_SED_max=$ac_count 6004 fi 6005 # 10*(2^10) chars as input seems more than enough 6006 test $ac_count -gt 10 && break 6007 done 6008 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6009esac 6010 6011 $ac_path_SED_found && break 3 6012 done 6013 done 6014 done 6015IFS=$as_save_IFS 6016 if test -z "$ac_cv_path_SED"; then 6017 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 6018 fi 6019else 6020 ac_cv_path_SED=$SED 6021fi 6022 6023fi 6024{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 6025$as_echo "$ac_cv_path_SED" >&6; } 6026 SED="$ac_cv_path_SED" 6027 rm -f conftest.sed 6028 6029test -z "$SED" && SED=sed 6030Xsed="$SED -e 1s/^X//" 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 6043$as_echo_n "checking for fgrep... " >&6; } 6044if ${ac_cv_path_FGREP+:} false; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 6048 then ac_cv_path_FGREP="$GREP -F" 6049 else 6050 if test -z "$FGREP"; then 6051 ac_path_FGREP_found=false 6052 # Loop through the user's path and test for each of PROGNAME-LIST 6053 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6054for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 6055do 6056 IFS=$as_save_IFS 6057 test -z "$as_dir" && as_dir=. 6058 for ac_prog in fgrep; do 6059 for ac_exec_ext in '' $ac_executable_extensions; do 6060 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 6061 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 6062# Check for GNU ac_path_FGREP and select it if it is found. 6063 # Check for GNU $ac_path_FGREP 6064case `"$ac_path_FGREP" --version 2>&1` in 6065*GNU*) 6066 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 6067*) 6068 ac_count=0 6069 $as_echo_n 0123456789 >"conftest.in" 6070 while : 6071 do 6072 cat "conftest.in" "conftest.in" >"conftest.tmp" 6073 mv "conftest.tmp" "conftest.in" 6074 cp "conftest.in" "conftest.nl" 6075 $as_echo 'FGREP' >> "conftest.nl" 6076 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 6077 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 6078 as_fn_arith $ac_count + 1 && ac_count=$as_val 6079 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 6080 # Best one so far, save it but keep looking for a better one 6081 ac_cv_path_FGREP="$ac_path_FGREP" 6082 ac_path_FGREP_max=$ac_count 6083 fi 6084 # 10*(2^10) chars as input seems more than enough 6085 test $ac_count -gt 10 && break 6086 done 6087 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 6088esac 6089 6090 $ac_path_FGREP_found && break 3 6091 done 6092 done 6093 done 6094IFS=$as_save_IFS 6095 if test -z "$ac_cv_path_FGREP"; then 6096 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 6097 fi 6098else 6099 ac_cv_path_FGREP=$FGREP 6100fi 6101 6102 fi 6103fi 6104{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 6105$as_echo "$ac_cv_path_FGREP" >&6; } 6106 FGREP="$ac_cv_path_FGREP" 6107 6108 6109test -z "$GREP" && GREP=grep 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129# Check whether --with-gnu-ld was given. 6130if test "${with_gnu_ld+set}" = set; then : 6131 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 6132else 6133 with_gnu_ld=no 6134fi 6135 6136ac_prog=ld 6137if test "$GCC" = yes; then 6138 # Check if gcc -print-prog-name=ld gives a path. 6139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 6140$as_echo_n "checking for ld used by $CC... " >&6; } 6141 case $host in 6142 *-*-mingw*) 6143 # gcc leaves a trailing carriage return which upsets mingw 6144 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 6145 *) 6146 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 6147 esac 6148 case $ac_prog in 6149 # Accept absolute paths. 6150 [\\/]* | ?:[\\/]*) 6151 re_direlt='/[^/][^/]*/\.\./' 6152 # Canonicalize the pathname of ld 6153 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 6154 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 6155 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 6156 done 6157 test -z "$LD" && LD="$ac_prog" 6158 ;; 6159 "") 6160 # If it fails, then pretend we aren't using GCC. 6161 ac_prog=ld 6162 ;; 6163 *) 6164 # If it is relative, then search for the first ld in PATH. 6165 with_gnu_ld=unknown 6166 ;; 6167 esac 6168elif test "$with_gnu_ld" = yes; then 6169 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 6170$as_echo_n "checking for GNU ld... " >&6; } 6171else 6172 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 6173$as_echo_n "checking for non-GNU ld... " >&6; } 6174fi 6175if ${lt_cv_path_LD+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 if test -z "$LD"; then 6179 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6180 for ac_dir in $PATH; do 6181 IFS="$lt_save_ifs" 6182 test -z "$ac_dir" && ac_dir=. 6183 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 6184 lt_cv_path_LD="$ac_dir/$ac_prog" 6185 # Check to see if the program is GNU ld. I'd rather use --version, 6186 # but apparently some variants of GNU ld only accept -v. 6187 # Break only if it was the GNU/non-GNU ld that we prefer. 6188 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6189 *GNU* | *'with BFD'*) 6190 test "$with_gnu_ld" != no && break 6191 ;; 6192 *) 6193 test "$with_gnu_ld" != yes && break 6194 ;; 6195 esac 6196 fi 6197 done 6198 IFS="$lt_save_ifs" 6199else 6200 lt_cv_path_LD="$LD" # Let the user override the test with a path. 6201fi 6202fi 6203 6204LD="$lt_cv_path_LD" 6205if test -n "$LD"; then 6206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6207$as_echo "$LD" >&6; } 6208else 6209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6210$as_echo "no" >&6; } 6211fi 6212test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6214$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6215if ${lt_cv_prog_gnu_ld+:} false; then : 6216 $as_echo_n "(cached) " >&6 6217else 6218 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6219case `$LD -v 2>&1 </dev/null` in 6220*GNU* | *'with BFD'*) 6221 lt_cv_prog_gnu_ld=yes 6222 ;; 6223*) 6224 lt_cv_prog_gnu_ld=no 6225 ;; 6226esac 6227fi 6228{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6229$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6230with_gnu_ld=$lt_cv_prog_gnu_ld 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6241$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6242if ${lt_cv_path_NM+:} false; then : 6243 $as_echo_n "(cached) " >&6 6244else 6245 if test -n "$NM"; then 6246 # Let the user override the test. 6247 lt_cv_path_NM="$NM" 6248else 6249 lt_nm_to_check="${ac_tool_prefix}nm" 6250 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6251 lt_nm_to_check="$lt_nm_to_check nm" 6252 fi 6253 for lt_tmp_nm in $lt_nm_to_check; do 6254 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6255 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6256 IFS="$lt_save_ifs" 6257 test -z "$ac_dir" && ac_dir=. 6258 tmp_nm="$ac_dir/$lt_tmp_nm" 6259 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 6260 # Check to see if the nm accepts a BSD-compat flag. 6261 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 6262 # nm: unknown option "B" ignored 6263 # Tru64's nm complains that /dev/null is an invalid object file 6264 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 6265 */dev/null* | *'Invalid file or object type'*) 6266 lt_cv_path_NM="$tmp_nm -B" 6267 break 6268 ;; 6269 *) 6270 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6271 */dev/null*) 6272 lt_cv_path_NM="$tmp_nm -p" 6273 break 6274 ;; 6275 *) 6276 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6277 continue # so that we can try to find one that supports BSD flags 6278 ;; 6279 esac 6280 ;; 6281 esac 6282 fi 6283 done 6284 IFS="$lt_save_ifs" 6285 done 6286 : ${lt_cv_path_NM=no} 6287fi 6288fi 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6290$as_echo "$lt_cv_path_NM" >&6; } 6291if test "$lt_cv_path_NM" != "no"; then 6292 NM="$lt_cv_path_NM" 6293else 6294 # Didn't find any BSD compatible name lister, look for dumpbin. 6295 if test -n "$DUMPBIN"; then : 6296 # Let the user override the test. 6297 else 6298 if test -n "$ac_tool_prefix"; then 6299 for ac_prog in dumpbin "link -dump" 6300 do 6301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6302set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6304$as_echo_n "checking for $ac_word... " >&6; } 6305if ${ac_cv_prog_DUMPBIN+:} false; then : 6306 $as_echo_n "(cached) " >&6 6307else 6308 if test -n "$DUMPBIN"; then 6309 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6310else 6311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6312for as_dir in $PATH 6313do 6314 IFS=$as_save_IFS 6315 test -z "$as_dir" && as_dir=. 6316 for ac_exec_ext in '' $ac_executable_extensions; do 6317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6318 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6320 break 2 6321 fi 6322done 6323 done 6324IFS=$as_save_IFS 6325 6326fi 6327fi 6328DUMPBIN=$ac_cv_prog_DUMPBIN 6329if test -n "$DUMPBIN"; then 6330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6331$as_echo "$DUMPBIN" >&6; } 6332else 6333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6334$as_echo "no" >&6; } 6335fi 6336 6337 6338 test -n "$DUMPBIN" && break 6339 done 6340fi 6341if test -z "$DUMPBIN"; then 6342 ac_ct_DUMPBIN=$DUMPBIN 6343 for ac_prog in dumpbin "link -dump" 6344do 6345 # Extract the first word of "$ac_prog", so it can be a program name with args. 6346set dummy $ac_prog; ac_word=$2 6347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6348$as_echo_n "checking for $ac_word... " >&6; } 6349if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6350 $as_echo_n "(cached) " >&6 6351else 6352 if test -n "$ac_ct_DUMPBIN"; then 6353 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6354else 6355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6356for as_dir in $PATH 6357do 6358 IFS=$as_save_IFS 6359 test -z "$as_dir" && as_dir=. 6360 for ac_exec_ext in '' $ac_executable_extensions; do 6361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6362 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6364 break 2 6365 fi 6366done 6367 done 6368IFS=$as_save_IFS 6369 6370fi 6371fi 6372ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6373if test -n "$ac_ct_DUMPBIN"; then 6374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6375$as_echo "$ac_ct_DUMPBIN" >&6; } 6376else 6377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6378$as_echo "no" >&6; } 6379fi 6380 6381 6382 test -n "$ac_ct_DUMPBIN" && break 6383done 6384 6385 if test "x$ac_ct_DUMPBIN" = x; then 6386 DUMPBIN=":" 6387 else 6388 case $cross_compiling:$ac_tool_warned in 6389yes:) 6390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6392ac_tool_warned=yes ;; 6393esac 6394 DUMPBIN=$ac_ct_DUMPBIN 6395 fi 6396fi 6397 6398 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 6399 *COFF*) 6400 DUMPBIN="$DUMPBIN -symbols" 6401 ;; 6402 *) 6403 DUMPBIN=: 6404 ;; 6405 esac 6406 fi 6407 6408 if test "$DUMPBIN" != ":"; then 6409 NM="$DUMPBIN" 6410 fi 6411fi 6412test -z "$NM" && NM=nm 6413 6414 6415 6416 6417 6418 6419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6420$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6421if ${lt_cv_nm_interface+:} false; then : 6422 $as_echo_n "(cached) " >&6 6423else 6424 lt_cv_nm_interface="BSD nm" 6425 echo "int some_variable = 0;" > conftest.$ac_ext 6426 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6427 (eval "$ac_compile" 2>conftest.err) 6428 cat conftest.err >&5 6429 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6430 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6431 cat conftest.err >&5 6432 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6433 cat conftest.out >&5 6434 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6435 lt_cv_nm_interface="MS dumpbin" 6436 fi 6437 rm -f conftest* 6438fi 6439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6440$as_echo "$lt_cv_nm_interface" >&6; } 6441 6442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6443$as_echo_n "checking whether ln -s works... " >&6; } 6444LN_S=$as_ln_s 6445if test "$LN_S" = "ln -s"; then 6446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6447$as_echo "yes" >&6; } 6448else 6449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6450$as_echo "no, using $LN_S" >&6; } 6451fi 6452 6453# find the maximum length of command line arguments 6454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6455$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6456if ${lt_cv_sys_max_cmd_len+:} false; then : 6457 $as_echo_n "(cached) " >&6 6458else 6459 i=0 6460 teststring="ABCD" 6461 6462 case $build_os in 6463 msdosdjgpp*) 6464 # On DJGPP, this test can blow up pretty badly due to problems in libc 6465 # (any single argument exceeding 2000 bytes causes a buffer overrun 6466 # during glob expansion). Even if it were fixed, the result of this 6467 # check would be larger than it should be. 6468 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6469 ;; 6470 6471 gnu*) 6472 # Under GNU Hurd, this test is not required because there is 6473 # no limit to the length of command line arguments. 6474 # Libtool will interpret -1 as no limit whatsoever 6475 lt_cv_sys_max_cmd_len=-1; 6476 ;; 6477 6478 cygwin* | mingw* | cegcc*) 6479 # On Win9x/ME, this test blows up -- it succeeds, but takes 6480 # about 5 minutes as the teststring grows exponentially. 6481 # Worse, since 9x/ME are not pre-emptively multitasking, 6482 # you end up with a "frozen" computer, even though with patience 6483 # the test eventually succeeds (with a max line length of 256k). 6484 # Instead, let's just punt: use the minimum linelength reported by 6485 # all of the supported platforms: 8192 (on NT/2K/XP). 6486 lt_cv_sys_max_cmd_len=8192; 6487 ;; 6488 6489 mint*) 6490 # On MiNT this can take a long time and run out of memory. 6491 lt_cv_sys_max_cmd_len=8192; 6492 ;; 6493 6494 amigaos*) 6495 # On AmigaOS with pdksh, this test takes hours, literally. 6496 # So we just punt and use a minimum line length of 8192. 6497 lt_cv_sys_max_cmd_len=8192; 6498 ;; 6499 6500 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6501 # This has been around since 386BSD, at least. Likely further. 6502 if test -x /sbin/sysctl; then 6503 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6504 elif test -x /usr/sbin/sysctl; then 6505 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6506 else 6507 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6508 fi 6509 # And add a safety zone 6510 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6511 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6512 ;; 6513 6514 interix*) 6515 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6516 lt_cv_sys_max_cmd_len=196608 6517 ;; 6518 6519 osf*) 6520 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6521 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6522 # nice to cause kernel panics so lets avoid the loop below. 6523 # First set a reasonable default. 6524 lt_cv_sys_max_cmd_len=16384 6525 # 6526 if test -x /sbin/sysconfig; then 6527 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6528 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6529 esac 6530 fi 6531 ;; 6532 sco3.2v5*) 6533 lt_cv_sys_max_cmd_len=102400 6534 ;; 6535 sysv5* | sco5v6* | sysv4.2uw2*) 6536 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6537 if test -n "$kargmax"; then 6538 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6539 else 6540 lt_cv_sys_max_cmd_len=32768 6541 fi 6542 ;; 6543 *) 6544 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6545 if test -n "$lt_cv_sys_max_cmd_len"; then 6546 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6547 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6548 else 6549 # Make teststring a little bigger before we do anything with it. 6550 # a 1K string should be a reasonable start. 6551 for i in 1 2 3 4 5 6 7 8 ; do 6552 teststring=$teststring$teststring 6553 done 6554 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6555 # If test is not a shell built-in, we'll probably end up computing a 6556 # maximum length that is only half of the actual maximum length, but 6557 # we can't tell. 6558 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6559 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6560 test $i != 17 # 1/2 MB should be enough 6561 do 6562 i=`expr $i + 1` 6563 teststring=$teststring$teststring 6564 done 6565 # Only check the string length outside the loop. 6566 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6567 teststring= 6568 # Add a significant safety factor because C++ compilers can tack on 6569 # massive amounts of additional arguments before passing them to the 6570 # linker. It appears as though 1/2 is a usable value. 6571 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6572 fi 6573 ;; 6574 esac 6575 6576fi 6577 6578if test -n $lt_cv_sys_max_cmd_len ; then 6579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6580$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6581else 6582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6583$as_echo "none" >&6; } 6584fi 6585max_cmd_len=$lt_cv_sys_max_cmd_len 6586 6587 6588 6589 6590 6591 6592: ${CP="cp -f"} 6593: ${MV="mv -f"} 6594: ${RM="rm -f"} 6595 6596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6597$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6598# Try some XSI features 6599xsi_shell=no 6600( _lt_dummy="a/b/c" 6601 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6602 = c,a/b,, \ 6603 && eval 'test $(( 1 + 1 )) -eq 2 \ 6604 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6605 && xsi_shell=yes 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6607$as_echo "$xsi_shell" >&6; } 6608 6609 6610{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6611$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6612lt_shell_append=no 6613( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6614 >/dev/null 2>&1 \ 6615 && lt_shell_append=yes 6616{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6617$as_echo "$lt_shell_append" >&6; } 6618 6619 6620if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6621 lt_unset=unset 6622else 6623 lt_unset=false 6624fi 6625 6626 6627 6628 6629 6630# test EBCDIC or ASCII 6631case `echo X|tr X '\101'` in 6632 A) # ASCII based system 6633 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6634 lt_SP2NL='tr \040 \012' 6635 lt_NL2SP='tr \015\012 \040\040' 6636 ;; 6637 *) # EBCDIC based system 6638 lt_SP2NL='tr \100 \n' 6639 lt_NL2SP='tr \r\n \100\100' 6640 ;; 6641esac 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6652$as_echo_n "checking for $LD option to reload object files... " >&6; } 6653if ${lt_cv_ld_reload_flag+:} false; then : 6654 $as_echo_n "(cached) " >&6 6655else 6656 lt_cv_ld_reload_flag='-r' 6657fi 6658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6659$as_echo "$lt_cv_ld_reload_flag" >&6; } 6660reload_flag=$lt_cv_ld_reload_flag 6661case $reload_flag in 6662"" | " "*) ;; 6663*) reload_flag=" $reload_flag" ;; 6664esac 6665reload_cmds='$LD$reload_flag -o $output$reload_objs' 6666case $host_os in 6667 darwin*) 6668 if test "$GCC" = yes; then 6669 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6670 else 6671 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6672 fi 6673 ;; 6674esac 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684if test -n "$ac_tool_prefix"; then 6685 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6686set dummy ${ac_tool_prefix}objdump; ac_word=$2 6687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6688$as_echo_n "checking for $ac_word... " >&6; } 6689if ${ac_cv_prog_OBJDUMP+:} false; then : 6690 $as_echo_n "(cached) " >&6 6691else 6692 if test -n "$OBJDUMP"; then 6693 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6694else 6695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6696for as_dir in $PATH 6697do 6698 IFS=$as_save_IFS 6699 test -z "$as_dir" && as_dir=. 6700 for ac_exec_ext in '' $ac_executable_extensions; do 6701 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6702 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6704 break 2 6705 fi 6706done 6707 done 6708IFS=$as_save_IFS 6709 6710fi 6711fi 6712OBJDUMP=$ac_cv_prog_OBJDUMP 6713if test -n "$OBJDUMP"; then 6714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6715$as_echo "$OBJDUMP" >&6; } 6716else 6717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6718$as_echo "no" >&6; } 6719fi 6720 6721 6722fi 6723if test -z "$ac_cv_prog_OBJDUMP"; then 6724 ac_ct_OBJDUMP=$OBJDUMP 6725 # Extract the first word of "objdump", so it can be a program name with args. 6726set dummy objdump; ac_word=$2 6727{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6728$as_echo_n "checking for $ac_word... " >&6; } 6729if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6730 $as_echo_n "(cached) " >&6 6731else 6732 if test -n "$ac_ct_OBJDUMP"; then 6733 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6734else 6735as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6736for as_dir in $PATH 6737do 6738 IFS=$as_save_IFS 6739 test -z "$as_dir" && as_dir=. 6740 for ac_exec_ext in '' $ac_executable_extensions; do 6741 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6742 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6743 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6744 break 2 6745 fi 6746done 6747 done 6748IFS=$as_save_IFS 6749 6750fi 6751fi 6752ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6753if test -n "$ac_ct_OBJDUMP"; then 6754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6755$as_echo "$ac_ct_OBJDUMP" >&6; } 6756else 6757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6758$as_echo "no" >&6; } 6759fi 6760 6761 if test "x$ac_ct_OBJDUMP" = x; then 6762 OBJDUMP="false" 6763 else 6764 case $cross_compiling:$ac_tool_warned in 6765yes:) 6766{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6767$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6768ac_tool_warned=yes ;; 6769esac 6770 OBJDUMP=$ac_ct_OBJDUMP 6771 fi 6772else 6773 OBJDUMP="$ac_cv_prog_OBJDUMP" 6774fi 6775 6776test -z "$OBJDUMP" && OBJDUMP=objdump 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6787$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6788if ${lt_cv_deplibs_check_method+:} false; then : 6789 $as_echo_n "(cached) " >&6 6790else 6791 lt_cv_file_magic_cmd='$MAGIC_CMD' 6792lt_cv_file_magic_test_file= 6793lt_cv_deplibs_check_method='unknown' 6794# Need to set the preceding variable on all platforms that support 6795# interlibrary dependencies. 6796# 'none' -- dependencies not supported. 6797# `unknown' -- same as none, but documents that we really don't know. 6798# 'pass_all' -- all dependencies passed with no checks. 6799# 'test_compile' -- check by making test program. 6800# 'file_magic [[regex]]' -- check by looking for files in library path 6801# which responds to the $file_magic_cmd with a given extended regex. 6802# If you have `file' or equivalent on your system and you're not sure 6803# whether `pass_all' will *always* work, you probably want this one. 6804 6805case $host_os in 6806aix[4-9]*) 6807 lt_cv_deplibs_check_method=pass_all 6808 ;; 6809 6810beos*) 6811 lt_cv_deplibs_check_method=pass_all 6812 ;; 6813 6814bsdi[45]*) 6815 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6816 lt_cv_file_magic_cmd='/usr/bin/file -L' 6817 lt_cv_file_magic_test_file=/shlib/libc.so 6818 ;; 6819 6820cygwin*) 6821 # func_win32_libid is a shell function defined in ltmain.sh 6822 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6823 lt_cv_file_magic_cmd='func_win32_libid' 6824 ;; 6825 6826mingw* | pw32*) 6827 # Base MSYS/MinGW do not provide the 'file' command needed by 6828 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6829 # unless we find 'file', for example because we are cross-compiling. 6830 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6831 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6832 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6833 lt_cv_file_magic_cmd='func_win32_libid' 6834 else 6835 # Keep this pattern in sync with the one in func_win32_libid. 6836 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6837 lt_cv_file_magic_cmd='$OBJDUMP -f' 6838 fi 6839 ;; 6840 6841cegcc*) 6842 # use the weaker test based on 'objdump'. See mingw*. 6843 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6844 lt_cv_file_magic_cmd='$OBJDUMP -f' 6845 ;; 6846 6847darwin* | rhapsody*) 6848 lt_cv_deplibs_check_method=pass_all 6849 ;; 6850 6851freebsd* | dragonfly*) 6852 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6853 case $host_cpu in 6854 i*86 ) 6855 # Not sure whether the presence of OpenBSD here was a mistake. 6856 # Let's accept both of them until this is cleared up. 6857 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6858 lt_cv_file_magic_cmd=/usr/bin/file 6859 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6860 ;; 6861 esac 6862 else 6863 lt_cv_deplibs_check_method=pass_all 6864 fi 6865 ;; 6866 6867gnu*) 6868 lt_cv_deplibs_check_method=pass_all 6869 ;; 6870 6871haiku*) 6872 lt_cv_deplibs_check_method=pass_all 6873 ;; 6874 6875hpux10.20* | hpux11*) 6876 lt_cv_file_magic_cmd=/usr/bin/file 6877 case $host_cpu in 6878 ia64*) 6879 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6880 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6881 ;; 6882 hppa*64*) 6883 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]' 6884 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6885 ;; 6886 *) 6887 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6888 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6889 ;; 6890 esac 6891 ;; 6892 6893interix[3-9]*) 6894 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6895 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6896 ;; 6897 6898irix5* | irix6* | nonstopux*) 6899 case $LD in 6900 *-32|*"-32 ") libmagic=32-bit;; 6901 *-n32|*"-n32 ") libmagic=N32;; 6902 *-64|*"-64 ") libmagic=64-bit;; 6903 *) libmagic=never-match;; 6904 esac 6905 lt_cv_deplibs_check_method=pass_all 6906 ;; 6907 6908# This must be Linux ELF. 6909linux* | k*bsd*-gnu | kopensolaris*-gnu) 6910 lt_cv_deplibs_check_method=pass_all 6911 ;; 6912 6913netbsd*) 6914 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6915 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6916 else 6917 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6918 fi 6919 ;; 6920 6921newos6*) 6922 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6923 lt_cv_file_magic_cmd=/usr/bin/file 6924 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6925 ;; 6926 6927*nto* | *qnx*) 6928 lt_cv_deplibs_check_method=pass_all 6929 ;; 6930 6931openbsd*) 6932 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6933 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6934 else 6935 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6936 fi 6937 ;; 6938 6939osf3* | osf4* | osf5*) 6940 lt_cv_deplibs_check_method=pass_all 6941 ;; 6942 6943rdos*) 6944 lt_cv_deplibs_check_method=pass_all 6945 ;; 6946 6947solaris*) 6948 lt_cv_deplibs_check_method=pass_all 6949 ;; 6950 6951sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6952 lt_cv_deplibs_check_method=pass_all 6953 ;; 6954 6955sysv4 | sysv4.3*) 6956 case $host_vendor in 6957 motorola) 6958 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]' 6959 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6960 ;; 6961 ncr) 6962 lt_cv_deplibs_check_method=pass_all 6963 ;; 6964 sequent) 6965 lt_cv_file_magic_cmd='/bin/file' 6966 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6967 ;; 6968 sni) 6969 lt_cv_file_magic_cmd='/bin/file' 6970 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6971 lt_cv_file_magic_test_file=/lib/libc.so 6972 ;; 6973 siemens) 6974 lt_cv_deplibs_check_method=pass_all 6975 ;; 6976 pc) 6977 lt_cv_deplibs_check_method=pass_all 6978 ;; 6979 esac 6980 ;; 6981 6982tpf*) 6983 lt_cv_deplibs_check_method=pass_all 6984 ;; 6985esac 6986 6987fi 6988{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6989$as_echo "$lt_cv_deplibs_check_method" >&6; } 6990file_magic_cmd=$lt_cv_file_magic_cmd 6991deplibs_check_method=$lt_cv_deplibs_check_method 6992test -z "$deplibs_check_method" && deplibs_check_method=unknown 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005if test -n "$ac_tool_prefix"; then 7006 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 7007set dummy ${ac_tool_prefix}ar; ac_word=$2 7008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7009$as_echo_n "checking for $ac_word... " >&6; } 7010if ${ac_cv_prog_AR+:} false; then : 7011 $as_echo_n "(cached) " >&6 7012else 7013 if test -n "$AR"; then 7014 ac_cv_prog_AR="$AR" # Let the user override the test. 7015else 7016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7017for as_dir in $PATH 7018do 7019 IFS=$as_save_IFS 7020 test -z "$as_dir" && as_dir=. 7021 for ac_exec_ext in '' $ac_executable_extensions; do 7022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7023 ac_cv_prog_AR="${ac_tool_prefix}ar" 7024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7025 break 2 7026 fi 7027done 7028 done 7029IFS=$as_save_IFS 7030 7031fi 7032fi 7033AR=$ac_cv_prog_AR 7034if test -n "$AR"; then 7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7036$as_echo "$AR" >&6; } 7037else 7038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7039$as_echo "no" >&6; } 7040fi 7041 7042 7043fi 7044if test -z "$ac_cv_prog_AR"; then 7045 ac_ct_AR=$AR 7046 # Extract the first word of "ar", so it can be a program name with args. 7047set dummy ar; ac_word=$2 7048{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7049$as_echo_n "checking for $ac_word... " >&6; } 7050if ${ac_cv_prog_ac_ct_AR+:} false; then : 7051 $as_echo_n "(cached) " >&6 7052else 7053 if test -n "$ac_ct_AR"; then 7054 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7055else 7056as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7057for as_dir in $PATH 7058do 7059 IFS=$as_save_IFS 7060 test -z "$as_dir" && as_dir=. 7061 for ac_exec_ext in '' $ac_executable_extensions; do 7062 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7063 ac_cv_prog_ac_ct_AR="ar" 7064 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7065 break 2 7066 fi 7067done 7068 done 7069IFS=$as_save_IFS 7070 7071fi 7072fi 7073ac_ct_AR=$ac_cv_prog_ac_ct_AR 7074if test -n "$ac_ct_AR"; then 7075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7076$as_echo "$ac_ct_AR" >&6; } 7077else 7078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7079$as_echo "no" >&6; } 7080fi 7081 7082 if test "x$ac_ct_AR" = x; then 7083 AR="false" 7084 else 7085 case $cross_compiling:$ac_tool_warned in 7086yes:) 7087{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7088$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7089ac_tool_warned=yes ;; 7090esac 7091 AR=$ac_ct_AR 7092 fi 7093else 7094 AR="$ac_cv_prog_AR" 7095fi 7096 7097test -z "$AR" && AR=ar 7098test -z "$AR_FLAGS" && AR_FLAGS=cru 7099 7100 7101 7102 7103 7104 7105 7106 7107 7108 7109 7110if test -n "$ac_tool_prefix"; then 7111 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7112set dummy ${ac_tool_prefix}strip; ac_word=$2 7113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7114$as_echo_n "checking for $ac_word... " >&6; } 7115if ${ac_cv_prog_STRIP+:} false; then : 7116 $as_echo_n "(cached) " >&6 7117else 7118 if test -n "$STRIP"; then 7119 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7120else 7121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7122for as_dir in $PATH 7123do 7124 IFS=$as_save_IFS 7125 test -z "$as_dir" && as_dir=. 7126 for ac_exec_ext in '' $ac_executable_extensions; do 7127 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7128 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7130 break 2 7131 fi 7132done 7133 done 7134IFS=$as_save_IFS 7135 7136fi 7137fi 7138STRIP=$ac_cv_prog_STRIP 7139if test -n "$STRIP"; then 7140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7141$as_echo "$STRIP" >&6; } 7142else 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7144$as_echo "no" >&6; } 7145fi 7146 7147 7148fi 7149if test -z "$ac_cv_prog_STRIP"; then 7150 ac_ct_STRIP=$STRIP 7151 # Extract the first word of "strip", so it can be a program name with args. 7152set dummy strip; ac_word=$2 7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7154$as_echo_n "checking for $ac_word... " >&6; } 7155if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7156 $as_echo_n "(cached) " >&6 7157else 7158 if test -n "$ac_ct_STRIP"; then 7159 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7160else 7161as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7162for as_dir in $PATH 7163do 7164 IFS=$as_save_IFS 7165 test -z "$as_dir" && as_dir=. 7166 for ac_exec_ext in '' $ac_executable_extensions; do 7167 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7168 ac_cv_prog_ac_ct_STRIP="strip" 7169 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7170 break 2 7171 fi 7172done 7173 done 7174IFS=$as_save_IFS 7175 7176fi 7177fi 7178ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7179if test -n "$ac_ct_STRIP"; then 7180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7181$as_echo "$ac_ct_STRIP" >&6; } 7182else 7183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7184$as_echo "no" >&6; } 7185fi 7186 7187 if test "x$ac_ct_STRIP" = x; then 7188 STRIP=":" 7189 else 7190 case $cross_compiling:$ac_tool_warned in 7191yes:) 7192{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7193$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7194ac_tool_warned=yes ;; 7195esac 7196 STRIP=$ac_ct_STRIP 7197 fi 7198else 7199 STRIP="$ac_cv_prog_STRIP" 7200fi 7201 7202test -z "$STRIP" && STRIP=: 7203 7204 7205 7206 7207 7208 7209if test -n "$ac_tool_prefix"; then 7210 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7211set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7213$as_echo_n "checking for $ac_word... " >&6; } 7214if ${ac_cv_prog_RANLIB+:} false; then : 7215 $as_echo_n "(cached) " >&6 7216else 7217 if test -n "$RANLIB"; then 7218 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7219else 7220as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7221for as_dir in $PATH 7222do 7223 IFS=$as_save_IFS 7224 test -z "$as_dir" && as_dir=. 7225 for ac_exec_ext in '' $ac_executable_extensions; do 7226 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7227 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7228 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7229 break 2 7230 fi 7231done 7232 done 7233IFS=$as_save_IFS 7234 7235fi 7236fi 7237RANLIB=$ac_cv_prog_RANLIB 7238if test -n "$RANLIB"; then 7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7240$as_echo "$RANLIB" >&6; } 7241else 7242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7243$as_echo "no" >&6; } 7244fi 7245 7246 7247fi 7248if test -z "$ac_cv_prog_RANLIB"; then 7249 ac_ct_RANLIB=$RANLIB 7250 # Extract the first word of "ranlib", so it can be a program name with args. 7251set dummy ranlib; ac_word=$2 7252{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7253$as_echo_n "checking for $ac_word... " >&6; } 7254if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7255 $as_echo_n "(cached) " >&6 7256else 7257 if test -n "$ac_ct_RANLIB"; then 7258 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7259else 7260as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7261for as_dir in $PATH 7262do 7263 IFS=$as_save_IFS 7264 test -z "$as_dir" && as_dir=. 7265 for ac_exec_ext in '' $ac_executable_extensions; do 7266 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7267 ac_cv_prog_ac_ct_RANLIB="ranlib" 7268 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7269 break 2 7270 fi 7271done 7272 done 7273IFS=$as_save_IFS 7274 7275fi 7276fi 7277ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7278if test -n "$ac_ct_RANLIB"; then 7279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7280$as_echo "$ac_ct_RANLIB" >&6; } 7281else 7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7283$as_echo "no" >&6; } 7284fi 7285 7286 if test "x$ac_ct_RANLIB" = x; then 7287 RANLIB=":" 7288 else 7289 case $cross_compiling:$ac_tool_warned in 7290yes:) 7291{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7292$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7293ac_tool_warned=yes ;; 7294esac 7295 RANLIB=$ac_ct_RANLIB 7296 fi 7297else 7298 RANLIB="$ac_cv_prog_RANLIB" 7299fi 7300 7301test -z "$RANLIB" && RANLIB=: 7302 7303 7304 7305 7306 7307 7308# Determine commands to create old-style static archives. 7309old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7310old_postinstall_cmds='chmod 644 $oldlib' 7311old_postuninstall_cmds= 7312 7313if test -n "$RANLIB"; then 7314 case $host_os in 7315 openbsd*) 7316 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 7317 ;; 7318 *) 7319 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 7320 ;; 7321 esac 7322 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 7323fi 7324 7325case $host_os in 7326 darwin*) 7327 lock_old_archive_extraction=yes ;; 7328 *) 7329 lock_old_archive_extraction=no ;; 7330esac 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370# If no C compiler was specified, use CC. 7371LTCC=${LTCC-"$CC"} 7372 7373# If no C compiler flags were specified, use CFLAGS. 7374LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7375 7376# Allow CC to be a program name with arguments. 7377compiler=$CC 7378 7379 7380# Check for command to grab the raw symbol name followed by C symbol from nm. 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7382$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7383if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7384 $as_echo_n "(cached) " >&6 7385else 7386 7387# These are sane defaults that work on at least a few old systems. 7388# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7389 7390# Character class describing NM global symbol codes. 7391symcode='[BCDEGRST]' 7392 7393# Regexp to match symbols that can be accessed directly from C. 7394sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7395 7396# Define system-specific variables. 7397case $host_os in 7398aix*) 7399 symcode='[BCDT]' 7400 ;; 7401cygwin* | mingw* | pw32* | cegcc*) 7402 symcode='[ABCDGISTW]' 7403 ;; 7404hpux*) 7405 if test "$host_cpu" = ia64; then 7406 symcode='[ABCDEGRST]' 7407 fi 7408 ;; 7409irix* | nonstopux*) 7410 symcode='[BCDEGRST]' 7411 ;; 7412osf*) 7413 symcode='[BCDEGQRST]' 7414 ;; 7415solaris*) 7416 symcode='[BDRT]' 7417 ;; 7418sco3.2v5*) 7419 symcode='[DT]' 7420 ;; 7421sysv4.2uw2*) 7422 symcode='[DT]' 7423 ;; 7424sysv5* | sco5v6* | unixware* | OpenUNIX*) 7425 symcode='[ABDT]' 7426 ;; 7427sysv4) 7428 symcode='[DFNSTU]' 7429 ;; 7430esac 7431 7432# If we're using GNU nm, then use its standard symbol codes. 7433case `$NM -V 2>&1` in 7434*GNU* | *'with BFD'*) 7435 symcode='[ABCDGIRSTW]' ;; 7436esac 7437 7438# Transform an extracted symbol line into a proper C declaration. 7439# Some systems (esp. on ia64) link data and code symbols differently, 7440# so use this general approach. 7441lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 7442 7443# Transform an extracted symbol line into symbol name and symbol address 7444lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 7445lt_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'" 7446 7447# Handle CRLF in mingw tool chain 7448opt_cr= 7449case $build_os in 7450mingw*) 7451 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7452 ;; 7453esac 7454 7455# Try without a prefix underscore, then with it. 7456for ac_symprfx in "" "_"; do 7457 7458 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7459 symxfrm="\\1 $ac_symprfx\\2 \\2" 7460 7461 # Write the raw and C identifiers. 7462 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7463 # Fake it for dumpbin and say T for any non-static function 7464 # and D for any global variable. 7465 # Also find C++ and __fastcall symbols from MSVC++, 7466 # which start with @ or ?. 7467 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7468" {last_section=section; section=\$ 3};"\ 7469" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7470" \$ 0!~/External *\|/{next};"\ 7471" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7472" {if(hide[section]) next};"\ 7473" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7474" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7475" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7476" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7477" ' prfx=^$ac_symprfx" 7478 else 7479 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7480 fi 7481 7482 # Check to see that the pipe works correctly. 7483 pipe_works=no 7484 7485 rm -f conftest* 7486 cat > conftest.$ac_ext <<_LT_EOF 7487#ifdef __cplusplus 7488extern "C" { 7489#endif 7490char nm_test_var; 7491void nm_test_func(void); 7492void nm_test_func(void){} 7493#ifdef __cplusplus 7494} 7495#endif 7496int main(){nm_test_var='a';nm_test_func();return(0);} 7497_LT_EOF 7498 7499 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7500 (eval $ac_compile) 2>&5 7501 ac_status=$? 7502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7503 test $ac_status = 0; }; then 7504 # Now try to grab the symbols. 7505 nlist=conftest.nm 7506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7507 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7508 ac_status=$? 7509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7510 test $ac_status = 0; } && test -s "$nlist"; then 7511 # Try sorting and uniquifying the output. 7512 if sort "$nlist" | uniq > "$nlist"T; then 7513 mv -f "$nlist"T "$nlist" 7514 else 7515 rm -f "$nlist"T 7516 fi 7517 7518 # Make sure that we snagged all the symbols we need. 7519 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7520 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7521 cat <<_LT_EOF > conftest.$ac_ext 7522#ifdef __cplusplus 7523extern "C" { 7524#endif 7525 7526_LT_EOF 7527 # Now generate the symbol file. 7528 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7529 7530 cat <<_LT_EOF >> conftest.$ac_ext 7531 7532/* The mapping between symbol names and symbols. */ 7533const struct { 7534 const char *name; 7535 void *address; 7536} 7537lt__PROGRAM__LTX_preloaded_symbols[] = 7538{ 7539 { "@PROGRAM@", (void *) 0 }, 7540_LT_EOF 7541 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7542 cat <<\_LT_EOF >> conftest.$ac_ext 7543 {0, (void *) 0} 7544}; 7545 7546/* This works around a problem in FreeBSD linker */ 7547#ifdef FREEBSD_WORKAROUND 7548static const void *lt_preloaded_setup() { 7549 return lt__PROGRAM__LTX_preloaded_symbols; 7550} 7551#endif 7552 7553#ifdef __cplusplus 7554} 7555#endif 7556_LT_EOF 7557 # Now try linking the two files. 7558 mv conftest.$ac_objext conftstm.$ac_objext 7559 lt_save_LIBS="$LIBS" 7560 lt_save_CFLAGS="$CFLAGS" 7561 LIBS="conftstm.$ac_objext" 7562 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7563 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7564 (eval $ac_link) 2>&5 7565 ac_status=$? 7566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7567 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7568 pipe_works=yes 7569 fi 7570 LIBS="$lt_save_LIBS" 7571 CFLAGS="$lt_save_CFLAGS" 7572 else 7573 echo "cannot find nm_test_func in $nlist" >&5 7574 fi 7575 else 7576 echo "cannot find nm_test_var in $nlist" >&5 7577 fi 7578 else 7579 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7580 fi 7581 else 7582 echo "$progname: failed program was:" >&5 7583 cat conftest.$ac_ext >&5 7584 fi 7585 rm -rf conftest* conftst* 7586 7587 # Do not use the global_symbol_pipe unless it works. 7588 if test "$pipe_works" = yes; then 7589 break 7590 else 7591 lt_cv_sys_global_symbol_pipe= 7592 fi 7593done 7594 7595fi 7596 7597if test -z "$lt_cv_sys_global_symbol_pipe"; then 7598 lt_cv_sys_global_symbol_to_cdecl= 7599fi 7600if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7602$as_echo "failed" >&6; } 7603else 7604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7605$as_echo "ok" >&6; } 7606fi 7607 7608 7609 7610 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629# Check whether --enable-libtool-lock was given. 7630if test "${enable_libtool_lock+set}" = set; then : 7631 enableval=$enable_libtool_lock; 7632fi 7633 7634test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7635 7636# Some flags need to be propagated to the compiler or linker for good 7637# libtool support. 7638case $host in 7639ia64-*-hpux*) 7640 # Find out which ABI we are using. 7641 echo 'int i;' > conftest.$ac_ext 7642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7643 (eval $ac_compile) 2>&5 7644 ac_status=$? 7645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7646 test $ac_status = 0; }; then 7647 case `/usr/bin/file conftest.$ac_objext` in 7648 *ELF-32*) 7649 HPUX_IA64_MODE="32" 7650 ;; 7651 *ELF-64*) 7652 HPUX_IA64_MODE="64" 7653 ;; 7654 esac 7655 fi 7656 rm -rf conftest* 7657 ;; 7658*-*-irix6*) 7659 # Find out which ABI we are using. 7660 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7661 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7662 (eval $ac_compile) 2>&5 7663 ac_status=$? 7664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7665 test $ac_status = 0; }; then 7666 if test "$lt_cv_prog_gnu_ld" = yes; then 7667 case `/usr/bin/file conftest.$ac_objext` in 7668 *32-bit*) 7669 LD="${LD-ld} -melf32bsmip" 7670 ;; 7671 *N32*) 7672 LD="${LD-ld} -melf32bmipn32" 7673 ;; 7674 *64-bit*) 7675 LD="${LD-ld} -melf64bmip" 7676 ;; 7677 esac 7678 else 7679 case `/usr/bin/file conftest.$ac_objext` in 7680 *32-bit*) 7681 LD="${LD-ld} -32" 7682 ;; 7683 *N32*) 7684 LD="${LD-ld} -n32" 7685 ;; 7686 *64-bit*) 7687 LD="${LD-ld} -64" 7688 ;; 7689 esac 7690 fi 7691 fi 7692 rm -rf conftest* 7693 ;; 7694 7695x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7696s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7697 # Find out which ABI we are using. 7698 echo 'int i;' > conftest.$ac_ext 7699 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7700 (eval $ac_compile) 2>&5 7701 ac_status=$? 7702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7703 test $ac_status = 0; }; then 7704 case `/usr/bin/file conftest.o` in 7705 *32-bit*) 7706 case $host in 7707 x86_64-*kfreebsd*-gnu) 7708 LD="${LD-ld} -m elf_i386_fbsd" 7709 ;; 7710 x86_64-*linux*) 7711 LD="${LD-ld} -m elf_i386" 7712 ;; 7713 ppc64-*linux*|powerpc64-*linux*) 7714 LD="${LD-ld} -m elf32ppclinux" 7715 ;; 7716 s390x-*linux*) 7717 LD="${LD-ld} -m elf_s390" 7718 ;; 7719 sparc64-*linux*) 7720 LD="${LD-ld} -m elf32_sparc" 7721 ;; 7722 esac 7723 ;; 7724 *64-bit*) 7725 case $host in 7726 x86_64-*kfreebsd*-gnu) 7727 LD="${LD-ld} -m elf_x86_64_fbsd" 7728 ;; 7729 x86_64-*linux*) 7730 LD="${LD-ld} -m elf_x86_64" 7731 ;; 7732 ppc*-*linux*|powerpc*-*linux*) 7733 LD="${LD-ld} -m elf64ppc" 7734 ;; 7735 s390*-*linux*|s390*-*tpf*) 7736 LD="${LD-ld} -m elf64_s390" 7737 ;; 7738 sparc*-*linux*) 7739 LD="${LD-ld} -m elf64_sparc" 7740 ;; 7741 esac 7742 ;; 7743 esac 7744 fi 7745 rm -rf conftest* 7746 ;; 7747 7748*-*-sco3.2v5*) 7749 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7750 SAVE_CFLAGS="$CFLAGS" 7751 CFLAGS="$CFLAGS -belf" 7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7753$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7754if ${lt_cv_cc_needs_belf+:} false; then : 7755 $as_echo_n "(cached) " >&6 7756else 7757 ac_ext=c 7758ac_cpp='$CPP $CPPFLAGS' 7759ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7760ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7761ac_compiler_gnu=$ac_cv_c_compiler_gnu 7762 7763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7764/* end confdefs.h. */ 7765 7766int 7767main () 7768{ 7769 7770 ; 7771 return 0; 7772} 7773_ACEOF 7774if ac_fn_c_try_link "$LINENO"; then : 7775 lt_cv_cc_needs_belf=yes 7776else 7777 lt_cv_cc_needs_belf=no 7778fi 7779rm -f core conftest.err conftest.$ac_objext \ 7780 conftest$ac_exeext conftest.$ac_ext 7781 ac_ext=c 7782ac_cpp='$CPP $CPPFLAGS' 7783ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7784ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7785ac_compiler_gnu=$ac_cv_c_compiler_gnu 7786 7787fi 7788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7789$as_echo "$lt_cv_cc_needs_belf" >&6; } 7790 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7791 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7792 CFLAGS="$SAVE_CFLAGS" 7793 fi 7794 ;; 7795sparc*-*solaris*) 7796 # Find out which ABI we are using. 7797 echo 'int i;' > conftest.$ac_ext 7798 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7799 (eval $ac_compile) 2>&5 7800 ac_status=$? 7801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7802 test $ac_status = 0; }; then 7803 case `/usr/bin/file conftest.o` in 7804 *64-bit*) 7805 case $lt_cv_prog_gnu_ld in 7806 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7807 *) 7808 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7809 LD="${LD-ld} -64" 7810 fi 7811 ;; 7812 esac 7813 ;; 7814 esac 7815 fi 7816 rm -rf conftest* 7817 ;; 7818esac 7819 7820need_locks="$enable_libtool_lock" 7821 7822 7823 case $host_os in 7824 rhapsody* | darwin*) 7825 if test -n "$ac_tool_prefix"; then 7826 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7827set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7829$as_echo_n "checking for $ac_word... " >&6; } 7830if ${ac_cv_prog_DSYMUTIL+:} false; then : 7831 $as_echo_n "(cached) " >&6 7832else 7833 if test -n "$DSYMUTIL"; then 7834 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7835else 7836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7837for as_dir in $PATH 7838do 7839 IFS=$as_save_IFS 7840 test -z "$as_dir" && as_dir=. 7841 for ac_exec_ext in '' $ac_executable_extensions; do 7842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7843 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7845 break 2 7846 fi 7847done 7848 done 7849IFS=$as_save_IFS 7850 7851fi 7852fi 7853DSYMUTIL=$ac_cv_prog_DSYMUTIL 7854if test -n "$DSYMUTIL"; then 7855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7856$as_echo "$DSYMUTIL" >&6; } 7857else 7858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7859$as_echo "no" >&6; } 7860fi 7861 7862 7863fi 7864if test -z "$ac_cv_prog_DSYMUTIL"; then 7865 ac_ct_DSYMUTIL=$DSYMUTIL 7866 # Extract the first word of "dsymutil", so it can be a program name with args. 7867set dummy dsymutil; ac_word=$2 7868{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7869$as_echo_n "checking for $ac_word... " >&6; } 7870if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7871 $as_echo_n "(cached) " >&6 7872else 7873 if test -n "$ac_ct_DSYMUTIL"; then 7874 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7875else 7876as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7877for as_dir in $PATH 7878do 7879 IFS=$as_save_IFS 7880 test -z "$as_dir" && as_dir=. 7881 for ac_exec_ext in '' $ac_executable_extensions; do 7882 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7883 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7884 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7885 break 2 7886 fi 7887done 7888 done 7889IFS=$as_save_IFS 7890 7891fi 7892fi 7893ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7894if test -n "$ac_ct_DSYMUTIL"; then 7895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7896$as_echo "$ac_ct_DSYMUTIL" >&6; } 7897else 7898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7899$as_echo "no" >&6; } 7900fi 7901 7902 if test "x$ac_ct_DSYMUTIL" = x; then 7903 DSYMUTIL=":" 7904 else 7905 case $cross_compiling:$ac_tool_warned in 7906yes:) 7907{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7908$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7909ac_tool_warned=yes ;; 7910esac 7911 DSYMUTIL=$ac_ct_DSYMUTIL 7912 fi 7913else 7914 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7915fi 7916 7917 if test -n "$ac_tool_prefix"; then 7918 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7919set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7920{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7921$as_echo_n "checking for $ac_word... " >&6; } 7922if ${ac_cv_prog_NMEDIT+:} false; then : 7923 $as_echo_n "(cached) " >&6 7924else 7925 if test -n "$NMEDIT"; then 7926 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7927else 7928as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7929for as_dir in $PATH 7930do 7931 IFS=$as_save_IFS 7932 test -z "$as_dir" && as_dir=. 7933 for ac_exec_ext in '' $ac_executable_extensions; do 7934 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7935 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7936 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7937 break 2 7938 fi 7939done 7940 done 7941IFS=$as_save_IFS 7942 7943fi 7944fi 7945NMEDIT=$ac_cv_prog_NMEDIT 7946if test -n "$NMEDIT"; then 7947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7948$as_echo "$NMEDIT" >&6; } 7949else 7950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7951$as_echo "no" >&6; } 7952fi 7953 7954 7955fi 7956if test -z "$ac_cv_prog_NMEDIT"; then 7957 ac_ct_NMEDIT=$NMEDIT 7958 # Extract the first word of "nmedit", so it can be a program name with args. 7959set dummy nmedit; ac_word=$2 7960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7961$as_echo_n "checking for $ac_word... " >&6; } 7962if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7963 $as_echo_n "(cached) " >&6 7964else 7965 if test -n "$ac_ct_NMEDIT"; then 7966 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7967else 7968as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7969for as_dir in $PATH 7970do 7971 IFS=$as_save_IFS 7972 test -z "$as_dir" && as_dir=. 7973 for ac_exec_ext in '' $ac_executable_extensions; do 7974 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7975 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7976 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7977 break 2 7978 fi 7979done 7980 done 7981IFS=$as_save_IFS 7982 7983fi 7984fi 7985ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7986if test -n "$ac_ct_NMEDIT"; then 7987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7988$as_echo "$ac_ct_NMEDIT" >&6; } 7989else 7990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7991$as_echo "no" >&6; } 7992fi 7993 7994 if test "x$ac_ct_NMEDIT" = x; then 7995 NMEDIT=":" 7996 else 7997 case $cross_compiling:$ac_tool_warned in 7998yes:) 7999{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8000$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8001ac_tool_warned=yes ;; 8002esac 8003 NMEDIT=$ac_ct_NMEDIT 8004 fi 8005else 8006 NMEDIT="$ac_cv_prog_NMEDIT" 8007fi 8008 8009 if test -n "$ac_tool_prefix"; then 8010 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8011set dummy ${ac_tool_prefix}lipo; ac_word=$2 8012{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8013$as_echo_n "checking for $ac_word... " >&6; } 8014if ${ac_cv_prog_LIPO+:} false; then : 8015 $as_echo_n "(cached) " >&6 8016else 8017 if test -n "$LIPO"; then 8018 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8019else 8020as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8021for as_dir in $PATH 8022do 8023 IFS=$as_save_IFS 8024 test -z "$as_dir" && as_dir=. 8025 for ac_exec_ext in '' $ac_executable_extensions; do 8026 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8027 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8028 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8029 break 2 8030 fi 8031done 8032 done 8033IFS=$as_save_IFS 8034 8035fi 8036fi 8037LIPO=$ac_cv_prog_LIPO 8038if test -n "$LIPO"; then 8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8040$as_echo "$LIPO" >&6; } 8041else 8042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8043$as_echo "no" >&6; } 8044fi 8045 8046 8047fi 8048if test -z "$ac_cv_prog_LIPO"; then 8049 ac_ct_LIPO=$LIPO 8050 # Extract the first word of "lipo", so it can be a program name with args. 8051set dummy lipo; ac_word=$2 8052{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8053$as_echo_n "checking for $ac_word... " >&6; } 8054if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8055 $as_echo_n "(cached) " >&6 8056else 8057 if test -n "$ac_ct_LIPO"; then 8058 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8059else 8060as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8061for as_dir in $PATH 8062do 8063 IFS=$as_save_IFS 8064 test -z "$as_dir" && as_dir=. 8065 for ac_exec_ext in '' $ac_executable_extensions; do 8066 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8067 ac_cv_prog_ac_ct_LIPO="lipo" 8068 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8069 break 2 8070 fi 8071done 8072 done 8073IFS=$as_save_IFS 8074 8075fi 8076fi 8077ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8078if test -n "$ac_ct_LIPO"; then 8079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8080$as_echo "$ac_ct_LIPO" >&6; } 8081else 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8083$as_echo "no" >&6; } 8084fi 8085 8086 if test "x$ac_ct_LIPO" = x; then 8087 LIPO=":" 8088 else 8089 case $cross_compiling:$ac_tool_warned in 8090yes:) 8091{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8092$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8093ac_tool_warned=yes ;; 8094esac 8095 LIPO=$ac_ct_LIPO 8096 fi 8097else 8098 LIPO="$ac_cv_prog_LIPO" 8099fi 8100 8101 if test -n "$ac_tool_prefix"; then 8102 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8103set dummy ${ac_tool_prefix}otool; ac_word=$2 8104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8105$as_echo_n "checking for $ac_word... " >&6; } 8106if ${ac_cv_prog_OTOOL+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 if test -n "$OTOOL"; then 8110 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8111else 8112as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8113for as_dir in $PATH 8114do 8115 IFS=$as_save_IFS 8116 test -z "$as_dir" && as_dir=. 8117 for ac_exec_ext in '' $ac_executable_extensions; do 8118 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8119 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8121 break 2 8122 fi 8123done 8124 done 8125IFS=$as_save_IFS 8126 8127fi 8128fi 8129OTOOL=$ac_cv_prog_OTOOL 8130if test -n "$OTOOL"; then 8131 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8132$as_echo "$OTOOL" >&6; } 8133else 8134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8135$as_echo "no" >&6; } 8136fi 8137 8138 8139fi 8140if test -z "$ac_cv_prog_OTOOL"; then 8141 ac_ct_OTOOL=$OTOOL 8142 # Extract the first word of "otool", so it can be a program name with args. 8143set dummy otool; ac_word=$2 8144{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8145$as_echo_n "checking for $ac_word... " >&6; } 8146if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8147 $as_echo_n "(cached) " >&6 8148else 8149 if test -n "$ac_ct_OTOOL"; then 8150 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8151else 8152as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8153for as_dir in $PATH 8154do 8155 IFS=$as_save_IFS 8156 test -z "$as_dir" && as_dir=. 8157 for ac_exec_ext in '' $ac_executable_extensions; do 8158 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8159 ac_cv_prog_ac_ct_OTOOL="otool" 8160 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8161 break 2 8162 fi 8163done 8164 done 8165IFS=$as_save_IFS 8166 8167fi 8168fi 8169ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8170if test -n "$ac_ct_OTOOL"; then 8171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8172$as_echo "$ac_ct_OTOOL" >&6; } 8173else 8174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8175$as_echo "no" >&6; } 8176fi 8177 8178 if test "x$ac_ct_OTOOL" = x; then 8179 OTOOL=":" 8180 else 8181 case $cross_compiling:$ac_tool_warned in 8182yes:) 8183{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8184$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8185ac_tool_warned=yes ;; 8186esac 8187 OTOOL=$ac_ct_OTOOL 8188 fi 8189else 8190 OTOOL="$ac_cv_prog_OTOOL" 8191fi 8192 8193 if test -n "$ac_tool_prefix"; then 8194 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8195set dummy ${ac_tool_prefix}otool64; ac_word=$2 8196{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8197$as_echo_n "checking for $ac_word... " >&6; } 8198if ${ac_cv_prog_OTOOL64+:} false; then : 8199 $as_echo_n "(cached) " >&6 8200else 8201 if test -n "$OTOOL64"; then 8202 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8203else 8204as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8205for as_dir in $PATH 8206do 8207 IFS=$as_save_IFS 8208 test -z "$as_dir" && as_dir=. 8209 for ac_exec_ext in '' $ac_executable_extensions; do 8210 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8211 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8213 break 2 8214 fi 8215done 8216 done 8217IFS=$as_save_IFS 8218 8219fi 8220fi 8221OTOOL64=$ac_cv_prog_OTOOL64 8222if test -n "$OTOOL64"; then 8223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8224$as_echo "$OTOOL64" >&6; } 8225else 8226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8227$as_echo "no" >&6; } 8228fi 8229 8230 8231fi 8232if test -z "$ac_cv_prog_OTOOL64"; then 8233 ac_ct_OTOOL64=$OTOOL64 8234 # Extract the first word of "otool64", so it can be a program name with args. 8235set dummy otool64; ac_word=$2 8236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8237$as_echo_n "checking for $ac_word... " >&6; } 8238if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8239 $as_echo_n "(cached) " >&6 8240else 8241 if test -n "$ac_ct_OTOOL64"; then 8242 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8243else 8244as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8245for as_dir in $PATH 8246do 8247 IFS=$as_save_IFS 8248 test -z "$as_dir" && as_dir=. 8249 for ac_exec_ext in '' $ac_executable_extensions; do 8250 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 8251 ac_cv_prog_ac_ct_OTOOL64="otool64" 8252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8253 break 2 8254 fi 8255done 8256 done 8257IFS=$as_save_IFS 8258 8259fi 8260fi 8261ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8262if test -n "$ac_ct_OTOOL64"; then 8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8264$as_echo "$ac_ct_OTOOL64" >&6; } 8265else 8266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8267$as_echo "no" >&6; } 8268fi 8269 8270 if test "x$ac_ct_OTOOL64" = x; then 8271 OTOOL64=":" 8272 else 8273 case $cross_compiling:$ac_tool_warned in 8274yes:) 8275{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8276$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8277ac_tool_warned=yes ;; 8278esac 8279 OTOOL64=$ac_ct_OTOOL64 8280 fi 8281else 8282 OTOOL64="$ac_cv_prog_OTOOL64" 8283fi 8284 8285 8286 8287 8288 8289 8290 8291 8292 8293 8294 8295 8296 8297 8298 8299 8300 8301 8302 8303 8304 8305 8306 8307 8308 8309 8310 8311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8312$as_echo_n "checking for -single_module linker flag... " >&6; } 8313if ${lt_cv_apple_cc_single_mod+:} false; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 lt_cv_apple_cc_single_mod=no 8317 if test -z "${LT_MULTI_MODULE}"; then 8318 # By default we will add the -single_module flag. You can override 8319 # by either setting the environment variable LT_MULTI_MODULE 8320 # non-empty at configure time, or by adding -multi_module to the 8321 # link flags. 8322 rm -rf libconftest.dylib* 8323 echo "int foo(void){return 1;}" > conftest.c 8324 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8325-dynamiclib -Wl,-single_module conftest.c" >&5 8326 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8327 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8328 _lt_result=$? 8329 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 8330 lt_cv_apple_cc_single_mod=yes 8331 else 8332 cat conftest.err >&5 8333 fi 8334 rm -rf libconftest.dylib* 8335 rm -f conftest.* 8336 fi 8337fi 8338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8339$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8341$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8342if ${lt_cv_ld_exported_symbols_list+:} false; then : 8343 $as_echo_n "(cached) " >&6 8344else 8345 lt_cv_ld_exported_symbols_list=no 8346 save_LDFLAGS=$LDFLAGS 8347 echo "_main" > conftest.sym 8348 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8350/* end confdefs.h. */ 8351 8352int 8353main () 8354{ 8355 8356 ; 8357 return 0; 8358} 8359_ACEOF 8360if ac_fn_c_try_link "$LINENO"; then : 8361 lt_cv_ld_exported_symbols_list=yes 8362else 8363 lt_cv_ld_exported_symbols_list=no 8364fi 8365rm -f core conftest.err conftest.$ac_objext \ 8366 conftest$ac_exeext conftest.$ac_ext 8367 LDFLAGS="$save_LDFLAGS" 8368 8369fi 8370{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8371$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8373$as_echo_n "checking for -force_load linker flag... " >&6; } 8374if ${lt_cv_ld_force_load+:} false; then : 8375 $as_echo_n "(cached) " >&6 8376else 8377 lt_cv_ld_force_load=no 8378 cat > conftest.c << _LT_EOF 8379int forced_loaded() { return 2;} 8380_LT_EOF 8381 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8382 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8383 echo "$AR cru libconftest.a conftest.o" >&5 8384 $AR cru libconftest.a conftest.o 2>&5 8385 echo "$RANLIB libconftest.a" >&5 8386 $RANLIB libconftest.a 2>&5 8387 cat > conftest.c << _LT_EOF 8388int main() { return 0;} 8389_LT_EOF 8390 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8391 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8392 _lt_result=$? 8393 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 8394 lt_cv_ld_force_load=yes 8395 else 8396 cat conftest.err >&5 8397 fi 8398 rm -f conftest.err libconftest.a conftest conftest.c 8399 rm -rf conftest.dSYM 8400 8401fi 8402{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8403$as_echo "$lt_cv_ld_force_load" >&6; } 8404 case $host_os in 8405 rhapsody* | darwin1.[012]) 8406 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 8407 darwin1.*) 8408 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8409 darwin*) # darwin 5.x on 8410 # if running on 10.5 or later, the deployment target defaults 8411 # to the OS version, if on x86, and 10.4, the deployment 8412 # target defaults to 10.4. Don't you love it? 8413 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8414 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8415 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8416 10.[012]*) 8417 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 8418 10.*) 8419 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 8420 esac 8421 ;; 8422 esac 8423 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 8424 _lt_dar_single_mod='$single_module' 8425 fi 8426 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 8427 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 8428 else 8429 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 8430 fi 8431 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 8432 _lt_dsymutil='~$DSYMUTIL $lib || :' 8433 else 8434 _lt_dsymutil= 8435 fi 8436 ;; 8437 esac 8438 8439for ac_header in dlfcn.h 8440do : 8441 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 8442" 8443if test "x$ac_cv_header_dlfcn_h" = xyes; then : 8444 cat >>confdefs.h <<_ACEOF 8445#define HAVE_DLFCN_H 1 8446_ACEOF 8447 8448fi 8449 8450done 8451 8452 8453 8454 8455 8456# Set options 8457 8458 8459 8460 enable_dlopen=no 8461 8462 8463 enable_win32_dll=no 8464 8465 8466 # Check whether --enable-shared was given. 8467if test "${enable_shared+set}" = set; then : 8468 enableval=$enable_shared; p=${PACKAGE-default} 8469 case $enableval in 8470 yes) enable_shared=yes ;; 8471 no) enable_shared=no ;; 8472 *) 8473 enable_shared=no 8474 # Look at the argument we got. We use all the common list separators. 8475 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8476 for pkg in $enableval; do 8477 IFS="$lt_save_ifs" 8478 if test "X$pkg" = "X$p"; then 8479 enable_shared=yes 8480 fi 8481 done 8482 IFS="$lt_save_ifs" 8483 ;; 8484 esac 8485else 8486 enable_shared=yes 8487fi 8488 8489 8490 8491 8492 8493 8494 8495 8496 8497 # Check whether --enable-static was given. 8498if test "${enable_static+set}" = set; then : 8499 enableval=$enable_static; p=${PACKAGE-default} 8500 case $enableval in 8501 yes) enable_static=yes ;; 8502 no) enable_static=no ;; 8503 *) 8504 enable_static=no 8505 # Look at the argument we got. We use all the common list separators. 8506 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8507 for pkg in $enableval; do 8508 IFS="$lt_save_ifs" 8509 if test "X$pkg" = "X$p"; then 8510 enable_static=yes 8511 fi 8512 done 8513 IFS="$lt_save_ifs" 8514 ;; 8515 esac 8516else 8517 enable_static=yes 8518fi 8519 8520 8521 8522 8523 8524 8525 8526 8527 8528 8529# Check whether --with-pic was given. 8530if test "${with_pic+set}" = set; then : 8531 withval=$with_pic; pic_mode="$withval" 8532else 8533 pic_mode=default 8534fi 8535 8536 8537test -z "$pic_mode" && pic_mode=default 8538 8539 8540 8541 8542 8543 8544 8545 # Check whether --enable-fast-install was given. 8546if test "${enable_fast_install+set}" = set; then : 8547 enableval=$enable_fast_install; p=${PACKAGE-default} 8548 case $enableval in 8549 yes) enable_fast_install=yes ;; 8550 no) enable_fast_install=no ;; 8551 *) 8552 enable_fast_install=no 8553 # Look at the argument we got. We use all the common list separators. 8554 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8555 for pkg in $enableval; do 8556 IFS="$lt_save_ifs" 8557 if test "X$pkg" = "X$p"; then 8558 enable_fast_install=yes 8559 fi 8560 done 8561 IFS="$lt_save_ifs" 8562 ;; 8563 esac 8564else 8565 enable_fast_install=yes 8566fi 8567 8568 8569 8570 8571 8572 8573 8574 8575 8576 8577 8578# This can be used to rebuild libtool when needed 8579LIBTOOL_DEPS="$ltmain" 8580 8581# Always use our own libtool. 8582LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8583 8584 8585 8586 8587 8588 8589 8590 8591 8592 8593 8594 8595 8596 8597 8598 8599 8600 8601 8602 8603 8604 8605 8606 8607 8608 8609test -z "$LN_S" && LN_S="ln -s" 8610 8611 8612 8613 8614 8615 8616 8617 8618 8619 8620 8621 8622 8623 8624if test -n "${ZSH_VERSION+set}" ; then 8625 setopt NO_GLOB_SUBST 8626fi 8627 8628{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8629$as_echo_n "checking for objdir... " >&6; } 8630if ${lt_cv_objdir+:} false; then : 8631 $as_echo_n "(cached) " >&6 8632else 8633 rm -f .libs 2>/dev/null 8634mkdir .libs 2>/dev/null 8635if test -d .libs; then 8636 lt_cv_objdir=.libs 8637else 8638 # MS-DOS does not allow filenames that begin with a dot. 8639 lt_cv_objdir=_libs 8640fi 8641rmdir .libs 2>/dev/null 8642fi 8643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8644$as_echo "$lt_cv_objdir" >&6; } 8645objdir=$lt_cv_objdir 8646 8647 8648 8649 8650 8651cat >>confdefs.h <<_ACEOF 8652#define LT_OBJDIR "$lt_cv_objdir/" 8653_ACEOF 8654 8655 8656 8657 8658case $host_os in 8659aix3*) 8660 # AIX sometimes has problems with the GCC collect2 program. For some 8661 # reason, if we set the COLLECT_NAMES environment variable, the problems 8662 # vanish in a puff of smoke. 8663 if test "X${COLLECT_NAMES+set}" != Xset; then 8664 COLLECT_NAMES= 8665 export COLLECT_NAMES 8666 fi 8667 ;; 8668esac 8669 8670# Global variables: 8671ofile=libtool 8672can_build_shared=yes 8673 8674# All known linkers require a `.a' archive for static linking (except MSVC, 8675# which needs '.lib'). 8676libext=a 8677 8678with_gnu_ld="$lt_cv_prog_gnu_ld" 8679 8680old_CC="$CC" 8681old_CFLAGS="$CFLAGS" 8682 8683# Set sane defaults for various variables 8684test -z "$CC" && CC=cc 8685test -z "$LTCC" && LTCC=$CC 8686test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8687test -z "$LD" && LD=ld 8688test -z "$ac_objext" && ac_objext=o 8689 8690for cc_temp in $compiler""; do 8691 case $cc_temp in 8692 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8693 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8694 \-*) ;; 8695 *) break;; 8696 esac 8697done 8698cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8699 8700 8701# Only perform the check for file, if the check method requires it 8702test -z "$MAGIC_CMD" && MAGIC_CMD=file 8703case $deplibs_check_method in 8704file_magic*) 8705 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8707$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8708if ${lt_cv_path_MAGIC_CMD+:} false; then : 8709 $as_echo_n "(cached) " >&6 8710else 8711 case $MAGIC_CMD in 8712[\\/*] | ?:[\\/]*) 8713 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8714 ;; 8715*) 8716 lt_save_MAGIC_CMD="$MAGIC_CMD" 8717 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8718 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8719 for ac_dir in $ac_dummy; do 8720 IFS="$lt_save_ifs" 8721 test -z "$ac_dir" && ac_dir=. 8722 if test -f $ac_dir/${ac_tool_prefix}file; then 8723 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8724 if test -n "$file_magic_test_file"; then 8725 case $deplibs_check_method in 8726 "file_magic "*) 8727 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8728 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8729 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8730 $EGREP "$file_magic_regex" > /dev/null; then 8731 : 8732 else 8733 cat <<_LT_EOF 1>&2 8734 8735*** Warning: the command libtool uses to detect shared libraries, 8736*** $file_magic_cmd, produces output that libtool cannot recognize. 8737*** The result is that libtool may fail to recognize shared libraries 8738*** as such. This will affect the creation of libtool libraries that 8739*** depend on shared libraries, but programs linked with such libtool 8740*** libraries will work regardless of this problem. Nevertheless, you 8741*** may want to report the problem to your system manager and/or to 8742*** bug-libtool@gnu.org 8743 8744_LT_EOF 8745 fi ;; 8746 esac 8747 fi 8748 break 8749 fi 8750 done 8751 IFS="$lt_save_ifs" 8752 MAGIC_CMD="$lt_save_MAGIC_CMD" 8753 ;; 8754esac 8755fi 8756 8757MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8758if test -n "$MAGIC_CMD"; then 8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8760$as_echo "$MAGIC_CMD" >&6; } 8761else 8762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8763$as_echo "no" >&6; } 8764fi 8765 8766 8767 8768 8769 8770if test -z "$lt_cv_path_MAGIC_CMD"; then 8771 if test -n "$ac_tool_prefix"; then 8772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8773$as_echo_n "checking for file... " >&6; } 8774if ${lt_cv_path_MAGIC_CMD+:} false; then : 8775 $as_echo_n "(cached) " >&6 8776else 8777 case $MAGIC_CMD in 8778[\\/*] | ?:[\\/]*) 8779 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8780 ;; 8781*) 8782 lt_save_MAGIC_CMD="$MAGIC_CMD" 8783 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8784 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8785 for ac_dir in $ac_dummy; do 8786 IFS="$lt_save_ifs" 8787 test -z "$ac_dir" && ac_dir=. 8788 if test -f $ac_dir/file; then 8789 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8790 if test -n "$file_magic_test_file"; then 8791 case $deplibs_check_method in 8792 "file_magic "*) 8793 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8794 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8795 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8796 $EGREP "$file_magic_regex" > /dev/null; then 8797 : 8798 else 8799 cat <<_LT_EOF 1>&2 8800 8801*** Warning: the command libtool uses to detect shared libraries, 8802*** $file_magic_cmd, produces output that libtool cannot recognize. 8803*** The result is that libtool may fail to recognize shared libraries 8804*** as such. This will affect the creation of libtool libraries that 8805*** depend on shared libraries, but programs linked with such libtool 8806*** libraries will work regardless of this problem. Nevertheless, you 8807*** may want to report the problem to your system manager and/or to 8808*** bug-libtool@gnu.org 8809 8810_LT_EOF 8811 fi ;; 8812 esac 8813 fi 8814 break 8815 fi 8816 done 8817 IFS="$lt_save_ifs" 8818 MAGIC_CMD="$lt_save_MAGIC_CMD" 8819 ;; 8820esac 8821fi 8822 8823MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8824if test -n "$MAGIC_CMD"; then 8825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8826$as_echo "$MAGIC_CMD" >&6; } 8827else 8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8829$as_echo "no" >&6; } 8830fi 8831 8832 8833 else 8834 MAGIC_CMD=: 8835 fi 8836fi 8837 8838 fi 8839 ;; 8840esac 8841 8842# Use C for the default configuration in the libtool script 8843 8844lt_save_CC="$CC" 8845ac_ext=c 8846ac_cpp='$CPP $CPPFLAGS' 8847ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8848ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8849ac_compiler_gnu=$ac_cv_c_compiler_gnu 8850 8851 8852# Source file extension for C test sources. 8853ac_ext=c 8854 8855# Object file extension for compiled C test sources. 8856objext=o 8857objext=$objext 8858 8859# Code to be used in simple compile tests 8860lt_simple_compile_test_code="int some_variable = 0;" 8861 8862# Code to be used in simple link tests 8863lt_simple_link_test_code='int main(){return(0);}' 8864 8865 8866 8867 8868 8869 8870 8871# If no C compiler was specified, use CC. 8872LTCC=${LTCC-"$CC"} 8873 8874# If no C compiler flags were specified, use CFLAGS. 8875LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8876 8877# Allow CC to be a program name with arguments. 8878compiler=$CC 8879 8880# Save the default compiler, since it gets overwritten when the other 8881# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8882compiler_DEFAULT=$CC 8883 8884# save warnings/boilerplate of simple test code 8885ac_outfile=conftest.$ac_objext 8886echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8887eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8888_lt_compiler_boilerplate=`cat conftest.err` 8889$RM conftest* 8890 8891ac_outfile=conftest.$ac_objext 8892echo "$lt_simple_link_test_code" >conftest.$ac_ext 8893eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8894_lt_linker_boilerplate=`cat conftest.err` 8895$RM -r conftest* 8896 8897 8898if test -n "$compiler"; then 8899 8900lt_prog_compiler_no_builtin_flag= 8901 8902if test "$GCC" = yes; then 8903 case $cc_basename in 8904 nvcc*) 8905 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8906 *) 8907 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8908 esac 8909 8910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8911$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8912if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8913 $as_echo_n "(cached) " >&6 8914else 8915 lt_cv_prog_compiler_rtti_exceptions=no 8916 ac_outfile=conftest.$ac_objext 8917 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8918 lt_compiler_flag="-fno-rtti -fno-exceptions" 8919 # Insert the option either (1) after the last *FLAGS variable, or 8920 # (2) before a word containing "conftest.", or (3) at the end. 8921 # Note that $ac_compile itself does not contain backslashes and begins 8922 # with a dollar sign (not a hyphen), so the echo should work correctly. 8923 # The option is referenced via a variable to avoid confusing sed. 8924 lt_compile=`echo "$ac_compile" | $SED \ 8925 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8926 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8927 -e 's:$: $lt_compiler_flag:'` 8928 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8929 (eval "$lt_compile" 2>conftest.err) 8930 ac_status=$? 8931 cat conftest.err >&5 8932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8933 if (exit $ac_status) && test -s "$ac_outfile"; then 8934 # The compiler can only warn and ignore the option if not recognized 8935 # So say no if there are warnings other than the usual output. 8936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8937 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8938 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8939 lt_cv_prog_compiler_rtti_exceptions=yes 8940 fi 8941 fi 8942 $RM conftest* 8943 8944fi 8945{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8946$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8947 8948if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8949 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8950else 8951 : 8952fi 8953 8954fi 8955 8956 8957 8958 8959 8960 8961 lt_prog_compiler_wl= 8962lt_prog_compiler_pic= 8963lt_prog_compiler_static= 8964 8965{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8966$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8967 8968 if test "$GCC" = yes; then 8969 lt_prog_compiler_wl='-Wl,' 8970 lt_prog_compiler_static='-static' 8971 8972 case $host_os in 8973 aix*) 8974 # All AIX code is PIC. 8975 if test "$host_cpu" = ia64; then 8976 # AIX 5 now supports IA64 processor 8977 lt_prog_compiler_static='-Bstatic' 8978 fi 8979 ;; 8980 8981 amigaos*) 8982 case $host_cpu in 8983 powerpc) 8984 # see comment about AmigaOS4 .so support 8985 lt_prog_compiler_pic='-fPIC' 8986 ;; 8987 m68k) 8988 # FIXME: we need at least 68020 code to build shared libraries, but 8989 # adding the `-m68020' flag to GCC prevents building anything better, 8990 # like `-m68040'. 8991 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8992 ;; 8993 esac 8994 ;; 8995 8996 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8997 # PIC is the default for these OSes. 8998 ;; 8999 9000 mingw* | cygwin* | pw32* | os2* | cegcc*) 9001 # This hack is so that the source file can tell whether it is being 9002 # built for inclusion in a dll (and should export symbols for example). 9003 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9004 # (--disable-auto-import) libraries 9005 lt_prog_compiler_pic='-DDLL_EXPORT' 9006 ;; 9007 9008 darwin* | rhapsody*) 9009 # PIC is the default on this platform 9010 # Common symbols not allowed in MH_DYLIB files 9011 lt_prog_compiler_pic='-fno-common' 9012 ;; 9013 9014 haiku*) 9015 # PIC is the default for Haiku. 9016 # The "-static" flag exists, but is broken. 9017 lt_prog_compiler_static= 9018 ;; 9019 9020 hpux*) 9021 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9022 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9023 # sets the default TLS model and affects inlining. 9024 case $host_cpu in 9025 hppa*64*) 9026 # +Z the default 9027 ;; 9028 *) 9029 lt_prog_compiler_pic='-fPIC' 9030 ;; 9031 esac 9032 ;; 9033 9034 interix[3-9]*) 9035 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9036 # Instead, we relocate shared libraries at runtime. 9037 ;; 9038 9039 msdosdjgpp*) 9040 # Just because we use GCC doesn't mean we suddenly get shared libraries 9041 # on systems that don't support them. 9042 lt_prog_compiler_can_build_shared=no 9043 enable_shared=no 9044 ;; 9045 9046 *nto* | *qnx*) 9047 # QNX uses GNU C++, but need to define -shared option too, otherwise 9048 # it will coredump. 9049 lt_prog_compiler_pic='-fPIC -shared' 9050 ;; 9051 9052 sysv4*MP*) 9053 if test -d /usr/nec; then 9054 lt_prog_compiler_pic=-Kconform_pic 9055 fi 9056 ;; 9057 9058 *) 9059 lt_prog_compiler_pic='-fPIC' 9060 ;; 9061 esac 9062 9063 case $cc_basename in 9064 nvcc*) # Cuda Compiler Driver 2.2 9065 lt_prog_compiler_wl='-Xlinker ' 9066 lt_prog_compiler_pic='-Xcompiler -fPIC' 9067 ;; 9068 esac 9069 else 9070 # PORTME Check for flag to pass linker flags through the system compiler. 9071 case $host_os in 9072 aix*) 9073 lt_prog_compiler_wl='-Wl,' 9074 if test "$host_cpu" = ia64; then 9075 # AIX 5 now supports IA64 processor 9076 lt_prog_compiler_static='-Bstatic' 9077 else 9078 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9079 fi 9080 ;; 9081 9082 mingw* | cygwin* | pw32* | os2* | cegcc*) 9083 # This hack is so that the source file can tell whether it is being 9084 # built for inclusion in a dll (and should export symbols for example). 9085 lt_prog_compiler_pic='-DDLL_EXPORT' 9086 ;; 9087 9088 hpux9* | hpux10* | hpux11*) 9089 lt_prog_compiler_wl='-Wl,' 9090 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9091 # not for PA HP-UX. 9092 case $host_cpu in 9093 hppa*64*|ia64*) 9094 # +Z the default 9095 ;; 9096 *) 9097 lt_prog_compiler_pic='+Z' 9098 ;; 9099 esac 9100 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9101 lt_prog_compiler_static='${wl}-a ${wl}archive' 9102 ;; 9103 9104 irix5* | irix6* | nonstopux*) 9105 lt_prog_compiler_wl='-Wl,' 9106 # PIC (with -KPIC) is the default. 9107 lt_prog_compiler_static='-non_shared' 9108 ;; 9109 9110 linux* | k*bsd*-gnu | kopensolaris*-gnu) 9111 case $cc_basename in 9112 # old Intel for x86_64 which still supported -KPIC. 9113 ecc*) 9114 lt_prog_compiler_wl='-Wl,' 9115 lt_prog_compiler_pic='-KPIC' 9116 lt_prog_compiler_static='-static' 9117 ;; 9118 # icc used to be incompatible with GCC. 9119 # ICC 10 doesn't accept -KPIC any more. 9120 icc* | ifort*) 9121 lt_prog_compiler_wl='-Wl,' 9122 lt_prog_compiler_pic='-fPIC' 9123 lt_prog_compiler_static='-static' 9124 ;; 9125 # Lahey Fortran 8.1. 9126 lf95*) 9127 lt_prog_compiler_wl='-Wl,' 9128 lt_prog_compiler_pic='--shared' 9129 lt_prog_compiler_static='--static' 9130 ;; 9131 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 9132 # Portland Group compilers (*not* the Pentium gcc compiler, 9133 # which looks to be a dead project) 9134 lt_prog_compiler_wl='-Wl,' 9135 lt_prog_compiler_pic='-fpic' 9136 lt_prog_compiler_static='-Bstatic' 9137 ;; 9138 ccc*) 9139 lt_prog_compiler_wl='-Wl,' 9140 # All Alpha code is PIC. 9141 lt_prog_compiler_static='-non_shared' 9142 ;; 9143 xl* | bgxl* | bgf* | mpixl*) 9144 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 9145 lt_prog_compiler_wl='-Wl,' 9146 lt_prog_compiler_pic='-qpic' 9147 lt_prog_compiler_static='-qstaticlink' 9148 ;; 9149 *) 9150 case `$CC -V 2>&1 | sed 5q` in 9151 *Sun\ F* | *Sun*Fortran*) 9152 # Sun Fortran 8.3 passes all unrecognized flags to the linker 9153 lt_prog_compiler_pic='-KPIC' 9154 lt_prog_compiler_static='-Bstatic' 9155 lt_prog_compiler_wl='' 9156 ;; 9157 *Sun\ C*) 9158 # Sun C 5.9 9159 lt_prog_compiler_pic='-KPIC' 9160 lt_prog_compiler_static='-Bstatic' 9161 lt_prog_compiler_wl='-Wl,' 9162 ;; 9163 esac 9164 ;; 9165 esac 9166 ;; 9167 9168 newsos6) 9169 lt_prog_compiler_pic='-KPIC' 9170 lt_prog_compiler_static='-Bstatic' 9171 ;; 9172 9173 *nto* | *qnx*) 9174 # QNX uses GNU C++, but need to define -shared option too, otherwise 9175 # it will coredump. 9176 lt_prog_compiler_pic='-fPIC -shared' 9177 ;; 9178 9179 osf3* | osf4* | osf5*) 9180 lt_prog_compiler_wl='-Wl,' 9181 # All OSF/1 code is PIC. 9182 lt_prog_compiler_static='-non_shared' 9183 ;; 9184 9185 rdos*) 9186 lt_prog_compiler_static='-non_shared' 9187 ;; 9188 9189 solaris*) 9190 lt_prog_compiler_pic='-KPIC' 9191 lt_prog_compiler_static='-Bstatic' 9192 case $cc_basename in 9193 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 9194 lt_prog_compiler_wl='-Qoption ld ';; 9195 *) 9196 lt_prog_compiler_wl='-Wl,';; 9197 esac 9198 ;; 9199 9200 sunos4*) 9201 lt_prog_compiler_wl='-Qoption ld ' 9202 lt_prog_compiler_pic='-PIC' 9203 lt_prog_compiler_static='-Bstatic' 9204 ;; 9205 9206 sysv4 | sysv4.2uw2* | sysv4.3*) 9207 lt_prog_compiler_wl='-Wl,' 9208 lt_prog_compiler_pic='-KPIC' 9209 lt_prog_compiler_static='-Bstatic' 9210 ;; 9211 9212 sysv4*MP*) 9213 if test -d /usr/nec ;then 9214 lt_prog_compiler_pic='-Kconform_pic' 9215 lt_prog_compiler_static='-Bstatic' 9216 fi 9217 ;; 9218 9219 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 9220 lt_prog_compiler_wl='-Wl,' 9221 lt_prog_compiler_pic='-KPIC' 9222 lt_prog_compiler_static='-Bstatic' 9223 ;; 9224 9225 unicos*) 9226 lt_prog_compiler_wl='-Wl,' 9227 lt_prog_compiler_can_build_shared=no 9228 ;; 9229 9230 uts4*) 9231 lt_prog_compiler_pic='-pic' 9232 lt_prog_compiler_static='-Bstatic' 9233 ;; 9234 9235 *) 9236 lt_prog_compiler_can_build_shared=no 9237 ;; 9238 esac 9239 fi 9240 9241case $host_os in 9242 # For platforms which do not support PIC, -DPIC is meaningless: 9243 *djgpp*) 9244 lt_prog_compiler_pic= 9245 ;; 9246 *) 9247 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 9248 ;; 9249esac 9250{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 9251$as_echo "$lt_prog_compiler_pic" >&6; } 9252 9253 9254 9255 9256 9257 9258# 9259# Check to make sure the PIC flag actually works. 9260# 9261if test -n "$lt_prog_compiler_pic"; then 9262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 9263$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 9264if ${lt_cv_prog_compiler_pic_works+:} false; then : 9265 $as_echo_n "(cached) " >&6 9266else 9267 lt_cv_prog_compiler_pic_works=no 9268 ac_outfile=conftest.$ac_objext 9269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9270 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 9271 # Insert the option either (1) after the last *FLAGS variable, or 9272 # (2) before a word containing "conftest.", or (3) at the end. 9273 # Note that $ac_compile itself does not contain backslashes and begins 9274 # with a dollar sign (not a hyphen), so the echo should work correctly. 9275 # The option is referenced via a variable to avoid confusing sed. 9276 lt_compile=`echo "$ac_compile" | $SED \ 9277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9279 -e 's:$: $lt_compiler_flag:'` 9280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9281 (eval "$lt_compile" 2>conftest.err) 9282 ac_status=$? 9283 cat conftest.err >&5 9284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9285 if (exit $ac_status) && test -s "$ac_outfile"; then 9286 # The compiler can only warn and ignore the option if not recognized 9287 # So say no if there are warnings other than the usual output. 9288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9291 lt_cv_prog_compiler_pic_works=yes 9292 fi 9293 fi 9294 $RM conftest* 9295 9296fi 9297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 9298$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 9299 9300if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 9301 case $lt_prog_compiler_pic in 9302 "" | " "*) ;; 9303 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 9304 esac 9305else 9306 lt_prog_compiler_pic= 9307 lt_prog_compiler_can_build_shared=no 9308fi 9309 9310fi 9311 9312 9313 9314 9315 9316 9317# 9318# Check to make sure the static flag actually works. 9319# 9320wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 9321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 9322$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 9323if ${lt_cv_prog_compiler_static_works+:} false; then : 9324 $as_echo_n "(cached) " >&6 9325else 9326 lt_cv_prog_compiler_static_works=no 9327 save_LDFLAGS="$LDFLAGS" 9328 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 9329 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9330 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9331 # The linker can only warn and ignore the option if not recognized 9332 # So say no if there are warnings 9333 if test -s conftest.err; then 9334 # Append any errors to the config.log. 9335 cat conftest.err 1>&5 9336 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9337 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9338 if diff conftest.exp conftest.er2 >/dev/null; then 9339 lt_cv_prog_compiler_static_works=yes 9340 fi 9341 else 9342 lt_cv_prog_compiler_static_works=yes 9343 fi 9344 fi 9345 $RM -r conftest* 9346 LDFLAGS="$save_LDFLAGS" 9347 9348fi 9349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 9350$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 9351 9352if test x"$lt_cv_prog_compiler_static_works" = xyes; then 9353 : 9354else 9355 lt_prog_compiler_static= 9356fi 9357 9358 9359 9360 9361 9362 9363 9364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9365$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9366if ${lt_cv_prog_compiler_c_o+:} false; then : 9367 $as_echo_n "(cached) " >&6 9368else 9369 lt_cv_prog_compiler_c_o=no 9370 $RM -r conftest 2>/dev/null 9371 mkdir conftest 9372 cd conftest 9373 mkdir out 9374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9375 9376 lt_compiler_flag="-o out/conftest2.$ac_objext" 9377 # Insert the option either (1) after the last *FLAGS variable, or 9378 # (2) before a word containing "conftest.", or (3) at the end. 9379 # Note that $ac_compile itself does not contain backslashes and begins 9380 # with a dollar sign (not a hyphen), so the echo should work correctly. 9381 lt_compile=`echo "$ac_compile" | $SED \ 9382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9384 -e 's:$: $lt_compiler_flag:'` 9385 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9386 (eval "$lt_compile" 2>out/conftest.err) 9387 ac_status=$? 9388 cat out/conftest.err >&5 9389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9390 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9391 then 9392 # The compiler can only warn and ignore the option if not recognized 9393 # So say no if there are warnings 9394 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9395 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9396 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9397 lt_cv_prog_compiler_c_o=yes 9398 fi 9399 fi 9400 chmod u+w . 2>&5 9401 $RM conftest* 9402 # SGI C++ compiler will create directory out/ii_files/ for 9403 # template instantiation 9404 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9405 $RM out/* && rmdir out 9406 cd .. 9407 $RM -r conftest 9408 $RM conftest* 9409 9410fi 9411{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9412$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9413 9414 9415 9416 9417 9418 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 9420$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 9421if ${lt_cv_prog_compiler_c_o+:} false; then : 9422 $as_echo_n "(cached) " >&6 9423else 9424 lt_cv_prog_compiler_c_o=no 9425 $RM -r conftest 2>/dev/null 9426 mkdir conftest 9427 cd conftest 9428 mkdir out 9429 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9430 9431 lt_compiler_flag="-o out/conftest2.$ac_objext" 9432 # Insert the option either (1) after the last *FLAGS variable, or 9433 # (2) before a word containing "conftest.", or (3) at the end. 9434 # Note that $ac_compile itself does not contain backslashes and begins 9435 # with a dollar sign (not a hyphen), so the echo should work correctly. 9436 lt_compile=`echo "$ac_compile" | $SED \ 9437 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9438 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9439 -e 's:$: $lt_compiler_flag:'` 9440 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9441 (eval "$lt_compile" 2>out/conftest.err) 9442 ac_status=$? 9443 cat out/conftest.err >&5 9444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9445 if (exit $ac_status) && test -s out/conftest2.$ac_objext 9446 then 9447 # The compiler can only warn and ignore the option if not recognized 9448 # So say no if there are warnings 9449 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 9450 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 9451 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 9452 lt_cv_prog_compiler_c_o=yes 9453 fi 9454 fi 9455 chmod u+w . 2>&5 9456 $RM conftest* 9457 # SGI C++ compiler will create directory out/ii_files/ for 9458 # template instantiation 9459 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9460 $RM out/* && rmdir out 9461 cd .. 9462 $RM -r conftest 9463 $RM conftest* 9464 9465fi 9466{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9467$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9468 9469 9470 9471 9472hard_links="nottested" 9473if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9474 # do not overwrite the value of need_locks provided by the user 9475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9476$as_echo_n "checking if we can lock with hard links... " >&6; } 9477 hard_links=yes 9478 $RM conftest* 9479 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9480 touch conftest.a 9481 ln conftest.a conftest.b 2>&5 || hard_links=no 9482 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9484$as_echo "$hard_links" >&6; } 9485 if test "$hard_links" = no; then 9486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9487$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9488 need_locks=warn 9489 fi 9490else 9491 need_locks=no 9492fi 9493 9494 9495 9496 9497 9498 9499 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9500$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9501 9502 runpath_var= 9503 allow_undefined_flag= 9504 always_export_symbols=no 9505 archive_cmds= 9506 archive_expsym_cmds= 9507 compiler_needs_object=no 9508 enable_shared_with_static_runtimes=no 9509 export_dynamic_flag_spec= 9510 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9511 hardcode_automatic=no 9512 hardcode_direct=no 9513 hardcode_direct_absolute=no 9514 hardcode_libdir_flag_spec= 9515 hardcode_libdir_flag_spec_ld= 9516 hardcode_libdir_separator= 9517 hardcode_minus_L=no 9518 hardcode_shlibpath_var=unsupported 9519 inherit_rpath=no 9520 link_all_deplibs=unknown 9521 module_cmds= 9522 module_expsym_cmds= 9523 old_archive_from_new_cmds= 9524 old_archive_from_expsyms_cmds= 9525 thread_safe_flag_spec= 9526 whole_archive_flag_spec= 9527 # include_expsyms should be a list of space-separated symbols to be *always* 9528 # included in the symbol list 9529 include_expsyms= 9530 # exclude_expsyms can be an extended regexp of symbols to exclude 9531 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9532 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9533 # as well as any symbol that contains `d'. 9534 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9535 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9536 # platforms (ab)use it in PIC code, but their linkers get confused if 9537 # the symbol is explicitly referenced. Since portable code cannot 9538 # rely on this symbol name, it's probably fine to never include it in 9539 # preloaded symbol tables. 9540 # Exclude shared library initialization/finalization symbols. 9541 extract_expsyms_cmds= 9542 9543 case $host_os in 9544 cygwin* | mingw* | pw32* | cegcc*) 9545 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9546 # When not using gcc, we currently assume that we are using 9547 # Microsoft Visual C++. 9548 if test "$GCC" != yes; then 9549 with_gnu_ld=no 9550 fi 9551 ;; 9552 interix*) 9553 # we just hope/assume this is gcc and not c89 (= MSVC++) 9554 with_gnu_ld=yes 9555 ;; 9556 openbsd*) 9557 with_gnu_ld=no 9558 ;; 9559 esac 9560 9561 ld_shlibs=yes 9562 9563 # On some targets, GNU ld is compatible enough with the native linker 9564 # that we're better off using the native interface for both. 9565 lt_use_gnu_ld_interface=no 9566 if test "$with_gnu_ld" = yes; then 9567 case $host_os in 9568 aix*) 9569 # The AIX port of GNU ld has always aspired to compatibility 9570 # with the native linker. However, as the warning in the GNU ld 9571 # block says, versions before 2.19.5* couldn't really create working 9572 # shared libraries, regardless of the interface used. 9573 case `$LD -v 2>&1` in 9574 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9575 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9576 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9577 *) 9578 lt_use_gnu_ld_interface=yes 9579 ;; 9580 esac 9581 ;; 9582 *) 9583 lt_use_gnu_ld_interface=yes 9584 ;; 9585 esac 9586 fi 9587 9588 if test "$lt_use_gnu_ld_interface" = yes; then 9589 # If archive_cmds runs LD, not CC, wlarc should be empty 9590 wlarc='${wl}' 9591 9592 # Set some defaults for GNU ld with shared library support. These 9593 # are reset later if shared libraries are not supported. Putting them 9594 # here allows them to be overridden if necessary. 9595 runpath_var=LD_RUN_PATH 9596 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9597 export_dynamic_flag_spec='${wl}--export-dynamic' 9598 # ancient GNU ld didn't support --whole-archive et. al. 9599 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9600 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9601 else 9602 whole_archive_flag_spec= 9603 fi 9604 supports_anon_versioning=no 9605 case `$LD -v 2>&1` in 9606 *GNU\ gold*) supports_anon_versioning=yes ;; 9607 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9608 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9609 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9610 *\ 2.11.*) ;; # other 2.11 versions 9611 *) supports_anon_versioning=yes ;; 9612 esac 9613 9614 # See if GNU ld supports shared libraries. 9615 case $host_os in 9616 aix[3-9]*) 9617 # On AIX/PPC, the GNU linker is very broken 9618 if test "$host_cpu" != ia64; then 9619 ld_shlibs=no 9620 cat <<_LT_EOF 1>&2 9621 9622*** Warning: the GNU linker, at least up to release 2.19, is reported 9623*** to be unable to reliably create shared libraries on AIX. 9624*** Therefore, libtool is disabling shared libraries support. If you 9625*** really care for shared libraries, you may want to install binutils 9626*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9627*** You will then need to restart the configuration process. 9628 9629_LT_EOF 9630 fi 9631 ;; 9632 9633 amigaos*) 9634 case $host_cpu in 9635 powerpc) 9636 # see comment about AmigaOS4 .so support 9637 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9638 archive_expsym_cmds='' 9639 ;; 9640 m68k) 9641 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)' 9642 hardcode_libdir_flag_spec='-L$libdir' 9643 hardcode_minus_L=yes 9644 ;; 9645 esac 9646 ;; 9647 9648 beos*) 9649 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9650 allow_undefined_flag=unsupported 9651 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9652 # support --undefined. This deserves some investigation. FIXME 9653 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9654 else 9655 ld_shlibs=no 9656 fi 9657 ;; 9658 9659 cygwin* | mingw* | pw32* | cegcc*) 9660 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9661 # as there is no search path for DLLs. 9662 hardcode_libdir_flag_spec='-L$libdir' 9663 export_dynamic_flag_spec='${wl}--export-all-symbols' 9664 allow_undefined_flag=unsupported 9665 always_export_symbols=no 9666 enable_shared_with_static_runtimes=yes 9667 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9668 9669 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9670 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9671 # If the export-symbols file already is a .def file (1st line 9672 # is EXPORTS), use it as is; otherwise, prepend... 9673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9674 cp $export_symbols $output_objdir/$soname.def; 9675 else 9676 echo EXPORTS > $output_objdir/$soname.def; 9677 cat $export_symbols >> $output_objdir/$soname.def; 9678 fi~ 9679 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9680 else 9681 ld_shlibs=no 9682 fi 9683 ;; 9684 9685 haiku*) 9686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9687 link_all_deplibs=yes 9688 ;; 9689 9690 interix[3-9]*) 9691 hardcode_direct=no 9692 hardcode_shlibpath_var=no 9693 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9694 export_dynamic_flag_spec='${wl}-E' 9695 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9696 # Instead, shared libraries are loaded at an image base (0x10000000 by 9697 # default) and relocated if they conflict, which is a slow very memory 9698 # consuming and fragmenting process. To avoid this, we pick a random, 9699 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9700 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9701 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9702 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' 9703 ;; 9704 9705 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9706 tmp_diet=no 9707 if test "$host_os" = linux-dietlibc; then 9708 case $cc_basename in 9709 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9710 esac 9711 fi 9712 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9713 && test "$tmp_diet" = no 9714 then 9715 tmp_addflag= 9716 tmp_sharedflag='-shared' 9717 case $cc_basename,$host_cpu in 9718 pgcc*) # Portland Group C compiler 9719 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' 9720 tmp_addflag=' $pic_flag' 9721 ;; 9722 pgf77* | pgf90* | pgf95* | pgfortran*) 9723 # Portland Group f77 and f90 compilers 9724 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' 9725 tmp_addflag=' $pic_flag -Mnomain' ;; 9726 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9727 tmp_addflag=' -i_dynamic' ;; 9728 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9729 tmp_addflag=' -i_dynamic -nofor_main' ;; 9730 ifc* | ifort*) # Intel Fortran compiler 9731 tmp_addflag=' -nofor_main' ;; 9732 lf95*) # Lahey Fortran 8.1 9733 whole_archive_flag_spec= 9734 tmp_sharedflag='--shared' ;; 9735 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9736 tmp_sharedflag='-qmkshrobj' 9737 tmp_addflag= ;; 9738 nvcc*) # Cuda Compiler Driver 2.2 9739 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' 9740 compiler_needs_object=yes 9741 ;; 9742 esac 9743 case `$CC -V 2>&1 | sed 5q` in 9744 *Sun\ C*) # Sun C 5.9 9745 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' 9746 compiler_needs_object=yes 9747 tmp_sharedflag='-G' ;; 9748 *Sun\ F*) # Sun Fortran 8.3 9749 tmp_sharedflag='-G' ;; 9750 esac 9751 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9752 9753 if test "x$supports_anon_versioning" = xyes; then 9754 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9755 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9756 echo "local: *; };" >> $output_objdir/$libname.ver~ 9757 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9758 fi 9759 9760 case $cc_basename in 9761 xlf* | bgf* | bgxlf* | mpixlf*) 9762 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9763 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9764 hardcode_libdir_flag_spec= 9765 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9766 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9767 if test "x$supports_anon_versioning" = xyes; then 9768 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9769 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9770 echo "local: *; };" >> $output_objdir/$libname.ver~ 9771 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9772 fi 9773 ;; 9774 esac 9775 else 9776 ld_shlibs=no 9777 fi 9778 ;; 9779 9780 netbsd*) 9781 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9782 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9783 wlarc= 9784 else 9785 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9786 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9787 fi 9788 ;; 9789 9790 solaris*) 9791 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9792 ld_shlibs=no 9793 cat <<_LT_EOF 1>&2 9794 9795*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9796*** create shared libraries on Solaris systems. Therefore, libtool 9797*** is disabling shared libraries support. We urge you to upgrade GNU 9798*** binutils to release 2.9.1 or newer. Another option is to modify 9799*** your PATH or compiler configuration so that the native linker is 9800*** used, and then restart. 9801 9802_LT_EOF 9803 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9804 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9805 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9806 else 9807 ld_shlibs=no 9808 fi 9809 ;; 9810 9811 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9812 case `$LD -v 2>&1` in 9813 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9814 ld_shlibs=no 9815 cat <<_LT_EOF 1>&2 9816 9817*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9818*** reliably create shared libraries on SCO systems. Therefore, libtool 9819*** is disabling shared libraries support. We urge you to upgrade GNU 9820*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9821*** your PATH or compiler configuration so that the native linker is 9822*** used, and then restart. 9823 9824_LT_EOF 9825 ;; 9826 *) 9827 # For security reasons, it is highly recommended that you always 9828 # use absolute paths for naming shared libraries, and exclude the 9829 # DT_RUNPATH tag from executables and libraries. But doing so 9830 # requires that you compile everything twice, which is a pain. 9831 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9832 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9833 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9834 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9835 else 9836 ld_shlibs=no 9837 fi 9838 ;; 9839 esac 9840 ;; 9841 9842 sunos4*) 9843 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9844 wlarc= 9845 hardcode_direct=yes 9846 hardcode_shlibpath_var=no 9847 ;; 9848 9849 *) 9850 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9851 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9852 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9853 else 9854 ld_shlibs=no 9855 fi 9856 ;; 9857 esac 9858 9859 if test "$ld_shlibs" = no; then 9860 runpath_var= 9861 hardcode_libdir_flag_spec= 9862 export_dynamic_flag_spec= 9863 whole_archive_flag_spec= 9864 fi 9865 else 9866 # PORTME fill in a description of your system's linker (not GNU ld) 9867 case $host_os in 9868 aix3*) 9869 allow_undefined_flag=unsupported 9870 always_export_symbols=yes 9871 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' 9872 # Note: this linker hardcodes the directories in LIBPATH if there 9873 # are no directories specified by -L. 9874 hardcode_minus_L=yes 9875 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9876 # Neither direct hardcoding nor static linking is supported with a 9877 # broken collect2. 9878 hardcode_direct=unsupported 9879 fi 9880 ;; 9881 9882 aix[4-9]*) 9883 if test "$host_cpu" = ia64; then 9884 # On IA64, the linker does run time linking by default, so we don't 9885 # have to do anything special. 9886 aix_use_runtimelinking=no 9887 exp_sym_flag='-Bexport' 9888 no_entry_flag="" 9889 else 9890 # If we're using GNU nm, then we don't want the "-C" option. 9891 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9892 # Also, AIX nm treats weak defined symbols like other global 9893 # defined symbols, whereas GNU nm marks them as "W". 9894 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9895 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' 9896 else 9897 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' 9898 fi 9899 aix_use_runtimelinking=no 9900 9901 # Test if we are trying to use run time linking or normal 9902 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9903 # need to do runtime linking. 9904 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9905 for ld_flag in $LDFLAGS; do 9906 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9907 aix_use_runtimelinking=yes 9908 break 9909 fi 9910 done 9911 ;; 9912 esac 9913 9914 exp_sym_flag='-bexport' 9915 no_entry_flag='-bnoentry' 9916 fi 9917 9918 # When large executables or shared objects are built, AIX ld can 9919 # have problems creating the table of contents. If linking a library 9920 # or program results in "error TOC overflow" add -mminimal-toc to 9921 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9922 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9923 9924 archive_cmds='' 9925 hardcode_direct=yes 9926 hardcode_direct_absolute=yes 9927 hardcode_libdir_separator=':' 9928 link_all_deplibs=yes 9929 file_list_spec='${wl}-f,' 9930 9931 if test "$GCC" = yes; then 9932 case $host_os in aix4.[012]|aix4.[012].*) 9933 # We only want to do this on AIX 4.2 and lower, the check 9934 # below for broken collect2 doesn't work under 4.3+ 9935 collect2name=`${CC} -print-prog-name=collect2` 9936 if test -f "$collect2name" && 9937 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9938 then 9939 # We have reworked collect2 9940 : 9941 else 9942 # We have old collect2 9943 hardcode_direct=unsupported 9944 # It fails to find uninstalled libraries when the uninstalled 9945 # path is not listed in the libpath. Setting hardcode_minus_L 9946 # to unsupported forces relinking 9947 hardcode_minus_L=yes 9948 hardcode_libdir_flag_spec='-L$libdir' 9949 hardcode_libdir_separator= 9950 fi 9951 ;; 9952 esac 9953 shared_flag='-shared' 9954 if test "$aix_use_runtimelinking" = yes; then 9955 shared_flag="$shared_flag "'${wl}-G' 9956 fi 9957 else 9958 # not using gcc 9959 if test "$host_cpu" = ia64; then 9960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9961 # chokes on -Wl,-G. The following line is correct: 9962 shared_flag='-G' 9963 else 9964 if test "$aix_use_runtimelinking" = yes; then 9965 shared_flag='${wl}-G' 9966 else 9967 shared_flag='${wl}-bM:SRE' 9968 fi 9969 fi 9970 fi 9971 9972 export_dynamic_flag_spec='${wl}-bexpall' 9973 # It seems that -bexpall does not export symbols beginning with 9974 # underscore (_), so it is better to generate a list of symbols to export. 9975 always_export_symbols=yes 9976 if test "$aix_use_runtimelinking" = yes; then 9977 # Warning - without using the other runtime loading flags (-brtl), 9978 # -berok will link without error, but may produce a broken library. 9979 allow_undefined_flag='-berok' 9980 # Determine the default libpath from the value encoded in an 9981 # empty executable. 9982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9983/* end confdefs.h. */ 9984 9985int 9986main () 9987{ 9988 9989 ; 9990 return 0; 9991} 9992_ACEOF 9993if ac_fn_c_try_link "$LINENO"; then : 9994 9995lt_aix_libpath_sed=' 9996 /Import File Strings/,/^$/ { 9997 /^0/ { 9998 s/^0 *\(.*\)$/\1/ 9999 p 10000 } 10001 }' 10002aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10003# Check for a 64-bit object if we didn't find anything. 10004if test -z "$aix_libpath"; then 10005 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10006fi 10007fi 10008rm -f core conftest.err conftest.$ac_objext \ 10009 conftest$ac_exeext conftest.$ac_ext 10010if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10011 10012 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10013 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" 10014 else 10015 if test "$host_cpu" = ia64; then 10016 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 10017 allow_undefined_flag="-z nodefs" 10018 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" 10019 else 10020 # Determine the default libpath from the value encoded in an 10021 # empty executable. 10022 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10023/* end confdefs.h. */ 10024 10025int 10026main () 10027{ 10028 10029 ; 10030 return 0; 10031} 10032_ACEOF 10033if ac_fn_c_try_link "$LINENO"; then : 10034 10035lt_aix_libpath_sed=' 10036 /Import File Strings/,/^$/ { 10037 /^0/ { 10038 s/^0 *\(.*\)$/\1/ 10039 p 10040 } 10041 }' 10042aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10043# Check for a 64-bit object if we didn't find anything. 10044if test -z "$aix_libpath"; then 10045 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 10046fi 10047fi 10048rm -f core conftest.err conftest.$ac_objext \ 10049 conftest$ac_exeext conftest.$ac_ext 10050if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 10051 10052 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 10053 # Warning - without using the other run time loading flags, 10054 # -berok will link without error, but may produce a broken library. 10055 no_undefined_flag=' ${wl}-bernotok' 10056 allow_undefined_flag=' ${wl}-berok' 10057 if test "$with_gnu_ld" = yes; then 10058 # We only use this code for GNU lds that support --whole-archive. 10059 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 10060 else 10061 # Exported symbols can be pulled into shared objects from archives 10062 whole_archive_flag_spec='$convenience' 10063 fi 10064 archive_cmds_need_lc=yes 10065 # This is similar to how AIX traditionally builds its shared libraries. 10066 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' 10067 fi 10068 fi 10069 ;; 10070 10071 amigaos*) 10072 case $host_cpu in 10073 powerpc) 10074 # see comment about AmigaOS4 .so support 10075 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 10076 archive_expsym_cmds='' 10077 ;; 10078 m68k) 10079 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)' 10080 hardcode_libdir_flag_spec='-L$libdir' 10081 hardcode_minus_L=yes 10082 ;; 10083 esac 10084 ;; 10085 10086 bsdi[45]*) 10087 export_dynamic_flag_spec=-rdynamic 10088 ;; 10089 10090 cygwin* | mingw* | pw32* | cegcc*) 10091 # When not using gcc, we currently assume that we are using 10092 # Microsoft Visual C++. 10093 # hardcode_libdir_flag_spec is actually meaningless, as there is 10094 # no search path for DLLs. 10095 hardcode_libdir_flag_spec=' ' 10096 allow_undefined_flag=unsupported 10097 # Tell ltmain to make .lib files, not .a files. 10098 libext=lib 10099 # Tell ltmain to make .dll files, not .so files. 10100 shrext_cmds=".dll" 10101 # FIXME: Setting linknames here is a bad hack. 10102 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 10103 # The linker will automatically build a .lib file if we build a DLL. 10104 old_archive_from_new_cmds='true' 10105 # FIXME: Should let the user specify the lib program. 10106 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 10107 fix_srcfile_path='`cygpath -w "$srcfile"`' 10108 enable_shared_with_static_runtimes=yes 10109 ;; 10110 10111 darwin* | rhapsody*) 10112 10113 10114 archive_cmds_need_lc=no 10115 hardcode_direct=no 10116 hardcode_automatic=yes 10117 hardcode_shlibpath_var=unsupported 10118 if test "$lt_cv_ld_force_load" = "yes"; then 10119 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\"`' 10120 else 10121 whole_archive_flag_spec='' 10122 fi 10123 link_all_deplibs=yes 10124 allow_undefined_flag="$_lt_dar_allow_undefined" 10125 case $cc_basename in 10126 ifort*) _lt_dar_can_shared=yes ;; 10127 *) _lt_dar_can_shared=$GCC ;; 10128 esac 10129 if test "$_lt_dar_can_shared" = "yes"; then 10130 output_verbose_link_cmd=func_echo_all 10131 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 10132 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 10133 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}" 10134 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}" 10135 10136 else 10137 ld_shlibs=no 10138 fi 10139 10140 ;; 10141 10142 dgux*) 10143 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10144 hardcode_libdir_flag_spec='-L$libdir' 10145 hardcode_shlibpath_var=no 10146 ;; 10147 10148 freebsd1*) 10149 ld_shlibs=no 10150 ;; 10151 10152 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 10153 # support. Future versions do this automatically, but an explicit c++rt0.o 10154 # does not break anything, and helps significantly (at the cost of a little 10155 # extra space). 10156 freebsd2.2*) 10157 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 10158 hardcode_libdir_flag_spec='-R$libdir' 10159 hardcode_direct=yes 10160 hardcode_shlibpath_var=no 10161 ;; 10162 10163 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 10164 freebsd2*) 10165 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10166 hardcode_direct=yes 10167 hardcode_minus_L=yes 10168 hardcode_shlibpath_var=no 10169 ;; 10170 10171 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 10172 freebsd* | dragonfly*) 10173 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 10174 hardcode_libdir_flag_spec='-R$libdir' 10175 hardcode_direct=yes 10176 hardcode_shlibpath_var=no 10177 ;; 10178 10179 hpux9*) 10180 if test "$GCC" = yes; then 10181 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' 10182 else 10183 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' 10184 fi 10185 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10186 hardcode_libdir_separator=: 10187 hardcode_direct=yes 10188 10189 # hardcode_minus_L: Not really in the search PATH, 10190 # but as the default location of the library. 10191 hardcode_minus_L=yes 10192 export_dynamic_flag_spec='${wl}-E' 10193 ;; 10194 10195 hpux10*) 10196 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10197 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10198 else 10199 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10200 fi 10201 if test "$with_gnu_ld" = no; then 10202 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10203 hardcode_libdir_flag_spec_ld='+b $libdir' 10204 hardcode_libdir_separator=: 10205 hardcode_direct=yes 10206 hardcode_direct_absolute=yes 10207 export_dynamic_flag_spec='${wl}-E' 10208 # hardcode_minus_L: Not really in the search PATH, 10209 # but as the default location of the library. 10210 hardcode_minus_L=yes 10211 fi 10212 ;; 10213 10214 hpux11*) 10215 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 10216 case $host_cpu in 10217 hppa*64*) 10218 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10219 ;; 10220 ia64*) 10221 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10222 ;; 10223 *) 10224 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10225 ;; 10226 esac 10227 else 10228 case $host_cpu in 10229 hppa*64*) 10230 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10231 ;; 10232 ia64*) 10233 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 10234 ;; 10235 *) 10236 10237 # Older versions of the 11.00 compiler do not understand -b yet 10238 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 10239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 10240$as_echo_n "checking if $CC understands -b... " >&6; } 10241if ${lt_cv_prog_compiler__b+:} false; then : 10242 $as_echo_n "(cached) " >&6 10243else 10244 lt_cv_prog_compiler__b=no 10245 save_LDFLAGS="$LDFLAGS" 10246 LDFLAGS="$LDFLAGS -b" 10247 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10248 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10249 # The linker can only warn and ignore the option if not recognized 10250 # So say no if there are warnings 10251 if test -s conftest.err; then 10252 # Append any errors to the config.log. 10253 cat conftest.err 1>&5 10254 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10255 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10256 if diff conftest.exp conftest.er2 >/dev/null; then 10257 lt_cv_prog_compiler__b=yes 10258 fi 10259 else 10260 lt_cv_prog_compiler__b=yes 10261 fi 10262 fi 10263 $RM -r conftest* 10264 LDFLAGS="$save_LDFLAGS" 10265 10266fi 10267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 10268$as_echo "$lt_cv_prog_compiler__b" >&6; } 10269 10270if test x"$lt_cv_prog_compiler__b" = xyes; then 10271 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 10272else 10273 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 10274fi 10275 10276 ;; 10277 esac 10278 fi 10279 if test "$with_gnu_ld" = no; then 10280 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 10281 hardcode_libdir_separator=: 10282 10283 case $host_cpu in 10284 hppa*64*|ia64*) 10285 hardcode_direct=no 10286 hardcode_shlibpath_var=no 10287 ;; 10288 *) 10289 hardcode_direct=yes 10290 hardcode_direct_absolute=yes 10291 export_dynamic_flag_spec='${wl}-E' 10292 10293 # hardcode_minus_L: Not really in the search PATH, 10294 # but as the default location of the library. 10295 hardcode_minus_L=yes 10296 ;; 10297 esac 10298 fi 10299 ;; 10300 10301 irix5* | irix6* | nonstopux*) 10302 if test "$GCC" = yes; then 10303 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' 10304 # Try to use the -exported_symbol ld option, if it does not 10305 # work, assume that -exports_file does not work either and 10306 # implicitly export all symbols. 10307 save_LDFLAGS="$LDFLAGS" 10308 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 10309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10310/* end confdefs.h. */ 10311int foo(void) {} 10312_ACEOF 10313if ac_fn_c_try_link "$LINENO"; then : 10314 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' 10315 10316fi 10317rm -f core conftest.err conftest.$ac_objext \ 10318 conftest$ac_exeext conftest.$ac_ext 10319 LDFLAGS="$save_LDFLAGS" 10320 else 10321 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' 10322 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' 10323 fi 10324 archive_cmds_need_lc='no' 10325 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10326 hardcode_libdir_separator=: 10327 inherit_rpath=yes 10328 link_all_deplibs=yes 10329 ;; 10330 10331 netbsd*) 10332 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10333 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 10334 else 10335 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 10336 fi 10337 hardcode_libdir_flag_spec='-R$libdir' 10338 hardcode_direct=yes 10339 hardcode_shlibpath_var=no 10340 ;; 10341 10342 newsos6) 10343 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10344 hardcode_direct=yes 10345 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10346 hardcode_libdir_separator=: 10347 hardcode_shlibpath_var=no 10348 ;; 10349 10350 *nto* | *qnx*) 10351 ;; 10352 10353 openbsd*) 10354 if test -f /usr/libexec/ld.so; then 10355 hardcode_direct=yes 10356 hardcode_shlibpath_var=no 10357 hardcode_direct_absolute=yes 10358 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10359 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10360 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 10361 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10362 export_dynamic_flag_spec='${wl}-E' 10363 else 10364 case $host_os in 10365 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 10366 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10367 hardcode_libdir_flag_spec='-R$libdir' 10368 ;; 10369 *) 10370 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 10371 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 10372 ;; 10373 esac 10374 fi 10375 else 10376 ld_shlibs=no 10377 fi 10378 ;; 10379 10380 os2*) 10381 hardcode_libdir_flag_spec='-L$libdir' 10382 hardcode_minus_L=yes 10383 allow_undefined_flag=unsupported 10384 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' 10385 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 10386 ;; 10387 10388 osf3*) 10389 if test "$GCC" = yes; then 10390 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10391 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' 10392 else 10393 allow_undefined_flag=' -expect_unresolved \*' 10394 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' 10395 fi 10396 archive_cmds_need_lc='no' 10397 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10398 hardcode_libdir_separator=: 10399 ;; 10400 10401 osf4* | osf5*) # as osf3* with the addition of -msym flag 10402 if test "$GCC" = yes; then 10403 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 10404 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' 10405 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 10406 else 10407 allow_undefined_flag=' -expect_unresolved \*' 10408 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' 10409 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~ 10410 $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' 10411 10412 # Both c and cxx compiler support -rpath directly 10413 hardcode_libdir_flag_spec='-rpath $libdir' 10414 fi 10415 archive_cmds_need_lc='no' 10416 hardcode_libdir_separator=: 10417 ;; 10418 10419 solaris*) 10420 no_undefined_flag=' -z defs' 10421 if test "$GCC" = yes; then 10422 wlarc='${wl}' 10423 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 10424 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10425 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10426 else 10427 case `$CC -V 2>&1` in 10428 *"Compilers 5.0"*) 10429 wlarc='' 10430 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 10431 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10432 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 10433 ;; 10434 *) 10435 wlarc='${wl}' 10436 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 10437 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 10438 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 10439 ;; 10440 esac 10441 fi 10442 hardcode_libdir_flag_spec='-R$libdir' 10443 hardcode_shlibpath_var=no 10444 case $host_os in 10445 solaris2.[0-5] | solaris2.[0-5].*) ;; 10446 *) 10447 # The compiler driver will combine and reorder linker options, 10448 # but understands `-z linker_flag'. GCC discards it without `$wl', 10449 # but is careful enough not to reorder. 10450 # Supported since Solaris 2.6 (maybe 2.5.1?) 10451 if test "$GCC" = yes; then 10452 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10453 else 10454 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 10455 fi 10456 ;; 10457 esac 10458 link_all_deplibs=yes 10459 ;; 10460 10461 sunos4*) 10462 if test "x$host_vendor" = xsequent; then 10463 # Use $CC to link under sequent, because it throws in some extra .o 10464 # files that make .init and .fini sections work. 10465 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10466 else 10467 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10468 fi 10469 hardcode_libdir_flag_spec='-L$libdir' 10470 hardcode_direct=yes 10471 hardcode_minus_L=yes 10472 hardcode_shlibpath_var=no 10473 ;; 10474 10475 sysv4) 10476 case $host_vendor in 10477 sni) 10478 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10479 hardcode_direct=yes # is this really true??? 10480 ;; 10481 siemens) 10482 ## LD is ld it makes a PLAMLIB 10483 ## CC just makes a GrossModule. 10484 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10485 reload_cmds='$CC -r -o $output$reload_objs' 10486 hardcode_direct=no 10487 ;; 10488 motorola) 10489 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10490 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10491 ;; 10492 esac 10493 runpath_var='LD_RUN_PATH' 10494 hardcode_shlibpath_var=no 10495 ;; 10496 10497 sysv4.3*) 10498 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10499 hardcode_shlibpath_var=no 10500 export_dynamic_flag_spec='-Bexport' 10501 ;; 10502 10503 sysv4*MP*) 10504 if test -d /usr/nec; then 10505 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10506 hardcode_shlibpath_var=no 10507 runpath_var=LD_RUN_PATH 10508 hardcode_runpath_var=yes 10509 ld_shlibs=yes 10510 fi 10511 ;; 10512 10513 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10514 no_undefined_flag='${wl}-z,text' 10515 archive_cmds_need_lc=no 10516 hardcode_shlibpath_var=no 10517 runpath_var='LD_RUN_PATH' 10518 10519 if test "$GCC" = yes; then 10520 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10521 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10522 else 10523 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10524 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10525 fi 10526 ;; 10527 10528 sysv5* | sco3.2v5* | sco5v6*) 10529 # Note: We can NOT use -z defs as we might desire, because we do not 10530 # link with -lc, and that would cause any symbols used from libc to 10531 # always be unresolved, which means just about no library would 10532 # ever link correctly. If we're not using GNU ld we use -z text 10533 # though, which does catch some bad symbols but isn't as heavy-handed 10534 # as -z defs. 10535 no_undefined_flag='${wl}-z,text' 10536 allow_undefined_flag='${wl}-z,nodefs' 10537 archive_cmds_need_lc=no 10538 hardcode_shlibpath_var=no 10539 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10540 hardcode_libdir_separator=':' 10541 link_all_deplibs=yes 10542 export_dynamic_flag_spec='${wl}-Bexport' 10543 runpath_var='LD_RUN_PATH' 10544 10545 if test "$GCC" = yes; then 10546 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10547 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10548 else 10549 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10550 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10551 fi 10552 ;; 10553 10554 uts4*) 10555 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10556 hardcode_libdir_flag_spec='-L$libdir' 10557 hardcode_shlibpath_var=no 10558 ;; 10559 10560 *) 10561 ld_shlibs=no 10562 ;; 10563 esac 10564 10565 if test x$host_vendor = xsni; then 10566 case $host in 10567 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10568 export_dynamic_flag_spec='${wl}-Blargedynsym' 10569 ;; 10570 esac 10571 fi 10572 fi 10573 10574{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10575$as_echo "$ld_shlibs" >&6; } 10576test "$ld_shlibs" = no && can_build_shared=no 10577 10578with_gnu_ld=$with_gnu_ld 10579 10580 10581 10582 10583 10584 10585 10586 10587 10588 10589 10590 10591 10592 10593 10594# 10595# Do we need to explicitly link libc? 10596# 10597case "x$archive_cmds_need_lc" in 10598x|xyes) 10599 # Assume -lc should be added 10600 archive_cmds_need_lc=yes 10601 10602 if test "$enable_shared" = yes && test "$GCC" = yes; then 10603 case $archive_cmds in 10604 *'~'*) 10605 # FIXME: we may have to deal with multi-command sequences. 10606 ;; 10607 '$CC '*) 10608 # Test whether the compiler implicitly links with -lc since on some 10609 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10610 # to ld, don't add -lc before -lgcc. 10611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10612$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10613if ${lt_cv_archive_cmds_need_lc+:} false; then : 10614 $as_echo_n "(cached) " >&6 10615else 10616 $RM conftest* 10617 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10618 10619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10620 (eval $ac_compile) 2>&5 10621 ac_status=$? 10622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10623 test $ac_status = 0; } 2>conftest.err; then 10624 soname=conftest 10625 lib=conftest 10626 libobjs=conftest.$ac_objext 10627 deplibs= 10628 wl=$lt_prog_compiler_wl 10629 pic_flag=$lt_prog_compiler_pic 10630 compiler_flags=-v 10631 linker_flags=-v 10632 verstring= 10633 output_objdir=. 10634 libname=conftest 10635 lt_save_allow_undefined_flag=$allow_undefined_flag 10636 allow_undefined_flag= 10637 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10638 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10639 ac_status=$? 10640 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10641 test $ac_status = 0; } 10642 then 10643 lt_cv_archive_cmds_need_lc=no 10644 else 10645 lt_cv_archive_cmds_need_lc=yes 10646 fi 10647 allow_undefined_flag=$lt_save_allow_undefined_flag 10648 else 10649 cat conftest.err 1>&5 10650 fi 10651 $RM conftest* 10652 10653fi 10654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10655$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10656 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10657 ;; 10658 esac 10659 fi 10660 ;; 10661esac 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 10786 10787 10788 10789 10790 10791 10792 10793 10794 10795 10796 10797 10798 10799 10800 10801 10802 10803 10804 10805 10806 10807 10808 10809 10810 10811 10812 10813 10814 10815 10816 10817 10818 10819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10820$as_echo_n "checking dynamic linker characteristics... " >&6; } 10821 10822if test "$GCC" = yes; then 10823 case $host_os in 10824 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10825 *) lt_awk_arg="/^libraries:/" ;; 10826 esac 10827 case $host_os in 10828 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10829 *) lt_sed_strip_eq="s,=/,/,g" ;; 10830 esac 10831 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10832 case $lt_search_path_spec in 10833 *\;*) 10834 # if the path contains ";" then we assume it to be the separator 10835 # otherwise default to the standard path separator (i.e. ":") - it is 10836 # assumed that no part of a normal pathname contains ";" but that should 10837 # okay in the real world where ";" in dirpaths is itself problematic. 10838 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10839 ;; 10840 *) 10841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10842 ;; 10843 esac 10844 # Ok, now we have the path, separated by spaces, we can step through it 10845 # and add multilib dir if necessary. 10846 lt_tmp_lt_search_path_spec= 10847 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10848 for lt_sys_path in $lt_search_path_spec; do 10849 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10850 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10851 else 10852 test -d "$lt_sys_path" && \ 10853 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10854 fi 10855 done 10856 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10857BEGIN {RS=" "; FS="/|\n";} { 10858 lt_foo=""; 10859 lt_count=0; 10860 for (lt_i = NF; lt_i > 0; lt_i--) { 10861 if ($lt_i != "" && $lt_i != ".") { 10862 if ($lt_i == "..") { 10863 lt_count++; 10864 } else { 10865 if (lt_count == 0) { 10866 lt_foo="/" $lt_i lt_foo; 10867 } else { 10868 lt_count--; 10869 } 10870 } 10871 } 10872 } 10873 if (lt_foo != "") { lt_freq[lt_foo]++; } 10874 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10875}'` 10876 # AWK program above erroneously prepends '/' to C:/dos/paths 10877 # for these hosts. 10878 case $host_os in 10879 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10880 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10881 esac 10882 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10883else 10884 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10885fi 10886library_names_spec= 10887libname_spec='lib$name' 10888soname_spec= 10889shrext_cmds=".so" 10890postinstall_cmds= 10891postuninstall_cmds= 10892finish_cmds= 10893finish_eval= 10894shlibpath_var= 10895shlibpath_overrides_runpath=unknown 10896version_type=none 10897dynamic_linker="$host_os ld.so" 10898sys_lib_dlsearch_path_spec="/lib /usr/lib" 10899need_lib_prefix=unknown 10900hardcode_into_libs=no 10901 10902# when you set need_version to no, make sure it does not cause -set_version 10903# flags to be left without arguments 10904need_version=unknown 10905 10906case $host_os in 10907aix3*) 10908 version_type=linux 10909 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10910 shlibpath_var=LIBPATH 10911 10912 # AIX 3 has no versioning support, so we append a major version to the name. 10913 soname_spec='${libname}${release}${shared_ext}$major' 10914 ;; 10915 10916aix[4-9]*) 10917 version_type=linux 10918 need_lib_prefix=no 10919 need_version=no 10920 hardcode_into_libs=yes 10921 if test "$host_cpu" = ia64; then 10922 # AIX 5 supports IA64 10923 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10924 shlibpath_var=LD_LIBRARY_PATH 10925 else 10926 # With GCC up to 2.95.x, collect2 would create an import file 10927 # for dependence libraries. The import file would start with 10928 # the line `#! .'. This would cause the generated library to 10929 # depend on `.', always an invalid library. This was fixed in 10930 # development snapshots of GCC prior to 3.0. 10931 case $host_os in 10932 aix4 | aix4.[01] | aix4.[01].*) 10933 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10934 echo ' yes ' 10935 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10936 : 10937 else 10938 can_build_shared=no 10939 fi 10940 ;; 10941 esac 10942 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10943 # soname into executable. Probably we can add versioning support to 10944 # collect2, so additional links can be useful in future. 10945 if test "$aix_use_runtimelinking" = yes; then 10946 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10947 # instead of lib<name>.a to let people know that these are not 10948 # typical AIX shared libraries. 10949 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10950 else 10951 # We preserve .a as extension for shared libraries through AIX4.2 10952 # and later when we are not doing run time linking. 10953 library_names_spec='${libname}${release}.a $libname.a' 10954 soname_spec='${libname}${release}${shared_ext}$major' 10955 fi 10956 shlibpath_var=LIBPATH 10957 fi 10958 ;; 10959 10960amigaos*) 10961 case $host_cpu in 10962 powerpc) 10963 # Since July 2007 AmigaOS4 officially supports .so libraries. 10964 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10965 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10966 ;; 10967 m68k) 10968 library_names_spec='$libname.ixlibrary $libname.a' 10969 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10970 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' 10971 ;; 10972 esac 10973 ;; 10974 10975beos*) 10976 library_names_spec='${libname}${shared_ext}' 10977 dynamic_linker="$host_os ld.so" 10978 shlibpath_var=LIBRARY_PATH 10979 ;; 10980 10981bsdi[45]*) 10982 version_type=linux 10983 need_version=no 10984 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10985 soname_spec='${libname}${release}${shared_ext}$major' 10986 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10987 shlibpath_var=LD_LIBRARY_PATH 10988 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10989 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10990 # the default ld.so.conf also contains /usr/contrib/lib and 10991 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10992 # libtool to hard-code these into programs 10993 ;; 10994 10995cygwin* | mingw* | pw32* | cegcc*) 10996 version_type=windows 10997 shrext_cmds=".dll" 10998 need_version=no 10999 need_lib_prefix=no 11000 11001 case $GCC,$host_os in 11002 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 11003 library_names_spec='$libname.dll.a' 11004 # DLL is installed to $(libdir)/../bin by postinstall_cmds 11005 postinstall_cmds='base_file=`basename \${file}`~ 11006 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 11007 dldir=$destdir/`dirname \$dlpath`~ 11008 test -d \$dldir || mkdir -p \$dldir~ 11009 $install_prog $dir/$dlname \$dldir/$dlname~ 11010 chmod a+x \$dldir/$dlname~ 11011 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 11012 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 11013 fi' 11014 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 11015 dlpath=$dir/\$dldll~ 11016 $RM \$dlpath' 11017 shlibpath_overrides_runpath=yes 11018 11019 case $host_os in 11020 cygwin*) 11021 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 11022 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11023 11024 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 11025 ;; 11026 mingw* | cegcc*) 11027 # MinGW DLLs use traditional 'lib' prefix 11028 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11029 ;; 11030 pw32*) 11031 # pw32 DLLs use 'pw' prefix rather than 'lib' 11032 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 11033 ;; 11034 esac 11035 ;; 11036 11037 *) 11038 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 11039 ;; 11040 esac 11041 dynamic_linker='Win32 ld.exe' 11042 # FIXME: first we should search . and the directory the executable is in 11043 shlibpath_var=PATH 11044 ;; 11045 11046darwin* | rhapsody*) 11047 dynamic_linker="$host_os dyld" 11048 version_type=darwin 11049 need_lib_prefix=no 11050 need_version=no 11051 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 11052 soname_spec='${libname}${release}${major}$shared_ext' 11053 shlibpath_overrides_runpath=yes 11054 shlibpath_var=DYLD_LIBRARY_PATH 11055 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 11056 11057 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 11058 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 11059 ;; 11060 11061dgux*) 11062 version_type=linux 11063 need_lib_prefix=no 11064 need_version=no 11065 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 11066 soname_spec='${libname}${release}${shared_ext}$major' 11067 shlibpath_var=LD_LIBRARY_PATH 11068 ;; 11069 11070freebsd1*) 11071 dynamic_linker=no 11072 ;; 11073 11074freebsd* | dragonfly*) 11075 # DragonFly does not have aout. When/if they implement a new 11076 # versioning mechanism, adjust this. 11077 if test -x /usr/bin/objformat; then 11078 objformat=`/usr/bin/objformat` 11079 else 11080 case $host_os in 11081 freebsd[123]*) objformat=aout ;; 11082 *) objformat=elf ;; 11083 esac 11084 fi 11085 version_type=freebsd-$objformat 11086 case $version_type in 11087 freebsd-elf*) 11088 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11089 need_version=no 11090 need_lib_prefix=no 11091 ;; 11092 freebsd-*) 11093 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 11094 need_version=yes 11095 ;; 11096 esac 11097 shlibpath_var=LD_LIBRARY_PATH 11098 case $host_os in 11099 freebsd2*) 11100 shlibpath_overrides_runpath=yes 11101 ;; 11102 freebsd3.[01]* | freebsdelf3.[01]*) 11103 shlibpath_overrides_runpath=yes 11104 hardcode_into_libs=yes 11105 ;; 11106 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 11107 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 11108 shlibpath_overrides_runpath=no 11109 hardcode_into_libs=yes 11110 ;; 11111 *) # from 4.6 on, and DragonFly 11112 shlibpath_overrides_runpath=yes 11113 hardcode_into_libs=yes 11114 ;; 11115 esac 11116 ;; 11117 11118gnu*) 11119 version_type=linux 11120 need_lib_prefix=no 11121 need_version=no 11122 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11123 soname_spec='${libname}${release}${shared_ext}$major' 11124 shlibpath_var=LD_LIBRARY_PATH 11125 hardcode_into_libs=yes 11126 ;; 11127 11128haiku*) 11129 version_type=linux 11130 need_lib_prefix=no 11131 need_version=no 11132 dynamic_linker="$host_os runtime_loader" 11133 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11134 soname_spec='${libname}${release}${shared_ext}$major' 11135 shlibpath_var=LIBRARY_PATH 11136 shlibpath_overrides_runpath=yes 11137 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 11138 hardcode_into_libs=yes 11139 ;; 11140 11141hpux9* | hpux10* | hpux11*) 11142 # Give a soname corresponding to the major version so that dld.sl refuses to 11143 # link against other versions. 11144 version_type=sunos 11145 need_lib_prefix=no 11146 need_version=no 11147 case $host_cpu in 11148 ia64*) 11149 shrext_cmds='.so' 11150 hardcode_into_libs=yes 11151 dynamic_linker="$host_os dld.so" 11152 shlibpath_var=LD_LIBRARY_PATH 11153 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11154 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11155 soname_spec='${libname}${release}${shared_ext}$major' 11156 if test "X$HPUX_IA64_MODE" = X32; then 11157 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11158 else 11159 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11160 fi 11161 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11162 ;; 11163 hppa*64*) 11164 shrext_cmds='.sl' 11165 hardcode_into_libs=yes 11166 dynamic_linker="$host_os dld.sl" 11167 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11168 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11169 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11170 soname_spec='${libname}${release}${shared_ext}$major' 11171 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11172 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11173 ;; 11174 *) 11175 shrext_cmds='.sl' 11176 dynamic_linker="$host_os dld.sl" 11177 shlibpath_var=SHLIB_PATH 11178 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11179 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11180 soname_spec='${libname}${release}${shared_ext}$major' 11181 ;; 11182 esac 11183 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 11184 postinstall_cmds='chmod 555 $lib' 11185 # or fails outright, so override atomically: 11186 install_override_mode=555 11187 ;; 11188 11189interix[3-9]*) 11190 version_type=linux 11191 need_lib_prefix=no 11192 need_version=no 11193 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11194 soname_spec='${libname}${release}${shared_ext}$major' 11195 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 11196 shlibpath_var=LD_LIBRARY_PATH 11197 shlibpath_overrides_runpath=no 11198 hardcode_into_libs=yes 11199 ;; 11200 11201irix5* | irix6* | nonstopux*) 11202 case $host_os in 11203 nonstopux*) version_type=nonstopux ;; 11204 *) 11205 if test "$lt_cv_prog_gnu_ld" = yes; then 11206 version_type=linux 11207 else 11208 version_type=irix 11209 fi ;; 11210 esac 11211 need_lib_prefix=no 11212 need_version=no 11213 soname_spec='${libname}${release}${shared_ext}$major' 11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11215 case $host_os in 11216 irix5* | nonstopux*) 11217 libsuff= shlibsuff= 11218 ;; 11219 *) 11220 case $LD in # libtool.m4 will add one of these switches to LD 11221 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11222 libsuff= shlibsuff= libmagic=32-bit;; 11223 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11224 libsuff=32 shlibsuff=N32 libmagic=N32;; 11225 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11226 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11227 *) libsuff= shlibsuff= libmagic=never-match;; 11228 esac 11229 ;; 11230 esac 11231 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11232 shlibpath_overrides_runpath=no 11233 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11234 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11235 hardcode_into_libs=yes 11236 ;; 11237 11238# No shared lib support for Linux oldld, aout, or coff. 11239linux*oldld* | linux*aout* | linux*coff*) 11240 dynamic_linker=no 11241 ;; 11242 11243# This must be Linux ELF. 11244linux* | k*bsd*-gnu | kopensolaris*-gnu) 11245 version_type=linux 11246 need_lib_prefix=no 11247 need_version=no 11248 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11249 soname_spec='${libname}${release}${shared_ext}$major' 11250 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11251 shlibpath_var=LD_LIBRARY_PATH 11252 shlibpath_overrides_runpath=no 11253 11254 # Some binutils ld are patched to set DT_RUNPATH 11255 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 11256 $as_echo_n "(cached) " >&6 11257else 11258 lt_cv_shlibpath_overrides_runpath=no 11259 save_LDFLAGS=$LDFLAGS 11260 save_libdir=$libdir 11261 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 11262 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 11263 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11264/* end confdefs.h. */ 11265 11266int 11267main () 11268{ 11269 11270 ; 11271 return 0; 11272} 11273_ACEOF 11274if ac_fn_c_try_link "$LINENO"; then : 11275 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 11276 lt_cv_shlibpath_overrides_runpath=yes 11277fi 11278fi 11279rm -f core conftest.err conftest.$ac_objext \ 11280 conftest$ac_exeext conftest.$ac_ext 11281 LDFLAGS=$save_LDFLAGS 11282 libdir=$save_libdir 11283 11284fi 11285 11286 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 11287 11288 # This implies no fast_install, which is unacceptable. 11289 # Some rework will be needed to allow for fast_install 11290 # before this can be enabled. 11291 hardcode_into_libs=yes 11292 11293 # Append ld.so.conf contents to the search path 11294 if test -f /etc/ld.so.conf; then 11295 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' ' '` 11296 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11297 fi 11298 11299 # We used to test for /lib/ld.so.1 and disable shared libraries on 11300 # powerpc, because MkLinux only supported shared libraries with the 11301 # GNU dynamic linker. Since this was broken with cross compilers, 11302 # most powerpc-linux boxes support dynamic linking these days and 11303 # people can always --disable-shared, the test was removed, and we 11304 # assume the GNU/Linux dynamic linker is in use. 11305 dynamic_linker='GNU/Linux ld.so' 11306 ;; 11307 11308netbsd*) 11309 version_type=sunos 11310 need_lib_prefix=no 11311 need_version=no 11312 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11314 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11315 dynamic_linker='NetBSD (a.out) ld.so' 11316 else 11317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11318 soname_spec='${libname}${release}${shared_ext}$major' 11319 dynamic_linker='NetBSD ld.elf_so' 11320 fi 11321 shlibpath_var=LD_LIBRARY_PATH 11322 shlibpath_overrides_runpath=yes 11323 hardcode_into_libs=yes 11324 ;; 11325 11326newsos6) 11327 version_type=linux 11328 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11329 shlibpath_var=LD_LIBRARY_PATH 11330 shlibpath_overrides_runpath=yes 11331 ;; 11332 11333*nto* | *qnx*) 11334 version_type=qnx 11335 need_lib_prefix=no 11336 need_version=no 11337 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11338 soname_spec='${libname}${release}${shared_ext}$major' 11339 shlibpath_var=LD_LIBRARY_PATH 11340 shlibpath_overrides_runpath=no 11341 hardcode_into_libs=yes 11342 dynamic_linker='ldqnx.so' 11343 ;; 11344 11345openbsd*) 11346 version_type=sunos 11347 sys_lib_dlsearch_path_spec="/usr/lib" 11348 need_lib_prefix=no 11349 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 11350 case $host_os in 11351 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 11352 *) need_version=no ;; 11353 esac 11354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11355 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11356 shlibpath_var=LD_LIBRARY_PATH 11357 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11358 case $host_os in 11359 openbsd2.[89] | openbsd2.[89].*) 11360 shlibpath_overrides_runpath=no 11361 ;; 11362 *) 11363 shlibpath_overrides_runpath=yes 11364 ;; 11365 esac 11366 else 11367 shlibpath_overrides_runpath=yes 11368 fi 11369 ;; 11370 11371os2*) 11372 libname_spec='$name' 11373 shrext_cmds=".dll" 11374 need_lib_prefix=no 11375 library_names_spec='$libname${shared_ext} $libname.a' 11376 dynamic_linker='OS/2 ld.exe' 11377 shlibpath_var=LIBPATH 11378 ;; 11379 11380osf3* | osf4* | osf5*) 11381 version_type=osf 11382 need_lib_prefix=no 11383 need_version=no 11384 soname_spec='${libname}${release}${shared_ext}$major' 11385 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11386 shlibpath_var=LD_LIBRARY_PATH 11387 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11388 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11389 ;; 11390 11391rdos*) 11392 dynamic_linker=no 11393 ;; 11394 11395solaris*) 11396 version_type=linux 11397 need_lib_prefix=no 11398 need_version=no 11399 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11400 soname_spec='${libname}${release}${shared_ext}$major' 11401 shlibpath_var=LD_LIBRARY_PATH 11402 shlibpath_overrides_runpath=yes 11403 hardcode_into_libs=yes 11404 # ldd complains unless libraries are executable 11405 postinstall_cmds='chmod +x $lib' 11406 ;; 11407 11408sunos4*) 11409 version_type=sunos 11410 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11411 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11412 shlibpath_var=LD_LIBRARY_PATH 11413 shlibpath_overrides_runpath=yes 11414 if test "$with_gnu_ld" = yes; then 11415 need_lib_prefix=no 11416 fi 11417 need_version=yes 11418 ;; 11419 11420sysv4 | sysv4.3*) 11421 version_type=linux 11422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11423 soname_spec='${libname}${release}${shared_ext}$major' 11424 shlibpath_var=LD_LIBRARY_PATH 11425 case $host_vendor in 11426 sni) 11427 shlibpath_overrides_runpath=no 11428 need_lib_prefix=no 11429 runpath_var=LD_RUN_PATH 11430 ;; 11431 siemens) 11432 need_lib_prefix=no 11433 ;; 11434 motorola) 11435 need_lib_prefix=no 11436 need_version=no 11437 shlibpath_overrides_runpath=no 11438 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11439 ;; 11440 esac 11441 ;; 11442 11443sysv4*MP*) 11444 if test -d /usr/nec ;then 11445 version_type=linux 11446 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11447 soname_spec='$libname${shared_ext}.$major' 11448 shlibpath_var=LD_LIBRARY_PATH 11449 fi 11450 ;; 11451 11452sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 11453 version_type=freebsd-elf 11454 need_lib_prefix=no 11455 need_version=no 11456 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 11457 soname_spec='${libname}${release}${shared_ext}$major' 11458 shlibpath_var=LD_LIBRARY_PATH 11459 shlibpath_overrides_runpath=yes 11460 hardcode_into_libs=yes 11461 if test "$with_gnu_ld" = yes; then 11462 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11463 else 11464 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11465 case $host_os in 11466 sco3.2v5*) 11467 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11468 ;; 11469 esac 11470 fi 11471 sys_lib_dlsearch_path_spec='/usr/lib' 11472 ;; 11473 11474tpf*) 11475 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11476 version_type=linux 11477 need_lib_prefix=no 11478 need_version=no 11479 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11480 shlibpath_var=LD_LIBRARY_PATH 11481 shlibpath_overrides_runpath=no 11482 hardcode_into_libs=yes 11483 ;; 11484 11485uts4*) 11486 version_type=linux 11487 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11488 soname_spec='${libname}${release}${shared_ext}$major' 11489 shlibpath_var=LD_LIBRARY_PATH 11490 ;; 11491 11492*) 11493 dynamic_linker=no 11494 ;; 11495esac 11496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11497$as_echo "$dynamic_linker" >&6; } 11498test "$dynamic_linker" = no && can_build_shared=no 11499 11500variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11501if test "$GCC" = yes; then 11502 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11503fi 11504 11505if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11506 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11507fi 11508if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11509 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11510fi 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 11528 11529 11530 11531 11532 11533 11534 11535 11536 11537 11538 11539 11540 11541 11542 11543 11544 11545 11546 11547 11548 11549 11550 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 11564 11565 11566 11567 11568 11569 11570 11571 11572 11573 11574 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 11589 11590 11591 11592 11593 11594 11595 11596 11597 11598 11599 11600 11601 11602 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11604$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11605hardcode_action= 11606if test -n "$hardcode_libdir_flag_spec" || 11607 test -n "$runpath_var" || 11608 test "X$hardcode_automatic" = "Xyes" ; then 11609 11610 # We can hardcode non-existent directories. 11611 if test "$hardcode_direct" != no && 11612 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11613 # have to relink, otherwise we might link with an installed library 11614 # when we should be linking with a yet-to-be-installed one 11615 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11616 test "$hardcode_minus_L" != no; then 11617 # Linking always hardcodes the temporary library directory. 11618 hardcode_action=relink 11619 else 11620 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11621 hardcode_action=immediate 11622 fi 11623else 11624 # We cannot hardcode anything, or else we can only hardcode existing 11625 # directories. 11626 hardcode_action=unsupported 11627fi 11628{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11629$as_echo "$hardcode_action" >&6; } 11630 11631if test "$hardcode_action" = relink || 11632 test "$inherit_rpath" = yes; then 11633 # Fast installation is not supported 11634 enable_fast_install=no 11635elif test "$shlibpath_overrides_runpath" = yes || 11636 test "$enable_shared" = no; then 11637 # Fast installation is not necessary 11638 enable_fast_install=needless 11639fi 11640 11641 11642 11643 11644 11645 11646 if test "x$enable_dlopen" != xyes; then 11647 enable_dlopen=unknown 11648 enable_dlopen_self=unknown 11649 enable_dlopen_self_static=unknown 11650else 11651 lt_cv_dlopen=no 11652 lt_cv_dlopen_libs= 11653 11654 case $host_os in 11655 beos*) 11656 lt_cv_dlopen="load_add_on" 11657 lt_cv_dlopen_libs= 11658 lt_cv_dlopen_self=yes 11659 ;; 11660 11661 mingw* | pw32* | cegcc*) 11662 lt_cv_dlopen="LoadLibrary" 11663 lt_cv_dlopen_libs= 11664 ;; 11665 11666 cygwin*) 11667 lt_cv_dlopen="dlopen" 11668 lt_cv_dlopen_libs= 11669 ;; 11670 11671 darwin*) 11672 # if libdl is installed we need to link against it 11673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11674$as_echo_n "checking for dlopen in -ldl... " >&6; } 11675if ${ac_cv_lib_dl_dlopen+:} false; then : 11676 $as_echo_n "(cached) " >&6 11677else 11678 ac_check_lib_save_LIBS=$LIBS 11679LIBS="-ldl $LIBS" 11680cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11681/* end confdefs.h. */ 11682 11683/* Override any GCC internal prototype to avoid an error. 11684 Use char because int might match the return type of a GCC 11685 builtin and then its argument prototype would still apply. */ 11686#ifdef __cplusplus 11687extern "C" 11688#endif 11689char dlopen (); 11690int 11691main () 11692{ 11693return dlopen (); 11694 ; 11695 return 0; 11696} 11697_ACEOF 11698if ac_fn_c_try_link "$LINENO"; then : 11699 ac_cv_lib_dl_dlopen=yes 11700else 11701 ac_cv_lib_dl_dlopen=no 11702fi 11703rm -f core conftest.err conftest.$ac_objext \ 11704 conftest$ac_exeext conftest.$ac_ext 11705LIBS=$ac_check_lib_save_LIBS 11706fi 11707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11708$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11709if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11710 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11711else 11712 11713 lt_cv_dlopen="dyld" 11714 lt_cv_dlopen_libs= 11715 lt_cv_dlopen_self=yes 11716 11717fi 11718 11719 ;; 11720 11721 *) 11722 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11723if test "x$ac_cv_func_shl_load" = xyes; then : 11724 lt_cv_dlopen="shl_load" 11725else 11726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11727$as_echo_n "checking for shl_load in -ldld... " >&6; } 11728if ${ac_cv_lib_dld_shl_load+:} false; then : 11729 $as_echo_n "(cached) " >&6 11730else 11731 ac_check_lib_save_LIBS=$LIBS 11732LIBS="-ldld $LIBS" 11733cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11734/* end confdefs.h. */ 11735 11736/* Override any GCC internal prototype to avoid an error. 11737 Use char because int might match the return type of a GCC 11738 builtin and then its argument prototype would still apply. */ 11739#ifdef __cplusplus 11740extern "C" 11741#endif 11742char shl_load (); 11743int 11744main () 11745{ 11746return shl_load (); 11747 ; 11748 return 0; 11749} 11750_ACEOF 11751if ac_fn_c_try_link "$LINENO"; then : 11752 ac_cv_lib_dld_shl_load=yes 11753else 11754 ac_cv_lib_dld_shl_load=no 11755fi 11756rm -f core conftest.err conftest.$ac_objext \ 11757 conftest$ac_exeext conftest.$ac_ext 11758LIBS=$ac_check_lib_save_LIBS 11759fi 11760{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11761$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11762if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11763 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11764else 11765 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11766if test "x$ac_cv_func_dlopen" = xyes; then : 11767 lt_cv_dlopen="dlopen" 11768else 11769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11770$as_echo_n "checking for dlopen in -ldl... " >&6; } 11771if ${ac_cv_lib_dl_dlopen+:} false; then : 11772 $as_echo_n "(cached) " >&6 11773else 11774 ac_check_lib_save_LIBS=$LIBS 11775LIBS="-ldl $LIBS" 11776cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11777/* end confdefs.h. */ 11778 11779/* Override any GCC internal prototype to avoid an error. 11780 Use char because int might match the return type of a GCC 11781 builtin and then its argument prototype would still apply. */ 11782#ifdef __cplusplus 11783extern "C" 11784#endif 11785char dlopen (); 11786int 11787main () 11788{ 11789return dlopen (); 11790 ; 11791 return 0; 11792} 11793_ACEOF 11794if ac_fn_c_try_link "$LINENO"; then : 11795 ac_cv_lib_dl_dlopen=yes 11796else 11797 ac_cv_lib_dl_dlopen=no 11798fi 11799rm -f core conftest.err conftest.$ac_objext \ 11800 conftest$ac_exeext conftest.$ac_ext 11801LIBS=$ac_check_lib_save_LIBS 11802fi 11803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11804$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11805if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11806 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11807else 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11809$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11810if ${ac_cv_lib_svld_dlopen+:} false; then : 11811 $as_echo_n "(cached) " >&6 11812else 11813 ac_check_lib_save_LIBS=$LIBS 11814LIBS="-lsvld $LIBS" 11815cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11816/* end confdefs.h. */ 11817 11818/* Override any GCC internal prototype to avoid an error. 11819 Use char because int might match the return type of a GCC 11820 builtin and then its argument prototype would still apply. */ 11821#ifdef __cplusplus 11822extern "C" 11823#endif 11824char dlopen (); 11825int 11826main () 11827{ 11828return dlopen (); 11829 ; 11830 return 0; 11831} 11832_ACEOF 11833if ac_fn_c_try_link "$LINENO"; then : 11834 ac_cv_lib_svld_dlopen=yes 11835else 11836 ac_cv_lib_svld_dlopen=no 11837fi 11838rm -f core conftest.err conftest.$ac_objext \ 11839 conftest$ac_exeext conftest.$ac_ext 11840LIBS=$ac_check_lib_save_LIBS 11841fi 11842{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11843$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11844if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11845 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11846else 11847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11848$as_echo_n "checking for dld_link in -ldld... " >&6; } 11849if ${ac_cv_lib_dld_dld_link+:} false; then : 11850 $as_echo_n "(cached) " >&6 11851else 11852 ac_check_lib_save_LIBS=$LIBS 11853LIBS="-ldld $LIBS" 11854cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11855/* end confdefs.h. */ 11856 11857/* Override any GCC internal prototype to avoid an error. 11858 Use char because int might match the return type of a GCC 11859 builtin and then its argument prototype would still apply. */ 11860#ifdef __cplusplus 11861extern "C" 11862#endif 11863char dld_link (); 11864int 11865main () 11866{ 11867return dld_link (); 11868 ; 11869 return 0; 11870} 11871_ACEOF 11872if ac_fn_c_try_link "$LINENO"; then : 11873 ac_cv_lib_dld_dld_link=yes 11874else 11875 ac_cv_lib_dld_dld_link=no 11876fi 11877rm -f core conftest.err conftest.$ac_objext \ 11878 conftest$ac_exeext conftest.$ac_ext 11879LIBS=$ac_check_lib_save_LIBS 11880fi 11881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11882$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11883if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11884 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11885fi 11886 11887 11888fi 11889 11890 11891fi 11892 11893 11894fi 11895 11896 11897fi 11898 11899 11900fi 11901 11902 ;; 11903 esac 11904 11905 if test "x$lt_cv_dlopen" != xno; then 11906 enable_dlopen=yes 11907 else 11908 enable_dlopen=no 11909 fi 11910 11911 case $lt_cv_dlopen in 11912 dlopen) 11913 save_CPPFLAGS="$CPPFLAGS" 11914 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11915 11916 save_LDFLAGS="$LDFLAGS" 11917 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11918 11919 save_LIBS="$LIBS" 11920 LIBS="$lt_cv_dlopen_libs $LIBS" 11921 11922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11923$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11924if ${lt_cv_dlopen_self+:} false; then : 11925 $as_echo_n "(cached) " >&6 11926else 11927 if test "$cross_compiling" = yes; then : 11928 lt_cv_dlopen_self=cross 11929else 11930 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11931 lt_status=$lt_dlunknown 11932 cat > conftest.$ac_ext <<_LT_EOF 11933#line $LINENO "configure" 11934#include "confdefs.h" 11935 11936#if HAVE_DLFCN_H 11937#include <dlfcn.h> 11938#endif 11939 11940#include <stdio.h> 11941 11942#ifdef RTLD_GLOBAL 11943# define LT_DLGLOBAL RTLD_GLOBAL 11944#else 11945# ifdef DL_GLOBAL 11946# define LT_DLGLOBAL DL_GLOBAL 11947# else 11948# define LT_DLGLOBAL 0 11949# endif 11950#endif 11951 11952/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11953 find out it does not work in some platform. */ 11954#ifndef LT_DLLAZY_OR_NOW 11955# ifdef RTLD_LAZY 11956# define LT_DLLAZY_OR_NOW RTLD_LAZY 11957# else 11958# ifdef DL_LAZY 11959# define LT_DLLAZY_OR_NOW DL_LAZY 11960# else 11961# ifdef RTLD_NOW 11962# define LT_DLLAZY_OR_NOW RTLD_NOW 11963# else 11964# ifdef DL_NOW 11965# define LT_DLLAZY_OR_NOW DL_NOW 11966# else 11967# define LT_DLLAZY_OR_NOW 0 11968# endif 11969# endif 11970# endif 11971# endif 11972#endif 11973 11974/* When -fvisbility=hidden is used, assume the code has been annotated 11975 correspondingly for the symbols needed. */ 11976#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11977void fnord () __attribute__((visibility("default"))); 11978#endif 11979 11980void fnord () { int i=42; } 11981int main () 11982{ 11983 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11984 int status = $lt_dlunknown; 11985 11986 if (self) 11987 { 11988 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11989 else 11990 { 11991 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11992 else puts (dlerror ()); 11993 } 11994 /* dlclose (self); */ 11995 } 11996 else 11997 puts (dlerror ()); 11998 11999 return status; 12000} 12001_LT_EOF 12002 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12003 (eval $ac_link) 2>&5 12004 ac_status=$? 12005 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12006 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12007 (./conftest; exit; ) >&5 2>/dev/null 12008 lt_status=$? 12009 case x$lt_status in 12010 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12011 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12012 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 12013 esac 12014 else : 12015 # compilation failed 12016 lt_cv_dlopen_self=no 12017 fi 12018fi 12019rm -fr conftest* 12020 12021 12022fi 12023{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 12024$as_echo "$lt_cv_dlopen_self" >&6; } 12025 12026 if test "x$lt_cv_dlopen_self" = xyes; then 12027 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 12028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 12029$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 12030if ${lt_cv_dlopen_self_static+:} false; then : 12031 $as_echo_n "(cached) " >&6 12032else 12033 if test "$cross_compiling" = yes; then : 12034 lt_cv_dlopen_self_static=cross 12035else 12036 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12037 lt_status=$lt_dlunknown 12038 cat > conftest.$ac_ext <<_LT_EOF 12039#line $LINENO "configure" 12040#include "confdefs.h" 12041 12042#if HAVE_DLFCN_H 12043#include <dlfcn.h> 12044#endif 12045 12046#include <stdio.h> 12047 12048#ifdef RTLD_GLOBAL 12049# define LT_DLGLOBAL RTLD_GLOBAL 12050#else 12051# ifdef DL_GLOBAL 12052# define LT_DLGLOBAL DL_GLOBAL 12053# else 12054# define LT_DLGLOBAL 0 12055# endif 12056#endif 12057 12058/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12059 find out it does not work in some platform. */ 12060#ifndef LT_DLLAZY_OR_NOW 12061# ifdef RTLD_LAZY 12062# define LT_DLLAZY_OR_NOW RTLD_LAZY 12063# else 12064# ifdef DL_LAZY 12065# define LT_DLLAZY_OR_NOW DL_LAZY 12066# else 12067# ifdef RTLD_NOW 12068# define LT_DLLAZY_OR_NOW RTLD_NOW 12069# else 12070# ifdef DL_NOW 12071# define LT_DLLAZY_OR_NOW DL_NOW 12072# else 12073# define LT_DLLAZY_OR_NOW 0 12074# endif 12075# endif 12076# endif 12077# endif 12078#endif 12079 12080/* When -fvisbility=hidden is used, assume the code has been annotated 12081 correspondingly for the symbols needed. */ 12082#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 12083void fnord () __attribute__((visibility("default"))); 12084#endif 12085 12086void fnord () { int i=42; } 12087int main () 12088{ 12089 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12090 int status = $lt_dlunknown; 12091 12092 if (self) 12093 { 12094 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12095 else 12096 { 12097 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12098 else puts (dlerror ()); 12099 } 12100 /* dlclose (self); */ 12101 } 12102 else 12103 puts (dlerror ()); 12104 12105 return status; 12106} 12107_LT_EOF 12108 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 12109 (eval $ac_link) 2>&5 12110 ac_status=$? 12111 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12112 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 12113 (./conftest; exit; ) >&5 2>/dev/null 12114 lt_status=$? 12115 case x$lt_status in 12116 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12117 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12118 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 12119 esac 12120 else : 12121 # compilation failed 12122 lt_cv_dlopen_self_static=no 12123 fi 12124fi 12125rm -fr conftest* 12126 12127 12128fi 12129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 12130$as_echo "$lt_cv_dlopen_self_static" >&6; } 12131 fi 12132 12133 CPPFLAGS="$save_CPPFLAGS" 12134 LDFLAGS="$save_LDFLAGS" 12135 LIBS="$save_LIBS" 12136 ;; 12137 esac 12138 12139 case $lt_cv_dlopen_self in 12140 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12141 *) enable_dlopen_self=unknown ;; 12142 esac 12143 12144 case $lt_cv_dlopen_self_static in 12145 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12146 *) enable_dlopen_self_static=unknown ;; 12147 esac 12148fi 12149 12150 12151 12152 12153 12154 12155 12156 12157 12158 12159 12160 12161 12162 12163 12164 12165 12166striplib= 12167old_striplib= 12168{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 12169$as_echo_n "checking whether stripping libraries is possible... " >&6; } 12170if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 12171 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 12172 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 12173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12174$as_echo "yes" >&6; } 12175else 12176# FIXME - insert some real tests, host_os isn't really good enough 12177 case $host_os in 12178 darwin*) 12179 if test -n "$STRIP" ; then 12180 striplib="$STRIP -x" 12181 old_striplib="$STRIP -S" 12182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12183$as_echo "yes" >&6; } 12184 else 12185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12186$as_echo "no" >&6; } 12187 fi 12188 ;; 12189 *) 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12191$as_echo "no" >&6; } 12192 ;; 12193 esac 12194fi 12195 12196 12197 12198 12199 12200 12201 12202 12203 12204 12205 12206 12207 # Report which library types will actually be built 12208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 12209$as_echo_n "checking if libtool supports shared libraries... " >&6; } 12210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 12211$as_echo "$can_build_shared" >&6; } 12212 12213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 12214$as_echo_n "checking whether to build shared libraries... " >&6; } 12215 test "$can_build_shared" = "no" && enable_shared=no 12216 12217 # On AIX, shared libraries and static libraries use the same namespace, and 12218 # are all built from PIC. 12219 case $host_os in 12220 aix3*) 12221 test "$enable_shared" = yes && enable_static=no 12222 if test -n "$RANLIB"; then 12223 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12224 postinstall_cmds='$RANLIB $lib' 12225 fi 12226 ;; 12227 12228 aix[4-9]*) 12229 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 12230 test "$enable_shared" = yes && enable_static=no 12231 fi 12232 ;; 12233 esac 12234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 12235$as_echo "$enable_shared" >&6; } 12236 12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 12238$as_echo_n "checking whether to build static libraries... " >&6; } 12239 # Make sure either enable_shared or enable_static is yes. 12240 test "$enable_shared" = yes || enable_static=yes 12241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 12242$as_echo "$enable_static" >&6; } 12243 12244 12245 12246 12247fi 12248ac_ext=c 12249ac_cpp='$CPP $CPPFLAGS' 12250ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12251ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12252ac_compiler_gnu=$ac_cv_c_compiler_gnu 12253 12254CC="$lt_save_CC" 12255 12256 12257 12258 12259 12260 12261 12262 12263 12264 12265 12266 12267 12268 ac_config_commands="$ac_config_commands libtool" 12269 12270 12271 12272 12273# Only expand once: 12274 12275 12276 12277# Check for dependencies 12278 12279pkg_failed=no 12280{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XTST" >&5 12281$as_echo_n "checking for XTST... " >&6; } 12282 12283if test -n "$XTST_CFLAGS"; then 12284 pkg_cv_XTST_CFLAGS="$XTST_CFLAGS" 12285 elif test -n "$PKG_CONFIG"; then 12286 if test -n "$PKG_CONFIG" && \ 12287 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 12288 ($PKG_CONFIG --exists --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 12289 ac_status=$? 12290 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12291 test $ac_status = 0; }; then 12292 pkg_cv_XTST_CFLAGS=`$PKG_CONFIG --cflags "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 12293else 12294 pkg_failed=yes 12295fi 12296 else 12297 pkg_failed=untried 12298fi 12299if test -n "$XTST_LIBS"; then 12300 pkg_cv_XTST_LIBS="$XTST_LIBS" 12301 elif test -n "$PKG_CONFIG"; then 12302 if test -n "$PKG_CONFIG" && \ 12303 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto\""; } >&5 12304 ($PKG_CONFIG --exists --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto") 2>&5 12305 ac_status=$? 12306 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 12307 test $ac_status = 0; }; then 12308 pkg_cv_XTST_LIBS=`$PKG_CONFIG --libs "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>/dev/null` 12309else 12310 pkg_failed=yes 12311fi 12312 else 12313 pkg_failed=untried 12314fi 12315 12316 12317 12318if test $pkg_failed = yes; then 12319 12320if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 12321 _pkg_short_errors_supported=yes 12322else 12323 _pkg_short_errors_supported=no 12324fi 12325 if test $_pkg_short_errors_supported = yes; then 12326 XTST_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 12327 else 12328 XTST_PKG_ERRORS=`$PKG_CONFIG --print-errors "x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto" 2>&1` 12329 fi 12330 # Put the nasty error message in config.log where it belongs 12331 echo "$XTST_PKG_ERRORS" >&5 12332 12333 as_fn_error $? "Package requirements (x11 xext >= 1.0.99.4 xi recordproto >= 1.13.99.1 xextproto >= 7.0.99.3 inputproto) were not met: 12334 12335$XTST_PKG_ERRORS 12336 12337Consider adjusting the PKG_CONFIG_PATH environment variable if you 12338installed software in a non-standard prefix. 12339 12340Alternatively, you may set the environment variables XTST_CFLAGS 12341and XTST_LIBS to avoid the need to call pkg-config. 12342See the pkg-config man page for more details. 12343" "$LINENO" 5 12344elif test $pkg_failed = untried; then 12345 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 12346$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 12347as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 12348is in your PATH or set the PKG_CONFIG environment variable to the full 12349path to pkg-config. 12350 12351Alternatively, you may set the environment variables XTST_CFLAGS 12352and XTST_LIBS to avoid the need to call pkg-config. 12353See the pkg-config man page for more details. 12354 12355To get pkg-config, see <http://pkg-config.freedesktop.org/>. 12356See \`config.log' for more details" "$LINENO" 5; } 12357else 12358 XTST_CFLAGS=$pkg_cv_XTST_CFLAGS 12359 XTST_LIBS=$pkg_cv_XTST_LIBS 12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12361$as_echo "yes" >&6; } 12362 : 12363fi 12364 12365# Determine if the source for man pages is available 12366# It may already be present (tarball) or can be generated using xmlto 12367 if test -f "$srcdir/man/XTestQueryExtension.man" || test "x$have_xmlto" = xyes; then 12368 INSTALL_MANPAGES_TRUE= 12369 INSTALL_MANPAGES_FALSE='#' 12370else 12371 INSTALL_MANPAGES_TRUE='#' 12372 INSTALL_MANPAGES_FALSE= 12373fi 12374 12375 12376 12377 12378 12379 12380 12381# Check whether --with-lint was given. 12382if test "${with_lint+set}" = set; then : 12383 withval=$with_lint; use_lint=$withval 12384else 12385 use_lint=no 12386fi 12387 12388 12389# Obtain platform specific info like program name and options 12390# The lint program on FreeBSD and NetBSD is different from the one on Solaris 12391case $host_os in 12392 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 12393 lint_name=splint 12394 lint_options="-badflag" 12395 ;; 12396 *freebsd* | *netbsd*) 12397 lint_name=lint 12398 lint_options="-u -b" 12399 ;; 12400 *solaris*) 12401 lint_name=lint 12402 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 12403 ;; 12404esac 12405 12406# Test for the presence of the program (either guessed by the code or spelled out by the user) 12407if test "x$use_lint" = x"yes" ; then 12408 # Extract the first word of "$lint_name", so it can be a program name with args. 12409set dummy $lint_name; ac_word=$2 12410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12411$as_echo_n "checking for $ac_word... " >&6; } 12412if ${ac_cv_path_LINT+:} false; then : 12413 $as_echo_n "(cached) " >&6 12414else 12415 case $LINT in 12416 [\\/]* | ?:[\\/]*) 12417 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 12418 ;; 12419 *) 12420 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12421for as_dir in $PATH 12422do 12423 IFS=$as_save_IFS 12424 test -z "$as_dir" && as_dir=. 12425 for ac_exec_ext in '' $ac_executable_extensions; do 12426 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12427 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 12428 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12429 break 2 12430 fi 12431done 12432 done 12433IFS=$as_save_IFS 12434 12435 ;; 12436esac 12437fi 12438LINT=$ac_cv_path_LINT 12439if test -n "$LINT"; then 12440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 12441$as_echo "$LINT" >&6; } 12442else 12443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12444$as_echo "no" >&6; } 12445fi 12446 12447 12448 if test "x$LINT" = "x"; then 12449 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 12450 fi 12451elif test "x$use_lint" = x"no" ; then 12452 if test "x$LINT" != "x"; then 12453 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 12454$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 12455 fi 12456else 12457 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 12458fi 12459 12460# User supplied flags override default flags 12461if test "x$LINT_FLAGS" != "x"; then 12462 lint_options=$LINT_FLAGS 12463fi 12464 12465LINT_FLAGS=$lint_options 12466 12467 if test "x$LINT" != x; then 12468 LINT_TRUE= 12469 LINT_FALSE='#' 12470else 12471 LINT_TRUE='#' 12472 LINT_FALSE= 12473fi 12474 12475 12476 12477 12478 12479# Check whether --enable-lint-library was given. 12480if test "${enable_lint_library+set}" = set; then : 12481 enableval=$enable_lint_library; make_lint_lib=$enableval 12482else 12483 make_lint_lib=no 12484fi 12485 12486 12487if test "x$make_lint_lib" = x"yes" ; then 12488 LINTLIB=llib-lXtst.ln 12489 if test "x$LINT" = "x"; then 12490 as_fn_error $? "Cannot make lint library without --with-lint" "$LINENO" 5 12491 fi 12492elif test "x$make_lint_lib" != x"no" ; then 12493 as_fn_error $? "--enable-lint-library expects 'yes' or 'no'." "$LINENO" 5 12494fi 12495 12496 12497 if test x$make_lint_lib != xno; then 12498 MAKE_LINT_LIB_TRUE= 12499 MAKE_LINT_LIB_FALSE='#' 12500else 12501 MAKE_LINT_LIB_TRUE='#' 12502 MAKE_LINT_LIB_FALSE= 12503fi 12504 12505 12506 12507LINT_FLAGS="${LINT_FLAGS} ${XTST_CFLAGS}" 12508 12509ac_config_files="$ac_config_files Makefile man/Makefile src/Makefile specs/Makefile xtst.pc" 12510 12511cat >confcache <<\_ACEOF 12512# This file is a shell script that caches the results of configure 12513# tests run on this system so they can be shared between configure 12514# scripts and configure runs, see configure's option --config-cache. 12515# It is not useful on other systems. If it contains results you don't 12516# want to keep, you may remove or edit it. 12517# 12518# config.status only pays attention to the cache file if you give it 12519# the --recheck option to rerun configure. 12520# 12521# `ac_cv_env_foo' variables (set or unset) will be overridden when 12522# loading this file, other *unset* `ac_cv_foo' will be assigned the 12523# following values. 12524 12525_ACEOF 12526 12527# The following way of writing the cache mishandles newlines in values, 12528# but we know of no workaround that is simple, portable, and efficient. 12529# So, we kill variables containing newlines. 12530# Ultrix sh set writes to stderr and can't be redirected directly, 12531# and sets the high bit in the cache file unless we assign to the vars. 12532( 12533 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12534 eval ac_val=\$$ac_var 12535 case $ac_val in #( 12536 *${as_nl}*) 12537 case $ac_var in #( 12538 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12539$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12540 esac 12541 case $ac_var in #( 12542 _ | IFS | as_nl) ;; #( 12543 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12544 *) { eval $ac_var=; unset $ac_var;} ;; 12545 esac ;; 12546 esac 12547 done 12548 12549 (set) 2>&1 | 12550 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12551 *${as_nl}ac_space=\ *) 12552 # `set' does not quote correctly, so add quotes: double-quote 12553 # substitution turns \\\\ into \\, and sed turns \\ into \. 12554 sed -n \ 12555 "s/'/'\\\\''/g; 12556 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12557 ;; #( 12558 *) 12559 # `set' quotes correctly as required by POSIX, so do not add quotes. 12560 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12561 ;; 12562 esac | 12563 sort 12564) | 12565 sed ' 12566 /^ac_cv_env_/b end 12567 t clear 12568 :clear 12569 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12570 t end 12571 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12572 :end' >>confcache 12573if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12574 if test -w "$cache_file"; then 12575 if test "x$cache_file" != "x/dev/null"; then 12576 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12577$as_echo "$as_me: updating cache $cache_file" >&6;} 12578 if test ! -f "$cache_file" || test -h "$cache_file"; then 12579 cat confcache >"$cache_file" 12580 else 12581 case $cache_file in #( 12582 */* | ?:*) 12583 mv -f confcache "$cache_file"$$ && 12584 mv -f "$cache_file"$$ "$cache_file" ;; #( 12585 *) 12586 mv -f confcache "$cache_file" ;; 12587 esac 12588 fi 12589 fi 12590 else 12591 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12592$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12593 fi 12594fi 12595rm -f confcache 12596 12597test "x$prefix" = xNONE && prefix=$ac_default_prefix 12598# Let make expand exec_prefix. 12599test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12600 12601DEFS=-DHAVE_CONFIG_H 12602 12603ac_libobjs= 12604ac_ltlibobjs= 12605U= 12606for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12607 # 1. Remove the extension, and $U if already installed. 12608 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12609 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12610 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12611 # will be set to the directory where LIBOBJS objects are built. 12612 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12613 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12614done 12615LIBOBJS=$ac_libobjs 12616 12617LTLIBOBJS=$ac_ltlibobjs 12618 12619 12620 if test -n "$EXEEXT"; then 12621 am__EXEEXT_TRUE= 12622 am__EXEEXT_FALSE='#' 12623else 12624 am__EXEEXT_TRUE='#' 12625 am__EXEEXT_FALSE= 12626fi 12627 12628if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12629 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12630Usually this means the macro was only invoked conditionally." "$LINENO" 5 12631fi 12632if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12633 as_fn_error $? "conditional \"AMDEP\" was never defined. 12634Usually this means the macro was only invoked conditionally." "$LINENO" 5 12635fi 12636if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12637 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12638Usually this means the macro was only invoked conditionally." "$LINENO" 5 12639fi 12640if test -z "${ENABLE_SPECS_TRUE}" && test -z "${ENABLE_SPECS_FALSE}"; then 12641 as_fn_error $? "conditional \"ENABLE_SPECS\" was never defined. 12642Usually this means the macro was only invoked conditionally." "$LINENO" 5 12643fi 12644if test -z "${HAVE_XMLTO_TEXT_TRUE}" && test -z "${HAVE_XMLTO_TEXT_FALSE}"; then 12645 as_fn_error $? "conditional \"HAVE_XMLTO_TEXT\" was never defined. 12646Usually this means the macro was only invoked conditionally." "$LINENO" 5 12647fi 12648if test -z "${HAVE_XMLTO_TRUE}" && test -z "${HAVE_XMLTO_FALSE}"; then 12649 as_fn_error $? "conditional \"HAVE_XMLTO\" was never defined. 12650Usually this means the macro was only invoked conditionally." "$LINENO" 5 12651fi 12652if test -z "${HAVE_FOP_TRUE}" && test -z "${HAVE_FOP_FALSE}"; then 12653 as_fn_error $? "conditional \"HAVE_FOP\" was never defined. 12654Usually this means the macro was only invoked conditionally." "$LINENO" 5 12655fi 12656if test -z "${HAVE_STYLESHEETS_TRUE}" && test -z "${HAVE_STYLESHEETS_FALSE}"; then 12657 as_fn_error $? "conditional \"HAVE_STYLESHEETS\" was never defined. 12658Usually this means the macro was only invoked conditionally." "$LINENO" 5 12659fi 12660if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12661 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12662Usually this means the macro was only invoked conditionally." "$LINENO" 5 12663fi 12664if test -z "${INSTALL_MANPAGES_TRUE}" && test -z "${INSTALL_MANPAGES_FALSE}"; then 12665 as_fn_error $? "conditional \"INSTALL_MANPAGES\" was never defined. 12666Usually this means the macro was only invoked conditionally." "$LINENO" 5 12667fi 12668if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12669 as_fn_error $? "conditional \"LINT\" was never defined. 12670Usually this means the macro was only invoked conditionally." "$LINENO" 5 12671fi 12672if test -z "${MAKE_LINT_LIB_TRUE}" && test -z "${MAKE_LINT_LIB_FALSE}"; then 12673 as_fn_error $? "conditional \"MAKE_LINT_LIB\" was never defined. 12674Usually this means the macro was only invoked conditionally." "$LINENO" 5 12675fi 12676 12677: "${CONFIG_STATUS=./config.status}" 12678ac_write_fail=0 12679ac_clean_files_save=$ac_clean_files 12680ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12681{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12682$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12683as_write_fail=0 12684cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12685#! $SHELL 12686# Generated by $as_me. 12687# Run this file to recreate the current configuration. 12688# Compiler output produced by configure, useful for debugging 12689# configure, is in config.log if it exists. 12690 12691debug=false 12692ac_cs_recheck=false 12693ac_cs_silent=false 12694 12695SHELL=\${CONFIG_SHELL-$SHELL} 12696export SHELL 12697_ASEOF 12698cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12699## -------------------- ## 12700## M4sh Initialization. ## 12701## -------------------- ## 12702 12703# Be more Bourne compatible 12704DUALCASE=1; export DUALCASE # for MKS sh 12705if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12706 emulate sh 12707 NULLCMD=: 12708 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12709 # is contrary to our usage. Disable this feature. 12710 alias -g '${1+"$@"}'='"$@"' 12711 setopt NO_GLOB_SUBST 12712else 12713 case `(set -o) 2>/dev/null` in #( 12714 *posix*) : 12715 set -o posix ;; #( 12716 *) : 12717 ;; 12718esac 12719fi 12720 12721 12722as_nl=' 12723' 12724export as_nl 12725# Printing a long string crashes Solaris 7 /usr/bin/printf. 12726as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12727as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12728as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12729# Prefer a ksh shell builtin over an external printf program on Solaris, 12730# but without wasting forks for bash or zsh. 12731if test -z "$BASH_VERSION$ZSH_VERSION" \ 12732 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12733 as_echo='print -r --' 12734 as_echo_n='print -rn --' 12735elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12736 as_echo='printf %s\n' 12737 as_echo_n='printf %s' 12738else 12739 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12740 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12741 as_echo_n='/usr/ucb/echo -n' 12742 else 12743 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12744 as_echo_n_body='eval 12745 arg=$1; 12746 case $arg in #( 12747 *"$as_nl"*) 12748 expr "X$arg" : "X\\(.*\\)$as_nl"; 12749 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12750 esac; 12751 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12752 ' 12753 export as_echo_n_body 12754 as_echo_n='sh -c $as_echo_n_body as_echo' 12755 fi 12756 export as_echo_body 12757 as_echo='sh -c $as_echo_body as_echo' 12758fi 12759 12760# The user is always right. 12761if test "${PATH_SEPARATOR+set}" != set; then 12762 PATH_SEPARATOR=: 12763 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12764 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12765 PATH_SEPARATOR=';' 12766 } 12767fi 12768 12769 12770# IFS 12771# We need space, tab and new line, in precisely that order. Quoting is 12772# there to prevent editors from complaining about space-tab. 12773# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12774# splitting by setting IFS to empty value.) 12775IFS=" "" $as_nl" 12776 12777# Find who we are. Look in the path if we contain no directory separator. 12778as_myself= 12779case $0 in #(( 12780 *[\\/]* ) as_myself=$0 ;; 12781 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12782for as_dir in $PATH 12783do 12784 IFS=$as_save_IFS 12785 test -z "$as_dir" && as_dir=. 12786 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12787 done 12788IFS=$as_save_IFS 12789 12790 ;; 12791esac 12792# We did not find ourselves, most probably we were run as `sh COMMAND' 12793# in which case we are not to be found in the path. 12794if test "x$as_myself" = x; then 12795 as_myself=$0 12796fi 12797if test ! -f "$as_myself"; then 12798 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12799 exit 1 12800fi 12801 12802# Unset variables that we do not need and which cause bugs (e.g. in 12803# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12804# suppresses any "Segmentation fault" message there. '((' could 12805# trigger a bug in pdksh 5.2.14. 12806for as_var in BASH_ENV ENV MAIL MAILPATH 12807do eval test x\${$as_var+set} = xset \ 12808 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12809done 12810PS1='$ ' 12811PS2='> ' 12812PS4='+ ' 12813 12814# NLS nuisances. 12815LC_ALL=C 12816export LC_ALL 12817LANGUAGE=C 12818export LANGUAGE 12819 12820# CDPATH. 12821(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12822 12823 12824# as_fn_error STATUS ERROR [LINENO LOG_FD] 12825# ---------------------------------------- 12826# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12827# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12828# script with STATUS, using 1 if that was 0. 12829as_fn_error () 12830{ 12831 as_status=$1; test $as_status -eq 0 && as_status=1 12832 if test "$4"; then 12833 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12834 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12835 fi 12836 $as_echo "$as_me: error: $2" >&2 12837 as_fn_exit $as_status 12838} # as_fn_error 12839 12840 12841# as_fn_set_status STATUS 12842# ----------------------- 12843# Set $? to STATUS, without forking. 12844as_fn_set_status () 12845{ 12846 return $1 12847} # as_fn_set_status 12848 12849# as_fn_exit STATUS 12850# ----------------- 12851# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12852as_fn_exit () 12853{ 12854 set +e 12855 as_fn_set_status $1 12856 exit $1 12857} # as_fn_exit 12858 12859# as_fn_unset VAR 12860# --------------- 12861# Portably unset VAR. 12862as_fn_unset () 12863{ 12864 { eval $1=; unset $1;} 12865} 12866as_unset=as_fn_unset 12867# as_fn_append VAR VALUE 12868# ---------------------- 12869# Append the text in VALUE to the end of the definition contained in VAR. Take 12870# advantage of any shell optimizations that allow amortized linear growth over 12871# repeated appends, instead of the typical quadratic growth present in naive 12872# implementations. 12873if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12874 eval 'as_fn_append () 12875 { 12876 eval $1+=\$2 12877 }' 12878else 12879 as_fn_append () 12880 { 12881 eval $1=\$$1\$2 12882 } 12883fi # as_fn_append 12884 12885# as_fn_arith ARG... 12886# ------------------ 12887# Perform arithmetic evaluation on the ARGs, and store the result in the 12888# global $as_val. Take advantage of shells that can avoid forks. The arguments 12889# must be portable across $(()) and expr. 12890if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12891 eval 'as_fn_arith () 12892 { 12893 as_val=$(( $* )) 12894 }' 12895else 12896 as_fn_arith () 12897 { 12898 as_val=`expr "$@" || test $? -eq 1` 12899 } 12900fi # as_fn_arith 12901 12902 12903if expr a : '\(a\)' >/dev/null 2>&1 && 12904 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12905 as_expr=expr 12906else 12907 as_expr=false 12908fi 12909 12910if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12911 as_basename=basename 12912else 12913 as_basename=false 12914fi 12915 12916if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12917 as_dirname=dirname 12918else 12919 as_dirname=false 12920fi 12921 12922as_me=`$as_basename -- "$0" || 12923$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12924 X"$0" : 'X\(//\)$' \| \ 12925 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12926$as_echo X/"$0" | 12927 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12928 s//\1/ 12929 q 12930 } 12931 /^X\/\(\/\/\)$/{ 12932 s//\1/ 12933 q 12934 } 12935 /^X\/\(\/\).*/{ 12936 s//\1/ 12937 q 12938 } 12939 s/.*/./; q'` 12940 12941# Avoid depending upon Character Ranges. 12942as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12943as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12944as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12945as_cr_digits='0123456789' 12946as_cr_alnum=$as_cr_Letters$as_cr_digits 12947 12948ECHO_C= ECHO_N= ECHO_T= 12949case `echo -n x` in #((((( 12950-n*) 12951 case `echo 'xy\c'` in 12952 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12953 xy) ECHO_C='\c';; 12954 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12955 ECHO_T=' ';; 12956 esac;; 12957*) 12958 ECHO_N='-n';; 12959esac 12960 12961rm -f conf$$ conf$$.exe conf$$.file 12962if test -d conf$$.dir; then 12963 rm -f conf$$.dir/conf$$.file 12964else 12965 rm -f conf$$.dir 12966 mkdir conf$$.dir 2>/dev/null 12967fi 12968if (echo >conf$$.file) 2>/dev/null; then 12969 if ln -s conf$$.file conf$$ 2>/dev/null; then 12970 as_ln_s='ln -s' 12971 # ... but there are two gotchas: 12972 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12973 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12974 # In both cases, we have to default to `cp -p'. 12975 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12976 as_ln_s='cp -p' 12977 elif ln conf$$.file conf$$ 2>/dev/null; then 12978 as_ln_s=ln 12979 else 12980 as_ln_s='cp -p' 12981 fi 12982else 12983 as_ln_s='cp -p' 12984fi 12985rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12986rmdir conf$$.dir 2>/dev/null 12987 12988 12989# as_fn_mkdir_p 12990# ------------- 12991# Create "$as_dir" as a directory, including parents if necessary. 12992as_fn_mkdir_p () 12993{ 12994 12995 case $as_dir in #( 12996 -*) as_dir=./$as_dir;; 12997 esac 12998 test -d "$as_dir" || eval $as_mkdir_p || { 12999 as_dirs= 13000 while :; do 13001 case $as_dir in #( 13002 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 13003 *) as_qdir=$as_dir;; 13004 esac 13005 as_dirs="'$as_qdir' $as_dirs" 13006 as_dir=`$as_dirname -- "$as_dir" || 13007$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13008 X"$as_dir" : 'X\(//\)[^/]' \| \ 13009 X"$as_dir" : 'X\(//\)$' \| \ 13010 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 13011$as_echo X"$as_dir" | 13012 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13013 s//\1/ 13014 q 13015 } 13016 /^X\(\/\/\)[^/].*/{ 13017 s//\1/ 13018 q 13019 } 13020 /^X\(\/\/\)$/{ 13021 s//\1/ 13022 q 13023 } 13024 /^X\(\/\).*/{ 13025 s//\1/ 13026 q 13027 } 13028 s/.*/./; q'` 13029 test -d "$as_dir" && break 13030 done 13031 test -z "$as_dirs" || eval "mkdir $as_dirs" 13032 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 13033 13034 13035} # as_fn_mkdir_p 13036if mkdir -p . 2>/dev/null; then 13037 as_mkdir_p='mkdir -p "$as_dir"' 13038else 13039 test -d ./-p && rmdir ./-p 13040 as_mkdir_p=false 13041fi 13042 13043if test -x / >/dev/null 2>&1; then 13044 as_test_x='test -x' 13045else 13046 if ls -dL / >/dev/null 2>&1; then 13047 as_ls_L_option=L 13048 else 13049 as_ls_L_option= 13050 fi 13051 as_test_x=' 13052 eval sh -c '\'' 13053 if test -d "$1"; then 13054 test -d "$1/."; 13055 else 13056 case $1 in #( 13057 -*)set "./$1";; 13058 esac; 13059 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 13060 ???[sx]*):;;*)false;;esac;fi 13061 '\'' sh 13062 ' 13063fi 13064as_executable_p=$as_test_x 13065 13066# Sed expression to map a string onto a valid CPP name. 13067as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 13068 13069# Sed expression to map a string onto a valid variable name. 13070as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 13071 13072 13073exec 6>&1 13074## ----------------------------------- ## 13075## Main body of $CONFIG_STATUS script. ## 13076## ----------------------------------- ## 13077_ASEOF 13078test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 13079 13080cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13081# Save the log message, to keep $0 and so on meaningful, and to 13082# report actual input values of CONFIG_FILES etc. instead of their 13083# values after options handling. 13084ac_log=" 13085This file was extended by libXtst $as_me 1.2.0, which was 13086generated by GNU Autoconf 2.68. Invocation command line was 13087 13088 CONFIG_FILES = $CONFIG_FILES 13089 CONFIG_HEADERS = $CONFIG_HEADERS 13090 CONFIG_LINKS = $CONFIG_LINKS 13091 CONFIG_COMMANDS = $CONFIG_COMMANDS 13092 $ $0 $@ 13093 13094on `(hostname || uname -n) 2>/dev/null | sed 1q` 13095" 13096 13097_ACEOF 13098 13099case $ac_config_files in *" 13100"*) set x $ac_config_files; shift; ac_config_files=$*;; 13101esac 13102 13103case $ac_config_headers in *" 13104"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 13105esac 13106 13107 13108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13109# Files that config.status was made for. 13110config_files="$ac_config_files" 13111config_headers="$ac_config_headers" 13112config_commands="$ac_config_commands" 13113 13114_ACEOF 13115 13116cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13117ac_cs_usage="\ 13118\`$as_me' instantiates files and other configuration actions 13119from templates according to the current configuration. Unless the files 13120and actions are specified as TAGs, all are instantiated by default. 13121 13122Usage: $0 [OPTION]... [TAG]... 13123 13124 -h, --help print this help, then exit 13125 -V, --version print version number and configuration settings, then exit 13126 --config print configuration, then exit 13127 -q, --quiet, --silent 13128 do not print progress messages 13129 -d, --debug don't remove temporary files 13130 --recheck update $as_me by reconfiguring in the same conditions 13131 --file=FILE[:TEMPLATE] 13132 instantiate the configuration file FILE 13133 --header=FILE[:TEMPLATE] 13134 instantiate the configuration header FILE 13135 13136Configuration files: 13137$config_files 13138 13139Configuration headers: 13140$config_headers 13141 13142Configuration commands: 13143$config_commands 13144 13145Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 13146 13147_ACEOF 13148cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13149ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 13150ac_cs_version="\\ 13151libXtst config.status 1.2.0 13152configured by $0, generated by GNU Autoconf 2.68, 13153 with options \\"\$ac_cs_config\\" 13154 13155Copyright (C) 2010 Free Software Foundation, Inc. 13156This config.status script is free software; the Free Software Foundation 13157gives unlimited permission to copy, distribute and modify it." 13158 13159ac_pwd='$ac_pwd' 13160srcdir='$srcdir' 13161INSTALL='$INSTALL' 13162MKDIR_P='$MKDIR_P' 13163AWK='$AWK' 13164test -n "\$AWK" || AWK=awk 13165_ACEOF 13166 13167cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13168# The default lists apply if the user does not specify any file. 13169ac_need_defaults=: 13170while test $# != 0 13171do 13172 case $1 in 13173 --*=?*) 13174 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13175 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 13176 ac_shift=: 13177 ;; 13178 --*=) 13179 ac_option=`expr "X$1" : 'X\([^=]*\)='` 13180 ac_optarg= 13181 ac_shift=: 13182 ;; 13183 *) 13184 ac_option=$1 13185 ac_optarg=$2 13186 ac_shift=shift 13187 ;; 13188 esac 13189 13190 case $ac_option in 13191 # Handling of the options. 13192 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 13193 ac_cs_recheck=: ;; 13194 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 13195 $as_echo "$ac_cs_version"; exit ;; 13196 --config | --confi | --conf | --con | --co | --c ) 13197 $as_echo "$ac_cs_config"; exit ;; 13198 --debug | --debu | --deb | --de | --d | -d ) 13199 debug=: ;; 13200 --file | --fil | --fi | --f ) 13201 $ac_shift 13202 case $ac_optarg in 13203 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13204 '') as_fn_error $? "missing file argument" ;; 13205 esac 13206 as_fn_append CONFIG_FILES " '$ac_optarg'" 13207 ac_need_defaults=false;; 13208 --header | --heade | --head | --hea ) 13209 $ac_shift 13210 case $ac_optarg in 13211 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 13212 esac 13213 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 13214 ac_need_defaults=false;; 13215 --he | --h) 13216 # Conflict between --help and --header 13217 as_fn_error $? "ambiguous option: \`$1' 13218Try \`$0 --help' for more information.";; 13219 --help | --hel | -h ) 13220 $as_echo "$ac_cs_usage"; exit ;; 13221 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 13222 | -silent | --silent | --silen | --sile | --sil | --si | --s) 13223 ac_cs_silent=: ;; 13224 13225 # This is an error. 13226 -*) as_fn_error $? "unrecognized option: \`$1' 13227Try \`$0 --help' for more information." ;; 13228 13229 *) as_fn_append ac_config_targets " $1" 13230 ac_need_defaults=false ;; 13231 13232 esac 13233 shift 13234done 13235 13236ac_configure_extra_args= 13237 13238if $ac_cs_silent; then 13239 exec 6>/dev/null 13240 ac_configure_extra_args="$ac_configure_extra_args --silent" 13241fi 13242 13243_ACEOF 13244cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13245if \$ac_cs_recheck; then 13246 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 13247 shift 13248 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 13249 CONFIG_SHELL='$SHELL' 13250 export CONFIG_SHELL 13251 exec "\$@" 13252fi 13253 13254_ACEOF 13255cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13256exec 5>>config.log 13257{ 13258 echo 13259 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 13260## Running $as_me. ## 13261_ASBOX 13262 $as_echo "$ac_log" 13263} >&5 13264 13265_ACEOF 13266cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13267# 13268# INIT-COMMANDS 13269# 13270AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 13271 13272 13273# The HP-UX ksh and POSIX shell print the target directory to stdout 13274# if CDPATH is set. 13275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13276 13277sed_quote_subst='$sed_quote_subst' 13278double_quote_subst='$double_quote_subst' 13279delay_variable_subst='$delay_variable_subst' 13280macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 13281macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 13282enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 13283enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 13284pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 13285enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 13286SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 13287ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 13288host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 13289host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 13290host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 13291build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 13292build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 13293build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 13294SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 13295Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 13296GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 13297EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 13298FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 13299LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 13300NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 13301LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 13302max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 13303ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 13304exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 13305lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 13306lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 13307lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 13308reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 13309reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 13310OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 13311deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 13312file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 13313AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 13314AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 13315STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 13316RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 13317old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13318old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13319old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 13320lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 13321CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 13322CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 13323compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 13324GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 13325lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 13326lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 13327lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 13328lt_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"`' 13329objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 13330MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 13331lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 13332lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 13333lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 13334lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 13335lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 13336need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 13337DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 13338NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 13339LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 13340OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 13341OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 13342libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 13343shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 13344extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13345archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 13346enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 13347export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 13348whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 13349compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 13350old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 13351old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 13352archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 13353archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13354module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 13355module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 13356with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 13357allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 13358no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 13359hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 13360hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 13361hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 13362hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 13363hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 13364hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 13365hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 13366hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 13367inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 13368link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 13369fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 13370always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 13371export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 13372exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 13373include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 13374prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 13375file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 13376variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 13377need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 13378need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 13379version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 13380runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 13381shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 13382shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 13383libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 13384library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 13385soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 13386install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 13387postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 13388postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 13389finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 13390finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 13391hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 13392sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 13393sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 13394hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 13395enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 13396enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 13397enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 13398old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 13399striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 13400 13401LTCC='$LTCC' 13402LTCFLAGS='$LTCFLAGS' 13403compiler='$compiler_DEFAULT' 13404 13405# A function that is used when there is no print builtin or printf. 13406func_fallback_echo () 13407{ 13408 eval 'cat <<_LTECHO_EOF 13409\$1 13410_LTECHO_EOF' 13411} 13412 13413# Quote evaled strings. 13414for var in SHELL \ 13415ECHO \ 13416SED \ 13417GREP \ 13418EGREP \ 13419FGREP \ 13420LD \ 13421NM \ 13422LN_S \ 13423lt_SP2NL \ 13424lt_NL2SP \ 13425reload_flag \ 13426OBJDUMP \ 13427deplibs_check_method \ 13428file_magic_cmd \ 13429AR \ 13430AR_FLAGS \ 13431STRIP \ 13432RANLIB \ 13433CC \ 13434CFLAGS \ 13435compiler \ 13436lt_cv_sys_global_symbol_pipe \ 13437lt_cv_sys_global_symbol_to_cdecl \ 13438lt_cv_sys_global_symbol_to_c_name_address \ 13439lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 13440lt_prog_compiler_no_builtin_flag \ 13441lt_prog_compiler_wl \ 13442lt_prog_compiler_pic \ 13443lt_prog_compiler_static \ 13444lt_cv_prog_compiler_c_o \ 13445need_locks \ 13446DSYMUTIL \ 13447NMEDIT \ 13448LIPO \ 13449OTOOL \ 13450OTOOL64 \ 13451shrext_cmds \ 13452export_dynamic_flag_spec \ 13453whole_archive_flag_spec \ 13454compiler_needs_object \ 13455with_gnu_ld \ 13456allow_undefined_flag \ 13457no_undefined_flag \ 13458hardcode_libdir_flag_spec \ 13459hardcode_libdir_flag_spec_ld \ 13460hardcode_libdir_separator \ 13461fix_srcfile_path \ 13462exclude_expsyms \ 13463include_expsyms \ 13464file_list_spec \ 13465variables_saved_for_relink \ 13466libname_spec \ 13467library_names_spec \ 13468soname_spec \ 13469install_override_mode \ 13470finish_eval \ 13471old_striplib \ 13472striplib; do 13473 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13474 *[\\\\\\\`\\"\\\$]*) 13475 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 13476 ;; 13477 *) 13478 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13479 ;; 13480 esac 13481done 13482 13483# Double-quote double-evaled strings. 13484for var in reload_cmds \ 13485old_postinstall_cmds \ 13486old_postuninstall_cmds \ 13487old_archive_cmds \ 13488extract_expsyms_cmds \ 13489old_archive_from_new_cmds \ 13490old_archive_from_expsyms_cmds \ 13491archive_cmds \ 13492archive_expsym_cmds \ 13493module_cmds \ 13494module_expsym_cmds \ 13495export_symbols_cmds \ 13496prelink_cmds \ 13497postinstall_cmds \ 13498postuninstall_cmds \ 13499finish_cmds \ 13500sys_lib_search_path_spec \ 13501sys_lib_dlsearch_path_spec; do 13502 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 13503 *[\\\\\\\`\\"\\\$]*) 13504 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 13505 ;; 13506 *) 13507 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 13508 ;; 13509 esac 13510done 13511 13512ac_aux_dir='$ac_aux_dir' 13513xsi_shell='$xsi_shell' 13514lt_shell_append='$lt_shell_append' 13515 13516# See if we are running on zsh, and set the options which allow our 13517# commands through without removal of \ escapes INIT. 13518if test -n "\${ZSH_VERSION+set}" ; then 13519 setopt NO_GLOB_SUBST 13520fi 13521 13522 13523 PACKAGE='$PACKAGE' 13524 VERSION='$VERSION' 13525 TIMESTAMP='$TIMESTAMP' 13526 RM='$RM' 13527 ofile='$ofile' 13528 13529 13530 13531 13532_ACEOF 13533 13534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13535 13536# Handling of arguments. 13537for ac_config_target in $ac_config_targets 13538do 13539 case $ac_config_target in 13540 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13541 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13542 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13543 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13544 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13545 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13546 "specs/Makefile") CONFIG_FILES="$CONFIG_FILES specs/Makefile" ;; 13547 "xtst.pc") CONFIG_FILES="$CONFIG_FILES xtst.pc" ;; 13548 13549 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13550 esac 13551done 13552 13553 13554# If the user did not use the arguments to specify the items to instantiate, 13555# then the envvar interface is used. Set only those that are not. 13556# We use the long form for the default assignment because of an extremely 13557# bizarre bug on SunOS 4.1.3. 13558if $ac_need_defaults; then 13559 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13560 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13561 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13562fi 13563 13564# Have a temporary directory for convenience. Make it in the build tree 13565# simply because there is no reason against having it here, and in addition, 13566# creating and moving files from /tmp can sometimes cause problems. 13567# Hook for its removal unless debugging. 13568# Note that there is a small window in which the directory will not be cleaned: 13569# after its creation but before its name has been assigned to `$tmp'. 13570$debug || 13571{ 13572 tmp= ac_tmp= 13573 trap 'exit_status=$? 13574 : "${ac_tmp:=$tmp}" 13575 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13576' 0 13577 trap 'as_fn_exit 1' 1 2 13 15 13578} 13579# Create a (secure) tmp directory for tmp files. 13580 13581{ 13582 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13583 test -d "$tmp" 13584} || 13585{ 13586 tmp=./conf$$-$RANDOM 13587 (umask 077 && mkdir "$tmp") 13588} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13589ac_tmp=$tmp 13590 13591# Set up the scripts for CONFIG_FILES section. 13592# No need to generate them if there are no CONFIG_FILES. 13593# This happens for instance with `./config.status config.h'. 13594if test -n "$CONFIG_FILES"; then 13595 13596 13597ac_cr=`echo X | tr X '\015'` 13598# On cygwin, bash can eat \r inside `` if the user requested igncr. 13599# But we know of no other shell where ac_cr would be empty at this 13600# point, so we can use a bashism as a fallback. 13601if test "x$ac_cr" = x; then 13602 eval ac_cr=\$\'\\r\' 13603fi 13604ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13605if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13606 ac_cs_awk_cr='\\r' 13607else 13608 ac_cs_awk_cr=$ac_cr 13609fi 13610 13611echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13612_ACEOF 13613 13614 13615{ 13616 echo "cat >conf$$subs.awk <<_ACEOF" && 13617 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13618 echo "_ACEOF" 13619} >conf$$subs.sh || 13620 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13621ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13622ac_delim='%!_!# ' 13623for ac_last_try in false false false false false :; do 13624 . ./conf$$subs.sh || 13625 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13626 13627 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13628 if test $ac_delim_n = $ac_delim_num; then 13629 break 13630 elif $ac_last_try; then 13631 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13632 else 13633 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13634 fi 13635done 13636rm -f conf$$subs.sh 13637 13638cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13639cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13640_ACEOF 13641sed -n ' 13642h 13643s/^/S["/; s/!.*/"]=/ 13644p 13645g 13646s/^[^!]*!// 13647:repl 13648t repl 13649s/'"$ac_delim"'$// 13650t delim 13651:nl 13652h 13653s/\(.\{148\}\)..*/\1/ 13654t more1 13655s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13656p 13657n 13658b repl 13659:more1 13660s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13661p 13662g 13663s/.\{148\}// 13664t nl 13665:delim 13666h 13667s/\(.\{148\}\)..*/\1/ 13668t more2 13669s/["\\]/\\&/g; s/^/"/; s/$/"/ 13670p 13671b 13672:more2 13673s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13674p 13675g 13676s/.\{148\}// 13677t delim 13678' <conf$$subs.awk | sed ' 13679/^[^""]/{ 13680 N 13681 s/\n// 13682} 13683' >>$CONFIG_STATUS || ac_write_fail=1 13684rm -f conf$$subs.awk 13685cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13686_ACAWK 13687cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13688 for (key in S) S_is_set[key] = 1 13689 FS = "" 13690 13691} 13692{ 13693 line = $ 0 13694 nfields = split(line, field, "@") 13695 substed = 0 13696 len = length(field[1]) 13697 for (i = 2; i < nfields; i++) { 13698 key = field[i] 13699 keylen = length(key) 13700 if (S_is_set[key]) { 13701 value = S[key] 13702 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13703 len += length(value) + length(field[++i]) 13704 substed = 1 13705 } else 13706 len += 1 + keylen 13707 } 13708 13709 print line 13710} 13711 13712_ACAWK 13713_ACEOF 13714cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13715if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13716 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13717else 13718 cat 13719fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13720 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13721_ACEOF 13722 13723# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13724# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13725# trailing colons and then remove the whole line if VPATH becomes empty 13726# (actually we leave an empty line to preserve line numbers). 13727if test "x$srcdir" = x.; then 13728 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13729h 13730s/// 13731s/^/:/ 13732s/[ ]*$/:/ 13733s/:\$(srcdir):/:/g 13734s/:\${srcdir}:/:/g 13735s/:@srcdir@:/:/g 13736s/^:*// 13737s/:*$// 13738x 13739s/\(=[ ]*\).*/\1/ 13740G 13741s/\n// 13742s/^[^=]*=[ ]*$// 13743}' 13744fi 13745 13746cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13747fi # test -n "$CONFIG_FILES" 13748 13749# Set up the scripts for CONFIG_HEADERS section. 13750# No need to generate them if there are no CONFIG_HEADERS. 13751# This happens for instance with `./config.status Makefile'. 13752if test -n "$CONFIG_HEADERS"; then 13753cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13754BEGIN { 13755_ACEOF 13756 13757# Transform confdefs.h into an awk script `defines.awk', embedded as 13758# here-document in config.status, that substitutes the proper values into 13759# config.h.in to produce config.h. 13760 13761# Create a delimiter string that does not exist in confdefs.h, to ease 13762# handling of long lines. 13763ac_delim='%!_!# ' 13764for ac_last_try in false false :; do 13765 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13766 if test -z "$ac_tt"; then 13767 break 13768 elif $ac_last_try; then 13769 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13770 else 13771 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13772 fi 13773done 13774 13775# For the awk script, D is an array of macro values keyed by name, 13776# likewise P contains macro parameters if any. Preserve backslash 13777# newline sequences. 13778 13779ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13780sed -n ' 13781s/.\{148\}/&'"$ac_delim"'/g 13782t rset 13783:rset 13784s/^[ ]*#[ ]*define[ ][ ]*/ / 13785t def 13786d 13787:def 13788s/\\$// 13789t bsnl 13790s/["\\]/\\&/g 13791s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13792D["\1"]=" \3"/p 13793s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13794d 13795:bsnl 13796s/["\\]/\\&/g 13797s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13798D["\1"]=" \3\\\\\\n"\\/p 13799t cont 13800s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13801t cont 13802d 13803:cont 13804n 13805s/.\{148\}/&'"$ac_delim"'/g 13806t clear 13807:clear 13808s/\\$// 13809t bsnlc 13810s/["\\]/\\&/g; s/^/"/; s/$/"/p 13811d 13812:bsnlc 13813s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13814b cont 13815' <confdefs.h | sed ' 13816s/'"$ac_delim"'/"\\\ 13817"/g' >>$CONFIG_STATUS || ac_write_fail=1 13818 13819cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13820 for (key in D) D_is_set[key] = 1 13821 FS = "" 13822} 13823/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13824 line = \$ 0 13825 split(line, arg, " ") 13826 if (arg[1] == "#") { 13827 defundef = arg[2] 13828 mac1 = arg[3] 13829 } else { 13830 defundef = substr(arg[1], 2) 13831 mac1 = arg[2] 13832 } 13833 split(mac1, mac2, "(") #) 13834 macro = mac2[1] 13835 prefix = substr(line, 1, index(line, defundef) - 1) 13836 if (D_is_set[macro]) { 13837 # Preserve the white space surrounding the "#". 13838 print prefix "define", macro P[macro] D[macro] 13839 next 13840 } else { 13841 # Replace #undef with comments. This is necessary, for example, 13842 # in the case of _POSIX_SOURCE, which is predefined and required 13843 # on some systems where configure will not decide to define it. 13844 if (defundef == "undef") { 13845 print "/*", prefix defundef, macro, "*/" 13846 next 13847 } 13848 } 13849} 13850{ print } 13851_ACAWK 13852_ACEOF 13853cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13854 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13855fi # test -n "$CONFIG_HEADERS" 13856 13857 13858eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13859shift 13860for ac_tag 13861do 13862 case $ac_tag in 13863 :[FHLC]) ac_mode=$ac_tag; continue;; 13864 esac 13865 case $ac_mode$ac_tag in 13866 :[FHL]*:*);; 13867 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13868 :[FH]-) ac_tag=-:-;; 13869 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13870 esac 13871 ac_save_IFS=$IFS 13872 IFS=: 13873 set x $ac_tag 13874 IFS=$ac_save_IFS 13875 shift 13876 ac_file=$1 13877 shift 13878 13879 case $ac_mode in 13880 :L) ac_source=$1;; 13881 :[FH]) 13882 ac_file_inputs= 13883 for ac_f 13884 do 13885 case $ac_f in 13886 -) ac_f="$ac_tmp/stdin";; 13887 *) # Look for the file first in the build tree, then in the source tree 13888 # (if the path is not absolute). The absolute path cannot be DOS-style, 13889 # because $ac_f cannot contain `:'. 13890 test -f "$ac_f" || 13891 case $ac_f in 13892 [\\/$]*) false;; 13893 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13894 esac || 13895 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13896 esac 13897 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13898 as_fn_append ac_file_inputs " '$ac_f'" 13899 done 13900 13901 # Let's still pretend it is `configure' which instantiates (i.e., don't 13902 # use $as_me), people would be surprised to read: 13903 # /* config.h. Generated by config.status. */ 13904 configure_input='Generated from '` 13905 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13906 `' by configure.' 13907 if test x"$ac_file" != x-; then 13908 configure_input="$ac_file. $configure_input" 13909 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13910$as_echo "$as_me: creating $ac_file" >&6;} 13911 fi 13912 # Neutralize special characters interpreted by sed in replacement strings. 13913 case $configure_input in #( 13914 *\&* | *\|* | *\\* ) 13915 ac_sed_conf_input=`$as_echo "$configure_input" | 13916 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13917 *) ac_sed_conf_input=$configure_input;; 13918 esac 13919 13920 case $ac_tag in 13921 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13922 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13923 esac 13924 ;; 13925 esac 13926 13927 ac_dir=`$as_dirname -- "$ac_file" || 13928$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13929 X"$ac_file" : 'X\(//\)[^/]' \| \ 13930 X"$ac_file" : 'X\(//\)$' \| \ 13931 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13932$as_echo X"$ac_file" | 13933 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13934 s//\1/ 13935 q 13936 } 13937 /^X\(\/\/\)[^/].*/{ 13938 s//\1/ 13939 q 13940 } 13941 /^X\(\/\/\)$/{ 13942 s//\1/ 13943 q 13944 } 13945 /^X\(\/\).*/{ 13946 s//\1/ 13947 q 13948 } 13949 s/.*/./; q'` 13950 as_dir="$ac_dir"; as_fn_mkdir_p 13951 ac_builddir=. 13952 13953case "$ac_dir" in 13954.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13955*) 13956 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13957 # A ".." for each directory in $ac_dir_suffix. 13958 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13959 case $ac_top_builddir_sub in 13960 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13961 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13962 esac ;; 13963esac 13964ac_abs_top_builddir=$ac_pwd 13965ac_abs_builddir=$ac_pwd$ac_dir_suffix 13966# for backward compatibility: 13967ac_top_builddir=$ac_top_build_prefix 13968 13969case $srcdir in 13970 .) # We are building in place. 13971 ac_srcdir=. 13972 ac_top_srcdir=$ac_top_builddir_sub 13973 ac_abs_top_srcdir=$ac_pwd ;; 13974 [\\/]* | ?:[\\/]* ) # Absolute name. 13975 ac_srcdir=$srcdir$ac_dir_suffix; 13976 ac_top_srcdir=$srcdir 13977 ac_abs_top_srcdir=$srcdir ;; 13978 *) # Relative name. 13979 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13980 ac_top_srcdir=$ac_top_build_prefix$srcdir 13981 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13982esac 13983ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13984 13985 13986 case $ac_mode in 13987 :F) 13988 # 13989 # CONFIG_FILE 13990 # 13991 13992 case $INSTALL in 13993 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13994 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13995 esac 13996 ac_MKDIR_P=$MKDIR_P 13997 case $MKDIR_P in 13998 [\\/$]* | ?:[\\/]* ) ;; 13999 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 14000 esac 14001_ACEOF 14002 14003cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14004# If the template does not know about datarootdir, expand it. 14005# FIXME: This hack should be removed a few years after 2.60. 14006ac_datarootdir_hack=; ac_datarootdir_seen= 14007ac_sed_dataroot=' 14008/datarootdir/ { 14009 p 14010 q 14011} 14012/@datadir@/p 14013/@docdir@/p 14014/@infodir@/p 14015/@localedir@/p 14016/@mandir@/p' 14017case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 14018*datarootdir*) ac_datarootdir_seen=yes;; 14019*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 14020 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 14021$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 14022_ACEOF 14023cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14024 ac_datarootdir_hack=' 14025 s&@datadir@&$datadir&g 14026 s&@docdir@&$docdir&g 14027 s&@infodir@&$infodir&g 14028 s&@localedir@&$localedir&g 14029 s&@mandir@&$mandir&g 14030 s&\\\${datarootdir}&$datarootdir&g' ;; 14031esac 14032_ACEOF 14033 14034# Neutralize VPATH when `$srcdir' = `.'. 14035# Shell code in configure.ac might set extrasub. 14036# FIXME: do we really want to maintain this feature? 14037cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14038ac_sed_extra="$ac_vpsub 14039$extrasub 14040_ACEOF 14041cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14042:t 14043/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 14044s|@configure_input@|$ac_sed_conf_input|;t t 14045s&@top_builddir@&$ac_top_builddir_sub&;t t 14046s&@top_build_prefix@&$ac_top_build_prefix&;t t 14047s&@srcdir@&$ac_srcdir&;t t 14048s&@abs_srcdir@&$ac_abs_srcdir&;t t 14049s&@top_srcdir@&$ac_top_srcdir&;t t 14050s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 14051s&@builddir@&$ac_builddir&;t t 14052s&@abs_builddir@&$ac_abs_builddir&;t t 14053s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 14054s&@INSTALL@&$ac_INSTALL&;t t 14055s&@MKDIR_P@&$ac_MKDIR_P&;t t 14056$ac_datarootdir_hack 14057" 14058eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 14059 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14060 14061test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 14062 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 14063 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 14064 "$ac_tmp/out"`; test -z "$ac_out"; } && 14065 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14066which seems to be undefined. Please make sure it is defined" >&5 14067$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 14068which seems to be undefined. Please make sure it is defined" >&2;} 14069 14070 rm -f "$ac_tmp/stdin" 14071 case $ac_file in 14072 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 14073 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 14074 esac \ 14075 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14076 ;; 14077 :H) 14078 # 14079 # CONFIG_HEADER 14080 # 14081 if test x"$ac_file" != x-; then 14082 { 14083 $as_echo "/* $configure_input */" \ 14084 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 14085 } >"$ac_tmp/config.h" \ 14086 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14087 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 14088 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 14089$as_echo "$as_me: $ac_file is unchanged" >&6;} 14090 else 14091 rm -f "$ac_file" 14092 mv "$ac_tmp/config.h" "$ac_file" \ 14093 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 14094 fi 14095 else 14096 $as_echo "/* $configure_input */" \ 14097 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 14098 || as_fn_error $? "could not create -" "$LINENO" 5 14099 fi 14100# Compute "$ac_file"'s index in $config_headers. 14101_am_arg="$ac_file" 14102_am_stamp_count=1 14103for _am_header in $config_headers :; do 14104 case $_am_header in 14105 $_am_arg | $_am_arg:* ) 14106 break ;; 14107 * ) 14108 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 14109 esac 14110done 14111echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 14112$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14113 X"$_am_arg" : 'X\(//\)[^/]' \| \ 14114 X"$_am_arg" : 'X\(//\)$' \| \ 14115 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 14116$as_echo X"$_am_arg" | 14117 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14118 s//\1/ 14119 q 14120 } 14121 /^X\(\/\/\)[^/].*/{ 14122 s//\1/ 14123 q 14124 } 14125 /^X\(\/\/\)$/{ 14126 s//\1/ 14127 q 14128 } 14129 /^X\(\/\).*/{ 14130 s//\1/ 14131 q 14132 } 14133 s/.*/./; q'`/stamp-h$_am_stamp_count 14134 ;; 14135 14136 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 14137$as_echo "$as_me: executing $ac_file commands" >&6;} 14138 ;; 14139 esac 14140 14141 14142 case $ac_file$ac_mode in 14143 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 14144 # Autoconf 2.62 quotes --file arguments for eval, but not when files 14145 # are listed without --file. Let's play safe and only enable the eval 14146 # if we detect the quoting. 14147 case $CONFIG_FILES in 14148 *\'*) eval set x "$CONFIG_FILES" ;; 14149 *) set x $CONFIG_FILES ;; 14150 esac 14151 shift 14152 for mf 14153 do 14154 # Strip MF so we end up with the name of the file. 14155 mf=`echo "$mf" | sed -e 's/:.*$//'` 14156 # Check whether this is an Automake generated Makefile or not. 14157 # We used to match only the files named `Makefile.in', but 14158 # some people rename them; so instead we look at the file content. 14159 # Grep'ing the first line is not enough: some people post-process 14160 # each Makefile.in and add a new line on top of each file to say so. 14161 # Grep'ing the whole file is not good either: AIX grep has a line 14162 # limit of 2048, but all sed's we know have understand at least 4000. 14163 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 14164 dirpart=`$as_dirname -- "$mf" || 14165$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14166 X"$mf" : 'X\(//\)[^/]' \| \ 14167 X"$mf" : 'X\(//\)$' \| \ 14168 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 14169$as_echo X"$mf" | 14170 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14171 s//\1/ 14172 q 14173 } 14174 /^X\(\/\/\)[^/].*/{ 14175 s//\1/ 14176 q 14177 } 14178 /^X\(\/\/\)$/{ 14179 s//\1/ 14180 q 14181 } 14182 /^X\(\/\).*/{ 14183 s//\1/ 14184 q 14185 } 14186 s/.*/./; q'` 14187 else 14188 continue 14189 fi 14190 # Extract the definition of DEPDIR, am__include, and am__quote 14191 # from the Makefile without running `make'. 14192 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 14193 test -z "$DEPDIR" && continue 14194 am__include=`sed -n 's/^am__include = //p' < "$mf"` 14195 test -z "am__include" && continue 14196 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 14197 # When using ansi2knr, U may be empty or an underscore; expand it 14198 U=`sed -n 's/^U = //p' < "$mf"` 14199 # Find all dependency output files, they are included files with 14200 # $(DEPDIR) in their names. We invoke sed twice because it is the 14201 # simplest approach to changing $(DEPDIR) to its actual value in the 14202 # expansion. 14203 for file in `sed -n " 14204 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 14205 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 14206 # Make sure the directory exists. 14207 test -f "$dirpart/$file" && continue 14208 fdir=`$as_dirname -- "$file" || 14209$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14210 X"$file" : 'X\(//\)[^/]' \| \ 14211 X"$file" : 'X\(//\)$' \| \ 14212 X"$file" : 'X\(/\)' \| . 2>/dev/null || 14213$as_echo X"$file" | 14214 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14215 s//\1/ 14216 q 14217 } 14218 /^X\(\/\/\)[^/].*/{ 14219 s//\1/ 14220 q 14221 } 14222 /^X\(\/\/\)$/{ 14223 s//\1/ 14224 q 14225 } 14226 /^X\(\/\).*/{ 14227 s//\1/ 14228 q 14229 } 14230 s/.*/./; q'` 14231 as_dir=$dirpart/$fdir; as_fn_mkdir_p 14232 # echo "creating $dirpart/$file" 14233 echo '# dummy' > "$dirpart/$file" 14234 done 14235 done 14236} 14237 ;; 14238 "libtool":C) 14239 14240 # See if we are running on zsh, and set the options which allow our 14241 # commands through without removal of \ escapes. 14242 if test -n "${ZSH_VERSION+set}" ; then 14243 setopt NO_GLOB_SUBST 14244 fi 14245 14246 cfgfile="${ofile}T" 14247 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 14248 $RM "$cfgfile" 14249 14250 cat <<_LT_EOF >> "$cfgfile" 14251#! $SHELL 14252 14253# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 14254# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 14255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14256# NOTE: Changes made to this file will be lost: look at ltmain.sh. 14257# 14258# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 14259# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 14260# Inc. 14261# Written by Gordon Matzigkeit, 1996 14262# 14263# This file is part of GNU Libtool. 14264# 14265# GNU Libtool is free software; you can redistribute it and/or 14266# modify it under the terms of the GNU General Public License as 14267# published by the Free Software Foundation; either version 2 of 14268# the License, or (at your option) any later version. 14269# 14270# As a special exception to the GNU General Public License, 14271# if you distribute this file as part of a program or library that 14272# is built using GNU Libtool, you may include this file under the 14273# same distribution terms that you use for the rest of that program. 14274# 14275# GNU Libtool is distributed in the hope that it will be useful, 14276# but WITHOUT ANY WARRANTY; without even the implied warranty of 14277# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 14278# GNU General Public License for more details. 14279# 14280# You should have received a copy of the GNU General Public License 14281# along with GNU Libtool; see the file COPYING. If not, a copy 14282# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 14283# obtained by writing to the Free Software Foundation, Inc., 14284# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 14285 14286 14287# The names of the tagged configurations supported by this script. 14288available_tags="" 14289 14290# ### BEGIN LIBTOOL CONFIG 14291 14292# Which release of libtool.m4 was used? 14293macro_version=$macro_version 14294macro_revision=$macro_revision 14295 14296# Whether or not to build shared libraries. 14297build_libtool_libs=$enable_shared 14298 14299# Whether or not to build static libraries. 14300build_old_libs=$enable_static 14301 14302# What type of objects to build. 14303pic_mode=$pic_mode 14304 14305# Whether or not to optimize for fast installation. 14306fast_install=$enable_fast_install 14307 14308# Shell to use when invoking shell scripts. 14309SHELL=$lt_SHELL 14310 14311# An echo program that protects backslashes. 14312ECHO=$lt_ECHO 14313 14314# The host system. 14315host_alias=$host_alias 14316host=$host 14317host_os=$host_os 14318 14319# The build system. 14320build_alias=$build_alias 14321build=$build 14322build_os=$build_os 14323 14324# A sed program that does not truncate output. 14325SED=$lt_SED 14326 14327# Sed that helps us avoid accidentally triggering echo(1) options like -n. 14328Xsed="\$SED -e 1s/^X//" 14329 14330# A grep program that handles long lines. 14331GREP=$lt_GREP 14332 14333# An ERE matcher. 14334EGREP=$lt_EGREP 14335 14336# A literal string matcher. 14337FGREP=$lt_FGREP 14338 14339# A BSD- or MS-compatible name lister. 14340NM=$lt_NM 14341 14342# Whether we need soft or hard links. 14343LN_S=$lt_LN_S 14344 14345# What is the maximum length of a command? 14346max_cmd_len=$max_cmd_len 14347 14348# Object file suffix (normally "o"). 14349objext=$ac_objext 14350 14351# Executable file suffix (normally ""). 14352exeext=$exeext 14353 14354# whether the shell understands "unset". 14355lt_unset=$lt_unset 14356 14357# turn spaces into newlines. 14358SP2NL=$lt_lt_SP2NL 14359 14360# turn newlines into spaces. 14361NL2SP=$lt_lt_NL2SP 14362 14363# An object symbol dumper. 14364OBJDUMP=$lt_OBJDUMP 14365 14366# Method to check whether dependent libraries are shared objects. 14367deplibs_check_method=$lt_deplibs_check_method 14368 14369# Command to use when deplibs_check_method == "file_magic". 14370file_magic_cmd=$lt_file_magic_cmd 14371 14372# The archiver. 14373AR=$lt_AR 14374AR_FLAGS=$lt_AR_FLAGS 14375 14376# A symbol stripping program. 14377STRIP=$lt_STRIP 14378 14379# Commands used to install an old-style archive. 14380RANLIB=$lt_RANLIB 14381old_postinstall_cmds=$lt_old_postinstall_cmds 14382old_postuninstall_cmds=$lt_old_postuninstall_cmds 14383 14384# Whether to use a lock for old archive extraction. 14385lock_old_archive_extraction=$lock_old_archive_extraction 14386 14387# A C compiler. 14388LTCC=$lt_CC 14389 14390# LTCC compiler flags. 14391LTCFLAGS=$lt_CFLAGS 14392 14393# Take the output of nm and produce a listing of raw symbols and C names. 14394global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14395 14396# Transform the output of nm in a proper C declaration. 14397global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14398 14399# Transform the output of nm in a C name address pair. 14400global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14401 14402# Transform the output of nm in a C name address pair when lib prefix is needed. 14403global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 14404 14405# The name of the directory that contains temporary libtool files. 14406objdir=$objdir 14407 14408# Used to examine libraries when file_magic_cmd begins with "file". 14409MAGIC_CMD=$MAGIC_CMD 14410 14411# Must we lock files when doing compilation? 14412need_locks=$lt_need_locks 14413 14414# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 14415DSYMUTIL=$lt_DSYMUTIL 14416 14417# Tool to change global to local symbols on Mac OS X. 14418NMEDIT=$lt_NMEDIT 14419 14420# Tool to manipulate fat objects and archives on Mac OS X. 14421LIPO=$lt_LIPO 14422 14423# ldd/readelf like tool for Mach-O binaries on Mac OS X. 14424OTOOL=$lt_OTOOL 14425 14426# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 14427OTOOL64=$lt_OTOOL64 14428 14429# Old archive suffix (normally "a"). 14430libext=$libext 14431 14432# Shared library suffix (normally ".so"). 14433shrext_cmds=$lt_shrext_cmds 14434 14435# The commands to extract the exported symbol list from a shared archive. 14436extract_expsyms_cmds=$lt_extract_expsyms_cmds 14437 14438# Variables whose values should be saved in libtool wrapper scripts and 14439# restored at link time. 14440variables_saved_for_relink=$lt_variables_saved_for_relink 14441 14442# Do we need the "lib" prefix for modules? 14443need_lib_prefix=$need_lib_prefix 14444 14445# Do we need a version for libraries? 14446need_version=$need_version 14447 14448# Library versioning type. 14449version_type=$version_type 14450 14451# Shared library runtime path variable. 14452runpath_var=$runpath_var 14453 14454# Shared library path variable. 14455shlibpath_var=$shlibpath_var 14456 14457# Is shlibpath searched before the hard-coded library search path? 14458shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14459 14460# Format of library name prefix. 14461libname_spec=$lt_libname_spec 14462 14463# List of archive names. First name is the real one, the rest are links. 14464# The last name is the one that the linker finds with -lNAME 14465library_names_spec=$lt_library_names_spec 14466 14467# The coded name of the library, if different from the real name. 14468soname_spec=$lt_soname_spec 14469 14470# Permission mode override for installation of shared libraries. 14471install_override_mode=$lt_install_override_mode 14472 14473# Command to use after installation of a shared archive. 14474postinstall_cmds=$lt_postinstall_cmds 14475 14476# Command to use after uninstallation of a shared archive. 14477postuninstall_cmds=$lt_postuninstall_cmds 14478 14479# Commands used to finish a libtool library installation in a directory. 14480finish_cmds=$lt_finish_cmds 14481 14482# As "finish_cmds", except a single script fragment to be evaled but 14483# not shown. 14484finish_eval=$lt_finish_eval 14485 14486# Whether we should hardcode library paths into libraries. 14487hardcode_into_libs=$hardcode_into_libs 14488 14489# Compile-time system search path for libraries. 14490sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14491 14492# Run-time system search path for libraries. 14493sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14494 14495# Whether dlopen is supported. 14496dlopen_support=$enable_dlopen 14497 14498# Whether dlopen of programs is supported. 14499dlopen_self=$enable_dlopen_self 14500 14501# Whether dlopen of statically linked programs is supported. 14502dlopen_self_static=$enable_dlopen_self_static 14503 14504# Commands to strip libraries. 14505old_striplib=$lt_old_striplib 14506striplib=$lt_striplib 14507 14508 14509# The linker used to build libraries. 14510LD=$lt_LD 14511 14512# How to create reloadable object files. 14513reload_flag=$lt_reload_flag 14514reload_cmds=$lt_reload_cmds 14515 14516# Commands used to build an old-style archive. 14517old_archive_cmds=$lt_old_archive_cmds 14518 14519# A language specific compiler. 14520CC=$lt_compiler 14521 14522# Is the compiler the GNU compiler? 14523with_gcc=$GCC 14524 14525# Compiler flag to turn off builtin functions. 14526no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14527 14528# How to pass a linker flag through the compiler. 14529wl=$lt_lt_prog_compiler_wl 14530 14531# Additional compiler flags for building library objects. 14532pic_flag=$lt_lt_prog_compiler_pic 14533 14534# Compiler flag to prevent dynamic linking. 14535link_static_flag=$lt_lt_prog_compiler_static 14536 14537# Does compiler simultaneously support -c and -o options? 14538compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14539 14540# Whether or not to add -lc for building shared libraries. 14541build_libtool_need_lc=$archive_cmds_need_lc 14542 14543# Whether or not to disallow shared libs when runtime libs are static. 14544allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14545 14546# Compiler flag to allow reflexive dlopens. 14547export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14548 14549# Compiler flag to generate shared objects directly from archives. 14550whole_archive_flag_spec=$lt_whole_archive_flag_spec 14551 14552# Whether the compiler copes with passing no objects directly. 14553compiler_needs_object=$lt_compiler_needs_object 14554 14555# Create an old-style archive from a shared archive. 14556old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14557 14558# Create a temporary old-style archive to link instead of a shared archive. 14559old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14560 14561# Commands used to build a shared archive. 14562archive_cmds=$lt_archive_cmds 14563archive_expsym_cmds=$lt_archive_expsym_cmds 14564 14565# Commands used to build a loadable module if different from building 14566# a shared archive. 14567module_cmds=$lt_module_cmds 14568module_expsym_cmds=$lt_module_expsym_cmds 14569 14570# Whether we are building with GNU ld or not. 14571with_gnu_ld=$lt_with_gnu_ld 14572 14573# Flag that allows shared libraries with undefined symbols to be built. 14574allow_undefined_flag=$lt_allow_undefined_flag 14575 14576# Flag that enforces no undefined symbols. 14577no_undefined_flag=$lt_no_undefined_flag 14578 14579# Flag to hardcode \$libdir into a binary during linking. 14580# This must work even if \$libdir does not exist 14581hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14582 14583# If ld is used when linking, flag to hardcode \$libdir into a binary 14584# during linking. This must work even if \$libdir does not exist. 14585hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14586 14587# Whether we need a single "-rpath" flag with a separated argument. 14588hardcode_libdir_separator=$lt_hardcode_libdir_separator 14589 14590# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14591# DIR into the resulting binary. 14592hardcode_direct=$hardcode_direct 14593 14594# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14595# DIR into the resulting binary and the resulting library dependency is 14596# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14597# library is relocated. 14598hardcode_direct_absolute=$hardcode_direct_absolute 14599 14600# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14601# into the resulting binary. 14602hardcode_minus_L=$hardcode_minus_L 14603 14604# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14605# into the resulting binary. 14606hardcode_shlibpath_var=$hardcode_shlibpath_var 14607 14608# Set to "yes" if building a shared library automatically hardcodes DIR 14609# into the library and all subsequent libraries and executables linked 14610# against it. 14611hardcode_automatic=$hardcode_automatic 14612 14613# Set to yes if linker adds runtime paths of dependent libraries 14614# to runtime path list. 14615inherit_rpath=$inherit_rpath 14616 14617# Whether libtool must link a program against all its dependency libraries. 14618link_all_deplibs=$link_all_deplibs 14619 14620# Fix the shell variable \$srcfile for the compiler. 14621fix_srcfile_path=$lt_fix_srcfile_path 14622 14623# Set to "yes" if exported symbols are required. 14624always_export_symbols=$always_export_symbols 14625 14626# The commands to list exported symbols. 14627export_symbols_cmds=$lt_export_symbols_cmds 14628 14629# Symbols that should not be listed in the preloaded symbols. 14630exclude_expsyms=$lt_exclude_expsyms 14631 14632# Symbols that must always be exported. 14633include_expsyms=$lt_include_expsyms 14634 14635# Commands necessary for linking programs (against libraries) with templates. 14636prelink_cmds=$lt_prelink_cmds 14637 14638# Specify filename containing input files. 14639file_list_spec=$lt_file_list_spec 14640 14641# How to hardcode a shared library path into an executable. 14642hardcode_action=$hardcode_action 14643 14644# ### END LIBTOOL CONFIG 14645 14646_LT_EOF 14647 14648 case $host_os in 14649 aix3*) 14650 cat <<\_LT_EOF >> "$cfgfile" 14651# AIX sometimes has problems with the GCC collect2 program. For some 14652# reason, if we set the COLLECT_NAMES environment variable, the problems 14653# vanish in a puff of smoke. 14654if test "X${COLLECT_NAMES+set}" != Xset; then 14655 COLLECT_NAMES= 14656 export COLLECT_NAMES 14657fi 14658_LT_EOF 14659 ;; 14660 esac 14661 14662 14663ltmain="$ac_aux_dir/ltmain.sh" 14664 14665 14666 # We use sed instead of cat because bash on DJGPP gets confused if 14667 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14668 # text mode, it properly converts lines to CR/LF. This bash problem 14669 # is reportedly fixed, but why not run on old versions too? 14670 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14671 || (rm -f "$cfgfile"; exit 1) 14672 14673 case $xsi_shell in 14674 yes) 14675 cat << \_LT_EOF >> "$cfgfile" 14676 14677# func_dirname file append nondir_replacement 14678# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14679# otherwise set result to NONDIR_REPLACEMENT. 14680func_dirname () 14681{ 14682 case ${1} in 14683 */*) func_dirname_result="${1%/*}${2}" ;; 14684 * ) func_dirname_result="${3}" ;; 14685 esac 14686} 14687 14688# func_basename file 14689func_basename () 14690{ 14691 func_basename_result="${1##*/}" 14692} 14693 14694# func_dirname_and_basename file append nondir_replacement 14695# perform func_basename and func_dirname in a single function 14696# call: 14697# dirname: Compute the dirname of FILE. If nonempty, 14698# add APPEND to the result, otherwise set result 14699# to NONDIR_REPLACEMENT. 14700# value returned in "$func_dirname_result" 14701# basename: Compute filename of FILE. 14702# value retuned in "$func_basename_result" 14703# Implementation must be kept synchronized with func_dirname 14704# and func_basename. For efficiency, we do not delegate to 14705# those functions but instead duplicate the functionality here. 14706func_dirname_and_basename () 14707{ 14708 case ${1} in 14709 */*) func_dirname_result="${1%/*}${2}" ;; 14710 * ) func_dirname_result="${3}" ;; 14711 esac 14712 func_basename_result="${1##*/}" 14713} 14714 14715# func_stripname prefix suffix name 14716# strip PREFIX and SUFFIX off of NAME. 14717# PREFIX and SUFFIX must not contain globbing or regex special 14718# characters, hashes, percent signs, but SUFFIX may contain a leading 14719# dot (in which case that matches only a dot). 14720func_stripname () 14721{ 14722 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14723 # positional parameters, so assign one to ordinary parameter first. 14724 func_stripname_result=${3} 14725 func_stripname_result=${func_stripname_result#"${1}"} 14726 func_stripname_result=${func_stripname_result%"${2}"} 14727} 14728 14729# func_opt_split 14730func_opt_split () 14731{ 14732 func_opt_split_opt=${1%%=*} 14733 func_opt_split_arg=${1#*=} 14734} 14735 14736# func_lo2o object 14737func_lo2o () 14738{ 14739 case ${1} in 14740 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14741 *) func_lo2o_result=${1} ;; 14742 esac 14743} 14744 14745# func_xform libobj-or-source 14746func_xform () 14747{ 14748 func_xform_result=${1%.*}.lo 14749} 14750 14751# func_arith arithmetic-term... 14752func_arith () 14753{ 14754 func_arith_result=$(( $* )) 14755} 14756 14757# func_len string 14758# STRING may not start with a hyphen. 14759func_len () 14760{ 14761 func_len_result=${#1} 14762} 14763 14764_LT_EOF 14765 ;; 14766 *) # Bourne compatible functions. 14767 cat << \_LT_EOF >> "$cfgfile" 14768 14769# func_dirname file append nondir_replacement 14770# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14771# otherwise set result to NONDIR_REPLACEMENT. 14772func_dirname () 14773{ 14774 # Extract subdirectory from the argument. 14775 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14776 if test "X$func_dirname_result" = "X${1}"; then 14777 func_dirname_result="${3}" 14778 else 14779 func_dirname_result="$func_dirname_result${2}" 14780 fi 14781} 14782 14783# func_basename file 14784func_basename () 14785{ 14786 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14787} 14788 14789 14790# func_stripname prefix suffix name 14791# strip PREFIX and SUFFIX off of NAME. 14792# PREFIX and SUFFIX must not contain globbing or regex special 14793# characters, hashes, percent signs, but SUFFIX may contain a leading 14794# dot (in which case that matches only a dot). 14795# func_strip_suffix prefix name 14796func_stripname () 14797{ 14798 case ${2} in 14799 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14800 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14801 esac 14802} 14803 14804# sed scripts: 14805my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14806my_sed_long_arg='1s/^-[^=]*=//' 14807 14808# func_opt_split 14809func_opt_split () 14810{ 14811 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14812 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14813} 14814 14815# func_lo2o object 14816func_lo2o () 14817{ 14818 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14819} 14820 14821# func_xform libobj-or-source 14822func_xform () 14823{ 14824 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14825} 14826 14827# func_arith arithmetic-term... 14828func_arith () 14829{ 14830 func_arith_result=`expr "$@"` 14831} 14832 14833# func_len string 14834# STRING may not start with a hyphen. 14835func_len () 14836{ 14837 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14838} 14839 14840_LT_EOF 14841esac 14842 14843case $lt_shell_append in 14844 yes) 14845 cat << \_LT_EOF >> "$cfgfile" 14846 14847# func_append var value 14848# Append VALUE to the end of shell variable VAR. 14849func_append () 14850{ 14851 eval "$1+=\$2" 14852} 14853_LT_EOF 14854 ;; 14855 *) 14856 cat << \_LT_EOF >> "$cfgfile" 14857 14858# func_append var value 14859# Append VALUE to the end of shell variable VAR. 14860func_append () 14861{ 14862 eval "$1=\$$1\$2" 14863} 14864 14865_LT_EOF 14866 ;; 14867 esac 14868 14869 14870 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14871 || (rm -f "$cfgfile"; exit 1) 14872 14873 mv -f "$cfgfile" "$ofile" || 14874 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14875 chmod +x "$ofile" 14876 14877 ;; 14878 14879 esac 14880done # for ac_tag 14881 14882 14883as_fn_exit 0 14884_ACEOF 14885ac_clean_files=$ac_clean_files_save 14886 14887test $ac_write_fail = 0 || 14888 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14889 14890 14891# configure is writing to config.log, and then calls config.status. 14892# config.status does its own redirection, appending to config.log. 14893# Unfortunately, on DOS this fails, as config.log is still kept open 14894# by configure, so config.status won't be able to write to it; its 14895# output is simply discarded. So we exec the FD to /dev/null, 14896# effectively closing config.log, so it can be properly (re)opened and 14897# appended to by config.status. When coming back to configure, we 14898# need to make the FD available again. 14899if test "$no_create" != yes; then 14900 ac_cs_success=: 14901 ac_config_status_args= 14902 test "$silent" = yes && 14903 ac_config_status_args="$ac_config_status_args --quiet" 14904 exec 5>/dev/null 14905 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14906 exec 5>>config.log 14907 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14908 # would make configure fail if this is the last instruction. 14909 $ac_cs_success || as_fn_exit 1 14910fi 14911if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14912 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14913$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14914fi 14915 14916