configure revision c63293b5
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXcursor 1.1.12. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 185test \$(( 1 + 1 )) = 2 || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 548SHELL=${CONFIG_SHELL-/bin/sh} 549 550 551test -n "$DJDIR" || exec 7<&0 </dev/null 552exec 6>&1 553 554# Name of the host. 555# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 556# so uname gets run too. 557ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 558 559# 560# Initializations. 561# 562ac_default_prefix=/usr/local 563ac_clean_files= 564ac_config_libobj_dir=. 565LIBOBJS= 566cross_compiling=no 567subdirs= 568MFLAGS= 569MAKEFLAGS= 570 571# Identity of this package. 572PACKAGE_NAME='libXcursor' 573PACKAGE_TARNAME='libXcursor' 574PACKAGE_VERSION='1.1.12' 575PACKAGE_STRING='libXcursor 1.1.12' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579ac_unique_file="Makefile.am" 580# Factoring default headers for most tests. 581ac_includes_default="\ 582#include <stdio.h> 583#ifdef HAVE_SYS_TYPES_H 584# include <sys/types.h> 585#endif 586#ifdef HAVE_SYS_STAT_H 587# include <sys/stat.h> 588#endif 589#ifdef STDC_HEADERS 590# include <stdlib.h> 591# include <stddef.h> 592#else 593# ifdef HAVE_STDLIB_H 594# include <stdlib.h> 595# endif 596#endif 597#ifdef HAVE_STRING_H 598# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 599# include <memory.h> 600# endif 601# include <string.h> 602#endif 603#ifdef HAVE_STRINGS_H 604# include <strings.h> 605#endif 606#ifdef HAVE_INTTYPES_H 607# include <inttypes.h> 608#endif 609#ifdef HAVE_STDINT_H 610# include <stdint.h> 611#endif 612#ifdef HAVE_UNISTD_H 613# include <unistd.h> 614#endif" 615 616ac_subst_vars='am__EXEEXT_FALSE 617am__EXEEXT_TRUE 618LTLIBOBJS 619LIBOBJS 620LINT_FALSE 621LINT_TRUE 622LINT_FLAGS 623LINT 624XCURSOR_LIBS 625XCURSOR_CFLAGS 626XCURSORPATH 627ICONDIR 628AM_BACKSLASH 629AM_DEFAULT_VERBOSITY 630MAN_SUBSTS 631XORG_MAN_PAGE 632ADMIN_MAN_DIR 633DRIVER_MAN_DIR 634MISC_MAN_DIR 635FILE_MAN_DIR 636LIB_MAN_DIR 637APP_MAN_DIR 638ADMIN_MAN_SUFFIX 639DRIVER_MAN_SUFFIX 640MISC_MAN_SUFFIX 641FILE_MAN_SUFFIX 642LIB_MAN_SUFFIX 643APP_MAN_SUFFIX 644INSTALL_CMD 645PKG_CONFIG 646CHANGELOG_CMD 647STRICT_CFLAGS 648CWARNFLAGS 649CPP 650OTOOL64 651OTOOL 652LIPO 653NMEDIT 654DSYMUTIL 655MANIFEST_TOOL 656RANLIB 657ac_ct_AR 658AR 659DLLTOOL 660OBJDUMP 661LN_S 662NM 663ac_ct_DUMPBIN 664DUMPBIN 665LD 666FGREP 667EGREP 668GREP 669SED 670am__fastdepCC_FALSE 671am__fastdepCC_TRUE 672CCDEPMODE 673AMDEPBACKSLASH 674AMDEP_FALSE 675AMDEP_TRUE 676am__quote 677am__include 678DEPDIR 679OBJEXT 680EXEEXT 681ac_ct_CC 682CPPFLAGS 683LDFLAGS 684CFLAGS 685CC 686host_os 687host_vendor 688host_cpu 689host 690build_os 691build_vendor 692build_cpu 693build 694LIBTOOL 695MAINT 696MAINTAINER_MODE_FALSE 697MAINTAINER_MODE_TRUE 698am__untar 699am__tar 700AMTAR 701am__leading_dot 702SET_MAKE 703AWK 704mkdir_p 705MKDIR_P 706INSTALL_STRIP_PROGRAM 707STRIP 708install_sh 709MAKEINFO 710AUTOHEADER 711AUTOMAKE 712AUTOCONF 713ACLOCAL 714VERSION 715PACKAGE 716CYGPATH_W 717am__isrc 718INSTALL_DATA 719INSTALL_SCRIPT 720INSTALL_PROGRAM 721target_alias 722host_alias 723build_alias 724LIBS 725ECHO_T 726ECHO_N 727ECHO_C 728DEFS 729mandir 730localedir 731libdir 732psdir 733pdfdir 734dvidir 735htmldir 736infodir 737docdir 738oldincludedir 739includedir 740localstatedir 741sharedstatedir 742sysconfdir 743datadir 744datarootdir 745libexecdir 746sbindir 747bindir 748program_transform_name 749prefix 750exec_prefix 751PACKAGE_URL 752PACKAGE_BUGREPORT 753PACKAGE_STRING 754PACKAGE_VERSION 755PACKAGE_TARNAME 756PACKAGE_NAME 757PATH_SEPARATOR 758SHELL' 759ac_subst_files='' 760ac_user_opts=' 761enable_option_checking 762enable_maintainer_mode 763enable_shared 764enable_static 765with_pic 766enable_fast_install 767enable_dependency_tracking 768with_gnu_ld 769with_sysroot 770enable_libtool_lock 771enable_strict_compilation 772enable_silent_rules 773with_icondir 774with_cursorpath 775with_lint 776' 777 ac_precious_vars='build_alias 778host_alias 779target_alias 780CC 781CFLAGS 782LDFLAGS 783LIBS 784CPPFLAGS 785CPP 786PKG_CONFIG 787XCURSOR_CFLAGS 788XCURSOR_LIBS 789LINT 790LINT_FLAGS' 791 792 793# Initialize some variables set by options. 794ac_init_help= 795ac_init_version=false 796ac_unrecognized_opts= 797ac_unrecognized_sep= 798# The variables have the same names as the options, with 799# dashes changed to underlines. 800cache_file=/dev/null 801exec_prefix=NONE 802no_create= 803no_recursion= 804prefix=NONE 805program_prefix=NONE 806program_suffix=NONE 807program_transform_name=s,x,x, 808silent= 809site= 810srcdir= 811verbose= 812x_includes=NONE 813x_libraries=NONE 814 815# Installation directory options. 816# These are left unexpanded so users can "make install exec_prefix=/foo" 817# and all the variables that are supposed to be based on exec_prefix 818# by default will actually change. 819# Use braces instead of parens because sh, perl, etc. also accept them. 820# (The list follows the same order as the GNU Coding Standards.) 821bindir='${exec_prefix}/bin' 822sbindir='${exec_prefix}/sbin' 823libexecdir='${exec_prefix}/libexec' 824datarootdir='${prefix}/share' 825datadir='${datarootdir}' 826sysconfdir='${prefix}/etc' 827sharedstatedir='${prefix}/com' 828localstatedir='${prefix}/var' 829includedir='${prefix}/include' 830oldincludedir='/usr/include' 831docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 832infodir='${datarootdir}/info' 833htmldir='${docdir}' 834dvidir='${docdir}' 835pdfdir='${docdir}' 836psdir='${docdir}' 837libdir='${exec_prefix}/lib' 838localedir='${datarootdir}/locale' 839mandir='${datarootdir}/man' 840 841ac_prev= 842ac_dashdash= 843for ac_option 844do 845 # If the previous option needs an argument, assign it. 846 if test -n "$ac_prev"; then 847 eval $ac_prev=\$ac_option 848 ac_prev= 849 continue 850 fi 851 852 case $ac_option in 853 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 854 *=) ac_optarg= ;; 855 *) ac_optarg=yes ;; 856 esac 857 858 # Accept the important Cygnus configure options, so we can diagnose typos. 859 860 case $ac_dashdash$ac_option in 861 --) 862 ac_dashdash=yes ;; 863 864 -bindir | --bindir | --bindi | --bind | --bin | --bi) 865 ac_prev=bindir ;; 866 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 867 bindir=$ac_optarg ;; 868 869 -build | --build | --buil | --bui | --bu) 870 ac_prev=build_alias ;; 871 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 872 build_alias=$ac_optarg ;; 873 874 -cache-file | --cache-file | --cache-fil | --cache-fi \ 875 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 876 ac_prev=cache_file ;; 877 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 878 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 879 cache_file=$ac_optarg ;; 880 881 --config-cache | -C) 882 cache_file=config.cache ;; 883 884 -datadir | --datadir | --datadi | --datad) 885 ac_prev=datadir ;; 886 -datadir=* | --datadir=* | --datadi=* | --datad=*) 887 datadir=$ac_optarg ;; 888 889 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 890 | --dataroo | --dataro | --datar) 891 ac_prev=datarootdir ;; 892 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 893 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 894 datarootdir=$ac_optarg ;; 895 896 -disable-* | --disable-*) 897 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 898 # Reject names that are not valid shell variable names. 899 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 900 as_fn_error $? "invalid feature name: $ac_useropt" 901 ac_useropt_orig=$ac_useropt 902 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 903 case $ac_user_opts in 904 *" 905"enable_$ac_useropt" 906"*) ;; 907 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 908 ac_unrecognized_sep=', ';; 909 esac 910 eval enable_$ac_useropt=no ;; 911 912 -docdir | --docdir | --docdi | --doc | --do) 913 ac_prev=docdir ;; 914 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 915 docdir=$ac_optarg ;; 916 917 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 918 ac_prev=dvidir ;; 919 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 920 dvidir=$ac_optarg ;; 921 922 -enable-* | --enable-*) 923 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 924 # Reject names that are not valid shell variable names. 925 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 926 as_fn_error $? "invalid feature name: $ac_useropt" 927 ac_useropt_orig=$ac_useropt 928 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 929 case $ac_user_opts in 930 *" 931"enable_$ac_useropt" 932"*) ;; 933 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 934 ac_unrecognized_sep=', ';; 935 esac 936 eval enable_$ac_useropt=\$ac_optarg ;; 937 938 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 939 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 940 | --exec | --exe | --ex) 941 ac_prev=exec_prefix ;; 942 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 943 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 944 | --exec=* | --exe=* | --ex=*) 945 exec_prefix=$ac_optarg ;; 946 947 -gas | --gas | --ga | --g) 948 # Obsolete; use --with-gas. 949 with_gas=yes ;; 950 951 -help | --help | --hel | --he | -h) 952 ac_init_help=long ;; 953 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 954 ac_init_help=recursive ;; 955 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 956 ac_init_help=short ;; 957 958 -host | --host | --hos | --ho) 959 ac_prev=host_alias ;; 960 -host=* | --host=* | --hos=* | --ho=*) 961 host_alias=$ac_optarg ;; 962 963 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 964 ac_prev=htmldir ;; 965 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 966 | --ht=*) 967 htmldir=$ac_optarg ;; 968 969 -includedir | --includedir | --includedi | --included | --include \ 970 | --includ | --inclu | --incl | --inc) 971 ac_prev=includedir ;; 972 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 973 | --includ=* | --inclu=* | --incl=* | --inc=*) 974 includedir=$ac_optarg ;; 975 976 -infodir | --infodir | --infodi | --infod | --info | --inf) 977 ac_prev=infodir ;; 978 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 979 infodir=$ac_optarg ;; 980 981 -libdir | --libdir | --libdi | --libd) 982 ac_prev=libdir ;; 983 -libdir=* | --libdir=* | --libdi=* | --libd=*) 984 libdir=$ac_optarg ;; 985 986 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 987 | --libexe | --libex | --libe) 988 ac_prev=libexecdir ;; 989 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 990 | --libexe=* | --libex=* | --libe=*) 991 libexecdir=$ac_optarg ;; 992 993 -localedir | --localedir | --localedi | --localed | --locale) 994 ac_prev=localedir ;; 995 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 996 localedir=$ac_optarg ;; 997 998 -localstatedir | --localstatedir | --localstatedi | --localstated \ 999 | --localstate | --localstat | --localsta | --localst | --locals) 1000 ac_prev=localstatedir ;; 1001 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1002 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1003 localstatedir=$ac_optarg ;; 1004 1005 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1006 ac_prev=mandir ;; 1007 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1008 mandir=$ac_optarg ;; 1009 1010 -nfp | --nfp | --nf) 1011 # Obsolete; use --without-fp. 1012 with_fp=no ;; 1013 1014 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1015 | --no-cr | --no-c | -n) 1016 no_create=yes ;; 1017 1018 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1019 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1020 no_recursion=yes ;; 1021 1022 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1023 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1024 | --oldin | --oldi | --old | --ol | --o) 1025 ac_prev=oldincludedir ;; 1026 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1027 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1028 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1029 oldincludedir=$ac_optarg ;; 1030 1031 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1032 ac_prev=prefix ;; 1033 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1034 prefix=$ac_optarg ;; 1035 1036 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1037 | --program-pre | --program-pr | --program-p) 1038 ac_prev=program_prefix ;; 1039 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1040 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1041 program_prefix=$ac_optarg ;; 1042 1043 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1044 | --program-suf | --program-su | --program-s) 1045 ac_prev=program_suffix ;; 1046 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1047 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1048 program_suffix=$ac_optarg ;; 1049 1050 -program-transform-name | --program-transform-name \ 1051 | --program-transform-nam | --program-transform-na \ 1052 | --program-transform-n | --program-transform- \ 1053 | --program-transform | --program-transfor \ 1054 | --program-transfo | --program-transf \ 1055 | --program-trans | --program-tran \ 1056 | --progr-tra | --program-tr | --program-t) 1057 ac_prev=program_transform_name ;; 1058 -program-transform-name=* | --program-transform-name=* \ 1059 | --program-transform-nam=* | --program-transform-na=* \ 1060 | --program-transform-n=* | --program-transform-=* \ 1061 | --program-transform=* | --program-transfor=* \ 1062 | --program-transfo=* | --program-transf=* \ 1063 | --program-trans=* | --program-tran=* \ 1064 | --progr-tra=* | --program-tr=* | --program-t=*) 1065 program_transform_name=$ac_optarg ;; 1066 1067 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1068 ac_prev=pdfdir ;; 1069 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1070 pdfdir=$ac_optarg ;; 1071 1072 -psdir | --psdir | --psdi | --psd | --ps) 1073 ac_prev=psdir ;; 1074 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1075 psdir=$ac_optarg ;; 1076 1077 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1078 | -silent | --silent | --silen | --sile | --sil) 1079 silent=yes ;; 1080 1081 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1082 ac_prev=sbindir ;; 1083 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1084 | --sbi=* | --sb=*) 1085 sbindir=$ac_optarg ;; 1086 1087 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1088 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1089 | --sharedst | --shareds | --shared | --share | --shar \ 1090 | --sha | --sh) 1091 ac_prev=sharedstatedir ;; 1092 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1093 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1094 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1095 | --sha=* | --sh=*) 1096 sharedstatedir=$ac_optarg ;; 1097 1098 -site | --site | --sit) 1099 ac_prev=site ;; 1100 -site=* | --site=* | --sit=*) 1101 site=$ac_optarg ;; 1102 1103 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1104 ac_prev=srcdir ;; 1105 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1106 srcdir=$ac_optarg ;; 1107 1108 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1109 | --syscon | --sysco | --sysc | --sys | --sy) 1110 ac_prev=sysconfdir ;; 1111 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1112 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1113 sysconfdir=$ac_optarg ;; 1114 1115 -target | --target | --targe | --targ | --tar | --ta | --t) 1116 ac_prev=target_alias ;; 1117 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1118 target_alias=$ac_optarg ;; 1119 1120 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1121 verbose=yes ;; 1122 1123 -version | --version | --versio | --versi | --vers | -V) 1124 ac_init_version=: ;; 1125 1126 -with-* | --with-*) 1127 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1128 # Reject names that are not valid shell variable names. 1129 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1130 as_fn_error $? "invalid package name: $ac_useropt" 1131 ac_useropt_orig=$ac_useropt 1132 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1133 case $ac_user_opts in 1134 *" 1135"with_$ac_useropt" 1136"*) ;; 1137 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1138 ac_unrecognized_sep=', ';; 1139 esac 1140 eval with_$ac_useropt=\$ac_optarg ;; 1141 1142 -without-* | --without-*) 1143 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1144 # Reject names that are not valid shell variable names. 1145 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1146 as_fn_error $? "invalid package name: $ac_useropt" 1147 ac_useropt_orig=$ac_useropt 1148 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1149 case $ac_user_opts in 1150 *" 1151"with_$ac_useropt" 1152"*) ;; 1153 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1154 ac_unrecognized_sep=', ';; 1155 esac 1156 eval with_$ac_useropt=no ;; 1157 1158 --x) 1159 # Obsolete; use --with-x. 1160 with_x=yes ;; 1161 1162 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1163 | --x-incl | --x-inc | --x-in | --x-i) 1164 ac_prev=x_includes ;; 1165 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1166 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1167 x_includes=$ac_optarg ;; 1168 1169 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1170 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1171 ac_prev=x_libraries ;; 1172 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1173 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1174 x_libraries=$ac_optarg ;; 1175 1176 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1177Try \`$0 --help' for more information" 1178 ;; 1179 1180 *=*) 1181 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1182 # Reject names that are not valid shell variable names. 1183 case $ac_envvar in #( 1184 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1185 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1186 esac 1187 eval $ac_envvar=\$ac_optarg 1188 export $ac_envvar ;; 1189 1190 *) 1191 # FIXME: should be removed in autoconf 3.0. 1192 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1193 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1194 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1195 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1196 ;; 1197 1198 esac 1199done 1200 1201if test -n "$ac_prev"; then 1202 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1203 as_fn_error $? "missing argument to $ac_option" 1204fi 1205 1206if test -n "$ac_unrecognized_opts"; then 1207 case $enable_option_checking in 1208 no) ;; 1209 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1210 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1211 esac 1212fi 1213 1214# Check all directory arguments for consistency. 1215for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1216 datadir sysconfdir sharedstatedir localstatedir includedir \ 1217 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1218 libdir localedir mandir 1219do 1220 eval ac_val=\$$ac_var 1221 # Remove trailing slashes. 1222 case $ac_val in 1223 */ ) 1224 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1225 eval $ac_var=\$ac_val;; 1226 esac 1227 # Be sure to have absolute directory names. 1228 case $ac_val in 1229 [\\/$]* | ?:[\\/]* ) continue;; 1230 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1231 esac 1232 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1233done 1234 1235# There might be people who depend on the old broken behavior: `$host' 1236# used to hold the argument of --host etc. 1237# FIXME: To remove some day. 1238build=$build_alias 1239host=$host_alias 1240target=$target_alias 1241 1242# FIXME: To remove some day. 1243if test "x$host_alias" != x; then 1244 if test "x$build_alias" = x; then 1245 cross_compiling=maybe 1246 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1247 If a cross compiler is detected then cross compile mode will be used" >&2 1248 elif test "x$build_alias" != "x$host_alias"; then 1249 cross_compiling=yes 1250 fi 1251fi 1252 1253ac_tool_prefix= 1254test -n "$host_alias" && ac_tool_prefix=$host_alias- 1255 1256test "$silent" = yes && exec 6>/dev/null 1257 1258 1259ac_pwd=`pwd` && test -n "$ac_pwd" && 1260ac_ls_di=`ls -di .` && 1261ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1262 as_fn_error $? "working directory cannot be determined" 1263test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1264 as_fn_error $? "pwd does not report name of working directory" 1265 1266 1267# Find the source files, if location was not specified. 1268if test -z "$srcdir"; then 1269 ac_srcdir_defaulted=yes 1270 # Try the directory containing this script, then the parent directory. 1271 ac_confdir=`$as_dirname -- "$as_myself" || 1272$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1273 X"$as_myself" : 'X\(//\)[^/]' \| \ 1274 X"$as_myself" : 'X\(//\)$' \| \ 1275 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1276$as_echo X"$as_myself" | 1277 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1278 s//\1/ 1279 q 1280 } 1281 /^X\(\/\/\)[^/].*/{ 1282 s//\1/ 1283 q 1284 } 1285 /^X\(\/\/\)$/{ 1286 s//\1/ 1287 q 1288 } 1289 /^X\(\/\).*/{ 1290 s//\1/ 1291 q 1292 } 1293 s/.*/./; q'` 1294 srcdir=$ac_confdir 1295 if test ! -r "$srcdir/$ac_unique_file"; then 1296 srcdir=.. 1297 fi 1298else 1299 ac_srcdir_defaulted=no 1300fi 1301if test ! -r "$srcdir/$ac_unique_file"; then 1302 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1303 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1304fi 1305ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1306ac_abs_confdir=`( 1307 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1308 pwd)` 1309# When building in place, set srcdir=. 1310if test "$ac_abs_confdir" = "$ac_pwd"; then 1311 srcdir=. 1312fi 1313# Remove unnecessary trailing slashes from srcdir. 1314# Double slashes in file names in object file debugging info 1315# mess up M-x gdb in Emacs. 1316case $srcdir in 1317*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1318esac 1319for ac_var in $ac_precious_vars; do 1320 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1321 eval ac_env_${ac_var}_value=\$${ac_var} 1322 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1323 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1324done 1325 1326# 1327# Report the --help message. 1328# 1329if test "$ac_init_help" = "long"; then 1330 # Omit some internal or obsolete options to make the list less imposing. 1331 # This message is too long to be a string in the A/UX 3.1 sh. 1332 cat <<_ACEOF 1333\`configure' configures libXcursor 1.1.12 to adapt to many kinds of systems. 1334 1335Usage: $0 [OPTION]... [VAR=VALUE]... 1336 1337To assign environment variables (e.g., CC, CFLAGS...), specify them as 1338VAR=VALUE. See below for descriptions of some of the useful variables. 1339 1340Defaults for the options are specified in brackets. 1341 1342Configuration: 1343 -h, --help display this help and exit 1344 --help=short display options specific to this package 1345 --help=recursive display the short help of all the included packages 1346 -V, --version display version information and exit 1347 -q, --quiet, --silent do not print \`checking ...' messages 1348 --cache-file=FILE cache test results in FILE [disabled] 1349 -C, --config-cache alias for \`--cache-file=config.cache' 1350 -n, --no-create do not create output files 1351 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1352 1353Installation directories: 1354 --prefix=PREFIX install architecture-independent files in PREFIX 1355 [$ac_default_prefix] 1356 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1357 [PREFIX] 1358 1359By default, \`make install' will install all the files in 1360\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1361an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1362for instance \`--prefix=\$HOME'. 1363 1364For better control, use the options below. 1365 1366Fine tuning of the installation directories: 1367 --bindir=DIR user executables [EPREFIX/bin] 1368 --sbindir=DIR system admin executables [EPREFIX/sbin] 1369 --libexecdir=DIR program executables [EPREFIX/libexec] 1370 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1371 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1372 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1373 --libdir=DIR object code libraries [EPREFIX/lib] 1374 --includedir=DIR C header files [PREFIX/include] 1375 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1376 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1377 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1378 --infodir=DIR info documentation [DATAROOTDIR/info] 1379 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1380 --mandir=DIR man documentation [DATAROOTDIR/man] 1381 --docdir=DIR documentation root [DATAROOTDIR/doc/libXcursor] 1382 --htmldir=DIR html documentation [DOCDIR] 1383 --dvidir=DIR dvi documentation [DOCDIR] 1384 --pdfdir=DIR pdf documentation [DOCDIR] 1385 --psdir=DIR ps documentation [DOCDIR] 1386_ACEOF 1387 1388 cat <<\_ACEOF 1389 1390Program names: 1391 --program-prefix=PREFIX prepend PREFIX to installed program names 1392 --program-suffix=SUFFIX append SUFFIX to installed program names 1393 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1394 1395System types: 1396 --build=BUILD configure for building on BUILD [guessed] 1397 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1398_ACEOF 1399fi 1400 1401if test -n "$ac_init_help"; then 1402 case $ac_init_help in 1403 short | recursive ) echo "Configuration of libXcursor 1.1.12:";; 1404 esac 1405 cat <<\_ACEOF 1406 1407Optional Features: 1408 --disable-option-checking ignore unrecognized --enable/--with options 1409 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1410 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1411 --enable-maintainer-mode enable make rules and dependencies not useful 1412 (and sometimes confusing) to the casual installer 1413 --enable-shared[=PKGS] build shared libraries [default=yes] 1414 --enable-static[=PKGS] build static libraries [default=yes] 1415 --enable-fast-install[=PKGS] 1416 optimize for fast installation [default=yes] 1417 --disable-dependency-tracking speeds up one-time build 1418 --enable-dependency-tracking do not reject slow dependency extractors 1419 --disable-libtool-lock avoid locking (might break parallel builds) 1420 --enable-strict-compilation 1421 Enable all warnings from compiler and make them 1422 errors (default: disabled) 1423 --enable-silent-rules less verbose build output (undo: `make V=1') 1424 --disable-silent-rules verbose build output (undo: `make V=0') 1425 1426Optional Packages: 1427 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1428 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1429 --with-pic try to use only PIC/non-PIC objects [default=use 1430 both] 1431 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1432 --with-sysroot=DIR Search for dependent libraries within DIR 1433 (or the compiler's sysroot if not specified). 1434 --with-icondir=<path> Set default icon directory (default: 1435 ${datadir}/icons) 1436 --with-cursorpath=<paths> 1437 Set default search path for cursors 1438 --with-lint Use a lint-style source code checker (default: 1439 disabled) 1440 1441Some influential environment variables: 1442 CC C compiler command 1443 CFLAGS C compiler flags 1444 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1445 nonstandard directory <lib dir> 1446 LIBS libraries to pass to the linker, e.g. -l<library> 1447 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1448 you have headers in a nonstandard directory <include dir> 1449 CPP C preprocessor 1450 PKG_CONFIG path to pkg-config utility 1451 XCURSOR_CFLAGS 1452 C compiler flags for XCURSOR, overriding pkg-config 1453 XCURSOR_LIBS 1454 linker flags for XCURSOR, overriding pkg-config 1455 LINT Path to a lint-style command 1456 LINT_FLAGS Flags for the lint-style command 1457 1458Use these variables to override the choices made by `configure' or to help 1459it to find libraries and programs with nonstandard names/locations. 1460 1461Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1462_ACEOF 1463ac_status=$? 1464fi 1465 1466if test "$ac_init_help" = "recursive"; then 1467 # If there are subdirs, report their specific --help. 1468 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1469 test -d "$ac_dir" || 1470 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1471 continue 1472 ac_builddir=. 1473 1474case "$ac_dir" in 1475.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1476*) 1477 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1478 # A ".." for each directory in $ac_dir_suffix. 1479 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1480 case $ac_top_builddir_sub in 1481 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1482 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1483 esac ;; 1484esac 1485ac_abs_top_builddir=$ac_pwd 1486ac_abs_builddir=$ac_pwd$ac_dir_suffix 1487# for backward compatibility: 1488ac_top_builddir=$ac_top_build_prefix 1489 1490case $srcdir in 1491 .) # We are building in place. 1492 ac_srcdir=. 1493 ac_top_srcdir=$ac_top_builddir_sub 1494 ac_abs_top_srcdir=$ac_pwd ;; 1495 [\\/]* | ?:[\\/]* ) # Absolute name. 1496 ac_srcdir=$srcdir$ac_dir_suffix; 1497 ac_top_srcdir=$srcdir 1498 ac_abs_top_srcdir=$srcdir ;; 1499 *) # Relative name. 1500 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1501 ac_top_srcdir=$ac_top_build_prefix$srcdir 1502 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1503esac 1504ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1505 1506 cd "$ac_dir" || { ac_status=$?; continue; } 1507 # Check for guested configure. 1508 if test -f "$ac_srcdir/configure.gnu"; then 1509 echo && 1510 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1511 elif test -f "$ac_srcdir/configure"; then 1512 echo && 1513 $SHELL "$ac_srcdir/configure" --help=recursive 1514 else 1515 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1516 fi || ac_status=$? 1517 cd "$ac_pwd" || { ac_status=$?; break; } 1518 done 1519fi 1520 1521test -n "$ac_init_help" && exit $ac_status 1522if $ac_init_version; then 1523 cat <<\_ACEOF 1524libXcursor configure 1.1.12 1525generated by GNU Autoconf 2.68 1526 1527Copyright (C) 2010 Free Software Foundation, Inc. 1528This configure script is free software; the Free Software Foundation 1529gives unlimited permission to copy, distribute and modify it. 1530_ACEOF 1531 exit 1532fi 1533 1534## ------------------------ ## 1535## Autoconf initialization. ## 1536## ------------------------ ## 1537 1538# ac_fn_c_try_compile LINENO 1539# -------------------------- 1540# Try to compile conftest.$ac_ext, and return whether this succeeded. 1541ac_fn_c_try_compile () 1542{ 1543 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1544 rm -f conftest.$ac_objext 1545 if { { ac_try="$ac_compile" 1546case "(($ac_try" in 1547 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1548 *) ac_try_echo=$ac_try;; 1549esac 1550eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1551$as_echo "$ac_try_echo"; } >&5 1552 (eval "$ac_compile") 2>conftest.err 1553 ac_status=$? 1554 if test -s conftest.err; then 1555 grep -v '^ *+' conftest.err >conftest.er1 1556 cat conftest.er1 >&5 1557 mv -f conftest.er1 conftest.err 1558 fi 1559 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1560 test $ac_status = 0; } && { 1561 test -z "$ac_c_werror_flag" || 1562 test ! -s conftest.err 1563 } && test -s conftest.$ac_objext; then : 1564 ac_retval=0 1565else 1566 $as_echo "$as_me: failed program was:" >&5 1567sed 's/^/| /' conftest.$ac_ext >&5 1568 1569 ac_retval=1 1570fi 1571 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1572 as_fn_set_status $ac_retval 1573 1574} # ac_fn_c_try_compile 1575 1576# ac_fn_c_try_link LINENO 1577# ----------------------- 1578# Try to link conftest.$ac_ext, and return whether this succeeded. 1579ac_fn_c_try_link () 1580{ 1581 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1582 rm -f conftest.$ac_objext conftest$ac_exeext 1583 if { { ac_try="$ac_link" 1584case "(($ac_try" in 1585 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1586 *) ac_try_echo=$ac_try;; 1587esac 1588eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1589$as_echo "$ac_try_echo"; } >&5 1590 (eval "$ac_link") 2>conftest.err 1591 ac_status=$? 1592 if test -s conftest.err; then 1593 grep -v '^ *+' conftest.err >conftest.er1 1594 cat conftest.er1 >&5 1595 mv -f conftest.er1 conftest.err 1596 fi 1597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1598 test $ac_status = 0; } && { 1599 test -z "$ac_c_werror_flag" || 1600 test ! -s conftest.err 1601 } && test -s conftest$ac_exeext && { 1602 test "$cross_compiling" = yes || 1603 $as_test_x conftest$ac_exeext 1604 }; then : 1605 ac_retval=0 1606else 1607 $as_echo "$as_me: failed program was:" >&5 1608sed 's/^/| /' conftest.$ac_ext >&5 1609 1610 ac_retval=1 1611fi 1612 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1613 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1614 # interfere with the next link command; also delete a directory that is 1615 # left behind by Apple's compiler. We do this before executing the actions. 1616 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1617 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1618 as_fn_set_status $ac_retval 1619 1620} # ac_fn_c_try_link 1621 1622# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1623# ------------------------------------------------------- 1624# Tests whether HEADER exists and can be compiled using the include files in 1625# INCLUDES, setting the cache variable VAR accordingly. 1626ac_fn_c_check_header_compile () 1627{ 1628 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1630$as_echo_n "checking for $2... " >&6; } 1631if eval \${$3+:} false; then : 1632 $as_echo_n "(cached) " >&6 1633else 1634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1635/* end confdefs.h. */ 1636$4 1637#include <$2> 1638_ACEOF 1639if ac_fn_c_try_compile "$LINENO"; then : 1640 eval "$3=yes" 1641else 1642 eval "$3=no" 1643fi 1644rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1645fi 1646eval ac_res=\$$3 1647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1648$as_echo "$ac_res" >&6; } 1649 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1650 1651} # ac_fn_c_check_header_compile 1652 1653# ac_fn_c_try_cpp LINENO 1654# ---------------------- 1655# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1656ac_fn_c_try_cpp () 1657{ 1658 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1659 if { { ac_try="$ac_cpp conftest.$ac_ext" 1660case "(($ac_try" in 1661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1662 *) ac_try_echo=$ac_try;; 1663esac 1664eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1665$as_echo "$ac_try_echo"; } >&5 1666 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1667 ac_status=$? 1668 if test -s conftest.err; then 1669 grep -v '^ *+' conftest.err >conftest.er1 1670 cat conftest.er1 >&5 1671 mv -f conftest.er1 conftest.err 1672 fi 1673 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1674 test $ac_status = 0; } > conftest.i && { 1675 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1676 test ! -s conftest.err 1677 }; then : 1678 ac_retval=0 1679else 1680 $as_echo "$as_me: failed program was:" >&5 1681sed 's/^/| /' conftest.$ac_ext >&5 1682 1683 ac_retval=1 1684fi 1685 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1686 as_fn_set_status $ac_retval 1687 1688} # ac_fn_c_try_cpp 1689 1690# ac_fn_c_try_run LINENO 1691# ---------------------- 1692# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1693# that executables *can* be run. 1694ac_fn_c_try_run () 1695{ 1696 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1697 if { { ac_try="$ac_link" 1698case "(($ac_try" in 1699 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1700 *) ac_try_echo=$ac_try;; 1701esac 1702eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1703$as_echo "$ac_try_echo"; } >&5 1704 (eval "$ac_link") 2>&5 1705 ac_status=$? 1706 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1707 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1708 { { case "(($ac_try" in 1709 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1710 *) ac_try_echo=$ac_try;; 1711esac 1712eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1713$as_echo "$ac_try_echo"; } >&5 1714 (eval "$ac_try") 2>&5 1715 ac_status=$? 1716 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1717 test $ac_status = 0; }; }; then : 1718 ac_retval=0 1719else 1720 $as_echo "$as_me: program exited with status $ac_status" >&5 1721 $as_echo "$as_me: failed program was:" >&5 1722sed 's/^/| /' conftest.$ac_ext >&5 1723 1724 ac_retval=$ac_status 1725fi 1726 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1727 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1728 as_fn_set_status $ac_retval 1729 1730} # ac_fn_c_try_run 1731 1732# ac_fn_c_check_func LINENO FUNC VAR 1733# ---------------------------------- 1734# Tests whether FUNC exists, setting the cache variable VAR accordingly 1735ac_fn_c_check_func () 1736{ 1737 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1739$as_echo_n "checking for $2... " >&6; } 1740if eval \${$3+:} false; then : 1741 $as_echo_n "(cached) " >&6 1742else 1743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1744/* end confdefs.h. */ 1745/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1746 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1747#define $2 innocuous_$2 1748 1749/* System header to define __stub macros and hopefully few prototypes, 1750 which can conflict with char $2 (); below. 1751 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1752 <limits.h> exists even on freestanding compilers. */ 1753 1754#ifdef __STDC__ 1755# include <limits.h> 1756#else 1757# include <assert.h> 1758#endif 1759 1760#undef $2 1761 1762/* Override any GCC internal prototype to avoid an error. 1763 Use char because int might match the return type of a GCC 1764 builtin and then its argument prototype would still apply. */ 1765#ifdef __cplusplus 1766extern "C" 1767#endif 1768char $2 (); 1769/* The GNU C library defines this for functions which it implements 1770 to always fail with ENOSYS. Some functions are actually named 1771 something starting with __ and the normal name is an alias. */ 1772#if defined __stub_$2 || defined __stub___$2 1773choke me 1774#endif 1775 1776int 1777main () 1778{ 1779return $2 (); 1780 ; 1781 return 0; 1782} 1783_ACEOF 1784if ac_fn_c_try_link "$LINENO"; then : 1785 eval "$3=yes" 1786else 1787 eval "$3=no" 1788fi 1789rm -f core conftest.err conftest.$ac_objext \ 1790 conftest$ac_exeext conftest.$ac_ext 1791fi 1792eval ac_res=\$$3 1793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1794$as_echo "$ac_res" >&6; } 1795 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1796 1797} # ac_fn_c_check_func 1798 1799# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1800# --------------------------------------------- 1801# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1802# accordingly. 1803ac_fn_c_check_decl () 1804{ 1805 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1806 as_decl_name=`echo $2|sed 's/ *(.*//'` 1807 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1809$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1810if eval \${$3+:} false; then : 1811 $as_echo_n "(cached) " >&6 1812else 1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1814/* end confdefs.h. */ 1815$4 1816int 1817main () 1818{ 1819#ifndef $as_decl_name 1820#ifdef __cplusplus 1821 (void) $as_decl_use; 1822#else 1823 (void) $as_decl_name; 1824#endif 1825#endif 1826 1827 ; 1828 return 0; 1829} 1830_ACEOF 1831if ac_fn_c_try_compile "$LINENO"; then : 1832 eval "$3=yes" 1833else 1834 eval "$3=no" 1835fi 1836rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1837fi 1838eval ac_res=\$$3 1839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1840$as_echo "$ac_res" >&6; } 1841 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1842 1843} # ac_fn_c_check_decl 1844cat >config.log <<_ACEOF 1845This file contains any messages produced by compilers while 1846running configure, to aid debugging if configure makes a mistake. 1847 1848It was created by libXcursor $as_me 1.1.12, which was 1849generated by GNU Autoconf 2.68. Invocation command line was 1850 1851 $ $0 $@ 1852 1853_ACEOF 1854exec 5>>config.log 1855{ 1856cat <<_ASUNAME 1857## --------- ## 1858## Platform. ## 1859## --------- ## 1860 1861hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1862uname -m = `(uname -m) 2>/dev/null || echo unknown` 1863uname -r = `(uname -r) 2>/dev/null || echo unknown` 1864uname -s = `(uname -s) 2>/dev/null || echo unknown` 1865uname -v = `(uname -v) 2>/dev/null || echo unknown` 1866 1867/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1868/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1869 1870/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1871/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1872/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1873/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1874/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1875/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1876/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1877 1878_ASUNAME 1879 1880as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1881for as_dir in $PATH 1882do 1883 IFS=$as_save_IFS 1884 test -z "$as_dir" && as_dir=. 1885 $as_echo "PATH: $as_dir" 1886 done 1887IFS=$as_save_IFS 1888 1889} >&5 1890 1891cat >&5 <<_ACEOF 1892 1893 1894## ----------- ## 1895## Core tests. ## 1896## ----------- ## 1897 1898_ACEOF 1899 1900 1901# Keep a trace of the command line. 1902# Strip out --no-create and --no-recursion so they do not pile up. 1903# Strip out --silent because we don't want to record it for future runs. 1904# Also quote any args containing shell meta-characters. 1905# Make two passes to allow for proper duplicate-argument suppression. 1906ac_configure_args= 1907ac_configure_args0= 1908ac_configure_args1= 1909ac_must_keep_next=false 1910for ac_pass in 1 2 1911do 1912 for ac_arg 1913 do 1914 case $ac_arg in 1915 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1916 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1917 | -silent | --silent | --silen | --sile | --sil) 1918 continue ;; 1919 *\'*) 1920 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1921 esac 1922 case $ac_pass in 1923 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1924 2) 1925 as_fn_append ac_configure_args1 " '$ac_arg'" 1926 if test $ac_must_keep_next = true; then 1927 ac_must_keep_next=false # Got value, back to normal. 1928 else 1929 case $ac_arg in 1930 *=* | --config-cache | -C | -disable-* | --disable-* \ 1931 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1932 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1933 | -with-* | --with-* | -without-* | --without-* | --x) 1934 case "$ac_configure_args0 " in 1935 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1936 esac 1937 ;; 1938 -* ) ac_must_keep_next=true ;; 1939 esac 1940 fi 1941 as_fn_append ac_configure_args " '$ac_arg'" 1942 ;; 1943 esac 1944 done 1945done 1946{ ac_configure_args0=; unset ac_configure_args0;} 1947{ ac_configure_args1=; unset ac_configure_args1;} 1948 1949# When interrupted or exit'd, cleanup temporary files, and complete 1950# config.log. We remove comments because anyway the quotes in there 1951# would cause problems or look ugly. 1952# WARNING: Use '\'' to represent an apostrophe within the trap. 1953# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1954trap 'exit_status=$? 1955 # Save into config.log some information that might help in debugging. 1956 { 1957 echo 1958 1959 $as_echo "## ---------------- ## 1960## Cache variables. ## 1961## ---------------- ##" 1962 echo 1963 # The following way of writing the cache mishandles newlines in values, 1964( 1965 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1966 eval ac_val=\$$ac_var 1967 case $ac_val in #( 1968 *${as_nl}*) 1969 case $ac_var in #( 1970 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1971$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1972 esac 1973 case $ac_var in #( 1974 _ | IFS | as_nl) ;; #( 1975 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1976 *) { eval $ac_var=; unset $ac_var;} ;; 1977 esac ;; 1978 esac 1979 done 1980 (set) 2>&1 | 1981 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1982 *${as_nl}ac_space=\ *) 1983 sed -n \ 1984 "s/'\''/'\''\\\\'\'''\''/g; 1985 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1986 ;; #( 1987 *) 1988 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1989 ;; 1990 esac | 1991 sort 1992) 1993 echo 1994 1995 $as_echo "## ----------------- ## 1996## Output variables. ## 1997## ----------------- ##" 1998 echo 1999 for ac_var in $ac_subst_vars 2000 do 2001 eval ac_val=\$$ac_var 2002 case $ac_val in 2003 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2004 esac 2005 $as_echo "$ac_var='\''$ac_val'\''" 2006 done | sort 2007 echo 2008 2009 if test -n "$ac_subst_files"; then 2010 $as_echo "## ------------------- ## 2011## File substitutions. ## 2012## ------------------- ##" 2013 echo 2014 for ac_var in $ac_subst_files 2015 do 2016 eval ac_val=\$$ac_var 2017 case $ac_val in 2018 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2019 esac 2020 $as_echo "$ac_var='\''$ac_val'\''" 2021 done | sort 2022 echo 2023 fi 2024 2025 if test -s confdefs.h; then 2026 $as_echo "## ----------- ## 2027## confdefs.h. ## 2028## ----------- ##" 2029 echo 2030 cat confdefs.h 2031 echo 2032 fi 2033 test "$ac_signal" != 0 && 2034 $as_echo "$as_me: caught signal $ac_signal" 2035 $as_echo "$as_me: exit $exit_status" 2036 } >&5 2037 rm -f core *.core core.conftest.* && 2038 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2039 exit $exit_status 2040' 0 2041for ac_signal in 1 2 13 15; do 2042 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2043done 2044ac_signal=0 2045 2046# confdefs.h avoids OS command line length limits that DEFS can exceed. 2047rm -f -r conftest* confdefs.h 2048 2049$as_echo "/* confdefs.h */" > confdefs.h 2050 2051# Predefined preprocessor variables. 2052 2053cat >>confdefs.h <<_ACEOF 2054#define PACKAGE_NAME "$PACKAGE_NAME" 2055_ACEOF 2056 2057cat >>confdefs.h <<_ACEOF 2058#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2059_ACEOF 2060 2061cat >>confdefs.h <<_ACEOF 2062#define PACKAGE_VERSION "$PACKAGE_VERSION" 2063_ACEOF 2064 2065cat >>confdefs.h <<_ACEOF 2066#define PACKAGE_STRING "$PACKAGE_STRING" 2067_ACEOF 2068 2069cat >>confdefs.h <<_ACEOF 2070#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2071_ACEOF 2072 2073cat >>confdefs.h <<_ACEOF 2074#define PACKAGE_URL "$PACKAGE_URL" 2075_ACEOF 2076 2077 2078# Let the site file select an alternate cache file if it wants to. 2079# Prefer an explicitly selected file to automatically selected ones. 2080ac_site_file1=NONE 2081ac_site_file2=NONE 2082if test -n "$CONFIG_SITE"; then 2083 # We do not want a PATH search for config.site. 2084 case $CONFIG_SITE in #(( 2085 -*) ac_site_file1=./$CONFIG_SITE;; 2086 */*) ac_site_file1=$CONFIG_SITE;; 2087 *) ac_site_file1=./$CONFIG_SITE;; 2088 esac 2089elif test "x$prefix" != xNONE; then 2090 ac_site_file1=$prefix/share/config.site 2091 ac_site_file2=$prefix/etc/config.site 2092else 2093 ac_site_file1=$ac_default_prefix/share/config.site 2094 ac_site_file2=$ac_default_prefix/etc/config.site 2095fi 2096for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2097do 2098 test "x$ac_site_file" = xNONE && continue 2099 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2100 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2101$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2102 sed 's/^/| /' "$ac_site_file" >&5 2103 . "$ac_site_file" \ 2104 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2106as_fn_error $? "failed to load site script $ac_site_file 2107See \`config.log' for more details" "$LINENO" 5; } 2108 fi 2109done 2110 2111if test -r "$cache_file"; then 2112 # Some versions of bash will fail to source /dev/null (special files 2113 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2114 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2115 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2116$as_echo "$as_me: loading cache $cache_file" >&6;} 2117 case $cache_file in 2118 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2119 *) . "./$cache_file";; 2120 esac 2121 fi 2122else 2123 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2124$as_echo "$as_me: creating cache $cache_file" >&6;} 2125 >$cache_file 2126fi 2127 2128# Check that the precious variables saved in the cache have kept the same 2129# value. 2130ac_cache_corrupted=false 2131for ac_var in $ac_precious_vars; do 2132 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2133 eval ac_new_set=\$ac_env_${ac_var}_set 2134 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2135 eval ac_new_val=\$ac_env_${ac_var}_value 2136 case $ac_old_set,$ac_new_set in 2137 set,) 2138 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2139$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2140 ac_cache_corrupted=: ;; 2141 ,set) 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2143$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2144 ac_cache_corrupted=: ;; 2145 ,);; 2146 *) 2147 if test "x$ac_old_val" != "x$ac_new_val"; then 2148 # differences in whitespace do not lead to failure. 2149 ac_old_val_w=`echo x $ac_old_val` 2150 ac_new_val_w=`echo x $ac_new_val` 2151 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2152 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2153$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2154 ac_cache_corrupted=: 2155 else 2156 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2157$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2158 eval $ac_var=\$ac_old_val 2159 fi 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2161$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2162 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2163$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2164 fi;; 2165 esac 2166 # Pass precious variables to config.status. 2167 if test "$ac_new_set" = set; then 2168 case $ac_new_val in 2169 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2170 *) ac_arg=$ac_var=$ac_new_val ;; 2171 esac 2172 case " $ac_configure_args " in 2173 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2174 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2175 esac 2176 fi 2177done 2178if $ac_cache_corrupted; then 2179 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2180$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2181 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2182$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2183 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2184fi 2185## -------------------- ## 2186## Main body of script. ## 2187## -------------------- ## 2188 2189ac_ext=c 2190ac_cpp='$CPP $CPPFLAGS' 2191ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2192ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2193ac_compiler_gnu=$ac_cv_c_compiler_gnu 2194 2195 2196 2197ac_config_headers="$ac_config_headers config.h" 2198 2199 2200# Initialize Automake 2201am__api_version='1.11' 2202 2203ac_aux_dir= 2204for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2205 if test -f "$ac_dir/install-sh"; then 2206 ac_aux_dir=$ac_dir 2207 ac_install_sh="$ac_aux_dir/install-sh -c" 2208 break 2209 elif test -f "$ac_dir/install.sh"; then 2210 ac_aux_dir=$ac_dir 2211 ac_install_sh="$ac_aux_dir/install.sh -c" 2212 break 2213 elif test -f "$ac_dir/shtool"; then 2214 ac_aux_dir=$ac_dir 2215 ac_install_sh="$ac_aux_dir/shtool install -c" 2216 break 2217 fi 2218done 2219if test -z "$ac_aux_dir"; then 2220 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2221fi 2222 2223# These three variables are undocumented and unsupported, 2224# and are intended to be withdrawn in a future Autoconf release. 2225# They can cause serious problems if a builder's source tree is in a directory 2226# whose full name contains unusual characters. 2227ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2228ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2229ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2230 2231 2232# Find a good install program. We prefer a C program (faster), 2233# so one script is as good as another. But avoid the broken or 2234# incompatible versions: 2235# SysV /etc/install, /usr/sbin/install 2236# SunOS /usr/etc/install 2237# IRIX /sbin/install 2238# AIX /bin/install 2239# AmigaOS /C/install, which installs bootblocks on floppy discs 2240# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2241# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2242# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2243# OS/2's system install, which has a completely different semantic 2244# ./install, which can be erroneously created by make from ./install.sh. 2245# Reject install programs that cannot install multiple files. 2246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2247$as_echo_n "checking for a BSD-compatible install... " >&6; } 2248if test -z "$INSTALL"; then 2249if ${ac_cv_path_install+:} false; then : 2250 $as_echo_n "(cached) " >&6 2251else 2252 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2253for as_dir in $PATH 2254do 2255 IFS=$as_save_IFS 2256 test -z "$as_dir" && as_dir=. 2257 # Account for people who put trailing slashes in PATH elements. 2258case $as_dir/ in #(( 2259 ./ | .// | /[cC]/* | \ 2260 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2261 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2262 /usr/ucb/* ) ;; 2263 *) 2264 # OSF1 and SCO ODT 3.0 have their own names for install. 2265 # Don't use installbsd from OSF since it installs stuff as root 2266 # by default. 2267 for ac_prog in ginstall scoinst install; do 2268 for ac_exec_ext in '' $ac_executable_extensions; do 2269 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2270 if test $ac_prog = install && 2271 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2272 # AIX install. It has an incompatible calling convention. 2273 : 2274 elif test $ac_prog = install && 2275 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2276 # program-specific install script used by HP pwplus--don't use. 2277 : 2278 else 2279 rm -rf conftest.one conftest.two conftest.dir 2280 echo one > conftest.one 2281 echo two > conftest.two 2282 mkdir conftest.dir 2283 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2284 test -s conftest.one && test -s conftest.two && 2285 test -s conftest.dir/conftest.one && 2286 test -s conftest.dir/conftest.two 2287 then 2288 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2289 break 3 2290 fi 2291 fi 2292 fi 2293 done 2294 done 2295 ;; 2296esac 2297 2298 done 2299IFS=$as_save_IFS 2300 2301rm -rf conftest.one conftest.two conftest.dir 2302 2303fi 2304 if test "${ac_cv_path_install+set}" = set; then 2305 INSTALL=$ac_cv_path_install 2306 else 2307 # As a last resort, use the slow shell script. Don't cache a 2308 # value for INSTALL within a source directory, because that will 2309 # break other packages using the cache if that directory is 2310 # removed, or if the value is a relative name. 2311 INSTALL=$ac_install_sh 2312 fi 2313fi 2314{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2315$as_echo "$INSTALL" >&6; } 2316 2317# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2318# It thinks the first close brace ends the variable substitution. 2319test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2320 2321test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2322 2323test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2324 2325{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2326$as_echo_n "checking whether build environment is sane... " >&6; } 2327# Just in case 2328sleep 1 2329echo timestamp > conftest.file 2330# Reject unsafe characters in $srcdir or the absolute working directory 2331# name. Accept space and tab only in the latter. 2332am_lf=' 2333' 2334case `pwd` in 2335 *[\\\"\#\$\&\'\`$am_lf]*) 2336 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2337esac 2338case $srcdir in 2339 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2340 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2341esac 2342 2343# Do `set' in a subshell so we don't clobber the current shell's 2344# arguments. Must try -L first in case configure is actually a 2345# symlink; some systems play weird games with the mod time of symlinks 2346# (eg FreeBSD returns the mod time of the symlink's containing 2347# directory). 2348if ( 2349 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2350 if test "$*" = "X"; then 2351 # -L didn't work. 2352 set X `ls -t "$srcdir/configure" conftest.file` 2353 fi 2354 rm -f conftest.file 2355 if test "$*" != "X $srcdir/configure conftest.file" \ 2356 && test "$*" != "X conftest.file $srcdir/configure"; then 2357 2358 # If neither matched, then we have a broken ls. This can happen 2359 # if, for instance, CONFIG_SHELL is bash and it inherits a 2360 # broken ls alias from the environment. This has actually 2361 # happened. Such a system could not be considered "sane". 2362 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2363alias in your environment" "$LINENO" 5 2364 fi 2365 2366 test "$2" = conftest.file 2367 ) 2368then 2369 # Ok. 2370 : 2371else 2372 as_fn_error $? "newly created file is older than distributed files! 2373Check your system clock" "$LINENO" 5 2374fi 2375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2376$as_echo "yes" >&6; } 2377test "$program_prefix" != NONE && 2378 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2379# Use a double $ so make ignores it. 2380test "$program_suffix" != NONE && 2381 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2382# Double any \ or $. 2383# By default was `s,x,x', remove it if useless. 2384ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2385program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2386 2387# expand $ac_aux_dir to an absolute path 2388am_aux_dir=`cd $ac_aux_dir && pwd` 2389 2390if test x"${MISSING+set}" != xset; then 2391 case $am_aux_dir in 2392 *\ * | *\ *) 2393 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2394 *) 2395 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2396 esac 2397fi 2398# Use eval to expand $SHELL 2399if eval "$MISSING --run true"; then 2400 am_missing_run="$MISSING --run " 2401else 2402 am_missing_run= 2403 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2404$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2405fi 2406 2407if test x"${install_sh}" != xset; then 2408 case $am_aux_dir in 2409 *\ * | *\ *) 2410 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2411 *) 2412 install_sh="\${SHELL} $am_aux_dir/install-sh" 2413 esac 2414fi 2415 2416# Installed binaries are usually stripped using `strip' when the user 2417# run `make install-strip'. However `strip' might not be the right 2418# tool to use in cross-compilation environments, therefore Automake 2419# will honor the `STRIP' environment variable to overrule this program. 2420if test "$cross_compiling" != no; then 2421 if test -n "$ac_tool_prefix"; then 2422 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2423set dummy ${ac_tool_prefix}strip; ac_word=$2 2424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2425$as_echo_n "checking for $ac_word... " >&6; } 2426if ${ac_cv_prog_STRIP+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 if test -n "$STRIP"; then 2430 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2431else 2432as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2433for as_dir in $PATH 2434do 2435 IFS=$as_save_IFS 2436 test -z "$as_dir" && as_dir=. 2437 for ac_exec_ext in '' $ac_executable_extensions; do 2438 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2439 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2440 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2441 break 2 2442 fi 2443done 2444 done 2445IFS=$as_save_IFS 2446 2447fi 2448fi 2449STRIP=$ac_cv_prog_STRIP 2450if test -n "$STRIP"; then 2451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2452$as_echo "$STRIP" >&6; } 2453else 2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2455$as_echo "no" >&6; } 2456fi 2457 2458 2459fi 2460if test -z "$ac_cv_prog_STRIP"; then 2461 ac_ct_STRIP=$STRIP 2462 # Extract the first word of "strip", so it can be a program name with args. 2463set dummy strip; ac_word=$2 2464{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2465$as_echo_n "checking for $ac_word... " >&6; } 2466if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 if test -n "$ac_ct_STRIP"; then 2470 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2471else 2472as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2473for as_dir in $PATH 2474do 2475 IFS=$as_save_IFS 2476 test -z "$as_dir" && as_dir=. 2477 for ac_exec_ext in '' $ac_executable_extensions; do 2478 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2479 ac_cv_prog_ac_ct_STRIP="strip" 2480 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2481 break 2 2482 fi 2483done 2484 done 2485IFS=$as_save_IFS 2486 2487fi 2488fi 2489ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2490if test -n "$ac_ct_STRIP"; then 2491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2492$as_echo "$ac_ct_STRIP" >&6; } 2493else 2494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2495$as_echo "no" >&6; } 2496fi 2497 2498 if test "x$ac_ct_STRIP" = x; then 2499 STRIP=":" 2500 else 2501 case $cross_compiling:$ac_tool_warned in 2502yes:) 2503{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2504$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2505ac_tool_warned=yes ;; 2506esac 2507 STRIP=$ac_ct_STRIP 2508 fi 2509else 2510 STRIP="$ac_cv_prog_STRIP" 2511fi 2512 2513fi 2514INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2515 2516{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2517$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2518if test -z "$MKDIR_P"; then 2519 if ${ac_cv_path_mkdir+:} false; then : 2520 $as_echo_n "(cached) " >&6 2521else 2522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2523for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2524do 2525 IFS=$as_save_IFS 2526 test -z "$as_dir" && as_dir=. 2527 for ac_prog in mkdir gmkdir; do 2528 for ac_exec_ext in '' $ac_executable_extensions; do 2529 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2530 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2531 'mkdir (GNU coreutils) '* | \ 2532 'mkdir (coreutils) '* | \ 2533 'mkdir (fileutils) '4.1*) 2534 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2535 break 3;; 2536 esac 2537 done 2538 done 2539 done 2540IFS=$as_save_IFS 2541 2542fi 2543 2544 test -d ./--version && rmdir ./--version 2545 if test "${ac_cv_path_mkdir+set}" = set; then 2546 MKDIR_P="$ac_cv_path_mkdir -p" 2547 else 2548 # As a last resort, use the slow shell script. Don't cache a 2549 # value for MKDIR_P within a source directory, because that will 2550 # break other packages using the cache if that directory is 2551 # removed, or if the value is a relative name. 2552 MKDIR_P="$ac_install_sh -d" 2553 fi 2554fi 2555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2556$as_echo "$MKDIR_P" >&6; } 2557 2558mkdir_p="$MKDIR_P" 2559case $mkdir_p in 2560 [\\/$]* | ?:[\\/]*) ;; 2561 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2562esac 2563 2564for ac_prog in gawk mawk nawk awk 2565do 2566 # Extract the first word of "$ac_prog", so it can be a program name with args. 2567set dummy $ac_prog; ac_word=$2 2568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2569$as_echo_n "checking for $ac_word... " >&6; } 2570if ${ac_cv_prog_AWK+:} false; then : 2571 $as_echo_n "(cached) " >&6 2572else 2573 if test -n "$AWK"; then 2574 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2575else 2576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2577for as_dir in $PATH 2578do 2579 IFS=$as_save_IFS 2580 test -z "$as_dir" && as_dir=. 2581 for ac_exec_ext in '' $ac_executable_extensions; do 2582 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2583 ac_cv_prog_AWK="$ac_prog" 2584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2585 break 2 2586 fi 2587done 2588 done 2589IFS=$as_save_IFS 2590 2591fi 2592fi 2593AWK=$ac_cv_prog_AWK 2594if test -n "$AWK"; then 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2596$as_echo "$AWK" >&6; } 2597else 2598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2599$as_echo "no" >&6; } 2600fi 2601 2602 2603 test -n "$AWK" && break 2604done 2605 2606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2607$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2608set x ${MAKE-make} 2609ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2610if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2611 $as_echo_n "(cached) " >&6 2612else 2613 cat >conftest.make <<\_ACEOF 2614SHELL = /bin/sh 2615all: 2616 @echo '@@@%%%=$(MAKE)=@@@%%%' 2617_ACEOF 2618# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2619case `${MAKE-make} -f conftest.make 2>/dev/null` in 2620 *@@@%%%=?*=@@@%%%*) 2621 eval ac_cv_prog_make_${ac_make}_set=yes;; 2622 *) 2623 eval ac_cv_prog_make_${ac_make}_set=no;; 2624esac 2625rm -f conftest.make 2626fi 2627if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2629$as_echo "yes" >&6; } 2630 SET_MAKE= 2631else 2632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2633$as_echo "no" >&6; } 2634 SET_MAKE="MAKE=${MAKE-make}" 2635fi 2636 2637rm -rf .tst 2>/dev/null 2638mkdir .tst 2>/dev/null 2639if test -d .tst; then 2640 am__leading_dot=. 2641else 2642 am__leading_dot=_ 2643fi 2644rmdir .tst 2>/dev/null 2645 2646if test "`cd $srcdir && pwd`" != "`pwd`"; then 2647 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2648 # is not polluted with repeated "-I." 2649 am__isrc=' -I$(srcdir)' 2650 # test to see if srcdir already configured 2651 if test -f $srcdir/config.status; then 2652 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2653 fi 2654fi 2655 2656# test whether we have cygpath 2657if test -z "$CYGPATH_W"; then 2658 if (cygpath --version) >/dev/null 2>/dev/null; then 2659 CYGPATH_W='cygpath -w' 2660 else 2661 CYGPATH_W=echo 2662 fi 2663fi 2664 2665 2666# Define the identity of the package. 2667 PACKAGE='libXcursor' 2668 VERSION='1.1.12' 2669 2670 2671cat >>confdefs.h <<_ACEOF 2672#define PACKAGE "$PACKAGE" 2673_ACEOF 2674 2675 2676cat >>confdefs.h <<_ACEOF 2677#define VERSION "$VERSION" 2678_ACEOF 2679 2680# Some tools Automake needs. 2681 2682ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2683 2684 2685AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2686 2687 2688AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2689 2690 2691AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2692 2693 2694MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2695 2696# We need awk for the "check" target. The system "awk" is bad on 2697# some platforms. 2698# Always define AMTAR for backward compatibility. 2699 2700AMTAR=${AMTAR-"${am_missing_run}tar"} 2701 2702am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2703 2704 2705 2706 2707 2708 2709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2710$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2711 # Check whether --enable-maintainer-mode was given. 2712if test "${enable_maintainer_mode+set}" = set; then : 2713 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2714else 2715 USE_MAINTAINER_MODE=no 2716fi 2717 2718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2719$as_echo "$USE_MAINTAINER_MODE" >&6; } 2720 if test $USE_MAINTAINER_MODE = yes; then 2721 MAINTAINER_MODE_TRUE= 2722 MAINTAINER_MODE_FALSE='#' 2723else 2724 MAINTAINER_MODE_TRUE='#' 2725 MAINTAINER_MODE_FALSE= 2726fi 2727 2728 MAINT=$MAINTAINER_MODE_TRUE 2729 2730 2731 2732# Initialize libtool 2733case `pwd` in 2734 *\ * | *\ *) 2735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2736$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2737esac 2738 2739 2740 2741macro_version='2.4' 2742macro_revision='1.3293' 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756ltmain="$ac_aux_dir/ltmain.sh" 2757 2758# Make sure we can run config.sub. 2759$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2760 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2761 2762{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2763$as_echo_n "checking build system type... " >&6; } 2764if ${ac_cv_build+:} false; then : 2765 $as_echo_n "(cached) " >&6 2766else 2767 ac_build_alias=$build_alias 2768test "x$ac_build_alias" = x && 2769 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2770test "x$ac_build_alias" = x && 2771 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2772ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2773 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2774 2775fi 2776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2777$as_echo "$ac_cv_build" >&6; } 2778case $ac_cv_build in 2779*-*-*) ;; 2780*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2781esac 2782build=$ac_cv_build 2783ac_save_IFS=$IFS; IFS='-' 2784set x $ac_cv_build 2785shift 2786build_cpu=$1 2787build_vendor=$2 2788shift; shift 2789# Remember, the first character of IFS is used to create $*, 2790# except with old shells: 2791build_os=$* 2792IFS=$ac_save_IFS 2793case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2794 2795 2796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2797$as_echo_n "checking host system type... " >&6; } 2798if ${ac_cv_host+:} false; then : 2799 $as_echo_n "(cached) " >&6 2800else 2801 if test "x$host_alias" = x; then 2802 ac_cv_host=$ac_cv_build 2803else 2804 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2805 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2806fi 2807 2808fi 2809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2810$as_echo "$ac_cv_host" >&6; } 2811case $ac_cv_host in 2812*-*-*) ;; 2813*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2814esac 2815host=$ac_cv_host 2816ac_save_IFS=$IFS; IFS='-' 2817set x $ac_cv_host 2818shift 2819host_cpu=$1 2820host_vendor=$2 2821shift; shift 2822# Remember, the first character of IFS is used to create $*, 2823# except with old shells: 2824host_os=$* 2825IFS=$ac_save_IFS 2826case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2827 2828 2829# Backslashify metacharacters that are still active within 2830# double-quoted strings. 2831sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2832 2833# Same as above, but do not quote variable references. 2834double_quote_subst='s/\(["`\\]\)/\\\1/g' 2835 2836# Sed substitution to delay expansion of an escaped shell variable in a 2837# double_quote_subst'ed string. 2838delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2839 2840# Sed substitution to delay expansion of an escaped single quote. 2841delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2842 2843# Sed substitution to avoid accidental globbing in evaled expressions 2844no_glob_subst='s/\*/\\\*/g' 2845 2846ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2847ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2848ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2849 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2851$as_echo_n "checking how to print strings... " >&6; } 2852# Test print first, because it will be a builtin if present. 2853if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2854 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2855 ECHO='print -r --' 2856elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2857 ECHO='printf %s\n' 2858else 2859 # Use this function as a fallback that always works. 2860 func_fallback_echo () 2861 { 2862 eval 'cat <<_LTECHO_EOF 2863$1 2864_LTECHO_EOF' 2865 } 2866 ECHO='func_fallback_echo' 2867fi 2868 2869# func_echo_all arg... 2870# Invoke $ECHO with all args, space-separated. 2871func_echo_all () 2872{ 2873 $ECHO "" 2874} 2875 2876case "$ECHO" in 2877 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2878$as_echo "printf" >&6; } ;; 2879 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2880$as_echo "print -r" >&6; } ;; 2881 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2882$as_echo "cat" >&6; } ;; 2883esac 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898DEPDIR="${am__leading_dot}deps" 2899 2900ac_config_commands="$ac_config_commands depfiles" 2901 2902 2903am_make=${MAKE-make} 2904cat > confinc << 'END' 2905am__doit: 2906 @echo this is the am__doit target 2907.PHONY: am__doit 2908END 2909# If we don't find an include directive, just comment out the code. 2910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2911$as_echo_n "checking for style of include used by $am_make... " >&6; } 2912am__include="#" 2913am__quote= 2914_am_result=none 2915# First try GNU make style include. 2916echo "include confinc" > confmf 2917# Ignore all kinds of additional output from `make'. 2918case `$am_make -s -f confmf 2> /dev/null` in #( 2919*the\ am__doit\ target*) 2920 am__include=include 2921 am__quote= 2922 _am_result=GNU 2923 ;; 2924esac 2925# Now try BSD make style include. 2926if test "$am__include" = "#"; then 2927 echo '.include "confinc"' > confmf 2928 case `$am_make -s -f confmf 2> /dev/null` in #( 2929 *the\ am__doit\ target*) 2930 am__include=.include 2931 am__quote="\"" 2932 _am_result=BSD 2933 ;; 2934 esac 2935fi 2936 2937 2938{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2939$as_echo "$_am_result" >&6; } 2940rm -f confinc confmf 2941 2942# Check whether --enable-dependency-tracking was given. 2943if test "${enable_dependency_tracking+set}" = set; then : 2944 enableval=$enable_dependency_tracking; 2945fi 2946 2947if test "x$enable_dependency_tracking" != xno; then 2948 am_depcomp="$ac_aux_dir/depcomp" 2949 AMDEPBACKSLASH='\' 2950fi 2951 if test "x$enable_dependency_tracking" != xno; then 2952 AMDEP_TRUE= 2953 AMDEP_FALSE='#' 2954else 2955 AMDEP_TRUE='#' 2956 AMDEP_FALSE= 2957fi 2958 2959 2960ac_ext=c 2961ac_cpp='$CPP $CPPFLAGS' 2962ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2963ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2964ac_compiler_gnu=$ac_cv_c_compiler_gnu 2965if test -n "$ac_tool_prefix"; then 2966 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2967set dummy ${ac_tool_prefix}gcc; ac_word=$2 2968{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2969$as_echo_n "checking for $ac_word... " >&6; } 2970if ${ac_cv_prog_CC+:} false; then : 2971 $as_echo_n "(cached) " >&6 2972else 2973 if test -n "$CC"; then 2974 ac_cv_prog_CC="$CC" # Let the user override the test. 2975else 2976as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2977for as_dir in $PATH 2978do 2979 IFS=$as_save_IFS 2980 test -z "$as_dir" && as_dir=. 2981 for ac_exec_ext in '' $ac_executable_extensions; do 2982 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2983 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2985 break 2 2986 fi 2987done 2988 done 2989IFS=$as_save_IFS 2990 2991fi 2992fi 2993CC=$ac_cv_prog_CC 2994if test -n "$CC"; then 2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2996$as_echo "$CC" >&6; } 2997else 2998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2999$as_echo "no" >&6; } 3000fi 3001 3002 3003fi 3004if test -z "$ac_cv_prog_CC"; then 3005 ac_ct_CC=$CC 3006 # Extract the first word of "gcc", so it can be a program name with args. 3007set dummy gcc; ac_word=$2 3008{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3009$as_echo_n "checking for $ac_word... " >&6; } 3010if ${ac_cv_prog_ac_ct_CC+:} false; then : 3011 $as_echo_n "(cached) " >&6 3012else 3013 if test -n "$ac_ct_CC"; then 3014 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3015else 3016as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3017for as_dir in $PATH 3018do 3019 IFS=$as_save_IFS 3020 test -z "$as_dir" && as_dir=. 3021 for ac_exec_ext in '' $ac_executable_extensions; do 3022 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3023 ac_cv_prog_ac_ct_CC="gcc" 3024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3025 break 2 3026 fi 3027done 3028 done 3029IFS=$as_save_IFS 3030 3031fi 3032fi 3033ac_ct_CC=$ac_cv_prog_ac_ct_CC 3034if test -n "$ac_ct_CC"; then 3035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3036$as_echo "$ac_ct_CC" >&6; } 3037else 3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3039$as_echo "no" >&6; } 3040fi 3041 3042 if test "x$ac_ct_CC" = x; then 3043 CC="" 3044 else 3045 case $cross_compiling:$ac_tool_warned in 3046yes:) 3047{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3048$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3049ac_tool_warned=yes ;; 3050esac 3051 CC=$ac_ct_CC 3052 fi 3053else 3054 CC="$ac_cv_prog_CC" 3055fi 3056 3057if test -z "$CC"; then 3058 if test -n "$ac_tool_prefix"; then 3059 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3060set dummy ${ac_tool_prefix}cc; ac_word=$2 3061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3062$as_echo_n "checking for $ac_word... " >&6; } 3063if ${ac_cv_prog_CC+:} false; then : 3064 $as_echo_n "(cached) " >&6 3065else 3066 if test -n "$CC"; then 3067 ac_cv_prog_CC="$CC" # Let the user override the test. 3068else 3069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3070for as_dir in $PATH 3071do 3072 IFS=$as_save_IFS 3073 test -z "$as_dir" && as_dir=. 3074 for ac_exec_ext in '' $ac_executable_extensions; do 3075 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3076 ac_cv_prog_CC="${ac_tool_prefix}cc" 3077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3078 break 2 3079 fi 3080done 3081 done 3082IFS=$as_save_IFS 3083 3084fi 3085fi 3086CC=$ac_cv_prog_CC 3087if test -n "$CC"; then 3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3089$as_echo "$CC" >&6; } 3090else 3091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3092$as_echo "no" >&6; } 3093fi 3094 3095 3096 fi 3097fi 3098if test -z "$CC"; then 3099 # Extract the first word of "cc", so it can be a program name with args. 3100set dummy cc; ac_word=$2 3101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3102$as_echo_n "checking for $ac_word... " >&6; } 3103if ${ac_cv_prog_CC+:} false; then : 3104 $as_echo_n "(cached) " >&6 3105else 3106 if test -n "$CC"; then 3107 ac_cv_prog_CC="$CC" # Let the user override the test. 3108else 3109 ac_prog_rejected=no 3110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3111for as_dir in $PATH 3112do 3113 IFS=$as_save_IFS 3114 test -z "$as_dir" && as_dir=. 3115 for ac_exec_ext in '' $ac_executable_extensions; do 3116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3117 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3118 ac_prog_rejected=yes 3119 continue 3120 fi 3121 ac_cv_prog_CC="cc" 3122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3123 break 2 3124 fi 3125done 3126 done 3127IFS=$as_save_IFS 3128 3129if test $ac_prog_rejected = yes; then 3130 # We found a bogon in the path, so make sure we never use it. 3131 set dummy $ac_cv_prog_CC 3132 shift 3133 if test $# != 0; then 3134 # We chose a different compiler from the bogus one. 3135 # However, it has the same basename, so the bogon will be chosen 3136 # first if we set CC to just the basename; use the full file name. 3137 shift 3138 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3139 fi 3140fi 3141fi 3142fi 3143CC=$ac_cv_prog_CC 3144if test -n "$CC"; then 3145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3146$as_echo "$CC" >&6; } 3147else 3148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3149$as_echo "no" >&6; } 3150fi 3151 3152 3153fi 3154if test -z "$CC"; then 3155 if test -n "$ac_tool_prefix"; then 3156 for ac_prog in cl.exe 3157 do 3158 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3159set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if ${ac_cv_prog_CC+:} false; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3175 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195 test -n "$CC" && break 3196 done 3197fi 3198if test -z "$CC"; then 3199 ac_ct_CC=$CC 3200 for ac_prog in cl.exe 3201do 3202 # Extract the first word of "$ac_prog", so it can be a program name with args. 3203set dummy $ac_prog; ac_word=$2 3204{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3205$as_echo_n "checking for $ac_word... " >&6; } 3206if ${ac_cv_prog_ac_ct_CC+:} false; then : 3207 $as_echo_n "(cached) " >&6 3208else 3209 if test -n "$ac_ct_CC"; then 3210 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3211else 3212as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3213for as_dir in $PATH 3214do 3215 IFS=$as_save_IFS 3216 test -z "$as_dir" && as_dir=. 3217 for ac_exec_ext in '' $ac_executable_extensions; do 3218 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3219 ac_cv_prog_ac_ct_CC="$ac_prog" 3220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3221 break 2 3222 fi 3223done 3224 done 3225IFS=$as_save_IFS 3226 3227fi 3228fi 3229ac_ct_CC=$ac_cv_prog_ac_ct_CC 3230if test -n "$ac_ct_CC"; then 3231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3232$as_echo "$ac_ct_CC" >&6; } 3233else 3234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3235$as_echo "no" >&6; } 3236fi 3237 3238 3239 test -n "$ac_ct_CC" && break 3240done 3241 3242 if test "x$ac_ct_CC" = x; then 3243 CC="" 3244 else 3245 case $cross_compiling:$ac_tool_warned in 3246yes:) 3247{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3248$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3249ac_tool_warned=yes ;; 3250esac 3251 CC=$ac_ct_CC 3252 fi 3253fi 3254 3255fi 3256 3257 3258test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3259$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3260as_fn_error $? "no acceptable C compiler found in \$PATH 3261See \`config.log' for more details" "$LINENO" 5; } 3262 3263# Provide some information about the compiler. 3264$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3265set X $ac_compile 3266ac_compiler=$2 3267for ac_option in --version -v -V -qversion; do 3268 { { ac_try="$ac_compiler $ac_option >&5" 3269case "(($ac_try" in 3270 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3271 *) ac_try_echo=$ac_try;; 3272esac 3273eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3274$as_echo "$ac_try_echo"; } >&5 3275 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3276 ac_status=$? 3277 if test -s conftest.err; then 3278 sed '10a\ 3279... rest of stderr output deleted ... 3280 10q' conftest.err >conftest.er1 3281 cat conftest.er1 >&5 3282 fi 3283 rm -f conftest.er1 conftest.err 3284 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3285 test $ac_status = 0; } 3286done 3287 3288cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3289/* end confdefs.h. */ 3290 3291int 3292main () 3293{ 3294 3295 ; 3296 return 0; 3297} 3298_ACEOF 3299ac_clean_files_save=$ac_clean_files 3300ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3301# Try to create an executable without -o first, disregard a.out. 3302# It will help us diagnose broken compilers, and finding out an intuition 3303# of exeext. 3304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3305$as_echo_n "checking whether the C compiler works... " >&6; } 3306ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3307 3308# The possible output files: 3309ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3310 3311ac_rmfiles= 3312for ac_file in $ac_files 3313do 3314 case $ac_file in 3315 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3316 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3317 esac 3318done 3319rm -f $ac_rmfiles 3320 3321if { { ac_try="$ac_link_default" 3322case "(($ac_try" in 3323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3324 *) ac_try_echo=$ac_try;; 3325esac 3326eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3327$as_echo "$ac_try_echo"; } >&5 3328 (eval "$ac_link_default") 2>&5 3329 ac_status=$? 3330 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3331 test $ac_status = 0; }; then : 3332 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3333# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3334# in a Makefile. We should not override ac_cv_exeext if it was cached, 3335# so that the user can short-circuit this test for compilers unknown to 3336# Autoconf. 3337for ac_file in $ac_files '' 3338do 3339 test -f "$ac_file" || continue 3340 case $ac_file in 3341 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3342 ;; 3343 [ab].out ) 3344 # We found the default executable, but exeext='' is most 3345 # certainly right. 3346 break;; 3347 *.* ) 3348 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3349 then :; else 3350 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3351 fi 3352 # We set ac_cv_exeext here because the later test for it is not 3353 # safe: cross compilers may not add the suffix if given an `-o' 3354 # argument, so we may need to know it at that point already. 3355 # Even if this section looks crufty: it has the advantage of 3356 # actually working. 3357 break;; 3358 * ) 3359 break;; 3360 esac 3361done 3362test "$ac_cv_exeext" = no && ac_cv_exeext= 3363 3364else 3365 ac_file='' 3366fi 3367if test -z "$ac_file"; then : 3368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3369$as_echo "no" >&6; } 3370$as_echo "$as_me: failed program was:" >&5 3371sed 's/^/| /' conftest.$ac_ext >&5 3372 3373{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3374$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3375as_fn_error 77 "C compiler cannot create executables 3376See \`config.log' for more details" "$LINENO" 5; } 3377else 3378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3379$as_echo "yes" >&6; } 3380fi 3381{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3382$as_echo_n "checking for C compiler default output file name... " >&6; } 3383{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3384$as_echo "$ac_file" >&6; } 3385ac_exeext=$ac_cv_exeext 3386 3387rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3388ac_clean_files=$ac_clean_files_save 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3390$as_echo_n "checking for suffix of executables... " >&6; } 3391if { { ac_try="$ac_link" 3392case "(($ac_try" in 3393 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3394 *) ac_try_echo=$ac_try;; 3395esac 3396eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3397$as_echo "$ac_try_echo"; } >&5 3398 (eval "$ac_link") 2>&5 3399 ac_status=$? 3400 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3401 test $ac_status = 0; }; then : 3402 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3403# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3404# work properly (i.e., refer to `conftest.exe'), while it won't with 3405# `rm'. 3406for ac_file in conftest.exe conftest conftest.*; do 3407 test -f "$ac_file" || continue 3408 case $ac_file in 3409 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3410 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3411 break;; 3412 * ) break;; 3413 esac 3414done 3415else 3416 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3417$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3418as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3419See \`config.log' for more details" "$LINENO" 5; } 3420fi 3421rm -f conftest conftest$ac_cv_exeext 3422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3423$as_echo "$ac_cv_exeext" >&6; } 3424 3425rm -f conftest.$ac_ext 3426EXEEXT=$ac_cv_exeext 3427ac_exeext=$EXEEXT 3428cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3429/* end confdefs.h. */ 3430#include <stdio.h> 3431int 3432main () 3433{ 3434FILE *f = fopen ("conftest.out", "w"); 3435 return ferror (f) || fclose (f) != 0; 3436 3437 ; 3438 return 0; 3439} 3440_ACEOF 3441ac_clean_files="$ac_clean_files conftest.out" 3442# Check that the compiler produces executables we can run. If not, either 3443# the compiler is broken, or we cross compile. 3444{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3445$as_echo_n "checking whether we are cross compiling... " >&6; } 3446if test "$cross_compiling" != yes; then 3447 { { ac_try="$ac_link" 3448case "(($ac_try" in 3449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3450 *) ac_try_echo=$ac_try;; 3451esac 3452eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3453$as_echo "$ac_try_echo"; } >&5 3454 (eval "$ac_link") 2>&5 3455 ac_status=$? 3456 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3457 test $ac_status = 0; } 3458 if { ac_try='./conftest$ac_cv_exeext' 3459 { { case "(($ac_try" in 3460 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3461 *) ac_try_echo=$ac_try;; 3462esac 3463eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3464$as_echo "$ac_try_echo"; } >&5 3465 (eval "$ac_try") 2>&5 3466 ac_status=$? 3467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3468 test $ac_status = 0; }; }; then 3469 cross_compiling=no 3470 else 3471 if test "$cross_compiling" = maybe; then 3472 cross_compiling=yes 3473 else 3474 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3475$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3476as_fn_error $? "cannot run C compiled programs. 3477If you meant to cross compile, use \`--host'. 3478See \`config.log' for more details" "$LINENO" 5; } 3479 fi 3480 fi 3481fi 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3483$as_echo "$cross_compiling" >&6; } 3484 3485rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3486ac_clean_files=$ac_clean_files_save 3487{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3488$as_echo_n "checking for suffix of object files... " >&6; } 3489if ${ac_cv_objext+:} false; then : 3490 $as_echo_n "(cached) " >&6 3491else 3492 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3493/* end confdefs.h. */ 3494 3495int 3496main () 3497{ 3498 3499 ; 3500 return 0; 3501} 3502_ACEOF 3503rm -f conftest.o conftest.obj 3504if { { ac_try="$ac_compile" 3505case "(($ac_try" in 3506 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3507 *) ac_try_echo=$ac_try;; 3508esac 3509eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3510$as_echo "$ac_try_echo"; } >&5 3511 (eval "$ac_compile") 2>&5 3512 ac_status=$? 3513 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3514 test $ac_status = 0; }; then : 3515 for ac_file in conftest.o conftest.obj conftest.*; do 3516 test -f "$ac_file" || continue; 3517 case $ac_file in 3518 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3519 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3520 break;; 3521 esac 3522done 3523else 3524 $as_echo "$as_me: failed program was:" >&5 3525sed 's/^/| /' conftest.$ac_ext >&5 3526 3527{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3528$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3529as_fn_error $? "cannot compute suffix of object files: cannot compile 3530See \`config.log' for more details" "$LINENO" 5; } 3531fi 3532rm -f conftest.$ac_cv_objext conftest.$ac_ext 3533fi 3534{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3535$as_echo "$ac_cv_objext" >&6; } 3536OBJEXT=$ac_cv_objext 3537ac_objext=$OBJEXT 3538{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3539$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3540if ${ac_cv_c_compiler_gnu+:} false; then : 3541 $as_echo_n "(cached) " >&6 3542else 3543 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3544/* end confdefs.h. */ 3545 3546int 3547main () 3548{ 3549#ifndef __GNUC__ 3550 choke me 3551#endif 3552 3553 ; 3554 return 0; 3555} 3556_ACEOF 3557if ac_fn_c_try_compile "$LINENO"; then : 3558 ac_compiler_gnu=yes 3559else 3560 ac_compiler_gnu=no 3561fi 3562rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3563ac_cv_c_compiler_gnu=$ac_compiler_gnu 3564 3565fi 3566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3567$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3568if test $ac_compiler_gnu = yes; then 3569 GCC=yes 3570else 3571 GCC= 3572fi 3573ac_test_CFLAGS=${CFLAGS+set} 3574ac_save_CFLAGS=$CFLAGS 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3576$as_echo_n "checking whether $CC accepts -g... " >&6; } 3577if ${ac_cv_prog_cc_g+:} false; then : 3578 $as_echo_n "(cached) " >&6 3579else 3580 ac_save_c_werror_flag=$ac_c_werror_flag 3581 ac_c_werror_flag=yes 3582 ac_cv_prog_cc_g=no 3583 CFLAGS="-g" 3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3585/* end confdefs.h. */ 3586 3587int 3588main () 3589{ 3590 3591 ; 3592 return 0; 3593} 3594_ACEOF 3595if ac_fn_c_try_compile "$LINENO"; then : 3596 ac_cv_prog_cc_g=yes 3597else 3598 CFLAGS="" 3599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3600/* end confdefs.h. */ 3601 3602int 3603main () 3604{ 3605 3606 ; 3607 return 0; 3608} 3609_ACEOF 3610if ac_fn_c_try_compile "$LINENO"; then : 3611 3612else 3613 ac_c_werror_flag=$ac_save_c_werror_flag 3614 CFLAGS="-g" 3615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3616/* end confdefs.h. */ 3617 3618int 3619main () 3620{ 3621 3622 ; 3623 return 0; 3624} 3625_ACEOF 3626if ac_fn_c_try_compile "$LINENO"; then : 3627 ac_cv_prog_cc_g=yes 3628fi 3629rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3630fi 3631rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3632fi 3633rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3634 ac_c_werror_flag=$ac_save_c_werror_flag 3635fi 3636{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3637$as_echo "$ac_cv_prog_cc_g" >&6; } 3638if test "$ac_test_CFLAGS" = set; then 3639 CFLAGS=$ac_save_CFLAGS 3640elif test $ac_cv_prog_cc_g = yes; then 3641 if test "$GCC" = yes; then 3642 CFLAGS="-g -O2" 3643 else 3644 CFLAGS="-g" 3645 fi 3646else 3647 if test "$GCC" = yes; then 3648 CFLAGS="-O2" 3649 else 3650 CFLAGS= 3651 fi 3652fi 3653{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3654$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3655if ${ac_cv_prog_cc_c89+:} false; then : 3656 $as_echo_n "(cached) " >&6 3657else 3658 ac_cv_prog_cc_c89=no 3659ac_save_CC=$CC 3660cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3661/* end confdefs.h. */ 3662#include <stdarg.h> 3663#include <stdio.h> 3664#include <sys/types.h> 3665#include <sys/stat.h> 3666/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3667struct buf { int x; }; 3668FILE * (*rcsopen) (struct buf *, struct stat *, int); 3669static char *e (p, i) 3670 char **p; 3671 int i; 3672{ 3673 return p[i]; 3674} 3675static char *f (char * (*g) (char **, int), char **p, ...) 3676{ 3677 char *s; 3678 va_list v; 3679 va_start (v,p); 3680 s = g (p, va_arg (v,int)); 3681 va_end (v); 3682 return s; 3683} 3684 3685/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3686 function prototypes and stuff, but not '\xHH' hex character constants. 3687 These don't provoke an error unfortunately, instead are silently treated 3688 as 'x'. The following induces an error, until -std is added to get 3689 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3690 array size at least. It's necessary to write '\x00'==0 to get something 3691 that's true only with -std. */ 3692int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3693 3694/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3695 inside strings and character constants. */ 3696#define FOO(x) 'x' 3697int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3698 3699int test (int i, double x); 3700struct s1 {int (*f) (int a);}; 3701struct s2 {int (*f) (double a);}; 3702int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3703int argc; 3704char **argv; 3705int 3706main () 3707{ 3708return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3709 ; 3710 return 0; 3711} 3712_ACEOF 3713for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3714 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3715do 3716 CC="$ac_save_CC $ac_arg" 3717 if ac_fn_c_try_compile "$LINENO"; then : 3718 ac_cv_prog_cc_c89=$ac_arg 3719fi 3720rm -f core conftest.err conftest.$ac_objext 3721 test "x$ac_cv_prog_cc_c89" != "xno" && break 3722done 3723rm -f conftest.$ac_ext 3724CC=$ac_save_CC 3725 3726fi 3727# AC_CACHE_VAL 3728case "x$ac_cv_prog_cc_c89" in 3729 x) 3730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3731$as_echo "none needed" >&6; } ;; 3732 xno) 3733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3734$as_echo "unsupported" >&6; } ;; 3735 *) 3736 CC="$CC $ac_cv_prog_cc_c89" 3737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3738$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3739esac 3740if test "x$ac_cv_prog_cc_c89" != xno; then : 3741 3742fi 3743 3744ac_ext=c 3745ac_cpp='$CPP $CPPFLAGS' 3746ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3747ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3748ac_compiler_gnu=$ac_cv_c_compiler_gnu 3749 3750depcc="$CC" am_compiler_list= 3751 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3753$as_echo_n "checking dependency style of $depcc... " >&6; } 3754if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3758 # We make a subdir and do the tests there. Otherwise we can end up 3759 # making bogus files that we don't know about and never remove. For 3760 # instance it was reported that on HP-UX the gcc test will end up 3761 # making a dummy file named `D' -- because `-MD' means `put the output 3762 # in D'. 3763 mkdir conftest.dir 3764 # Copy depcomp to subdir because otherwise we won't find it if we're 3765 # using a relative directory. 3766 cp "$am_depcomp" conftest.dir 3767 cd conftest.dir 3768 # We will build objects and dependencies in a subdirectory because 3769 # it helps to detect inapplicable dependency modes. For instance 3770 # both Tru64's cc and ICC support -MD to output dependencies as a 3771 # side effect of compilation, but ICC will put the dependencies in 3772 # the current directory while Tru64 will put them in the object 3773 # directory. 3774 mkdir sub 3775 3776 am_cv_CC_dependencies_compiler_type=none 3777 if test "$am_compiler_list" = ""; then 3778 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3779 fi 3780 am__universal=false 3781 case " $depcc " in #( 3782 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3783 esac 3784 3785 for depmode in $am_compiler_list; do 3786 # Setup a source with many dependencies, because some compilers 3787 # like to wrap large dependency lists on column 80 (with \), and 3788 # we should not choose a depcomp mode which is confused by this. 3789 # 3790 # We need to recreate these files for each test, as the compiler may 3791 # overwrite some of them when testing with obscure command lines. 3792 # This happens at least with the AIX C compiler. 3793 : > sub/conftest.c 3794 for i in 1 2 3 4 5 6; do 3795 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3796 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3797 # Solaris 8's {/usr,}/bin/sh. 3798 touch sub/conftst$i.h 3799 done 3800 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3801 3802 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3803 # mode. It turns out that the SunPro C++ compiler does not properly 3804 # handle `-M -o', and we need to detect this. Also, some Intel 3805 # versions had trouble with output in subdirs 3806 am__obj=sub/conftest.${OBJEXT-o} 3807 am__minus_obj="-o $am__obj" 3808 case $depmode in 3809 gcc) 3810 # This depmode causes a compiler race in universal mode. 3811 test "$am__universal" = false || continue 3812 ;; 3813 nosideeffect) 3814 # after this tag, mechanisms are not by side-effect, so they'll 3815 # only be used when explicitly requested 3816 if test "x$enable_dependency_tracking" = xyes; then 3817 continue 3818 else 3819 break 3820 fi 3821 ;; 3822 msvisualcpp | msvcmsys) 3823 # This compiler won't grok `-c -o', but also, the minuso test has 3824 # not run yet. These depmodes are late enough in the game, and 3825 # so weak that their functioning should not be impacted. 3826 am__obj=conftest.${OBJEXT-o} 3827 am__minus_obj= 3828 ;; 3829 none) break ;; 3830 esac 3831 if depmode=$depmode \ 3832 source=sub/conftest.c object=$am__obj \ 3833 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3834 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3835 >/dev/null 2>conftest.err && 3836 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3837 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3838 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3839 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3840 # icc doesn't choke on unknown options, it will just issue warnings 3841 # or remarks (even with -Werror). So we grep stderr for any message 3842 # that says an option was ignored or not supported. 3843 # When given -MP, icc 7.0 and 7.1 complain thusly: 3844 # icc: Command line warning: ignoring option '-M'; no argument required 3845 # The diagnosis changed in icc 8.0: 3846 # icc: Command line remark: option '-MP' not supported 3847 if (grep 'ignoring option' conftest.err || 3848 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3849 am_cv_CC_dependencies_compiler_type=$depmode 3850 break 3851 fi 3852 fi 3853 done 3854 3855 cd .. 3856 rm -rf conftest.dir 3857else 3858 am_cv_CC_dependencies_compiler_type=none 3859fi 3860 3861fi 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3863$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3864CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3865 3866 if 3867 test "x$enable_dependency_tracking" != xno \ 3868 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3869 am__fastdepCC_TRUE= 3870 am__fastdepCC_FALSE='#' 3871else 3872 am__fastdepCC_TRUE='#' 3873 am__fastdepCC_FALSE= 3874fi 3875 3876 3877{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3878$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3879if ${ac_cv_path_SED+:} false; then : 3880 $as_echo_n "(cached) " >&6 3881else 3882 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3883 for ac_i in 1 2 3 4 5 6 7; do 3884 ac_script="$ac_script$as_nl$ac_script" 3885 done 3886 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3887 { ac_script=; unset ac_script;} 3888 if test -z "$SED"; then 3889 ac_path_SED_found=false 3890 # Loop through the user's path and test for each of PROGNAME-LIST 3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3892for as_dir in $PATH 3893do 3894 IFS=$as_save_IFS 3895 test -z "$as_dir" && as_dir=. 3896 for ac_prog in sed gsed; do 3897 for ac_exec_ext in '' $ac_executable_extensions; do 3898 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3899 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 3900# Check for GNU ac_path_SED and select it if it is found. 3901 # Check for GNU $ac_path_SED 3902case `"$ac_path_SED" --version 2>&1` in 3903*GNU*) 3904 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3905*) 3906 ac_count=0 3907 $as_echo_n 0123456789 >"conftest.in" 3908 while : 3909 do 3910 cat "conftest.in" "conftest.in" >"conftest.tmp" 3911 mv "conftest.tmp" "conftest.in" 3912 cp "conftest.in" "conftest.nl" 3913 $as_echo '' >> "conftest.nl" 3914 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3915 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3916 as_fn_arith $ac_count + 1 && ac_count=$as_val 3917 if test $ac_count -gt ${ac_path_SED_max-0}; then 3918 # Best one so far, save it but keep looking for a better one 3919 ac_cv_path_SED="$ac_path_SED" 3920 ac_path_SED_max=$ac_count 3921 fi 3922 # 10*(2^10) chars as input seems more than enough 3923 test $ac_count -gt 10 && break 3924 done 3925 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3926esac 3927 3928 $ac_path_SED_found && break 3 3929 done 3930 done 3931 done 3932IFS=$as_save_IFS 3933 if test -z "$ac_cv_path_SED"; then 3934 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3935 fi 3936else 3937 ac_cv_path_SED=$SED 3938fi 3939 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3942$as_echo "$ac_cv_path_SED" >&6; } 3943 SED="$ac_cv_path_SED" 3944 rm -f conftest.sed 3945 3946test -z "$SED" && SED=sed 3947Xsed="$SED -e 1s/^X//" 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3960$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3961if ${ac_cv_path_GREP+:} false; then : 3962 $as_echo_n "(cached) " >&6 3963else 3964 if test -z "$GREP"; then 3965 ac_path_GREP_found=false 3966 # Loop through the user's path and test for each of PROGNAME-LIST 3967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3968for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3969do 3970 IFS=$as_save_IFS 3971 test -z "$as_dir" && as_dir=. 3972 for ac_prog in grep ggrep; do 3973 for ac_exec_ext in '' $ac_executable_extensions; do 3974 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3975 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3976# Check for GNU ac_path_GREP and select it if it is found. 3977 # Check for GNU $ac_path_GREP 3978case `"$ac_path_GREP" --version 2>&1` in 3979*GNU*) 3980 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3981*) 3982 ac_count=0 3983 $as_echo_n 0123456789 >"conftest.in" 3984 while : 3985 do 3986 cat "conftest.in" "conftest.in" >"conftest.tmp" 3987 mv "conftest.tmp" "conftest.in" 3988 cp "conftest.in" "conftest.nl" 3989 $as_echo 'GREP' >> "conftest.nl" 3990 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3991 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3992 as_fn_arith $ac_count + 1 && ac_count=$as_val 3993 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3994 # Best one so far, save it but keep looking for a better one 3995 ac_cv_path_GREP="$ac_path_GREP" 3996 ac_path_GREP_max=$ac_count 3997 fi 3998 # 10*(2^10) chars as input seems more than enough 3999 test $ac_count -gt 10 && break 4000 done 4001 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4002esac 4003 4004 $ac_path_GREP_found && break 3 4005 done 4006 done 4007 done 4008IFS=$as_save_IFS 4009 if test -z "$ac_cv_path_GREP"; then 4010 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4011 fi 4012else 4013 ac_cv_path_GREP=$GREP 4014fi 4015 4016fi 4017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4018$as_echo "$ac_cv_path_GREP" >&6; } 4019 GREP="$ac_cv_path_GREP" 4020 4021 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4023$as_echo_n "checking for egrep... " >&6; } 4024if ${ac_cv_path_EGREP+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4028 then ac_cv_path_EGREP="$GREP -E" 4029 else 4030 if test -z "$EGREP"; then 4031 ac_path_EGREP_found=false 4032 # Loop through the user's path and test for each of PROGNAME-LIST 4033 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4034for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4035do 4036 IFS=$as_save_IFS 4037 test -z "$as_dir" && as_dir=. 4038 for ac_prog in egrep; do 4039 for ac_exec_ext in '' $ac_executable_extensions; do 4040 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4041 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4042# Check for GNU ac_path_EGREP and select it if it is found. 4043 # Check for GNU $ac_path_EGREP 4044case `"$ac_path_EGREP" --version 2>&1` in 4045*GNU*) 4046 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4047*) 4048 ac_count=0 4049 $as_echo_n 0123456789 >"conftest.in" 4050 while : 4051 do 4052 cat "conftest.in" "conftest.in" >"conftest.tmp" 4053 mv "conftest.tmp" "conftest.in" 4054 cp "conftest.in" "conftest.nl" 4055 $as_echo 'EGREP' >> "conftest.nl" 4056 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4057 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4058 as_fn_arith $ac_count + 1 && ac_count=$as_val 4059 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4060 # Best one so far, save it but keep looking for a better one 4061 ac_cv_path_EGREP="$ac_path_EGREP" 4062 ac_path_EGREP_max=$ac_count 4063 fi 4064 # 10*(2^10) chars as input seems more than enough 4065 test $ac_count -gt 10 && break 4066 done 4067 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4068esac 4069 4070 $ac_path_EGREP_found && break 3 4071 done 4072 done 4073 done 4074IFS=$as_save_IFS 4075 if test -z "$ac_cv_path_EGREP"; then 4076 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4077 fi 4078else 4079 ac_cv_path_EGREP=$EGREP 4080fi 4081 4082 fi 4083fi 4084{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4085$as_echo "$ac_cv_path_EGREP" >&6; } 4086 EGREP="$ac_cv_path_EGREP" 4087 4088 4089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4090$as_echo_n "checking for fgrep... " >&6; } 4091if ${ac_cv_path_FGREP+:} false; then : 4092 $as_echo_n "(cached) " >&6 4093else 4094 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4095 then ac_cv_path_FGREP="$GREP -F" 4096 else 4097 if test -z "$FGREP"; then 4098 ac_path_FGREP_found=false 4099 # Loop through the user's path and test for each of PROGNAME-LIST 4100 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4101for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4102do 4103 IFS=$as_save_IFS 4104 test -z "$as_dir" && as_dir=. 4105 for ac_prog in fgrep; do 4106 for ac_exec_ext in '' $ac_executable_extensions; do 4107 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4108 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 4109# Check for GNU ac_path_FGREP and select it if it is found. 4110 # Check for GNU $ac_path_FGREP 4111case `"$ac_path_FGREP" --version 2>&1` in 4112*GNU*) 4113 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4114*) 4115 ac_count=0 4116 $as_echo_n 0123456789 >"conftest.in" 4117 while : 4118 do 4119 cat "conftest.in" "conftest.in" >"conftest.tmp" 4120 mv "conftest.tmp" "conftest.in" 4121 cp "conftest.in" "conftest.nl" 4122 $as_echo 'FGREP' >> "conftest.nl" 4123 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4124 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4125 as_fn_arith $ac_count + 1 && ac_count=$as_val 4126 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4127 # Best one so far, save it but keep looking for a better one 4128 ac_cv_path_FGREP="$ac_path_FGREP" 4129 ac_path_FGREP_max=$ac_count 4130 fi 4131 # 10*(2^10) chars as input seems more than enough 4132 test $ac_count -gt 10 && break 4133 done 4134 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4135esac 4136 4137 $ac_path_FGREP_found && break 3 4138 done 4139 done 4140 done 4141IFS=$as_save_IFS 4142 if test -z "$ac_cv_path_FGREP"; then 4143 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4144 fi 4145else 4146 ac_cv_path_FGREP=$FGREP 4147fi 4148 4149 fi 4150fi 4151{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4152$as_echo "$ac_cv_path_FGREP" >&6; } 4153 FGREP="$ac_cv_path_FGREP" 4154 4155 4156test -z "$GREP" && GREP=grep 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176# Check whether --with-gnu-ld was given. 4177if test "${with_gnu_ld+set}" = set; then : 4178 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4179else 4180 with_gnu_ld=no 4181fi 4182 4183ac_prog=ld 4184if test "$GCC" = yes; then 4185 # Check if gcc -print-prog-name=ld gives a path. 4186 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4187$as_echo_n "checking for ld used by $CC... " >&6; } 4188 case $host in 4189 *-*-mingw*) 4190 # gcc leaves a trailing carriage return which upsets mingw 4191 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4192 *) 4193 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4194 esac 4195 case $ac_prog in 4196 # Accept absolute paths. 4197 [\\/]* | ?:[\\/]*) 4198 re_direlt='/[^/][^/]*/\.\./' 4199 # Canonicalize the pathname of ld 4200 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4201 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4202 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4203 done 4204 test -z "$LD" && LD="$ac_prog" 4205 ;; 4206 "") 4207 # If it fails, then pretend we aren't using GCC. 4208 ac_prog=ld 4209 ;; 4210 *) 4211 # If it is relative, then search for the first ld in PATH. 4212 with_gnu_ld=unknown 4213 ;; 4214 esac 4215elif test "$with_gnu_ld" = yes; then 4216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4217$as_echo_n "checking for GNU ld... " >&6; } 4218else 4219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4220$as_echo_n "checking for non-GNU ld... " >&6; } 4221fi 4222if ${lt_cv_path_LD+:} false; then : 4223 $as_echo_n "(cached) " >&6 4224else 4225 if test -z "$LD"; then 4226 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4227 for ac_dir in $PATH; do 4228 IFS="$lt_save_ifs" 4229 test -z "$ac_dir" && ac_dir=. 4230 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4231 lt_cv_path_LD="$ac_dir/$ac_prog" 4232 # Check to see if the program is GNU ld. I'd rather use --version, 4233 # but apparently some variants of GNU ld only accept -v. 4234 # Break only if it was the GNU/non-GNU ld that we prefer. 4235 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4236 *GNU* | *'with BFD'*) 4237 test "$with_gnu_ld" != no && break 4238 ;; 4239 *) 4240 test "$with_gnu_ld" != yes && break 4241 ;; 4242 esac 4243 fi 4244 done 4245 IFS="$lt_save_ifs" 4246else 4247 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4248fi 4249fi 4250 4251LD="$lt_cv_path_LD" 4252if test -n "$LD"; then 4253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4254$as_echo "$LD" >&6; } 4255else 4256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4257$as_echo "no" >&6; } 4258fi 4259test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4261$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4262if ${lt_cv_prog_gnu_ld+:} false; then : 4263 $as_echo_n "(cached) " >&6 4264else 4265 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4266case `$LD -v 2>&1 </dev/null` in 4267*GNU* | *'with BFD'*) 4268 lt_cv_prog_gnu_ld=yes 4269 ;; 4270*) 4271 lt_cv_prog_gnu_ld=no 4272 ;; 4273esac 4274fi 4275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4276$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4277with_gnu_ld=$lt_cv_prog_gnu_ld 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4288$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4289if ${lt_cv_path_NM+:} false; then : 4290 $as_echo_n "(cached) " >&6 4291else 4292 if test -n "$NM"; then 4293 # Let the user override the test. 4294 lt_cv_path_NM="$NM" 4295else 4296 lt_nm_to_check="${ac_tool_prefix}nm" 4297 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4298 lt_nm_to_check="$lt_nm_to_check nm" 4299 fi 4300 for lt_tmp_nm in $lt_nm_to_check; do 4301 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4302 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4303 IFS="$lt_save_ifs" 4304 test -z "$ac_dir" && ac_dir=. 4305 tmp_nm="$ac_dir/$lt_tmp_nm" 4306 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4307 # Check to see if the nm accepts a BSD-compat flag. 4308 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4309 # nm: unknown option "B" ignored 4310 # Tru64's nm complains that /dev/null is an invalid object file 4311 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4312 */dev/null* | *'Invalid file or object type'*) 4313 lt_cv_path_NM="$tmp_nm -B" 4314 break 4315 ;; 4316 *) 4317 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4318 */dev/null*) 4319 lt_cv_path_NM="$tmp_nm -p" 4320 break 4321 ;; 4322 *) 4323 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4324 continue # so that we can try to find one that supports BSD flags 4325 ;; 4326 esac 4327 ;; 4328 esac 4329 fi 4330 done 4331 IFS="$lt_save_ifs" 4332 done 4333 : ${lt_cv_path_NM=no} 4334fi 4335fi 4336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4337$as_echo "$lt_cv_path_NM" >&6; } 4338if test "$lt_cv_path_NM" != "no"; then 4339 NM="$lt_cv_path_NM" 4340else 4341 # Didn't find any BSD compatible name lister, look for dumpbin. 4342 if test -n "$DUMPBIN"; then : 4343 # Let the user override the test. 4344 else 4345 if test -n "$ac_tool_prefix"; then 4346 for ac_prog in dumpbin "link -dump" 4347 do 4348 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4349set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4351$as_echo_n "checking for $ac_word... " >&6; } 4352if ${ac_cv_prog_DUMPBIN+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -n "$DUMPBIN"; then 4356 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4357else 4358as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_exec_ext in '' $ac_executable_extensions; do 4364 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4365 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4366 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4367 break 2 4368 fi 4369done 4370 done 4371IFS=$as_save_IFS 4372 4373fi 4374fi 4375DUMPBIN=$ac_cv_prog_DUMPBIN 4376if test -n "$DUMPBIN"; then 4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4378$as_echo "$DUMPBIN" >&6; } 4379else 4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4381$as_echo "no" >&6; } 4382fi 4383 4384 4385 test -n "$DUMPBIN" && break 4386 done 4387fi 4388if test -z "$DUMPBIN"; then 4389 ac_ct_DUMPBIN=$DUMPBIN 4390 for ac_prog in dumpbin "link -dump" 4391do 4392 # Extract the first word of "$ac_prog", so it can be a program name with args. 4393set dummy $ac_prog; ac_word=$2 4394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4395$as_echo_n "checking for $ac_word... " >&6; } 4396if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4397 $as_echo_n "(cached) " >&6 4398else 4399 if test -n "$ac_ct_DUMPBIN"; then 4400 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4401else 4402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4403for as_dir in $PATH 4404do 4405 IFS=$as_save_IFS 4406 test -z "$as_dir" && as_dir=. 4407 for ac_exec_ext in '' $ac_executable_extensions; do 4408 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4409 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4411 break 2 4412 fi 4413done 4414 done 4415IFS=$as_save_IFS 4416 4417fi 4418fi 4419ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4420if test -n "$ac_ct_DUMPBIN"; then 4421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4422$as_echo "$ac_ct_DUMPBIN" >&6; } 4423else 4424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4425$as_echo "no" >&6; } 4426fi 4427 4428 4429 test -n "$ac_ct_DUMPBIN" && break 4430done 4431 4432 if test "x$ac_ct_DUMPBIN" = x; then 4433 DUMPBIN=":" 4434 else 4435 case $cross_compiling:$ac_tool_warned in 4436yes:) 4437{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4438$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4439ac_tool_warned=yes ;; 4440esac 4441 DUMPBIN=$ac_ct_DUMPBIN 4442 fi 4443fi 4444 4445 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4446 *COFF*) 4447 DUMPBIN="$DUMPBIN -symbols" 4448 ;; 4449 *) 4450 DUMPBIN=: 4451 ;; 4452 esac 4453 fi 4454 4455 if test "$DUMPBIN" != ":"; then 4456 NM="$DUMPBIN" 4457 fi 4458fi 4459test -z "$NM" && NM=nm 4460 4461 4462 4463 4464 4465 4466{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4467$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4468if ${lt_cv_nm_interface+:} false; then : 4469 $as_echo_n "(cached) " >&6 4470else 4471 lt_cv_nm_interface="BSD nm" 4472 echo "int some_variable = 0;" > conftest.$ac_ext 4473 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4474 (eval "$ac_compile" 2>conftest.err) 4475 cat conftest.err >&5 4476 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4477 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4478 cat conftest.err >&5 4479 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4480 cat conftest.out >&5 4481 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4482 lt_cv_nm_interface="MS dumpbin" 4483 fi 4484 rm -f conftest* 4485fi 4486{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4487$as_echo "$lt_cv_nm_interface" >&6; } 4488 4489{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4490$as_echo_n "checking whether ln -s works... " >&6; } 4491LN_S=$as_ln_s 4492if test "$LN_S" = "ln -s"; then 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4494$as_echo "yes" >&6; } 4495else 4496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4497$as_echo "no, using $LN_S" >&6; } 4498fi 4499 4500# find the maximum length of command line arguments 4501{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4502$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4503if ${lt_cv_sys_max_cmd_len+:} false; then : 4504 $as_echo_n "(cached) " >&6 4505else 4506 i=0 4507 teststring="ABCD" 4508 4509 case $build_os in 4510 msdosdjgpp*) 4511 # On DJGPP, this test can blow up pretty badly due to problems in libc 4512 # (any single argument exceeding 2000 bytes causes a buffer overrun 4513 # during glob expansion). Even if it were fixed, the result of this 4514 # check would be larger than it should be. 4515 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4516 ;; 4517 4518 gnu*) 4519 # Under GNU Hurd, this test is not required because there is 4520 # no limit to the length of command line arguments. 4521 # Libtool will interpret -1 as no limit whatsoever 4522 lt_cv_sys_max_cmd_len=-1; 4523 ;; 4524 4525 cygwin* | mingw* | cegcc*) 4526 # On Win9x/ME, this test blows up -- it succeeds, but takes 4527 # about 5 minutes as the teststring grows exponentially. 4528 # Worse, since 9x/ME are not pre-emptively multitasking, 4529 # you end up with a "frozen" computer, even though with patience 4530 # the test eventually succeeds (with a max line length of 256k). 4531 # Instead, let's just punt: use the minimum linelength reported by 4532 # all of the supported platforms: 8192 (on NT/2K/XP). 4533 lt_cv_sys_max_cmd_len=8192; 4534 ;; 4535 4536 mint*) 4537 # On MiNT this can take a long time and run out of memory. 4538 lt_cv_sys_max_cmd_len=8192; 4539 ;; 4540 4541 amigaos*) 4542 # On AmigaOS with pdksh, this test takes hours, literally. 4543 # So we just punt and use a minimum line length of 8192. 4544 lt_cv_sys_max_cmd_len=8192; 4545 ;; 4546 4547 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4548 # This has been around since 386BSD, at least. Likely further. 4549 if test -x /sbin/sysctl; then 4550 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4551 elif test -x /usr/sbin/sysctl; then 4552 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4553 else 4554 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4555 fi 4556 # And add a safety zone 4557 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4558 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4559 ;; 4560 4561 interix*) 4562 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4563 lt_cv_sys_max_cmd_len=196608 4564 ;; 4565 4566 osf*) 4567 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4568 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4569 # nice to cause kernel panics so lets avoid the loop below. 4570 # First set a reasonable default. 4571 lt_cv_sys_max_cmd_len=16384 4572 # 4573 if test -x /sbin/sysconfig; then 4574 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4575 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4576 esac 4577 fi 4578 ;; 4579 sco3.2v5*) 4580 lt_cv_sys_max_cmd_len=102400 4581 ;; 4582 sysv5* | sco5v6* | sysv4.2uw2*) 4583 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4584 if test -n "$kargmax"; then 4585 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4586 else 4587 lt_cv_sys_max_cmd_len=32768 4588 fi 4589 ;; 4590 *) 4591 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4592 if test -n "$lt_cv_sys_max_cmd_len"; then 4593 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4594 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4595 else 4596 # Make teststring a little bigger before we do anything with it. 4597 # a 1K string should be a reasonable start. 4598 for i in 1 2 3 4 5 6 7 8 ; do 4599 teststring=$teststring$teststring 4600 done 4601 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4602 # If test is not a shell built-in, we'll probably end up computing a 4603 # maximum length that is only half of the actual maximum length, but 4604 # we can't tell. 4605 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 4606 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4607 test $i != 17 # 1/2 MB should be enough 4608 do 4609 i=`expr $i + 1` 4610 teststring=$teststring$teststring 4611 done 4612 # Only check the string length outside the loop. 4613 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4614 teststring= 4615 # Add a significant safety factor because C++ compilers can tack on 4616 # massive amounts of additional arguments before passing them to the 4617 # linker. It appears as though 1/2 is a usable value. 4618 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4619 fi 4620 ;; 4621 esac 4622 4623fi 4624 4625if test -n $lt_cv_sys_max_cmd_len ; then 4626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4627$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4628else 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4630$as_echo "none" >&6; } 4631fi 4632max_cmd_len=$lt_cv_sys_max_cmd_len 4633 4634 4635 4636 4637 4638 4639: ${CP="cp -f"} 4640: ${MV="mv -f"} 4641: ${RM="rm -f"} 4642 4643{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 4644$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 4645# Try some XSI features 4646xsi_shell=no 4647( _lt_dummy="a/b/c" 4648 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 4649 = c,a/b,b/c, \ 4650 && eval 'test $(( 1 + 1 )) -eq 2 \ 4651 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 4652 && xsi_shell=yes 4653{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 4654$as_echo "$xsi_shell" >&6; } 4655 4656 4657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 4658$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 4659lt_shell_append=no 4660( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4661 >/dev/null 2>&1 \ 4662 && lt_shell_append=yes 4663{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 4664$as_echo "$lt_shell_append" >&6; } 4665 4666 4667if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4668 lt_unset=unset 4669else 4670 lt_unset=false 4671fi 4672 4673 4674 4675 4676 4677# test EBCDIC or ASCII 4678case `echo X|tr X '\101'` in 4679 A) # ASCII based system 4680 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4681 lt_SP2NL='tr \040 \012' 4682 lt_NL2SP='tr \015\012 \040\040' 4683 ;; 4684 *) # EBCDIC based system 4685 lt_SP2NL='tr \100 \n' 4686 lt_NL2SP='tr \r\n \100\100' 4687 ;; 4688esac 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4699$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4700if ${lt_cv_to_host_file_cmd+:} false; then : 4701 $as_echo_n "(cached) " >&6 4702else 4703 case $host in 4704 *-*-mingw* ) 4705 case $build in 4706 *-*-mingw* ) # actually msys 4707 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4708 ;; 4709 *-*-cygwin* ) 4710 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4711 ;; 4712 * ) # otherwise, assume *nix 4713 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4714 ;; 4715 esac 4716 ;; 4717 *-*-cygwin* ) 4718 case $build in 4719 *-*-mingw* ) # actually msys 4720 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4721 ;; 4722 *-*-cygwin* ) 4723 lt_cv_to_host_file_cmd=func_convert_file_noop 4724 ;; 4725 * ) # otherwise, assume *nix 4726 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4727 ;; 4728 esac 4729 ;; 4730 * ) # unhandled hosts (and "normal" native builds) 4731 lt_cv_to_host_file_cmd=func_convert_file_noop 4732 ;; 4733esac 4734 4735fi 4736 4737to_host_file_cmd=$lt_cv_to_host_file_cmd 4738{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4739$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4740 4741 4742 4743 4744 4745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4746$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4747if ${lt_cv_to_tool_file_cmd+:} false; then : 4748 $as_echo_n "(cached) " >&6 4749else 4750 #assume ordinary cross tools, or native build. 4751lt_cv_to_tool_file_cmd=func_convert_file_noop 4752case $host in 4753 *-*-mingw* ) 4754 case $build in 4755 *-*-mingw* ) # actually msys 4756 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4757 ;; 4758 esac 4759 ;; 4760esac 4761 4762fi 4763 4764to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4765{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4766$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4767 4768 4769 4770 4771 4772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4773$as_echo_n "checking for $LD option to reload object files... " >&6; } 4774if ${lt_cv_ld_reload_flag+:} false; then : 4775 $as_echo_n "(cached) " >&6 4776else 4777 lt_cv_ld_reload_flag='-r' 4778fi 4779{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4780$as_echo "$lt_cv_ld_reload_flag" >&6; } 4781reload_flag=$lt_cv_ld_reload_flag 4782case $reload_flag in 4783"" | " "*) ;; 4784*) reload_flag=" $reload_flag" ;; 4785esac 4786reload_cmds='$LD$reload_flag -o $output$reload_objs' 4787case $host_os in 4788 cygwin* | mingw* | pw32* | cegcc*) 4789 if test "$GCC" != yes; then 4790 reload_cmds=false 4791 fi 4792 ;; 4793 darwin*) 4794 if test "$GCC" = yes; then 4795 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4796 else 4797 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4798 fi 4799 ;; 4800esac 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810if test -n "$ac_tool_prefix"; then 4811 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4812set dummy ${ac_tool_prefix}objdump; ac_word=$2 4813{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4814$as_echo_n "checking for $ac_word... " >&6; } 4815if ${ac_cv_prog_OBJDUMP+:} false; then : 4816 $as_echo_n "(cached) " >&6 4817else 4818 if test -n "$OBJDUMP"; then 4819 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4820else 4821as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4822for as_dir in $PATH 4823do 4824 IFS=$as_save_IFS 4825 test -z "$as_dir" && as_dir=. 4826 for ac_exec_ext in '' $ac_executable_extensions; do 4827 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4828 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4830 break 2 4831 fi 4832done 4833 done 4834IFS=$as_save_IFS 4835 4836fi 4837fi 4838OBJDUMP=$ac_cv_prog_OBJDUMP 4839if test -n "$OBJDUMP"; then 4840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4841$as_echo "$OBJDUMP" >&6; } 4842else 4843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4844$as_echo "no" >&6; } 4845fi 4846 4847 4848fi 4849if test -z "$ac_cv_prog_OBJDUMP"; then 4850 ac_ct_OBJDUMP=$OBJDUMP 4851 # Extract the first word of "objdump", so it can be a program name with args. 4852set dummy objdump; ac_word=$2 4853{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4854$as_echo_n "checking for $ac_word... " >&6; } 4855if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4856 $as_echo_n "(cached) " >&6 4857else 4858 if test -n "$ac_ct_OBJDUMP"; then 4859 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4860else 4861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4862for as_dir in $PATH 4863do 4864 IFS=$as_save_IFS 4865 test -z "$as_dir" && as_dir=. 4866 for ac_exec_ext in '' $ac_executable_extensions; do 4867 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4868 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4869 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4870 break 2 4871 fi 4872done 4873 done 4874IFS=$as_save_IFS 4875 4876fi 4877fi 4878ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4879if test -n "$ac_ct_OBJDUMP"; then 4880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4881$as_echo "$ac_ct_OBJDUMP" >&6; } 4882else 4883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4884$as_echo "no" >&6; } 4885fi 4886 4887 if test "x$ac_ct_OBJDUMP" = x; then 4888 OBJDUMP="false" 4889 else 4890 case $cross_compiling:$ac_tool_warned in 4891yes:) 4892{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4893$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4894ac_tool_warned=yes ;; 4895esac 4896 OBJDUMP=$ac_ct_OBJDUMP 4897 fi 4898else 4899 OBJDUMP="$ac_cv_prog_OBJDUMP" 4900fi 4901 4902test -z "$OBJDUMP" && OBJDUMP=objdump 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4913$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4914if ${lt_cv_deplibs_check_method+:} false; then : 4915 $as_echo_n "(cached) " >&6 4916else 4917 lt_cv_file_magic_cmd='$MAGIC_CMD' 4918lt_cv_file_magic_test_file= 4919lt_cv_deplibs_check_method='unknown' 4920# Need to set the preceding variable on all platforms that support 4921# interlibrary dependencies. 4922# 'none' -- dependencies not supported. 4923# `unknown' -- same as none, but documents that we really don't know. 4924# 'pass_all' -- all dependencies passed with no checks. 4925# 'test_compile' -- check by making test program. 4926# 'file_magic [[regex]]' -- check by looking for files in library path 4927# which responds to the $file_magic_cmd with a given extended regex. 4928# If you have `file' or equivalent on your system and you're not sure 4929# whether `pass_all' will *always* work, you probably want this one. 4930 4931case $host_os in 4932aix[4-9]*) 4933 lt_cv_deplibs_check_method=pass_all 4934 ;; 4935 4936beos*) 4937 lt_cv_deplibs_check_method=pass_all 4938 ;; 4939 4940bsdi[45]*) 4941 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4942 lt_cv_file_magic_cmd='/usr/bin/file -L' 4943 lt_cv_file_magic_test_file=/shlib/libc.so 4944 ;; 4945 4946cygwin*) 4947 # func_win32_libid is a shell function defined in ltmain.sh 4948 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4949 lt_cv_file_magic_cmd='func_win32_libid' 4950 ;; 4951 4952mingw* | pw32*) 4953 # Base MSYS/MinGW do not provide the 'file' command needed by 4954 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4955 # unless we find 'file', for example because we are cross-compiling. 4956 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 4957 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 4958 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4959 lt_cv_file_magic_cmd='func_win32_libid' 4960 else 4961 # Keep this pattern in sync with the one in func_win32_libid. 4962 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4963 lt_cv_file_magic_cmd='$OBJDUMP -f' 4964 fi 4965 ;; 4966 4967cegcc*) 4968 # use the weaker test based on 'objdump'. See mingw*. 4969 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4970 lt_cv_file_magic_cmd='$OBJDUMP -f' 4971 ;; 4972 4973darwin* | rhapsody*) 4974 lt_cv_deplibs_check_method=pass_all 4975 ;; 4976 4977freebsd* | dragonfly*) 4978 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4979 case $host_cpu in 4980 i*86 ) 4981 # Not sure whether the presence of OpenBSD here was a mistake. 4982 # Let's accept both of them until this is cleared up. 4983 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4984 lt_cv_file_magic_cmd=/usr/bin/file 4985 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4986 ;; 4987 esac 4988 else 4989 lt_cv_deplibs_check_method=pass_all 4990 fi 4991 ;; 4992 4993gnu*) 4994 lt_cv_deplibs_check_method=pass_all 4995 ;; 4996 4997haiku*) 4998 lt_cv_deplibs_check_method=pass_all 4999 ;; 5000 5001hpux10.20* | hpux11*) 5002 lt_cv_file_magic_cmd=/usr/bin/file 5003 case $host_cpu in 5004 ia64*) 5005 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5006 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5007 ;; 5008 hppa*64*) 5009 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]' 5010 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5011 ;; 5012 *) 5013 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5014 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5015 ;; 5016 esac 5017 ;; 5018 5019interix[3-9]*) 5020 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5021 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5022 ;; 5023 5024irix5* | irix6* | nonstopux*) 5025 case $LD in 5026 *-32|*"-32 ") libmagic=32-bit;; 5027 *-n32|*"-n32 ") libmagic=N32;; 5028 *-64|*"-64 ") libmagic=64-bit;; 5029 *) libmagic=never-match;; 5030 esac 5031 lt_cv_deplibs_check_method=pass_all 5032 ;; 5033 5034# This must be Linux ELF. 5035linux* | k*bsd*-gnu | kopensolaris*-gnu) 5036 lt_cv_deplibs_check_method=pass_all 5037 ;; 5038 5039netbsd*) 5040 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5041 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5042 else 5043 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5044 fi 5045 ;; 5046 5047newos6*) 5048 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5049 lt_cv_file_magic_cmd=/usr/bin/file 5050 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5051 ;; 5052 5053*nto* | *qnx*) 5054 lt_cv_deplibs_check_method=pass_all 5055 ;; 5056 5057openbsd*) 5058 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5059 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5060 else 5061 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5062 fi 5063 ;; 5064 5065osf3* | osf4* | osf5*) 5066 lt_cv_deplibs_check_method=pass_all 5067 ;; 5068 5069rdos*) 5070 lt_cv_deplibs_check_method=pass_all 5071 ;; 5072 5073solaris*) 5074 lt_cv_deplibs_check_method=pass_all 5075 ;; 5076 5077sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5078 lt_cv_deplibs_check_method=pass_all 5079 ;; 5080 5081sysv4 | sysv4.3*) 5082 case $host_vendor in 5083 motorola) 5084 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]' 5085 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5086 ;; 5087 ncr) 5088 lt_cv_deplibs_check_method=pass_all 5089 ;; 5090 sequent) 5091 lt_cv_file_magic_cmd='/bin/file' 5092 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5093 ;; 5094 sni) 5095 lt_cv_file_magic_cmd='/bin/file' 5096 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5097 lt_cv_file_magic_test_file=/lib/libc.so 5098 ;; 5099 siemens) 5100 lt_cv_deplibs_check_method=pass_all 5101 ;; 5102 pc) 5103 lt_cv_deplibs_check_method=pass_all 5104 ;; 5105 esac 5106 ;; 5107 5108tpf*) 5109 lt_cv_deplibs_check_method=pass_all 5110 ;; 5111esac 5112 5113fi 5114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5115$as_echo "$lt_cv_deplibs_check_method" >&6; } 5116 5117file_magic_glob= 5118want_nocaseglob=no 5119if test "$build" = "$host"; then 5120 case $host_os in 5121 mingw* | pw32*) 5122 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5123 want_nocaseglob=yes 5124 else 5125 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5126 fi 5127 ;; 5128 esac 5129fi 5130 5131file_magic_cmd=$lt_cv_file_magic_cmd 5132deplibs_check_method=$lt_cv_deplibs_check_method 5133test -z "$deplibs_check_method" && deplibs_check_method=unknown 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156if test -n "$ac_tool_prefix"; then 5157 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5158set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5160$as_echo_n "checking for $ac_word... " >&6; } 5161if ${ac_cv_prog_DLLTOOL+:} false; then : 5162 $as_echo_n "(cached) " >&6 5163else 5164 if test -n "$DLLTOOL"; then 5165 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5166else 5167as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5168for as_dir in $PATH 5169do 5170 IFS=$as_save_IFS 5171 test -z "$as_dir" && as_dir=. 5172 for ac_exec_ext in '' $ac_executable_extensions; do 5173 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5174 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5176 break 2 5177 fi 5178done 5179 done 5180IFS=$as_save_IFS 5181 5182fi 5183fi 5184DLLTOOL=$ac_cv_prog_DLLTOOL 5185if test -n "$DLLTOOL"; then 5186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5187$as_echo "$DLLTOOL" >&6; } 5188else 5189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5190$as_echo "no" >&6; } 5191fi 5192 5193 5194fi 5195if test -z "$ac_cv_prog_DLLTOOL"; then 5196 ac_ct_DLLTOOL=$DLLTOOL 5197 # Extract the first word of "dlltool", so it can be a program name with args. 5198set dummy dlltool; ac_word=$2 5199{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5200$as_echo_n "checking for $ac_word... " >&6; } 5201if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5202 $as_echo_n "(cached) " >&6 5203else 5204 if test -n "$ac_ct_DLLTOOL"; then 5205 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5206else 5207as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5208for as_dir in $PATH 5209do 5210 IFS=$as_save_IFS 5211 test -z "$as_dir" && as_dir=. 5212 for ac_exec_ext in '' $ac_executable_extensions; do 5213 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5214 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5215 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5216 break 2 5217 fi 5218done 5219 done 5220IFS=$as_save_IFS 5221 5222fi 5223fi 5224ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5225if test -n "$ac_ct_DLLTOOL"; then 5226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5227$as_echo "$ac_ct_DLLTOOL" >&6; } 5228else 5229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5230$as_echo "no" >&6; } 5231fi 5232 5233 if test "x$ac_ct_DLLTOOL" = x; then 5234 DLLTOOL="false" 5235 else 5236 case $cross_compiling:$ac_tool_warned in 5237yes:) 5238{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5239$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5240ac_tool_warned=yes ;; 5241esac 5242 DLLTOOL=$ac_ct_DLLTOOL 5243 fi 5244else 5245 DLLTOOL="$ac_cv_prog_DLLTOOL" 5246fi 5247 5248test -z "$DLLTOOL" && DLLTOOL=dlltool 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5260$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5261if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5262 $as_echo_n "(cached) " >&6 5263else 5264 lt_cv_sharedlib_from_linklib_cmd='unknown' 5265 5266case $host_os in 5267cygwin* | mingw* | pw32* | cegcc*) 5268 # two different shell functions defined in ltmain.sh 5269 # decide which to use based on capabilities of $DLLTOOL 5270 case `$DLLTOOL --help 2>&1` in 5271 *--identify-strict*) 5272 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5273 ;; 5274 *) 5275 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5276 ;; 5277 esac 5278 ;; 5279*) 5280 # fallback: assume linklib IS sharedlib 5281 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5282 ;; 5283esac 5284 5285fi 5286{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5287$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5288sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5289test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5290 5291 5292 5293 5294 5295 5296 5297 5298if test -n "$ac_tool_prefix"; then 5299 for ac_prog in ar 5300 do 5301 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5302set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5304$as_echo_n "checking for $ac_word... " >&6; } 5305if ${ac_cv_prog_AR+:} false; then : 5306 $as_echo_n "(cached) " >&6 5307else 5308 if test -n "$AR"; then 5309 ac_cv_prog_AR="$AR" # Let the user override the test. 5310else 5311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5312for as_dir in $PATH 5313do 5314 IFS=$as_save_IFS 5315 test -z "$as_dir" && as_dir=. 5316 for ac_exec_ext in '' $ac_executable_extensions; do 5317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5318 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5320 break 2 5321 fi 5322done 5323 done 5324IFS=$as_save_IFS 5325 5326fi 5327fi 5328AR=$ac_cv_prog_AR 5329if test -n "$AR"; then 5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5331$as_echo "$AR" >&6; } 5332else 5333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5334$as_echo "no" >&6; } 5335fi 5336 5337 5338 test -n "$AR" && break 5339 done 5340fi 5341if test -z "$AR"; then 5342 ac_ct_AR=$AR 5343 for ac_prog in ar 5344do 5345 # Extract the first word of "$ac_prog", so it can be a program name with args. 5346set dummy $ac_prog; ac_word=$2 5347{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5348$as_echo_n "checking for $ac_word... " >&6; } 5349if ${ac_cv_prog_ac_ct_AR+:} false; then : 5350 $as_echo_n "(cached) " >&6 5351else 5352 if test -n "$ac_ct_AR"; then 5353 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5354else 5355as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5356for as_dir in $PATH 5357do 5358 IFS=$as_save_IFS 5359 test -z "$as_dir" && as_dir=. 5360 for ac_exec_ext in '' $ac_executable_extensions; do 5361 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5362 ac_cv_prog_ac_ct_AR="$ac_prog" 5363 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5364 break 2 5365 fi 5366done 5367 done 5368IFS=$as_save_IFS 5369 5370fi 5371fi 5372ac_ct_AR=$ac_cv_prog_ac_ct_AR 5373if test -n "$ac_ct_AR"; then 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5375$as_echo "$ac_ct_AR" >&6; } 5376else 5377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5378$as_echo "no" >&6; } 5379fi 5380 5381 5382 test -n "$ac_ct_AR" && break 5383done 5384 5385 if test "x$ac_ct_AR" = x; then 5386 AR="false" 5387 else 5388 case $cross_compiling:$ac_tool_warned in 5389yes:) 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5392ac_tool_warned=yes ;; 5393esac 5394 AR=$ac_ct_AR 5395 fi 5396fi 5397 5398: ${AR=ar} 5399: ${AR_FLAGS=cru} 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5412$as_echo_n "checking for archiver @FILE support... " >&6; } 5413if ${lt_cv_ar_at_file+:} false; then : 5414 $as_echo_n "(cached) " >&6 5415else 5416 lt_cv_ar_at_file=no 5417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5418/* end confdefs.h. */ 5419 5420int 5421main () 5422{ 5423 5424 ; 5425 return 0; 5426} 5427_ACEOF 5428if ac_fn_c_try_compile "$LINENO"; then : 5429 echo conftest.$ac_objext > conftest.lst 5430 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5431 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5432 (eval $lt_ar_try) 2>&5 5433 ac_status=$? 5434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5435 test $ac_status = 0; } 5436 if test "$ac_status" -eq 0; then 5437 # Ensure the archiver fails upon bogus file names. 5438 rm -f conftest.$ac_objext libconftest.a 5439 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5440 (eval $lt_ar_try) 2>&5 5441 ac_status=$? 5442 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5443 test $ac_status = 0; } 5444 if test "$ac_status" -ne 0; then 5445 lt_cv_ar_at_file=@ 5446 fi 5447 fi 5448 rm -f conftest.* libconftest.a 5449 5450fi 5451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5452 5453fi 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5455$as_echo "$lt_cv_ar_at_file" >&6; } 5456 5457if test "x$lt_cv_ar_at_file" = xno; then 5458 archiver_list_spec= 5459else 5460 archiver_list_spec=$lt_cv_ar_at_file 5461fi 5462 5463 5464 5465 5466 5467 5468 5469if test -n "$ac_tool_prefix"; then 5470 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5471set dummy ${ac_tool_prefix}strip; ac_word=$2 5472{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5473$as_echo_n "checking for $ac_word... " >&6; } 5474if ${ac_cv_prog_STRIP+:} false; then : 5475 $as_echo_n "(cached) " >&6 5476else 5477 if test -n "$STRIP"; then 5478 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5479else 5480as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5481for as_dir in $PATH 5482do 5483 IFS=$as_save_IFS 5484 test -z "$as_dir" && as_dir=. 5485 for ac_exec_ext in '' $ac_executable_extensions; do 5486 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5487 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5489 break 2 5490 fi 5491done 5492 done 5493IFS=$as_save_IFS 5494 5495fi 5496fi 5497STRIP=$ac_cv_prog_STRIP 5498if test -n "$STRIP"; then 5499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5500$as_echo "$STRIP" >&6; } 5501else 5502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5503$as_echo "no" >&6; } 5504fi 5505 5506 5507fi 5508if test -z "$ac_cv_prog_STRIP"; then 5509 ac_ct_STRIP=$STRIP 5510 # Extract the first word of "strip", so it can be a program name with args. 5511set dummy strip; ac_word=$2 5512{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5513$as_echo_n "checking for $ac_word... " >&6; } 5514if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5515 $as_echo_n "(cached) " >&6 5516else 5517 if test -n "$ac_ct_STRIP"; then 5518 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5519else 5520as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5521for as_dir in $PATH 5522do 5523 IFS=$as_save_IFS 5524 test -z "$as_dir" && as_dir=. 5525 for ac_exec_ext in '' $ac_executable_extensions; do 5526 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5527 ac_cv_prog_ac_ct_STRIP="strip" 5528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5529 break 2 5530 fi 5531done 5532 done 5533IFS=$as_save_IFS 5534 5535fi 5536fi 5537ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5538if test -n "$ac_ct_STRIP"; then 5539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5540$as_echo "$ac_ct_STRIP" >&6; } 5541else 5542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5543$as_echo "no" >&6; } 5544fi 5545 5546 if test "x$ac_ct_STRIP" = x; then 5547 STRIP=":" 5548 else 5549 case $cross_compiling:$ac_tool_warned in 5550yes:) 5551{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5552$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5553ac_tool_warned=yes ;; 5554esac 5555 STRIP=$ac_ct_STRIP 5556 fi 5557else 5558 STRIP="$ac_cv_prog_STRIP" 5559fi 5560 5561test -z "$STRIP" && STRIP=: 5562 5563 5564 5565 5566 5567 5568if test -n "$ac_tool_prefix"; then 5569 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5570set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5571{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5572$as_echo_n "checking for $ac_word... " >&6; } 5573if ${ac_cv_prog_RANLIB+:} false; then : 5574 $as_echo_n "(cached) " >&6 5575else 5576 if test -n "$RANLIB"; then 5577 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5578else 5579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5580for as_dir in $PATH 5581do 5582 IFS=$as_save_IFS 5583 test -z "$as_dir" && as_dir=. 5584 for ac_exec_ext in '' $ac_executable_extensions; do 5585 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5586 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5587 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5588 break 2 5589 fi 5590done 5591 done 5592IFS=$as_save_IFS 5593 5594fi 5595fi 5596RANLIB=$ac_cv_prog_RANLIB 5597if test -n "$RANLIB"; then 5598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5599$as_echo "$RANLIB" >&6; } 5600else 5601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5602$as_echo "no" >&6; } 5603fi 5604 5605 5606fi 5607if test -z "$ac_cv_prog_RANLIB"; then 5608 ac_ct_RANLIB=$RANLIB 5609 # Extract the first word of "ranlib", so it can be a program name with args. 5610set dummy ranlib; ac_word=$2 5611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5612$as_echo_n "checking for $ac_word... " >&6; } 5613if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5614 $as_echo_n "(cached) " >&6 5615else 5616 if test -n "$ac_ct_RANLIB"; then 5617 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5618else 5619as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5620for as_dir in $PATH 5621do 5622 IFS=$as_save_IFS 5623 test -z "$as_dir" && as_dir=. 5624 for ac_exec_ext in '' $ac_executable_extensions; do 5625 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5626 ac_cv_prog_ac_ct_RANLIB="ranlib" 5627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5628 break 2 5629 fi 5630done 5631 done 5632IFS=$as_save_IFS 5633 5634fi 5635fi 5636ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5637if test -n "$ac_ct_RANLIB"; then 5638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5639$as_echo "$ac_ct_RANLIB" >&6; } 5640else 5641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5642$as_echo "no" >&6; } 5643fi 5644 5645 if test "x$ac_ct_RANLIB" = x; then 5646 RANLIB=":" 5647 else 5648 case $cross_compiling:$ac_tool_warned in 5649yes:) 5650{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5651$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5652ac_tool_warned=yes ;; 5653esac 5654 RANLIB=$ac_ct_RANLIB 5655 fi 5656else 5657 RANLIB="$ac_cv_prog_RANLIB" 5658fi 5659 5660test -z "$RANLIB" && RANLIB=: 5661 5662 5663 5664 5665 5666 5667# Determine commands to create old-style static archives. 5668old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5669old_postinstall_cmds='chmod 644 $oldlib' 5670old_postuninstall_cmds= 5671 5672if test -n "$RANLIB"; then 5673 case $host_os in 5674 openbsd*) 5675 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 5676 ;; 5677 *) 5678 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 5679 ;; 5680 esac 5681 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5682fi 5683 5684case $host_os in 5685 darwin*) 5686 lock_old_archive_extraction=yes ;; 5687 *) 5688 lock_old_archive_extraction=no ;; 5689esac 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729# If no C compiler was specified, use CC. 5730LTCC=${LTCC-"$CC"} 5731 5732# If no C compiler flags were specified, use CFLAGS. 5733LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5734 5735# Allow CC to be a program name with arguments. 5736compiler=$CC 5737 5738 5739# Check for command to grab the raw symbol name followed by C symbol from nm. 5740{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5741$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5742if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5743 $as_echo_n "(cached) " >&6 5744else 5745 5746# These are sane defaults that work on at least a few old systems. 5747# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5748 5749# Character class describing NM global symbol codes. 5750symcode='[BCDEGRST]' 5751 5752# Regexp to match symbols that can be accessed directly from C. 5753sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5754 5755# Define system-specific variables. 5756case $host_os in 5757aix*) 5758 symcode='[BCDT]' 5759 ;; 5760cygwin* | mingw* | pw32* | cegcc*) 5761 symcode='[ABCDGISTW]' 5762 ;; 5763hpux*) 5764 if test "$host_cpu" = ia64; then 5765 symcode='[ABCDEGRST]' 5766 fi 5767 ;; 5768irix* | nonstopux*) 5769 symcode='[BCDEGRST]' 5770 ;; 5771osf*) 5772 symcode='[BCDEGQRST]' 5773 ;; 5774solaris*) 5775 symcode='[BDRT]' 5776 ;; 5777sco3.2v5*) 5778 symcode='[DT]' 5779 ;; 5780sysv4.2uw2*) 5781 symcode='[DT]' 5782 ;; 5783sysv5* | sco5v6* | unixware* | OpenUNIX*) 5784 symcode='[ABDT]' 5785 ;; 5786sysv4) 5787 symcode='[DFNSTU]' 5788 ;; 5789esac 5790 5791# If we're using GNU nm, then use its standard symbol codes. 5792case `$NM -V 2>&1` in 5793*GNU* | *'with BFD'*) 5794 symcode='[ABCDGIRSTW]' ;; 5795esac 5796 5797# Transform an extracted symbol line into a proper C declaration. 5798# Some systems (esp. on ia64) link data and code symbols differently, 5799# so use this general approach. 5800lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5801 5802# Transform an extracted symbol line into symbol name and symbol address 5803lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5804lt_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'" 5805 5806# Handle CRLF in mingw tool chain 5807opt_cr= 5808case $build_os in 5809mingw*) 5810 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5811 ;; 5812esac 5813 5814# Try without a prefix underscore, then with it. 5815for ac_symprfx in "" "_"; do 5816 5817 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5818 symxfrm="\\1 $ac_symprfx\\2 \\2" 5819 5820 # Write the raw and C identifiers. 5821 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5822 # Fake it for dumpbin and say T for any non-static function 5823 # and D for any global variable. 5824 # Also find C++ and __fastcall symbols from MSVC++, 5825 # which start with @ or ?. 5826 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5827" {last_section=section; section=\$ 3};"\ 5828" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5829" \$ 0!~/External *\|/{next};"\ 5830" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5831" {if(hide[section]) next};"\ 5832" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5833" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5834" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5835" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5836" ' prfx=^$ac_symprfx" 5837 else 5838 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5839 fi 5840 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5841 5842 # Check to see that the pipe works correctly. 5843 pipe_works=no 5844 5845 rm -f conftest* 5846 cat > conftest.$ac_ext <<_LT_EOF 5847#ifdef __cplusplus 5848extern "C" { 5849#endif 5850char nm_test_var; 5851void nm_test_func(void); 5852void nm_test_func(void){} 5853#ifdef __cplusplus 5854} 5855#endif 5856int main(){nm_test_var='a';nm_test_func();return(0);} 5857_LT_EOF 5858 5859 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5860 (eval $ac_compile) 2>&5 5861 ac_status=$? 5862 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5863 test $ac_status = 0; }; then 5864 # Now try to grab the symbols. 5865 nlist=conftest.nm 5866 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5867 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5868 ac_status=$? 5869 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5870 test $ac_status = 0; } && test -s "$nlist"; then 5871 # Try sorting and uniquifying the output. 5872 if sort "$nlist" | uniq > "$nlist"T; then 5873 mv -f "$nlist"T "$nlist" 5874 else 5875 rm -f "$nlist"T 5876 fi 5877 5878 # Make sure that we snagged all the symbols we need. 5879 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5880 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5881 cat <<_LT_EOF > conftest.$ac_ext 5882/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5883#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 5884/* DATA imports from DLLs on WIN32 con't be const, because runtime 5885 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5886# define LT_DLSYM_CONST 5887#elif defined(__osf__) 5888/* This system does not cope well with relocations in const data. */ 5889# define LT_DLSYM_CONST 5890#else 5891# define LT_DLSYM_CONST const 5892#endif 5893 5894#ifdef __cplusplus 5895extern "C" { 5896#endif 5897 5898_LT_EOF 5899 # Now generate the symbol file. 5900 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5901 5902 cat <<_LT_EOF >> conftest.$ac_ext 5903 5904/* The mapping between symbol names and symbols. */ 5905LT_DLSYM_CONST struct { 5906 const char *name; 5907 void *address; 5908} 5909lt__PROGRAM__LTX_preloaded_symbols[] = 5910{ 5911 { "@PROGRAM@", (void *) 0 }, 5912_LT_EOF 5913 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5914 cat <<\_LT_EOF >> conftest.$ac_ext 5915 {0, (void *) 0} 5916}; 5917 5918/* This works around a problem in FreeBSD linker */ 5919#ifdef FREEBSD_WORKAROUND 5920static const void *lt_preloaded_setup() { 5921 return lt__PROGRAM__LTX_preloaded_symbols; 5922} 5923#endif 5924 5925#ifdef __cplusplus 5926} 5927#endif 5928_LT_EOF 5929 # Now try linking the two files. 5930 mv conftest.$ac_objext conftstm.$ac_objext 5931 lt_globsym_save_LIBS=$LIBS 5932 lt_globsym_save_CFLAGS=$CFLAGS 5933 LIBS="conftstm.$ac_objext" 5934 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5935 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5936 (eval $ac_link) 2>&5 5937 ac_status=$? 5938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5939 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 5940 pipe_works=yes 5941 fi 5942 LIBS=$lt_globsym_save_LIBS 5943 CFLAGS=$lt_globsym_save_CFLAGS 5944 else 5945 echo "cannot find nm_test_func in $nlist" >&5 5946 fi 5947 else 5948 echo "cannot find nm_test_var in $nlist" >&5 5949 fi 5950 else 5951 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5952 fi 5953 else 5954 echo "$progname: failed program was:" >&5 5955 cat conftest.$ac_ext >&5 5956 fi 5957 rm -rf conftest* conftst* 5958 5959 # Do not use the global_symbol_pipe unless it works. 5960 if test "$pipe_works" = yes; then 5961 break 5962 else 5963 lt_cv_sys_global_symbol_pipe= 5964 fi 5965done 5966 5967fi 5968 5969if test -z "$lt_cv_sys_global_symbol_pipe"; then 5970 lt_cv_sys_global_symbol_to_cdecl= 5971fi 5972if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5974$as_echo "failed" >&6; } 5975else 5976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5977$as_echo "ok" >&6; } 5978fi 5979 5980# Response file support. 5981if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5982 nm_file_list_spec='@' 5983elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5984 nm_file_list_spec='@' 5985fi 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6014$as_echo_n "checking for sysroot... " >&6; } 6015 6016# Check whether --with-sysroot was given. 6017if test "${with_sysroot+set}" = set; then : 6018 withval=$with_sysroot; 6019else 6020 with_sysroot=no 6021fi 6022 6023 6024lt_sysroot= 6025case ${with_sysroot} in #( 6026 yes) 6027 if test "$GCC" = yes; then 6028 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6029 fi 6030 ;; #( 6031 /*) 6032 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6033 ;; #( 6034 no|'') 6035 ;; #( 6036 *) 6037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6038$as_echo "${with_sysroot}" >&6; } 6039 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6040 ;; 6041esac 6042 6043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6044$as_echo "${lt_sysroot:-no}" >&6; } 6045 6046 6047 6048 6049 6050# Check whether --enable-libtool-lock was given. 6051if test "${enable_libtool_lock+set}" = set; then : 6052 enableval=$enable_libtool_lock; 6053fi 6054 6055test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6056 6057# Some flags need to be propagated to the compiler or linker for good 6058# libtool support. 6059case $host in 6060ia64-*-hpux*) 6061 # Find out which ABI we are using. 6062 echo 'int i;' > conftest.$ac_ext 6063 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6064 (eval $ac_compile) 2>&5 6065 ac_status=$? 6066 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6067 test $ac_status = 0; }; then 6068 case `/usr/bin/file conftest.$ac_objext` in 6069 *ELF-32*) 6070 HPUX_IA64_MODE="32" 6071 ;; 6072 *ELF-64*) 6073 HPUX_IA64_MODE="64" 6074 ;; 6075 esac 6076 fi 6077 rm -rf conftest* 6078 ;; 6079*-*-irix6*) 6080 # Find out which ABI we are using. 6081 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6082 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6083 (eval $ac_compile) 2>&5 6084 ac_status=$? 6085 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6086 test $ac_status = 0; }; then 6087 if test "$lt_cv_prog_gnu_ld" = yes; then 6088 case `/usr/bin/file conftest.$ac_objext` in 6089 *32-bit*) 6090 LD="${LD-ld} -melf32bsmip" 6091 ;; 6092 *N32*) 6093 LD="${LD-ld} -melf32bmipn32" 6094 ;; 6095 *64-bit*) 6096 LD="${LD-ld} -melf64bmip" 6097 ;; 6098 esac 6099 else 6100 case `/usr/bin/file conftest.$ac_objext` in 6101 *32-bit*) 6102 LD="${LD-ld} -32" 6103 ;; 6104 *N32*) 6105 LD="${LD-ld} -n32" 6106 ;; 6107 *64-bit*) 6108 LD="${LD-ld} -64" 6109 ;; 6110 esac 6111 fi 6112 fi 6113 rm -rf conftest* 6114 ;; 6115 6116x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6117s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6118 # Find out which ABI we are using. 6119 echo 'int i;' > conftest.$ac_ext 6120 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6121 (eval $ac_compile) 2>&5 6122 ac_status=$? 6123 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6124 test $ac_status = 0; }; then 6125 case `/usr/bin/file conftest.o` in 6126 *32-bit*) 6127 case $host in 6128 x86_64-*kfreebsd*-gnu) 6129 LD="${LD-ld} -m elf_i386_fbsd" 6130 ;; 6131 x86_64-*linux*) 6132 LD="${LD-ld} -m elf_i386" 6133 ;; 6134 ppc64-*linux*|powerpc64-*linux*) 6135 LD="${LD-ld} -m elf32ppclinux" 6136 ;; 6137 s390x-*linux*) 6138 LD="${LD-ld} -m elf_s390" 6139 ;; 6140 sparc64-*linux*) 6141 LD="${LD-ld} -m elf32_sparc" 6142 ;; 6143 esac 6144 ;; 6145 *64-bit*) 6146 case $host in 6147 x86_64-*kfreebsd*-gnu) 6148 LD="${LD-ld} -m elf_x86_64_fbsd" 6149 ;; 6150 x86_64-*linux*) 6151 LD="${LD-ld} -m elf_x86_64" 6152 ;; 6153 ppc*-*linux*|powerpc*-*linux*) 6154 LD="${LD-ld} -m elf64ppc" 6155 ;; 6156 s390*-*linux*|s390*-*tpf*) 6157 LD="${LD-ld} -m elf64_s390" 6158 ;; 6159 sparc*-*linux*) 6160 LD="${LD-ld} -m elf64_sparc" 6161 ;; 6162 esac 6163 ;; 6164 esac 6165 fi 6166 rm -rf conftest* 6167 ;; 6168 6169*-*-sco3.2v5*) 6170 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6171 SAVE_CFLAGS="$CFLAGS" 6172 CFLAGS="$CFLAGS -belf" 6173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6174$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6175if ${lt_cv_cc_needs_belf+:} false; then : 6176 $as_echo_n "(cached) " >&6 6177else 6178 ac_ext=c 6179ac_cpp='$CPP $CPPFLAGS' 6180ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6181ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6182ac_compiler_gnu=$ac_cv_c_compiler_gnu 6183 6184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6185/* end confdefs.h. */ 6186 6187int 6188main () 6189{ 6190 6191 ; 6192 return 0; 6193} 6194_ACEOF 6195if ac_fn_c_try_link "$LINENO"; then : 6196 lt_cv_cc_needs_belf=yes 6197else 6198 lt_cv_cc_needs_belf=no 6199fi 6200rm -f core conftest.err conftest.$ac_objext \ 6201 conftest$ac_exeext conftest.$ac_ext 6202 ac_ext=c 6203ac_cpp='$CPP $CPPFLAGS' 6204ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6205ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6206ac_compiler_gnu=$ac_cv_c_compiler_gnu 6207 6208fi 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6210$as_echo "$lt_cv_cc_needs_belf" >&6; } 6211 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6212 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6213 CFLAGS="$SAVE_CFLAGS" 6214 fi 6215 ;; 6216sparc*-*solaris*) 6217 # Find out which ABI we are using. 6218 echo 'int i;' > conftest.$ac_ext 6219 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6220 (eval $ac_compile) 2>&5 6221 ac_status=$? 6222 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6223 test $ac_status = 0; }; then 6224 case `/usr/bin/file conftest.o` in 6225 *64-bit*) 6226 case $lt_cv_prog_gnu_ld in 6227 yes*) LD="${LD-ld} -m elf64_sparc" ;; 6228 *) 6229 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6230 LD="${LD-ld} -64" 6231 fi 6232 ;; 6233 esac 6234 ;; 6235 esac 6236 fi 6237 rm -rf conftest* 6238 ;; 6239esac 6240 6241need_locks="$enable_libtool_lock" 6242 6243if test -n "$ac_tool_prefix"; then 6244 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6245set dummy ${ac_tool_prefix}mt; ac_word=$2 6246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6247$as_echo_n "checking for $ac_word... " >&6; } 6248if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6249 $as_echo_n "(cached) " >&6 6250else 6251 if test -n "$MANIFEST_TOOL"; then 6252 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6253else 6254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6255for as_dir in $PATH 6256do 6257 IFS=$as_save_IFS 6258 test -z "$as_dir" && as_dir=. 6259 for ac_exec_ext in '' $ac_executable_extensions; do 6260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6261 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6263 break 2 6264 fi 6265done 6266 done 6267IFS=$as_save_IFS 6268 6269fi 6270fi 6271MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6272if test -n "$MANIFEST_TOOL"; then 6273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6274$as_echo "$MANIFEST_TOOL" >&6; } 6275else 6276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6277$as_echo "no" >&6; } 6278fi 6279 6280 6281fi 6282if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6283 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6284 # Extract the first word of "mt", so it can be a program name with args. 6285set dummy mt; ac_word=$2 6286{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6287$as_echo_n "checking for $ac_word... " >&6; } 6288if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6289 $as_echo_n "(cached) " >&6 6290else 6291 if test -n "$ac_ct_MANIFEST_TOOL"; then 6292 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6293else 6294as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6295for as_dir in $PATH 6296do 6297 IFS=$as_save_IFS 6298 test -z "$as_dir" && as_dir=. 6299 for ac_exec_ext in '' $ac_executable_extensions; do 6300 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6301 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6302 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6303 break 2 6304 fi 6305done 6306 done 6307IFS=$as_save_IFS 6308 6309fi 6310fi 6311ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6312if test -n "$ac_ct_MANIFEST_TOOL"; then 6313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6314$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6315else 6316 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6317$as_echo "no" >&6; } 6318fi 6319 6320 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6321 MANIFEST_TOOL=":" 6322 else 6323 case $cross_compiling:$ac_tool_warned in 6324yes:) 6325{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6326$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6327ac_tool_warned=yes ;; 6328esac 6329 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6330 fi 6331else 6332 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6333fi 6334 6335test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6337$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6338if ${lt_cv_path_mainfest_tool+:} false; then : 6339 $as_echo_n "(cached) " >&6 6340else 6341 lt_cv_path_mainfest_tool=no 6342 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6343 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6344 cat conftest.err >&5 6345 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6346 lt_cv_path_mainfest_tool=yes 6347 fi 6348 rm -f conftest* 6349fi 6350{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6351$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6352if test "x$lt_cv_path_mainfest_tool" != xyes; then 6353 MANIFEST_TOOL=: 6354fi 6355 6356 6357 6358 6359 6360 6361 case $host_os in 6362 rhapsody* | darwin*) 6363 if test -n "$ac_tool_prefix"; then 6364 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6365set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6367$as_echo_n "checking for $ac_word... " >&6; } 6368if ${ac_cv_prog_DSYMUTIL+:} false; then : 6369 $as_echo_n "(cached) " >&6 6370else 6371 if test -n "$DSYMUTIL"; then 6372 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6373else 6374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6375for as_dir in $PATH 6376do 6377 IFS=$as_save_IFS 6378 test -z "$as_dir" && as_dir=. 6379 for ac_exec_ext in '' $ac_executable_extensions; do 6380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6381 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6383 break 2 6384 fi 6385done 6386 done 6387IFS=$as_save_IFS 6388 6389fi 6390fi 6391DSYMUTIL=$ac_cv_prog_DSYMUTIL 6392if test -n "$DSYMUTIL"; then 6393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6394$as_echo "$DSYMUTIL" >&6; } 6395else 6396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6397$as_echo "no" >&6; } 6398fi 6399 6400 6401fi 6402if test -z "$ac_cv_prog_DSYMUTIL"; then 6403 ac_ct_DSYMUTIL=$DSYMUTIL 6404 # Extract the first word of "dsymutil", so it can be a program name with args. 6405set dummy dsymutil; ac_word=$2 6406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6407$as_echo_n "checking for $ac_word... " >&6; } 6408if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6409 $as_echo_n "(cached) " >&6 6410else 6411 if test -n "$ac_ct_DSYMUTIL"; then 6412 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6413else 6414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6415for as_dir in $PATH 6416do 6417 IFS=$as_save_IFS 6418 test -z "$as_dir" && as_dir=. 6419 for ac_exec_ext in '' $ac_executable_extensions; do 6420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6421 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6423 break 2 6424 fi 6425done 6426 done 6427IFS=$as_save_IFS 6428 6429fi 6430fi 6431ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6432if test -n "$ac_ct_DSYMUTIL"; then 6433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6434$as_echo "$ac_ct_DSYMUTIL" >&6; } 6435else 6436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6437$as_echo "no" >&6; } 6438fi 6439 6440 if test "x$ac_ct_DSYMUTIL" = x; then 6441 DSYMUTIL=":" 6442 else 6443 case $cross_compiling:$ac_tool_warned in 6444yes:) 6445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6447ac_tool_warned=yes ;; 6448esac 6449 DSYMUTIL=$ac_ct_DSYMUTIL 6450 fi 6451else 6452 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6453fi 6454 6455 if test -n "$ac_tool_prefix"; then 6456 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6457set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6459$as_echo_n "checking for $ac_word... " >&6; } 6460if ${ac_cv_prog_NMEDIT+:} false; then : 6461 $as_echo_n "(cached) " >&6 6462else 6463 if test -n "$NMEDIT"; then 6464 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6465else 6466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6467for as_dir in $PATH 6468do 6469 IFS=$as_save_IFS 6470 test -z "$as_dir" && as_dir=. 6471 for ac_exec_ext in '' $ac_executable_extensions; do 6472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6473 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6475 break 2 6476 fi 6477done 6478 done 6479IFS=$as_save_IFS 6480 6481fi 6482fi 6483NMEDIT=$ac_cv_prog_NMEDIT 6484if test -n "$NMEDIT"; then 6485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6486$as_echo "$NMEDIT" >&6; } 6487else 6488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6489$as_echo "no" >&6; } 6490fi 6491 6492 6493fi 6494if test -z "$ac_cv_prog_NMEDIT"; then 6495 ac_ct_NMEDIT=$NMEDIT 6496 # Extract the first word of "nmedit", so it can be a program name with args. 6497set dummy nmedit; ac_word=$2 6498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6499$as_echo_n "checking for $ac_word... " >&6; } 6500if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6501 $as_echo_n "(cached) " >&6 6502else 6503 if test -n "$ac_ct_NMEDIT"; then 6504 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6505else 6506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6507for as_dir in $PATH 6508do 6509 IFS=$as_save_IFS 6510 test -z "$as_dir" && as_dir=. 6511 for ac_exec_ext in '' $ac_executable_extensions; do 6512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6513 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6515 break 2 6516 fi 6517done 6518 done 6519IFS=$as_save_IFS 6520 6521fi 6522fi 6523ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6524if test -n "$ac_ct_NMEDIT"; then 6525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6526$as_echo "$ac_ct_NMEDIT" >&6; } 6527else 6528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6529$as_echo "no" >&6; } 6530fi 6531 6532 if test "x$ac_ct_NMEDIT" = x; then 6533 NMEDIT=":" 6534 else 6535 case $cross_compiling:$ac_tool_warned in 6536yes:) 6537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6539ac_tool_warned=yes ;; 6540esac 6541 NMEDIT=$ac_ct_NMEDIT 6542 fi 6543else 6544 NMEDIT="$ac_cv_prog_NMEDIT" 6545fi 6546 6547 if test -n "$ac_tool_prefix"; then 6548 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6549set dummy ${ac_tool_prefix}lipo; ac_word=$2 6550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6551$as_echo_n "checking for $ac_word... " >&6; } 6552if ${ac_cv_prog_LIPO+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 if test -n "$LIPO"; then 6556 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6557else 6558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6559for as_dir in $PATH 6560do 6561 IFS=$as_save_IFS 6562 test -z "$as_dir" && as_dir=. 6563 for ac_exec_ext in '' $ac_executable_extensions; do 6564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6565 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6567 break 2 6568 fi 6569done 6570 done 6571IFS=$as_save_IFS 6572 6573fi 6574fi 6575LIPO=$ac_cv_prog_LIPO 6576if test -n "$LIPO"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6578$as_echo "$LIPO" >&6; } 6579else 6580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6581$as_echo "no" >&6; } 6582fi 6583 6584 6585fi 6586if test -z "$ac_cv_prog_LIPO"; then 6587 ac_ct_LIPO=$LIPO 6588 # Extract the first word of "lipo", so it can be a program name with args. 6589set dummy lipo; ac_word=$2 6590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6591$as_echo_n "checking for $ac_word... " >&6; } 6592if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 if test -n "$ac_ct_LIPO"; then 6596 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6597else 6598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6599for as_dir in $PATH 6600do 6601 IFS=$as_save_IFS 6602 test -z "$as_dir" && as_dir=. 6603 for ac_exec_ext in '' $ac_executable_extensions; do 6604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6605 ac_cv_prog_ac_ct_LIPO="lipo" 6606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6607 break 2 6608 fi 6609done 6610 done 6611IFS=$as_save_IFS 6612 6613fi 6614fi 6615ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6616if test -n "$ac_ct_LIPO"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6618$as_echo "$ac_ct_LIPO" >&6; } 6619else 6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6621$as_echo "no" >&6; } 6622fi 6623 6624 if test "x$ac_ct_LIPO" = x; then 6625 LIPO=":" 6626 else 6627 case $cross_compiling:$ac_tool_warned in 6628yes:) 6629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6631ac_tool_warned=yes ;; 6632esac 6633 LIPO=$ac_ct_LIPO 6634 fi 6635else 6636 LIPO="$ac_cv_prog_LIPO" 6637fi 6638 6639 if test -n "$ac_tool_prefix"; then 6640 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6641set dummy ${ac_tool_prefix}otool; ac_word=$2 6642{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6643$as_echo_n "checking for $ac_word... " >&6; } 6644if ${ac_cv_prog_OTOOL+:} false; then : 6645 $as_echo_n "(cached) " >&6 6646else 6647 if test -n "$OTOOL"; then 6648 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6649else 6650as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6651for as_dir in $PATH 6652do 6653 IFS=$as_save_IFS 6654 test -z "$as_dir" && as_dir=. 6655 for ac_exec_ext in '' $ac_executable_extensions; do 6656 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6657 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6658 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6659 break 2 6660 fi 6661done 6662 done 6663IFS=$as_save_IFS 6664 6665fi 6666fi 6667OTOOL=$ac_cv_prog_OTOOL 6668if test -n "$OTOOL"; then 6669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6670$as_echo "$OTOOL" >&6; } 6671else 6672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6673$as_echo "no" >&6; } 6674fi 6675 6676 6677fi 6678if test -z "$ac_cv_prog_OTOOL"; then 6679 ac_ct_OTOOL=$OTOOL 6680 # Extract the first word of "otool", so it can be a program name with args. 6681set dummy otool; ac_word=$2 6682{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6683$as_echo_n "checking for $ac_word... " >&6; } 6684if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6685 $as_echo_n "(cached) " >&6 6686else 6687 if test -n "$ac_ct_OTOOL"; then 6688 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6689else 6690as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6691for as_dir in $PATH 6692do 6693 IFS=$as_save_IFS 6694 test -z "$as_dir" && as_dir=. 6695 for ac_exec_ext in '' $ac_executable_extensions; do 6696 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6697 ac_cv_prog_ac_ct_OTOOL="otool" 6698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6699 break 2 6700 fi 6701done 6702 done 6703IFS=$as_save_IFS 6704 6705fi 6706fi 6707ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6708if test -n "$ac_ct_OTOOL"; then 6709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6710$as_echo "$ac_ct_OTOOL" >&6; } 6711else 6712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6713$as_echo "no" >&6; } 6714fi 6715 6716 if test "x$ac_ct_OTOOL" = x; then 6717 OTOOL=":" 6718 else 6719 case $cross_compiling:$ac_tool_warned in 6720yes:) 6721{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6722$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6723ac_tool_warned=yes ;; 6724esac 6725 OTOOL=$ac_ct_OTOOL 6726 fi 6727else 6728 OTOOL="$ac_cv_prog_OTOOL" 6729fi 6730 6731 if test -n "$ac_tool_prefix"; then 6732 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6733set dummy ${ac_tool_prefix}otool64; ac_word=$2 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6735$as_echo_n "checking for $ac_word... " >&6; } 6736if ${ac_cv_prog_OTOOL64+:} false; then : 6737 $as_echo_n "(cached) " >&6 6738else 6739 if test -n "$OTOOL64"; then 6740 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6741else 6742as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6743for as_dir in $PATH 6744do 6745 IFS=$as_save_IFS 6746 test -z "$as_dir" && as_dir=. 6747 for ac_exec_ext in '' $ac_executable_extensions; do 6748 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6749 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6750 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6751 break 2 6752 fi 6753done 6754 done 6755IFS=$as_save_IFS 6756 6757fi 6758fi 6759OTOOL64=$ac_cv_prog_OTOOL64 6760if test -n "$OTOOL64"; then 6761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6762$as_echo "$OTOOL64" >&6; } 6763else 6764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6765$as_echo "no" >&6; } 6766fi 6767 6768 6769fi 6770if test -z "$ac_cv_prog_OTOOL64"; then 6771 ac_ct_OTOOL64=$OTOOL64 6772 # Extract the first word of "otool64", so it can be a program name with args. 6773set dummy otool64; ac_word=$2 6774{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6775$as_echo_n "checking for $ac_word... " >&6; } 6776if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6777 $as_echo_n "(cached) " >&6 6778else 6779 if test -n "$ac_ct_OTOOL64"; then 6780 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6781else 6782as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6783for as_dir in $PATH 6784do 6785 IFS=$as_save_IFS 6786 test -z "$as_dir" && as_dir=. 6787 for ac_exec_ext in '' $ac_executable_extensions; do 6788 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6789 ac_cv_prog_ac_ct_OTOOL64="otool64" 6790 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6791 break 2 6792 fi 6793done 6794 done 6795IFS=$as_save_IFS 6796 6797fi 6798fi 6799ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6800if test -n "$ac_ct_OTOOL64"; then 6801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6802$as_echo "$ac_ct_OTOOL64" >&6; } 6803else 6804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6805$as_echo "no" >&6; } 6806fi 6807 6808 if test "x$ac_ct_OTOOL64" = x; then 6809 OTOOL64=":" 6810 else 6811 case $cross_compiling:$ac_tool_warned in 6812yes:) 6813{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6814$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6815ac_tool_warned=yes ;; 6816esac 6817 OTOOL64=$ac_ct_OTOOL64 6818 fi 6819else 6820 OTOOL64="$ac_cv_prog_OTOOL64" 6821fi 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6850$as_echo_n "checking for -single_module linker flag... " >&6; } 6851if ${lt_cv_apple_cc_single_mod+:} false; then : 6852 $as_echo_n "(cached) " >&6 6853else 6854 lt_cv_apple_cc_single_mod=no 6855 if test -z "${LT_MULTI_MODULE}"; then 6856 # By default we will add the -single_module flag. You can override 6857 # by either setting the environment variable LT_MULTI_MODULE 6858 # non-empty at configure time, or by adding -multi_module to the 6859 # link flags. 6860 rm -rf libconftest.dylib* 6861 echo "int foo(void){return 1;}" > conftest.c 6862 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6863-dynamiclib -Wl,-single_module conftest.c" >&5 6864 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6865 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6866 _lt_result=$? 6867 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 6868 lt_cv_apple_cc_single_mod=yes 6869 else 6870 cat conftest.err >&5 6871 fi 6872 rm -rf libconftest.dylib* 6873 rm -f conftest.* 6874 fi 6875fi 6876{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6877$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6879$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6880if ${lt_cv_ld_exported_symbols_list+:} false; then : 6881 $as_echo_n "(cached) " >&6 6882else 6883 lt_cv_ld_exported_symbols_list=no 6884 save_LDFLAGS=$LDFLAGS 6885 echo "_main" > conftest.sym 6886 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6888/* end confdefs.h. */ 6889 6890int 6891main () 6892{ 6893 6894 ; 6895 return 0; 6896} 6897_ACEOF 6898if ac_fn_c_try_link "$LINENO"; then : 6899 lt_cv_ld_exported_symbols_list=yes 6900else 6901 lt_cv_ld_exported_symbols_list=no 6902fi 6903rm -f core conftest.err conftest.$ac_objext \ 6904 conftest$ac_exeext conftest.$ac_ext 6905 LDFLAGS="$save_LDFLAGS" 6906 6907fi 6908{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6909$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6911$as_echo_n "checking for -force_load linker flag... " >&6; } 6912if ${lt_cv_ld_force_load+:} false; then : 6913 $as_echo_n "(cached) " >&6 6914else 6915 lt_cv_ld_force_load=no 6916 cat > conftest.c << _LT_EOF 6917int forced_loaded() { return 2;} 6918_LT_EOF 6919 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6920 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6921 echo "$AR cru libconftest.a conftest.o" >&5 6922 $AR cru libconftest.a conftest.o 2>&5 6923 echo "$RANLIB libconftest.a" >&5 6924 $RANLIB libconftest.a 2>&5 6925 cat > conftest.c << _LT_EOF 6926int main() { return 0;} 6927_LT_EOF 6928 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6929 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6930 _lt_result=$? 6931 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 6932 lt_cv_ld_force_load=yes 6933 else 6934 cat conftest.err >&5 6935 fi 6936 rm -f conftest.err libconftest.a conftest conftest.c 6937 rm -rf conftest.dSYM 6938 6939fi 6940{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6941$as_echo "$lt_cv_ld_force_load" >&6; } 6942 case $host_os in 6943 rhapsody* | darwin1.[012]) 6944 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 6945 darwin1.*) 6946 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6947 darwin*) # darwin 5.x on 6948 # if running on 10.5 or later, the deployment target defaults 6949 # to the OS version, if on x86, and 10.4, the deployment 6950 # target defaults to 10.4. Don't you love it? 6951 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6952 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6953 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6954 10.[012]*) 6955 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 6956 10.*) 6957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 6958 esac 6959 ;; 6960 esac 6961 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 6962 _lt_dar_single_mod='$single_module' 6963 fi 6964 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 6965 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 6966 else 6967 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 6968 fi 6969 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 6970 _lt_dsymutil='~$DSYMUTIL $lib || :' 6971 else 6972 _lt_dsymutil= 6973 fi 6974 ;; 6975 esac 6976 6977ac_ext=c 6978ac_cpp='$CPP $CPPFLAGS' 6979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6981ac_compiler_gnu=$ac_cv_c_compiler_gnu 6982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6983$as_echo_n "checking how to run the C preprocessor... " >&6; } 6984# On Suns, sometimes $CPP names a directory. 6985if test -n "$CPP" && test -d "$CPP"; then 6986 CPP= 6987fi 6988if test -z "$CPP"; then 6989 if ${ac_cv_prog_CPP+:} false; then : 6990 $as_echo_n "(cached) " >&6 6991else 6992 # Double quotes because CPP needs to be expanded 6993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6994 do 6995 ac_preproc_ok=false 6996for ac_c_preproc_warn_flag in '' yes 6997do 6998 # Use a header file that comes with gcc, so configuring glibc 6999 # with a fresh cross-compiler works. 7000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7001 # <limits.h> exists even on freestanding compilers. 7002 # On the NeXT, cc -E runs the code through the compiler's parser, 7003 # not just through cpp. "Syntax error" is here to catch this case. 7004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7005/* end confdefs.h. */ 7006#ifdef __STDC__ 7007# include <limits.h> 7008#else 7009# include <assert.h> 7010#endif 7011 Syntax error 7012_ACEOF 7013if ac_fn_c_try_cpp "$LINENO"; then : 7014 7015else 7016 # Broken: fails on valid input. 7017continue 7018fi 7019rm -f conftest.err conftest.i conftest.$ac_ext 7020 7021 # OK, works on sane cases. Now check whether nonexistent headers 7022 # can be detected and how. 7023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7024/* end confdefs.h. */ 7025#include <ac_nonexistent.h> 7026_ACEOF 7027if ac_fn_c_try_cpp "$LINENO"; then : 7028 # Broken: success on invalid input. 7029continue 7030else 7031 # Passes both tests. 7032ac_preproc_ok=: 7033break 7034fi 7035rm -f conftest.err conftest.i conftest.$ac_ext 7036 7037done 7038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7039rm -f conftest.i conftest.err conftest.$ac_ext 7040if $ac_preproc_ok; then : 7041 break 7042fi 7043 7044 done 7045 ac_cv_prog_CPP=$CPP 7046 7047fi 7048 CPP=$ac_cv_prog_CPP 7049else 7050 ac_cv_prog_CPP=$CPP 7051fi 7052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7053$as_echo "$CPP" >&6; } 7054ac_preproc_ok=false 7055for ac_c_preproc_warn_flag in '' yes 7056do 7057 # Use a header file that comes with gcc, so configuring glibc 7058 # with a fresh cross-compiler works. 7059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7060 # <limits.h> exists even on freestanding compilers. 7061 # On the NeXT, cc -E runs the code through the compiler's parser, 7062 # not just through cpp. "Syntax error" is here to catch this case. 7063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7064/* end confdefs.h. */ 7065#ifdef __STDC__ 7066# include <limits.h> 7067#else 7068# include <assert.h> 7069#endif 7070 Syntax error 7071_ACEOF 7072if ac_fn_c_try_cpp "$LINENO"; then : 7073 7074else 7075 # Broken: fails on valid input. 7076continue 7077fi 7078rm -f conftest.err conftest.i conftest.$ac_ext 7079 7080 # OK, works on sane cases. Now check whether nonexistent headers 7081 # can be detected and how. 7082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7083/* end confdefs.h. */ 7084#include <ac_nonexistent.h> 7085_ACEOF 7086if ac_fn_c_try_cpp "$LINENO"; then : 7087 # Broken: success on invalid input. 7088continue 7089else 7090 # Passes both tests. 7091ac_preproc_ok=: 7092break 7093fi 7094rm -f conftest.err conftest.i conftest.$ac_ext 7095 7096done 7097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7098rm -f conftest.i conftest.err conftest.$ac_ext 7099if $ac_preproc_ok; then : 7100 7101else 7102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7104as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7105See \`config.log' for more details" "$LINENO" 5; } 7106fi 7107 7108ac_ext=c 7109ac_cpp='$CPP $CPPFLAGS' 7110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7112ac_compiler_gnu=$ac_cv_c_compiler_gnu 7113 7114 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7116$as_echo_n "checking for ANSI C header files... " >&6; } 7117if ${ac_cv_header_stdc+:} false; then : 7118 $as_echo_n "(cached) " >&6 7119else 7120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7121/* end confdefs.h. */ 7122#include <stdlib.h> 7123#include <stdarg.h> 7124#include <string.h> 7125#include <float.h> 7126 7127int 7128main () 7129{ 7130 7131 ; 7132 return 0; 7133} 7134_ACEOF 7135if ac_fn_c_try_compile "$LINENO"; then : 7136 ac_cv_header_stdc=yes 7137else 7138 ac_cv_header_stdc=no 7139fi 7140rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7141 7142if test $ac_cv_header_stdc = yes; then 7143 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7145/* end confdefs.h. */ 7146#include <string.h> 7147 7148_ACEOF 7149if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7150 $EGREP "memchr" >/dev/null 2>&1; then : 7151 7152else 7153 ac_cv_header_stdc=no 7154fi 7155rm -f conftest* 7156 7157fi 7158 7159if test $ac_cv_header_stdc = yes; then 7160 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7162/* end confdefs.h. */ 7163#include <stdlib.h> 7164 7165_ACEOF 7166if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7167 $EGREP "free" >/dev/null 2>&1; then : 7168 7169else 7170 ac_cv_header_stdc=no 7171fi 7172rm -f conftest* 7173 7174fi 7175 7176if test $ac_cv_header_stdc = yes; then 7177 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7178 if test "$cross_compiling" = yes; then : 7179 : 7180else 7181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7182/* end confdefs.h. */ 7183#include <ctype.h> 7184#include <stdlib.h> 7185#if ((' ' & 0x0FF) == 0x020) 7186# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7187# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7188#else 7189# define ISLOWER(c) \ 7190 (('a' <= (c) && (c) <= 'i') \ 7191 || ('j' <= (c) && (c) <= 'r') \ 7192 || ('s' <= (c) && (c) <= 'z')) 7193# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7194#endif 7195 7196#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7197int 7198main () 7199{ 7200 int i; 7201 for (i = 0; i < 256; i++) 7202 if (XOR (islower (i), ISLOWER (i)) 7203 || toupper (i) != TOUPPER (i)) 7204 return 2; 7205 return 0; 7206} 7207_ACEOF 7208if ac_fn_c_try_run "$LINENO"; then : 7209 7210else 7211 ac_cv_header_stdc=no 7212fi 7213rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7214 conftest.$ac_objext conftest.beam conftest.$ac_ext 7215fi 7216 7217fi 7218fi 7219{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7220$as_echo "$ac_cv_header_stdc" >&6; } 7221if test $ac_cv_header_stdc = yes; then 7222 7223$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7224 7225fi 7226 7227# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7228for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7229 inttypes.h stdint.h unistd.h 7230do : 7231 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7232ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7233" 7234if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7235 cat >>confdefs.h <<_ACEOF 7236#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7237_ACEOF 7238 7239fi 7240 7241done 7242 7243 7244for ac_header in dlfcn.h 7245do : 7246 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7247" 7248if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7249 cat >>confdefs.h <<_ACEOF 7250#define HAVE_DLFCN_H 1 7251_ACEOF 7252 7253fi 7254 7255done 7256 7257 7258 7259 7260 7261# Set options 7262 7263 7264 7265 enable_dlopen=no 7266 7267 7268 enable_win32_dll=no 7269 7270 7271 # Check whether --enable-shared was given. 7272if test "${enable_shared+set}" = set; then : 7273 enableval=$enable_shared; p=${PACKAGE-default} 7274 case $enableval in 7275 yes) enable_shared=yes ;; 7276 no) enable_shared=no ;; 7277 *) 7278 enable_shared=no 7279 # Look at the argument we got. We use all the common list separators. 7280 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7281 for pkg in $enableval; do 7282 IFS="$lt_save_ifs" 7283 if test "X$pkg" = "X$p"; then 7284 enable_shared=yes 7285 fi 7286 done 7287 IFS="$lt_save_ifs" 7288 ;; 7289 esac 7290else 7291 enable_shared=yes 7292fi 7293 7294 7295 7296 7297 7298 7299 7300 7301 7302 # Check whether --enable-static was given. 7303if test "${enable_static+set}" = set; then : 7304 enableval=$enable_static; p=${PACKAGE-default} 7305 case $enableval in 7306 yes) enable_static=yes ;; 7307 no) enable_static=no ;; 7308 *) 7309 enable_static=no 7310 # Look at the argument we got. We use all the common list separators. 7311 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7312 for pkg in $enableval; do 7313 IFS="$lt_save_ifs" 7314 if test "X$pkg" = "X$p"; then 7315 enable_static=yes 7316 fi 7317 done 7318 IFS="$lt_save_ifs" 7319 ;; 7320 esac 7321else 7322 enable_static=yes 7323fi 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334# Check whether --with-pic was given. 7335if test "${with_pic+set}" = set; then : 7336 withval=$with_pic; pic_mode="$withval" 7337else 7338 pic_mode=default 7339fi 7340 7341 7342test -z "$pic_mode" && pic_mode=default 7343 7344 7345 7346 7347 7348 7349 7350 # Check whether --enable-fast-install was given. 7351if test "${enable_fast_install+set}" = set; then : 7352 enableval=$enable_fast_install; p=${PACKAGE-default} 7353 case $enableval in 7354 yes) enable_fast_install=yes ;; 7355 no) enable_fast_install=no ;; 7356 *) 7357 enable_fast_install=no 7358 # Look at the argument we got. We use all the common list separators. 7359 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7360 for pkg in $enableval; do 7361 IFS="$lt_save_ifs" 7362 if test "X$pkg" = "X$p"; then 7363 enable_fast_install=yes 7364 fi 7365 done 7366 IFS="$lt_save_ifs" 7367 ;; 7368 esac 7369else 7370 enable_fast_install=yes 7371fi 7372 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383# This can be used to rebuild libtool when needed 7384LIBTOOL_DEPS="$ltmain" 7385 7386# Always use our own libtool. 7387LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7388 7389 7390 7391 7392 7393 7394 7395 7396 7397 7398 7399 7400 7401 7402 7403 7404 7405 7406 7407 7408 7409 7410 7411 7412 7413 7414test -z "$LN_S" && LN_S="ln -s" 7415 7416 7417 7418 7419 7420 7421 7422 7423 7424 7425 7426 7427 7428 7429if test -n "${ZSH_VERSION+set}" ; then 7430 setopt NO_GLOB_SUBST 7431fi 7432 7433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7434$as_echo_n "checking for objdir... " >&6; } 7435if ${lt_cv_objdir+:} false; then : 7436 $as_echo_n "(cached) " >&6 7437else 7438 rm -f .libs 2>/dev/null 7439mkdir .libs 2>/dev/null 7440if test -d .libs; then 7441 lt_cv_objdir=.libs 7442else 7443 # MS-DOS does not allow filenames that begin with a dot. 7444 lt_cv_objdir=_libs 7445fi 7446rmdir .libs 2>/dev/null 7447fi 7448{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7449$as_echo "$lt_cv_objdir" >&6; } 7450objdir=$lt_cv_objdir 7451 7452 7453 7454 7455 7456cat >>confdefs.h <<_ACEOF 7457#define LT_OBJDIR "$lt_cv_objdir/" 7458_ACEOF 7459 7460 7461 7462 7463case $host_os in 7464aix3*) 7465 # AIX sometimes has problems with the GCC collect2 program. For some 7466 # reason, if we set the COLLECT_NAMES environment variable, the problems 7467 # vanish in a puff of smoke. 7468 if test "X${COLLECT_NAMES+set}" != Xset; then 7469 COLLECT_NAMES= 7470 export COLLECT_NAMES 7471 fi 7472 ;; 7473esac 7474 7475# Global variables: 7476ofile=libtool 7477can_build_shared=yes 7478 7479# All known linkers require a `.a' archive for static linking (except MSVC, 7480# which needs '.lib'). 7481libext=a 7482 7483with_gnu_ld="$lt_cv_prog_gnu_ld" 7484 7485old_CC="$CC" 7486old_CFLAGS="$CFLAGS" 7487 7488# Set sane defaults for various variables 7489test -z "$CC" && CC=cc 7490test -z "$LTCC" && LTCC=$CC 7491test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7492test -z "$LD" && LD=ld 7493test -z "$ac_objext" && ac_objext=o 7494 7495for cc_temp in $compiler""; do 7496 case $cc_temp in 7497 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7498 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7499 \-*) ;; 7500 *) break;; 7501 esac 7502done 7503cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7504 7505 7506# Only perform the check for file, if the check method requires it 7507test -z "$MAGIC_CMD" && MAGIC_CMD=file 7508case $deplibs_check_method in 7509file_magic*) 7510 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7512$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7513if ${lt_cv_path_MAGIC_CMD+:} false; then : 7514 $as_echo_n "(cached) " >&6 7515else 7516 case $MAGIC_CMD in 7517[\\/*] | ?:[\\/]*) 7518 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7519 ;; 7520*) 7521 lt_save_MAGIC_CMD="$MAGIC_CMD" 7522 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7523 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7524 for ac_dir in $ac_dummy; do 7525 IFS="$lt_save_ifs" 7526 test -z "$ac_dir" && ac_dir=. 7527 if test -f $ac_dir/${ac_tool_prefix}file; then 7528 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 7529 if test -n "$file_magic_test_file"; then 7530 case $deplibs_check_method in 7531 "file_magic "*) 7532 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7533 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7534 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7535 $EGREP "$file_magic_regex" > /dev/null; then 7536 : 7537 else 7538 cat <<_LT_EOF 1>&2 7539 7540*** Warning: the command libtool uses to detect shared libraries, 7541*** $file_magic_cmd, produces output that libtool cannot recognize. 7542*** The result is that libtool may fail to recognize shared libraries 7543*** as such. This will affect the creation of libtool libraries that 7544*** depend on shared libraries, but programs linked with such libtool 7545*** libraries will work regardless of this problem. Nevertheless, you 7546*** may want to report the problem to your system manager and/or to 7547*** bug-libtool@gnu.org 7548 7549_LT_EOF 7550 fi ;; 7551 esac 7552 fi 7553 break 7554 fi 7555 done 7556 IFS="$lt_save_ifs" 7557 MAGIC_CMD="$lt_save_MAGIC_CMD" 7558 ;; 7559esac 7560fi 7561 7562MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7563if test -n "$MAGIC_CMD"; then 7564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7565$as_echo "$MAGIC_CMD" >&6; } 7566else 7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7568$as_echo "no" >&6; } 7569fi 7570 7571 7572 7573 7574 7575if test -z "$lt_cv_path_MAGIC_CMD"; then 7576 if test -n "$ac_tool_prefix"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7578$as_echo_n "checking for file... " >&6; } 7579if ${lt_cv_path_MAGIC_CMD+:} false; then : 7580 $as_echo_n "(cached) " >&6 7581else 7582 case $MAGIC_CMD in 7583[\\/*] | ?:[\\/]*) 7584 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 7585 ;; 7586*) 7587 lt_save_MAGIC_CMD="$MAGIC_CMD" 7588 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 7589 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7590 for ac_dir in $ac_dummy; do 7591 IFS="$lt_save_ifs" 7592 test -z "$ac_dir" && ac_dir=. 7593 if test -f $ac_dir/file; then 7594 lt_cv_path_MAGIC_CMD="$ac_dir/file" 7595 if test -n "$file_magic_test_file"; then 7596 case $deplibs_check_method in 7597 "file_magic "*) 7598 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7599 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7600 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7601 $EGREP "$file_magic_regex" > /dev/null; then 7602 : 7603 else 7604 cat <<_LT_EOF 1>&2 7605 7606*** Warning: the command libtool uses to detect shared libraries, 7607*** $file_magic_cmd, produces output that libtool cannot recognize. 7608*** The result is that libtool may fail to recognize shared libraries 7609*** as such. This will affect the creation of libtool libraries that 7610*** depend on shared libraries, but programs linked with such libtool 7611*** libraries will work regardless of this problem. Nevertheless, you 7612*** may want to report the problem to your system manager and/or to 7613*** bug-libtool@gnu.org 7614 7615_LT_EOF 7616 fi ;; 7617 esac 7618 fi 7619 break 7620 fi 7621 done 7622 IFS="$lt_save_ifs" 7623 MAGIC_CMD="$lt_save_MAGIC_CMD" 7624 ;; 7625esac 7626fi 7627 7628MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 7629if test -n "$MAGIC_CMD"; then 7630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7631$as_echo "$MAGIC_CMD" >&6; } 7632else 7633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7634$as_echo "no" >&6; } 7635fi 7636 7637 7638 else 7639 MAGIC_CMD=: 7640 fi 7641fi 7642 7643 fi 7644 ;; 7645esac 7646 7647# Use C for the default configuration in the libtool script 7648 7649lt_save_CC="$CC" 7650ac_ext=c 7651ac_cpp='$CPP $CPPFLAGS' 7652ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7653ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7654ac_compiler_gnu=$ac_cv_c_compiler_gnu 7655 7656 7657# Source file extension for C test sources. 7658ac_ext=c 7659 7660# Object file extension for compiled C test sources. 7661objext=o 7662objext=$objext 7663 7664# Code to be used in simple compile tests 7665lt_simple_compile_test_code="int some_variable = 0;" 7666 7667# Code to be used in simple link tests 7668lt_simple_link_test_code='int main(){return(0);}' 7669 7670 7671 7672 7673 7674 7675 7676# If no C compiler was specified, use CC. 7677LTCC=${LTCC-"$CC"} 7678 7679# If no C compiler flags were specified, use CFLAGS. 7680LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7681 7682# Allow CC to be a program name with arguments. 7683compiler=$CC 7684 7685# Save the default compiler, since it gets overwritten when the other 7686# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7687compiler_DEFAULT=$CC 7688 7689# save warnings/boilerplate of simple test code 7690ac_outfile=conftest.$ac_objext 7691echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7692eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7693_lt_compiler_boilerplate=`cat conftest.err` 7694$RM conftest* 7695 7696ac_outfile=conftest.$ac_objext 7697echo "$lt_simple_link_test_code" >conftest.$ac_ext 7698eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7699_lt_linker_boilerplate=`cat conftest.err` 7700$RM -r conftest* 7701 7702 7703if test -n "$compiler"; then 7704 7705lt_prog_compiler_no_builtin_flag= 7706 7707if test "$GCC" = yes; then 7708 case $cc_basename in 7709 nvcc*) 7710 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7711 *) 7712 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7713 esac 7714 7715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7716$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7717if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7718 $as_echo_n "(cached) " >&6 7719else 7720 lt_cv_prog_compiler_rtti_exceptions=no 7721 ac_outfile=conftest.$ac_objext 7722 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7723 lt_compiler_flag="-fno-rtti -fno-exceptions" 7724 # Insert the option either (1) after the last *FLAGS variable, or 7725 # (2) before a word containing "conftest.", or (3) at the end. 7726 # Note that $ac_compile itself does not contain backslashes and begins 7727 # with a dollar sign (not a hyphen), so the echo should work correctly. 7728 # The option is referenced via a variable to avoid confusing sed. 7729 lt_compile=`echo "$ac_compile" | $SED \ 7730 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7731 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7732 -e 's:$: $lt_compiler_flag:'` 7733 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7734 (eval "$lt_compile" 2>conftest.err) 7735 ac_status=$? 7736 cat conftest.err >&5 7737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7738 if (exit $ac_status) && test -s "$ac_outfile"; then 7739 # The compiler can only warn and ignore the option if not recognized 7740 # So say no if there are warnings other than the usual output. 7741 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7742 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7743 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7744 lt_cv_prog_compiler_rtti_exceptions=yes 7745 fi 7746 fi 7747 $RM conftest* 7748 7749fi 7750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7751$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7752 7753if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 7754 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7755else 7756 : 7757fi 7758 7759fi 7760 7761 7762 7763 7764 7765 7766 lt_prog_compiler_wl= 7767lt_prog_compiler_pic= 7768lt_prog_compiler_static= 7769 7770 7771 if test "$GCC" = yes; then 7772 lt_prog_compiler_wl='-Wl,' 7773 lt_prog_compiler_static='-static' 7774 7775 case $host_os in 7776 aix*) 7777 # All AIX code is PIC. 7778 if test "$host_cpu" = ia64; then 7779 # AIX 5 now supports IA64 processor 7780 lt_prog_compiler_static='-Bstatic' 7781 fi 7782 ;; 7783 7784 amigaos*) 7785 case $host_cpu in 7786 powerpc) 7787 # see comment about AmigaOS4 .so support 7788 lt_prog_compiler_pic='-fPIC' 7789 ;; 7790 m68k) 7791 # FIXME: we need at least 68020 code to build shared libraries, but 7792 # adding the `-m68020' flag to GCC prevents building anything better, 7793 # like `-m68040'. 7794 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7795 ;; 7796 esac 7797 ;; 7798 7799 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7800 # PIC is the default for these OSes. 7801 ;; 7802 7803 mingw* | cygwin* | pw32* | os2* | cegcc*) 7804 # This hack is so that the source file can tell whether it is being 7805 # built for inclusion in a dll (and should export symbols for example). 7806 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7807 # (--disable-auto-import) libraries 7808 lt_prog_compiler_pic='-DDLL_EXPORT' 7809 ;; 7810 7811 darwin* | rhapsody*) 7812 # PIC is the default on this platform 7813 # Common symbols not allowed in MH_DYLIB files 7814 lt_prog_compiler_pic='-fno-common' 7815 ;; 7816 7817 haiku*) 7818 # PIC is the default for Haiku. 7819 # The "-static" flag exists, but is broken. 7820 lt_prog_compiler_static= 7821 ;; 7822 7823 hpux*) 7824 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7825 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7826 # sets the default TLS model and affects inlining. 7827 case $host_cpu in 7828 hppa*64*) 7829 # +Z the default 7830 ;; 7831 *) 7832 lt_prog_compiler_pic='-fPIC' 7833 ;; 7834 esac 7835 ;; 7836 7837 interix[3-9]*) 7838 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7839 # Instead, we relocate shared libraries at runtime. 7840 ;; 7841 7842 msdosdjgpp*) 7843 # Just because we use GCC doesn't mean we suddenly get shared libraries 7844 # on systems that don't support them. 7845 lt_prog_compiler_can_build_shared=no 7846 enable_shared=no 7847 ;; 7848 7849 *nto* | *qnx*) 7850 # QNX uses GNU C++, but need to define -shared option too, otherwise 7851 # it will coredump. 7852 lt_prog_compiler_pic='-fPIC -shared' 7853 ;; 7854 7855 sysv4*MP*) 7856 if test -d /usr/nec; then 7857 lt_prog_compiler_pic=-Kconform_pic 7858 fi 7859 ;; 7860 7861 *) 7862 lt_prog_compiler_pic='-fPIC' 7863 ;; 7864 esac 7865 7866 case $cc_basename in 7867 nvcc*) # Cuda Compiler Driver 2.2 7868 lt_prog_compiler_wl='-Xlinker ' 7869 lt_prog_compiler_pic='-Xcompiler -fPIC' 7870 ;; 7871 esac 7872 else 7873 # PORTME Check for flag to pass linker flags through the system compiler. 7874 case $host_os in 7875 aix*) 7876 lt_prog_compiler_wl='-Wl,' 7877 if test "$host_cpu" = ia64; then 7878 # AIX 5 now supports IA64 processor 7879 lt_prog_compiler_static='-Bstatic' 7880 else 7881 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7882 fi 7883 ;; 7884 7885 mingw* | cygwin* | pw32* | os2* | cegcc*) 7886 # This hack is so that the source file can tell whether it is being 7887 # built for inclusion in a dll (and should export symbols for example). 7888 lt_prog_compiler_pic='-DDLL_EXPORT' 7889 ;; 7890 7891 hpux9* | hpux10* | hpux11*) 7892 lt_prog_compiler_wl='-Wl,' 7893 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7894 # not for PA HP-UX. 7895 case $host_cpu in 7896 hppa*64*|ia64*) 7897 # +Z the default 7898 ;; 7899 *) 7900 lt_prog_compiler_pic='+Z' 7901 ;; 7902 esac 7903 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7904 lt_prog_compiler_static='${wl}-a ${wl}archive' 7905 ;; 7906 7907 irix5* | irix6* | nonstopux*) 7908 lt_prog_compiler_wl='-Wl,' 7909 # PIC (with -KPIC) is the default. 7910 lt_prog_compiler_static='-non_shared' 7911 ;; 7912 7913 linux* | k*bsd*-gnu | kopensolaris*-gnu) 7914 case $cc_basename in 7915 # old Intel for x86_64 which still supported -KPIC. 7916 ecc*) 7917 lt_prog_compiler_wl='-Wl,' 7918 lt_prog_compiler_pic='-KPIC' 7919 lt_prog_compiler_static='-static' 7920 ;; 7921 # icc used to be incompatible with GCC. 7922 # ICC 10 doesn't accept -KPIC any more. 7923 icc* | ifort*) 7924 lt_prog_compiler_wl='-Wl,' 7925 lt_prog_compiler_pic='-fPIC' 7926 lt_prog_compiler_static='-static' 7927 ;; 7928 # Lahey Fortran 8.1. 7929 lf95*) 7930 lt_prog_compiler_wl='-Wl,' 7931 lt_prog_compiler_pic='--shared' 7932 lt_prog_compiler_static='--static' 7933 ;; 7934 nagfor*) 7935 # NAG Fortran compiler 7936 lt_prog_compiler_wl='-Wl,-Wl,,' 7937 lt_prog_compiler_pic='-PIC' 7938 lt_prog_compiler_static='-Bstatic' 7939 ;; 7940 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7941 # Portland Group compilers (*not* the Pentium gcc compiler, 7942 # which looks to be a dead project) 7943 lt_prog_compiler_wl='-Wl,' 7944 lt_prog_compiler_pic='-fpic' 7945 lt_prog_compiler_static='-Bstatic' 7946 ;; 7947 ccc*) 7948 lt_prog_compiler_wl='-Wl,' 7949 # All Alpha code is PIC. 7950 lt_prog_compiler_static='-non_shared' 7951 ;; 7952 xl* | bgxl* | bgf* | mpixl*) 7953 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7954 lt_prog_compiler_wl='-Wl,' 7955 lt_prog_compiler_pic='-qpic' 7956 lt_prog_compiler_static='-qstaticlink' 7957 ;; 7958 *) 7959 case `$CC -V 2>&1 | sed 5q` in 7960 *Sun\ F* | *Sun*Fortran*) 7961 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7962 lt_prog_compiler_pic='-KPIC' 7963 lt_prog_compiler_static='-Bstatic' 7964 lt_prog_compiler_wl='' 7965 ;; 7966 *Sun\ C*) 7967 # Sun C 5.9 7968 lt_prog_compiler_pic='-KPIC' 7969 lt_prog_compiler_static='-Bstatic' 7970 lt_prog_compiler_wl='-Wl,' 7971 ;; 7972 esac 7973 ;; 7974 esac 7975 ;; 7976 7977 newsos6) 7978 lt_prog_compiler_pic='-KPIC' 7979 lt_prog_compiler_static='-Bstatic' 7980 ;; 7981 7982 *nto* | *qnx*) 7983 # QNX uses GNU C++, but need to define -shared option too, otherwise 7984 # it will coredump. 7985 lt_prog_compiler_pic='-fPIC -shared' 7986 ;; 7987 7988 osf3* | osf4* | osf5*) 7989 lt_prog_compiler_wl='-Wl,' 7990 # All OSF/1 code is PIC. 7991 lt_prog_compiler_static='-non_shared' 7992 ;; 7993 7994 rdos*) 7995 lt_prog_compiler_static='-non_shared' 7996 ;; 7997 7998 solaris*) 7999 lt_prog_compiler_pic='-KPIC' 8000 lt_prog_compiler_static='-Bstatic' 8001 case $cc_basename in 8002 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8003 lt_prog_compiler_wl='-Qoption ld ';; 8004 *) 8005 lt_prog_compiler_wl='-Wl,';; 8006 esac 8007 ;; 8008 8009 sunos4*) 8010 lt_prog_compiler_wl='-Qoption ld ' 8011 lt_prog_compiler_pic='-PIC' 8012 lt_prog_compiler_static='-Bstatic' 8013 ;; 8014 8015 sysv4 | sysv4.2uw2* | sysv4.3*) 8016 lt_prog_compiler_wl='-Wl,' 8017 lt_prog_compiler_pic='-KPIC' 8018 lt_prog_compiler_static='-Bstatic' 8019 ;; 8020 8021 sysv4*MP*) 8022 if test -d /usr/nec ;then 8023 lt_prog_compiler_pic='-Kconform_pic' 8024 lt_prog_compiler_static='-Bstatic' 8025 fi 8026 ;; 8027 8028 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8029 lt_prog_compiler_wl='-Wl,' 8030 lt_prog_compiler_pic='-KPIC' 8031 lt_prog_compiler_static='-Bstatic' 8032 ;; 8033 8034 unicos*) 8035 lt_prog_compiler_wl='-Wl,' 8036 lt_prog_compiler_can_build_shared=no 8037 ;; 8038 8039 uts4*) 8040 lt_prog_compiler_pic='-pic' 8041 lt_prog_compiler_static='-Bstatic' 8042 ;; 8043 8044 *) 8045 lt_prog_compiler_can_build_shared=no 8046 ;; 8047 esac 8048 fi 8049 8050case $host_os in 8051 # For platforms which do not support PIC, -DPIC is meaningless: 8052 *djgpp*) 8053 lt_prog_compiler_pic= 8054 ;; 8055 *) 8056 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8057 ;; 8058esac 8059 8060{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8061$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8062if ${lt_cv_prog_compiler_pic+:} false; then : 8063 $as_echo_n "(cached) " >&6 8064else 8065 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8066fi 8067{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8068$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8069lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8070 8071# 8072# Check to make sure the PIC flag actually works. 8073# 8074if test -n "$lt_prog_compiler_pic"; then 8075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8076$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8077if ${lt_cv_prog_compiler_pic_works+:} false; then : 8078 $as_echo_n "(cached) " >&6 8079else 8080 lt_cv_prog_compiler_pic_works=no 8081 ac_outfile=conftest.$ac_objext 8082 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8083 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8084 # Insert the option either (1) after the last *FLAGS variable, or 8085 # (2) before a word containing "conftest.", or (3) at the end. 8086 # Note that $ac_compile itself does not contain backslashes and begins 8087 # with a dollar sign (not a hyphen), so the echo should work correctly. 8088 # The option is referenced via a variable to avoid confusing sed. 8089 lt_compile=`echo "$ac_compile" | $SED \ 8090 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8091 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8092 -e 's:$: $lt_compiler_flag:'` 8093 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8094 (eval "$lt_compile" 2>conftest.err) 8095 ac_status=$? 8096 cat conftest.err >&5 8097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8098 if (exit $ac_status) && test -s "$ac_outfile"; then 8099 # The compiler can only warn and ignore the option if not recognized 8100 # So say no if there are warnings other than the usual output. 8101 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8102 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8103 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8104 lt_cv_prog_compiler_pic_works=yes 8105 fi 8106 fi 8107 $RM conftest* 8108 8109fi 8110{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8111$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8112 8113if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8114 case $lt_prog_compiler_pic in 8115 "" | " "*) ;; 8116 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8117 esac 8118else 8119 lt_prog_compiler_pic= 8120 lt_prog_compiler_can_build_shared=no 8121fi 8122 8123fi 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135# 8136# Check to make sure the static flag actually works. 8137# 8138wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8139{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8140$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8141if ${lt_cv_prog_compiler_static_works+:} false; then : 8142 $as_echo_n "(cached) " >&6 8143else 8144 lt_cv_prog_compiler_static_works=no 8145 save_LDFLAGS="$LDFLAGS" 8146 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8147 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8148 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8149 # The linker can only warn and ignore the option if not recognized 8150 # So say no if there are warnings 8151 if test -s conftest.err; then 8152 # Append any errors to the config.log. 8153 cat conftest.err 1>&5 8154 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8155 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8156 if diff conftest.exp conftest.er2 >/dev/null; then 8157 lt_cv_prog_compiler_static_works=yes 8158 fi 8159 else 8160 lt_cv_prog_compiler_static_works=yes 8161 fi 8162 fi 8163 $RM -r conftest* 8164 LDFLAGS="$save_LDFLAGS" 8165 8166fi 8167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8168$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8169 8170if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8171 : 8172else 8173 lt_prog_compiler_static= 8174fi 8175 8176 8177 8178 8179 8180 8181 8182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8183$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8184if ${lt_cv_prog_compiler_c_o+:} false; then : 8185 $as_echo_n "(cached) " >&6 8186else 8187 lt_cv_prog_compiler_c_o=no 8188 $RM -r conftest 2>/dev/null 8189 mkdir conftest 8190 cd conftest 8191 mkdir out 8192 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8193 8194 lt_compiler_flag="-o out/conftest2.$ac_objext" 8195 # Insert the option either (1) after the last *FLAGS variable, or 8196 # (2) before a word containing "conftest.", or (3) at the end. 8197 # Note that $ac_compile itself does not contain backslashes and begins 8198 # with a dollar sign (not a hyphen), so the echo should work correctly. 8199 lt_compile=`echo "$ac_compile" | $SED \ 8200 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8201 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8202 -e 's:$: $lt_compiler_flag:'` 8203 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8204 (eval "$lt_compile" 2>out/conftest.err) 8205 ac_status=$? 8206 cat out/conftest.err >&5 8207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8208 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8209 then 8210 # The compiler can only warn and ignore the option if not recognized 8211 # So say no if there are warnings 8212 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8213 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8214 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8215 lt_cv_prog_compiler_c_o=yes 8216 fi 8217 fi 8218 chmod u+w . 2>&5 8219 $RM conftest* 8220 # SGI C++ compiler will create directory out/ii_files/ for 8221 # template instantiation 8222 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8223 $RM out/* && rmdir out 8224 cd .. 8225 $RM -r conftest 8226 $RM conftest* 8227 8228fi 8229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8230$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8231 8232 8233 8234 8235 8236 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8238$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8239if ${lt_cv_prog_compiler_c_o+:} false; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 lt_cv_prog_compiler_c_o=no 8243 $RM -r conftest 2>/dev/null 8244 mkdir conftest 8245 cd conftest 8246 mkdir out 8247 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8248 8249 lt_compiler_flag="-o out/conftest2.$ac_objext" 8250 # Insert the option either (1) after the last *FLAGS variable, or 8251 # (2) before a word containing "conftest.", or (3) at the end. 8252 # Note that $ac_compile itself does not contain backslashes and begins 8253 # with a dollar sign (not a hyphen), so the echo should work correctly. 8254 lt_compile=`echo "$ac_compile" | $SED \ 8255 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8256 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8257 -e 's:$: $lt_compiler_flag:'` 8258 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8259 (eval "$lt_compile" 2>out/conftest.err) 8260 ac_status=$? 8261 cat out/conftest.err >&5 8262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8263 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8264 then 8265 # The compiler can only warn and ignore the option if not recognized 8266 # So say no if there are warnings 8267 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8268 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8269 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8270 lt_cv_prog_compiler_c_o=yes 8271 fi 8272 fi 8273 chmod u+w . 2>&5 8274 $RM conftest* 8275 # SGI C++ compiler will create directory out/ii_files/ for 8276 # template instantiation 8277 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8278 $RM out/* && rmdir out 8279 cd .. 8280 $RM -r conftest 8281 $RM conftest* 8282 8283fi 8284{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8285$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8286 8287 8288 8289 8290hard_links="nottested" 8291if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8292 # do not overwrite the value of need_locks provided by the user 8293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8294$as_echo_n "checking if we can lock with hard links... " >&6; } 8295 hard_links=yes 8296 $RM conftest* 8297 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8298 touch conftest.a 8299 ln conftest.a conftest.b 2>&5 || hard_links=no 8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8302$as_echo "$hard_links" >&6; } 8303 if test "$hard_links" = no; then 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8305$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8306 need_locks=warn 8307 fi 8308else 8309 need_locks=no 8310fi 8311 8312 8313 8314 8315 8316 8317 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8318$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8319 8320 runpath_var= 8321 allow_undefined_flag= 8322 always_export_symbols=no 8323 archive_cmds= 8324 archive_expsym_cmds= 8325 compiler_needs_object=no 8326 enable_shared_with_static_runtimes=no 8327 export_dynamic_flag_spec= 8328 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8329 hardcode_automatic=no 8330 hardcode_direct=no 8331 hardcode_direct_absolute=no 8332 hardcode_libdir_flag_spec= 8333 hardcode_libdir_flag_spec_ld= 8334 hardcode_libdir_separator= 8335 hardcode_minus_L=no 8336 hardcode_shlibpath_var=unsupported 8337 inherit_rpath=no 8338 link_all_deplibs=unknown 8339 module_cmds= 8340 module_expsym_cmds= 8341 old_archive_from_new_cmds= 8342 old_archive_from_expsyms_cmds= 8343 thread_safe_flag_spec= 8344 whole_archive_flag_spec= 8345 # include_expsyms should be a list of space-separated symbols to be *always* 8346 # included in the symbol list 8347 include_expsyms= 8348 # exclude_expsyms can be an extended regexp of symbols to exclude 8349 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8350 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8351 # as well as any symbol that contains `d'. 8352 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8353 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8354 # platforms (ab)use it in PIC code, but their linkers get confused if 8355 # the symbol is explicitly referenced. Since portable code cannot 8356 # rely on this symbol name, it's probably fine to never include it in 8357 # preloaded symbol tables. 8358 # Exclude shared library initialization/finalization symbols. 8359 extract_expsyms_cmds= 8360 8361 case $host_os in 8362 cygwin* | mingw* | pw32* | cegcc*) 8363 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8364 # When not using gcc, we currently assume that we are using 8365 # Microsoft Visual C++. 8366 if test "$GCC" != yes; then 8367 with_gnu_ld=no 8368 fi 8369 ;; 8370 interix*) 8371 # we just hope/assume this is gcc and not c89 (= MSVC++) 8372 with_gnu_ld=yes 8373 ;; 8374 openbsd*) 8375 with_gnu_ld=no 8376 ;; 8377 esac 8378 8379 ld_shlibs=yes 8380 8381 # On some targets, GNU ld is compatible enough with the native linker 8382 # that we're better off using the native interface for both. 8383 lt_use_gnu_ld_interface=no 8384 if test "$with_gnu_ld" = yes; then 8385 case $host_os in 8386 aix*) 8387 # The AIX port of GNU ld has always aspired to compatibility 8388 # with the native linker. However, as the warning in the GNU ld 8389 # block says, versions before 2.19.5* couldn't really create working 8390 # shared libraries, regardless of the interface used. 8391 case `$LD -v 2>&1` in 8392 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8393 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8394 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8395 *) 8396 lt_use_gnu_ld_interface=yes 8397 ;; 8398 esac 8399 ;; 8400 *) 8401 lt_use_gnu_ld_interface=yes 8402 ;; 8403 esac 8404 fi 8405 8406 if test "$lt_use_gnu_ld_interface" = yes; then 8407 # If archive_cmds runs LD, not CC, wlarc should be empty 8408 wlarc='${wl}' 8409 8410 # Set some defaults for GNU ld with shared library support. These 8411 # are reset later if shared libraries are not supported. Putting them 8412 # here allows them to be overridden if necessary. 8413 runpath_var=LD_RUN_PATH 8414 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8415 export_dynamic_flag_spec='${wl}--export-dynamic' 8416 # ancient GNU ld didn't support --whole-archive et. al. 8417 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8418 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8419 else 8420 whole_archive_flag_spec= 8421 fi 8422 supports_anon_versioning=no 8423 case `$LD -v 2>&1` in 8424 *GNU\ gold*) supports_anon_versioning=yes ;; 8425 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8426 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8427 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8428 *\ 2.11.*) ;; # other 2.11 versions 8429 *) supports_anon_versioning=yes ;; 8430 esac 8431 8432 # See if GNU ld supports shared libraries. 8433 case $host_os in 8434 aix[3-9]*) 8435 # On AIX/PPC, the GNU linker is very broken 8436 if test "$host_cpu" != ia64; then 8437 ld_shlibs=no 8438 cat <<_LT_EOF 1>&2 8439 8440*** Warning: the GNU linker, at least up to release 2.19, is reported 8441*** to be unable to reliably create shared libraries on AIX. 8442*** Therefore, libtool is disabling shared libraries support. If you 8443*** really care for shared libraries, you may want to install binutils 8444*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8445*** You will then need to restart the configuration process. 8446 8447_LT_EOF 8448 fi 8449 ;; 8450 8451 amigaos*) 8452 case $host_cpu in 8453 powerpc) 8454 # see comment about AmigaOS4 .so support 8455 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8456 archive_expsym_cmds='' 8457 ;; 8458 m68k) 8459 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)' 8460 hardcode_libdir_flag_spec='-L$libdir' 8461 hardcode_minus_L=yes 8462 ;; 8463 esac 8464 ;; 8465 8466 beos*) 8467 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8468 allow_undefined_flag=unsupported 8469 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8470 # support --undefined. This deserves some investigation. FIXME 8471 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8472 else 8473 ld_shlibs=no 8474 fi 8475 ;; 8476 8477 cygwin* | mingw* | pw32* | cegcc*) 8478 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8479 # as there is no search path for DLLs. 8480 hardcode_libdir_flag_spec='-L$libdir' 8481 export_dynamic_flag_spec='${wl}--export-all-symbols' 8482 allow_undefined_flag=unsupported 8483 always_export_symbols=no 8484 enable_shared_with_static_runtimes=yes 8485 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 8486 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8487 8488 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8489 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8490 # If the export-symbols file already is a .def file (1st line 8491 # is EXPORTS), use it as is; otherwise, prepend... 8492 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8493 cp $export_symbols $output_objdir/$soname.def; 8494 else 8495 echo EXPORTS > $output_objdir/$soname.def; 8496 cat $export_symbols >> $output_objdir/$soname.def; 8497 fi~ 8498 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8499 else 8500 ld_shlibs=no 8501 fi 8502 ;; 8503 8504 haiku*) 8505 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8506 link_all_deplibs=yes 8507 ;; 8508 8509 interix[3-9]*) 8510 hardcode_direct=no 8511 hardcode_shlibpath_var=no 8512 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 8513 export_dynamic_flag_spec='${wl}-E' 8514 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8515 # Instead, shared libraries are loaded at an image base (0x10000000 by 8516 # default) and relocated if they conflict, which is a slow very memory 8517 # consuming and fragmenting process. To avoid this, we pick a random, 8518 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8519 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8520 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8521 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' 8522 ;; 8523 8524 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8525 tmp_diet=no 8526 if test "$host_os" = linux-dietlibc; then 8527 case $cc_basename in 8528 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8529 esac 8530 fi 8531 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8532 && test "$tmp_diet" = no 8533 then 8534 tmp_addflag=' $pic_flag' 8535 tmp_sharedflag='-shared' 8536 case $cc_basename,$host_cpu in 8537 pgcc*) # Portland Group C compiler 8538 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' 8539 tmp_addflag=' $pic_flag' 8540 ;; 8541 pgf77* | pgf90* | pgf95* | pgfortran*) 8542 # Portland Group f77 and f90 compilers 8543 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' 8544 tmp_addflag=' $pic_flag -Mnomain' ;; 8545 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8546 tmp_addflag=' -i_dynamic' ;; 8547 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8548 tmp_addflag=' -i_dynamic -nofor_main' ;; 8549 ifc* | ifort*) # Intel Fortran compiler 8550 tmp_addflag=' -nofor_main' ;; 8551 lf95*) # Lahey Fortran 8.1 8552 whole_archive_flag_spec= 8553 tmp_sharedflag='--shared' ;; 8554 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8555 tmp_sharedflag='-qmkshrobj' 8556 tmp_addflag= ;; 8557 nvcc*) # Cuda Compiler Driver 2.2 8558 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' 8559 compiler_needs_object=yes 8560 ;; 8561 esac 8562 case `$CC -V 2>&1 | sed 5q` in 8563 *Sun\ C*) # Sun C 5.9 8564 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' 8565 compiler_needs_object=yes 8566 tmp_sharedflag='-G' ;; 8567 *Sun\ F*) # Sun Fortran 8.3 8568 tmp_sharedflag='-G' ;; 8569 esac 8570 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8571 8572 if test "x$supports_anon_versioning" = xyes; then 8573 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8574 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8575 echo "local: *; };" >> $output_objdir/$libname.ver~ 8576 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 8577 fi 8578 8579 case $cc_basename in 8580 xlf* | bgf* | bgxlf* | mpixlf*) 8581 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8582 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8583 hardcode_libdir_flag_spec= 8584 hardcode_libdir_flag_spec_ld='-rpath $libdir' 8585 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8586 if test "x$supports_anon_versioning" = xyes; then 8587 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8588 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8589 echo "local: *; };" >> $output_objdir/$libname.ver~ 8590 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8591 fi 8592 ;; 8593 esac 8594 else 8595 ld_shlibs=no 8596 fi 8597 ;; 8598 8599 netbsd*) 8600 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8601 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8602 wlarc= 8603 else 8604 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8605 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8606 fi 8607 ;; 8608 8609 solaris*) 8610 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8611 ld_shlibs=no 8612 cat <<_LT_EOF 1>&2 8613 8614*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8615*** create shared libraries on Solaris systems. Therefore, libtool 8616*** is disabling shared libraries support. We urge you to upgrade GNU 8617*** binutils to release 2.9.1 or newer. Another option is to modify 8618*** your PATH or compiler configuration so that the native linker is 8619*** used, and then restart. 8620 8621_LT_EOF 8622 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8623 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8624 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8625 else 8626 ld_shlibs=no 8627 fi 8628 ;; 8629 8630 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8631 case `$LD -v 2>&1` in 8632 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8633 ld_shlibs=no 8634 cat <<_LT_EOF 1>&2 8635 8636*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 8637*** reliably create shared libraries on SCO systems. Therefore, libtool 8638*** is disabling shared libraries support. We urge you to upgrade GNU 8639*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8640*** your PATH or compiler configuration so that the native linker is 8641*** used, and then restart. 8642 8643_LT_EOF 8644 ;; 8645 *) 8646 # For security reasons, it is highly recommended that you always 8647 # use absolute paths for naming shared libraries, and exclude the 8648 # DT_RUNPATH tag from executables and libraries. But doing so 8649 # requires that you compile everything twice, which is a pain. 8650 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8651 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8652 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8653 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8654 else 8655 ld_shlibs=no 8656 fi 8657 ;; 8658 esac 8659 ;; 8660 8661 sunos4*) 8662 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8663 wlarc= 8664 hardcode_direct=yes 8665 hardcode_shlibpath_var=no 8666 ;; 8667 8668 *) 8669 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8670 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8671 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 8672 else 8673 ld_shlibs=no 8674 fi 8675 ;; 8676 esac 8677 8678 if test "$ld_shlibs" = no; then 8679 runpath_var= 8680 hardcode_libdir_flag_spec= 8681 export_dynamic_flag_spec= 8682 whole_archive_flag_spec= 8683 fi 8684 else 8685 # PORTME fill in a description of your system's linker (not GNU ld) 8686 case $host_os in 8687 aix3*) 8688 allow_undefined_flag=unsupported 8689 always_export_symbols=yes 8690 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' 8691 # Note: this linker hardcodes the directories in LIBPATH if there 8692 # are no directories specified by -L. 8693 hardcode_minus_L=yes 8694 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 8695 # Neither direct hardcoding nor static linking is supported with a 8696 # broken collect2. 8697 hardcode_direct=unsupported 8698 fi 8699 ;; 8700 8701 aix[4-9]*) 8702 if test "$host_cpu" = ia64; then 8703 # On IA64, the linker does run time linking by default, so we don't 8704 # have to do anything special. 8705 aix_use_runtimelinking=no 8706 exp_sym_flag='-Bexport' 8707 no_entry_flag="" 8708 else 8709 # If we're using GNU nm, then we don't want the "-C" option. 8710 # -C means demangle to AIX nm, but means don't demangle with GNU nm 8711 # Also, AIX nm treats weak defined symbols like other global 8712 # defined symbols, whereas GNU nm marks them as "W". 8713 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8714 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' 8715 else 8716 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' 8717 fi 8718 aix_use_runtimelinking=no 8719 8720 # Test if we are trying to use run time linking or normal 8721 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8722 # need to do runtime linking. 8723 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8724 for ld_flag in $LDFLAGS; do 8725 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 8726 aix_use_runtimelinking=yes 8727 break 8728 fi 8729 done 8730 ;; 8731 esac 8732 8733 exp_sym_flag='-bexport' 8734 no_entry_flag='-bnoentry' 8735 fi 8736 8737 # When large executables or shared objects are built, AIX ld can 8738 # have problems creating the table of contents. If linking a library 8739 # or program results in "error TOC overflow" add -mminimal-toc to 8740 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8741 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8742 8743 archive_cmds='' 8744 hardcode_direct=yes 8745 hardcode_direct_absolute=yes 8746 hardcode_libdir_separator=':' 8747 link_all_deplibs=yes 8748 file_list_spec='${wl}-f,' 8749 8750 if test "$GCC" = yes; then 8751 case $host_os in aix4.[012]|aix4.[012].*) 8752 # We only want to do this on AIX 4.2 and lower, the check 8753 # below for broken collect2 doesn't work under 4.3+ 8754 collect2name=`${CC} -print-prog-name=collect2` 8755 if test -f "$collect2name" && 8756 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8757 then 8758 # We have reworked collect2 8759 : 8760 else 8761 # We have old collect2 8762 hardcode_direct=unsupported 8763 # It fails to find uninstalled libraries when the uninstalled 8764 # path is not listed in the libpath. Setting hardcode_minus_L 8765 # to unsupported forces relinking 8766 hardcode_minus_L=yes 8767 hardcode_libdir_flag_spec='-L$libdir' 8768 hardcode_libdir_separator= 8769 fi 8770 ;; 8771 esac 8772 shared_flag='-shared' 8773 if test "$aix_use_runtimelinking" = yes; then 8774 shared_flag="$shared_flag "'${wl}-G' 8775 fi 8776 else 8777 # not using gcc 8778 if test "$host_cpu" = ia64; then 8779 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8780 # chokes on -Wl,-G. The following line is correct: 8781 shared_flag='-G' 8782 else 8783 if test "$aix_use_runtimelinking" = yes; then 8784 shared_flag='${wl}-G' 8785 else 8786 shared_flag='${wl}-bM:SRE' 8787 fi 8788 fi 8789 fi 8790 8791 export_dynamic_flag_spec='${wl}-bexpall' 8792 # It seems that -bexpall does not export symbols beginning with 8793 # underscore (_), so it is better to generate a list of symbols to export. 8794 always_export_symbols=yes 8795 if test "$aix_use_runtimelinking" = yes; then 8796 # Warning - without using the other runtime loading flags (-brtl), 8797 # -berok will link without error, but may produce a broken library. 8798 allow_undefined_flag='-berok' 8799 # Determine the default libpath from the value encoded in an 8800 # empty executable. 8801 if test "${lt_cv_aix_libpath+set}" = set; then 8802 aix_libpath=$lt_cv_aix_libpath 8803else 8804 if ${lt_cv_aix_libpath_+:} false; then : 8805 $as_echo_n "(cached) " >&6 8806else 8807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8808/* end confdefs.h. */ 8809 8810int 8811main () 8812{ 8813 8814 ; 8815 return 0; 8816} 8817_ACEOF 8818if ac_fn_c_try_link "$LINENO"; then : 8819 8820 lt_aix_libpath_sed=' 8821 /Import File Strings/,/^$/ { 8822 /^0/ { 8823 s/^0 *\([^ ]*\) *$/\1/ 8824 p 8825 } 8826 }' 8827 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8828 # Check for a 64-bit object if we didn't find anything. 8829 if test -z "$lt_cv_aix_libpath_"; then 8830 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8831 fi 8832fi 8833rm -f core conftest.err conftest.$ac_objext \ 8834 conftest$ac_exeext conftest.$ac_ext 8835 if test -z "$lt_cv_aix_libpath_"; then 8836 lt_cv_aix_libpath_="/usr/lib:/lib" 8837 fi 8838 8839fi 8840 8841 aix_libpath=$lt_cv_aix_libpath_ 8842fi 8843 8844 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8845 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" 8846 else 8847 if test "$host_cpu" = ia64; then 8848 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 8849 allow_undefined_flag="-z nodefs" 8850 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" 8851 else 8852 # Determine the default libpath from the value encoded in an 8853 # empty executable. 8854 if test "${lt_cv_aix_libpath+set}" = set; then 8855 aix_libpath=$lt_cv_aix_libpath 8856else 8857 if ${lt_cv_aix_libpath_+:} false; then : 8858 $as_echo_n "(cached) " >&6 8859else 8860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8861/* end confdefs.h. */ 8862 8863int 8864main () 8865{ 8866 8867 ; 8868 return 0; 8869} 8870_ACEOF 8871if ac_fn_c_try_link "$LINENO"; then : 8872 8873 lt_aix_libpath_sed=' 8874 /Import File Strings/,/^$/ { 8875 /^0/ { 8876 s/^0 *\([^ ]*\) *$/\1/ 8877 p 8878 } 8879 }' 8880 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8881 # Check for a 64-bit object if we didn't find anything. 8882 if test -z "$lt_cv_aix_libpath_"; then 8883 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8884 fi 8885fi 8886rm -f core conftest.err conftest.$ac_objext \ 8887 conftest$ac_exeext conftest.$ac_ext 8888 if test -z "$lt_cv_aix_libpath_"; then 8889 lt_cv_aix_libpath_="/usr/lib:/lib" 8890 fi 8891 8892fi 8893 8894 aix_libpath=$lt_cv_aix_libpath_ 8895fi 8896 8897 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 8898 # Warning - without using the other run time loading flags, 8899 # -berok will link without error, but may produce a broken library. 8900 no_undefined_flag=' ${wl}-bernotok' 8901 allow_undefined_flag=' ${wl}-berok' 8902 if test "$with_gnu_ld" = yes; then 8903 # We only use this code for GNU lds that support --whole-archive. 8904 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 8905 else 8906 # Exported symbols can be pulled into shared objects from archives 8907 whole_archive_flag_spec='$convenience' 8908 fi 8909 archive_cmds_need_lc=yes 8910 # This is similar to how AIX traditionally builds its shared libraries. 8911 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' 8912 fi 8913 fi 8914 ;; 8915 8916 amigaos*) 8917 case $host_cpu in 8918 powerpc) 8919 # see comment about AmigaOS4 .so support 8920 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8921 archive_expsym_cmds='' 8922 ;; 8923 m68k) 8924 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)' 8925 hardcode_libdir_flag_spec='-L$libdir' 8926 hardcode_minus_L=yes 8927 ;; 8928 esac 8929 ;; 8930 8931 bsdi[45]*) 8932 export_dynamic_flag_spec=-rdynamic 8933 ;; 8934 8935 cygwin* | mingw* | pw32* | cegcc*) 8936 # When not using gcc, we currently assume that we are using 8937 # Microsoft Visual C++. 8938 # hardcode_libdir_flag_spec is actually meaningless, as there is 8939 # no search path for DLLs. 8940 case $cc_basename in 8941 cl*) 8942 # Native MSVC 8943 hardcode_libdir_flag_spec=' ' 8944 allow_undefined_flag=unsupported 8945 always_export_symbols=yes 8946 file_list_spec='@' 8947 # Tell ltmain to make .lib files, not .a files. 8948 libext=lib 8949 # Tell ltmain to make .dll files, not .so files. 8950 shrext_cmds=".dll" 8951 # FIXME: Setting linknames here is a bad hack. 8952 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 8953 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 8954 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 8955 else 8956 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 8957 fi~ 8958 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 8959 linknames=' 8960 # The linker will not automatically build a static lib if we build a DLL. 8961 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 8962 enable_shared_with_static_runtimes=yes 8963 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8964 # Don't use ranlib 8965 old_postinstall_cmds='chmod 644 $oldlib' 8966 postlink_cmds='lt_outputfile="@OUTPUT@"~ 8967 lt_tool_outputfile="@TOOL_OUTPUT@"~ 8968 case $lt_outputfile in 8969 *.exe|*.EXE) ;; 8970 *) 8971 lt_outputfile="$lt_outputfile.exe" 8972 lt_tool_outputfile="$lt_tool_outputfile.exe" 8973 ;; 8974 esac~ 8975 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 8976 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 8977 $RM "$lt_outputfile.manifest"; 8978 fi' 8979 ;; 8980 *) 8981 # Assume MSVC wrapper 8982 hardcode_libdir_flag_spec=' ' 8983 allow_undefined_flag=unsupported 8984 # Tell ltmain to make .lib files, not .a files. 8985 libext=lib 8986 # Tell ltmain to make .dll files, not .so files. 8987 shrext_cmds=".dll" 8988 # FIXME: Setting linknames here is a bad hack. 8989 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 8990 # The linker will automatically build a .lib file if we build a DLL. 8991 old_archive_from_new_cmds='true' 8992 # FIXME: Should let the user specify the lib program. 8993 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 8994 enable_shared_with_static_runtimes=yes 8995 ;; 8996 esac 8997 ;; 8998 8999 darwin* | rhapsody*) 9000 9001 9002 archive_cmds_need_lc=no 9003 hardcode_direct=no 9004 hardcode_automatic=yes 9005 hardcode_shlibpath_var=unsupported 9006 if test "$lt_cv_ld_force_load" = "yes"; then 9007 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\"`' 9008 else 9009 whole_archive_flag_spec='' 9010 fi 9011 link_all_deplibs=yes 9012 allow_undefined_flag="$_lt_dar_allow_undefined" 9013 case $cc_basename in 9014 ifort*) _lt_dar_can_shared=yes ;; 9015 *) _lt_dar_can_shared=$GCC ;; 9016 esac 9017 if test "$_lt_dar_can_shared" = "yes"; then 9018 output_verbose_link_cmd=func_echo_all 9019 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9020 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9021 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}" 9022 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}" 9023 9024 else 9025 ld_shlibs=no 9026 fi 9027 9028 ;; 9029 9030 dgux*) 9031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9032 hardcode_libdir_flag_spec='-L$libdir' 9033 hardcode_shlibpath_var=no 9034 ;; 9035 9036 freebsd1*) 9037 ld_shlibs=no 9038 ;; 9039 9040 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9041 # support. Future versions do this automatically, but an explicit c++rt0.o 9042 # does not break anything, and helps significantly (at the cost of a little 9043 # extra space). 9044 freebsd2.2*) 9045 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9046 hardcode_libdir_flag_spec='-R$libdir' 9047 hardcode_direct=yes 9048 hardcode_shlibpath_var=no 9049 ;; 9050 9051 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9052 freebsd2*) 9053 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9054 hardcode_direct=yes 9055 hardcode_minus_L=yes 9056 hardcode_shlibpath_var=no 9057 ;; 9058 9059 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9060 freebsd* | dragonfly*) 9061 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9062 hardcode_libdir_flag_spec='-R$libdir' 9063 hardcode_direct=yes 9064 hardcode_shlibpath_var=no 9065 ;; 9066 9067 hpux9*) 9068 if test "$GCC" = yes; then 9069 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9070 else 9071 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' 9072 fi 9073 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9074 hardcode_libdir_separator=: 9075 hardcode_direct=yes 9076 9077 # hardcode_minus_L: Not really in the search PATH, 9078 # but as the default location of the library. 9079 hardcode_minus_L=yes 9080 export_dynamic_flag_spec='${wl}-E' 9081 ;; 9082 9083 hpux10*) 9084 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9085 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9086 else 9087 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9088 fi 9089 if test "$with_gnu_ld" = no; then 9090 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9091 hardcode_libdir_flag_spec_ld='+b $libdir' 9092 hardcode_libdir_separator=: 9093 hardcode_direct=yes 9094 hardcode_direct_absolute=yes 9095 export_dynamic_flag_spec='${wl}-E' 9096 # hardcode_minus_L: Not really in the search PATH, 9097 # but as the default location of the library. 9098 hardcode_minus_L=yes 9099 fi 9100 ;; 9101 9102 hpux11*) 9103 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9104 case $host_cpu in 9105 hppa*64*) 9106 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9107 ;; 9108 ia64*) 9109 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9110 ;; 9111 *) 9112 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9113 ;; 9114 esac 9115 else 9116 case $host_cpu in 9117 hppa*64*) 9118 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9119 ;; 9120 ia64*) 9121 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9122 ;; 9123 *) 9124 9125 # Older versions of the 11.00 compiler do not understand -b yet 9126 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9128$as_echo_n "checking if $CC understands -b... " >&6; } 9129if ${lt_cv_prog_compiler__b+:} false; then : 9130 $as_echo_n "(cached) " >&6 9131else 9132 lt_cv_prog_compiler__b=no 9133 save_LDFLAGS="$LDFLAGS" 9134 LDFLAGS="$LDFLAGS -b" 9135 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9136 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9137 # The linker can only warn and ignore the option if not recognized 9138 # So say no if there are warnings 9139 if test -s conftest.err; then 9140 # Append any errors to the config.log. 9141 cat conftest.err 1>&5 9142 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9143 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9144 if diff conftest.exp conftest.er2 >/dev/null; then 9145 lt_cv_prog_compiler__b=yes 9146 fi 9147 else 9148 lt_cv_prog_compiler__b=yes 9149 fi 9150 fi 9151 $RM -r conftest* 9152 LDFLAGS="$save_LDFLAGS" 9153 9154fi 9155{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9156$as_echo "$lt_cv_prog_compiler__b" >&6; } 9157 9158if test x"$lt_cv_prog_compiler__b" = xyes; then 9159 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9160else 9161 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9162fi 9163 9164 ;; 9165 esac 9166 fi 9167 if test "$with_gnu_ld" = no; then 9168 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9169 hardcode_libdir_separator=: 9170 9171 case $host_cpu in 9172 hppa*64*|ia64*) 9173 hardcode_direct=no 9174 hardcode_shlibpath_var=no 9175 ;; 9176 *) 9177 hardcode_direct=yes 9178 hardcode_direct_absolute=yes 9179 export_dynamic_flag_spec='${wl}-E' 9180 9181 # hardcode_minus_L: Not really in the search PATH, 9182 # but as the default location of the library. 9183 hardcode_minus_L=yes 9184 ;; 9185 esac 9186 fi 9187 ;; 9188 9189 irix5* | irix6* | nonstopux*) 9190 if test "$GCC" = yes; then 9191 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9192 # Try to use the -exported_symbol ld option, if it does not 9193 # work, assume that -exports_file does not work either and 9194 # implicitly export all symbols. 9195 # This should be the same for all languages, so no per-tag cache variable. 9196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9197$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9198if ${lt_cv_irix_exported_symbol+:} false; then : 9199 $as_echo_n "(cached) " >&6 9200else 9201 save_LDFLAGS="$LDFLAGS" 9202 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9204/* end confdefs.h. */ 9205int foo (void) { return 0; } 9206_ACEOF 9207if ac_fn_c_try_link "$LINENO"; then : 9208 lt_cv_irix_exported_symbol=yes 9209else 9210 lt_cv_irix_exported_symbol=no 9211fi 9212rm -f core conftest.err conftest.$ac_objext \ 9213 conftest$ac_exeext conftest.$ac_ext 9214 LDFLAGS="$save_LDFLAGS" 9215fi 9216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9217$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9218 if test "$lt_cv_irix_exported_symbol" = yes; then 9219 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9220 fi 9221 else 9222 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' 9223 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' 9224 fi 9225 archive_cmds_need_lc='no' 9226 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9227 hardcode_libdir_separator=: 9228 inherit_rpath=yes 9229 link_all_deplibs=yes 9230 ;; 9231 9232 netbsd*) 9233 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9234 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9235 else 9236 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9237 fi 9238 hardcode_libdir_flag_spec='-R$libdir' 9239 hardcode_direct=yes 9240 hardcode_shlibpath_var=no 9241 ;; 9242 9243 newsos6) 9244 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9245 hardcode_direct=yes 9246 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9247 hardcode_libdir_separator=: 9248 hardcode_shlibpath_var=no 9249 ;; 9250 9251 *nto* | *qnx*) 9252 ;; 9253 9254 openbsd*) 9255 if test -f /usr/libexec/ld.so; then 9256 hardcode_direct=yes 9257 hardcode_shlibpath_var=no 9258 hardcode_direct_absolute=yes 9259 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9260 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9261 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9262 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9263 export_dynamic_flag_spec='${wl}-E' 9264 else 9265 case $host_os in 9266 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9267 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9268 hardcode_libdir_flag_spec='-R$libdir' 9269 ;; 9270 *) 9271 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9272 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9273 ;; 9274 esac 9275 fi 9276 else 9277 ld_shlibs=no 9278 fi 9279 ;; 9280 9281 os2*) 9282 hardcode_libdir_flag_spec='-L$libdir' 9283 hardcode_minus_L=yes 9284 allow_undefined_flag=unsupported 9285 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' 9286 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9287 ;; 9288 9289 osf3*) 9290 if test "$GCC" = yes; then 9291 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9292 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' 9293 else 9294 allow_undefined_flag=' -expect_unresolved \*' 9295 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' 9296 fi 9297 archive_cmds_need_lc='no' 9298 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9299 hardcode_libdir_separator=: 9300 ;; 9301 9302 osf4* | osf5*) # as osf3* with the addition of -msym flag 9303 if test "$GCC" = yes; then 9304 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9305 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9306 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9307 else 9308 allow_undefined_flag=' -expect_unresolved \*' 9309 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' 9310 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~ 9311 $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' 9312 9313 # Both c and cxx compiler support -rpath directly 9314 hardcode_libdir_flag_spec='-rpath $libdir' 9315 fi 9316 archive_cmds_need_lc='no' 9317 hardcode_libdir_separator=: 9318 ;; 9319 9320 solaris*) 9321 no_undefined_flag=' -z defs' 9322 if test "$GCC" = yes; then 9323 wlarc='${wl}' 9324 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9325 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9326 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9327 else 9328 case `$CC -V 2>&1` in 9329 *"Compilers 5.0"*) 9330 wlarc='' 9331 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9332 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9333 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9334 ;; 9335 *) 9336 wlarc='${wl}' 9337 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9338 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9339 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9340 ;; 9341 esac 9342 fi 9343 hardcode_libdir_flag_spec='-R$libdir' 9344 hardcode_shlibpath_var=no 9345 case $host_os in 9346 solaris2.[0-5] | solaris2.[0-5].*) ;; 9347 *) 9348 # The compiler driver will combine and reorder linker options, 9349 # but understands `-z linker_flag'. GCC discards it without `$wl', 9350 # but is careful enough not to reorder. 9351 # Supported since Solaris 2.6 (maybe 2.5.1?) 9352 if test "$GCC" = yes; then 9353 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9354 else 9355 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9356 fi 9357 ;; 9358 esac 9359 link_all_deplibs=yes 9360 ;; 9361 9362 sunos4*) 9363 if test "x$host_vendor" = xsequent; then 9364 # Use $CC to link under sequent, because it throws in some extra .o 9365 # files that make .init and .fini sections work. 9366 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9367 else 9368 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9369 fi 9370 hardcode_libdir_flag_spec='-L$libdir' 9371 hardcode_direct=yes 9372 hardcode_minus_L=yes 9373 hardcode_shlibpath_var=no 9374 ;; 9375 9376 sysv4) 9377 case $host_vendor in 9378 sni) 9379 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9380 hardcode_direct=yes # is this really true??? 9381 ;; 9382 siemens) 9383 ## LD is ld it makes a PLAMLIB 9384 ## CC just makes a GrossModule. 9385 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9386 reload_cmds='$CC -r -o $output$reload_objs' 9387 hardcode_direct=no 9388 ;; 9389 motorola) 9390 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9391 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9392 ;; 9393 esac 9394 runpath_var='LD_RUN_PATH' 9395 hardcode_shlibpath_var=no 9396 ;; 9397 9398 sysv4.3*) 9399 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9400 hardcode_shlibpath_var=no 9401 export_dynamic_flag_spec='-Bexport' 9402 ;; 9403 9404 sysv4*MP*) 9405 if test -d /usr/nec; then 9406 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9407 hardcode_shlibpath_var=no 9408 runpath_var=LD_RUN_PATH 9409 hardcode_runpath_var=yes 9410 ld_shlibs=yes 9411 fi 9412 ;; 9413 9414 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9415 no_undefined_flag='${wl}-z,text' 9416 archive_cmds_need_lc=no 9417 hardcode_shlibpath_var=no 9418 runpath_var='LD_RUN_PATH' 9419 9420 if test "$GCC" = yes; then 9421 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9422 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9423 else 9424 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9425 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9426 fi 9427 ;; 9428 9429 sysv5* | sco3.2v5* | sco5v6*) 9430 # Note: We can NOT use -z defs as we might desire, because we do not 9431 # link with -lc, and that would cause any symbols used from libc to 9432 # always be unresolved, which means just about no library would 9433 # ever link correctly. If we're not using GNU ld we use -z text 9434 # though, which does catch some bad symbols but isn't as heavy-handed 9435 # as -z defs. 9436 no_undefined_flag='${wl}-z,text' 9437 allow_undefined_flag='${wl}-z,nodefs' 9438 archive_cmds_need_lc=no 9439 hardcode_shlibpath_var=no 9440 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9441 hardcode_libdir_separator=':' 9442 link_all_deplibs=yes 9443 export_dynamic_flag_spec='${wl}-Bexport' 9444 runpath_var='LD_RUN_PATH' 9445 9446 if test "$GCC" = yes; then 9447 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9448 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9449 else 9450 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9451 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9452 fi 9453 ;; 9454 9455 uts4*) 9456 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9457 hardcode_libdir_flag_spec='-L$libdir' 9458 hardcode_shlibpath_var=no 9459 ;; 9460 9461 *) 9462 ld_shlibs=no 9463 ;; 9464 esac 9465 9466 if test x$host_vendor = xsni; then 9467 case $host in 9468 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9469 export_dynamic_flag_spec='${wl}-Blargedynsym' 9470 ;; 9471 esac 9472 fi 9473 fi 9474 9475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9476$as_echo "$ld_shlibs" >&6; } 9477test "$ld_shlibs" = no && can_build_shared=no 9478 9479with_gnu_ld=$with_gnu_ld 9480 9481 9482 9483 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495# 9496# Do we need to explicitly link libc? 9497# 9498case "x$archive_cmds_need_lc" in 9499x|xyes) 9500 # Assume -lc should be added 9501 archive_cmds_need_lc=yes 9502 9503 if test "$enable_shared" = yes && test "$GCC" = yes; then 9504 case $archive_cmds in 9505 *'~'*) 9506 # FIXME: we may have to deal with multi-command sequences. 9507 ;; 9508 '$CC '*) 9509 # Test whether the compiler implicitly links with -lc since on some 9510 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9511 # to ld, don't add -lc before -lgcc. 9512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9513$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9514if ${lt_cv_archive_cmds_need_lc+:} false; then : 9515 $as_echo_n "(cached) " >&6 9516else 9517 $RM conftest* 9518 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9519 9520 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9521 (eval $ac_compile) 2>&5 9522 ac_status=$? 9523 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9524 test $ac_status = 0; } 2>conftest.err; then 9525 soname=conftest 9526 lib=conftest 9527 libobjs=conftest.$ac_objext 9528 deplibs= 9529 wl=$lt_prog_compiler_wl 9530 pic_flag=$lt_prog_compiler_pic 9531 compiler_flags=-v 9532 linker_flags=-v 9533 verstring= 9534 output_objdir=. 9535 libname=conftest 9536 lt_save_allow_undefined_flag=$allow_undefined_flag 9537 allow_undefined_flag= 9538 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9539 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9540 ac_status=$? 9541 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9542 test $ac_status = 0; } 9543 then 9544 lt_cv_archive_cmds_need_lc=no 9545 else 9546 lt_cv_archive_cmds_need_lc=yes 9547 fi 9548 allow_undefined_flag=$lt_save_allow_undefined_flag 9549 else 9550 cat conftest.err 1>&5 9551 fi 9552 $RM conftest* 9553 9554fi 9555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9556$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9557 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9558 ;; 9559 esac 9560 fi 9561 ;; 9562esac 9563 9564 9565 9566 9567 9568 9569 9570 9571 9572 9573 9574 9575 9576 9577 9578 9579 9580 9581 9582 9583 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599 9600 9601 9602 9603 9604 9605 9606 9607 9608 9609 9610 9611 9612 9613 9614 9615 9616 9617 9618 9619 9620 9621 9622 9623 9624 9625 9626 9627 9628 9629 9630 9631 9632 9633 9634 9635 9636 9637 9638 9639 9640 9641 9642 9643 9644 9645 9646 9647 9648 9649 9650 9651 9652 9653 9654 9655 9656 9657 9658 9659 9660 9661 9662 9663 9664 9665 9666 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9721$as_echo_n "checking dynamic linker characteristics... " >&6; } 9722 9723if test "$GCC" = yes; then 9724 case $host_os in 9725 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 9726 *) lt_awk_arg="/^libraries:/" ;; 9727 esac 9728 case $host_os in 9729 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 9730 *) lt_sed_strip_eq="s,=/,/,g" ;; 9731 esac 9732 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9733 case $lt_search_path_spec in 9734 *\;*) 9735 # if the path contains ";" then we assume it to be the separator 9736 # otherwise default to the standard path separator (i.e. ":") - it is 9737 # assumed that no part of a normal pathname contains ";" but that should 9738 # okay in the real world where ";" in dirpaths is itself problematic. 9739 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9740 ;; 9741 *) 9742 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9743 ;; 9744 esac 9745 # Ok, now we have the path, separated by spaces, we can step through it 9746 # and add multilib dir if necessary. 9747 lt_tmp_lt_search_path_spec= 9748 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9749 for lt_sys_path in $lt_search_path_spec; do 9750 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 9751 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 9752 else 9753 test -d "$lt_sys_path" && \ 9754 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9755 fi 9756 done 9757 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9758BEGIN {RS=" "; FS="/|\n";} { 9759 lt_foo=""; 9760 lt_count=0; 9761 for (lt_i = NF; lt_i > 0; lt_i--) { 9762 if ($lt_i != "" && $lt_i != ".") { 9763 if ($lt_i == "..") { 9764 lt_count++; 9765 } else { 9766 if (lt_count == 0) { 9767 lt_foo="/" $lt_i lt_foo; 9768 } else { 9769 lt_count--; 9770 } 9771 } 9772 } 9773 } 9774 if (lt_foo != "") { lt_freq[lt_foo]++; } 9775 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9776}'` 9777 # AWK program above erroneously prepends '/' to C:/dos/paths 9778 # for these hosts. 9779 case $host_os in 9780 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9781 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 9782 esac 9783 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9784else 9785 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9786fi 9787library_names_spec= 9788libname_spec='lib$name' 9789soname_spec= 9790shrext_cmds=".so" 9791postinstall_cmds= 9792postuninstall_cmds= 9793finish_cmds= 9794finish_eval= 9795shlibpath_var= 9796shlibpath_overrides_runpath=unknown 9797version_type=none 9798dynamic_linker="$host_os ld.so" 9799sys_lib_dlsearch_path_spec="/lib /usr/lib" 9800need_lib_prefix=unknown 9801hardcode_into_libs=no 9802 9803# when you set need_version to no, make sure it does not cause -set_version 9804# flags to be left without arguments 9805need_version=unknown 9806 9807case $host_os in 9808aix3*) 9809 version_type=linux 9810 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 9811 shlibpath_var=LIBPATH 9812 9813 # AIX 3 has no versioning support, so we append a major version to the name. 9814 soname_spec='${libname}${release}${shared_ext}$major' 9815 ;; 9816 9817aix[4-9]*) 9818 version_type=linux 9819 need_lib_prefix=no 9820 need_version=no 9821 hardcode_into_libs=yes 9822 if test "$host_cpu" = ia64; then 9823 # AIX 5 supports IA64 9824 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 9825 shlibpath_var=LD_LIBRARY_PATH 9826 else 9827 # With GCC up to 2.95.x, collect2 would create an import file 9828 # for dependence libraries. The import file would start with 9829 # the line `#! .'. This would cause the generated library to 9830 # depend on `.', always an invalid library. This was fixed in 9831 # development snapshots of GCC prior to 3.0. 9832 case $host_os in 9833 aix4 | aix4.[01] | aix4.[01].*) 9834 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9835 echo ' yes ' 9836 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 9837 : 9838 else 9839 can_build_shared=no 9840 fi 9841 ;; 9842 esac 9843 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 9844 # soname into executable. Probably we can add versioning support to 9845 # collect2, so additional links can be useful in future. 9846 if test "$aix_use_runtimelinking" = yes; then 9847 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9848 # instead of lib<name>.a to let people know that these are not 9849 # typical AIX shared libraries. 9850 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9851 else 9852 # We preserve .a as extension for shared libraries through AIX4.2 9853 # and later when we are not doing run time linking. 9854 library_names_spec='${libname}${release}.a $libname.a' 9855 soname_spec='${libname}${release}${shared_ext}$major' 9856 fi 9857 shlibpath_var=LIBPATH 9858 fi 9859 ;; 9860 9861amigaos*) 9862 case $host_cpu in 9863 powerpc) 9864 # Since July 2007 AmigaOS4 officially supports .so libraries. 9865 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 9866 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9867 ;; 9868 m68k) 9869 library_names_spec='$libname.ixlibrary $libname.a' 9870 # Create ${libname}_ixlibrary.a entries in /sys/libs. 9871 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' 9872 ;; 9873 esac 9874 ;; 9875 9876beos*) 9877 library_names_spec='${libname}${shared_ext}' 9878 dynamic_linker="$host_os ld.so" 9879 shlibpath_var=LIBRARY_PATH 9880 ;; 9881 9882bsdi[45]*) 9883 version_type=linux 9884 need_version=no 9885 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 9886 soname_spec='${libname}${release}${shared_ext}$major' 9887 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 9888 shlibpath_var=LD_LIBRARY_PATH 9889 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 9890 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 9891 # the default ld.so.conf also contains /usr/contrib/lib and 9892 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 9893 # libtool to hard-code these into programs 9894 ;; 9895 9896cygwin* | mingw* | pw32* | cegcc*) 9897 version_type=windows 9898 shrext_cmds=".dll" 9899 need_version=no 9900 need_lib_prefix=no 9901 9902 case $GCC,$cc_basename in 9903 yes,*) 9904 # gcc 9905 library_names_spec='$libname.dll.a' 9906 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9907 postinstall_cmds='base_file=`basename \${file}`~ 9908 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9909 dldir=$destdir/`dirname \$dlpath`~ 9910 test -d \$dldir || mkdir -p \$dldir~ 9911 $install_prog $dir/$dlname \$dldir/$dlname~ 9912 chmod a+x \$dldir/$dlname~ 9913 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 9914 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 9915 fi' 9916 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9917 dlpath=$dir/\$dldll~ 9918 $RM \$dlpath' 9919 shlibpath_overrides_runpath=yes 9920 9921 case $host_os in 9922 cygwin*) 9923 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 9924 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9925 9926 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 9927 ;; 9928 mingw* | cegcc*) 9929 # MinGW DLLs use traditional 'lib' prefix 9930 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9931 ;; 9932 pw32*) 9933 # pw32 DLLs use 'pw' prefix rather than 'lib' 9934 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9935 ;; 9936 esac 9937 dynamic_linker='Win32 ld.exe' 9938 ;; 9939 9940 *,cl*) 9941 # Native MSVC 9942 libname_spec='$name' 9943 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 9944 library_names_spec='${libname}.dll.lib' 9945 9946 case $build_os in 9947 mingw*) 9948 sys_lib_search_path_spec= 9949 lt_save_ifs=$IFS 9950 IFS=';' 9951 for lt_path in $LIB 9952 do 9953 IFS=$lt_save_ifs 9954 # Let DOS variable expansion print the short 8.3 style file name. 9955 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 9956 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 9957 done 9958 IFS=$lt_save_ifs 9959 # Convert to MSYS style. 9960 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 9961 ;; 9962 cygwin*) 9963 # Convert to unix form, then to dos form, then back to unix form 9964 # but this time dos style (no spaces!) so that the unix form looks 9965 # like /cygdrive/c/PROGRA~1:/cygdr... 9966 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 9967 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 9968 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9969 ;; 9970 *) 9971 sys_lib_search_path_spec="$LIB" 9972 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 9973 # It is most probably a Windows format PATH. 9974 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 9975 else 9976 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 9977 fi 9978 # FIXME: find the short name or the path components, as spaces are 9979 # common. (e.g. "Program Files" -> "PROGRA~1") 9980 ;; 9981 esac 9982 9983 # DLL is installed to $(libdir)/../bin by postinstall_cmds 9984 postinstall_cmds='base_file=`basename \${file}`~ 9985 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 9986 dldir=$destdir/`dirname \$dlpath`~ 9987 test -d \$dldir || mkdir -p \$dldir~ 9988 $install_prog $dir/$dlname \$dldir/$dlname' 9989 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 9990 dlpath=$dir/\$dldll~ 9991 $RM \$dlpath' 9992 shlibpath_overrides_runpath=yes 9993 dynamic_linker='Win32 link.exe' 9994 ;; 9995 9996 *) 9997 # Assume MSVC wrapper 9998 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 9999 dynamic_linker='Win32 ld.exe' 10000 ;; 10001 esac 10002 # FIXME: first we should search . and the directory the executable is in 10003 shlibpath_var=PATH 10004 ;; 10005 10006darwin* | rhapsody*) 10007 dynamic_linker="$host_os dyld" 10008 version_type=darwin 10009 need_lib_prefix=no 10010 need_version=no 10011 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10012 soname_spec='${libname}${release}${major}$shared_ext' 10013 shlibpath_overrides_runpath=yes 10014 shlibpath_var=DYLD_LIBRARY_PATH 10015 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10016 10017 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10018 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10019 ;; 10020 10021dgux*) 10022 version_type=linux 10023 need_lib_prefix=no 10024 need_version=no 10025 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10026 soname_spec='${libname}${release}${shared_ext}$major' 10027 shlibpath_var=LD_LIBRARY_PATH 10028 ;; 10029 10030freebsd1*) 10031 dynamic_linker=no 10032 ;; 10033 10034freebsd* | dragonfly*) 10035 # DragonFly does not have aout. When/if they implement a new 10036 # versioning mechanism, adjust this. 10037 if test -x /usr/bin/objformat; then 10038 objformat=`/usr/bin/objformat` 10039 else 10040 case $host_os in 10041 freebsd[123]*) objformat=aout ;; 10042 *) objformat=elf ;; 10043 esac 10044 fi 10045 version_type=freebsd-$objformat 10046 case $version_type in 10047 freebsd-elf*) 10048 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10049 need_version=no 10050 need_lib_prefix=no 10051 ;; 10052 freebsd-*) 10053 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10054 need_version=yes 10055 ;; 10056 esac 10057 shlibpath_var=LD_LIBRARY_PATH 10058 case $host_os in 10059 freebsd2*) 10060 shlibpath_overrides_runpath=yes 10061 ;; 10062 freebsd3.[01]* | freebsdelf3.[01]*) 10063 shlibpath_overrides_runpath=yes 10064 hardcode_into_libs=yes 10065 ;; 10066 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10067 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10068 shlibpath_overrides_runpath=no 10069 hardcode_into_libs=yes 10070 ;; 10071 *) # from 4.6 on, and DragonFly 10072 shlibpath_overrides_runpath=yes 10073 hardcode_into_libs=yes 10074 ;; 10075 esac 10076 ;; 10077 10078gnu*) 10079 version_type=linux 10080 need_lib_prefix=no 10081 need_version=no 10082 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10083 soname_spec='${libname}${release}${shared_ext}$major' 10084 shlibpath_var=LD_LIBRARY_PATH 10085 hardcode_into_libs=yes 10086 ;; 10087 10088haiku*) 10089 version_type=linux 10090 need_lib_prefix=no 10091 need_version=no 10092 dynamic_linker="$host_os runtime_loader" 10093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10094 soname_spec='${libname}${release}${shared_ext}$major' 10095 shlibpath_var=LIBRARY_PATH 10096 shlibpath_overrides_runpath=yes 10097 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10098 hardcode_into_libs=yes 10099 ;; 10100 10101hpux9* | hpux10* | hpux11*) 10102 # Give a soname corresponding to the major version so that dld.sl refuses to 10103 # link against other versions. 10104 version_type=sunos 10105 need_lib_prefix=no 10106 need_version=no 10107 case $host_cpu in 10108 ia64*) 10109 shrext_cmds='.so' 10110 hardcode_into_libs=yes 10111 dynamic_linker="$host_os dld.so" 10112 shlibpath_var=LD_LIBRARY_PATH 10113 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10114 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10115 soname_spec='${libname}${release}${shared_ext}$major' 10116 if test "X$HPUX_IA64_MODE" = X32; then 10117 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10118 else 10119 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10120 fi 10121 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10122 ;; 10123 hppa*64*) 10124 shrext_cmds='.sl' 10125 hardcode_into_libs=yes 10126 dynamic_linker="$host_os dld.sl" 10127 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10128 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10129 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10130 soname_spec='${libname}${release}${shared_ext}$major' 10131 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10132 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10133 ;; 10134 *) 10135 shrext_cmds='.sl' 10136 dynamic_linker="$host_os dld.sl" 10137 shlibpath_var=SHLIB_PATH 10138 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10139 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10140 soname_spec='${libname}${release}${shared_ext}$major' 10141 ;; 10142 esac 10143 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10144 postinstall_cmds='chmod 555 $lib' 10145 # or fails outright, so override atomically: 10146 install_override_mode=555 10147 ;; 10148 10149interix[3-9]*) 10150 version_type=linux 10151 need_lib_prefix=no 10152 need_version=no 10153 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10154 soname_spec='${libname}${release}${shared_ext}$major' 10155 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10156 shlibpath_var=LD_LIBRARY_PATH 10157 shlibpath_overrides_runpath=no 10158 hardcode_into_libs=yes 10159 ;; 10160 10161irix5* | irix6* | nonstopux*) 10162 case $host_os in 10163 nonstopux*) version_type=nonstopux ;; 10164 *) 10165 if test "$lt_cv_prog_gnu_ld" = yes; then 10166 version_type=linux 10167 else 10168 version_type=irix 10169 fi ;; 10170 esac 10171 need_lib_prefix=no 10172 need_version=no 10173 soname_spec='${libname}${release}${shared_ext}$major' 10174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10175 case $host_os in 10176 irix5* | nonstopux*) 10177 libsuff= shlibsuff= 10178 ;; 10179 *) 10180 case $LD in # libtool.m4 will add one of these switches to LD 10181 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10182 libsuff= shlibsuff= libmagic=32-bit;; 10183 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10184 libsuff=32 shlibsuff=N32 libmagic=N32;; 10185 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10186 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10187 *) libsuff= shlibsuff= libmagic=never-match;; 10188 esac 10189 ;; 10190 esac 10191 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10192 shlibpath_overrides_runpath=no 10193 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10194 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10195 hardcode_into_libs=yes 10196 ;; 10197 10198# No shared lib support for Linux oldld, aout, or coff. 10199linux*oldld* | linux*aout* | linux*coff*) 10200 dynamic_linker=no 10201 ;; 10202 10203# This must be Linux ELF. 10204linux* | k*bsd*-gnu | kopensolaris*-gnu) 10205 version_type=linux 10206 need_lib_prefix=no 10207 need_version=no 10208 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10209 soname_spec='${libname}${release}${shared_ext}$major' 10210 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10211 shlibpath_var=LD_LIBRARY_PATH 10212 shlibpath_overrides_runpath=no 10213 10214 # Some binutils ld are patched to set DT_RUNPATH 10215 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10216 $as_echo_n "(cached) " >&6 10217else 10218 lt_cv_shlibpath_overrides_runpath=no 10219 save_LDFLAGS=$LDFLAGS 10220 save_libdir=$libdir 10221 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10222 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10223 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10224/* end confdefs.h. */ 10225 10226int 10227main () 10228{ 10229 10230 ; 10231 return 0; 10232} 10233_ACEOF 10234if ac_fn_c_try_link "$LINENO"; then : 10235 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10236 lt_cv_shlibpath_overrides_runpath=yes 10237fi 10238fi 10239rm -f core conftest.err conftest.$ac_objext \ 10240 conftest$ac_exeext conftest.$ac_ext 10241 LDFLAGS=$save_LDFLAGS 10242 libdir=$save_libdir 10243 10244fi 10245 10246 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10247 10248 # This implies no fast_install, which is unacceptable. 10249 # Some rework will be needed to allow for fast_install 10250 # before this can be enabled. 10251 hardcode_into_libs=yes 10252 10253 # Append ld.so.conf contents to the search path 10254 if test -f /etc/ld.so.conf; then 10255 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' ' '` 10256 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10257 fi 10258 10259 # We used to test for /lib/ld.so.1 and disable shared libraries on 10260 # powerpc, because MkLinux only supported shared libraries with the 10261 # GNU dynamic linker. Since this was broken with cross compilers, 10262 # most powerpc-linux boxes support dynamic linking these days and 10263 # people can always --disable-shared, the test was removed, and we 10264 # assume the GNU/Linux dynamic linker is in use. 10265 dynamic_linker='GNU/Linux ld.so' 10266 ;; 10267 10268netbsd*) 10269 version_type=sunos 10270 need_lib_prefix=no 10271 need_version=no 10272 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10274 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10275 dynamic_linker='NetBSD (a.out) ld.so' 10276 else 10277 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10278 soname_spec='${libname}${release}${shared_ext}$major' 10279 dynamic_linker='NetBSD ld.elf_so' 10280 fi 10281 shlibpath_var=LD_LIBRARY_PATH 10282 shlibpath_overrides_runpath=yes 10283 hardcode_into_libs=yes 10284 ;; 10285 10286newsos6) 10287 version_type=linux 10288 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10289 shlibpath_var=LD_LIBRARY_PATH 10290 shlibpath_overrides_runpath=yes 10291 ;; 10292 10293*nto* | *qnx*) 10294 version_type=qnx 10295 need_lib_prefix=no 10296 need_version=no 10297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10298 soname_spec='${libname}${release}${shared_ext}$major' 10299 shlibpath_var=LD_LIBRARY_PATH 10300 shlibpath_overrides_runpath=no 10301 hardcode_into_libs=yes 10302 dynamic_linker='ldqnx.so' 10303 ;; 10304 10305openbsd*) 10306 version_type=sunos 10307 sys_lib_dlsearch_path_spec="/usr/lib" 10308 need_lib_prefix=no 10309 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10310 case $host_os in 10311 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10312 *) need_version=no ;; 10313 esac 10314 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10315 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10316 shlibpath_var=LD_LIBRARY_PATH 10317 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10318 case $host_os in 10319 openbsd2.[89] | openbsd2.[89].*) 10320 shlibpath_overrides_runpath=no 10321 ;; 10322 *) 10323 shlibpath_overrides_runpath=yes 10324 ;; 10325 esac 10326 else 10327 shlibpath_overrides_runpath=yes 10328 fi 10329 ;; 10330 10331os2*) 10332 libname_spec='$name' 10333 shrext_cmds=".dll" 10334 need_lib_prefix=no 10335 library_names_spec='$libname${shared_ext} $libname.a' 10336 dynamic_linker='OS/2 ld.exe' 10337 shlibpath_var=LIBPATH 10338 ;; 10339 10340osf3* | osf4* | osf5*) 10341 version_type=osf 10342 need_lib_prefix=no 10343 need_version=no 10344 soname_spec='${libname}${release}${shared_ext}$major' 10345 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10346 shlibpath_var=LD_LIBRARY_PATH 10347 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10348 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10349 ;; 10350 10351rdos*) 10352 dynamic_linker=no 10353 ;; 10354 10355solaris*) 10356 version_type=linux 10357 need_lib_prefix=no 10358 need_version=no 10359 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10360 soname_spec='${libname}${release}${shared_ext}$major' 10361 shlibpath_var=LD_LIBRARY_PATH 10362 shlibpath_overrides_runpath=yes 10363 hardcode_into_libs=yes 10364 # ldd complains unless libraries are executable 10365 postinstall_cmds='chmod +x $lib' 10366 ;; 10367 10368sunos4*) 10369 version_type=sunos 10370 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10371 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10372 shlibpath_var=LD_LIBRARY_PATH 10373 shlibpath_overrides_runpath=yes 10374 if test "$with_gnu_ld" = yes; then 10375 need_lib_prefix=no 10376 fi 10377 need_version=yes 10378 ;; 10379 10380sysv4 | sysv4.3*) 10381 version_type=linux 10382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10383 soname_spec='${libname}${release}${shared_ext}$major' 10384 shlibpath_var=LD_LIBRARY_PATH 10385 case $host_vendor in 10386 sni) 10387 shlibpath_overrides_runpath=no 10388 need_lib_prefix=no 10389 runpath_var=LD_RUN_PATH 10390 ;; 10391 siemens) 10392 need_lib_prefix=no 10393 ;; 10394 motorola) 10395 need_lib_prefix=no 10396 need_version=no 10397 shlibpath_overrides_runpath=no 10398 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10399 ;; 10400 esac 10401 ;; 10402 10403sysv4*MP*) 10404 if test -d /usr/nec ;then 10405 version_type=linux 10406 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10407 soname_spec='$libname${shared_ext}.$major' 10408 shlibpath_var=LD_LIBRARY_PATH 10409 fi 10410 ;; 10411 10412sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10413 version_type=freebsd-elf 10414 need_lib_prefix=no 10415 need_version=no 10416 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10417 soname_spec='${libname}${release}${shared_ext}$major' 10418 shlibpath_var=LD_LIBRARY_PATH 10419 shlibpath_overrides_runpath=yes 10420 hardcode_into_libs=yes 10421 if test "$with_gnu_ld" = yes; then 10422 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10423 else 10424 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10425 case $host_os in 10426 sco3.2v5*) 10427 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10428 ;; 10429 esac 10430 fi 10431 sys_lib_dlsearch_path_spec='/usr/lib' 10432 ;; 10433 10434tpf*) 10435 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10436 version_type=linux 10437 need_lib_prefix=no 10438 need_version=no 10439 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10440 shlibpath_var=LD_LIBRARY_PATH 10441 shlibpath_overrides_runpath=no 10442 hardcode_into_libs=yes 10443 ;; 10444 10445uts4*) 10446 version_type=linux 10447 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10448 soname_spec='${libname}${release}${shared_ext}$major' 10449 shlibpath_var=LD_LIBRARY_PATH 10450 ;; 10451 10452*) 10453 dynamic_linker=no 10454 ;; 10455esac 10456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10457$as_echo "$dynamic_linker" >&6; } 10458test "$dynamic_linker" = no && can_build_shared=no 10459 10460variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10461if test "$GCC" = yes; then 10462 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10463fi 10464 10465if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10466 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10467fi 10468if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10469 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10470fi 10471 10472 10473 10474 10475 10476 10477 10478 10479 10480 10481 10482 10483 10484 10485 10486 10487 10488 10489 10490 10491 10492 10493 10494 10495 10496 10497 10498 10499 10500 10501 10502 10503 10504 10505 10506 10507 10508 10509 10510 10511 10512 10513 10514 10515 10516 10517 10518 10519 10520 10521 10522 10523 10524 10525 10526 10527 10528 10529 10530 10531 10532 10533 10534 10535 10536 10537 10538 10539 10540 10541 10542 10543 10544 10545 10546 10547 10548 10549 10550 10551 10552 10553 10554 10555 10556 10557 10558 10559 10560 10561 10562 10563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10564$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10565hardcode_action= 10566if test -n "$hardcode_libdir_flag_spec" || 10567 test -n "$runpath_var" || 10568 test "X$hardcode_automatic" = "Xyes" ; then 10569 10570 # We can hardcode non-existent directories. 10571 if test "$hardcode_direct" != no && 10572 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10573 # have to relink, otherwise we might link with an installed library 10574 # when we should be linking with a yet-to-be-installed one 10575 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10576 test "$hardcode_minus_L" != no; then 10577 # Linking always hardcodes the temporary library directory. 10578 hardcode_action=relink 10579 else 10580 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10581 hardcode_action=immediate 10582 fi 10583else 10584 # We cannot hardcode anything, or else we can only hardcode existing 10585 # directories. 10586 hardcode_action=unsupported 10587fi 10588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10589$as_echo "$hardcode_action" >&6; } 10590 10591if test "$hardcode_action" = relink || 10592 test "$inherit_rpath" = yes; then 10593 # Fast installation is not supported 10594 enable_fast_install=no 10595elif test "$shlibpath_overrides_runpath" = yes || 10596 test "$enable_shared" = no; then 10597 # Fast installation is not necessary 10598 enable_fast_install=needless 10599fi 10600 10601 10602 10603 10604 10605 10606 if test "x$enable_dlopen" != xyes; then 10607 enable_dlopen=unknown 10608 enable_dlopen_self=unknown 10609 enable_dlopen_self_static=unknown 10610else 10611 lt_cv_dlopen=no 10612 lt_cv_dlopen_libs= 10613 10614 case $host_os in 10615 beos*) 10616 lt_cv_dlopen="load_add_on" 10617 lt_cv_dlopen_libs= 10618 lt_cv_dlopen_self=yes 10619 ;; 10620 10621 mingw* | pw32* | cegcc*) 10622 lt_cv_dlopen="LoadLibrary" 10623 lt_cv_dlopen_libs= 10624 ;; 10625 10626 cygwin*) 10627 lt_cv_dlopen="dlopen" 10628 lt_cv_dlopen_libs= 10629 ;; 10630 10631 darwin*) 10632 # if libdl is installed we need to link against it 10633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10634$as_echo_n "checking for dlopen in -ldl... " >&6; } 10635if ${ac_cv_lib_dl_dlopen+:} false; then : 10636 $as_echo_n "(cached) " >&6 10637else 10638 ac_check_lib_save_LIBS=$LIBS 10639LIBS="-ldl $LIBS" 10640cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10641/* end confdefs.h. */ 10642 10643/* Override any GCC internal prototype to avoid an error. 10644 Use char because int might match the return type of a GCC 10645 builtin and then its argument prototype would still apply. */ 10646#ifdef __cplusplus 10647extern "C" 10648#endif 10649char dlopen (); 10650int 10651main () 10652{ 10653return dlopen (); 10654 ; 10655 return 0; 10656} 10657_ACEOF 10658if ac_fn_c_try_link "$LINENO"; then : 10659 ac_cv_lib_dl_dlopen=yes 10660else 10661 ac_cv_lib_dl_dlopen=no 10662fi 10663rm -f core conftest.err conftest.$ac_objext \ 10664 conftest$ac_exeext conftest.$ac_ext 10665LIBS=$ac_check_lib_save_LIBS 10666fi 10667{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10668$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10669if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10670 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10671else 10672 10673 lt_cv_dlopen="dyld" 10674 lt_cv_dlopen_libs= 10675 lt_cv_dlopen_self=yes 10676 10677fi 10678 10679 ;; 10680 10681 *) 10682 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10683if test "x$ac_cv_func_shl_load" = xyes; then : 10684 lt_cv_dlopen="shl_load" 10685else 10686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10687$as_echo_n "checking for shl_load in -ldld... " >&6; } 10688if ${ac_cv_lib_dld_shl_load+:} false; then : 10689 $as_echo_n "(cached) " >&6 10690else 10691 ac_check_lib_save_LIBS=$LIBS 10692LIBS="-ldld $LIBS" 10693cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10694/* end confdefs.h. */ 10695 10696/* Override any GCC internal prototype to avoid an error. 10697 Use char because int might match the return type of a GCC 10698 builtin and then its argument prototype would still apply. */ 10699#ifdef __cplusplus 10700extern "C" 10701#endif 10702char shl_load (); 10703int 10704main () 10705{ 10706return shl_load (); 10707 ; 10708 return 0; 10709} 10710_ACEOF 10711if ac_fn_c_try_link "$LINENO"; then : 10712 ac_cv_lib_dld_shl_load=yes 10713else 10714 ac_cv_lib_dld_shl_load=no 10715fi 10716rm -f core conftest.err conftest.$ac_objext \ 10717 conftest$ac_exeext conftest.$ac_ext 10718LIBS=$ac_check_lib_save_LIBS 10719fi 10720{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10721$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10722if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10723 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 10724else 10725 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10726if test "x$ac_cv_func_dlopen" = xyes; then : 10727 lt_cv_dlopen="dlopen" 10728else 10729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10730$as_echo_n "checking for dlopen in -ldl... " >&6; } 10731if ${ac_cv_lib_dl_dlopen+:} false; then : 10732 $as_echo_n "(cached) " >&6 10733else 10734 ac_check_lib_save_LIBS=$LIBS 10735LIBS="-ldl $LIBS" 10736cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10737/* end confdefs.h. */ 10738 10739/* Override any GCC internal prototype to avoid an error. 10740 Use char because int might match the return type of a GCC 10741 builtin and then its argument prototype would still apply. */ 10742#ifdef __cplusplus 10743extern "C" 10744#endif 10745char dlopen (); 10746int 10747main () 10748{ 10749return dlopen (); 10750 ; 10751 return 0; 10752} 10753_ACEOF 10754if ac_fn_c_try_link "$LINENO"; then : 10755 ac_cv_lib_dl_dlopen=yes 10756else 10757 ac_cv_lib_dl_dlopen=no 10758fi 10759rm -f core conftest.err conftest.$ac_objext \ 10760 conftest$ac_exeext conftest.$ac_ext 10761LIBS=$ac_check_lib_save_LIBS 10762fi 10763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10764$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10765if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10766 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 10767else 10768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10769$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10770if ${ac_cv_lib_svld_dlopen+:} false; then : 10771 $as_echo_n "(cached) " >&6 10772else 10773 ac_check_lib_save_LIBS=$LIBS 10774LIBS="-lsvld $LIBS" 10775cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10776/* end confdefs.h. */ 10777 10778/* Override any GCC internal prototype to avoid an error. 10779 Use char because int might match the return type of a GCC 10780 builtin and then its argument prototype would still apply. */ 10781#ifdef __cplusplus 10782extern "C" 10783#endif 10784char dlopen (); 10785int 10786main () 10787{ 10788return dlopen (); 10789 ; 10790 return 0; 10791} 10792_ACEOF 10793if ac_fn_c_try_link "$LINENO"; then : 10794 ac_cv_lib_svld_dlopen=yes 10795else 10796 ac_cv_lib_svld_dlopen=no 10797fi 10798rm -f core conftest.err conftest.$ac_objext \ 10799 conftest$ac_exeext conftest.$ac_ext 10800LIBS=$ac_check_lib_save_LIBS 10801fi 10802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 10803$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 10804if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 10805 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 10806else 10807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 10808$as_echo_n "checking for dld_link in -ldld... " >&6; } 10809if ${ac_cv_lib_dld_dld_link+:} false; then : 10810 $as_echo_n "(cached) " >&6 10811else 10812 ac_check_lib_save_LIBS=$LIBS 10813LIBS="-ldld $LIBS" 10814cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10815/* end confdefs.h. */ 10816 10817/* Override any GCC internal prototype to avoid an error. 10818 Use char because int might match the return type of a GCC 10819 builtin and then its argument prototype would still apply. */ 10820#ifdef __cplusplus 10821extern "C" 10822#endif 10823char dld_link (); 10824int 10825main () 10826{ 10827return dld_link (); 10828 ; 10829 return 0; 10830} 10831_ACEOF 10832if ac_fn_c_try_link "$LINENO"; then : 10833 ac_cv_lib_dld_dld_link=yes 10834else 10835 ac_cv_lib_dld_dld_link=no 10836fi 10837rm -f core conftest.err conftest.$ac_objext \ 10838 conftest$ac_exeext conftest.$ac_ext 10839LIBS=$ac_check_lib_save_LIBS 10840fi 10841{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 10842$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 10843if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 10844 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 10845fi 10846 10847 10848fi 10849 10850 10851fi 10852 10853 10854fi 10855 10856 10857fi 10858 10859 10860fi 10861 10862 ;; 10863 esac 10864 10865 if test "x$lt_cv_dlopen" != xno; then 10866 enable_dlopen=yes 10867 else 10868 enable_dlopen=no 10869 fi 10870 10871 case $lt_cv_dlopen in 10872 dlopen) 10873 save_CPPFLAGS="$CPPFLAGS" 10874 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 10875 10876 save_LDFLAGS="$LDFLAGS" 10877 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 10878 10879 save_LIBS="$LIBS" 10880 LIBS="$lt_cv_dlopen_libs $LIBS" 10881 10882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 10883$as_echo_n "checking whether a program can dlopen itself... " >&6; } 10884if ${lt_cv_dlopen_self+:} false; then : 10885 $as_echo_n "(cached) " >&6 10886else 10887 if test "$cross_compiling" = yes; then : 10888 lt_cv_dlopen_self=cross 10889else 10890 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10891 lt_status=$lt_dlunknown 10892 cat > conftest.$ac_ext <<_LT_EOF 10893#line $LINENO "configure" 10894#include "confdefs.h" 10895 10896#if HAVE_DLFCN_H 10897#include <dlfcn.h> 10898#endif 10899 10900#include <stdio.h> 10901 10902#ifdef RTLD_GLOBAL 10903# define LT_DLGLOBAL RTLD_GLOBAL 10904#else 10905# ifdef DL_GLOBAL 10906# define LT_DLGLOBAL DL_GLOBAL 10907# else 10908# define LT_DLGLOBAL 0 10909# endif 10910#endif 10911 10912/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 10913 find out it does not work in some platform. */ 10914#ifndef LT_DLLAZY_OR_NOW 10915# ifdef RTLD_LAZY 10916# define LT_DLLAZY_OR_NOW RTLD_LAZY 10917# else 10918# ifdef DL_LAZY 10919# define LT_DLLAZY_OR_NOW DL_LAZY 10920# else 10921# ifdef RTLD_NOW 10922# define LT_DLLAZY_OR_NOW RTLD_NOW 10923# else 10924# ifdef DL_NOW 10925# define LT_DLLAZY_OR_NOW DL_NOW 10926# else 10927# define LT_DLLAZY_OR_NOW 0 10928# endif 10929# endif 10930# endif 10931# endif 10932#endif 10933 10934/* When -fvisbility=hidden is used, assume the code has been annotated 10935 correspondingly for the symbols needed. */ 10936#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 10937int fnord () __attribute__((visibility("default"))); 10938#endif 10939 10940int fnord () { return 42; } 10941int main () 10942{ 10943 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 10944 int status = $lt_dlunknown; 10945 10946 if (self) 10947 { 10948 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 10949 else 10950 { 10951 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 10952 else puts (dlerror ()); 10953 } 10954 /* dlclose (self); */ 10955 } 10956 else 10957 puts (dlerror ()); 10958 10959 return status; 10960} 10961_LT_EOF 10962 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 10963 (eval $ac_link) 2>&5 10964 ac_status=$? 10965 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10966 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 10967 (./conftest; exit; ) >&5 2>/dev/null 10968 lt_status=$? 10969 case x$lt_status in 10970 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 10971 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 10972 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 10973 esac 10974 else : 10975 # compilation failed 10976 lt_cv_dlopen_self=no 10977 fi 10978fi 10979rm -fr conftest* 10980 10981 10982fi 10983{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 10984$as_echo "$lt_cv_dlopen_self" >&6; } 10985 10986 if test "x$lt_cv_dlopen_self" = xyes; then 10987 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 10988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 10989$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 10990if ${lt_cv_dlopen_self_static+:} false; then : 10991 $as_echo_n "(cached) " >&6 10992else 10993 if test "$cross_compiling" = yes; then : 10994 lt_cv_dlopen_self_static=cross 10995else 10996 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 10997 lt_status=$lt_dlunknown 10998 cat > conftest.$ac_ext <<_LT_EOF 10999#line $LINENO "configure" 11000#include "confdefs.h" 11001 11002#if HAVE_DLFCN_H 11003#include <dlfcn.h> 11004#endif 11005 11006#include <stdio.h> 11007 11008#ifdef RTLD_GLOBAL 11009# define LT_DLGLOBAL RTLD_GLOBAL 11010#else 11011# ifdef DL_GLOBAL 11012# define LT_DLGLOBAL DL_GLOBAL 11013# else 11014# define LT_DLGLOBAL 0 11015# endif 11016#endif 11017 11018/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11019 find out it does not work in some platform. */ 11020#ifndef LT_DLLAZY_OR_NOW 11021# ifdef RTLD_LAZY 11022# define LT_DLLAZY_OR_NOW RTLD_LAZY 11023# else 11024# ifdef DL_LAZY 11025# define LT_DLLAZY_OR_NOW DL_LAZY 11026# else 11027# ifdef RTLD_NOW 11028# define LT_DLLAZY_OR_NOW RTLD_NOW 11029# else 11030# ifdef DL_NOW 11031# define LT_DLLAZY_OR_NOW DL_NOW 11032# else 11033# define LT_DLLAZY_OR_NOW 0 11034# endif 11035# endif 11036# endif 11037# endif 11038#endif 11039 11040/* When -fvisbility=hidden is used, assume the code has been annotated 11041 correspondingly for the symbols needed. */ 11042#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11043int fnord () __attribute__((visibility("default"))); 11044#endif 11045 11046int fnord () { return 42; } 11047int main () 11048{ 11049 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11050 int status = $lt_dlunknown; 11051 11052 if (self) 11053 { 11054 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11055 else 11056 { 11057 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11058 else puts (dlerror ()); 11059 } 11060 /* dlclose (self); */ 11061 } 11062 else 11063 puts (dlerror ()); 11064 11065 return status; 11066} 11067_LT_EOF 11068 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11069 (eval $ac_link) 2>&5 11070 ac_status=$? 11071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11072 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11073 (./conftest; exit; ) >&5 2>/dev/null 11074 lt_status=$? 11075 case x$lt_status in 11076 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11077 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11078 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11079 esac 11080 else : 11081 # compilation failed 11082 lt_cv_dlopen_self_static=no 11083 fi 11084fi 11085rm -fr conftest* 11086 11087 11088fi 11089{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11090$as_echo "$lt_cv_dlopen_self_static" >&6; } 11091 fi 11092 11093 CPPFLAGS="$save_CPPFLAGS" 11094 LDFLAGS="$save_LDFLAGS" 11095 LIBS="$save_LIBS" 11096 ;; 11097 esac 11098 11099 case $lt_cv_dlopen_self in 11100 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11101 *) enable_dlopen_self=unknown ;; 11102 esac 11103 11104 case $lt_cv_dlopen_self_static in 11105 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11106 *) enable_dlopen_self_static=unknown ;; 11107 esac 11108fi 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126striplib= 11127old_striplib= 11128{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11129$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11130if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11131 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11132 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11134$as_echo "yes" >&6; } 11135else 11136# FIXME - insert some real tests, host_os isn't really good enough 11137 case $host_os in 11138 darwin*) 11139 if test -n "$STRIP" ; then 11140 striplib="$STRIP -x" 11141 old_striplib="$STRIP -S" 11142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11143$as_echo "yes" >&6; } 11144 else 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11146$as_echo "no" >&6; } 11147 fi 11148 ;; 11149 *) 11150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11151$as_echo "no" >&6; } 11152 ;; 11153 esac 11154fi 11155 11156 11157 11158 11159 11160 11161 11162 11163 11164 11165 11166 11167 # Report which library types will actually be built 11168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11169$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11171$as_echo "$can_build_shared" >&6; } 11172 11173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11174$as_echo_n "checking whether to build shared libraries... " >&6; } 11175 test "$can_build_shared" = "no" && enable_shared=no 11176 11177 # On AIX, shared libraries and static libraries use the same namespace, and 11178 # are all built from PIC. 11179 case $host_os in 11180 aix3*) 11181 test "$enable_shared" = yes && enable_static=no 11182 if test -n "$RANLIB"; then 11183 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11184 postinstall_cmds='$RANLIB $lib' 11185 fi 11186 ;; 11187 11188 aix[4-9]*) 11189 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11190 test "$enable_shared" = yes && enable_static=no 11191 fi 11192 ;; 11193 esac 11194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11195$as_echo "$enable_shared" >&6; } 11196 11197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11198$as_echo_n "checking whether to build static libraries... " >&6; } 11199 # Make sure either enable_shared or enable_static is yes. 11200 test "$enable_shared" = yes || enable_static=yes 11201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11202$as_echo "$enable_static" >&6; } 11203 11204 11205 11206 11207fi 11208ac_ext=c 11209ac_cpp='$CPP $CPPFLAGS' 11210ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11211ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11212ac_compiler_gnu=$ac_cv_c_compiler_gnu 11213 11214CC="$lt_save_CC" 11215 11216 11217 11218 11219 11220 11221 11222 11223 11224 11225 11226 11227 11228 ac_config_commands="$ac_config_commands libtool" 11229 11230 11231 11232 11233# Only expand once: 11234 11235 11236 11237# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 11238 11239 11240 11241 11242 11243 11244 11245 11246 11247 11248 11249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 11250$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 11251if ${ac_cv_prog_cc_c99+:} false; then : 11252 $as_echo_n "(cached) " >&6 11253else 11254 ac_cv_prog_cc_c99=no 11255ac_save_CC=$CC 11256cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11257/* end confdefs.h. */ 11258#include <stdarg.h> 11259#include <stdbool.h> 11260#include <stdlib.h> 11261#include <wchar.h> 11262#include <stdio.h> 11263 11264// Check varargs macros. These examples are taken from C99 6.10.3.5. 11265#define debug(...) fprintf (stderr, __VA_ARGS__) 11266#define showlist(...) puts (#__VA_ARGS__) 11267#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 11268static void 11269test_varargs_macros (void) 11270{ 11271 int x = 1234; 11272 int y = 5678; 11273 debug ("Flag"); 11274 debug ("X = %d\n", x); 11275 showlist (The first, second, and third items.); 11276 report (x>y, "x is %d but y is %d", x, y); 11277} 11278 11279// Check long long types. 11280#define BIG64 18446744073709551615ull 11281#define BIG32 4294967295ul 11282#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 11283#if !BIG_OK 11284 your preprocessor is broken; 11285#endif 11286#if BIG_OK 11287#else 11288 your preprocessor is broken; 11289#endif 11290static long long int bignum = -9223372036854775807LL; 11291static unsigned long long int ubignum = BIG64; 11292 11293struct incomplete_array 11294{ 11295 int datasize; 11296 double data[]; 11297}; 11298 11299struct named_init { 11300 int number; 11301 const wchar_t *name; 11302 double average; 11303}; 11304 11305typedef const char *ccp; 11306 11307static inline int 11308test_restrict (ccp restrict text) 11309{ 11310 // See if C++-style comments work. 11311 // Iterate through items via the restricted pointer. 11312 // Also check for declarations in for loops. 11313 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 11314 continue; 11315 return 0; 11316} 11317 11318// Check varargs and va_copy. 11319static void 11320test_varargs (const char *format, ...) 11321{ 11322 va_list args; 11323 va_start (args, format); 11324 va_list args_copy; 11325 va_copy (args_copy, args); 11326 11327 const char *str; 11328 int number; 11329 float fnumber; 11330 11331 while (*format) 11332 { 11333 switch (*format++) 11334 { 11335 case 's': // string 11336 str = va_arg (args_copy, const char *); 11337 break; 11338 case 'd': // int 11339 number = va_arg (args_copy, int); 11340 break; 11341 case 'f': // float 11342 fnumber = va_arg (args_copy, double); 11343 break; 11344 default: 11345 break; 11346 } 11347 } 11348 va_end (args_copy); 11349 va_end (args); 11350} 11351 11352int 11353main () 11354{ 11355 11356 // Check bool. 11357 _Bool success = false; 11358 11359 // Check restrict. 11360 if (test_restrict ("String literal") == 0) 11361 success = true; 11362 char *restrict newvar = "Another string"; 11363 11364 // Check varargs. 11365 test_varargs ("s, d' f .", "string", 65, 34.234); 11366 test_varargs_macros (); 11367 11368 // Check flexible array members. 11369 struct incomplete_array *ia = 11370 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 11371 ia->datasize = 10; 11372 for (int i = 0; i < ia->datasize; ++i) 11373 ia->data[i] = i * 1.234; 11374 11375 // Check named initializers. 11376 struct named_init ni = { 11377 .number = 34, 11378 .name = L"Test wide string", 11379 .average = 543.34343, 11380 }; 11381 11382 ni.number = 58; 11383 11384 int dynamic_array[ni.number]; 11385 dynamic_array[ni.number - 1] = 543; 11386 11387 // work around unused variable warnings 11388 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 11389 || dynamic_array[ni.number - 1] != 543); 11390 11391 ; 11392 return 0; 11393} 11394_ACEOF 11395for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 11396do 11397 CC="$ac_save_CC $ac_arg" 11398 if ac_fn_c_try_compile "$LINENO"; then : 11399 ac_cv_prog_cc_c99=$ac_arg 11400fi 11401rm -f core conftest.err conftest.$ac_objext 11402 test "x$ac_cv_prog_cc_c99" != "xno" && break 11403done 11404rm -f conftest.$ac_ext 11405CC=$ac_save_CC 11406 11407fi 11408# AC_CACHE_VAL 11409case "x$ac_cv_prog_cc_c99" in 11410 x) 11411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 11412$as_echo "none needed" >&6; } ;; 11413 xno) 11414 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 11415$as_echo "unsupported" >&6; } ;; 11416 *) 11417 CC="$CC $ac_cv_prog_cc_c99" 11418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 11419$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 11420esac 11421if test "x$ac_cv_prog_cc_c99" != xno; then : 11422 11423fi 11424 11425 11426 11427 11428ac_fn_c_check_decl "$LINENO" "__clang__" "ac_cv_have_decl___clang__" "$ac_includes_default" 11429if test "x$ac_cv_have_decl___clang__" = xyes; then : 11430 CLANGCC="yes" 11431else 11432 CLANGCC="no" 11433fi 11434 11435ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 11436if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 11437 INTELCC="yes" 11438else 11439 INTELCC="no" 11440fi 11441 11442ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 11443if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 11444 SUNCC="yes" 11445else 11446 SUNCC="no" 11447fi 11448 11449 11450 11451 11452if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 11453 if test -n "$ac_tool_prefix"; then 11454 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 11455set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 11456{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11457$as_echo_n "checking for $ac_word... " >&6; } 11458if ${ac_cv_path_PKG_CONFIG+:} false; then : 11459 $as_echo_n "(cached) " >&6 11460else 11461 case $PKG_CONFIG in 11462 [\\/]* | ?:[\\/]*) 11463 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 11464 ;; 11465 *) 11466 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11467for as_dir in $PATH 11468do 11469 IFS=$as_save_IFS 11470 test -z "$as_dir" && as_dir=. 11471 for ac_exec_ext in '' $ac_executable_extensions; do 11472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11473 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11475 break 2 11476 fi 11477done 11478 done 11479IFS=$as_save_IFS 11480 11481 ;; 11482esac 11483fi 11484PKG_CONFIG=$ac_cv_path_PKG_CONFIG 11485if test -n "$PKG_CONFIG"; then 11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 11487$as_echo "$PKG_CONFIG" >&6; } 11488else 11489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11490$as_echo "no" >&6; } 11491fi 11492 11493 11494fi 11495if test -z "$ac_cv_path_PKG_CONFIG"; then 11496 ac_pt_PKG_CONFIG=$PKG_CONFIG 11497 # Extract the first word of "pkg-config", so it can be a program name with args. 11498set dummy pkg-config; ac_word=$2 11499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11500$as_echo_n "checking for $ac_word... " >&6; } 11501if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 11502 $as_echo_n "(cached) " >&6 11503else 11504 case $ac_pt_PKG_CONFIG in 11505 [\\/]* | ?:[\\/]*) 11506 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 11507 ;; 11508 *) 11509 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11510for as_dir in $PATH 11511do 11512 IFS=$as_save_IFS 11513 test -z "$as_dir" && as_dir=. 11514 for ac_exec_ext in '' $ac_executable_extensions; do 11515 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11516 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 11517 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11518 break 2 11519 fi 11520done 11521 done 11522IFS=$as_save_IFS 11523 11524 ;; 11525esac 11526fi 11527ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 11528if test -n "$ac_pt_PKG_CONFIG"; then 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 11530$as_echo "$ac_pt_PKG_CONFIG" >&6; } 11531else 11532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11533$as_echo "no" >&6; } 11534fi 11535 11536 if test "x$ac_pt_PKG_CONFIG" = x; then 11537 PKG_CONFIG="" 11538 else 11539 case $cross_compiling:$ac_tool_warned in 11540yes:) 11541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11543ac_tool_warned=yes ;; 11544esac 11545 PKG_CONFIG=$ac_pt_PKG_CONFIG 11546 fi 11547else 11548 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 11549fi 11550 11551fi 11552if test -n "$PKG_CONFIG"; then 11553 _pkg_min_version=0.9.0 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 11555$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 11556 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11558$as_echo "yes" >&6; } 11559 else 11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11561$as_echo "no" >&6; } 11562 PKG_CONFIG="" 11563 fi 11564 11565fi 11566 11567 11568 11569 11570 11571if test "x$GCC" = xyes ; then 11572 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 11573-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 11574-Wbad-function-cast -Wformat=2" 11575 case `$CC -dumpversion` in 11576 3.4.* | 4.*) 11577 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 11578 ;; 11579 esac 11580else 11581 if test "x$SUNCC" = "xyes"; then 11582 CWARNFLAGS="-v" 11583 fi 11584fi 11585 11586 11587 11588# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 11589 11590 11591 11592 11593# Check whether --enable-strict-compilation was given. 11594if test "${enable_strict_compilation+set}" = set; then : 11595 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 11596else 11597 STRICT_COMPILE=no 11598fi 11599 11600if test "x$GCC" = xyes ; then 11601 STRICT_CFLAGS="-pedantic -Werror" 11602 # Add -Werror=attributes if supported (gcc 4.2 & later) 11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC supports -Werror=attributes" >&5 11604$as_echo_n "checking if $CC supports -Werror=attributes... " >&6; } 11605 save_CFLAGS="$CFLAGS" 11606 CFLAGS="$CFLAGS $STRICT_CFLAGS -Werror=attributes" 11607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11608/* end confdefs.h. */ 11609return 0; 11610_ACEOF 11611if ac_fn_c_try_compile "$LINENO"; then : 11612 STRICT_CFLAGS="$STRICT_CFLAGS -Werror=attributes" 11613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11614$as_echo "yes" >&6; } 11615else 11616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11617$as_echo "no" >&6; } 11618fi 11619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 11620 CFLAGS="$save_CFLAGS" 11621elif test "x$SUNCC" = "xyes"; then 11622 STRICT_CFLAGS="-errwarn" 11623elif test "x$INTELCC" = "xyes"; then 11624 STRICT_CFLAGS="-Werror" 11625fi 11626if test "x$STRICT_COMPILE" = "xyes"; then 11627 CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 11628fi 11629 11630 11631 11632 11633 11634cat >>confdefs.h <<_ACEOF 11635#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 11636_ACEOF 11637 11638 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 11639 if test "x$PVM" = "x"; then 11640 PVM="0" 11641 fi 11642 11643cat >>confdefs.h <<_ACEOF 11644#define PACKAGE_VERSION_MINOR $PVM 11645_ACEOF 11646 11647 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 11648 if test "x$PVP" = "x"; then 11649 PVP="0" 11650 fi 11651 11652cat >>confdefs.h <<_ACEOF 11653#define PACKAGE_VERSION_PATCHLEVEL $PVP 11654_ACEOF 11655 11656 11657 11658CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 11659mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 11660|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 11661echo 'git directory not found: installing possibly empty changelog.' >&2)" 11662 11663 11664 11665 11666macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 11667INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 11668mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 11669|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 11670echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 11671 11672 11673 11674 11675 11676 11677if test x$APP_MAN_SUFFIX = x ; then 11678 APP_MAN_SUFFIX=1 11679fi 11680if test x$APP_MAN_DIR = x ; then 11681 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 11682fi 11683 11684if test x$LIB_MAN_SUFFIX = x ; then 11685 LIB_MAN_SUFFIX=3 11686fi 11687if test x$LIB_MAN_DIR = x ; then 11688 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 11689fi 11690 11691if test x$FILE_MAN_SUFFIX = x ; then 11692 case $host_os in 11693 solaris*) FILE_MAN_SUFFIX=4 ;; 11694 *) FILE_MAN_SUFFIX=5 ;; 11695 esac 11696fi 11697if test x$FILE_MAN_DIR = x ; then 11698 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 11699fi 11700 11701if test x$MISC_MAN_SUFFIX = x ; then 11702 case $host_os in 11703 solaris*) MISC_MAN_SUFFIX=5 ;; 11704 *) MISC_MAN_SUFFIX=7 ;; 11705 esac 11706fi 11707if test x$MISC_MAN_DIR = x ; then 11708 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 11709fi 11710 11711if test x$DRIVER_MAN_SUFFIX = x ; then 11712 case $host_os in 11713 solaris*) DRIVER_MAN_SUFFIX=7 ;; 11714 *) DRIVER_MAN_SUFFIX=4 ;; 11715 esac 11716fi 11717if test x$DRIVER_MAN_DIR = x ; then 11718 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 11719fi 11720 11721if test x$ADMIN_MAN_SUFFIX = x ; then 11722 case $host_os in 11723 solaris*) ADMIN_MAN_SUFFIX=1m ;; 11724 *) ADMIN_MAN_SUFFIX=8 ;; 11725 esac 11726fi 11727if test x$ADMIN_MAN_DIR = x ; then 11728 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 11729fi 11730 11731 11732 11733 11734 11735 11736 11737 11738 11739 11740 11741 11742 11743 11744 11745XORG_MAN_PAGE="X Version 11" 11746 11747MAN_SUBSTS="\ 11748 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11749 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 11750 -e 's|__xservername__|Xorg|g' \ 11751 -e 's|__xconfigfile__|xorg.conf|g' \ 11752 -e 's|__projectroot__|\$(prefix)|g' \ 11753 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 11754 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 11755 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 11756 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 11757 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 11758 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 11759 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 11760 11761 11762 11763# Check whether --enable-silent-rules was given. 11764if test "${enable_silent_rules+set}" = set; then : 11765 enableval=$enable_silent_rules; 11766fi 11767 11768case $enable_silent_rules in 11769yes) AM_DEFAULT_VERBOSITY=0;; 11770no) AM_DEFAULT_VERBOSITY=1;; 11771*) AM_DEFAULT_VERBOSITY=0;; 11772esac 11773AM_BACKSLASH='\' 11774 11775 11776 11777 11778# Check whether --with-icondir was given. 11779if test "${with_icondir+set}" = set; then : 11780 withval=$with_icondir; ICONDIR="$withval" 11781else 11782 ICONDIR=${datadir}/icons 11783fi 11784 11785 11786 11787DEF_CURSORPATH="~/.icons:${datadir}/icons:${datadir}/pixmaps" 11788if test "x${ICONDIR}" != "x${datadir}/icons"; then 11789 DEF_CURSORPATH="${DEF_CURSORPATH}:${ICONDIR}" 11790fi 11791 11792# Check whether --with-cursorpath was given. 11793if test "${with_cursorpath+set}" = set; then : 11794 withval=$with_cursorpath; XCURSORPATH="$withval" 11795else 11796 XCURSORPATH=$DEF_CURSORPATH 11797fi 11798 11799 11800 11801# Obtain compiler/linker options for depedencies 11802 11803pkg_failed=no 11804{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XCURSOR" >&5 11805$as_echo_n "checking for XCURSOR... " >&6; } 11806 11807if test -n "$XCURSOR_CFLAGS"; then 11808 pkg_cv_XCURSOR_CFLAGS="$XCURSOR_CFLAGS" 11809 elif test -n "$PKG_CONFIG"; then 11810 if test -n "$PKG_CONFIG" && \ 11811 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5 11812 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5 11813 ac_status=$? 11814 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11815 test $ac_status = 0; }; then 11816 pkg_cv_XCURSOR_CFLAGS=`$PKG_CONFIG --cflags "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null` 11817else 11818 pkg_failed=yes 11819fi 11820 else 11821 pkg_failed=untried 11822fi 11823if test -n "$XCURSOR_LIBS"; then 11824 pkg_cv_XCURSOR_LIBS="$XCURSOR_LIBS" 11825 elif test -n "$PKG_CONFIG"; then 11826 if test -n "$PKG_CONFIG" && \ 11827 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xrender >= 0.8.2 xfixes x11 fixesproto\""; } >&5 11828 ($PKG_CONFIG --exists --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto") 2>&5 11829 ac_status=$? 11830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11831 test $ac_status = 0; }; then 11832 pkg_cv_XCURSOR_LIBS=`$PKG_CONFIG --libs "xrender >= 0.8.2 xfixes x11 fixesproto" 2>/dev/null` 11833else 11834 pkg_failed=yes 11835fi 11836 else 11837 pkg_failed=untried 11838fi 11839 11840 11841 11842if test $pkg_failed = yes; then 11843 11844if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11845 _pkg_short_errors_supported=yes 11846else 11847 _pkg_short_errors_supported=no 11848fi 11849 if test $_pkg_short_errors_supported = yes; then 11850 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1` 11851 else 11852 XCURSOR_PKG_ERRORS=`$PKG_CONFIG --print-errors "xrender >= 0.8.2 xfixes x11 fixesproto" 2>&1` 11853 fi 11854 # Put the nasty error message in config.log where it belongs 11855 echo "$XCURSOR_PKG_ERRORS" >&5 11856 11857 as_fn_error $? "Package requirements (xrender >= 0.8.2 xfixes x11 fixesproto) were not met: 11858 11859$XCURSOR_PKG_ERRORS 11860 11861Consider adjusting the PKG_CONFIG_PATH environment variable if you 11862installed software in a non-standard prefix. 11863 11864Alternatively, you may set the environment variables XCURSOR_CFLAGS 11865and XCURSOR_LIBS to avoid the need to call pkg-config. 11866See the pkg-config man page for more details. 11867" "$LINENO" 5 11868elif test $pkg_failed = untried; then 11869 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11870$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11871as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11872is in your PATH or set the PKG_CONFIG environment variable to the full 11873path to pkg-config. 11874 11875Alternatively, you may set the environment variables XCURSOR_CFLAGS 11876and XCURSOR_LIBS to avoid the need to call pkg-config. 11877See the pkg-config man page for more details. 11878 11879To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11880See \`config.log' for more details" "$LINENO" 5; } 11881else 11882 XCURSOR_CFLAGS=$pkg_cv_XCURSOR_CFLAGS 11883 XCURSOR_LIBS=$pkg_cv_XCURSOR_LIBS 11884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11885$as_echo "yes" >&6; } 11886 : 11887fi 11888 11889$as_echo "#define HAVE_XFIXES 1" >>confdefs.h 11890 11891 11892# Allow checking code with lint, sparse, etc. 11893 11894 11895 11896 11897 11898# Check whether --with-lint was given. 11899if test "${with_lint+set}" = set; then : 11900 withval=$with_lint; use_lint=$withval 11901else 11902 use_lint=no 11903fi 11904 11905 11906# Obtain platform specific info like program name and options 11907# The lint program on FreeBSD and NetBSD is different from the one on Solaris 11908case $host_os in 11909 *linux* | *openbsd* | kfreebsd*-gnu | darwin* | cygwin*) 11910 lint_name=splint 11911 lint_options="-badflag" 11912 ;; 11913 *freebsd* | *netbsd*) 11914 lint_name=lint 11915 lint_options="-u -b" 11916 ;; 11917 *solaris*) 11918 lint_name=lint 11919 lint_options="-u -b -h -erroff=E_INDISTING_FROM_TRUNC2" 11920 ;; 11921esac 11922 11923# Test for the presence of the program (either guessed by the code or spelled out by the user) 11924if test "x$use_lint" = x"yes" ; then 11925 # Extract the first word of "$lint_name", so it can be a program name with args. 11926set dummy $lint_name; ac_word=$2 11927{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11928$as_echo_n "checking for $ac_word... " >&6; } 11929if ${ac_cv_path_LINT+:} false; then : 11930 $as_echo_n "(cached) " >&6 11931else 11932 case $LINT in 11933 [\\/]* | ?:[\\/]*) 11934 ac_cv_path_LINT="$LINT" # Let the user override the test with a path. 11935 ;; 11936 *) 11937 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11938for as_dir in $PATH 11939do 11940 IFS=$as_save_IFS 11941 test -z "$as_dir" && as_dir=. 11942 for ac_exec_ext in '' $ac_executable_extensions; do 11943 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11944 ac_cv_path_LINT="$as_dir/$ac_word$ac_exec_ext" 11945 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11946 break 2 11947 fi 11948done 11949 done 11950IFS=$as_save_IFS 11951 11952 ;; 11953esac 11954fi 11955LINT=$ac_cv_path_LINT 11956if test -n "$LINT"; then 11957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LINT" >&5 11958$as_echo "$LINT" >&6; } 11959else 11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11961$as_echo "no" >&6; } 11962fi 11963 11964 11965 if test "x$LINT" = "x"; then 11966 as_fn_error $? "--with-lint=yes specified but lint-style tool not found in PATH" "$LINENO" 5 11967 fi 11968elif test "x$use_lint" = x"no" ; then 11969 if test "x$LINT" != "x"; then 11970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&5 11971$as_echo "$as_me: WARNING: ignoring LINT environment variable since --with-lint=no was specified" >&2;} 11972 fi 11973else 11974 as_fn_error $? "--with-lint expects 'yes' or 'no'. Use LINT variable to specify path." "$LINENO" 5 11975fi 11976 11977# User supplied flags override default flags 11978if test "x$LINT_FLAGS" != "x"; then 11979 lint_options=$LINT_FLAGS 11980fi 11981 11982LINT_FLAGS=$lint_options 11983 11984 if test "x$LINT" != x; then 11985 LINT_TRUE= 11986 LINT_FALSE='#' 11987else 11988 LINT_TRUE='#' 11989 LINT_FALSE= 11990fi 11991 11992 11993 11994 11995ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xcursor.pc" 11996 11997cat >confcache <<\_ACEOF 11998# This file is a shell script that caches the results of configure 11999# tests run on this system so they can be shared between configure 12000# scripts and configure runs, see configure's option --config-cache. 12001# It is not useful on other systems. If it contains results you don't 12002# want to keep, you may remove or edit it. 12003# 12004# config.status only pays attention to the cache file if you give it 12005# the --recheck option to rerun configure. 12006# 12007# `ac_cv_env_foo' variables (set or unset) will be overridden when 12008# loading this file, other *unset* `ac_cv_foo' will be assigned the 12009# following values. 12010 12011_ACEOF 12012 12013# The following way of writing the cache mishandles newlines in values, 12014# but we know of no workaround that is simple, portable, and efficient. 12015# So, we kill variables containing newlines. 12016# Ultrix sh set writes to stderr and can't be redirected directly, 12017# and sets the high bit in the cache file unless we assign to the vars. 12018( 12019 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 12020 eval ac_val=\$$ac_var 12021 case $ac_val in #( 12022 *${as_nl}*) 12023 case $ac_var in #( 12024 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 12025$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 12026 esac 12027 case $ac_var in #( 12028 _ | IFS | as_nl) ;; #( 12029 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12030 *) { eval $ac_var=; unset $ac_var;} ;; 12031 esac ;; 12032 esac 12033 done 12034 12035 (set) 2>&1 | 12036 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12037 *${as_nl}ac_space=\ *) 12038 # `set' does not quote correctly, so add quotes: double-quote 12039 # substitution turns \\\\ into \\, and sed turns \\ into \. 12040 sed -n \ 12041 "s/'/'\\\\''/g; 12042 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12043 ;; #( 12044 *) 12045 # `set' quotes correctly as required by POSIX, so do not add quotes. 12046 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12047 ;; 12048 esac | 12049 sort 12050) | 12051 sed ' 12052 /^ac_cv_env_/b end 12053 t clear 12054 :clear 12055 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12056 t end 12057 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12058 :end' >>confcache 12059if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12060 if test -w "$cache_file"; then 12061 if test "x$cache_file" != "x/dev/null"; then 12062 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12063$as_echo "$as_me: updating cache $cache_file" >&6;} 12064 if test ! -f "$cache_file" || test -h "$cache_file"; then 12065 cat confcache >"$cache_file" 12066 else 12067 case $cache_file in #( 12068 */* | ?:*) 12069 mv -f confcache "$cache_file"$$ && 12070 mv -f "$cache_file"$$ "$cache_file" ;; #( 12071 *) 12072 mv -f confcache "$cache_file" ;; 12073 esac 12074 fi 12075 fi 12076 else 12077 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12078$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12079 fi 12080fi 12081rm -f confcache 12082 12083test "x$prefix" = xNONE && prefix=$ac_default_prefix 12084# Let make expand exec_prefix. 12085test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12086 12087DEFS=-DHAVE_CONFIG_H 12088 12089ac_libobjs= 12090ac_ltlibobjs= 12091U= 12092for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12093 # 1. Remove the extension, and $U if already installed. 12094 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12095 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12096 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12097 # will be set to the directory where LIBOBJS objects are built. 12098 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12099 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12100done 12101LIBOBJS=$ac_libobjs 12102 12103LTLIBOBJS=$ac_ltlibobjs 12104 12105 12106 if test -n "$EXEEXT"; then 12107 am__EXEEXT_TRUE= 12108 am__EXEEXT_FALSE='#' 12109else 12110 am__EXEEXT_TRUE='#' 12111 am__EXEEXT_FALSE= 12112fi 12113 12114if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12115 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12116Usually this means the macro was only invoked conditionally." "$LINENO" 5 12117fi 12118if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12119 as_fn_error $? "conditional \"AMDEP\" was never defined. 12120Usually this means the macro was only invoked conditionally." "$LINENO" 5 12121fi 12122if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12123 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12124Usually this means the macro was only invoked conditionally." "$LINENO" 5 12125fi 12126if test -z "${LINT_TRUE}" && test -z "${LINT_FALSE}"; then 12127 as_fn_error $? "conditional \"LINT\" was never defined. 12128Usually this means the macro was only invoked conditionally." "$LINENO" 5 12129fi 12130 12131: "${CONFIG_STATUS=./config.status}" 12132ac_write_fail=0 12133ac_clean_files_save=$ac_clean_files 12134ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12135{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12136$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12137as_write_fail=0 12138cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12139#! $SHELL 12140# Generated by $as_me. 12141# Run this file to recreate the current configuration. 12142# Compiler output produced by configure, useful for debugging 12143# configure, is in config.log if it exists. 12144 12145debug=false 12146ac_cs_recheck=false 12147ac_cs_silent=false 12148 12149SHELL=\${CONFIG_SHELL-$SHELL} 12150export SHELL 12151_ASEOF 12152cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12153## -------------------- ## 12154## M4sh Initialization. ## 12155## -------------------- ## 12156 12157# Be more Bourne compatible 12158DUALCASE=1; export DUALCASE # for MKS sh 12159if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12160 emulate sh 12161 NULLCMD=: 12162 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12163 # is contrary to our usage. Disable this feature. 12164 alias -g '${1+"$@"}'='"$@"' 12165 setopt NO_GLOB_SUBST 12166else 12167 case `(set -o) 2>/dev/null` in #( 12168 *posix*) : 12169 set -o posix ;; #( 12170 *) : 12171 ;; 12172esac 12173fi 12174 12175 12176as_nl=' 12177' 12178export as_nl 12179# Printing a long string crashes Solaris 7 /usr/bin/printf. 12180as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12181as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12182as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12183# Prefer a ksh shell builtin over an external printf program on Solaris, 12184# but without wasting forks for bash or zsh. 12185if test -z "$BASH_VERSION$ZSH_VERSION" \ 12186 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12187 as_echo='print -r --' 12188 as_echo_n='print -rn --' 12189elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12190 as_echo='printf %s\n' 12191 as_echo_n='printf %s' 12192else 12193 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12194 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12195 as_echo_n='/usr/ucb/echo -n' 12196 else 12197 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12198 as_echo_n_body='eval 12199 arg=$1; 12200 case $arg in #( 12201 *"$as_nl"*) 12202 expr "X$arg" : "X\\(.*\\)$as_nl"; 12203 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12204 esac; 12205 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12206 ' 12207 export as_echo_n_body 12208 as_echo_n='sh -c $as_echo_n_body as_echo' 12209 fi 12210 export as_echo_body 12211 as_echo='sh -c $as_echo_body as_echo' 12212fi 12213 12214# The user is always right. 12215if test "${PATH_SEPARATOR+set}" != set; then 12216 PATH_SEPARATOR=: 12217 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12218 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12219 PATH_SEPARATOR=';' 12220 } 12221fi 12222 12223 12224# IFS 12225# We need space, tab and new line, in precisely that order. Quoting is 12226# there to prevent editors from complaining about space-tab. 12227# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12228# splitting by setting IFS to empty value.) 12229IFS=" "" $as_nl" 12230 12231# Find who we are. Look in the path if we contain no directory separator. 12232as_myself= 12233case $0 in #(( 12234 *[\\/]* ) as_myself=$0 ;; 12235 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12236for as_dir in $PATH 12237do 12238 IFS=$as_save_IFS 12239 test -z "$as_dir" && as_dir=. 12240 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12241 done 12242IFS=$as_save_IFS 12243 12244 ;; 12245esac 12246# We did not find ourselves, most probably we were run as `sh COMMAND' 12247# in which case we are not to be found in the path. 12248if test "x$as_myself" = x; then 12249 as_myself=$0 12250fi 12251if test ! -f "$as_myself"; then 12252 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12253 exit 1 12254fi 12255 12256# Unset variables that we do not need and which cause bugs (e.g. in 12257# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12258# suppresses any "Segmentation fault" message there. '((' could 12259# trigger a bug in pdksh 5.2.14. 12260for as_var in BASH_ENV ENV MAIL MAILPATH 12261do eval test x\${$as_var+set} = xset \ 12262 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12263done 12264PS1='$ ' 12265PS2='> ' 12266PS4='+ ' 12267 12268# NLS nuisances. 12269LC_ALL=C 12270export LC_ALL 12271LANGUAGE=C 12272export LANGUAGE 12273 12274# CDPATH. 12275(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12276 12277 12278# as_fn_error STATUS ERROR [LINENO LOG_FD] 12279# ---------------------------------------- 12280# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12281# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12282# script with STATUS, using 1 if that was 0. 12283as_fn_error () 12284{ 12285 as_status=$1; test $as_status -eq 0 && as_status=1 12286 if test "$4"; then 12287 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12288 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12289 fi 12290 $as_echo "$as_me: error: $2" >&2 12291 as_fn_exit $as_status 12292} # as_fn_error 12293 12294 12295# as_fn_set_status STATUS 12296# ----------------------- 12297# Set $? to STATUS, without forking. 12298as_fn_set_status () 12299{ 12300 return $1 12301} # as_fn_set_status 12302 12303# as_fn_exit STATUS 12304# ----------------- 12305# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12306as_fn_exit () 12307{ 12308 set +e 12309 as_fn_set_status $1 12310 exit $1 12311} # as_fn_exit 12312 12313# as_fn_unset VAR 12314# --------------- 12315# Portably unset VAR. 12316as_fn_unset () 12317{ 12318 { eval $1=; unset $1;} 12319} 12320as_unset=as_fn_unset 12321# as_fn_append VAR VALUE 12322# ---------------------- 12323# Append the text in VALUE to the end of the definition contained in VAR. Take 12324# advantage of any shell optimizations that allow amortized linear growth over 12325# repeated appends, instead of the typical quadratic growth present in naive 12326# implementations. 12327if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12328 eval 'as_fn_append () 12329 { 12330 eval $1+=\$2 12331 }' 12332else 12333 as_fn_append () 12334 { 12335 eval $1=\$$1\$2 12336 } 12337fi # as_fn_append 12338 12339# as_fn_arith ARG... 12340# ------------------ 12341# Perform arithmetic evaluation on the ARGs, and store the result in the 12342# global $as_val. Take advantage of shells that can avoid forks. The arguments 12343# must be portable across $(()) and expr. 12344if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12345 eval 'as_fn_arith () 12346 { 12347 as_val=$(( $* )) 12348 }' 12349else 12350 as_fn_arith () 12351 { 12352 as_val=`expr "$@" || test $? -eq 1` 12353 } 12354fi # as_fn_arith 12355 12356 12357if expr a : '\(a\)' >/dev/null 2>&1 && 12358 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12359 as_expr=expr 12360else 12361 as_expr=false 12362fi 12363 12364if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12365 as_basename=basename 12366else 12367 as_basename=false 12368fi 12369 12370if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12371 as_dirname=dirname 12372else 12373 as_dirname=false 12374fi 12375 12376as_me=`$as_basename -- "$0" || 12377$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12378 X"$0" : 'X\(//\)$' \| \ 12379 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12380$as_echo X/"$0" | 12381 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12382 s//\1/ 12383 q 12384 } 12385 /^X\/\(\/\/\)$/{ 12386 s//\1/ 12387 q 12388 } 12389 /^X\/\(\/\).*/{ 12390 s//\1/ 12391 q 12392 } 12393 s/.*/./; q'` 12394 12395# Avoid depending upon Character Ranges. 12396as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12397as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12398as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12399as_cr_digits='0123456789' 12400as_cr_alnum=$as_cr_Letters$as_cr_digits 12401 12402ECHO_C= ECHO_N= ECHO_T= 12403case `echo -n x` in #((((( 12404-n*) 12405 case `echo 'xy\c'` in 12406 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12407 xy) ECHO_C='\c';; 12408 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12409 ECHO_T=' ';; 12410 esac;; 12411*) 12412 ECHO_N='-n';; 12413esac 12414 12415rm -f conf$$ conf$$.exe conf$$.file 12416if test -d conf$$.dir; then 12417 rm -f conf$$.dir/conf$$.file 12418else 12419 rm -f conf$$.dir 12420 mkdir conf$$.dir 2>/dev/null 12421fi 12422if (echo >conf$$.file) 2>/dev/null; then 12423 if ln -s conf$$.file conf$$ 2>/dev/null; then 12424 as_ln_s='ln -s' 12425 # ... but there are two gotchas: 12426 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12427 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12428 # In both cases, we have to default to `cp -p'. 12429 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12430 as_ln_s='cp -p' 12431 elif ln conf$$.file conf$$ 2>/dev/null; then 12432 as_ln_s=ln 12433 else 12434 as_ln_s='cp -p' 12435 fi 12436else 12437 as_ln_s='cp -p' 12438fi 12439rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12440rmdir conf$$.dir 2>/dev/null 12441 12442 12443# as_fn_mkdir_p 12444# ------------- 12445# Create "$as_dir" as a directory, including parents if necessary. 12446as_fn_mkdir_p () 12447{ 12448 12449 case $as_dir in #( 12450 -*) as_dir=./$as_dir;; 12451 esac 12452 test -d "$as_dir" || eval $as_mkdir_p || { 12453 as_dirs= 12454 while :; do 12455 case $as_dir in #( 12456 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12457 *) as_qdir=$as_dir;; 12458 esac 12459 as_dirs="'$as_qdir' $as_dirs" 12460 as_dir=`$as_dirname -- "$as_dir" || 12461$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12462 X"$as_dir" : 'X\(//\)[^/]' \| \ 12463 X"$as_dir" : 'X\(//\)$' \| \ 12464 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12465$as_echo X"$as_dir" | 12466 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12467 s//\1/ 12468 q 12469 } 12470 /^X\(\/\/\)[^/].*/{ 12471 s//\1/ 12472 q 12473 } 12474 /^X\(\/\/\)$/{ 12475 s//\1/ 12476 q 12477 } 12478 /^X\(\/\).*/{ 12479 s//\1/ 12480 q 12481 } 12482 s/.*/./; q'` 12483 test -d "$as_dir" && break 12484 done 12485 test -z "$as_dirs" || eval "mkdir $as_dirs" 12486 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12487 12488 12489} # as_fn_mkdir_p 12490if mkdir -p . 2>/dev/null; then 12491 as_mkdir_p='mkdir -p "$as_dir"' 12492else 12493 test -d ./-p && rmdir ./-p 12494 as_mkdir_p=false 12495fi 12496 12497if test -x / >/dev/null 2>&1; then 12498 as_test_x='test -x' 12499else 12500 if ls -dL / >/dev/null 2>&1; then 12501 as_ls_L_option=L 12502 else 12503 as_ls_L_option= 12504 fi 12505 as_test_x=' 12506 eval sh -c '\'' 12507 if test -d "$1"; then 12508 test -d "$1/."; 12509 else 12510 case $1 in #( 12511 -*)set "./$1";; 12512 esac; 12513 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12514 ???[sx]*):;;*)false;;esac;fi 12515 '\'' sh 12516 ' 12517fi 12518as_executable_p=$as_test_x 12519 12520# Sed expression to map a string onto a valid CPP name. 12521as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12522 12523# Sed expression to map a string onto a valid variable name. 12524as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12525 12526 12527exec 6>&1 12528## ----------------------------------- ## 12529## Main body of $CONFIG_STATUS script. ## 12530## ----------------------------------- ## 12531_ASEOF 12532test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12533 12534cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12535# Save the log message, to keep $0 and so on meaningful, and to 12536# report actual input values of CONFIG_FILES etc. instead of their 12537# values after options handling. 12538ac_log=" 12539This file was extended by libXcursor $as_me 1.1.12, which was 12540generated by GNU Autoconf 2.68. Invocation command line was 12541 12542 CONFIG_FILES = $CONFIG_FILES 12543 CONFIG_HEADERS = $CONFIG_HEADERS 12544 CONFIG_LINKS = $CONFIG_LINKS 12545 CONFIG_COMMANDS = $CONFIG_COMMANDS 12546 $ $0 $@ 12547 12548on `(hostname || uname -n) 2>/dev/null | sed 1q` 12549" 12550 12551_ACEOF 12552 12553case $ac_config_files in *" 12554"*) set x $ac_config_files; shift; ac_config_files=$*;; 12555esac 12556 12557case $ac_config_headers in *" 12558"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12559esac 12560 12561 12562cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12563# Files that config.status was made for. 12564config_files="$ac_config_files" 12565config_headers="$ac_config_headers" 12566config_commands="$ac_config_commands" 12567 12568_ACEOF 12569 12570cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12571ac_cs_usage="\ 12572\`$as_me' instantiates files and other configuration actions 12573from templates according to the current configuration. Unless the files 12574and actions are specified as TAGs, all are instantiated by default. 12575 12576Usage: $0 [OPTION]... [TAG]... 12577 12578 -h, --help print this help, then exit 12579 -V, --version print version number and configuration settings, then exit 12580 --config print configuration, then exit 12581 -q, --quiet, --silent 12582 do not print progress messages 12583 -d, --debug don't remove temporary files 12584 --recheck update $as_me by reconfiguring in the same conditions 12585 --file=FILE[:TEMPLATE] 12586 instantiate the configuration file FILE 12587 --header=FILE[:TEMPLATE] 12588 instantiate the configuration header FILE 12589 12590Configuration files: 12591$config_files 12592 12593Configuration headers: 12594$config_headers 12595 12596Configuration commands: 12597$config_commands 12598 12599Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12600 12601_ACEOF 12602cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12603ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12604ac_cs_version="\\ 12605libXcursor config.status 1.1.12 12606configured by $0, generated by GNU Autoconf 2.68, 12607 with options \\"\$ac_cs_config\\" 12608 12609Copyright (C) 2010 Free Software Foundation, Inc. 12610This config.status script is free software; the Free Software Foundation 12611gives unlimited permission to copy, distribute and modify it." 12612 12613ac_pwd='$ac_pwd' 12614srcdir='$srcdir' 12615INSTALL='$INSTALL' 12616MKDIR_P='$MKDIR_P' 12617AWK='$AWK' 12618test -n "\$AWK" || AWK=awk 12619_ACEOF 12620 12621cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12622# The default lists apply if the user does not specify any file. 12623ac_need_defaults=: 12624while test $# != 0 12625do 12626 case $1 in 12627 --*=?*) 12628 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12629 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12630 ac_shift=: 12631 ;; 12632 --*=) 12633 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12634 ac_optarg= 12635 ac_shift=: 12636 ;; 12637 *) 12638 ac_option=$1 12639 ac_optarg=$2 12640 ac_shift=shift 12641 ;; 12642 esac 12643 12644 case $ac_option in 12645 # Handling of the options. 12646 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12647 ac_cs_recheck=: ;; 12648 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12649 $as_echo "$ac_cs_version"; exit ;; 12650 --config | --confi | --conf | --con | --co | --c ) 12651 $as_echo "$ac_cs_config"; exit ;; 12652 --debug | --debu | --deb | --de | --d | -d ) 12653 debug=: ;; 12654 --file | --fil | --fi | --f ) 12655 $ac_shift 12656 case $ac_optarg in 12657 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12658 '') as_fn_error $? "missing file argument" ;; 12659 esac 12660 as_fn_append CONFIG_FILES " '$ac_optarg'" 12661 ac_need_defaults=false;; 12662 --header | --heade | --head | --hea ) 12663 $ac_shift 12664 case $ac_optarg in 12665 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12666 esac 12667 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12668 ac_need_defaults=false;; 12669 --he | --h) 12670 # Conflict between --help and --header 12671 as_fn_error $? "ambiguous option: \`$1' 12672Try \`$0 --help' for more information.";; 12673 --help | --hel | -h ) 12674 $as_echo "$ac_cs_usage"; exit ;; 12675 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12676 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12677 ac_cs_silent=: ;; 12678 12679 # This is an error. 12680 -*) as_fn_error $? "unrecognized option: \`$1' 12681Try \`$0 --help' for more information." ;; 12682 12683 *) as_fn_append ac_config_targets " $1" 12684 ac_need_defaults=false ;; 12685 12686 esac 12687 shift 12688done 12689 12690ac_configure_extra_args= 12691 12692if $ac_cs_silent; then 12693 exec 6>/dev/null 12694 ac_configure_extra_args="$ac_configure_extra_args --silent" 12695fi 12696 12697_ACEOF 12698cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12699if \$ac_cs_recheck; then 12700 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12701 shift 12702 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12703 CONFIG_SHELL='$SHELL' 12704 export CONFIG_SHELL 12705 exec "\$@" 12706fi 12707 12708_ACEOF 12709cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12710exec 5>>config.log 12711{ 12712 echo 12713 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12714## Running $as_me. ## 12715_ASBOX 12716 $as_echo "$ac_log" 12717} >&5 12718 12719_ACEOF 12720cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12721# 12722# INIT-COMMANDS 12723# 12724AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12725 12726 12727# The HP-UX ksh and POSIX shell print the target directory to stdout 12728# if CDPATH is set. 12729(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12730 12731sed_quote_subst='$sed_quote_subst' 12732double_quote_subst='$double_quote_subst' 12733delay_variable_subst='$delay_variable_subst' 12734macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12735macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12736enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12737enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12738pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12739enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12740SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12741ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12742host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12743host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12744host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12745build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12746build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12747build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12748SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12749Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12750GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12751EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12752FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12753LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12754NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12755LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12756max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12757ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12758exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12759lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12760lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12761lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12762lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 12763lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 12764reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12765reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12766OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12767deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12768file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12769file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 12770want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 12771DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 12772sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 12773AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12774AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12775archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 12776STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12777RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12778old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12779old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12780old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12781lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12782CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12783CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12784compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12785GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12786lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12787lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12788lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12789lt_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"`' 12790nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 12791lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 12792objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12793MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12794lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12795lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12796lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12797lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12798lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12799need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12800MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 12801DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12802NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12803LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12804OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12805OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12806libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12807shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12808extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12809archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12810enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12811export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12812whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12813compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12814old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12815old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12816archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12817archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12818module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12819module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12820with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12821allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12822no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12823hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12824hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12825hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12826hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12827hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12828hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12829hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12830hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12831inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12832link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12833always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12834export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12835exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12836include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12837prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12838postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 12839file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12840variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12841need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12842need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12843version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12844runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12845shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12846shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12847libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12848library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12849soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12850install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12851postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12852postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12853finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12854finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12855hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12856sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12857sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12858hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12859enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12860enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12861enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12862old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12863striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12864 12865LTCC='$LTCC' 12866LTCFLAGS='$LTCFLAGS' 12867compiler='$compiler_DEFAULT' 12868 12869# A function that is used when there is no print builtin or printf. 12870func_fallback_echo () 12871{ 12872 eval 'cat <<_LTECHO_EOF 12873\$1 12874_LTECHO_EOF' 12875} 12876 12877# Quote evaled strings. 12878for var in SHELL \ 12879ECHO \ 12880SED \ 12881GREP \ 12882EGREP \ 12883FGREP \ 12884LD \ 12885NM \ 12886LN_S \ 12887lt_SP2NL \ 12888lt_NL2SP \ 12889reload_flag \ 12890OBJDUMP \ 12891deplibs_check_method \ 12892file_magic_cmd \ 12893file_magic_glob \ 12894want_nocaseglob \ 12895DLLTOOL \ 12896sharedlib_from_linklib_cmd \ 12897AR \ 12898AR_FLAGS \ 12899archiver_list_spec \ 12900STRIP \ 12901RANLIB \ 12902CC \ 12903CFLAGS \ 12904compiler \ 12905lt_cv_sys_global_symbol_pipe \ 12906lt_cv_sys_global_symbol_to_cdecl \ 12907lt_cv_sys_global_symbol_to_c_name_address \ 12908lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12909nm_file_list_spec \ 12910lt_prog_compiler_no_builtin_flag \ 12911lt_prog_compiler_pic \ 12912lt_prog_compiler_wl \ 12913lt_prog_compiler_static \ 12914lt_cv_prog_compiler_c_o \ 12915need_locks \ 12916MANIFEST_TOOL \ 12917DSYMUTIL \ 12918NMEDIT \ 12919LIPO \ 12920OTOOL \ 12921OTOOL64 \ 12922shrext_cmds \ 12923export_dynamic_flag_spec \ 12924whole_archive_flag_spec \ 12925compiler_needs_object \ 12926with_gnu_ld \ 12927allow_undefined_flag \ 12928no_undefined_flag \ 12929hardcode_libdir_flag_spec \ 12930hardcode_libdir_flag_spec_ld \ 12931hardcode_libdir_separator \ 12932exclude_expsyms \ 12933include_expsyms \ 12934file_list_spec \ 12935variables_saved_for_relink \ 12936libname_spec \ 12937library_names_spec \ 12938soname_spec \ 12939install_override_mode \ 12940finish_eval \ 12941old_striplib \ 12942striplib; do 12943 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12944 *[\\\\\\\`\\"\\\$]*) 12945 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12946 ;; 12947 *) 12948 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12949 ;; 12950 esac 12951done 12952 12953# Double-quote double-evaled strings. 12954for var in reload_cmds \ 12955old_postinstall_cmds \ 12956old_postuninstall_cmds \ 12957old_archive_cmds \ 12958extract_expsyms_cmds \ 12959old_archive_from_new_cmds \ 12960old_archive_from_expsyms_cmds \ 12961archive_cmds \ 12962archive_expsym_cmds \ 12963module_cmds \ 12964module_expsym_cmds \ 12965export_symbols_cmds \ 12966prelink_cmds \ 12967postlink_cmds \ 12968postinstall_cmds \ 12969postuninstall_cmds \ 12970finish_cmds \ 12971sys_lib_search_path_spec \ 12972sys_lib_dlsearch_path_spec; do 12973 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12974 *[\\\\\\\`\\"\\\$]*) 12975 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12976 ;; 12977 *) 12978 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12979 ;; 12980 esac 12981done 12982 12983ac_aux_dir='$ac_aux_dir' 12984xsi_shell='$xsi_shell' 12985lt_shell_append='$lt_shell_append' 12986 12987# See if we are running on zsh, and set the options which allow our 12988# commands through without removal of \ escapes INIT. 12989if test -n "\${ZSH_VERSION+set}" ; then 12990 setopt NO_GLOB_SUBST 12991fi 12992 12993 12994 PACKAGE='$PACKAGE' 12995 VERSION='$VERSION' 12996 TIMESTAMP='$TIMESTAMP' 12997 RM='$RM' 12998 ofile='$ofile' 12999 13000 13001 13002 13003_ACEOF 13004 13005cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13006 13007# Handling of arguments. 13008for ac_config_target in $ac_config_targets 13009do 13010 case $ac_config_target in 13011 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 13012 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 13013 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 13014 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 13015 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 13016 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 13017 "xcursor.pc") CONFIG_FILES="$CONFIG_FILES xcursor.pc" ;; 13018 13019 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 13020 esac 13021done 13022 13023 13024# If the user did not use the arguments to specify the items to instantiate, 13025# then the envvar interface is used. Set only those that are not. 13026# We use the long form for the default assignment because of an extremely 13027# bizarre bug on SunOS 4.1.3. 13028if $ac_need_defaults; then 13029 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 13030 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 13031 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 13032fi 13033 13034# Have a temporary directory for convenience. Make it in the build tree 13035# simply because there is no reason against having it here, and in addition, 13036# creating and moving files from /tmp can sometimes cause problems. 13037# Hook for its removal unless debugging. 13038# Note that there is a small window in which the directory will not be cleaned: 13039# after its creation but before its name has been assigned to `$tmp'. 13040$debug || 13041{ 13042 tmp= ac_tmp= 13043 trap 'exit_status=$? 13044 : "${ac_tmp:=$tmp}" 13045 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 13046' 0 13047 trap 'as_fn_exit 1' 1 2 13 15 13048} 13049# Create a (secure) tmp directory for tmp files. 13050 13051{ 13052 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13053 test -d "$tmp" 13054} || 13055{ 13056 tmp=./conf$$-$RANDOM 13057 (umask 077 && mkdir "$tmp") 13058} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13059ac_tmp=$tmp 13060 13061# Set up the scripts for CONFIG_FILES section. 13062# No need to generate them if there are no CONFIG_FILES. 13063# This happens for instance with `./config.status config.h'. 13064if test -n "$CONFIG_FILES"; then 13065 13066 13067ac_cr=`echo X | tr X '\015'` 13068# On cygwin, bash can eat \r inside `` if the user requested igncr. 13069# But we know of no other shell where ac_cr would be empty at this 13070# point, so we can use a bashism as a fallback. 13071if test "x$ac_cr" = x; then 13072 eval ac_cr=\$\'\\r\' 13073fi 13074ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13075if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13076 ac_cs_awk_cr='\\r' 13077else 13078 ac_cs_awk_cr=$ac_cr 13079fi 13080 13081echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13082_ACEOF 13083 13084 13085{ 13086 echo "cat >conf$$subs.awk <<_ACEOF" && 13087 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13088 echo "_ACEOF" 13089} >conf$$subs.sh || 13090 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13091ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13092ac_delim='%!_!# ' 13093for ac_last_try in false false false false false :; do 13094 . ./conf$$subs.sh || 13095 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13096 13097 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13098 if test $ac_delim_n = $ac_delim_num; then 13099 break 13100 elif $ac_last_try; then 13101 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13102 else 13103 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13104 fi 13105done 13106rm -f conf$$subs.sh 13107 13108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13109cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13110_ACEOF 13111sed -n ' 13112h 13113s/^/S["/; s/!.*/"]=/ 13114p 13115g 13116s/^[^!]*!// 13117:repl 13118t repl 13119s/'"$ac_delim"'$// 13120t delim 13121:nl 13122h 13123s/\(.\{148\}\)..*/\1/ 13124t more1 13125s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13126p 13127n 13128b repl 13129:more1 13130s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13131p 13132g 13133s/.\{148\}// 13134t nl 13135:delim 13136h 13137s/\(.\{148\}\)..*/\1/ 13138t more2 13139s/["\\]/\\&/g; s/^/"/; s/$/"/ 13140p 13141b 13142:more2 13143s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13144p 13145g 13146s/.\{148\}// 13147t delim 13148' <conf$$subs.awk | sed ' 13149/^[^""]/{ 13150 N 13151 s/\n// 13152} 13153' >>$CONFIG_STATUS || ac_write_fail=1 13154rm -f conf$$subs.awk 13155cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13156_ACAWK 13157cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13158 for (key in S) S_is_set[key] = 1 13159 FS = "" 13160 13161} 13162{ 13163 line = $ 0 13164 nfields = split(line, field, "@") 13165 substed = 0 13166 len = length(field[1]) 13167 for (i = 2; i < nfields; i++) { 13168 key = field[i] 13169 keylen = length(key) 13170 if (S_is_set[key]) { 13171 value = S[key] 13172 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13173 len += length(value) + length(field[++i]) 13174 substed = 1 13175 } else 13176 len += 1 + keylen 13177 } 13178 13179 print line 13180} 13181 13182_ACAWK 13183_ACEOF 13184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13185if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13186 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13187else 13188 cat 13189fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13190 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13191_ACEOF 13192 13193# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13194# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13195# trailing colons and then remove the whole line if VPATH becomes empty 13196# (actually we leave an empty line to preserve line numbers). 13197if test "x$srcdir" = x.; then 13198 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13199h 13200s/// 13201s/^/:/ 13202s/[ ]*$/:/ 13203s/:\$(srcdir):/:/g 13204s/:\${srcdir}:/:/g 13205s/:@srcdir@:/:/g 13206s/^:*// 13207s/:*$// 13208x 13209s/\(=[ ]*\).*/\1/ 13210G 13211s/\n// 13212s/^[^=]*=[ ]*$// 13213}' 13214fi 13215 13216cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13217fi # test -n "$CONFIG_FILES" 13218 13219# Set up the scripts for CONFIG_HEADERS section. 13220# No need to generate them if there are no CONFIG_HEADERS. 13221# This happens for instance with `./config.status Makefile'. 13222if test -n "$CONFIG_HEADERS"; then 13223cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13224BEGIN { 13225_ACEOF 13226 13227# Transform confdefs.h into an awk script `defines.awk', embedded as 13228# here-document in config.status, that substitutes the proper values into 13229# config.h.in to produce config.h. 13230 13231# Create a delimiter string that does not exist in confdefs.h, to ease 13232# handling of long lines. 13233ac_delim='%!_!# ' 13234for ac_last_try in false false :; do 13235 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13236 if test -z "$ac_tt"; then 13237 break 13238 elif $ac_last_try; then 13239 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13240 else 13241 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13242 fi 13243done 13244 13245# For the awk script, D is an array of macro values keyed by name, 13246# likewise P contains macro parameters if any. Preserve backslash 13247# newline sequences. 13248 13249ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13250sed -n ' 13251s/.\{148\}/&'"$ac_delim"'/g 13252t rset 13253:rset 13254s/^[ ]*#[ ]*define[ ][ ]*/ / 13255t def 13256d 13257:def 13258s/\\$// 13259t bsnl 13260s/["\\]/\\&/g 13261s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13262D["\1"]=" \3"/p 13263s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13264d 13265:bsnl 13266s/["\\]/\\&/g 13267s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13268D["\1"]=" \3\\\\\\n"\\/p 13269t cont 13270s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13271t cont 13272d 13273:cont 13274n 13275s/.\{148\}/&'"$ac_delim"'/g 13276t clear 13277:clear 13278s/\\$// 13279t bsnlc 13280s/["\\]/\\&/g; s/^/"/; s/$/"/p 13281d 13282:bsnlc 13283s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13284b cont 13285' <confdefs.h | sed ' 13286s/'"$ac_delim"'/"\\\ 13287"/g' >>$CONFIG_STATUS || ac_write_fail=1 13288 13289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13290 for (key in D) D_is_set[key] = 1 13291 FS = "" 13292} 13293/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13294 line = \$ 0 13295 split(line, arg, " ") 13296 if (arg[1] == "#") { 13297 defundef = arg[2] 13298 mac1 = arg[3] 13299 } else { 13300 defundef = substr(arg[1], 2) 13301 mac1 = arg[2] 13302 } 13303 split(mac1, mac2, "(") #) 13304 macro = mac2[1] 13305 prefix = substr(line, 1, index(line, defundef) - 1) 13306 if (D_is_set[macro]) { 13307 # Preserve the white space surrounding the "#". 13308 print prefix "define", macro P[macro] D[macro] 13309 next 13310 } else { 13311 # Replace #undef with comments. This is necessary, for example, 13312 # in the case of _POSIX_SOURCE, which is predefined and required 13313 # on some systems where configure will not decide to define it. 13314 if (defundef == "undef") { 13315 print "/*", prefix defundef, macro, "*/" 13316 next 13317 } 13318 } 13319} 13320{ print } 13321_ACAWK 13322_ACEOF 13323cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13324 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13325fi # test -n "$CONFIG_HEADERS" 13326 13327 13328eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13329shift 13330for ac_tag 13331do 13332 case $ac_tag in 13333 :[FHLC]) ac_mode=$ac_tag; continue;; 13334 esac 13335 case $ac_mode$ac_tag in 13336 :[FHL]*:*);; 13337 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13338 :[FH]-) ac_tag=-:-;; 13339 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13340 esac 13341 ac_save_IFS=$IFS 13342 IFS=: 13343 set x $ac_tag 13344 IFS=$ac_save_IFS 13345 shift 13346 ac_file=$1 13347 shift 13348 13349 case $ac_mode in 13350 :L) ac_source=$1;; 13351 :[FH]) 13352 ac_file_inputs= 13353 for ac_f 13354 do 13355 case $ac_f in 13356 -) ac_f="$ac_tmp/stdin";; 13357 *) # Look for the file first in the build tree, then in the source tree 13358 # (if the path is not absolute). The absolute path cannot be DOS-style, 13359 # because $ac_f cannot contain `:'. 13360 test -f "$ac_f" || 13361 case $ac_f in 13362 [\\/$]*) false;; 13363 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13364 esac || 13365 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13366 esac 13367 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13368 as_fn_append ac_file_inputs " '$ac_f'" 13369 done 13370 13371 # Let's still pretend it is `configure' which instantiates (i.e., don't 13372 # use $as_me), people would be surprised to read: 13373 # /* config.h. Generated by config.status. */ 13374 configure_input='Generated from '` 13375 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13376 `' by configure.' 13377 if test x"$ac_file" != x-; then 13378 configure_input="$ac_file. $configure_input" 13379 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13380$as_echo "$as_me: creating $ac_file" >&6;} 13381 fi 13382 # Neutralize special characters interpreted by sed in replacement strings. 13383 case $configure_input in #( 13384 *\&* | *\|* | *\\* ) 13385 ac_sed_conf_input=`$as_echo "$configure_input" | 13386 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13387 *) ac_sed_conf_input=$configure_input;; 13388 esac 13389 13390 case $ac_tag in 13391 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13392 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13393 esac 13394 ;; 13395 esac 13396 13397 ac_dir=`$as_dirname -- "$ac_file" || 13398$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13399 X"$ac_file" : 'X\(//\)[^/]' \| \ 13400 X"$ac_file" : 'X\(//\)$' \| \ 13401 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13402$as_echo X"$ac_file" | 13403 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13404 s//\1/ 13405 q 13406 } 13407 /^X\(\/\/\)[^/].*/{ 13408 s//\1/ 13409 q 13410 } 13411 /^X\(\/\/\)$/{ 13412 s//\1/ 13413 q 13414 } 13415 /^X\(\/\).*/{ 13416 s//\1/ 13417 q 13418 } 13419 s/.*/./; q'` 13420 as_dir="$ac_dir"; as_fn_mkdir_p 13421 ac_builddir=. 13422 13423case "$ac_dir" in 13424.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13425*) 13426 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13427 # A ".." for each directory in $ac_dir_suffix. 13428 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13429 case $ac_top_builddir_sub in 13430 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13431 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13432 esac ;; 13433esac 13434ac_abs_top_builddir=$ac_pwd 13435ac_abs_builddir=$ac_pwd$ac_dir_suffix 13436# for backward compatibility: 13437ac_top_builddir=$ac_top_build_prefix 13438 13439case $srcdir in 13440 .) # We are building in place. 13441 ac_srcdir=. 13442 ac_top_srcdir=$ac_top_builddir_sub 13443 ac_abs_top_srcdir=$ac_pwd ;; 13444 [\\/]* | ?:[\\/]* ) # Absolute name. 13445 ac_srcdir=$srcdir$ac_dir_suffix; 13446 ac_top_srcdir=$srcdir 13447 ac_abs_top_srcdir=$srcdir ;; 13448 *) # Relative name. 13449 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13450 ac_top_srcdir=$ac_top_build_prefix$srcdir 13451 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13452esac 13453ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13454 13455 13456 case $ac_mode in 13457 :F) 13458 # 13459 # CONFIG_FILE 13460 # 13461 13462 case $INSTALL in 13463 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13464 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13465 esac 13466 ac_MKDIR_P=$MKDIR_P 13467 case $MKDIR_P in 13468 [\\/$]* | ?:[\\/]* ) ;; 13469 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13470 esac 13471_ACEOF 13472 13473cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13474# If the template does not know about datarootdir, expand it. 13475# FIXME: This hack should be removed a few years after 2.60. 13476ac_datarootdir_hack=; ac_datarootdir_seen= 13477ac_sed_dataroot=' 13478/datarootdir/ { 13479 p 13480 q 13481} 13482/@datadir@/p 13483/@docdir@/p 13484/@infodir@/p 13485/@localedir@/p 13486/@mandir@/p' 13487case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13488*datarootdir*) ac_datarootdir_seen=yes;; 13489*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13490 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13491$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13492_ACEOF 13493cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13494 ac_datarootdir_hack=' 13495 s&@datadir@&$datadir&g 13496 s&@docdir@&$docdir&g 13497 s&@infodir@&$infodir&g 13498 s&@localedir@&$localedir&g 13499 s&@mandir@&$mandir&g 13500 s&\\\${datarootdir}&$datarootdir&g' ;; 13501esac 13502_ACEOF 13503 13504# Neutralize VPATH when `$srcdir' = `.'. 13505# Shell code in configure.ac might set extrasub. 13506# FIXME: do we really want to maintain this feature? 13507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13508ac_sed_extra="$ac_vpsub 13509$extrasub 13510_ACEOF 13511cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13512:t 13513/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13514s|@configure_input@|$ac_sed_conf_input|;t t 13515s&@top_builddir@&$ac_top_builddir_sub&;t t 13516s&@top_build_prefix@&$ac_top_build_prefix&;t t 13517s&@srcdir@&$ac_srcdir&;t t 13518s&@abs_srcdir@&$ac_abs_srcdir&;t t 13519s&@top_srcdir@&$ac_top_srcdir&;t t 13520s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13521s&@builddir@&$ac_builddir&;t t 13522s&@abs_builddir@&$ac_abs_builddir&;t t 13523s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13524s&@INSTALL@&$ac_INSTALL&;t t 13525s&@MKDIR_P@&$ac_MKDIR_P&;t t 13526$ac_datarootdir_hack 13527" 13528eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13529 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13530 13531test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13532 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13533 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13534 "$ac_tmp/out"`; test -z "$ac_out"; } && 13535 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13536which seems to be undefined. Please make sure it is defined" >&5 13537$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13538which seems to be undefined. Please make sure it is defined" >&2;} 13539 13540 rm -f "$ac_tmp/stdin" 13541 case $ac_file in 13542 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13543 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13544 esac \ 13545 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13546 ;; 13547 :H) 13548 # 13549 # CONFIG_HEADER 13550 # 13551 if test x"$ac_file" != x-; then 13552 { 13553 $as_echo "/* $configure_input */" \ 13554 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13555 } >"$ac_tmp/config.h" \ 13556 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13557 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13558 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13559$as_echo "$as_me: $ac_file is unchanged" >&6;} 13560 else 13561 rm -f "$ac_file" 13562 mv "$ac_tmp/config.h" "$ac_file" \ 13563 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13564 fi 13565 else 13566 $as_echo "/* $configure_input */" \ 13567 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13568 || as_fn_error $? "could not create -" "$LINENO" 5 13569 fi 13570# Compute "$ac_file"'s index in $config_headers. 13571_am_arg="$ac_file" 13572_am_stamp_count=1 13573for _am_header in $config_headers :; do 13574 case $_am_header in 13575 $_am_arg | $_am_arg:* ) 13576 break ;; 13577 * ) 13578 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13579 esac 13580done 13581echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13582$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13583 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13584 X"$_am_arg" : 'X\(//\)$' \| \ 13585 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13586$as_echo X"$_am_arg" | 13587 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13588 s//\1/ 13589 q 13590 } 13591 /^X\(\/\/\)[^/].*/{ 13592 s//\1/ 13593 q 13594 } 13595 /^X\(\/\/\)$/{ 13596 s//\1/ 13597 q 13598 } 13599 /^X\(\/\).*/{ 13600 s//\1/ 13601 q 13602 } 13603 s/.*/./; q'`/stamp-h$_am_stamp_count 13604 ;; 13605 13606 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13607$as_echo "$as_me: executing $ac_file commands" >&6;} 13608 ;; 13609 esac 13610 13611 13612 case $ac_file$ac_mode in 13613 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13614 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13615 # are listed without --file. Let's play safe and only enable the eval 13616 # if we detect the quoting. 13617 case $CONFIG_FILES in 13618 *\'*) eval set x "$CONFIG_FILES" ;; 13619 *) set x $CONFIG_FILES ;; 13620 esac 13621 shift 13622 for mf 13623 do 13624 # Strip MF so we end up with the name of the file. 13625 mf=`echo "$mf" | sed -e 's/:.*$//'` 13626 # Check whether this is an Automake generated Makefile or not. 13627 # We used to match only the files named `Makefile.in', but 13628 # some people rename them; so instead we look at the file content. 13629 # Grep'ing the first line is not enough: some people post-process 13630 # each Makefile.in and add a new line on top of each file to say so. 13631 # Grep'ing the whole file is not good either: AIX grep has a line 13632 # limit of 2048, but all sed's we know have understand at least 4000. 13633 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13634 dirpart=`$as_dirname -- "$mf" || 13635$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13636 X"$mf" : 'X\(//\)[^/]' \| \ 13637 X"$mf" : 'X\(//\)$' \| \ 13638 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13639$as_echo X"$mf" | 13640 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13641 s//\1/ 13642 q 13643 } 13644 /^X\(\/\/\)[^/].*/{ 13645 s//\1/ 13646 q 13647 } 13648 /^X\(\/\/\)$/{ 13649 s//\1/ 13650 q 13651 } 13652 /^X\(\/\).*/{ 13653 s//\1/ 13654 q 13655 } 13656 s/.*/./; q'` 13657 else 13658 continue 13659 fi 13660 # Extract the definition of DEPDIR, am__include, and am__quote 13661 # from the Makefile without running `make'. 13662 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13663 test -z "$DEPDIR" && continue 13664 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13665 test -z "am__include" && continue 13666 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13667 # When using ansi2knr, U may be empty or an underscore; expand it 13668 U=`sed -n 's/^U = //p' < "$mf"` 13669 # Find all dependency output files, they are included files with 13670 # $(DEPDIR) in their names. We invoke sed twice because it is the 13671 # simplest approach to changing $(DEPDIR) to its actual value in the 13672 # expansion. 13673 for file in `sed -n " 13674 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13675 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13676 # Make sure the directory exists. 13677 test -f "$dirpart/$file" && continue 13678 fdir=`$as_dirname -- "$file" || 13679$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13680 X"$file" : 'X\(//\)[^/]' \| \ 13681 X"$file" : 'X\(//\)$' \| \ 13682 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13683$as_echo X"$file" | 13684 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13685 s//\1/ 13686 q 13687 } 13688 /^X\(\/\/\)[^/].*/{ 13689 s//\1/ 13690 q 13691 } 13692 /^X\(\/\/\)$/{ 13693 s//\1/ 13694 q 13695 } 13696 /^X\(\/\).*/{ 13697 s//\1/ 13698 q 13699 } 13700 s/.*/./; q'` 13701 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13702 # echo "creating $dirpart/$file" 13703 echo '# dummy' > "$dirpart/$file" 13704 done 13705 done 13706} 13707 ;; 13708 "libtool":C) 13709 13710 # See if we are running on zsh, and set the options which allow our 13711 # commands through without removal of \ escapes. 13712 if test -n "${ZSH_VERSION+set}" ; then 13713 setopt NO_GLOB_SUBST 13714 fi 13715 13716 cfgfile="${ofile}T" 13717 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13718 $RM "$cfgfile" 13719 13720 cat <<_LT_EOF >> "$cfgfile" 13721#! $SHELL 13722 13723# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13724# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13725# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13726# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13727# 13728# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13729# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 13730# Inc. 13731# Written by Gordon Matzigkeit, 1996 13732# 13733# This file is part of GNU Libtool. 13734# 13735# GNU Libtool is free software; you can redistribute it and/or 13736# modify it under the terms of the GNU General Public License as 13737# published by the Free Software Foundation; either version 2 of 13738# the License, or (at your option) any later version. 13739# 13740# As a special exception to the GNU General Public License, 13741# if you distribute this file as part of a program or library that 13742# is built using GNU Libtool, you may include this file under the 13743# same distribution terms that you use for the rest of that program. 13744# 13745# GNU Libtool is distributed in the hope that it will be useful, 13746# but WITHOUT ANY WARRANTY; without even the implied warranty of 13747# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13748# GNU General Public License for more details. 13749# 13750# You should have received a copy of the GNU General Public License 13751# along with GNU Libtool; see the file COPYING. If not, a copy 13752# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13753# obtained by writing to the Free Software Foundation, Inc., 13754# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13755 13756 13757# The names of the tagged configurations supported by this script. 13758available_tags="" 13759 13760# ### BEGIN LIBTOOL CONFIG 13761 13762# Which release of libtool.m4 was used? 13763macro_version=$macro_version 13764macro_revision=$macro_revision 13765 13766# Whether or not to build shared libraries. 13767build_libtool_libs=$enable_shared 13768 13769# Whether or not to build static libraries. 13770build_old_libs=$enable_static 13771 13772# What type of objects to build. 13773pic_mode=$pic_mode 13774 13775# Whether or not to optimize for fast installation. 13776fast_install=$enable_fast_install 13777 13778# Shell to use when invoking shell scripts. 13779SHELL=$lt_SHELL 13780 13781# An echo program that protects backslashes. 13782ECHO=$lt_ECHO 13783 13784# The host system. 13785host_alias=$host_alias 13786host=$host 13787host_os=$host_os 13788 13789# The build system. 13790build_alias=$build_alias 13791build=$build 13792build_os=$build_os 13793 13794# A sed program that does not truncate output. 13795SED=$lt_SED 13796 13797# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13798Xsed="\$SED -e 1s/^X//" 13799 13800# A grep program that handles long lines. 13801GREP=$lt_GREP 13802 13803# An ERE matcher. 13804EGREP=$lt_EGREP 13805 13806# A literal string matcher. 13807FGREP=$lt_FGREP 13808 13809# A BSD- or MS-compatible name lister. 13810NM=$lt_NM 13811 13812# Whether we need soft or hard links. 13813LN_S=$lt_LN_S 13814 13815# What is the maximum length of a command? 13816max_cmd_len=$max_cmd_len 13817 13818# Object file suffix (normally "o"). 13819objext=$ac_objext 13820 13821# Executable file suffix (normally ""). 13822exeext=$exeext 13823 13824# whether the shell understands "unset". 13825lt_unset=$lt_unset 13826 13827# turn spaces into newlines. 13828SP2NL=$lt_lt_SP2NL 13829 13830# turn newlines into spaces. 13831NL2SP=$lt_lt_NL2SP 13832 13833# convert \$build file names to \$host format. 13834to_host_file_cmd=$lt_cv_to_host_file_cmd 13835 13836# convert \$build files to toolchain format. 13837to_tool_file_cmd=$lt_cv_to_tool_file_cmd 13838 13839# An object symbol dumper. 13840OBJDUMP=$lt_OBJDUMP 13841 13842# Method to check whether dependent libraries are shared objects. 13843deplibs_check_method=$lt_deplibs_check_method 13844 13845# Command to use when deplibs_check_method = "file_magic". 13846file_magic_cmd=$lt_file_magic_cmd 13847 13848# How to find potential files when deplibs_check_method = "file_magic". 13849file_magic_glob=$lt_file_magic_glob 13850 13851# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 13852want_nocaseglob=$lt_want_nocaseglob 13853 13854# DLL creation program. 13855DLLTOOL=$lt_DLLTOOL 13856 13857# Command to associate shared and link libraries. 13858sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 13859 13860# The archiver. 13861AR=$lt_AR 13862 13863# Flags to create an archive. 13864AR_FLAGS=$lt_AR_FLAGS 13865 13866# How to feed a file listing to the archiver. 13867archiver_list_spec=$lt_archiver_list_spec 13868 13869# A symbol stripping program. 13870STRIP=$lt_STRIP 13871 13872# Commands used to install an old-style archive. 13873RANLIB=$lt_RANLIB 13874old_postinstall_cmds=$lt_old_postinstall_cmds 13875old_postuninstall_cmds=$lt_old_postuninstall_cmds 13876 13877# Whether to use a lock for old archive extraction. 13878lock_old_archive_extraction=$lock_old_archive_extraction 13879 13880# A C compiler. 13881LTCC=$lt_CC 13882 13883# LTCC compiler flags. 13884LTCFLAGS=$lt_CFLAGS 13885 13886# Take the output of nm and produce a listing of raw symbols and C names. 13887global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13888 13889# Transform the output of nm in a proper C declaration. 13890global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13891 13892# Transform the output of nm in a C name address pair. 13893global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13894 13895# Transform the output of nm in a C name address pair when lib prefix is needed. 13896global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13897 13898# Specify filename containing input files for \$NM. 13899nm_file_list_spec=$lt_nm_file_list_spec 13900 13901# The root where to search for dependent libraries,and in which our libraries should be installed. 13902lt_sysroot=$lt_sysroot 13903 13904# The name of the directory that contains temporary libtool files. 13905objdir=$objdir 13906 13907# Used to examine libraries when file_magic_cmd begins with "file". 13908MAGIC_CMD=$MAGIC_CMD 13909 13910# Must we lock files when doing compilation? 13911need_locks=$lt_need_locks 13912 13913# Manifest tool. 13914MANIFEST_TOOL=$lt_MANIFEST_TOOL 13915 13916# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13917DSYMUTIL=$lt_DSYMUTIL 13918 13919# Tool to change global to local symbols on Mac OS X. 13920NMEDIT=$lt_NMEDIT 13921 13922# Tool to manipulate fat objects and archives on Mac OS X. 13923LIPO=$lt_LIPO 13924 13925# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13926OTOOL=$lt_OTOOL 13927 13928# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13929OTOOL64=$lt_OTOOL64 13930 13931# Old archive suffix (normally "a"). 13932libext=$libext 13933 13934# Shared library suffix (normally ".so"). 13935shrext_cmds=$lt_shrext_cmds 13936 13937# The commands to extract the exported symbol list from a shared archive. 13938extract_expsyms_cmds=$lt_extract_expsyms_cmds 13939 13940# Variables whose values should be saved in libtool wrapper scripts and 13941# restored at link time. 13942variables_saved_for_relink=$lt_variables_saved_for_relink 13943 13944# Do we need the "lib" prefix for modules? 13945need_lib_prefix=$need_lib_prefix 13946 13947# Do we need a version for libraries? 13948need_version=$need_version 13949 13950# Library versioning type. 13951version_type=$version_type 13952 13953# Shared library runtime path variable. 13954runpath_var=$runpath_var 13955 13956# Shared library path variable. 13957shlibpath_var=$shlibpath_var 13958 13959# Is shlibpath searched before the hard-coded library search path? 13960shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13961 13962# Format of library name prefix. 13963libname_spec=$lt_libname_spec 13964 13965# List of archive names. First name is the real one, the rest are links. 13966# The last name is the one that the linker finds with -lNAME 13967library_names_spec=$lt_library_names_spec 13968 13969# The coded name of the library, if different from the real name. 13970soname_spec=$lt_soname_spec 13971 13972# Permission mode override for installation of shared libraries. 13973install_override_mode=$lt_install_override_mode 13974 13975# Command to use after installation of a shared archive. 13976postinstall_cmds=$lt_postinstall_cmds 13977 13978# Command to use after uninstallation of a shared archive. 13979postuninstall_cmds=$lt_postuninstall_cmds 13980 13981# Commands used to finish a libtool library installation in a directory. 13982finish_cmds=$lt_finish_cmds 13983 13984# As "finish_cmds", except a single script fragment to be evaled but 13985# not shown. 13986finish_eval=$lt_finish_eval 13987 13988# Whether we should hardcode library paths into libraries. 13989hardcode_into_libs=$hardcode_into_libs 13990 13991# Compile-time system search path for libraries. 13992sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13993 13994# Run-time system search path for libraries. 13995sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13996 13997# Whether dlopen is supported. 13998dlopen_support=$enable_dlopen 13999 14000# Whether dlopen of programs is supported. 14001dlopen_self=$enable_dlopen_self 14002 14003# Whether dlopen of statically linked programs is supported. 14004dlopen_self_static=$enable_dlopen_self_static 14005 14006# Commands to strip libraries. 14007old_striplib=$lt_old_striplib 14008striplib=$lt_striplib 14009 14010 14011# The linker used to build libraries. 14012LD=$lt_LD 14013 14014# How to create reloadable object files. 14015reload_flag=$lt_reload_flag 14016reload_cmds=$lt_reload_cmds 14017 14018# Commands used to build an old-style archive. 14019old_archive_cmds=$lt_old_archive_cmds 14020 14021# A language specific compiler. 14022CC=$lt_compiler 14023 14024# Is the compiler the GNU compiler? 14025with_gcc=$GCC 14026 14027# Compiler flag to turn off builtin functions. 14028no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 14029 14030# Additional compiler flags for building library objects. 14031pic_flag=$lt_lt_prog_compiler_pic 14032 14033# How to pass a linker flag through the compiler. 14034wl=$lt_lt_prog_compiler_wl 14035 14036# Compiler flag to prevent dynamic linking. 14037link_static_flag=$lt_lt_prog_compiler_static 14038 14039# Does compiler simultaneously support -c and -o options? 14040compiler_c_o=$lt_lt_cv_prog_compiler_c_o 14041 14042# Whether or not to add -lc for building shared libraries. 14043build_libtool_need_lc=$archive_cmds_need_lc 14044 14045# Whether or not to disallow shared libs when runtime libs are static. 14046allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 14047 14048# Compiler flag to allow reflexive dlopens. 14049export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 14050 14051# Compiler flag to generate shared objects directly from archives. 14052whole_archive_flag_spec=$lt_whole_archive_flag_spec 14053 14054# Whether the compiler copes with passing no objects directly. 14055compiler_needs_object=$lt_compiler_needs_object 14056 14057# Create an old-style archive from a shared archive. 14058old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 14059 14060# Create a temporary old-style archive to link instead of a shared archive. 14061old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 14062 14063# Commands used to build a shared archive. 14064archive_cmds=$lt_archive_cmds 14065archive_expsym_cmds=$lt_archive_expsym_cmds 14066 14067# Commands used to build a loadable module if different from building 14068# a shared archive. 14069module_cmds=$lt_module_cmds 14070module_expsym_cmds=$lt_module_expsym_cmds 14071 14072# Whether we are building with GNU ld or not. 14073with_gnu_ld=$lt_with_gnu_ld 14074 14075# Flag that allows shared libraries with undefined symbols to be built. 14076allow_undefined_flag=$lt_allow_undefined_flag 14077 14078# Flag that enforces no undefined symbols. 14079no_undefined_flag=$lt_no_undefined_flag 14080 14081# Flag to hardcode \$libdir into a binary during linking. 14082# This must work even if \$libdir does not exist 14083hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14084 14085# If ld is used when linking, flag to hardcode \$libdir into a binary 14086# during linking. This must work even if \$libdir does not exist. 14087hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14088 14089# Whether we need a single "-rpath" flag with a separated argument. 14090hardcode_libdir_separator=$lt_hardcode_libdir_separator 14091 14092# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14093# DIR into the resulting binary. 14094hardcode_direct=$hardcode_direct 14095 14096# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14097# DIR into the resulting binary and the resulting library dependency is 14098# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14099# library is relocated. 14100hardcode_direct_absolute=$hardcode_direct_absolute 14101 14102# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14103# into the resulting binary. 14104hardcode_minus_L=$hardcode_minus_L 14105 14106# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14107# into the resulting binary. 14108hardcode_shlibpath_var=$hardcode_shlibpath_var 14109 14110# Set to "yes" if building a shared library automatically hardcodes DIR 14111# into the library and all subsequent libraries and executables linked 14112# against it. 14113hardcode_automatic=$hardcode_automatic 14114 14115# Set to yes if linker adds runtime paths of dependent libraries 14116# to runtime path list. 14117inherit_rpath=$inherit_rpath 14118 14119# Whether libtool must link a program against all its dependency libraries. 14120link_all_deplibs=$link_all_deplibs 14121 14122# Set to "yes" if exported symbols are required. 14123always_export_symbols=$always_export_symbols 14124 14125# The commands to list exported symbols. 14126export_symbols_cmds=$lt_export_symbols_cmds 14127 14128# Symbols that should not be listed in the preloaded symbols. 14129exclude_expsyms=$lt_exclude_expsyms 14130 14131# Symbols that must always be exported. 14132include_expsyms=$lt_include_expsyms 14133 14134# Commands necessary for linking programs (against libraries) with templates. 14135prelink_cmds=$lt_prelink_cmds 14136 14137# Commands necessary for finishing linking programs. 14138postlink_cmds=$lt_postlink_cmds 14139 14140# Specify filename containing input files. 14141file_list_spec=$lt_file_list_spec 14142 14143# How to hardcode a shared library path into an executable. 14144hardcode_action=$hardcode_action 14145 14146# ### END LIBTOOL CONFIG 14147 14148_LT_EOF 14149 14150 case $host_os in 14151 aix3*) 14152 cat <<\_LT_EOF >> "$cfgfile" 14153# AIX sometimes has problems with the GCC collect2 program. For some 14154# reason, if we set the COLLECT_NAMES environment variable, the problems 14155# vanish in a puff of smoke. 14156if test "X${COLLECT_NAMES+set}" != Xset; then 14157 COLLECT_NAMES= 14158 export COLLECT_NAMES 14159fi 14160_LT_EOF 14161 ;; 14162 esac 14163 14164 14165ltmain="$ac_aux_dir/ltmain.sh" 14166 14167 14168 # We use sed instead of cat because bash on DJGPP gets confused if 14169 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14170 # text mode, it properly converts lines to CR/LF. This bash problem 14171 # is reportedly fixed, but why not run on old versions too? 14172 sed '$q' "$ltmain" >> "$cfgfile" \ 14173 || (rm -f "$cfgfile"; exit 1) 14174 14175 if test x"$xsi_shell" = xyes; then 14176 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 14177func_dirname ()\ 14178{\ 14179\ case ${1} in\ 14180\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14181\ * ) func_dirname_result="${3}" ;;\ 14182\ esac\ 14183} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 14184 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14185 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14186test 0 -eq $? || _lt_function_replace_fail=: 14187 14188 14189 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 14190func_basename ()\ 14191{\ 14192\ func_basename_result="${1##*/}"\ 14193} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14194 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14195 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14196test 0 -eq $? || _lt_function_replace_fail=: 14197 14198 14199 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 14200func_dirname_and_basename ()\ 14201{\ 14202\ case ${1} in\ 14203\ */*) func_dirname_result="${1%/*}${2}" ;;\ 14204\ * ) func_dirname_result="${3}" ;;\ 14205\ esac\ 14206\ func_basename_result="${1##*/}"\ 14207} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 14208 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14209 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14210test 0 -eq $? || _lt_function_replace_fail=: 14211 14212 14213 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 14214func_stripname ()\ 14215{\ 14216\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 14217\ # positional parameters, so assign one to ordinary parameter first.\ 14218\ func_stripname_result=${3}\ 14219\ func_stripname_result=${func_stripname_result#"${1}"}\ 14220\ func_stripname_result=${func_stripname_result%"${2}"}\ 14221} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 14222 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14223 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14224test 0 -eq $? || _lt_function_replace_fail=: 14225 14226 14227 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 14228func_split_long_opt ()\ 14229{\ 14230\ func_split_long_opt_name=${1%%=*}\ 14231\ func_split_long_opt_arg=${1#*=}\ 14232} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14233 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14234 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14235test 0 -eq $? || _lt_function_replace_fail=: 14236 14237 14238 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 14239func_split_short_opt ()\ 14240{\ 14241\ func_split_short_opt_arg=${1#??}\ 14242\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 14243} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 14244 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14245 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14246test 0 -eq $? || _lt_function_replace_fail=: 14247 14248 14249 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 14250func_lo2o ()\ 14251{\ 14252\ case ${1} in\ 14253\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 14254\ *) func_lo2o_result=${1} ;;\ 14255\ esac\ 14256} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 14257 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14258 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14259test 0 -eq $? || _lt_function_replace_fail=: 14260 14261 14262 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 14263func_xform ()\ 14264{\ 14265 func_xform_result=${1%.*}.lo\ 14266} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 14267 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14268 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14269test 0 -eq $? || _lt_function_replace_fail=: 14270 14271 14272 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 14273func_arith ()\ 14274{\ 14275 func_arith_result=$(( $* ))\ 14276} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 14277 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14278 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14279test 0 -eq $? || _lt_function_replace_fail=: 14280 14281 14282 sed -e '/^func_len ()$/,/^} # func_len /c\ 14283func_len ()\ 14284{\ 14285 func_len_result=${#1}\ 14286} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 14287 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14288 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14289test 0 -eq $? || _lt_function_replace_fail=: 14290 14291fi 14292 14293if test x"$lt_shell_append" = xyes; then 14294 sed -e '/^func_append ()$/,/^} # func_append /c\ 14295func_append ()\ 14296{\ 14297 eval "${1}+=\\${2}"\ 14298} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 14299 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14300 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14301test 0 -eq $? || _lt_function_replace_fail=: 14302 14303 14304 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 14305func_append_quoted ()\ 14306{\ 14307\ func_quote_for_eval "${2}"\ 14308\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 14309} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 14310 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14311 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14312test 0 -eq $? || _lt_function_replace_fail=: 14313 14314 14315 # Save a `func_append' function call where possible by direct use of '+=' 14316 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 14317 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14318 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14319 test 0 -eq $? || _lt_function_replace_fail=: 14320else 14321 # Save a `func_append' function call even when '+=' is not available 14322 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 14323 && mv -f "$cfgfile.tmp" "$cfgfile" \ 14324 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 14325 test 0 -eq $? || _lt_function_replace_fail=: 14326fi 14327 14328if test x"$_lt_function_replace_fail" = x":"; then 14329 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 14330$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 14331fi 14332 14333 14334 mv -f "$cfgfile" "$ofile" || 14335 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14336 chmod +x "$ofile" 14337 14338 ;; 14339 14340 esac 14341done # for ac_tag 14342 14343 14344as_fn_exit 0 14345_ACEOF 14346ac_clean_files=$ac_clean_files_save 14347 14348test $ac_write_fail = 0 || 14349 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14350 14351 14352# configure is writing to config.log, and then calls config.status. 14353# config.status does its own redirection, appending to config.log. 14354# Unfortunately, on DOS this fails, as config.log is still kept open 14355# by configure, so config.status won't be able to write to it; its 14356# output is simply discarded. So we exec the FD to /dev/null, 14357# effectively closing config.log, so it can be properly (re)opened and 14358# appended to by config.status. When coming back to configure, we 14359# need to make the FD available again. 14360if test "$no_create" != yes; then 14361 ac_cs_success=: 14362 ac_config_status_args= 14363 test "$silent" = yes && 14364 ac_config_status_args="$ac_config_status_args --quiet" 14365 exec 5>/dev/null 14366 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14367 exec 5>>config.log 14368 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14369 # would make configure fail if this is the last instruction. 14370 $ac_cs_success || as_fn_exit 1 14371fi 14372if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14373 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14374$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14375fi 14376 14377