configure revision 524e9589
1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.68 for libXxf86dga 1.1.2. 4# 5# Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94as_myself= 95case $0 in #(( 96 *[\\/]* ) as_myself=$0 ;; 97 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 98for as_dir in $PATH 99do 100 IFS=$as_save_IFS 101 test -z "$as_dir" && as_dir=. 102 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 103 done 104IFS=$as_save_IFS 105 106 ;; 107esac 108# We did not find ourselves, most probably we were run as `sh COMMAND' 109# in which case we are not to be found in the path. 110if test "x$as_myself" = x; then 111 as_myself=$0 112fi 113if test ! -f "$as_myself"; then 114 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 115 exit 1 116fi 117 118# Unset variables that we do not need and which cause bugs (e.g. in 119# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 120# suppresses any "Segmentation fault" message there. '((' could 121# trigger a bug in pdksh 5.2.14. 122for as_var in BASH_ENV ENV MAIL MAILPATH 123do eval test x\${$as_var+set} = xset \ 124 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 125done 126PS1='$ ' 127PS2='> ' 128PS4='+ ' 129 130# NLS nuisances. 131LC_ALL=C 132export LC_ALL 133LANGUAGE=C 134export LANGUAGE 135 136# CDPATH. 137(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 138 139if test "x$CONFIG_SHELL" = x; then 140 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 141 emulate sh 142 NULLCMD=: 143 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 144 # is contrary to our usage. Disable this feature. 145 alias -g '\${1+\"\$@\"}'='\"\$@\"' 146 setopt NO_GLOB_SUBST 147else 148 case \`(set -o) 2>/dev/null\` in #( 149 *posix*) : 150 set -o posix ;; #( 151 *) : 152 ;; 153esac 154fi 155" 156 as_required="as_fn_return () { (exit \$1); } 157as_fn_success () { as_fn_return 0; } 158as_fn_failure () { as_fn_return 1; } 159as_fn_ret_success () { return 0; } 160as_fn_ret_failure () { return 1; } 161 162exitcode=0 163as_fn_success || { exitcode=1; echo as_fn_success failed.; } 164as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 165as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 166as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 167if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 168 169else 170 exitcode=1; echo positional parameters were not saved. 171fi 172test x\$exitcode = x0 || exit 1" 173 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 174 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 175 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 176 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 177test \$(( 1 + 1 )) = 2 || exit 1 178 179 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 180 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 183 PATH=/empty FPATH=/empty; export PATH FPATH 184 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 185 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 186 if (eval "$as_required") 2>/dev/null; then : 187 as_have_required=yes 188else 189 as_have_required=no 190fi 191 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 192 193else 194 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 195as_found=false 196for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 197do 198 IFS=$as_save_IFS 199 test -z "$as_dir" && as_dir=. 200 as_found=: 201 case $as_dir in #( 202 /*) 203 for as_base in sh bash ksh sh5; do 204 # Try only shells that exist, to save several forks. 205 as_shell=$as_dir/$as_base 206 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 207 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 208 CONFIG_SHELL=$as_shell as_have_required=yes 209 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 210 break 2 211fi 212fi 213 done;; 214 esac 215 as_found=false 216done 217$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 218 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 219 CONFIG_SHELL=$SHELL as_have_required=yes 220fi; } 221IFS=$as_save_IFS 222 223 224 if test "x$CONFIG_SHELL" != x; then : 225 # We cannot yet assume a decent shell, so we have to provide a 226 # neutralization value for shells without unset; and this also 227 # works around shells that cannot unset nonexistent variables. 228 # Preserve -v and -x to the replacement shell. 229 BASH_ENV=/dev/null 230 ENV=/dev/null 231 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 232 export CONFIG_SHELL 233 case $- in # (((( 234 *v*x* | *x*v* ) as_opts=-vx ;; 235 *v* ) as_opts=-v ;; 236 *x* ) as_opts=-x ;; 237 * ) as_opts= ;; 238 esac 239 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"} 240fi 241 242 if test x$as_have_required = xno; then : 243 $as_echo "$0: This script requires a shell more modern than all" 244 $as_echo "$0: the shells that I found on your system." 245 if test x${ZSH_VERSION+set} = xset ; then 246 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 247 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 248 else 249 $as_echo "$0: Please tell bug-autoconf@gnu.org and 250$0: https://bugs.freedesktop.org/enter_bug.cgi?product=xorg 251$0: about your system, including any error possibly output 252$0: before this message. Then install a modern shell, or 253$0: manually run the script under such a shell if you do 254$0: have one." 255 fi 256 exit 1 257fi 258fi 259fi 260SHELL=${CONFIG_SHELL-/bin/sh} 261export SHELL 262# Unset more variables known to interfere with behavior of common tools. 263CLICOLOR_FORCE= GREP_OPTIONS= 264unset CLICOLOR_FORCE GREP_OPTIONS 265 266## --------------------- ## 267## M4sh Shell Functions. ## 268## --------------------- ## 269# as_fn_unset VAR 270# --------------- 271# Portably unset VAR. 272as_fn_unset () 273{ 274 { eval $1=; unset $1;} 275} 276as_unset=as_fn_unset 277 278# as_fn_set_status STATUS 279# ----------------------- 280# Set $? to STATUS, without forking. 281as_fn_set_status () 282{ 283 return $1 284} # as_fn_set_status 285 286# as_fn_exit STATUS 287# ----------------- 288# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 289as_fn_exit () 290{ 291 set +e 292 as_fn_set_status $1 293 exit $1 294} # as_fn_exit 295 296# as_fn_mkdir_p 297# ------------- 298# Create "$as_dir" as a directory, including parents if necessary. 299as_fn_mkdir_p () 300{ 301 302 case $as_dir in #( 303 -*) as_dir=./$as_dir;; 304 esac 305 test -d "$as_dir" || eval $as_mkdir_p || { 306 as_dirs= 307 while :; do 308 case $as_dir in #( 309 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 310 *) as_qdir=$as_dir;; 311 esac 312 as_dirs="'$as_qdir' $as_dirs" 313 as_dir=`$as_dirname -- "$as_dir" || 314$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 315 X"$as_dir" : 'X\(//\)[^/]' \| \ 316 X"$as_dir" : 'X\(//\)$' \| \ 317 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 318$as_echo X"$as_dir" | 319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 320 s//\1/ 321 q 322 } 323 /^X\(\/\/\)[^/].*/{ 324 s//\1/ 325 q 326 } 327 /^X\(\/\/\)$/{ 328 s//\1/ 329 q 330 } 331 /^X\(\/\).*/{ 332 s//\1/ 333 q 334 } 335 s/.*/./; q'` 336 test -d "$as_dir" && break 337 done 338 test -z "$as_dirs" || eval "mkdir $as_dirs" 339 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 340 341 342} # as_fn_mkdir_p 343# as_fn_append VAR VALUE 344# ---------------------- 345# Append the text in VALUE to the end of the definition contained in VAR. Take 346# advantage of any shell optimizations that allow amortized linear growth over 347# repeated appends, instead of the typical quadratic growth present in naive 348# implementations. 349if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 350 eval 'as_fn_append () 351 { 352 eval $1+=\$2 353 }' 354else 355 as_fn_append () 356 { 357 eval $1=\$$1\$2 358 } 359fi # as_fn_append 360 361# as_fn_arith ARG... 362# ------------------ 363# Perform arithmetic evaluation on the ARGs, and store the result in the 364# global $as_val. Take advantage of shells that can avoid forks. The arguments 365# must be portable across $(()) and expr. 366if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 367 eval 'as_fn_arith () 368 { 369 as_val=$(( $* )) 370 }' 371else 372 as_fn_arith () 373 { 374 as_val=`expr "$@" || test $? -eq 1` 375 } 376fi # as_fn_arith 377 378 379# as_fn_error STATUS ERROR [LINENO LOG_FD] 380# ---------------------------------------- 381# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 382# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 383# script with STATUS, using 1 if that was 0. 384as_fn_error () 385{ 386 as_status=$1; test $as_status -eq 0 && as_status=1 387 if test "$4"; then 388 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 389 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 390 fi 391 $as_echo "$as_me: error: $2" >&2 392 as_fn_exit $as_status 393} # as_fn_error 394 395if expr a : '\(a\)' >/dev/null 2>&1 && 396 test "X`expr 00001 : '.*\(...\)'`" = X001; then 397 as_expr=expr 398else 399 as_expr=false 400fi 401 402if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 403 as_basename=basename 404else 405 as_basename=false 406fi 407 408if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 409 as_dirname=dirname 410else 411 as_dirname=false 412fi 413 414as_me=`$as_basename -- "$0" || 415$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 416 X"$0" : 'X\(//\)$' \| \ 417 X"$0" : 'X\(/\)' \| . 2>/dev/null || 418$as_echo X/"$0" | 419 sed '/^.*\/\([^/][^/]*\)\/*$/{ 420 s//\1/ 421 q 422 } 423 /^X\/\(\/\/\)$/{ 424 s//\1/ 425 q 426 } 427 /^X\/\(\/\).*/{ 428 s//\1/ 429 q 430 } 431 s/.*/./; q'` 432 433# Avoid depending upon Character Ranges. 434as_cr_letters='abcdefghijklmnopqrstuvwxyz' 435as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 436as_cr_Letters=$as_cr_letters$as_cr_LETTERS 437as_cr_digits='0123456789' 438as_cr_alnum=$as_cr_Letters$as_cr_digits 439 440 441 as_lineno_1=$LINENO as_lineno_1a=$LINENO 442 as_lineno_2=$LINENO as_lineno_2a=$LINENO 443 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 444 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 445 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 446 sed -n ' 447 p 448 /[$]LINENO/= 449 ' <$as_myself | 450 sed ' 451 s/[$]LINENO.*/&-/ 452 t lineno 453 b 454 :lineno 455 N 456 :loop 457 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 458 t loop 459 s/-\n.*// 460 ' >$as_me.lineno && 461 chmod +x "$as_me.lineno" || 462 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 463 464 # Don't try to exec as it changes $[0], causing all sort of problems 465 # (the dirname of $[0] is not the place where we might find the 466 # original and so on. Autoconf is especially sensitive to this). 467 . "./$as_me.lineno" 468 # Exit status is that of the last command. 469 exit 470} 471 472ECHO_C= ECHO_N= ECHO_T= 473case `echo -n x` in #((((( 474-n*) 475 case `echo 'xy\c'` in 476 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 477 xy) ECHO_C='\c';; 478 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 479 ECHO_T=' ';; 480 esac;; 481*) 482 ECHO_N='-n';; 483esac 484 485rm -f conf$$ conf$$.exe conf$$.file 486if test -d conf$$.dir; then 487 rm -f conf$$.dir/conf$$.file 488else 489 rm -f conf$$.dir 490 mkdir conf$$.dir 2>/dev/null 491fi 492if (echo >conf$$.file) 2>/dev/null; then 493 if ln -s conf$$.file conf$$ 2>/dev/null; then 494 as_ln_s='ln -s' 495 # ... but there are two gotchas: 496 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 497 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 498 # In both cases, we have to default to `cp -p'. 499 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 500 as_ln_s='cp -p' 501 elif ln conf$$.file conf$$ 2>/dev/null; then 502 as_ln_s=ln 503 else 504 as_ln_s='cp -p' 505 fi 506else 507 as_ln_s='cp -p' 508fi 509rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 510rmdir conf$$.dir 2>/dev/null 511 512if mkdir -p . 2>/dev/null; then 513 as_mkdir_p='mkdir -p "$as_dir"' 514else 515 test -d ./-p && rmdir ./-p 516 as_mkdir_p=false 517fi 518 519if test -x / >/dev/null 2>&1; then 520 as_test_x='test -x' 521else 522 if ls -dL / >/dev/null 2>&1; then 523 as_ls_L_option=L 524 else 525 as_ls_L_option= 526 fi 527 as_test_x=' 528 eval sh -c '\'' 529 if test -d "$1"; then 530 test -d "$1/."; 531 else 532 case $1 in #( 533 -*)set "./$1";; 534 esac; 535 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 536 ???[sx]*):;;*)false;;esac;fi 537 '\'' sh 538 ' 539fi 540as_executable_p=$as_test_x 541 542# Sed expression to map a string onto a valid CPP name. 543as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 544 545# Sed expression to map a string onto a valid variable name. 546as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 547 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='libXxf86dga' 573PACKAGE_TARNAME='libXxf86dga' 574PACKAGE_VERSION='1.1.2' 575PACKAGE_STRING='libXxf86dga 1.1.2' 576PACKAGE_BUGREPORT='https://bugs.freedesktop.org/enter_bug.cgi?product=xorg' 577PACKAGE_URL='' 578 579# Factoring default headers for most tests. 580ac_includes_default="\ 581#include <stdio.h> 582#ifdef HAVE_SYS_TYPES_H 583# include <sys/types.h> 584#endif 585#ifdef HAVE_SYS_STAT_H 586# include <sys/stat.h> 587#endif 588#ifdef STDC_HEADERS 589# include <stdlib.h> 590# include <stddef.h> 591#else 592# ifdef HAVE_STDLIB_H 593# include <stdlib.h> 594# endif 595#endif 596#ifdef HAVE_STRING_H 597# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 598# include <memory.h> 599# endif 600# include <string.h> 601#endif 602#ifdef HAVE_STRINGS_H 603# include <strings.h> 604#endif 605#ifdef HAVE_INTTYPES_H 606# include <inttypes.h> 607#endif 608#ifdef HAVE_STDINT_H 609# include <stdint.h> 610#endif 611#ifdef HAVE_UNISTD_H 612# include <unistd.h> 613#endif" 614 615ac_subst_vars='am__EXEEXT_FALSE 616am__EXEEXT_TRUE 617LTLIBOBJS 618LIBOBJS 619XTMALLOC_ZERO_CFLAGS 620XMALLOC_ZERO_CFLAGS 621MALLOC_ZERO_CFLAGS 622XXF86DGA_LIBS 623XXF86DGA_CFLAGS 624OTOOL64 625OTOOL 626LIPO 627NMEDIT 628DSYMUTIL 629RANLIB 630AR 631OBJDUMP 632LN_S 633NM 634ac_ct_DUMPBIN 635DUMPBIN 636LD 637FGREP 638LIBTOOL 639AM_BACKSLASH 640AM_DEFAULT_VERBOSITY 641MAN_SUBSTS 642XORG_MAN_PAGE 643ADMIN_MAN_DIR 644DRIVER_MAN_DIR 645MISC_MAN_DIR 646FILE_MAN_DIR 647LIB_MAN_DIR 648APP_MAN_DIR 649ADMIN_MAN_SUFFIX 650DRIVER_MAN_SUFFIX 651MISC_MAN_SUFFIX 652FILE_MAN_SUFFIX 653LIB_MAN_SUFFIX 654APP_MAN_SUFFIX 655SED 656host_os 657host_vendor 658host_cpu 659host 660build_os 661build_vendor 662build_cpu 663build 664INSTALL_CMD 665PKG_CONFIG 666CHANGELOG_CMD 667CWARNFLAGS 668EGREP 669GREP 670CPP 671am__fastdepCC_FALSE 672am__fastdepCC_TRUE 673CCDEPMODE 674AMDEPBACKSLASH 675AMDEP_FALSE 676AMDEP_TRUE 677am__quote 678am__include 679DEPDIR 680OBJEXT 681EXEEXT 682ac_ct_CC 683CPPFLAGS 684LDFLAGS 685CFLAGS 686CC 687MAINT 688MAINTAINER_MODE_FALSE 689MAINTAINER_MODE_TRUE 690am__untar 691am__tar 692AMTAR 693am__leading_dot 694SET_MAKE 695AWK 696mkdir_p 697MKDIR_P 698INSTALL_STRIP_PROGRAM 699STRIP 700install_sh 701MAKEINFO 702AUTOHEADER 703AUTOMAKE 704AUTOCONF 705ACLOCAL 706VERSION 707PACKAGE 708CYGPATH_W 709am__isrc 710INSTALL_DATA 711INSTALL_SCRIPT 712INSTALL_PROGRAM 713target_alias 714host_alias 715build_alias 716LIBS 717ECHO_T 718ECHO_N 719ECHO_C 720DEFS 721mandir 722localedir 723libdir 724psdir 725pdfdir 726dvidir 727htmldir 728infodir 729docdir 730oldincludedir 731includedir 732localstatedir 733sharedstatedir 734sysconfdir 735datadir 736datarootdir 737libexecdir 738sbindir 739bindir 740program_transform_name 741prefix 742exec_prefix 743PACKAGE_URL 744PACKAGE_BUGREPORT 745PACKAGE_STRING 746PACKAGE_VERSION 747PACKAGE_TARNAME 748PACKAGE_NAME 749PATH_SEPARATOR 750SHELL' 751ac_subst_files='' 752ac_user_opts=' 753enable_option_checking 754enable_maintainer_mode 755enable_dependency_tracking 756enable_strict_compilation 757enable_silent_rules 758enable_shared 759enable_static 760with_pic 761enable_fast_install 762with_gnu_ld 763enable_libtool_lock 764enable_malloc0returnsnull 765' 766 ac_precious_vars='build_alias 767host_alias 768target_alias 769CC 770CFLAGS 771LDFLAGS 772LIBS 773CPPFLAGS 774CPP 775PKG_CONFIG 776XXF86DGA_CFLAGS 777XXF86DGA_LIBS' 778 779 780# Initialize some variables set by options. 781ac_init_help= 782ac_init_version=false 783ac_unrecognized_opts= 784ac_unrecognized_sep= 785# The variables have the same names as the options, with 786# dashes changed to underlines. 787cache_file=/dev/null 788exec_prefix=NONE 789no_create= 790no_recursion= 791prefix=NONE 792program_prefix=NONE 793program_suffix=NONE 794program_transform_name=s,x,x, 795silent= 796site= 797srcdir= 798verbose= 799x_includes=NONE 800x_libraries=NONE 801 802# Installation directory options. 803# These are left unexpanded so users can "make install exec_prefix=/foo" 804# and all the variables that are supposed to be based on exec_prefix 805# by default will actually change. 806# Use braces instead of parens because sh, perl, etc. also accept them. 807# (The list follows the same order as the GNU Coding Standards.) 808bindir='${exec_prefix}/bin' 809sbindir='${exec_prefix}/sbin' 810libexecdir='${exec_prefix}/libexec' 811datarootdir='${prefix}/share' 812datadir='${datarootdir}' 813sysconfdir='${prefix}/etc' 814sharedstatedir='${prefix}/com' 815localstatedir='${prefix}/var' 816includedir='${prefix}/include' 817oldincludedir='/usr/include' 818docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 819infodir='${datarootdir}/info' 820htmldir='${docdir}' 821dvidir='${docdir}' 822pdfdir='${docdir}' 823psdir='${docdir}' 824libdir='${exec_prefix}/lib' 825localedir='${datarootdir}/locale' 826mandir='${datarootdir}/man' 827 828ac_prev= 829ac_dashdash= 830for ac_option 831do 832 # If the previous option needs an argument, assign it. 833 if test -n "$ac_prev"; then 834 eval $ac_prev=\$ac_option 835 ac_prev= 836 continue 837 fi 838 839 case $ac_option in 840 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 841 *=) ac_optarg= ;; 842 *) ac_optarg=yes ;; 843 esac 844 845 # Accept the important Cygnus configure options, so we can diagnose typos. 846 847 case $ac_dashdash$ac_option in 848 --) 849 ac_dashdash=yes ;; 850 851 -bindir | --bindir | --bindi | --bind | --bin | --bi) 852 ac_prev=bindir ;; 853 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 854 bindir=$ac_optarg ;; 855 856 -build | --build | --buil | --bui | --bu) 857 ac_prev=build_alias ;; 858 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 859 build_alias=$ac_optarg ;; 860 861 -cache-file | --cache-file | --cache-fil | --cache-fi \ 862 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 863 ac_prev=cache_file ;; 864 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 865 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 866 cache_file=$ac_optarg ;; 867 868 --config-cache | -C) 869 cache_file=config.cache ;; 870 871 -datadir | --datadir | --datadi | --datad) 872 ac_prev=datadir ;; 873 -datadir=* | --datadir=* | --datadi=* | --datad=*) 874 datadir=$ac_optarg ;; 875 876 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 877 | --dataroo | --dataro | --datar) 878 ac_prev=datarootdir ;; 879 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 880 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 881 datarootdir=$ac_optarg ;; 882 883 -disable-* | --disable-*) 884 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 885 # Reject names that are not valid shell variable names. 886 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 887 as_fn_error $? "invalid feature name: $ac_useropt" 888 ac_useropt_orig=$ac_useropt 889 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 890 case $ac_user_opts in 891 *" 892"enable_$ac_useropt" 893"*) ;; 894 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 895 ac_unrecognized_sep=', ';; 896 esac 897 eval enable_$ac_useropt=no ;; 898 899 -docdir | --docdir | --docdi | --doc | --do) 900 ac_prev=docdir ;; 901 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 902 docdir=$ac_optarg ;; 903 904 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 905 ac_prev=dvidir ;; 906 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 907 dvidir=$ac_optarg ;; 908 909 -enable-* | --enable-*) 910 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 911 # Reject names that are not valid shell variable names. 912 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 913 as_fn_error $? "invalid feature name: $ac_useropt" 914 ac_useropt_orig=$ac_useropt 915 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 916 case $ac_user_opts in 917 *" 918"enable_$ac_useropt" 919"*) ;; 920 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 921 ac_unrecognized_sep=', ';; 922 esac 923 eval enable_$ac_useropt=\$ac_optarg ;; 924 925 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 926 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 927 | --exec | --exe | --ex) 928 ac_prev=exec_prefix ;; 929 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 930 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 931 | --exec=* | --exe=* | --ex=*) 932 exec_prefix=$ac_optarg ;; 933 934 -gas | --gas | --ga | --g) 935 # Obsolete; use --with-gas. 936 with_gas=yes ;; 937 938 -help | --help | --hel | --he | -h) 939 ac_init_help=long ;; 940 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 941 ac_init_help=recursive ;; 942 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 943 ac_init_help=short ;; 944 945 -host | --host | --hos | --ho) 946 ac_prev=host_alias ;; 947 -host=* | --host=* | --hos=* | --ho=*) 948 host_alias=$ac_optarg ;; 949 950 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 951 ac_prev=htmldir ;; 952 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 953 | --ht=*) 954 htmldir=$ac_optarg ;; 955 956 -includedir | --includedir | --includedi | --included | --include \ 957 | --includ | --inclu | --incl | --inc) 958 ac_prev=includedir ;; 959 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 960 | --includ=* | --inclu=* | --incl=* | --inc=*) 961 includedir=$ac_optarg ;; 962 963 -infodir | --infodir | --infodi | --infod | --info | --inf) 964 ac_prev=infodir ;; 965 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 966 infodir=$ac_optarg ;; 967 968 -libdir | --libdir | --libdi | --libd) 969 ac_prev=libdir ;; 970 -libdir=* | --libdir=* | --libdi=* | --libd=*) 971 libdir=$ac_optarg ;; 972 973 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 974 | --libexe | --libex | --libe) 975 ac_prev=libexecdir ;; 976 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 977 | --libexe=* | --libex=* | --libe=*) 978 libexecdir=$ac_optarg ;; 979 980 -localedir | --localedir | --localedi | --localed | --locale) 981 ac_prev=localedir ;; 982 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 983 localedir=$ac_optarg ;; 984 985 -localstatedir | --localstatedir | --localstatedi | --localstated \ 986 | --localstate | --localstat | --localsta | --localst | --locals) 987 ac_prev=localstatedir ;; 988 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 989 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 990 localstatedir=$ac_optarg ;; 991 992 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 993 ac_prev=mandir ;; 994 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 995 mandir=$ac_optarg ;; 996 997 -nfp | --nfp | --nf) 998 # Obsolete; use --without-fp. 999 with_fp=no ;; 1000 1001 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1002 | --no-cr | --no-c | -n) 1003 no_create=yes ;; 1004 1005 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1006 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1007 no_recursion=yes ;; 1008 1009 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1010 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1011 | --oldin | --oldi | --old | --ol | --o) 1012 ac_prev=oldincludedir ;; 1013 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1014 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1015 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1016 oldincludedir=$ac_optarg ;; 1017 1018 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1019 ac_prev=prefix ;; 1020 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1021 prefix=$ac_optarg ;; 1022 1023 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1024 | --program-pre | --program-pr | --program-p) 1025 ac_prev=program_prefix ;; 1026 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1027 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1028 program_prefix=$ac_optarg ;; 1029 1030 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1031 | --program-suf | --program-su | --program-s) 1032 ac_prev=program_suffix ;; 1033 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1034 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1035 program_suffix=$ac_optarg ;; 1036 1037 -program-transform-name | --program-transform-name \ 1038 | --program-transform-nam | --program-transform-na \ 1039 | --program-transform-n | --program-transform- \ 1040 | --program-transform | --program-transfor \ 1041 | --program-transfo | --program-transf \ 1042 | --program-trans | --program-tran \ 1043 | --progr-tra | --program-tr | --program-t) 1044 ac_prev=program_transform_name ;; 1045 -program-transform-name=* | --program-transform-name=* \ 1046 | --program-transform-nam=* | --program-transform-na=* \ 1047 | --program-transform-n=* | --program-transform-=* \ 1048 | --program-transform=* | --program-transfor=* \ 1049 | --program-transfo=* | --program-transf=* \ 1050 | --program-trans=* | --program-tran=* \ 1051 | --progr-tra=* | --program-tr=* | --program-t=*) 1052 program_transform_name=$ac_optarg ;; 1053 1054 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1055 ac_prev=pdfdir ;; 1056 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1057 pdfdir=$ac_optarg ;; 1058 1059 -psdir | --psdir | --psdi | --psd | --ps) 1060 ac_prev=psdir ;; 1061 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1062 psdir=$ac_optarg ;; 1063 1064 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1065 | -silent | --silent | --silen | --sile | --sil) 1066 silent=yes ;; 1067 1068 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1069 ac_prev=sbindir ;; 1070 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1071 | --sbi=* | --sb=*) 1072 sbindir=$ac_optarg ;; 1073 1074 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1075 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1076 | --sharedst | --shareds | --shared | --share | --shar \ 1077 | --sha | --sh) 1078 ac_prev=sharedstatedir ;; 1079 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1080 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1081 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1082 | --sha=* | --sh=*) 1083 sharedstatedir=$ac_optarg ;; 1084 1085 -site | --site | --sit) 1086 ac_prev=site ;; 1087 -site=* | --site=* | --sit=*) 1088 site=$ac_optarg ;; 1089 1090 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1091 ac_prev=srcdir ;; 1092 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1093 srcdir=$ac_optarg ;; 1094 1095 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1096 | --syscon | --sysco | --sysc | --sys | --sy) 1097 ac_prev=sysconfdir ;; 1098 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1099 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1100 sysconfdir=$ac_optarg ;; 1101 1102 -target | --target | --targe | --targ | --tar | --ta | --t) 1103 ac_prev=target_alias ;; 1104 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1105 target_alias=$ac_optarg ;; 1106 1107 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1108 verbose=yes ;; 1109 1110 -version | --version | --versio | --versi | --vers | -V) 1111 ac_init_version=: ;; 1112 1113 -with-* | --with-*) 1114 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1115 # Reject names that are not valid shell variable names. 1116 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1117 as_fn_error $? "invalid package name: $ac_useropt" 1118 ac_useropt_orig=$ac_useropt 1119 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1120 case $ac_user_opts in 1121 *" 1122"with_$ac_useropt" 1123"*) ;; 1124 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1125 ac_unrecognized_sep=', ';; 1126 esac 1127 eval with_$ac_useropt=\$ac_optarg ;; 1128 1129 -without-* | --without-*) 1130 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1131 # Reject names that are not valid shell variable names. 1132 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1133 as_fn_error $? "invalid package name: $ac_useropt" 1134 ac_useropt_orig=$ac_useropt 1135 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1136 case $ac_user_opts in 1137 *" 1138"with_$ac_useropt" 1139"*) ;; 1140 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1141 ac_unrecognized_sep=', ';; 1142 esac 1143 eval with_$ac_useropt=no ;; 1144 1145 --x) 1146 # Obsolete; use --with-x. 1147 with_x=yes ;; 1148 1149 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1150 | --x-incl | --x-inc | --x-in | --x-i) 1151 ac_prev=x_includes ;; 1152 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1153 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1154 x_includes=$ac_optarg ;; 1155 1156 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1157 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1158 ac_prev=x_libraries ;; 1159 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1160 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1161 x_libraries=$ac_optarg ;; 1162 1163 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1164Try \`$0 --help' for more information" 1165 ;; 1166 1167 *=*) 1168 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1169 # Reject names that are not valid shell variable names. 1170 case $ac_envvar in #( 1171 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1172 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1173 esac 1174 eval $ac_envvar=\$ac_optarg 1175 export $ac_envvar ;; 1176 1177 *) 1178 # FIXME: should be removed in autoconf 3.0. 1179 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1180 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1181 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1182 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1183 ;; 1184 1185 esac 1186done 1187 1188if test -n "$ac_prev"; then 1189 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1190 as_fn_error $? "missing argument to $ac_option" 1191fi 1192 1193if test -n "$ac_unrecognized_opts"; then 1194 case $enable_option_checking in 1195 no) ;; 1196 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1197 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1198 esac 1199fi 1200 1201# Check all directory arguments for consistency. 1202for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1203 datadir sysconfdir sharedstatedir localstatedir includedir \ 1204 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1205 libdir localedir mandir 1206do 1207 eval ac_val=\$$ac_var 1208 # Remove trailing slashes. 1209 case $ac_val in 1210 */ ) 1211 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1212 eval $ac_var=\$ac_val;; 1213 esac 1214 # Be sure to have absolute directory names. 1215 case $ac_val in 1216 [\\/$]* | ?:[\\/]* ) continue;; 1217 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1218 esac 1219 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1220done 1221 1222# There might be people who depend on the old broken behavior: `$host' 1223# used to hold the argument of --host etc. 1224# FIXME: To remove some day. 1225build=$build_alias 1226host=$host_alias 1227target=$target_alias 1228 1229# FIXME: To remove some day. 1230if test "x$host_alias" != x; then 1231 if test "x$build_alias" = x; then 1232 cross_compiling=maybe 1233 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1234 If a cross compiler is detected then cross compile mode will be used" >&2 1235 elif test "x$build_alias" != "x$host_alias"; then 1236 cross_compiling=yes 1237 fi 1238fi 1239 1240ac_tool_prefix= 1241test -n "$host_alias" && ac_tool_prefix=$host_alias- 1242 1243test "$silent" = yes && exec 6>/dev/null 1244 1245 1246ac_pwd=`pwd` && test -n "$ac_pwd" && 1247ac_ls_di=`ls -di .` && 1248ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1249 as_fn_error $? "working directory cannot be determined" 1250test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1251 as_fn_error $? "pwd does not report name of working directory" 1252 1253 1254# Find the source files, if location was not specified. 1255if test -z "$srcdir"; then 1256 ac_srcdir_defaulted=yes 1257 # Try the directory containing this script, then the parent directory. 1258 ac_confdir=`$as_dirname -- "$as_myself" || 1259$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1260 X"$as_myself" : 'X\(//\)[^/]' \| \ 1261 X"$as_myself" : 'X\(//\)$' \| \ 1262 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1263$as_echo X"$as_myself" | 1264 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1265 s//\1/ 1266 q 1267 } 1268 /^X\(\/\/\)[^/].*/{ 1269 s//\1/ 1270 q 1271 } 1272 /^X\(\/\/\)$/{ 1273 s//\1/ 1274 q 1275 } 1276 /^X\(\/\).*/{ 1277 s//\1/ 1278 q 1279 } 1280 s/.*/./; q'` 1281 srcdir=$ac_confdir 1282 if test ! -r "$srcdir/$ac_unique_file"; then 1283 srcdir=.. 1284 fi 1285else 1286 ac_srcdir_defaulted=no 1287fi 1288if test ! -r "$srcdir/$ac_unique_file"; then 1289 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1290 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1291fi 1292ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1293ac_abs_confdir=`( 1294 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1295 pwd)` 1296# When building in place, set srcdir=. 1297if test "$ac_abs_confdir" = "$ac_pwd"; then 1298 srcdir=. 1299fi 1300# Remove unnecessary trailing slashes from srcdir. 1301# Double slashes in file names in object file debugging info 1302# mess up M-x gdb in Emacs. 1303case $srcdir in 1304*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1305esac 1306for ac_var in $ac_precious_vars; do 1307 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1308 eval ac_env_${ac_var}_value=\$${ac_var} 1309 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1310 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1311done 1312 1313# 1314# Report the --help message. 1315# 1316if test "$ac_init_help" = "long"; then 1317 # Omit some internal or obsolete options to make the list less imposing. 1318 # This message is too long to be a string in the A/UX 3.1 sh. 1319 cat <<_ACEOF 1320\`configure' configures libXxf86dga 1.1.2 to adapt to many kinds of systems. 1321 1322Usage: $0 [OPTION]... [VAR=VALUE]... 1323 1324To assign environment variables (e.g., CC, CFLAGS...), specify them as 1325VAR=VALUE. See below for descriptions of some of the useful variables. 1326 1327Defaults for the options are specified in brackets. 1328 1329Configuration: 1330 -h, --help display this help and exit 1331 --help=short display options specific to this package 1332 --help=recursive display the short help of all the included packages 1333 -V, --version display version information and exit 1334 -q, --quiet, --silent do not print \`checking ...' messages 1335 --cache-file=FILE cache test results in FILE [disabled] 1336 -C, --config-cache alias for \`--cache-file=config.cache' 1337 -n, --no-create do not create output files 1338 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1339 1340Installation directories: 1341 --prefix=PREFIX install architecture-independent files in PREFIX 1342 [$ac_default_prefix] 1343 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1344 [PREFIX] 1345 1346By default, \`make install' will install all the files in 1347\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1348an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1349for instance \`--prefix=\$HOME'. 1350 1351For better control, use the options below. 1352 1353Fine tuning of the installation directories: 1354 --bindir=DIR user executables [EPREFIX/bin] 1355 --sbindir=DIR system admin executables [EPREFIX/sbin] 1356 --libexecdir=DIR program executables [EPREFIX/libexec] 1357 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1358 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1359 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1360 --libdir=DIR object code libraries [EPREFIX/lib] 1361 --includedir=DIR C header files [PREFIX/include] 1362 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1363 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1364 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1365 --infodir=DIR info documentation [DATAROOTDIR/info] 1366 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1367 --mandir=DIR man documentation [DATAROOTDIR/man] 1368 --docdir=DIR documentation root [DATAROOTDIR/doc/libXxf86dga] 1369 --htmldir=DIR html documentation [DOCDIR] 1370 --dvidir=DIR dvi documentation [DOCDIR] 1371 --pdfdir=DIR pdf documentation [DOCDIR] 1372 --psdir=DIR ps documentation [DOCDIR] 1373_ACEOF 1374 1375 cat <<\_ACEOF 1376 1377Program names: 1378 --program-prefix=PREFIX prepend PREFIX to installed program names 1379 --program-suffix=SUFFIX append SUFFIX to installed program names 1380 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1381 1382System types: 1383 --build=BUILD configure for building on BUILD [guessed] 1384 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1385_ACEOF 1386fi 1387 1388if test -n "$ac_init_help"; then 1389 case $ac_init_help in 1390 short | recursive ) echo "Configuration of libXxf86dga 1.1.2:";; 1391 esac 1392 cat <<\_ACEOF 1393 1394Optional Features: 1395 --disable-option-checking ignore unrecognized --enable/--with options 1396 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1397 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1398 --enable-maintainer-mode enable make rules and dependencies not useful 1399 (and sometimes confusing) to the casual installer 1400 --disable-dependency-tracking speeds up one-time build 1401 --enable-dependency-tracking do not reject slow dependency extractors 1402 --enable-strict-compilation 1403 Enable all warnings from compiler and make them 1404 errors (default: disabled) 1405 --enable-silent-rules less verbose build output (undo: `make V=1') 1406 --disable-silent-rules verbose build output (undo: `make V=0') 1407 --enable-shared[=PKGS] build shared libraries [default=yes] 1408 --enable-static[=PKGS] build static libraries [default=yes] 1409 --enable-fast-install[=PKGS] 1410 optimize for fast installation [default=yes] 1411 --disable-libtool-lock avoid locking (might break parallel builds) 1412 --enable-malloc0returnsnull 1413 malloc(0) returns NULL (default: auto) 1414 1415Optional Packages: 1416 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1417 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1418 --with-pic try to use only PIC/non-PIC objects [default=use 1419 both] 1420 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1421 1422Some influential environment variables: 1423 CC C compiler command 1424 CFLAGS C compiler flags 1425 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1426 nonstandard directory <lib dir> 1427 LIBS libraries to pass to the linker, e.g. -l<library> 1428 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1429 you have headers in a nonstandard directory <include dir> 1430 CPP C preprocessor 1431 PKG_CONFIG path to pkg-config utility 1432 XXF86DGA_CFLAGS 1433 C compiler flags for XXF86DGA, overriding pkg-config 1434 XXF86DGA_LIBS 1435 linker flags for XXF86DGA, overriding pkg-config 1436 1437Use these variables to override the choices made by `configure' or to help 1438it to find libraries and programs with nonstandard names/locations. 1439 1440Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>. 1441_ACEOF 1442ac_status=$? 1443fi 1444 1445if test "$ac_init_help" = "recursive"; then 1446 # If there are subdirs, report their specific --help. 1447 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1448 test -d "$ac_dir" || 1449 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1450 continue 1451 ac_builddir=. 1452 1453case "$ac_dir" in 1454.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1455*) 1456 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1457 # A ".." for each directory in $ac_dir_suffix. 1458 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1459 case $ac_top_builddir_sub in 1460 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1461 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1462 esac ;; 1463esac 1464ac_abs_top_builddir=$ac_pwd 1465ac_abs_builddir=$ac_pwd$ac_dir_suffix 1466# for backward compatibility: 1467ac_top_builddir=$ac_top_build_prefix 1468 1469case $srcdir in 1470 .) # We are building in place. 1471 ac_srcdir=. 1472 ac_top_srcdir=$ac_top_builddir_sub 1473 ac_abs_top_srcdir=$ac_pwd ;; 1474 [\\/]* | ?:[\\/]* ) # Absolute name. 1475 ac_srcdir=$srcdir$ac_dir_suffix; 1476 ac_top_srcdir=$srcdir 1477 ac_abs_top_srcdir=$srcdir ;; 1478 *) # Relative name. 1479 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1480 ac_top_srcdir=$ac_top_build_prefix$srcdir 1481 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1482esac 1483ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1484 1485 cd "$ac_dir" || { ac_status=$?; continue; } 1486 # Check for guested configure. 1487 if test -f "$ac_srcdir/configure.gnu"; then 1488 echo && 1489 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1490 elif test -f "$ac_srcdir/configure"; then 1491 echo && 1492 $SHELL "$ac_srcdir/configure" --help=recursive 1493 else 1494 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1495 fi || ac_status=$? 1496 cd "$ac_pwd" || { ac_status=$?; break; } 1497 done 1498fi 1499 1500test -n "$ac_init_help" && exit $ac_status 1501if $ac_init_version; then 1502 cat <<\_ACEOF 1503libXxf86dga configure 1.1.2 1504generated by GNU Autoconf 2.68 1505 1506Copyright (C) 2010 Free Software Foundation, Inc. 1507This configure script is free software; the Free Software Foundation 1508gives unlimited permission to copy, distribute and modify it. 1509_ACEOF 1510 exit 1511fi 1512 1513## ------------------------ ## 1514## Autoconf initialization. ## 1515## ------------------------ ## 1516 1517# ac_fn_c_try_compile LINENO 1518# -------------------------- 1519# Try to compile conftest.$ac_ext, and return whether this succeeded. 1520ac_fn_c_try_compile () 1521{ 1522 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1523 rm -f conftest.$ac_objext 1524 if { { ac_try="$ac_compile" 1525case "(($ac_try" in 1526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1527 *) ac_try_echo=$ac_try;; 1528esac 1529eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1530$as_echo "$ac_try_echo"; } >&5 1531 (eval "$ac_compile") 2>conftest.err 1532 ac_status=$? 1533 if test -s conftest.err; then 1534 grep -v '^ *+' conftest.err >conftest.er1 1535 cat conftest.er1 >&5 1536 mv -f conftest.er1 conftest.err 1537 fi 1538 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1539 test $ac_status = 0; } && { 1540 test -z "$ac_c_werror_flag" || 1541 test ! -s conftest.err 1542 } && test -s conftest.$ac_objext; then : 1543 ac_retval=0 1544else 1545 $as_echo "$as_me: failed program was:" >&5 1546sed 's/^/| /' conftest.$ac_ext >&5 1547 1548 ac_retval=1 1549fi 1550 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1551 as_fn_set_status $ac_retval 1552 1553} # ac_fn_c_try_compile 1554 1555# ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES 1556# --------------------------------------------- 1557# Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR 1558# accordingly. 1559ac_fn_c_check_decl () 1560{ 1561 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1562 as_decl_name=`echo $2|sed 's/ *(.*//'` 1563 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'` 1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5 1565$as_echo_n "checking whether $as_decl_name is declared... " >&6; } 1566if eval \${$3+:} false; then : 1567 $as_echo_n "(cached) " >&6 1568else 1569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1570/* end confdefs.h. */ 1571$4 1572int 1573main () 1574{ 1575#ifndef $as_decl_name 1576#ifdef __cplusplus 1577 (void) $as_decl_use; 1578#else 1579 (void) $as_decl_name; 1580#endif 1581#endif 1582 1583 ; 1584 return 0; 1585} 1586_ACEOF 1587if ac_fn_c_try_compile "$LINENO"; then : 1588 eval "$3=yes" 1589else 1590 eval "$3=no" 1591fi 1592rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1593fi 1594eval ac_res=\$$3 1595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1596$as_echo "$ac_res" >&6; } 1597 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1598 1599} # ac_fn_c_check_decl 1600 1601# ac_fn_c_try_cpp LINENO 1602# ---------------------- 1603# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1604ac_fn_c_try_cpp () 1605{ 1606 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1607 if { { ac_try="$ac_cpp conftest.$ac_ext" 1608case "(($ac_try" in 1609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1610 *) ac_try_echo=$ac_try;; 1611esac 1612eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1613$as_echo "$ac_try_echo"; } >&5 1614 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1615 ac_status=$? 1616 if test -s conftest.err; then 1617 grep -v '^ *+' conftest.err >conftest.er1 1618 cat conftest.er1 >&5 1619 mv -f conftest.er1 conftest.err 1620 fi 1621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1622 test $ac_status = 0; } > conftest.i && { 1623 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1624 test ! -s conftest.err 1625 }; then : 1626 ac_retval=0 1627else 1628 $as_echo "$as_me: failed program was:" >&5 1629sed 's/^/| /' conftest.$ac_ext >&5 1630 1631 ac_retval=1 1632fi 1633 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1634 as_fn_set_status $ac_retval 1635 1636} # ac_fn_c_try_cpp 1637 1638# ac_fn_c_try_run LINENO 1639# ---------------------- 1640# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1641# that executables *can* be run. 1642ac_fn_c_try_run () 1643{ 1644 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1645 if { { ac_try="$ac_link" 1646case "(($ac_try" in 1647 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1648 *) ac_try_echo=$ac_try;; 1649esac 1650eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1651$as_echo "$ac_try_echo"; } >&5 1652 (eval "$ac_link") 2>&5 1653 ac_status=$? 1654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1655 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1656 { { case "(($ac_try" in 1657 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1658 *) ac_try_echo=$ac_try;; 1659esac 1660eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1661$as_echo "$ac_try_echo"; } >&5 1662 (eval "$ac_try") 2>&5 1663 ac_status=$? 1664 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1665 test $ac_status = 0; }; }; then : 1666 ac_retval=0 1667else 1668 $as_echo "$as_me: program exited with status $ac_status" >&5 1669 $as_echo "$as_me: failed program was:" >&5 1670sed 's/^/| /' conftest.$ac_ext >&5 1671 1672 ac_retval=$ac_status 1673fi 1674 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678} # ac_fn_c_try_run 1679 1680# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1681# ------------------------------------------------------- 1682# Tests whether HEADER exists and can be compiled using the include files in 1683# INCLUDES, setting the cache variable VAR accordingly. 1684ac_fn_c_check_header_compile () 1685{ 1686 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1687 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1688$as_echo_n "checking for $2... " >&6; } 1689if eval \${$3+:} false; then : 1690 $as_echo_n "(cached) " >&6 1691else 1692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1693/* end confdefs.h. */ 1694$4 1695#include <$2> 1696_ACEOF 1697if ac_fn_c_try_compile "$LINENO"; then : 1698 eval "$3=yes" 1699else 1700 eval "$3=no" 1701fi 1702rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1703fi 1704eval ac_res=\$$3 1705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1706$as_echo "$ac_res" >&6; } 1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1708 1709} # ac_fn_c_check_header_compile 1710 1711# ac_fn_c_try_link LINENO 1712# ----------------------- 1713# Try to link conftest.$ac_ext, and return whether this succeeded. 1714ac_fn_c_try_link () 1715{ 1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1717 rm -f conftest.$ac_objext conftest$ac_exeext 1718 if { { ac_try="$ac_link" 1719case "(($ac_try" in 1720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1721 *) ac_try_echo=$ac_try;; 1722esac 1723eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1724$as_echo "$ac_try_echo"; } >&5 1725 (eval "$ac_link") 2>conftest.err 1726 ac_status=$? 1727 if test -s conftest.err; then 1728 grep -v '^ *+' conftest.err >conftest.er1 1729 cat conftest.er1 >&5 1730 mv -f conftest.er1 conftest.err 1731 fi 1732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1733 test $ac_status = 0; } && { 1734 test -z "$ac_c_werror_flag" || 1735 test ! -s conftest.err 1736 } && test -s conftest$ac_exeext && { 1737 test "$cross_compiling" = yes || 1738 $as_test_x conftest$ac_exeext 1739 }; then : 1740 ac_retval=0 1741else 1742 $as_echo "$as_me: failed program was:" >&5 1743sed 's/^/| /' conftest.$ac_ext >&5 1744 1745 ac_retval=1 1746fi 1747 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1748 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1749 # interfere with the next link command; also delete a directory that is 1750 # left behind by Apple's compiler. We do this before executing the actions. 1751 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1752 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1753 as_fn_set_status $ac_retval 1754 1755} # ac_fn_c_try_link 1756 1757# ac_fn_c_check_func LINENO FUNC VAR 1758# ---------------------------------- 1759# Tests whether FUNC exists, setting the cache variable VAR accordingly 1760ac_fn_c_check_func () 1761{ 1762 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1764$as_echo_n "checking for $2... " >&6; } 1765if eval \${$3+:} false; then : 1766 $as_echo_n "(cached) " >&6 1767else 1768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1769/* end confdefs.h. */ 1770/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1771 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1772#define $2 innocuous_$2 1773 1774/* System header to define __stub macros and hopefully few prototypes, 1775 which can conflict with char $2 (); below. 1776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1777 <limits.h> exists even on freestanding compilers. */ 1778 1779#ifdef __STDC__ 1780# include <limits.h> 1781#else 1782# include <assert.h> 1783#endif 1784 1785#undef $2 1786 1787/* Override any GCC internal prototype to avoid an error. 1788 Use char because int might match the return type of a GCC 1789 builtin and then its argument prototype would still apply. */ 1790#ifdef __cplusplus 1791extern "C" 1792#endif 1793char $2 (); 1794/* The GNU C library defines this for functions which it implements 1795 to always fail with ENOSYS. Some functions are actually named 1796 something starting with __ and the normal name is an alias. */ 1797#if defined __stub_$2 || defined __stub___$2 1798choke me 1799#endif 1800 1801int 1802main () 1803{ 1804return $2 (); 1805 ; 1806 return 0; 1807} 1808_ACEOF 1809if ac_fn_c_try_link "$LINENO"; then : 1810 eval "$3=yes" 1811else 1812 eval "$3=no" 1813fi 1814rm -f core conftest.err conftest.$ac_objext \ 1815 conftest$ac_exeext conftest.$ac_ext 1816fi 1817eval ac_res=\$$3 1818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1819$as_echo "$ac_res" >&6; } 1820 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1821 1822} # ac_fn_c_check_func 1823cat >config.log <<_ACEOF 1824This file contains any messages produced by compilers while 1825running configure, to aid debugging if configure makes a mistake. 1826 1827It was created by libXxf86dga $as_me 1.1.2, which was 1828generated by GNU Autoconf 2.68. Invocation command line was 1829 1830 $ $0 $@ 1831 1832_ACEOF 1833exec 5>>config.log 1834{ 1835cat <<_ASUNAME 1836## --------- ## 1837## Platform. ## 1838## --------- ## 1839 1840hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1841uname -m = `(uname -m) 2>/dev/null || echo unknown` 1842uname -r = `(uname -r) 2>/dev/null || echo unknown` 1843uname -s = `(uname -s) 2>/dev/null || echo unknown` 1844uname -v = `(uname -v) 2>/dev/null || echo unknown` 1845 1846/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1847/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1848 1849/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1850/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1851/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1852/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1853/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1854/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1855/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1856 1857_ASUNAME 1858 1859as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1860for as_dir in $PATH 1861do 1862 IFS=$as_save_IFS 1863 test -z "$as_dir" && as_dir=. 1864 $as_echo "PATH: $as_dir" 1865 done 1866IFS=$as_save_IFS 1867 1868} >&5 1869 1870cat >&5 <<_ACEOF 1871 1872 1873## ----------- ## 1874## Core tests. ## 1875## ----------- ## 1876 1877_ACEOF 1878 1879 1880# Keep a trace of the command line. 1881# Strip out --no-create and --no-recursion so they do not pile up. 1882# Strip out --silent because we don't want to record it for future runs. 1883# Also quote any args containing shell meta-characters. 1884# Make two passes to allow for proper duplicate-argument suppression. 1885ac_configure_args= 1886ac_configure_args0= 1887ac_configure_args1= 1888ac_must_keep_next=false 1889for ac_pass in 1 2 1890do 1891 for ac_arg 1892 do 1893 case $ac_arg in 1894 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1895 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1896 | -silent | --silent | --silen | --sile | --sil) 1897 continue ;; 1898 *\'*) 1899 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1900 esac 1901 case $ac_pass in 1902 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1903 2) 1904 as_fn_append ac_configure_args1 " '$ac_arg'" 1905 if test $ac_must_keep_next = true; then 1906 ac_must_keep_next=false # Got value, back to normal. 1907 else 1908 case $ac_arg in 1909 *=* | --config-cache | -C | -disable-* | --disable-* \ 1910 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1911 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1912 | -with-* | --with-* | -without-* | --without-* | --x) 1913 case "$ac_configure_args0 " in 1914 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1915 esac 1916 ;; 1917 -* ) ac_must_keep_next=true ;; 1918 esac 1919 fi 1920 as_fn_append ac_configure_args " '$ac_arg'" 1921 ;; 1922 esac 1923 done 1924done 1925{ ac_configure_args0=; unset ac_configure_args0;} 1926{ ac_configure_args1=; unset ac_configure_args1;} 1927 1928# When interrupted or exit'd, cleanup temporary files, and complete 1929# config.log. We remove comments because anyway the quotes in there 1930# would cause problems or look ugly. 1931# WARNING: Use '\'' to represent an apostrophe within the trap. 1932# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1933trap 'exit_status=$? 1934 # Save into config.log some information that might help in debugging. 1935 { 1936 echo 1937 1938 $as_echo "## ---------------- ## 1939## Cache variables. ## 1940## ---------------- ##" 1941 echo 1942 # The following way of writing the cache mishandles newlines in values, 1943( 1944 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1945 eval ac_val=\$$ac_var 1946 case $ac_val in #( 1947 *${as_nl}*) 1948 case $ac_var in #( 1949 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1950$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1951 esac 1952 case $ac_var in #( 1953 _ | IFS | as_nl) ;; #( 1954 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1955 *) { eval $ac_var=; unset $ac_var;} ;; 1956 esac ;; 1957 esac 1958 done 1959 (set) 2>&1 | 1960 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1961 *${as_nl}ac_space=\ *) 1962 sed -n \ 1963 "s/'\''/'\''\\\\'\'''\''/g; 1964 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1965 ;; #( 1966 *) 1967 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1968 ;; 1969 esac | 1970 sort 1971) 1972 echo 1973 1974 $as_echo "## ----------------- ## 1975## Output variables. ## 1976## ----------------- ##" 1977 echo 1978 for ac_var in $ac_subst_vars 1979 do 1980 eval ac_val=\$$ac_var 1981 case $ac_val in 1982 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1983 esac 1984 $as_echo "$ac_var='\''$ac_val'\''" 1985 done | sort 1986 echo 1987 1988 if test -n "$ac_subst_files"; then 1989 $as_echo "## ------------------- ## 1990## File substitutions. ## 1991## ------------------- ##" 1992 echo 1993 for ac_var in $ac_subst_files 1994 do 1995 eval ac_val=\$$ac_var 1996 case $ac_val in 1997 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1998 esac 1999 $as_echo "$ac_var='\''$ac_val'\''" 2000 done | sort 2001 echo 2002 fi 2003 2004 if test -s confdefs.h; then 2005 $as_echo "## ----------- ## 2006## confdefs.h. ## 2007## ----------- ##" 2008 echo 2009 cat confdefs.h 2010 echo 2011 fi 2012 test "$ac_signal" != 0 && 2013 $as_echo "$as_me: caught signal $ac_signal" 2014 $as_echo "$as_me: exit $exit_status" 2015 } >&5 2016 rm -f core *.core core.conftest.* && 2017 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2018 exit $exit_status 2019' 0 2020for ac_signal in 1 2 13 15; do 2021 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2022done 2023ac_signal=0 2024 2025# confdefs.h avoids OS command line length limits that DEFS can exceed. 2026rm -f -r conftest* confdefs.h 2027 2028$as_echo "/* confdefs.h */" > confdefs.h 2029 2030# Predefined preprocessor variables. 2031 2032cat >>confdefs.h <<_ACEOF 2033#define PACKAGE_NAME "$PACKAGE_NAME" 2034_ACEOF 2035 2036cat >>confdefs.h <<_ACEOF 2037#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2038_ACEOF 2039 2040cat >>confdefs.h <<_ACEOF 2041#define PACKAGE_VERSION "$PACKAGE_VERSION" 2042_ACEOF 2043 2044cat >>confdefs.h <<_ACEOF 2045#define PACKAGE_STRING "$PACKAGE_STRING" 2046_ACEOF 2047 2048cat >>confdefs.h <<_ACEOF 2049#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2050_ACEOF 2051 2052cat >>confdefs.h <<_ACEOF 2053#define PACKAGE_URL "$PACKAGE_URL" 2054_ACEOF 2055 2056 2057# Let the site file select an alternate cache file if it wants to. 2058# Prefer an explicitly selected file to automatically selected ones. 2059ac_site_file1=NONE 2060ac_site_file2=NONE 2061if test -n "$CONFIG_SITE"; then 2062 # We do not want a PATH search for config.site. 2063 case $CONFIG_SITE in #(( 2064 -*) ac_site_file1=./$CONFIG_SITE;; 2065 */*) ac_site_file1=$CONFIG_SITE;; 2066 *) ac_site_file1=./$CONFIG_SITE;; 2067 esac 2068elif test "x$prefix" != xNONE; then 2069 ac_site_file1=$prefix/share/config.site 2070 ac_site_file2=$prefix/etc/config.site 2071else 2072 ac_site_file1=$ac_default_prefix/share/config.site 2073 ac_site_file2=$ac_default_prefix/etc/config.site 2074fi 2075for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2076do 2077 test "x$ac_site_file" = xNONE && continue 2078 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2079 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2080$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2081 sed 's/^/| /' "$ac_site_file" >&5 2082 . "$ac_site_file" \ 2083 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2084$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2085as_fn_error $? "failed to load site script $ac_site_file 2086See \`config.log' for more details" "$LINENO" 5; } 2087 fi 2088done 2089 2090if test -r "$cache_file"; then 2091 # Some versions of bash will fail to source /dev/null (special files 2092 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2093 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2094 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2095$as_echo "$as_me: loading cache $cache_file" >&6;} 2096 case $cache_file in 2097 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2098 *) . "./$cache_file";; 2099 esac 2100 fi 2101else 2102 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2103$as_echo "$as_me: creating cache $cache_file" >&6;} 2104 >$cache_file 2105fi 2106 2107# Check that the precious variables saved in the cache have kept the same 2108# value. 2109ac_cache_corrupted=false 2110for ac_var in $ac_precious_vars; do 2111 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2112 eval ac_new_set=\$ac_env_${ac_var}_set 2113 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2114 eval ac_new_val=\$ac_env_${ac_var}_value 2115 case $ac_old_set,$ac_new_set in 2116 set,) 2117 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2118$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2119 ac_cache_corrupted=: ;; 2120 ,set) 2121 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2122$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2123 ac_cache_corrupted=: ;; 2124 ,);; 2125 *) 2126 if test "x$ac_old_val" != "x$ac_new_val"; then 2127 # differences in whitespace do not lead to failure. 2128 ac_old_val_w=`echo x $ac_old_val` 2129 ac_new_val_w=`echo x $ac_new_val` 2130 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2131 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2132$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2133 ac_cache_corrupted=: 2134 else 2135 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2136$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2137 eval $ac_var=\$ac_old_val 2138 fi 2139 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2140$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2141 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2142$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2143 fi;; 2144 esac 2145 # Pass precious variables to config.status. 2146 if test "$ac_new_set" = set; then 2147 case $ac_new_val in 2148 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2149 *) ac_arg=$ac_var=$ac_new_val ;; 2150 esac 2151 case " $ac_configure_args " in 2152 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2153 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2154 esac 2155 fi 2156done 2157if $ac_cache_corrupted; then 2158 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2160 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2161$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2162 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2163fi 2164## -------------------- ## 2165## Main body of script. ## 2166## -------------------- ## 2167 2168ac_ext=c 2169ac_cpp='$CPP $CPPFLAGS' 2170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2172ac_compiler_gnu=$ac_cv_c_compiler_gnu 2173 2174 2175am__api_version='1.11' 2176 2177ac_aux_dir= 2178for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2179 if test -f "$ac_dir/install-sh"; then 2180 ac_aux_dir=$ac_dir 2181 ac_install_sh="$ac_aux_dir/install-sh -c" 2182 break 2183 elif test -f "$ac_dir/install.sh"; then 2184 ac_aux_dir=$ac_dir 2185 ac_install_sh="$ac_aux_dir/install.sh -c" 2186 break 2187 elif test -f "$ac_dir/shtool"; then 2188 ac_aux_dir=$ac_dir 2189 ac_install_sh="$ac_aux_dir/shtool install -c" 2190 break 2191 fi 2192done 2193if test -z "$ac_aux_dir"; then 2194 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2195fi 2196 2197# These three variables are undocumented and unsupported, 2198# and are intended to be withdrawn in a future Autoconf release. 2199# They can cause serious problems if a builder's source tree is in a directory 2200# whose full name contains unusual characters. 2201ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2202ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2203ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2204 2205 2206# Find a good install program. We prefer a C program (faster), 2207# so one script is as good as another. But avoid the broken or 2208# incompatible versions: 2209# SysV /etc/install, /usr/sbin/install 2210# SunOS /usr/etc/install 2211# IRIX /sbin/install 2212# AIX /bin/install 2213# AmigaOS /C/install, which installs bootblocks on floppy discs 2214# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2215# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2216# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2217# OS/2's system install, which has a completely different semantic 2218# ./install, which can be erroneously created by make from ./install.sh. 2219# Reject install programs that cannot install multiple files. 2220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2221$as_echo_n "checking for a BSD-compatible install... " >&6; } 2222if test -z "$INSTALL"; then 2223if ${ac_cv_path_install+:} false; then : 2224 $as_echo_n "(cached) " >&6 2225else 2226 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2227for as_dir in $PATH 2228do 2229 IFS=$as_save_IFS 2230 test -z "$as_dir" && as_dir=. 2231 # Account for people who put trailing slashes in PATH elements. 2232case $as_dir/ in #(( 2233 ./ | .// | /[cC]/* | \ 2234 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2235 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2236 /usr/ucb/* ) ;; 2237 *) 2238 # OSF1 and SCO ODT 3.0 have their own names for install. 2239 # Don't use installbsd from OSF since it installs stuff as root 2240 # by default. 2241 for ac_prog in ginstall scoinst install; do 2242 for ac_exec_ext in '' $ac_executable_extensions; do 2243 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2244 if test $ac_prog = install && 2245 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2246 # AIX install. It has an incompatible calling convention. 2247 : 2248 elif test $ac_prog = install && 2249 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2250 # program-specific install script used by HP pwplus--don't use. 2251 : 2252 else 2253 rm -rf conftest.one conftest.two conftest.dir 2254 echo one > conftest.one 2255 echo two > conftest.two 2256 mkdir conftest.dir 2257 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2258 test -s conftest.one && test -s conftest.two && 2259 test -s conftest.dir/conftest.one && 2260 test -s conftest.dir/conftest.two 2261 then 2262 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2263 break 3 2264 fi 2265 fi 2266 fi 2267 done 2268 done 2269 ;; 2270esac 2271 2272 done 2273IFS=$as_save_IFS 2274 2275rm -rf conftest.one conftest.two conftest.dir 2276 2277fi 2278 if test "${ac_cv_path_install+set}" = set; then 2279 INSTALL=$ac_cv_path_install 2280 else 2281 # As a last resort, use the slow shell script. Don't cache a 2282 # value for INSTALL within a source directory, because that will 2283 # break other packages using the cache if that directory is 2284 # removed, or if the value is a relative name. 2285 INSTALL=$ac_install_sh 2286 fi 2287fi 2288{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2289$as_echo "$INSTALL" >&6; } 2290 2291# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2292# It thinks the first close brace ends the variable substitution. 2293test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2294 2295test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2296 2297test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2298 2299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2300$as_echo_n "checking whether build environment is sane... " >&6; } 2301# Just in case 2302sleep 1 2303echo timestamp > conftest.file 2304# Reject unsafe characters in $srcdir or the absolute working directory 2305# name. Accept space and tab only in the latter. 2306am_lf=' 2307' 2308case `pwd` in 2309 *[\\\"\#\$\&\'\`$am_lf]*) 2310 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2311esac 2312case $srcdir in 2313 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2314 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2315esac 2316 2317# Do `set' in a subshell so we don't clobber the current shell's 2318# arguments. Must try -L first in case configure is actually a 2319# symlink; some systems play weird games with the mod time of symlinks 2320# (eg FreeBSD returns the mod time of the symlink's containing 2321# directory). 2322if ( 2323 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2324 if test "$*" = "X"; then 2325 # -L didn't work. 2326 set X `ls -t "$srcdir/configure" conftest.file` 2327 fi 2328 rm -f conftest.file 2329 if test "$*" != "X $srcdir/configure conftest.file" \ 2330 && test "$*" != "X conftest.file $srcdir/configure"; then 2331 2332 # If neither matched, then we have a broken ls. This can happen 2333 # if, for instance, CONFIG_SHELL is bash and it inherits a 2334 # broken ls alias from the environment. This has actually 2335 # happened. Such a system could not be considered "sane". 2336 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2337alias in your environment" "$LINENO" 5 2338 fi 2339 2340 test "$2" = conftest.file 2341 ) 2342then 2343 # Ok. 2344 : 2345else 2346 as_fn_error $? "newly created file is older than distributed files! 2347Check your system clock" "$LINENO" 5 2348fi 2349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2350$as_echo "yes" >&6; } 2351test "$program_prefix" != NONE && 2352 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2353# Use a double $ so make ignores it. 2354test "$program_suffix" != NONE && 2355 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2356# Double any \ or $. 2357# By default was `s,x,x', remove it if useless. 2358ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2359program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2360 2361# expand $ac_aux_dir to an absolute path 2362am_aux_dir=`cd $ac_aux_dir && pwd` 2363 2364if test x"${MISSING+set}" != xset; then 2365 case $am_aux_dir in 2366 *\ * | *\ *) 2367 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2368 *) 2369 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2370 esac 2371fi 2372# Use eval to expand $SHELL 2373if eval "$MISSING --run true"; then 2374 am_missing_run="$MISSING --run " 2375else 2376 am_missing_run= 2377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2378$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2379fi 2380 2381if test x"${install_sh}" != xset; then 2382 case $am_aux_dir in 2383 *\ * | *\ *) 2384 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2385 *) 2386 install_sh="\${SHELL} $am_aux_dir/install-sh" 2387 esac 2388fi 2389 2390# Installed binaries are usually stripped using `strip' when the user 2391# run `make install-strip'. However `strip' might not be the right 2392# tool to use in cross-compilation environments, therefore Automake 2393# will honor the `STRIP' environment variable to overrule this program. 2394if test "$cross_compiling" != no; then 2395 if test -n "$ac_tool_prefix"; then 2396 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2397set dummy ${ac_tool_prefix}strip; ac_word=$2 2398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2399$as_echo_n "checking for $ac_word... " >&6; } 2400if ${ac_cv_prog_STRIP+:} false; then : 2401 $as_echo_n "(cached) " >&6 2402else 2403 if test -n "$STRIP"; then 2404 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2405else 2406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2407for as_dir in $PATH 2408do 2409 IFS=$as_save_IFS 2410 test -z "$as_dir" && as_dir=. 2411 for ac_exec_ext in '' $ac_executable_extensions; do 2412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2413 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2415 break 2 2416 fi 2417done 2418 done 2419IFS=$as_save_IFS 2420 2421fi 2422fi 2423STRIP=$ac_cv_prog_STRIP 2424if test -n "$STRIP"; then 2425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2426$as_echo "$STRIP" >&6; } 2427else 2428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2429$as_echo "no" >&6; } 2430fi 2431 2432 2433fi 2434if test -z "$ac_cv_prog_STRIP"; then 2435 ac_ct_STRIP=$STRIP 2436 # Extract the first word of "strip", so it can be a program name with args. 2437set dummy strip; ac_word=$2 2438{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2439$as_echo_n "checking for $ac_word... " >&6; } 2440if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2441 $as_echo_n "(cached) " >&6 2442else 2443 if test -n "$ac_ct_STRIP"; then 2444 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2445else 2446as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2447for as_dir in $PATH 2448do 2449 IFS=$as_save_IFS 2450 test -z "$as_dir" && as_dir=. 2451 for ac_exec_ext in '' $ac_executable_extensions; do 2452 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2453 ac_cv_prog_ac_ct_STRIP="strip" 2454 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2455 break 2 2456 fi 2457done 2458 done 2459IFS=$as_save_IFS 2460 2461fi 2462fi 2463ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2464if test -n "$ac_ct_STRIP"; then 2465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2466$as_echo "$ac_ct_STRIP" >&6; } 2467else 2468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2469$as_echo "no" >&6; } 2470fi 2471 2472 if test "x$ac_ct_STRIP" = x; then 2473 STRIP=":" 2474 else 2475 case $cross_compiling:$ac_tool_warned in 2476yes:) 2477{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2478$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2479ac_tool_warned=yes ;; 2480esac 2481 STRIP=$ac_ct_STRIP 2482 fi 2483else 2484 STRIP="$ac_cv_prog_STRIP" 2485fi 2486 2487fi 2488INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2489 2490{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2491$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2492if test -z "$MKDIR_P"; then 2493 if ${ac_cv_path_mkdir+:} false; then : 2494 $as_echo_n "(cached) " >&6 2495else 2496 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2497for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2498do 2499 IFS=$as_save_IFS 2500 test -z "$as_dir" && as_dir=. 2501 for ac_prog in mkdir gmkdir; do 2502 for ac_exec_ext in '' $ac_executable_extensions; do 2503 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2504 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2505 'mkdir (GNU coreutils) '* | \ 2506 'mkdir (coreutils) '* | \ 2507 'mkdir (fileutils) '4.1*) 2508 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2509 break 3;; 2510 esac 2511 done 2512 done 2513 done 2514IFS=$as_save_IFS 2515 2516fi 2517 2518 test -d ./--version && rmdir ./--version 2519 if test "${ac_cv_path_mkdir+set}" = set; then 2520 MKDIR_P="$ac_cv_path_mkdir -p" 2521 else 2522 # As a last resort, use the slow shell script. Don't cache a 2523 # value for MKDIR_P within a source directory, because that will 2524 # break other packages using the cache if that directory is 2525 # removed, or if the value is a relative name. 2526 MKDIR_P="$ac_install_sh -d" 2527 fi 2528fi 2529{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2530$as_echo "$MKDIR_P" >&6; } 2531 2532mkdir_p="$MKDIR_P" 2533case $mkdir_p in 2534 [\\/$]* | ?:[\\/]*) ;; 2535 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2536esac 2537 2538for ac_prog in gawk mawk nawk awk 2539do 2540 # Extract the first word of "$ac_prog", so it can be a program name with args. 2541set dummy $ac_prog; ac_word=$2 2542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2543$as_echo_n "checking for $ac_word... " >&6; } 2544if ${ac_cv_prog_AWK+:} false; then : 2545 $as_echo_n "(cached) " >&6 2546else 2547 if test -n "$AWK"; then 2548 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2549else 2550as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2551for as_dir in $PATH 2552do 2553 IFS=$as_save_IFS 2554 test -z "$as_dir" && as_dir=. 2555 for ac_exec_ext in '' $ac_executable_extensions; do 2556 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2557 ac_cv_prog_AWK="$ac_prog" 2558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2559 break 2 2560 fi 2561done 2562 done 2563IFS=$as_save_IFS 2564 2565fi 2566fi 2567AWK=$ac_cv_prog_AWK 2568if test -n "$AWK"; then 2569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2570$as_echo "$AWK" >&6; } 2571else 2572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2573$as_echo "no" >&6; } 2574fi 2575 2576 2577 test -n "$AWK" && break 2578done 2579 2580{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2581$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2582set x ${MAKE-make} 2583ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2584if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 cat >conftest.make <<\_ACEOF 2588SHELL = /bin/sh 2589all: 2590 @echo '@@@%%%=$(MAKE)=@@@%%%' 2591_ACEOF 2592# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2593case `${MAKE-make} -f conftest.make 2>/dev/null` in 2594 *@@@%%%=?*=@@@%%%*) 2595 eval ac_cv_prog_make_${ac_make}_set=yes;; 2596 *) 2597 eval ac_cv_prog_make_${ac_make}_set=no;; 2598esac 2599rm -f conftest.make 2600fi 2601if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2603$as_echo "yes" >&6; } 2604 SET_MAKE= 2605else 2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2607$as_echo "no" >&6; } 2608 SET_MAKE="MAKE=${MAKE-make}" 2609fi 2610 2611rm -rf .tst 2>/dev/null 2612mkdir .tst 2>/dev/null 2613if test -d .tst; then 2614 am__leading_dot=. 2615else 2616 am__leading_dot=_ 2617fi 2618rmdir .tst 2>/dev/null 2619 2620if test "`cd $srcdir && pwd`" != "`pwd`"; then 2621 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2622 # is not polluted with repeated "-I." 2623 am__isrc=' -I$(srcdir)' 2624 # test to see if srcdir already configured 2625 if test -f $srcdir/config.status; then 2626 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2627 fi 2628fi 2629 2630# test whether we have cygpath 2631if test -z "$CYGPATH_W"; then 2632 if (cygpath --version) >/dev/null 2>/dev/null; then 2633 CYGPATH_W='cygpath -w' 2634 else 2635 CYGPATH_W=echo 2636 fi 2637fi 2638 2639 2640# Define the identity of the package. 2641 PACKAGE='libXxf86dga' 2642 VERSION='1.1.2' 2643 2644 2645cat >>confdefs.h <<_ACEOF 2646#define PACKAGE "$PACKAGE" 2647_ACEOF 2648 2649 2650cat >>confdefs.h <<_ACEOF 2651#define VERSION "$VERSION" 2652_ACEOF 2653 2654# Some tools Automake needs. 2655 2656ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2657 2658 2659AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2660 2661 2662AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2663 2664 2665AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2666 2667 2668MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2669 2670# We need awk for the "check" target. The system "awk" is bad on 2671# some platforms. 2672# Always define AMTAR for backward compatibility. 2673 2674AMTAR=${AMTAR-"${am_missing_run}tar"} 2675 2676am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2677 2678 2679 2680 2681 2682 2683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2684$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2685 # Check whether --enable-maintainer-mode was given. 2686if test "${enable_maintainer_mode+set}" = set; then : 2687 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2688else 2689 USE_MAINTAINER_MODE=no 2690fi 2691 2692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2693$as_echo "$USE_MAINTAINER_MODE" >&6; } 2694 if test $USE_MAINTAINER_MODE = yes; then 2695 MAINTAINER_MODE_TRUE= 2696 MAINTAINER_MODE_FALSE='#' 2697else 2698 MAINTAINER_MODE_TRUE='#' 2699 MAINTAINER_MODE_FALSE= 2700fi 2701 2702 MAINT=$MAINTAINER_MODE_TRUE 2703 2704 2705 2706# Require X.Org macros 1.8 or later for MAN_SUBSTS set by XORG_MANPAGE_SECTIONS 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718DEPDIR="${am__leading_dot}deps" 2719 2720ac_config_commands="$ac_config_commands depfiles" 2721 2722 2723am_make=${MAKE-make} 2724cat > confinc << 'END' 2725am__doit: 2726 @echo this is the am__doit target 2727.PHONY: am__doit 2728END 2729# If we don't find an include directive, just comment out the code. 2730{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 2731$as_echo_n "checking for style of include used by $am_make... " >&6; } 2732am__include="#" 2733am__quote= 2734_am_result=none 2735# First try GNU make style include. 2736echo "include confinc" > confmf 2737# Ignore all kinds of additional output from `make'. 2738case `$am_make -s -f confmf 2> /dev/null` in #( 2739*the\ am__doit\ target*) 2740 am__include=include 2741 am__quote= 2742 _am_result=GNU 2743 ;; 2744esac 2745# Now try BSD make style include. 2746if test "$am__include" = "#"; then 2747 echo '.include "confinc"' > confmf 2748 case `$am_make -s -f confmf 2> /dev/null` in #( 2749 *the\ am__doit\ target*) 2750 am__include=.include 2751 am__quote="\"" 2752 _am_result=BSD 2753 ;; 2754 esac 2755fi 2756 2757 2758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 2759$as_echo "$_am_result" >&6; } 2760rm -f confinc confmf 2761 2762# Check whether --enable-dependency-tracking was given. 2763if test "${enable_dependency_tracking+set}" = set; then : 2764 enableval=$enable_dependency_tracking; 2765fi 2766 2767if test "x$enable_dependency_tracking" != xno; then 2768 am_depcomp="$ac_aux_dir/depcomp" 2769 AMDEPBACKSLASH='\' 2770fi 2771 if test "x$enable_dependency_tracking" != xno; then 2772 AMDEP_TRUE= 2773 AMDEP_FALSE='#' 2774else 2775 AMDEP_TRUE='#' 2776 AMDEP_FALSE= 2777fi 2778 2779 2780ac_ext=c 2781ac_cpp='$CPP $CPPFLAGS' 2782ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2783ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2784ac_compiler_gnu=$ac_cv_c_compiler_gnu 2785if test -n "$ac_tool_prefix"; then 2786 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2787set dummy ${ac_tool_prefix}gcc; ac_word=$2 2788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2789$as_echo_n "checking for $ac_word... " >&6; } 2790if ${ac_cv_prog_CC+:} false; then : 2791 $as_echo_n "(cached) " >&6 2792else 2793 if test -n "$CC"; then 2794 ac_cv_prog_CC="$CC" # Let the user override the test. 2795else 2796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2797for as_dir in $PATH 2798do 2799 IFS=$as_save_IFS 2800 test -z "$as_dir" && as_dir=. 2801 for ac_exec_ext in '' $ac_executable_extensions; do 2802 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2803 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2805 break 2 2806 fi 2807done 2808 done 2809IFS=$as_save_IFS 2810 2811fi 2812fi 2813CC=$ac_cv_prog_CC 2814if test -n "$CC"; then 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2816$as_echo "$CC" >&6; } 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820fi 2821 2822 2823fi 2824if test -z "$ac_cv_prog_CC"; then 2825 ac_ct_CC=$CC 2826 # Extract the first word of "gcc", so it can be a program name with args. 2827set dummy gcc; ac_word=$2 2828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2829$as_echo_n "checking for $ac_word... " >&6; } 2830if ${ac_cv_prog_ac_ct_CC+:} false; then : 2831 $as_echo_n "(cached) " >&6 2832else 2833 if test -n "$ac_ct_CC"; then 2834 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2835else 2836as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2837for as_dir in $PATH 2838do 2839 IFS=$as_save_IFS 2840 test -z "$as_dir" && as_dir=. 2841 for ac_exec_ext in '' $ac_executable_extensions; do 2842 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2843 ac_cv_prog_ac_ct_CC="gcc" 2844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2845 break 2 2846 fi 2847done 2848 done 2849IFS=$as_save_IFS 2850 2851fi 2852fi 2853ac_ct_CC=$ac_cv_prog_ac_ct_CC 2854if test -n "$ac_ct_CC"; then 2855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2856$as_echo "$ac_ct_CC" >&6; } 2857else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2859$as_echo "no" >&6; } 2860fi 2861 2862 if test "x$ac_ct_CC" = x; then 2863 CC="" 2864 else 2865 case $cross_compiling:$ac_tool_warned in 2866yes:) 2867{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2868$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2869ac_tool_warned=yes ;; 2870esac 2871 CC=$ac_ct_CC 2872 fi 2873else 2874 CC="$ac_cv_prog_CC" 2875fi 2876 2877if test -z "$CC"; then 2878 if test -n "$ac_tool_prefix"; then 2879 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2880set dummy ${ac_tool_prefix}cc; ac_word=$2 2881{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2882$as_echo_n "checking for $ac_word... " >&6; } 2883if ${ac_cv_prog_CC+:} false; then : 2884 $as_echo_n "(cached) " >&6 2885else 2886 if test -n "$CC"; then 2887 ac_cv_prog_CC="$CC" # Let the user override the test. 2888else 2889as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2890for as_dir in $PATH 2891do 2892 IFS=$as_save_IFS 2893 test -z "$as_dir" && as_dir=. 2894 for ac_exec_ext in '' $ac_executable_extensions; do 2895 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2896 ac_cv_prog_CC="${ac_tool_prefix}cc" 2897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2898 break 2 2899 fi 2900done 2901 done 2902IFS=$as_save_IFS 2903 2904fi 2905fi 2906CC=$ac_cv_prog_CC 2907if test -n "$CC"; then 2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2909$as_echo "$CC" >&6; } 2910else 2911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2912$as_echo "no" >&6; } 2913fi 2914 2915 2916 fi 2917fi 2918if test -z "$CC"; then 2919 # Extract the first word of "cc", so it can be a program name with args. 2920set dummy cc; ac_word=$2 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2922$as_echo_n "checking for $ac_word... " >&6; } 2923if ${ac_cv_prog_CC+:} false; then : 2924 $as_echo_n "(cached) " >&6 2925else 2926 if test -n "$CC"; then 2927 ac_cv_prog_CC="$CC" # Let the user override the test. 2928else 2929 ac_prog_rejected=no 2930as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2931for as_dir in $PATH 2932do 2933 IFS=$as_save_IFS 2934 test -z "$as_dir" && as_dir=. 2935 for ac_exec_ext in '' $ac_executable_extensions; do 2936 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2937 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2938 ac_prog_rejected=yes 2939 continue 2940 fi 2941 ac_cv_prog_CC="cc" 2942 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2943 break 2 2944 fi 2945done 2946 done 2947IFS=$as_save_IFS 2948 2949if test $ac_prog_rejected = yes; then 2950 # We found a bogon in the path, so make sure we never use it. 2951 set dummy $ac_cv_prog_CC 2952 shift 2953 if test $# != 0; then 2954 # We chose a different compiler from the bogus one. 2955 # However, it has the same basename, so the bogon will be chosen 2956 # first if we set CC to just the basename; use the full file name. 2957 shift 2958 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2959 fi 2960fi 2961fi 2962fi 2963CC=$ac_cv_prog_CC 2964if test -n "$CC"; then 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2966$as_echo "$CC" >&6; } 2967else 2968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2969$as_echo "no" >&6; } 2970fi 2971 2972 2973fi 2974if test -z "$CC"; then 2975 if test -n "$ac_tool_prefix"; then 2976 for ac_prog in cl.exe 2977 do 2978 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2979set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2981$as_echo_n "checking for $ac_word... " >&6; } 2982if ${ac_cv_prog_CC+:} false; then : 2983 $as_echo_n "(cached) " >&6 2984else 2985 if test -n "$CC"; then 2986 ac_cv_prog_CC="$CC" # Let the user override the test. 2987else 2988as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2989for as_dir in $PATH 2990do 2991 IFS=$as_save_IFS 2992 test -z "$as_dir" && as_dir=. 2993 for ac_exec_ext in '' $ac_executable_extensions; do 2994 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2995 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2997 break 2 2998 fi 2999done 3000 done 3001IFS=$as_save_IFS 3002 3003fi 3004fi 3005CC=$ac_cv_prog_CC 3006if test -n "$CC"; then 3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3008$as_echo "$CC" >&6; } 3009else 3010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3011$as_echo "no" >&6; } 3012fi 3013 3014 3015 test -n "$CC" && break 3016 done 3017fi 3018if test -z "$CC"; then 3019 ac_ct_CC=$CC 3020 for ac_prog in cl.exe 3021do 3022 # Extract the first word of "$ac_prog", so it can be a program name with args. 3023set dummy $ac_prog; ac_word=$2 3024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3025$as_echo_n "checking for $ac_word... " >&6; } 3026if ${ac_cv_prog_ac_ct_CC+:} false; then : 3027 $as_echo_n "(cached) " >&6 3028else 3029 if test -n "$ac_ct_CC"; then 3030 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3031else 3032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3033for as_dir in $PATH 3034do 3035 IFS=$as_save_IFS 3036 test -z "$as_dir" && as_dir=. 3037 for ac_exec_ext in '' $ac_executable_extensions; do 3038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3039 ac_cv_prog_ac_ct_CC="$ac_prog" 3040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3041 break 2 3042 fi 3043done 3044 done 3045IFS=$as_save_IFS 3046 3047fi 3048fi 3049ac_ct_CC=$ac_cv_prog_ac_ct_CC 3050if test -n "$ac_ct_CC"; then 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3052$as_echo "$ac_ct_CC" >&6; } 3053else 3054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3055$as_echo "no" >&6; } 3056fi 3057 3058 3059 test -n "$ac_ct_CC" && break 3060done 3061 3062 if test "x$ac_ct_CC" = x; then 3063 CC="" 3064 else 3065 case $cross_compiling:$ac_tool_warned in 3066yes:) 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3068$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3069ac_tool_warned=yes ;; 3070esac 3071 CC=$ac_ct_CC 3072 fi 3073fi 3074 3075fi 3076 3077 3078test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3079$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3080as_fn_error $? "no acceptable C compiler found in \$PATH 3081See \`config.log' for more details" "$LINENO" 5; } 3082 3083# Provide some information about the compiler. 3084$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3085set X $ac_compile 3086ac_compiler=$2 3087for ac_option in --version -v -V -qversion; do 3088 { { ac_try="$ac_compiler $ac_option >&5" 3089case "(($ac_try" in 3090 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3091 *) ac_try_echo=$ac_try;; 3092esac 3093eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3094$as_echo "$ac_try_echo"; } >&5 3095 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3096 ac_status=$? 3097 if test -s conftest.err; then 3098 sed '10a\ 3099... rest of stderr output deleted ... 3100 10q' conftest.err >conftest.er1 3101 cat conftest.er1 >&5 3102 fi 3103 rm -f conftest.er1 conftest.err 3104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3105 test $ac_status = 0; } 3106done 3107 3108cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3109/* end confdefs.h. */ 3110 3111int 3112main () 3113{ 3114 3115 ; 3116 return 0; 3117} 3118_ACEOF 3119ac_clean_files_save=$ac_clean_files 3120ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3121# Try to create an executable without -o first, disregard a.out. 3122# It will help us diagnose broken compilers, and finding out an intuition 3123# of exeext. 3124{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3125$as_echo_n "checking whether the C compiler works... " >&6; } 3126ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3127 3128# The possible output files: 3129ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3130 3131ac_rmfiles= 3132for ac_file in $ac_files 3133do 3134 case $ac_file in 3135 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3136 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3137 esac 3138done 3139rm -f $ac_rmfiles 3140 3141if { { ac_try="$ac_link_default" 3142case "(($ac_try" in 3143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3144 *) ac_try_echo=$ac_try;; 3145esac 3146eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3147$as_echo "$ac_try_echo"; } >&5 3148 (eval "$ac_link_default") 2>&5 3149 ac_status=$? 3150 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3151 test $ac_status = 0; }; then : 3152 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3153# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3154# in a Makefile. We should not override ac_cv_exeext if it was cached, 3155# so that the user can short-circuit this test for compilers unknown to 3156# Autoconf. 3157for ac_file in $ac_files '' 3158do 3159 test -f "$ac_file" || continue 3160 case $ac_file in 3161 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3162 ;; 3163 [ab].out ) 3164 # We found the default executable, but exeext='' is most 3165 # certainly right. 3166 break;; 3167 *.* ) 3168 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3169 then :; else 3170 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3171 fi 3172 # We set ac_cv_exeext here because the later test for it is not 3173 # safe: cross compilers may not add the suffix if given an `-o' 3174 # argument, so we may need to know it at that point already. 3175 # Even if this section looks crufty: it has the advantage of 3176 # actually working. 3177 break;; 3178 * ) 3179 break;; 3180 esac 3181done 3182test "$ac_cv_exeext" = no && ac_cv_exeext= 3183 3184else 3185 ac_file='' 3186fi 3187if test -z "$ac_file"; then : 3188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3189$as_echo "no" >&6; } 3190$as_echo "$as_me: failed program was:" >&5 3191sed 's/^/| /' conftest.$ac_ext >&5 3192 3193{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3194$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3195as_fn_error 77 "C compiler cannot create executables 3196See \`config.log' for more details" "$LINENO" 5; } 3197else 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3199$as_echo "yes" >&6; } 3200fi 3201{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3202$as_echo_n "checking for C compiler default output file name... " >&6; } 3203{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3204$as_echo "$ac_file" >&6; } 3205ac_exeext=$ac_cv_exeext 3206 3207rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3208ac_clean_files=$ac_clean_files_save 3209{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3210$as_echo_n "checking for suffix of executables... " >&6; } 3211if { { ac_try="$ac_link" 3212case "(($ac_try" in 3213 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3214 *) ac_try_echo=$ac_try;; 3215esac 3216eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3217$as_echo "$ac_try_echo"; } >&5 3218 (eval "$ac_link") 2>&5 3219 ac_status=$? 3220 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3221 test $ac_status = 0; }; then : 3222 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3223# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3224# work properly (i.e., refer to `conftest.exe'), while it won't with 3225# `rm'. 3226for ac_file in conftest.exe conftest conftest.*; do 3227 test -f "$ac_file" || continue 3228 case $ac_file in 3229 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3230 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3231 break;; 3232 * ) break;; 3233 esac 3234done 3235else 3236 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3237$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3238as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3239See \`config.log' for more details" "$LINENO" 5; } 3240fi 3241rm -f conftest conftest$ac_cv_exeext 3242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3243$as_echo "$ac_cv_exeext" >&6; } 3244 3245rm -f conftest.$ac_ext 3246EXEEXT=$ac_cv_exeext 3247ac_exeext=$EXEEXT 3248cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3249/* end confdefs.h. */ 3250#include <stdio.h> 3251int 3252main () 3253{ 3254FILE *f = fopen ("conftest.out", "w"); 3255 return ferror (f) || fclose (f) != 0; 3256 3257 ; 3258 return 0; 3259} 3260_ACEOF 3261ac_clean_files="$ac_clean_files conftest.out" 3262# Check that the compiler produces executables we can run. If not, either 3263# the compiler is broken, or we cross compile. 3264{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3265$as_echo_n "checking whether we are cross compiling... " >&6; } 3266if test "$cross_compiling" != yes; then 3267 { { ac_try="$ac_link" 3268case "(($ac_try" in 3269 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3270 *) ac_try_echo=$ac_try;; 3271esac 3272eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3273$as_echo "$ac_try_echo"; } >&5 3274 (eval "$ac_link") 2>&5 3275 ac_status=$? 3276 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3277 test $ac_status = 0; } 3278 if { ac_try='./conftest$ac_cv_exeext' 3279 { { case "(($ac_try" in 3280 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3281 *) ac_try_echo=$ac_try;; 3282esac 3283eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3284$as_echo "$ac_try_echo"; } >&5 3285 (eval "$ac_try") 2>&5 3286 ac_status=$? 3287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3288 test $ac_status = 0; }; }; then 3289 cross_compiling=no 3290 else 3291 if test "$cross_compiling" = maybe; then 3292 cross_compiling=yes 3293 else 3294 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3295$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3296as_fn_error $? "cannot run C compiled programs. 3297If you meant to cross compile, use \`--host'. 3298See \`config.log' for more details" "$LINENO" 5; } 3299 fi 3300 fi 3301fi 3302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3303$as_echo "$cross_compiling" >&6; } 3304 3305rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3306ac_clean_files=$ac_clean_files_save 3307{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3308$as_echo_n "checking for suffix of object files... " >&6; } 3309if ${ac_cv_objext+:} false; then : 3310 $as_echo_n "(cached) " >&6 3311else 3312 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3313/* end confdefs.h. */ 3314 3315int 3316main () 3317{ 3318 3319 ; 3320 return 0; 3321} 3322_ACEOF 3323rm -f conftest.o conftest.obj 3324if { { ac_try="$ac_compile" 3325case "(($ac_try" in 3326 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3327 *) ac_try_echo=$ac_try;; 3328esac 3329eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3330$as_echo "$ac_try_echo"; } >&5 3331 (eval "$ac_compile") 2>&5 3332 ac_status=$? 3333 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3334 test $ac_status = 0; }; then : 3335 for ac_file in conftest.o conftest.obj conftest.*; do 3336 test -f "$ac_file" || continue; 3337 case $ac_file in 3338 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3339 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3340 break;; 3341 esac 3342done 3343else 3344 $as_echo "$as_me: failed program was:" >&5 3345sed 's/^/| /' conftest.$ac_ext >&5 3346 3347{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3348$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3349as_fn_error $? "cannot compute suffix of object files: cannot compile 3350See \`config.log' for more details" "$LINENO" 5; } 3351fi 3352rm -f conftest.$ac_cv_objext conftest.$ac_ext 3353fi 3354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3355$as_echo "$ac_cv_objext" >&6; } 3356OBJEXT=$ac_cv_objext 3357ac_objext=$OBJEXT 3358{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3359$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3360if ${ac_cv_c_compiler_gnu+:} false; then : 3361 $as_echo_n "(cached) " >&6 3362else 3363 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3364/* end confdefs.h. */ 3365 3366int 3367main () 3368{ 3369#ifndef __GNUC__ 3370 choke me 3371#endif 3372 3373 ; 3374 return 0; 3375} 3376_ACEOF 3377if ac_fn_c_try_compile "$LINENO"; then : 3378 ac_compiler_gnu=yes 3379else 3380 ac_compiler_gnu=no 3381fi 3382rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3383ac_cv_c_compiler_gnu=$ac_compiler_gnu 3384 3385fi 3386{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3387$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3388if test $ac_compiler_gnu = yes; then 3389 GCC=yes 3390else 3391 GCC= 3392fi 3393ac_test_CFLAGS=${CFLAGS+set} 3394ac_save_CFLAGS=$CFLAGS 3395{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3396$as_echo_n "checking whether $CC accepts -g... " >&6; } 3397if ${ac_cv_prog_cc_g+:} false; then : 3398 $as_echo_n "(cached) " >&6 3399else 3400 ac_save_c_werror_flag=$ac_c_werror_flag 3401 ac_c_werror_flag=yes 3402 ac_cv_prog_cc_g=no 3403 CFLAGS="-g" 3404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3405/* end confdefs.h. */ 3406 3407int 3408main () 3409{ 3410 3411 ; 3412 return 0; 3413} 3414_ACEOF 3415if ac_fn_c_try_compile "$LINENO"; then : 3416 ac_cv_prog_cc_g=yes 3417else 3418 CFLAGS="" 3419 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3420/* end confdefs.h. */ 3421 3422int 3423main () 3424{ 3425 3426 ; 3427 return 0; 3428} 3429_ACEOF 3430if ac_fn_c_try_compile "$LINENO"; then : 3431 3432else 3433 ac_c_werror_flag=$ac_save_c_werror_flag 3434 CFLAGS="-g" 3435 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3436/* end confdefs.h. */ 3437 3438int 3439main () 3440{ 3441 3442 ; 3443 return 0; 3444} 3445_ACEOF 3446if ac_fn_c_try_compile "$LINENO"; then : 3447 ac_cv_prog_cc_g=yes 3448fi 3449rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3450fi 3451rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3452fi 3453rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3454 ac_c_werror_flag=$ac_save_c_werror_flag 3455fi 3456{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3457$as_echo "$ac_cv_prog_cc_g" >&6; } 3458if test "$ac_test_CFLAGS" = set; then 3459 CFLAGS=$ac_save_CFLAGS 3460elif test $ac_cv_prog_cc_g = yes; then 3461 if test "$GCC" = yes; then 3462 CFLAGS="-g -O2" 3463 else 3464 CFLAGS="-g" 3465 fi 3466else 3467 if test "$GCC" = yes; then 3468 CFLAGS="-O2" 3469 else 3470 CFLAGS= 3471 fi 3472fi 3473{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3474$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3475if ${ac_cv_prog_cc_c89+:} false; then : 3476 $as_echo_n "(cached) " >&6 3477else 3478 ac_cv_prog_cc_c89=no 3479ac_save_CC=$CC 3480cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3481/* end confdefs.h. */ 3482#include <stdarg.h> 3483#include <stdio.h> 3484#include <sys/types.h> 3485#include <sys/stat.h> 3486/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3487struct buf { int x; }; 3488FILE * (*rcsopen) (struct buf *, struct stat *, int); 3489static char *e (p, i) 3490 char **p; 3491 int i; 3492{ 3493 return p[i]; 3494} 3495static char *f (char * (*g) (char **, int), char **p, ...) 3496{ 3497 char *s; 3498 va_list v; 3499 va_start (v,p); 3500 s = g (p, va_arg (v,int)); 3501 va_end (v); 3502 return s; 3503} 3504 3505/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3506 function prototypes and stuff, but not '\xHH' hex character constants. 3507 These don't provoke an error unfortunately, instead are silently treated 3508 as 'x'. The following induces an error, until -std is added to get 3509 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3510 array size at least. It's necessary to write '\x00'==0 to get something 3511 that's true only with -std. */ 3512int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3513 3514/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3515 inside strings and character constants. */ 3516#define FOO(x) 'x' 3517int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3518 3519int test (int i, double x); 3520struct s1 {int (*f) (int a);}; 3521struct s2 {int (*f) (double a);}; 3522int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3523int argc; 3524char **argv; 3525int 3526main () 3527{ 3528return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3529 ; 3530 return 0; 3531} 3532_ACEOF 3533for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3534 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3535do 3536 CC="$ac_save_CC $ac_arg" 3537 if ac_fn_c_try_compile "$LINENO"; then : 3538 ac_cv_prog_cc_c89=$ac_arg 3539fi 3540rm -f core conftest.err conftest.$ac_objext 3541 test "x$ac_cv_prog_cc_c89" != "xno" && break 3542done 3543rm -f conftest.$ac_ext 3544CC=$ac_save_CC 3545 3546fi 3547# AC_CACHE_VAL 3548case "x$ac_cv_prog_cc_c89" in 3549 x) 3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3551$as_echo "none needed" >&6; } ;; 3552 xno) 3553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3554$as_echo "unsupported" >&6; } ;; 3555 *) 3556 CC="$CC $ac_cv_prog_cc_c89" 3557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3558$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3559esac 3560if test "x$ac_cv_prog_cc_c89" != xno; then : 3561 3562fi 3563 3564ac_ext=c 3565ac_cpp='$CPP $CPPFLAGS' 3566ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3567ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3568ac_compiler_gnu=$ac_cv_c_compiler_gnu 3569 3570depcc="$CC" am_compiler_list= 3571 3572{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3573$as_echo_n "checking dependency style of $depcc... " >&6; } 3574if ${am_cv_CC_dependencies_compiler_type+:} false; then : 3575 $as_echo_n "(cached) " >&6 3576else 3577 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3578 # We make a subdir and do the tests there. Otherwise we can end up 3579 # making bogus files that we don't know about and never remove. For 3580 # instance it was reported that on HP-UX the gcc test will end up 3581 # making a dummy file named `D' -- because `-MD' means `put the output 3582 # in D'. 3583 mkdir conftest.dir 3584 # Copy depcomp to subdir because otherwise we won't find it if we're 3585 # using a relative directory. 3586 cp "$am_depcomp" conftest.dir 3587 cd conftest.dir 3588 # We will build objects and dependencies in a subdirectory because 3589 # it helps to detect inapplicable dependency modes. For instance 3590 # both Tru64's cc and ICC support -MD to output dependencies as a 3591 # side effect of compilation, but ICC will put the dependencies in 3592 # the current directory while Tru64 will put them in the object 3593 # directory. 3594 mkdir sub 3595 3596 am_cv_CC_dependencies_compiler_type=none 3597 if test "$am_compiler_list" = ""; then 3598 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3599 fi 3600 am__universal=false 3601 case " $depcc " in #( 3602 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3603 esac 3604 3605 for depmode in $am_compiler_list; do 3606 # Setup a source with many dependencies, because some compilers 3607 # like to wrap large dependency lists on column 80 (with \), and 3608 # we should not choose a depcomp mode which is confused by this. 3609 # 3610 # We need to recreate these files for each test, as the compiler may 3611 # overwrite some of them when testing with obscure command lines. 3612 # This happens at least with the AIX C compiler. 3613 : > sub/conftest.c 3614 for i in 1 2 3 4 5 6; do 3615 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3616 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3617 # Solaris 8's {/usr,}/bin/sh. 3618 touch sub/conftst$i.h 3619 done 3620 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3621 3622 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3623 # mode. It turns out that the SunPro C++ compiler does not properly 3624 # handle `-M -o', and we need to detect this. Also, some Intel 3625 # versions had trouble with output in subdirs 3626 am__obj=sub/conftest.${OBJEXT-o} 3627 am__minus_obj="-o $am__obj" 3628 case $depmode in 3629 gcc) 3630 # This depmode causes a compiler race in universal mode. 3631 test "$am__universal" = false || continue 3632 ;; 3633 nosideeffect) 3634 # after this tag, mechanisms are not by side-effect, so they'll 3635 # only be used when explicitly requested 3636 if test "x$enable_dependency_tracking" = xyes; then 3637 continue 3638 else 3639 break 3640 fi 3641 ;; 3642 msvisualcpp | msvcmsys) 3643 # This compiler won't grok `-c -o', but also, the minuso test has 3644 # not run yet. These depmodes are late enough in the game, and 3645 # so weak that their functioning should not be impacted. 3646 am__obj=conftest.${OBJEXT-o} 3647 am__minus_obj= 3648 ;; 3649 none) break ;; 3650 esac 3651 if depmode=$depmode \ 3652 source=sub/conftest.c object=$am__obj \ 3653 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3654 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3655 >/dev/null 2>conftest.err && 3656 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3657 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3658 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3659 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3660 # icc doesn't choke on unknown options, it will just issue warnings 3661 # or remarks (even with -Werror). So we grep stderr for any message 3662 # that says an option was ignored or not supported. 3663 # When given -MP, icc 7.0 and 7.1 complain thusly: 3664 # icc: Command line warning: ignoring option '-M'; no argument required 3665 # The diagnosis changed in icc 8.0: 3666 # icc: Command line remark: option '-MP' not supported 3667 if (grep 'ignoring option' conftest.err || 3668 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3669 am_cv_CC_dependencies_compiler_type=$depmode 3670 break 3671 fi 3672 fi 3673 done 3674 3675 cd .. 3676 rm -rf conftest.dir 3677else 3678 am_cv_CC_dependencies_compiler_type=none 3679fi 3680 3681fi 3682{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3683$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3684CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3685 3686 if 3687 test "x$enable_dependency_tracking" != xno \ 3688 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3689 am__fastdepCC_TRUE= 3690 am__fastdepCC_FALSE='#' 3691else 3692 am__fastdepCC_TRUE='#' 3693 am__fastdepCC_FALSE= 3694fi 3695 3696 3697 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C99" >&5 3698$as_echo_n "checking for $CC option to accept ISO C99... " >&6; } 3699if ${ac_cv_prog_cc_c99+:} false; then : 3700 $as_echo_n "(cached) " >&6 3701else 3702 ac_cv_prog_cc_c99=no 3703ac_save_CC=$CC 3704cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3705/* end confdefs.h. */ 3706#include <stdarg.h> 3707#include <stdbool.h> 3708#include <stdlib.h> 3709#include <wchar.h> 3710#include <stdio.h> 3711 3712// Check varargs macros. These examples are taken from C99 6.10.3.5. 3713#define debug(...) fprintf (stderr, __VA_ARGS__) 3714#define showlist(...) puts (#__VA_ARGS__) 3715#define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__)) 3716static void 3717test_varargs_macros (void) 3718{ 3719 int x = 1234; 3720 int y = 5678; 3721 debug ("Flag"); 3722 debug ("X = %d\n", x); 3723 showlist (The first, second, and third items.); 3724 report (x>y, "x is %d but y is %d", x, y); 3725} 3726 3727// Check long long types. 3728#define BIG64 18446744073709551615ull 3729#define BIG32 4294967295ul 3730#define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0) 3731#if !BIG_OK 3732 your preprocessor is broken; 3733#endif 3734#if BIG_OK 3735#else 3736 your preprocessor is broken; 3737#endif 3738static long long int bignum = -9223372036854775807LL; 3739static unsigned long long int ubignum = BIG64; 3740 3741struct incomplete_array 3742{ 3743 int datasize; 3744 double data[]; 3745}; 3746 3747struct named_init { 3748 int number; 3749 const wchar_t *name; 3750 double average; 3751}; 3752 3753typedef const char *ccp; 3754 3755static inline int 3756test_restrict (ccp restrict text) 3757{ 3758 // See if C++-style comments work. 3759 // Iterate through items via the restricted pointer. 3760 // Also check for declarations in for loops. 3761 for (unsigned int i = 0; *(text+i) != '\0'; ++i) 3762 continue; 3763 return 0; 3764} 3765 3766// Check varargs and va_copy. 3767static void 3768test_varargs (const char *format, ...) 3769{ 3770 va_list args; 3771 va_start (args, format); 3772 va_list args_copy; 3773 va_copy (args_copy, args); 3774 3775 const char *str; 3776 int number; 3777 float fnumber; 3778 3779 while (*format) 3780 { 3781 switch (*format++) 3782 { 3783 case 's': // string 3784 str = va_arg (args_copy, const char *); 3785 break; 3786 case 'd': // int 3787 number = va_arg (args_copy, int); 3788 break; 3789 case 'f': // float 3790 fnumber = va_arg (args_copy, double); 3791 break; 3792 default: 3793 break; 3794 } 3795 } 3796 va_end (args_copy); 3797 va_end (args); 3798} 3799 3800int 3801main () 3802{ 3803 3804 // Check bool. 3805 _Bool success = false; 3806 3807 // Check restrict. 3808 if (test_restrict ("String literal") == 0) 3809 success = true; 3810 char *restrict newvar = "Another string"; 3811 3812 // Check varargs. 3813 test_varargs ("s, d' f .", "string", 65, 34.234); 3814 test_varargs_macros (); 3815 3816 // Check flexible array members. 3817 struct incomplete_array *ia = 3818 malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10)); 3819 ia->datasize = 10; 3820 for (int i = 0; i < ia->datasize; ++i) 3821 ia->data[i] = i * 1.234; 3822 3823 // Check named initializers. 3824 struct named_init ni = { 3825 .number = 34, 3826 .name = L"Test wide string", 3827 .average = 543.34343, 3828 }; 3829 3830 ni.number = 58; 3831 3832 int dynamic_array[ni.number]; 3833 dynamic_array[ni.number - 1] = 543; 3834 3835 // work around unused variable warnings 3836 return (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == 'x' 3837 || dynamic_array[ni.number - 1] != 543); 3838 3839 ; 3840 return 0; 3841} 3842_ACEOF 3843for ac_arg in '' -std=gnu99 -std=c99 -c99 -AC99 -xc99=all -qlanglvl=extc99 3844do 3845 CC="$ac_save_CC $ac_arg" 3846 if ac_fn_c_try_compile "$LINENO"; then : 3847 ac_cv_prog_cc_c99=$ac_arg 3848fi 3849rm -f core conftest.err conftest.$ac_objext 3850 test "x$ac_cv_prog_cc_c99" != "xno" && break 3851done 3852rm -f conftest.$ac_ext 3853CC=$ac_save_CC 3854 3855fi 3856# AC_CACHE_VAL 3857case "x$ac_cv_prog_cc_c99" in 3858 x) 3859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3860$as_echo "none needed" >&6; } ;; 3861 xno) 3862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3863$as_echo "unsupported" >&6; } ;; 3864 *) 3865 CC="$CC $ac_cv_prog_cc_c99" 3866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5 3867$as_echo "$ac_cv_prog_cc_c99" >&6; } ;; 3868esac 3869if test "x$ac_cv_prog_cc_c99" != xno; then : 3870 3871fi 3872 3873 3874 3875ac_ext=c 3876ac_cpp='$CPP $CPPFLAGS' 3877ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3878ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3879ac_compiler_gnu=$ac_cv_c_compiler_gnu 3880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3881$as_echo_n "checking how to run the C preprocessor... " >&6; } 3882# On Suns, sometimes $CPP names a directory. 3883if test -n "$CPP" && test -d "$CPP"; then 3884 CPP= 3885fi 3886if test -z "$CPP"; then 3887 if ${ac_cv_prog_CPP+:} false; then : 3888 $as_echo_n "(cached) " >&6 3889else 3890 # Double quotes because CPP needs to be expanded 3891 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3892 do 3893 ac_preproc_ok=false 3894for ac_c_preproc_warn_flag in '' yes 3895do 3896 # Use a header file that comes with gcc, so configuring glibc 3897 # with a fresh cross-compiler works. 3898 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3899 # <limits.h> exists even on freestanding compilers. 3900 # On the NeXT, cc -E runs the code through the compiler's parser, 3901 # not just through cpp. "Syntax error" is here to catch this case. 3902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3903/* end confdefs.h. */ 3904#ifdef __STDC__ 3905# include <limits.h> 3906#else 3907# include <assert.h> 3908#endif 3909 Syntax error 3910_ACEOF 3911if ac_fn_c_try_cpp "$LINENO"; then : 3912 3913else 3914 # Broken: fails on valid input. 3915continue 3916fi 3917rm -f conftest.err conftest.i conftest.$ac_ext 3918 3919 # OK, works on sane cases. Now check whether nonexistent headers 3920 # can be detected and how. 3921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3922/* end confdefs.h. */ 3923#include <ac_nonexistent.h> 3924_ACEOF 3925if ac_fn_c_try_cpp "$LINENO"; then : 3926 # Broken: success on invalid input. 3927continue 3928else 3929 # Passes both tests. 3930ac_preproc_ok=: 3931break 3932fi 3933rm -f conftest.err conftest.i conftest.$ac_ext 3934 3935done 3936# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3937rm -f conftest.i conftest.err conftest.$ac_ext 3938if $ac_preproc_ok; then : 3939 break 3940fi 3941 3942 done 3943 ac_cv_prog_CPP=$CPP 3944 3945fi 3946 CPP=$ac_cv_prog_CPP 3947else 3948 ac_cv_prog_CPP=$CPP 3949fi 3950{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3951$as_echo "$CPP" >&6; } 3952ac_preproc_ok=false 3953for ac_c_preproc_warn_flag in '' yes 3954do 3955 # Use a header file that comes with gcc, so configuring glibc 3956 # with a fresh cross-compiler works. 3957 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3958 # <limits.h> exists even on freestanding compilers. 3959 # On the NeXT, cc -E runs the code through the compiler's parser, 3960 # not just through cpp. "Syntax error" is here to catch this case. 3961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3962/* end confdefs.h. */ 3963#ifdef __STDC__ 3964# include <limits.h> 3965#else 3966# include <assert.h> 3967#endif 3968 Syntax error 3969_ACEOF 3970if ac_fn_c_try_cpp "$LINENO"; then : 3971 3972else 3973 # Broken: fails on valid input. 3974continue 3975fi 3976rm -f conftest.err conftest.i conftest.$ac_ext 3977 3978 # OK, works on sane cases. Now check whether nonexistent headers 3979 # can be detected and how. 3980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3981/* end confdefs.h. */ 3982#include <ac_nonexistent.h> 3983_ACEOF 3984if ac_fn_c_try_cpp "$LINENO"; then : 3985 # Broken: success on invalid input. 3986continue 3987else 3988 # Passes both tests. 3989ac_preproc_ok=: 3990break 3991fi 3992rm -f conftest.err conftest.i conftest.$ac_ext 3993 3994done 3995# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3996rm -f conftest.i conftest.err conftest.$ac_ext 3997if $ac_preproc_ok; then : 3998 3999else 4000 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4001$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4002as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4003See \`config.log' for more details" "$LINENO" 5; } 4004fi 4005 4006ac_ext=c 4007ac_cpp='$CPP $CPPFLAGS' 4008ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4009ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4010ac_compiler_gnu=$ac_cv_c_compiler_gnu 4011 4012 4013{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4014$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4015if ${ac_cv_path_GREP+:} false; then : 4016 $as_echo_n "(cached) " >&6 4017else 4018 if test -z "$GREP"; then 4019 ac_path_GREP_found=false 4020 # Loop through the user's path and test for each of PROGNAME-LIST 4021 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4022for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4023do 4024 IFS=$as_save_IFS 4025 test -z "$as_dir" && as_dir=. 4026 for ac_prog in grep ggrep; do 4027 for ac_exec_ext in '' $ac_executable_extensions; do 4028 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4029 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4030# Check for GNU ac_path_GREP and select it if it is found. 4031 # Check for GNU $ac_path_GREP 4032case `"$ac_path_GREP" --version 2>&1` in 4033*GNU*) 4034 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4035*) 4036 ac_count=0 4037 $as_echo_n 0123456789 >"conftest.in" 4038 while : 4039 do 4040 cat "conftest.in" "conftest.in" >"conftest.tmp" 4041 mv "conftest.tmp" "conftest.in" 4042 cp "conftest.in" "conftest.nl" 4043 $as_echo 'GREP' >> "conftest.nl" 4044 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4045 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4046 as_fn_arith $ac_count + 1 && ac_count=$as_val 4047 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4048 # Best one so far, save it but keep looking for a better one 4049 ac_cv_path_GREP="$ac_path_GREP" 4050 ac_path_GREP_max=$ac_count 4051 fi 4052 # 10*(2^10) chars as input seems more than enough 4053 test $ac_count -gt 10 && break 4054 done 4055 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4056esac 4057 4058 $ac_path_GREP_found && break 3 4059 done 4060 done 4061 done 4062IFS=$as_save_IFS 4063 if test -z "$ac_cv_path_GREP"; then 4064 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4065 fi 4066else 4067 ac_cv_path_GREP=$GREP 4068fi 4069 4070fi 4071{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4072$as_echo "$ac_cv_path_GREP" >&6; } 4073 GREP="$ac_cv_path_GREP" 4074 4075 4076{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4077$as_echo_n "checking for egrep... " >&6; } 4078if ${ac_cv_path_EGREP+:} false; then : 4079 $as_echo_n "(cached) " >&6 4080else 4081 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4082 then ac_cv_path_EGREP="$GREP -E" 4083 else 4084 if test -z "$EGREP"; then 4085 ac_path_EGREP_found=false 4086 # Loop through the user's path and test for each of PROGNAME-LIST 4087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4088for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4089do 4090 IFS=$as_save_IFS 4091 test -z "$as_dir" && as_dir=. 4092 for ac_prog in egrep; do 4093 for ac_exec_ext in '' $ac_executable_extensions; do 4094 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4095 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4096# Check for GNU ac_path_EGREP and select it if it is found. 4097 # Check for GNU $ac_path_EGREP 4098case `"$ac_path_EGREP" --version 2>&1` in 4099*GNU*) 4100 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4101*) 4102 ac_count=0 4103 $as_echo_n 0123456789 >"conftest.in" 4104 while : 4105 do 4106 cat "conftest.in" "conftest.in" >"conftest.tmp" 4107 mv "conftest.tmp" "conftest.in" 4108 cp "conftest.in" "conftest.nl" 4109 $as_echo 'EGREP' >> "conftest.nl" 4110 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4111 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4112 as_fn_arith $ac_count + 1 && ac_count=$as_val 4113 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4114 # Best one so far, save it but keep looking for a better one 4115 ac_cv_path_EGREP="$ac_path_EGREP" 4116 ac_path_EGREP_max=$ac_count 4117 fi 4118 # 10*(2^10) chars as input seems more than enough 4119 test $ac_count -gt 10 && break 4120 done 4121 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4122esac 4123 4124 $ac_path_EGREP_found && break 3 4125 done 4126 done 4127 done 4128IFS=$as_save_IFS 4129 if test -z "$ac_cv_path_EGREP"; then 4130 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4131 fi 4132else 4133 ac_cv_path_EGREP=$EGREP 4134fi 4135 4136 fi 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4139$as_echo "$ac_cv_path_EGREP" >&6; } 4140 EGREP="$ac_cv_path_EGREP" 4141 4142 4143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4144$as_echo_n "checking for ANSI C header files... " >&6; } 4145if ${ac_cv_header_stdc+:} false; then : 4146 $as_echo_n "(cached) " >&6 4147else 4148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4149/* end confdefs.h. */ 4150#include <stdlib.h> 4151#include <stdarg.h> 4152#include <string.h> 4153#include <float.h> 4154 4155int 4156main () 4157{ 4158 4159 ; 4160 return 0; 4161} 4162_ACEOF 4163if ac_fn_c_try_compile "$LINENO"; then : 4164 ac_cv_header_stdc=yes 4165else 4166 ac_cv_header_stdc=no 4167fi 4168rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4169 4170if test $ac_cv_header_stdc = yes; then 4171 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4173/* end confdefs.h. */ 4174#include <string.h> 4175 4176_ACEOF 4177if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4178 $EGREP "memchr" >/dev/null 2>&1; then : 4179 4180else 4181 ac_cv_header_stdc=no 4182fi 4183rm -f conftest* 4184 4185fi 4186 4187if test $ac_cv_header_stdc = yes; then 4188 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4190/* end confdefs.h. */ 4191#include <stdlib.h> 4192 4193_ACEOF 4194if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4195 $EGREP "free" >/dev/null 2>&1; then : 4196 4197else 4198 ac_cv_header_stdc=no 4199fi 4200rm -f conftest* 4201 4202fi 4203 4204if test $ac_cv_header_stdc = yes; then 4205 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4206 if test "$cross_compiling" = yes; then : 4207 : 4208else 4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4210/* end confdefs.h. */ 4211#include <ctype.h> 4212#include <stdlib.h> 4213#if ((' ' & 0x0FF) == 0x020) 4214# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4215# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4216#else 4217# define ISLOWER(c) \ 4218 (('a' <= (c) && (c) <= 'i') \ 4219 || ('j' <= (c) && (c) <= 'r') \ 4220 || ('s' <= (c) && (c) <= 'z')) 4221# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4222#endif 4223 4224#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4225int 4226main () 4227{ 4228 int i; 4229 for (i = 0; i < 256; i++) 4230 if (XOR (islower (i), ISLOWER (i)) 4231 || toupper (i) != TOUPPER (i)) 4232 return 2; 4233 return 0; 4234} 4235_ACEOF 4236if ac_fn_c_try_run "$LINENO"; then : 4237 4238else 4239 ac_cv_header_stdc=no 4240fi 4241rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4242 conftest.$ac_objext conftest.beam conftest.$ac_ext 4243fi 4244 4245fi 4246fi 4247{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4248$as_echo "$ac_cv_header_stdc" >&6; } 4249if test $ac_cv_header_stdc = yes; then 4250 4251$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4252 4253fi 4254 4255# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4256for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4257 inttypes.h stdint.h unistd.h 4258do : 4259 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4260ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4261" 4262if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4263 cat >>confdefs.h <<_ACEOF 4264#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4265_ACEOF 4266 4267fi 4268 4269done 4270 4271 4272 4273 4274if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 4275 if test -n "$ac_tool_prefix"; then 4276 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 4277set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 4278{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4279$as_echo_n "checking for $ac_word... " >&6; } 4280if ${ac_cv_path_PKG_CONFIG+:} false; then : 4281 $as_echo_n "(cached) " >&6 4282else 4283 case $PKG_CONFIG in 4284 [\\/]* | ?:[\\/]*) 4285 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 4286 ;; 4287 *) 4288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4289for as_dir in $PATH 4290do 4291 IFS=$as_save_IFS 4292 test -z "$as_dir" && as_dir=. 4293 for ac_exec_ext in '' $ac_executable_extensions; do 4294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4295 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4297 break 2 4298 fi 4299done 4300 done 4301IFS=$as_save_IFS 4302 4303 ;; 4304esac 4305fi 4306PKG_CONFIG=$ac_cv_path_PKG_CONFIG 4307if test -n "$PKG_CONFIG"; then 4308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 4309$as_echo "$PKG_CONFIG" >&6; } 4310else 4311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4312$as_echo "no" >&6; } 4313fi 4314 4315 4316fi 4317if test -z "$ac_cv_path_PKG_CONFIG"; then 4318 ac_pt_PKG_CONFIG=$PKG_CONFIG 4319 # Extract the first word of "pkg-config", so it can be a program name with args. 4320set dummy pkg-config; ac_word=$2 4321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4322$as_echo_n "checking for $ac_word... " >&6; } 4323if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 4324 $as_echo_n "(cached) " >&6 4325else 4326 case $ac_pt_PKG_CONFIG in 4327 [\\/]* | ?:[\\/]*) 4328 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 4329 ;; 4330 *) 4331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4332for as_dir in $PATH 4333do 4334 IFS=$as_save_IFS 4335 test -z "$as_dir" && as_dir=. 4336 for ac_exec_ext in '' $ac_executable_extensions; do 4337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4338 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 4339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4340 break 2 4341 fi 4342done 4343 done 4344IFS=$as_save_IFS 4345 4346 ;; 4347esac 4348fi 4349ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 4350if test -n "$ac_pt_PKG_CONFIG"; then 4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 4352$as_echo "$ac_pt_PKG_CONFIG" >&6; } 4353else 4354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4355$as_echo "no" >&6; } 4356fi 4357 4358 if test "x$ac_pt_PKG_CONFIG" = x; then 4359 PKG_CONFIG="" 4360 else 4361 case $cross_compiling:$ac_tool_warned in 4362yes:) 4363{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4364$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4365ac_tool_warned=yes ;; 4366esac 4367 PKG_CONFIG=$ac_pt_PKG_CONFIG 4368 fi 4369else 4370 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 4371fi 4372 4373fi 4374if test -n "$PKG_CONFIG"; then 4375 _pkg_min_version=0.9.0 4376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 4377$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 4378 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 4379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4380$as_echo "yes" >&6; } 4381 else 4382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4383$as_echo "no" >&6; } 4384 PKG_CONFIG="" 4385 fi 4386 4387fi 4388# Make sure we can run config.sub. 4389$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 4390 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 4391 4392{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 4393$as_echo_n "checking build system type... " >&6; } 4394if ${ac_cv_build+:} false; then : 4395 $as_echo_n "(cached) " >&6 4396else 4397 ac_build_alias=$build_alias 4398test "x$ac_build_alias" = x && 4399 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 4400test "x$ac_build_alias" = x && 4401 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 4402ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 4403 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 4404 4405fi 4406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 4407$as_echo "$ac_cv_build" >&6; } 4408case $ac_cv_build in 4409*-*-*) ;; 4410*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 4411esac 4412build=$ac_cv_build 4413ac_save_IFS=$IFS; IFS='-' 4414set x $ac_cv_build 4415shift 4416build_cpu=$1 4417build_vendor=$2 4418shift; shift 4419# Remember, the first character of IFS is used to create $*, 4420# except with old shells: 4421build_os=$* 4422IFS=$ac_save_IFS 4423case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 4424 4425 4426{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 4427$as_echo_n "checking host system type... " >&6; } 4428if ${ac_cv_host+:} false; then : 4429 $as_echo_n "(cached) " >&6 4430else 4431 if test "x$host_alias" = x; then 4432 ac_cv_host=$ac_cv_build 4433else 4434 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 4435 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 4436fi 4437 4438fi 4439{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 4440$as_echo "$ac_cv_host" >&6; } 4441case $ac_cv_host in 4442*-*-*) ;; 4443*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 4444esac 4445host=$ac_cv_host 4446ac_save_IFS=$IFS; IFS='-' 4447set x $ac_cv_host 4448shift 4449host_cpu=$1 4450host_vendor=$2 4451shift; shift 4452# Remember, the first character of IFS is used to create $*, 4453# except with old shells: 4454host_os=$* 4455IFS=$ac_save_IFS 4456case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 4457 4458 4459{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4460$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4461if ${ac_cv_path_SED+:} false; then : 4462 $as_echo_n "(cached) " >&6 4463else 4464 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4465 for ac_i in 1 2 3 4 5 6 7; do 4466 ac_script="$ac_script$as_nl$ac_script" 4467 done 4468 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4469 { ac_script=; unset ac_script;} 4470 if test -z "$SED"; then 4471 ac_path_SED_found=false 4472 # Loop through the user's path and test for each of PROGNAME-LIST 4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4474for as_dir in $PATH 4475do 4476 IFS=$as_save_IFS 4477 test -z "$as_dir" && as_dir=. 4478 for ac_prog in sed gsed; do 4479 for ac_exec_ext in '' $ac_executable_extensions; do 4480 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4481 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 4482# Check for GNU ac_path_SED and select it if it is found. 4483 # Check for GNU $ac_path_SED 4484case `"$ac_path_SED" --version 2>&1` in 4485*GNU*) 4486 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4487*) 4488 ac_count=0 4489 $as_echo_n 0123456789 >"conftest.in" 4490 while : 4491 do 4492 cat "conftest.in" "conftest.in" >"conftest.tmp" 4493 mv "conftest.tmp" "conftest.in" 4494 cp "conftest.in" "conftest.nl" 4495 $as_echo '' >> "conftest.nl" 4496 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4497 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4498 as_fn_arith $ac_count + 1 && ac_count=$as_val 4499 if test $ac_count -gt ${ac_path_SED_max-0}; then 4500 # Best one so far, save it but keep looking for a better one 4501 ac_cv_path_SED="$ac_path_SED" 4502 ac_path_SED_max=$ac_count 4503 fi 4504 # 10*(2^10) chars as input seems more than enough 4505 test $ac_count -gt 10 && break 4506 done 4507 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4508esac 4509 4510 $ac_path_SED_found && break 3 4511 done 4512 done 4513 done 4514IFS=$as_save_IFS 4515 if test -z "$ac_cv_path_SED"; then 4516 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4517 fi 4518else 4519 ac_cv_path_SED=$SED 4520fi 4521 4522fi 4523{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4524$as_echo "$ac_cv_path_SED" >&6; } 4525 SED="$ac_cv_path_SED" 4526 rm -f conftest.sed 4527 4528 4529 4530 4531 4532if test "x$GCC" = xyes ; then 4533 CWARNFLAGS="-Wall -Wpointer-arith -Wstrict-prototypes -Wmissing-prototypes \ 4534-Wmissing-declarations -Wnested-externs -fno-strict-aliasing \ 4535-Wbad-function-cast -Wformat=2" 4536 case `$CC -dumpversion` in 4537 3.4.* | 4.*) 4538 CWARNFLAGS="$CWARNFLAGS -Wold-style-definition -Wdeclaration-after-statement" 4539 ;; 4540 esac 4541else 4542 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4543if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4544 SUNCC="yes" 4545else 4546 SUNCC="no" 4547fi 4548 4549 if test "x$SUNCC" = "xyes"; then 4550 CWARNFLAGS="-v" 4551 fi 4552fi 4553 4554 4555 4556# If the module's configure.ac calls AC_PROG_CC later on, CC gets set to C89 4557 4558 4559 4560# Check whether --enable-strict-compilation was given. 4561if test "${enable_strict_compilation+set}" = set; then : 4562 enableval=$enable_strict_compilation; STRICT_COMPILE=$enableval 4563else 4564 STRICT_COMPILE=no 4565fi 4566 4567if test "x$STRICT_COMPILE" = "xyes"; then 4568 ac_fn_c_check_decl "$LINENO" "__SUNPRO_C" "ac_cv_have_decl___SUNPRO_C" "$ac_includes_default" 4569if test "x$ac_cv_have_decl___SUNPRO_C" = xyes; then : 4570 SUNCC="yes" 4571else 4572 SUNCC="no" 4573fi 4574 4575 ac_fn_c_check_decl "$LINENO" "__INTEL_COMPILER" "ac_cv_have_decl___INTEL_COMPILER" "$ac_includes_default" 4576if test "x$ac_cv_have_decl___INTEL_COMPILER" = xyes; then : 4577 INTELCC="yes" 4578else 4579 INTELCC="no" 4580fi 4581 4582 if test "x$GCC" = xyes ; then 4583 STRICT_CFLAGS="-pedantic -Werror" 4584 elif test "x$SUNCC" = "xyes"; then 4585 STRICT_CFLAGS="-errwarn" 4586 elif test "x$INTELCC" = "xyes"; then 4587 STRICT_CFLAGS="-Werror" 4588 fi 4589fi 4590CWARNFLAGS="$CWARNFLAGS $STRICT_CFLAGS" 4591 4592 4593 4594 4595cat >>confdefs.h <<_ACEOF 4596#define PACKAGE_VERSION_MAJOR `echo $PACKAGE_VERSION | cut -d . -f 1` 4597_ACEOF 4598 4599 PVM=`echo $PACKAGE_VERSION | cut -d . -f 2 | cut -d - -f 1` 4600 if test "x$PVM" = "x"; then 4601 PVM="0" 4602 fi 4603 4604cat >>confdefs.h <<_ACEOF 4605#define PACKAGE_VERSION_MINOR $PVM 4606_ACEOF 4607 4608 PVP=`echo $PACKAGE_VERSION | cut -d . -f 3 | cut -d - -f 1` 4609 if test "x$PVP" = "x"; then 4610 PVP="0" 4611 fi 4612 4613cat >>confdefs.h <<_ACEOF 4614#define PACKAGE_VERSION_PATCHLEVEL $PVP 4615_ACEOF 4616 4617 4618 4619CHANGELOG_CMD="(GIT_DIR=\$(top_srcdir)/.git git log > \$(top_srcdir)/.changelog.tmp && \ 4620mv \$(top_srcdir)/.changelog.tmp \$(top_srcdir)/ChangeLog) \ 4621|| (rm -f \$(top_srcdir)/.changelog.tmp; touch \$(top_srcdir)/ChangeLog; \ 4622echo 'git directory not found: installing possibly empty changelog.' >&2)" 4623 4624 4625 4626 4627macros_datadir=`$PKG_CONFIG --print-errors --variable=pkgdatadir xorg-macros` 4628INSTALL_CMD="(cp -f "$macros_datadir/INSTALL" \$(top_srcdir)/.INSTALL.tmp && \ 4629mv \$(top_srcdir)/.INSTALL.tmp \$(top_srcdir)/INSTALL) \ 4630|| (rm -f \$(top_srcdir)/.INSTALL.tmp; touch \$(top_srcdir)/INSTALL; \ 4631echo 'util-macros \"pkgdatadir\" from xorg-macros.pc not found: installing possibly empty INSTALL.' >&2)" 4632 4633 4634 4635 4636 4637 4638if test x$APP_MAN_SUFFIX = x ; then 4639 APP_MAN_SUFFIX=1 4640fi 4641if test x$APP_MAN_DIR = x ; then 4642 APP_MAN_DIR='$(mandir)/man$(APP_MAN_SUFFIX)' 4643fi 4644 4645if test x$LIB_MAN_SUFFIX = x ; then 4646 LIB_MAN_SUFFIX=3 4647fi 4648if test x$LIB_MAN_DIR = x ; then 4649 LIB_MAN_DIR='$(mandir)/man$(LIB_MAN_SUFFIX)' 4650fi 4651 4652if test x$FILE_MAN_SUFFIX = x ; then 4653 case $host_os in 4654 solaris*) FILE_MAN_SUFFIX=4 ;; 4655 *) FILE_MAN_SUFFIX=5 ;; 4656 esac 4657fi 4658if test x$FILE_MAN_DIR = x ; then 4659 FILE_MAN_DIR='$(mandir)/man$(FILE_MAN_SUFFIX)' 4660fi 4661 4662if test x$MISC_MAN_SUFFIX = x ; then 4663 case $host_os in 4664 solaris*) MISC_MAN_SUFFIX=5 ;; 4665 *) MISC_MAN_SUFFIX=7 ;; 4666 esac 4667fi 4668if test x$MISC_MAN_DIR = x ; then 4669 MISC_MAN_DIR='$(mandir)/man$(MISC_MAN_SUFFIX)' 4670fi 4671 4672if test x$DRIVER_MAN_SUFFIX = x ; then 4673 case $host_os in 4674 solaris*) DRIVER_MAN_SUFFIX=7 ;; 4675 *) DRIVER_MAN_SUFFIX=4 ;; 4676 esac 4677fi 4678if test x$DRIVER_MAN_DIR = x ; then 4679 DRIVER_MAN_DIR='$(mandir)/man$(DRIVER_MAN_SUFFIX)' 4680fi 4681 4682if test x$ADMIN_MAN_SUFFIX = x ; then 4683 case $host_os in 4684 solaris*) ADMIN_MAN_SUFFIX=1m ;; 4685 *) ADMIN_MAN_SUFFIX=8 ;; 4686 esac 4687fi 4688if test x$ADMIN_MAN_DIR = x ; then 4689 ADMIN_MAN_DIR='$(mandir)/man$(ADMIN_MAN_SUFFIX)' 4690fi 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706XORG_MAN_PAGE="X Version 11" 4707 4708MAN_SUBSTS="\ 4709 -e 's|__vendorversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4710 -e 's|__xorgversion__|\"\$(PACKAGE_STRING)\" \"\$(XORG_MAN_PAGE)\"|' \ 4711 -e 's|__xservername__|Xorg|g' \ 4712 -e 's|__xconfigfile__|xorg.conf|g' \ 4713 -e 's|__projectroot__|\$(prefix)|g' \ 4714 -e 's|__apploaddir__|\$(appdefaultdir)|g' \ 4715 -e 's|__appmansuffix__|\$(APP_MAN_SUFFIX)|g' \ 4716 -e 's|__drivermansuffix__|\$(DRIVER_MAN_SUFFIX)|g' \ 4717 -e 's|__adminmansuffix__|\$(ADMIN_MAN_SUFFIX)|g' \ 4718 -e 's|__libmansuffix__|\$(LIB_MAN_SUFFIX)|g' \ 4719 -e 's|__miscmansuffix__|\$(MISC_MAN_SUFFIX)|g' \ 4720 -e 's|__filemansuffix__|\$(FILE_MAN_SUFFIX)|g'" 4721 4722 4723 4724# Check whether --enable-silent-rules was given. 4725if test "${enable_silent_rules+set}" = set; then : 4726 enableval=$enable_silent_rules; 4727fi 4728 4729case $enable_silent_rules in 4730yes) AM_DEFAULT_VERBOSITY=0;; 4731no) AM_DEFAULT_VERBOSITY=1;; 4732*) AM_DEFAULT_VERBOSITY=0;; 4733esac 4734AM_BACKSLASH='\' 4735 4736 4737ac_config_headers="$ac_config_headers src/config.h" 4738 4739 4740# Check for progs 4741ac_ext=c 4742ac_cpp='$CPP $CPPFLAGS' 4743ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4744ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4745ac_compiler_gnu=$ac_cv_c_compiler_gnu 4746if test -n "$ac_tool_prefix"; then 4747 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4748set dummy ${ac_tool_prefix}gcc; ac_word=$2 4749{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4750$as_echo_n "checking for $ac_word... " >&6; } 4751if ${ac_cv_prog_CC+:} false; then : 4752 $as_echo_n "(cached) " >&6 4753else 4754 if test -n "$CC"; then 4755 ac_cv_prog_CC="$CC" # Let the user override the test. 4756else 4757as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4758for as_dir in $PATH 4759do 4760 IFS=$as_save_IFS 4761 test -z "$as_dir" && as_dir=. 4762 for ac_exec_ext in '' $ac_executable_extensions; do 4763 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4764 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4765 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4766 break 2 4767 fi 4768done 4769 done 4770IFS=$as_save_IFS 4771 4772fi 4773fi 4774CC=$ac_cv_prog_CC 4775if test -n "$CC"; then 4776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4777$as_echo "$CC" >&6; } 4778else 4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4780$as_echo "no" >&6; } 4781fi 4782 4783 4784fi 4785if test -z "$ac_cv_prog_CC"; then 4786 ac_ct_CC=$CC 4787 # Extract the first word of "gcc", so it can be a program name with args. 4788set dummy gcc; ac_word=$2 4789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4790$as_echo_n "checking for $ac_word... " >&6; } 4791if ${ac_cv_prog_ac_ct_CC+:} false; then : 4792 $as_echo_n "(cached) " >&6 4793else 4794 if test -n "$ac_ct_CC"; then 4795 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4796else 4797as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4798for as_dir in $PATH 4799do 4800 IFS=$as_save_IFS 4801 test -z "$as_dir" && as_dir=. 4802 for ac_exec_ext in '' $ac_executable_extensions; do 4803 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4804 ac_cv_prog_ac_ct_CC="gcc" 4805 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4806 break 2 4807 fi 4808done 4809 done 4810IFS=$as_save_IFS 4811 4812fi 4813fi 4814ac_ct_CC=$ac_cv_prog_ac_ct_CC 4815if test -n "$ac_ct_CC"; then 4816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4817$as_echo "$ac_ct_CC" >&6; } 4818else 4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4820$as_echo "no" >&6; } 4821fi 4822 4823 if test "x$ac_ct_CC" = x; then 4824 CC="" 4825 else 4826 case $cross_compiling:$ac_tool_warned in 4827yes:) 4828{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4829$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4830ac_tool_warned=yes ;; 4831esac 4832 CC=$ac_ct_CC 4833 fi 4834else 4835 CC="$ac_cv_prog_CC" 4836fi 4837 4838if test -z "$CC"; then 4839 if test -n "$ac_tool_prefix"; then 4840 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4841set dummy ${ac_tool_prefix}cc; ac_word=$2 4842{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4843$as_echo_n "checking for $ac_word... " >&6; } 4844if ${ac_cv_prog_CC+:} false; then : 4845 $as_echo_n "(cached) " >&6 4846else 4847 if test -n "$CC"; then 4848 ac_cv_prog_CC="$CC" # Let the user override the test. 4849else 4850as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4851for as_dir in $PATH 4852do 4853 IFS=$as_save_IFS 4854 test -z "$as_dir" && as_dir=. 4855 for ac_exec_ext in '' $ac_executable_extensions; do 4856 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4857 ac_cv_prog_CC="${ac_tool_prefix}cc" 4858 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4859 break 2 4860 fi 4861done 4862 done 4863IFS=$as_save_IFS 4864 4865fi 4866fi 4867CC=$ac_cv_prog_CC 4868if test -n "$CC"; then 4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4870$as_echo "$CC" >&6; } 4871else 4872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4873$as_echo "no" >&6; } 4874fi 4875 4876 4877 fi 4878fi 4879if test -z "$CC"; then 4880 # Extract the first word of "cc", so it can be a program name with args. 4881set dummy cc; ac_word=$2 4882{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4883$as_echo_n "checking for $ac_word... " >&6; } 4884if ${ac_cv_prog_CC+:} false; then : 4885 $as_echo_n "(cached) " >&6 4886else 4887 if test -n "$CC"; then 4888 ac_cv_prog_CC="$CC" # Let the user override the test. 4889else 4890 ac_prog_rejected=no 4891as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4892for as_dir in $PATH 4893do 4894 IFS=$as_save_IFS 4895 test -z "$as_dir" && as_dir=. 4896 for ac_exec_ext in '' $ac_executable_extensions; do 4897 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4898 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4899 ac_prog_rejected=yes 4900 continue 4901 fi 4902 ac_cv_prog_CC="cc" 4903 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4904 break 2 4905 fi 4906done 4907 done 4908IFS=$as_save_IFS 4909 4910if test $ac_prog_rejected = yes; then 4911 # We found a bogon in the path, so make sure we never use it. 4912 set dummy $ac_cv_prog_CC 4913 shift 4914 if test $# != 0; then 4915 # We chose a different compiler from the bogus one. 4916 # However, it has the same basename, so the bogon will be chosen 4917 # first if we set CC to just the basename; use the full file name. 4918 shift 4919 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4920 fi 4921fi 4922fi 4923fi 4924CC=$ac_cv_prog_CC 4925if test -n "$CC"; then 4926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4927$as_echo "$CC" >&6; } 4928else 4929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4930$as_echo "no" >&6; } 4931fi 4932 4933 4934fi 4935if test -z "$CC"; then 4936 if test -n "$ac_tool_prefix"; then 4937 for ac_prog in cl.exe 4938 do 4939 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4940set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4942$as_echo_n "checking for $ac_word... " >&6; } 4943if ${ac_cv_prog_CC+:} false; then : 4944 $as_echo_n "(cached) " >&6 4945else 4946 if test -n "$CC"; then 4947 ac_cv_prog_CC="$CC" # Let the user override the test. 4948else 4949as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4950for as_dir in $PATH 4951do 4952 IFS=$as_save_IFS 4953 test -z "$as_dir" && as_dir=. 4954 for ac_exec_ext in '' $ac_executable_extensions; do 4955 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4956 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4958 break 2 4959 fi 4960done 4961 done 4962IFS=$as_save_IFS 4963 4964fi 4965fi 4966CC=$ac_cv_prog_CC 4967if test -n "$CC"; then 4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4969$as_echo "$CC" >&6; } 4970else 4971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4972$as_echo "no" >&6; } 4973fi 4974 4975 4976 test -n "$CC" && break 4977 done 4978fi 4979if test -z "$CC"; then 4980 ac_ct_CC=$CC 4981 for ac_prog in cl.exe 4982do 4983 # Extract the first word of "$ac_prog", so it can be a program name with args. 4984set dummy $ac_prog; ac_word=$2 4985{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4986$as_echo_n "checking for $ac_word... " >&6; } 4987if ${ac_cv_prog_ac_ct_CC+:} false; then : 4988 $as_echo_n "(cached) " >&6 4989else 4990 if test -n "$ac_ct_CC"; then 4991 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4992else 4993as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4994for as_dir in $PATH 4995do 4996 IFS=$as_save_IFS 4997 test -z "$as_dir" && as_dir=. 4998 for ac_exec_ext in '' $ac_executable_extensions; do 4999 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5000 ac_cv_prog_ac_ct_CC="$ac_prog" 5001 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5002 break 2 5003 fi 5004done 5005 done 5006IFS=$as_save_IFS 5007 5008fi 5009fi 5010ac_ct_CC=$ac_cv_prog_ac_ct_CC 5011if test -n "$ac_ct_CC"; then 5012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 5013$as_echo "$ac_ct_CC" >&6; } 5014else 5015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5016$as_echo "no" >&6; } 5017fi 5018 5019 5020 test -n "$ac_ct_CC" && break 5021done 5022 5023 if test "x$ac_ct_CC" = x; then 5024 CC="" 5025 else 5026 case $cross_compiling:$ac_tool_warned in 5027yes:) 5028{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5029$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5030ac_tool_warned=yes ;; 5031esac 5032 CC=$ac_ct_CC 5033 fi 5034fi 5035 5036fi 5037 5038 5039test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 5040$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 5041as_fn_error $? "no acceptable C compiler found in \$PATH 5042See \`config.log' for more details" "$LINENO" 5; } 5043 5044# Provide some information about the compiler. 5045$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 5046set X $ac_compile 5047ac_compiler=$2 5048for ac_option in --version -v -V -qversion; do 5049 { { ac_try="$ac_compiler $ac_option >&5" 5050case "(($ac_try" in 5051 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5052 *) ac_try_echo=$ac_try;; 5053esac 5054eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5055$as_echo "$ac_try_echo"; } >&5 5056 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 5057 ac_status=$? 5058 if test -s conftest.err; then 5059 sed '10a\ 5060... rest of stderr output deleted ... 5061 10q' conftest.err >conftest.er1 5062 cat conftest.er1 >&5 5063 fi 5064 rm -f conftest.er1 conftest.err 5065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5066 test $ac_status = 0; } 5067done 5068 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 5070$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 5071if ${ac_cv_c_compiler_gnu+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5075/* end confdefs.h. */ 5076 5077int 5078main () 5079{ 5080#ifndef __GNUC__ 5081 choke me 5082#endif 5083 5084 ; 5085 return 0; 5086} 5087_ACEOF 5088if ac_fn_c_try_compile "$LINENO"; then : 5089 ac_compiler_gnu=yes 5090else 5091 ac_compiler_gnu=no 5092fi 5093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5094ac_cv_c_compiler_gnu=$ac_compiler_gnu 5095 5096fi 5097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 5098$as_echo "$ac_cv_c_compiler_gnu" >&6; } 5099if test $ac_compiler_gnu = yes; then 5100 GCC=yes 5101else 5102 GCC= 5103fi 5104ac_test_CFLAGS=${CFLAGS+set} 5105ac_save_CFLAGS=$CFLAGS 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 5107$as_echo_n "checking whether $CC accepts -g... " >&6; } 5108if ${ac_cv_prog_cc_g+:} false; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 ac_save_c_werror_flag=$ac_c_werror_flag 5112 ac_c_werror_flag=yes 5113 ac_cv_prog_cc_g=no 5114 CFLAGS="-g" 5115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5116/* end confdefs.h. */ 5117 5118int 5119main () 5120{ 5121 5122 ; 5123 return 0; 5124} 5125_ACEOF 5126if ac_fn_c_try_compile "$LINENO"; then : 5127 ac_cv_prog_cc_g=yes 5128else 5129 CFLAGS="" 5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5131/* end confdefs.h. */ 5132 5133int 5134main () 5135{ 5136 5137 ; 5138 return 0; 5139} 5140_ACEOF 5141if ac_fn_c_try_compile "$LINENO"; then : 5142 5143else 5144 ac_c_werror_flag=$ac_save_c_werror_flag 5145 CFLAGS="-g" 5146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5147/* end confdefs.h. */ 5148 5149int 5150main () 5151{ 5152 5153 ; 5154 return 0; 5155} 5156_ACEOF 5157if ac_fn_c_try_compile "$LINENO"; then : 5158 ac_cv_prog_cc_g=yes 5159fi 5160rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5161fi 5162rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5163fi 5164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5165 ac_c_werror_flag=$ac_save_c_werror_flag 5166fi 5167{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 5168$as_echo "$ac_cv_prog_cc_g" >&6; } 5169if test "$ac_test_CFLAGS" = set; then 5170 CFLAGS=$ac_save_CFLAGS 5171elif test $ac_cv_prog_cc_g = yes; then 5172 if test "$GCC" = yes; then 5173 CFLAGS="-g -O2" 5174 else 5175 CFLAGS="-g" 5176 fi 5177else 5178 if test "$GCC" = yes; then 5179 CFLAGS="-O2" 5180 else 5181 CFLAGS= 5182 fi 5183fi 5184{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 5185$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 5186if ${ac_cv_prog_cc_c89+:} false; then : 5187 $as_echo_n "(cached) " >&6 5188else 5189 ac_cv_prog_cc_c89=no 5190ac_save_CC=$CC 5191cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5192/* end confdefs.h. */ 5193#include <stdarg.h> 5194#include <stdio.h> 5195#include <sys/types.h> 5196#include <sys/stat.h> 5197/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 5198struct buf { int x; }; 5199FILE * (*rcsopen) (struct buf *, struct stat *, int); 5200static char *e (p, i) 5201 char **p; 5202 int i; 5203{ 5204 return p[i]; 5205} 5206static char *f (char * (*g) (char **, int), char **p, ...) 5207{ 5208 char *s; 5209 va_list v; 5210 va_start (v,p); 5211 s = g (p, va_arg (v,int)); 5212 va_end (v); 5213 return s; 5214} 5215 5216/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 5217 function prototypes and stuff, but not '\xHH' hex character constants. 5218 These don't provoke an error unfortunately, instead are silently treated 5219 as 'x'. The following induces an error, until -std is added to get 5220 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 5221 array size at least. It's necessary to write '\x00'==0 to get something 5222 that's true only with -std. */ 5223int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 5224 5225/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 5226 inside strings and character constants. */ 5227#define FOO(x) 'x' 5228int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 5229 5230int test (int i, double x); 5231struct s1 {int (*f) (int a);}; 5232struct s2 {int (*f) (double a);}; 5233int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 5234int argc; 5235char **argv; 5236int 5237main () 5238{ 5239return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 5240 ; 5241 return 0; 5242} 5243_ACEOF 5244for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 5245 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 5246do 5247 CC="$ac_save_CC $ac_arg" 5248 if ac_fn_c_try_compile "$LINENO"; then : 5249 ac_cv_prog_cc_c89=$ac_arg 5250fi 5251rm -f core conftest.err conftest.$ac_objext 5252 test "x$ac_cv_prog_cc_c89" != "xno" && break 5253done 5254rm -f conftest.$ac_ext 5255CC=$ac_save_CC 5256 5257fi 5258# AC_CACHE_VAL 5259case "x$ac_cv_prog_cc_c89" in 5260 x) 5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 5262$as_echo "none needed" >&6; } ;; 5263 xno) 5264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 5265$as_echo "unsupported" >&6; } ;; 5266 *) 5267 CC="$CC $ac_cv_prog_cc_c89" 5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 5269$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 5270esac 5271if test "x$ac_cv_prog_cc_c89" != xno; then : 5272 5273fi 5274 5275ac_ext=c 5276ac_cpp='$CPP $CPPFLAGS' 5277ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5278ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5279ac_compiler_gnu=$ac_cv_c_compiler_gnu 5280 5281depcc="$CC" am_compiler_list= 5282 5283{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 5284$as_echo_n "checking dependency style of $depcc... " >&6; } 5285if ${am_cv_CC_dependencies_compiler_type+:} false; then : 5286 $as_echo_n "(cached) " >&6 5287else 5288 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 5289 # We make a subdir and do the tests there. Otherwise we can end up 5290 # making bogus files that we don't know about and never remove. For 5291 # instance it was reported that on HP-UX the gcc test will end up 5292 # making a dummy file named `D' -- because `-MD' means `put the output 5293 # in D'. 5294 mkdir conftest.dir 5295 # Copy depcomp to subdir because otherwise we won't find it if we're 5296 # using a relative directory. 5297 cp "$am_depcomp" conftest.dir 5298 cd conftest.dir 5299 # We will build objects and dependencies in a subdirectory because 5300 # it helps to detect inapplicable dependency modes. For instance 5301 # both Tru64's cc and ICC support -MD to output dependencies as a 5302 # side effect of compilation, but ICC will put the dependencies in 5303 # the current directory while Tru64 will put them in the object 5304 # directory. 5305 mkdir sub 5306 5307 am_cv_CC_dependencies_compiler_type=none 5308 if test "$am_compiler_list" = ""; then 5309 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5310 fi 5311 am__universal=false 5312 case " $depcc " in #( 5313 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5314 esac 5315 5316 for depmode in $am_compiler_list; do 5317 # Setup a source with many dependencies, because some compilers 5318 # like to wrap large dependency lists on column 80 (with \), and 5319 # we should not choose a depcomp mode which is confused by this. 5320 # 5321 # We need to recreate these files for each test, as the compiler may 5322 # overwrite some of them when testing with obscure command lines. 5323 # This happens at least with the AIX C compiler. 5324 : > sub/conftest.c 5325 for i in 1 2 3 4 5 6; do 5326 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5327 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5328 # Solaris 8's {/usr,}/bin/sh. 5329 touch sub/conftst$i.h 5330 done 5331 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5332 5333 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5334 # mode. It turns out that the SunPro C++ compiler does not properly 5335 # handle `-M -o', and we need to detect this. Also, some Intel 5336 # versions had trouble with output in subdirs 5337 am__obj=sub/conftest.${OBJEXT-o} 5338 am__minus_obj="-o $am__obj" 5339 case $depmode in 5340 gcc) 5341 # This depmode causes a compiler race in universal mode. 5342 test "$am__universal" = false || continue 5343 ;; 5344 nosideeffect) 5345 # after this tag, mechanisms are not by side-effect, so they'll 5346 # only be used when explicitly requested 5347 if test "x$enable_dependency_tracking" = xyes; then 5348 continue 5349 else 5350 break 5351 fi 5352 ;; 5353 msvisualcpp | msvcmsys) 5354 # This compiler won't grok `-c -o', but also, the minuso test has 5355 # not run yet. These depmodes are late enough in the game, and 5356 # so weak that their functioning should not be impacted. 5357 am__obj=conftest.${OBJEXT-o} 5358 am__minus_obj= 5359 ;; 5360 none) break ;; 5361 esac 5362 if depmode=$depmode \ 5363 source=sub/conftest.c object=$am__obj \ 5364 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5365 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5366 >/dev/null 2>conftest.err && 5367 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5368 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5369 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5370 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5371 # icc doesn't choke on unknown options, it will just issue warnings 5372 # or remarks (even with -Werror). So we grep stderr for any message 5373 # that says an option was ignored or not supported. 5374 # When given -MP, icc 7.0 and 7.1 complain thusly: 5375 # icc: Command line warning: ignoring option '-M'; no argument required 5376 # The diagnosis changed in icc 8.0: 5377 # icc: Command line remark: option '-MP' not supported 5378 if (grep 'ignoring option' conftest.err || 5379 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5380 am_cv_CC_dependencies_compiler_type=$depmode 5381 break 5382 fi 5383 fi 5384 done 5385 5386 cd .. 5387 rm -rf conftest.dir 5388else 5389 am_cv_CC_dependencies_compiler_type=none 5390fi 5391 5392fi 5393{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5394$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5395CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5396 5397 if 5398 test "x$enable_dependency_tracking" != xno \ 5399 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5400 am__fastdepCC_TRUE= 5401 am__fastdepCC_FALSE='#' 5402else 5403 am__fastdepCC_TRUE='#' 5404 am__fastdepCC_FALSE= 5405fi 5406 5407 5408case `pwd` in 5409 *\ * | *\ *) 5410 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5411$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5412esac 5413 5414 5415 5416macro_version='2.2.10' 5417macro_revision='1.3175' 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431ltmain="$ac_aux_dir/ltmain.sh" 5432 5433# Backslashify metacharacters that are still active within 5434# double-quoted strings. 5435sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5436 5437# Same as above, but do not quote variable references. 5438double_quote_subst='s/\(["`\\]\)/\\\1/g' 5439 5440# Sed substitution to delay expansion of an escaped shell variable in a 5441# double_quote_subst'ed string. 5442delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5443 5444# Sed substitution to delay expansion of an escaped single quote. 5445delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5446 5447# Sed substitution to avoid accidental globbing in evaled expressions 5448no_glob_subst='s/\*/\\\*/g' 5449 5450ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5451ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5452ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5453 5454{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5455$as_echo_n "checking how to print strings... " >&6; } 5456# Test print first, because it will be a builtin if present. 5457if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5458 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5459 ECHO='print -r --' 5460elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5461 ECHO='printf %s\n' 5462else 5463 # Use this function as a fallback that always works. 5464 func_fallback_echo () 5465 { 5466 eval 'cat <<_LTECHO_EOF 5467$1 5468_LTECHO_EOF' 5469 } 5470 ECHO='func_fallback_echo' 5471fi 5472 5473# func_echo_all arg... 5474# Invoke $ECHO with all args, space-separated. 5475func_echo_all () 5476{ 5477 $ECHO "" 5478} 5479 5480case "$ECHO" in 5481 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5482$as_echo "printf" >&6; } ;; 5483 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5484$as_echo "print -r" >&6; } ;; 5485 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5486$as_echo "cat" >&6; } ;; 5487esac 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5503$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5504if ${ac_cv_path_SED+:} false; then : 5505 $as_echo_n "(cached) " >&6 5506else 5507 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5508 for ac_i in 1 2 3 4 5 6 7; do 5509 ac_script="$ac_script$as_nl$ac_script" 5510 done 5511 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5512 { ac_script=; unset ac_script;} 5513 if test -z "$SED"; then 5514 ac_path_SED_found=false 5515 # Loop through the user's path and test for each of PROGNAME-LIST 5516 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5517for as_dir in $PATH 5518do 5519 IFS=$as_save_IFS 5520 test -z "$as_dir" && as_dir=. 5521 for ac_prog in sed gsed; do 5522 for ac_exec_ext in '' $ac_executable_extensions; do 5523 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5524 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5525# Check for GNU ac_path_SED and select it if it is found. 5526 # Check for GNU $ac_path_SED 5527case `"$ac_path_SED" --version 2>&1` in 5528*GNU*) 5529 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5530*) 5531 ac_count=0 5532 $as_echo_n 0123456789 >"conftest.in" 5533 while : 5534 do 5535 cat "conftest.in" "conftest.in" >"conftest.tmp" 5536 mv "conftest.tmp" "conftest.in" 5537 cp "conftest.in" "conftest.nl" 5538 $as_echo '' >> "conftest.nl" 5539 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5540 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5541 as_fn_arith $ac_count + 1 && ac_count=$as_val 5542 if test $ac_count -gt ${ac_path_SED_max-0}; then 5543 # Best one so far, save it but keep looking for a better one 5544 ac_cv_path_SED="$ac_path_SED" 5545 ac_path_SED_max=$ac_count 5546 fi 5547 # 10*(2^10) chars as input seems more than enough 5548 test $ac_count -gt 10 && break 5549 done 5550 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5551esac 5552 5553 $ac_path_SED_found && break 3 5554 done 5555 done 5556 done 5557IFS=$as_save_IFS 5558 if test -z "$ac_cv_path_SED"; then 5559 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5560 fi 5561else 5562 ac_cv_path_SED=$SED 5563fi 5564 5565fi 5566{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5567$as_echo "$ac_cv_path_SED" >&6; } 5568 SED="$ac_cv_path_SED" 5569 rm -f conftest.sed 5570 5571test -z "$SED" && SED=sed 5572Xsed="$SED -e 1s/^X//" 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5585$as_echo_n "checking for fgrep... " >&6; } 5586if ${ac_cv_path_FGREP+:} false; then : 5587 $as_echo_n "(cached) " >&6 5588else 5589 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5590 then ac_cv_path_FGREP="$GREP -F" 5591 else 5592 if test -z "$FGREP"; then 5593 ac_path_FGREP_found=false 5594 # Loop through the user's path and test for each of PROGNAME-LIST 5595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5596for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5597do 5598 IFS=$as_save_IFS 5599 test -z "$as_dir" && as_dir=. 5600 for ac_prog in fgrep; do 5601 for ac_exec_ext in '' $ac_executable_extensions; do 5602 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5603 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5604# Check for GNU ac_path_FGREP and select it if it is found. 5605 # Check for GNU $ac_path_FGREP 5606case `"$ac_path_FGREP" --version 2>&1` in 5607*GNU*) 5608 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5609*) 5610 ac_count=0 5611 $as_echo_n 0123456789 >"conftest.in" 5612 while : 5613 do 5614 cat "conftest.in" "conftest.in" >"conftest.tmp" 5615 mv "conftest.tmp" "conftest.in" 5616 cp "conftest.in" "conftest.nl" 5617 $as_echo 'FGREP' >> "conftest.nl" 5618 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5619 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5620 as_fn_arith $ac_count + 1 && ac_count=$as_val 5621 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5622 # Best one so far, save it but keep looking for a better one 5623 ac_cv_path_FGREP="$ac_path_FGREP" 5624 ac_path_FGREP_max=$ac_count 5625 fi 5626 # 10*(2^10) chars as input seems more than enough 5627 test $ac_count -gt 10 && break 5628 done 5629 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5630esac 5631 5632 $ac_path_FGREP_found && break 3 5633 done 5634 done 5635 done 5636IFS=$as_save_IFS 5637 if test -z "$ac_cv_path_FGREP"; then 5638 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5639 fi 5640else 5641 ac_cv_path_FGREP=$FGREP 5642fi 5643 5644 fi 5645fi 5646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5647$as_echo "$ac_cv_path_FGREP" >&6; } 5648 FGREP="$ac_cv_path_FGREP" 5649 5650 5651test -z "$GREP" && GREP=grep 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671# Check whether --with-gnu-ld was given. 5672if test "${with_gnu_ld+set}" = set; then : 5673 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5674else 5675 with_gnu_ld=no 5676fi 5677 5678ac_prog=ld 5679if test "$GCC" = yes; then 5680 # Check if gcc -print-prog-name=ld gives a path. 5681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5682$as_echo_n "checking for ld used by $CC... " >&6; } 5683 case $host in 5684 *-*-mingw*) 5685 # gcc leaves a trailing carriage return which upsets mingw 5686 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5687 *) 5688 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5689 esac 5690 case $ac_prog in 5691 # Accept absolute paths. 5692 [\\/]* | ?:[\\/]*) 5693 re_direlt='/[^/][^/]*/\.\./' 5694 # Canonicalize the pathname of ld 5695 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5696 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5697 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5698 done 5699 test -z "$LD" && LD="$ac_prog" 5700 ;; 5701 "") 5702 # If it fails, then pretend we aren't using GCC. 5703 ac_prog=ld 5704 ;; 5705 *) 5706 # If it is relative, then search for the first ld in PATH. 5707 with_gnu_ld=unknown 5708 ;; 5709 esac 5710elif test "$with_gnu_ld" = yes; then 5711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5712$as_echo_n "checking for GNU ld... " >&6; } 5713else 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5715$as_echo_n "checking for non-GNU ld... " >&6; } 5716fi 5717if ${lt_cv_path_LD+:} false; then : 5718 $as_echo_n "(cached) " >&6 5719else 5720 if test -z "$LD"; then 5721 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5722 for ac_dir in $PATH; do 5723 IFS="$lt_save_ifs" 5724 test -z "$ac_dir" && ac_dir=. 5725 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5726 lt_cv_path_LD="$ac_dir/$ac_prog" 5727 # Check to see if the program is GNU ld. I'd rather use --version, 5728 # but apparently some variants of GNU ld only accept -v. 5729 # Break only if it was the GNU/non-GNU ld that we prefer. 5730 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5731 *GNU* | *'with BFD'*) 5732 test "$with_gnu_ld" != no && break 5733 ;; 5734 *) 5735 test "$with_gnu_ld" != yes && break 5736 ;; 5737 esac 5738 fi 5739 done 5740 IFS="$lt_save_ifs" 5741else 5742 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5743fi 5744fi 5745 5746LD="$lt_cv_path_LD" 5747if test -n "$LD"; then 5748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5749$as_echo "$LD" >&6; } 5750else 5751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5752$as_echo "no" >&6; } 5753fi 5754test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5755{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5756$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5757if ${lt_cv_prog_gnu_ld+:} false; then : 5758 $as_echo_n "(cached) " >&6 5759else 5760 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5761case `$LD -v 2>&1 </dev/null` in 5762*GNU* | *'with BFD'*) 5763 lt_cv_prog_gnu_ld=yes 5764 ;; 5765*) 5766 lt_cv_prog_gnu_ld=no 5767 ;; 5768esac 5769fi 5770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5771$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5772with_gnu_ld=$lt_cv_prog_gnu_ld 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5783$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5784if ${lt_cv_path_NM+:} false; then : 5785 $as_echo_n "(cached) " >&6 5786else 5787 if test -n "$NM"; then 5788 # Let the user override the test. 5789 lt_cv_path_NM="$NM" 5790else 5791 lt_nm_to_check="${ac_tool_prefix}nm" 5792 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5793 lt_nm_to_check="$lt_nm_to_check nm" 5794 fi 5795 for lt_tmp_nm in $lt_nm_to_check; do 5796 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5797 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5798 IFS="$lt_save_ifs" 5799 test -z "$ac_dir" && ac_dir=. 5800 tmp_nm="$ac_dir/$lt_tmp_nm" 5801 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5802 # Check to see if the nm accepts a BSD-compat flag. 5803 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5804 # nm: unknown option "B" ignored 5805 # Tru64's nm complains that /dev/null is an invalid object file 5806 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5807 */dev/null* | *'Invalid file or object type'*) 5808 lt_cv_path_NM="$tmp_nm -B" 5809 break 5810 ;; 5811 *) 5812 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5813 */dev/null*) 5814 lt_cv_path_NM="$tmp_nm -p" 5815 break 5816 ;; 5817 *) 5818 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5819 continue # so that we can try to find one that supports BSD flags 5820 ;; 5821 esac 5822 ;; 5823 esac 5824 fi 5825 done 5826 IFS="$lt_save_ifs" 5827 done 5828 : ${lt_cv_path_NM=no} 5829fi 5830fi 5831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5832$as_echo "$lt_cv_path_NM" >&6; } 5833if test "$lt_cv_path_NM" != "no"; then 5834 NM="$lt_cv_path_NM" 5835else 5836 # Didn't find any BSD compatible name lister, look for dumpbin. 5837 if test -n "$DUMPBIN"; then : 5838 # Let the user override the test. 5839 else 5840 if test -n "$ac_tool_prefix"; then 5841 for ac_prog in dumpbin "link -dump" 5842 do 5843 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5844set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5846$as_echo_n "checking for $ac_word... " >&6; } 5847if ${ac_cv_prog_DUMPBIN+:} false; then : 5848 $as_echo_n "(cached) " >&6 5849else 5850 if test -n "$DUMPBIN"; then 5851 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5852else 5853as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5854for as_dir in $PATH 5855do 5856 IFS=$as_save_IFS 5857 test -z "$as_dir" && as_dir=. 5858 for ac_exec_ext in '' $ac_executable_extensions; do 5859 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5860 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5861 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5862 break 2 5863 fi 5864done 5865 done 5866IFS=$as_save_IFS 5867 5868fi 5869fi 5870DUMPBIN=$ac_cv_prog_DUMPBIN 5871if test -n "$DUMPBIN"; then 5872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5873$as_echo "$DUMPBIN" >&6; } 5874else 5875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5876$as_echo "no" >&6; } 5877fi 5878 5879 5880 test -n "$DUMPBIN" && break 5881 done 5882fi 5883if test -z "$DUMPBIN"; then 5884 ac_ct_DUMPBIN=$DUMPBIN 5885 for ac_prog in dumpbin "link -dump" 5886do 5887 # Extract the first word of "$ac_prog", so it can be a program name with args. 5888set dummy $ac_prog; ac_word=$2 5889{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5890$as_echo_n "checking for $ac_word... " >&6; } 5891if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 5892 $as_echo_n "(cached) " >&6 5893else 5894 if test -n "$ac_ct_DUMPBIN"; then 5895 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5896else 5897as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5898for as_dir in $PATH 5899do 5900 IFS=$as_save_IFS 5901 test -z "$as_dir" && as_dir=. 5902 for ac_exec_ext in '' $ac_executable_extensions; do 5903 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5904 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5905 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5906 break 2 5907 fi 5908done 5909 done 5910IFS=$as_save_IFS 5911 5912fi 5913fi 5914ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5915if test -n "$ac_ct_DUMPBIN"; then 5916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5917$as_echo "$ac_ct_DUMPBIN" >&6; } 5918else 5919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5920$as_echo "no" >&6; } 5921fi 5922 5923 5924 test -n "$ac_ct_DUMPBIN" && break 5925done 5926 5927 if test "x$ac_ct_DUMPBIN" = x; then 5928 DUMPBIN=":" 5929 else 5930 case $cross_compiling:$ac_tool_warned in 5931yes:) 5932{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5933$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5934ac_tool_warned=yes ;; 5935esac 5936 DUMPBIN=$ac_ct_DUMPBIN 5937 fi 5938fi 5939 5940 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5941 *COFF*) 5942 DUMPBIN="$DUMPBIN -symbols" 5943 ;; 5944 *) 5945 DUMPBIN=: 5946 ;; 5947 esac 5948 fi 5949 5950 if test "$DUMPBIN" != ":"; then 5951 NM="$DUMPBIN" 5952 fi 5953fi 5954test -z "$NM" && NM=nm 5955 5956 5957 5958 5959 5960 5961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5962$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5963if ${lt_cv_nm_interface+:} false; then : 5964 $as_echo_n "(cached) " >&6 5965else 5966 lt_cv_nm_interface="BSD nm" 5967 echo "int some_variable = 0;" > conftest.$ac_ext 5968 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5969 (eval "$ac_compile" 2>conftest.err) 5970 cat conftest.err >&5 5971 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5972 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5973 cat conftest.err >&5 5974 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5975 cat conftest.out >&5 5976 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5977 lt_cv_nm_interface="MS dumpbin" 5978 fi 5979 rm -f conftest* 5980fi 5981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5982$as_echo "$lt_cv_nm_interface" >&6; } 5983 5984{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5985$as_echo_n "checking whether ln -s works... " >&6; } 5986LN_S=$as_ln_s 5987if test "$LN_S" = "ln -s"; then 5988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5989$as_echo "yes" >&6; } 5990else 5991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5992$as_echo "no, using $LN_S" >&6; } 5993fi 5994 5995# find the maximum length of command line arguments 5996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5997$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5998if ${lt_cv_sys_max_cmd_len+:} false; then : 5999 $as_echo_n "(cached) " >&6 6000else 6001 i=0 6002 teststring="ABCD" 6003 6004 case $build_os in 6005 msdosdjgpp*) 6006 # On DJGPP, this test can blow up pretty badly due to problems in libc 6007 # (any single argument exceeding 2000 bytes causes a buffer overrun 6008 # during glob expansion). Even if it were fixed, the result of this 6009 # check would be larger than it should be. 6010 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6011 ;; 6012 6013 gnu*) 6014 # Under GNU Hurd, this test is not required because there is 6015 # no limit to the length of command line arguments. 6016 # Libtool will interpret -1 as no limit whatsoever 6017 lt_cv_sys_max_cmd_len=-1; 6018 ;; 6019 6020 cygwin* | mingw* | cegcc*) 6021 # On Win9x/ME, this test blows up -- it succeeds, but takes 6022 # about 5 minutes as the teststring grows exponentially. 6023 # Worse, since 9x/ME are not pre-emptively multitasking, 6024 # you end up with a "frozen" computer, even though with patience 6025 # the test eventually succeeds (with a max line length of 256k). 6026 # Instead, let's just punt: use the minimum linelength reported by 6027 # all of the supported platforms: 8192 (on NT/2K/XP). 6028 lt_cv_sys_max_cmd_len=8192; 6029 ;; 6030 6031 mint*) 6032 # On MiNT this can take a long time and run out of memory. 6033 lt_cv_sys_max_cmd_len=8192; 6034 ;; 6035 6036 amigaos*) 6037 # On AmigaOS with pdksh, this test takes hours, literally. 6038 # So we just punt and use a minimum line length of 8192. 6039 lt_cv_sys_max_cmd_len=8192; 6040 ;; 6041 6042 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 6043 # This has been around since 386BSD, at least. Likely further. 6044 if test -x /sbin/sysctl; then 6045 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6046 elif test -x /usr/sbin/sysctl; then 6047 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6048 else 6049 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6050 fi 6051 # And add a safety zone 6052 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6053 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6054 ;; 6055 6056 interix*) 6057 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6058 lt_cv_sys_max_cmd_len=196608 6059 ;; 6060 6061 osf*) 6062 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6063 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6064 # nice to cause kernel panics so lets avoid the loop below. 6065 # First set a reasonable default. 6066 lt_cv_sys_max_cmd_len=16384 6067 # 6068 if test -x /sbin/sysconfig; then 6069 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6070 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6071 esac 6072 fi 6073 ;; 6074 sco3.2v5*) 6075 lt_cv_sys_max_cmd_len=102400 6076 ;; 6077 sysv5* | sco5v6* | sysv4.2uw2*) 6078 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6079 if test -n "$kargmax"; then 6080 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6081 else 6082 lt_cv_sys_max_cmd_len=32768 6083 fi 6084 ;; 6085 *) 6086 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6087 if test -n "$lt_cv_sys_max_cmd_len"; then 6088 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6089 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6090 else 6091 # Make teststring a little bigger before we do anything with it. 6092 # a 1K string should be a reasonable start. 6093 for i in 1 2 3 4 5 6 7 8 ; do 6094 teststring=$teststring$teststring 6095 done 6096 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6097 # If test is not a shell built-in, we'll probably end up computing a 6098 # maximum length that is only half of the actual maximum length, but 6099 # we can't tell. 6100 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 6101 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6102 test $i != 17 # 1/2 MB should be enough 6103 do 6104 i=`expr $i + 1` 6105 teststring=$teststring$teststring 6106 done 6107 # Only check the string length outside the loop. 6108 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6109 teststring= 6110 # Add a significant safety factor because C++ compilers can tack on 6111 # massive amounts of additional arguments before passing them to the 6112 # linker. It appears as though 1/2 is a usable value. 6113 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6114 fi 6115 ;; 6116 esac 6117 6118fi 6119 6120if test -n $lt_cv_sys_max_cmd_len ; then 6121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6122$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6123else 6124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6125$as_echo "none" >&6; } 6126fi 6127max_cmd_len=$lt_cv_sys_max_cmd_len 6128 6129 6130 6131 6132 6133 6134: ${CP="cp -f"} 6135: ${MV="mv -f"} 6136: ${RM="rm -f"} 6137 6138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 6139$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 6140# Try some XSI features 6141xsi_shell=no 6142( _lt_dummy="a/b/c" 6143 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 6144 = c,a/b,, \ 6145 && eval 'test $(( 1 + 1 )) -eq 2 \ 6146 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 6147 && xsi_shell=yes 6148{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 6149$as_echo "$xsi_shell" >&6; } 6150 6151 6152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 6153$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 6154lt_shell_append=no 6155( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 6156 >/dev/null 2>&1 \ 6157 && lt_shell_append=yes 6158{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 6159$as_echo "$lt_shell_append" >&6; } 6160 6161 6162if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6163 lt_unset=unset 6164else 6165 lt_unset=false 6166fi 6167 6168 6169 6170 6171 6172# test EBCDIC or ASCII 6173case `echo X|tr X '\101'` in 6174 A) # ASCII based system 6175 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6176 lt_SP2NL='tr \040 \012' 6177 lt_NL2SP='tr \015\012 \040\040' 6178 ;; 6179 *) # EBCDIC based system 6180 lt_SP2NL='tr \100 \n' 6181 lt_NL2SP='tr \r\n \100\100' 6182 ;; 6183esac 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6194$as_echo_n "checking for $LD option to reload object files... " >&6; } 6195if ${lt_cv_ld_reload_flag+:} false; then : 6196 $as_echo_n "(cached) " >&6 6197else 6198 lt_cv_ld_reload_flag='-r' 6199fi 6200{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6201$as_echo "$lt_cv_ld_reload_flag" >&6; } 6202reload_flag=$lt_cv_ld_reload_flag 6203case $reload_flag in 6204"" | " "*) ;; 6205*) reload_flag=" $reload_flag" ;; 6206esac 6207reload_cmds='$LD$reload_flag -o $output$reload_objs' 6208case $host_os in 6209 darwin*) 6210 if test "$GCC" = yes; then 6211 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6212 else 6213 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6214 fi 6215 ;; 6216esac 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226if test -n "$ac_tool_prefix"; then 6227 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6228set dummy ${ac_tool_prefix}objdump; ac_word=$2 6229{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6230$as_echo_n "checking for $ac_word... " >&6; } 6231if ${ac_cv_prog_OBJDUMP+:} false; then : 6232 $as_echo_n "(cached) " >&6 6233else 6234 if test -n "$OBJDUMP"; then 6235 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6236else 6237as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6238for as_dir in $PATH 6239do 6240 IFS=$as_save_IFS 6241 test -z "$as_dir" && as_dir=. 6242 for ac_exec_ext in '' $ac_executable_extensions; do 6243 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6244 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6245 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6246 break 2 6247 fi 6248done 6249 done 6250IFS=$as_save_IFS 6251 6252fi 6253fi 6254OBJDUMP=$ac_cv_prog_OBJDUMP 6255if test -n "$OBJDUMP"; then 6256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6257$as_echo "$OBJDUMP" >&6; } 6258else 6259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6260$as_echo "no" >&6; } 6261fi 6262 6263 6264fi 6265if test -z "$ac_cv_prog_OBJDUMP"; then 6266 ac_ct_OBJDUMP=$OBJDUMP 6267 # Extract the first word of "objdump", so it can be a program name with args. 6268set dummy objdump; ac_word=$2 6269{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6270$as_echo_n "checking for $ac_word... " >&6; } 6271if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6272 $as_echo_n "(cached) " >&6 6273else 6274 if test -n "$ac_ct_OBJDUMP"; then 6275 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6276else 6277as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6278for as_dir in $PATH 6279do 6280 IFS=$as_save_IFS 6281 test -z "$as_dir" && as_dir=. 6282 for ac_exec_ext in '' $ac_executable_extensions; do 6283 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6284 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6285 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6286 break 2 6287 fi 6288done 6289 done 6290IFS=$as_save_IFS 6291 6292fi 6293fi 6294ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6295if test -n "$ac_ct_OBJDUMP"; then 6296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6297$as_echo "$ac_ct_OBJDUMP" >&6; } 6298else 6299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6300$as_echo "no" >&6; } 6301fi 6302 6303 if test "x$ac_ct_OBJDUMP" = x; then 6304 OBJDUMP="false" 6305 else 6306 case $cross_compiling:$ac_tool_warned in 6307yes:) 6308{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6309$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6310ac_tool_warned=yes ;; 6311esac 6312 OBJDUMP=$ac_ct_OBJDUMP 6313 fi 6314else 6315 OBJDUMP="$ac_cv_prog_OBJDUMP" 6316fi 6317 6318test -z "$OBJDUMP" && OBJDUMP=objdump 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6329$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6330if ${lt_cv_deplibs_check_method+:} false; then : 6331 $as_echo_n "(cached) " >&6 6332else 6333 lt_cv_file_magic_cmd='$MAGIC_CMD' 6334lt_cv_file_magic_test_file= 6335lt_cv_deplibs_check_method='unknown' 6336# Need to set the preceding variable on all platforms that support 6337# interlibrary dependencies. 6338# 'none' -- dependencies not supported. 6339# `unknown' -- same as none, but documents that we really don't know. 6340# 'pass_all' -- all dependencies passed with no checks. 6341# 'test_compile' -- check by making test program. 6342# 'file_magic [[regex]]' -- check by looking for files in library path 6343# which responds to the $file_magic_cmd with a given extended regex. 6344# If you have `file' or equivalent on your system and you're not sure 6345# whether `pass_all' will *always* work, you probably want this one. 6346 6347case $host_os in 6348aix[4-9]*) 6349 lt_cv_deplibs_check_method=pass_all 6350 ;; 6351 6352beos*) 6353 lt_cv_deplibs_check_method=pass_all 6354 ;; 6355 6356bsdi[45]*) 6357 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6358 lt_cv_file_magic_cmd='/usr/bin/file -L' 6359 lt_cv_file_magic_test_file=/shlib/libc.so 6360 ;; 6361 6362cygwin*) 6363 # func_win32_libid is a shell function defined in ltmain.sh 6364 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6365 lt_cv_file_magic_cmd='func_win32_libid' 6366 ;; 6367 6368mingw* | pw32*) 6369 # Base MSYS/MinGW do not provide the 'file' command needed by 6370 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6371 # unless we find 'file', for example because we are cross-compiling. 6372 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6373 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6374 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6375 lt_cv_file_magic_cmd='func_win32_libid' 6376 else 6377 # Keep this pattern in sync with the one in func_win32_libid. 6378 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6379 lt_cv_file_magic_cmd='$OBJDUMP -f' 6380 fi 6381 ;; 6382 6383cegcc*) 6384 # use the weaker test based on 'objdump'. See mingw*. 6385 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6386 lt_cv_file_magic_cmd='$OBJDUMP -f' 6387 ;; 6388 6389darwin* | rhapsody*) 6390 lt_cv_deplibs_check_method=pass_all 6391 ;; 6392 6393freebsd* | dragonfly*) 6394 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6395 case $host_cpu in 6396 i*86 ) 6397 # Not sure whether the presence of OpenBSD here was a mistake. 6398 # Let's accept both of them until this is cleared up. 6399 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6400 lt_cv_file_magic_cmd=/usr/bin/file 6401 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6402 ;; 6403 esac 6404 else 6405 lt_cv_deplibs_check_method=pass_all 6406 fi 6407 ;; 6408 6409gnu*) 6410 lt_cv_deplibs_check_method=pass_all 6411 ;; 6412 6413haiku*) 6414 lt_cv_deplibs_check_method=pass_all 6415 ;; 6416 6417hpux10.20* | hpux11*) 6418 lt_cv_file_magic_cmd=/usr/bin/file 6419 case $host_cpu in 6420 ia64*) 6421 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6422 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6423 ;; 6424 hppa*64*) 6425 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]' 6426 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6427 ;; 6428 *) 6429 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6430 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6431 ;; 6432 esac 6433 ;; 6434 6435interix[3-9]*) 6436 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6437 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6438 ;; 6439 6440irix5* | irix6* | nonstopux*) 6441 case $LD in 6442 *-32|*"-32 ") libmagic=32-bit;; 6443 *-n32|*"-n32 ") libmagic=N32;; 6444 *-64|*"-64 ") libmagic=64-bit;; 6445 *) libmagic=never-match;; 6446 esac 6447 lt_cv_deplibs_check_method=pass_all 6448 ;; 6449 6450# This must be Linux ELF. 6451linux* | k*bsd*-gnu | kopensolaris*-gnu) 6452 lt_cv_deplibs_check_method=pass_all 6453 ;; 6454 6455netbsd*) 6456 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6457 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6458 else 6459 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6460 fi 6461 ;; 6462 6463newos6*) 6464 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6465 lt_cv_file_magic_cmd=/usr/bin/file 6466 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6467 ;; 6468 6469*nto* | *qnx*) 6470 lt_cv_deplibs_check_method=pass_all 6471 ;; 6472 6473openbsd*) 6474 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6475 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6476 else 6477 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6478 fi 6479 ;; 6480 6481osf3* | osf4* | osf5*) 6482 lt_cv_deplibs_check_method=pass_all 6483 ;; 6484 6485rdos*) 6486 lt_cv_deplibs_check_method=pass_all 6487 ;; 6488 6489solaris*) 6490 lt_cv_deplibs_check_method=pass_all 6491 ;; 6492 6493sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6494 lt_cv_deplibs_check_method=pass_all 6495 ;; 6496 6497sysv4 | sysv4.3*) 6498 case $host_vendor in 6499 motorola) 6500 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]' 6501 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6502 ;; 6503 ncr) 6504 lt_cv_deplibs_check_method=pass_all 6505 ;; 6506 sequent) 6507 lt_cv_file_magic_cmd='/bin/file' 6508 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6509 ;; 6510 sni) 6511 lt_cv_file_magic_cmd='/bin/file' 6512 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6513 lt_cv_file_magic_test_file=/lib/libc.so 6514 ;; 6515 siemens) 6516 lt_cv_deplibs_check_method=pass_all 6517 ;; 6518 pc) 6519 lt_cv_deplibs_check_method=pass_all 6520 ;; 6521 esac 6522 ;; 6523 6524tpf*) 6525 lt_cv_deplibs_check_method=pass_all 6526 ;; 6527esac 6528 6529fi 6530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6531$as_echo "$lt_cv_deplibs_check_method" >&6; } 6532file_magic_cmd=$lt_cv_file_magic_cmd 6533deplibs_check_method=$lt_cv_deplibs_check_method 6534test -z "$deplibs_check_method" && deplibs_check_method=unknown 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547if test -n "$ac_tool_prefix"; then 6548 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6549set dummy ${ac_tool_prefix}ar; 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_AR+:} false; then : 6553 $as_echo_n "(cached) " >&6 6554else 6555 if test -n "$AR"; then 6556 ac_cv_prog_AR="$AR" # 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_AR="${ac_tool_prefix}ar" 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 6575AR=$ac_cv_prog_AR 6576if test -n "$AR"; then 6577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6578$as_echo "$AR" >&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_AR"; then 6587 ac_ct_AR=$AR 6588 # Extract the first word of "ar", so it can be a program name with args. 6589set dummy ar; 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_AR+:} false; then : 6593 $as_echo_n "(cached) " >&6 6594else 6595 if test -n "$ac_ct_AR"; then 6596 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # 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_AR="ar" 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_AR=$ac_cv_prog_ac_ct_AR 6616if test -n "$ac_ct_AR"; then 6617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6618$as_echo "$ac_ct_AR" >&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_AR" = x; then 6625 AR="false" 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 AR=$ac_ct_AR 6634 fi 6635else 6636 AR="$ac_cv_prog_AR" 6637fi 6638 6639test -z "$AR" && AR=ar 6640test -z "$AR_FLAGS" && AR_FLAGS=cru 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652if test -n "$ac_tool_prefix"; then 6653 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6654set dummy ${ac_tool_prefix}strip; ac_word=$2 6655{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6656$as_echo_n "checking for $ac_word... " >&6; } 6657if ${ac_cv_prog_STRIP+:} false; then : 6658 $as_echo_n "(cached) " >&6 6659else 6660 if test -n "$STRIP"; then 6661 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6662else 6663as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6664for as_dir in $PATH 6665do 6666 IFS=$as_save_IFS 6667 test -z "$as_dir" && as_dir=. 6668 for ac_exec_ext in '' $ac_executable_extensions; do 6669 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6670 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6671 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6672 break 2 6673 fi 6674done 6675 done 6676IFS=$as_save_IFS 6677 6678fi 6679fi 6680STRIP=$ac_cv_prog_STRIP 6681if test -n "$STRIP"; then 6682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6683$as_echo "$STRIP" >&6; } 6684else 6685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6686$as_echo "no" >&6; } 6687fi 6688 6689 6690fi 6691if test -z "$ac_cv_prog_STRIP"; then 6692 ac_ct_STRIP=$STRIP 6693 # Extract the first word of "strip", so it can be a program name with args. 6694set dummy strip; ac_word=$2 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6696$as_echo_n "checking for $ac_word... " >&6; } 6697if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 if test -n "$ac_ct_STRIP"; then 6701 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6702else 6703as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6704for as_dir in $PATH 6705do 6706 IFS=$as_save_IFS 6707 test -z "$as_dir" && as_dir=. 6708 for ac_exec_ext in '' $ac_executable_extensions; do 6709 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6710 ac_cv_prog_ac_ct_STRIP="strip" 6711 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6712 break 2 6713 fi 6714done 6715 done 6716IFS=$as_save_IFS 6717 6718fi 6719fi 6720ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6721if test -n "$ac_ct_STRIP"; then 6722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6723$as_echo "$ac_ct_STRIP" >&6; } 6724else 6725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6726$as_echo "no" >&6; } 6727fi 6728 6729 if test "x$ac_ct_STRIP" = x; then 6730 STRIP=":" 6731 else 6732 case $cross_compiling:$ac_tool_warned in 6733yes:) 6734{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6735$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6736ac_tool_warned=yes ;; 6737esac 6738 STRIP=$ac_ct_STRIP 6739 fi 6740else 6741 STRIP="$ac_cv_prog_STRIP" 6742fi 6743 6744test -z "$STRIP" && STRIP=: 6745 6746 6747 6748 6749 6750 6751if test -n "$ac_tool_prefix"; then 6752 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6753set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6755$as_echo_n "checking for $ac_word... " >&6; } 6756if ${ac_cv_prog_RANLIB+:} false; then : 6757 $as_echo_n "(cached) " >&6 6758else 6759 if test -n "$RANLIB"; then 6760 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6761else 6762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6763for as_dir in $PATH 6764do 6765 IFS=$as_save_IFS 6766 test -z "$as_dir" && as_dir=. 6767 for ac_exec_ext in '' $ac_executable_extensions; do 6768 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6769 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6771 break 2 6772 fi 6773done 6774 done 6775IFS=$as_save_IFS 6776 6777fi 6778fi 6779RANLIB=$ac_cv_prog_RANLIB 6780if test -n "$RANLIB"; then 6781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6782$as_echo "$RANLIB" >&6; } 6783else 6784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6785$as_echo "no" >&6; } 6786fi 6787 6788 6789fi 6790if test -z "$ac_cv_prog_RANLIB"; then 6791 ac_ct_RANLIB=$RANLIB 6792 # Extract the first word of "ranlib", so it can be a program name with args. 6793set dummy ranlib; ac_word=$2 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6795$as_echo_n "checking for $ac_word... " >&6; } 6796if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6797 $as_echo_n "(cached) " >&6 6798else 6799 if test -n "$ac_ct_RANLIB"; then 6800 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6801else 6802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6803for as_dir in $PATH 6804do 6805 IFS=$as_save_IFS 6806 test -z "$as_dir" && as_dir=. 6807 for ac_exec_ext in '' $ac_executable_extensions; do 6808 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6809 ac_cv_prog_ac_ct_RANLIB="ranlib" 6810 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6811 break 2 6812 fi 6813done 6814 done 6815IFS=$as_save_IFS 6816 6817fi 6818fi 6819ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6820if test -n "$ac_ct_RANLIB"; then 6821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6822$as_echo "$ac_ct_RANLIB" >&6; } 6823else 6824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6825$as_echo "no" >&6; } 6826fi 6827 6828 if test "x$ac_ct_RANLIB" = x; then 6829 RANLIB=":" 6830 else 6831 case $cross_compiling:$ac_tool_warned in 6832yes:) 6833{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6834$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6835ac_tool_warned=yes ;; 6836esac 6837 RANLIB=$ac_ct_RANLIB 6838 fi 6839else 6840 RANLIB="$ac_cv_prog_RANLIB" 6841fi 6842 6843test -z "$RANLIB" && RANLIB=: 6844 6845 6846 6847 6848 6849 6850# Determine commands to create old-style static archives. 6851old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6852old_postinstall_cmds='chmod 644 $oldlib' 6853old_postuninstall_cmds= 6854 6855if test -n "$RANLIB"; then 6856 case $host_os in 6857 openbsd*) 6858 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6859 ;; 6860 *) 6861 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6862 ;; 6863 esac 6864 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6865fi 6866 6867case $host_os in 6868 darwin*) 6869 lock_old_archive_extraction=yes ;; 6870 *) 6871 lock_old_archive_extraction=no ;; 6872esac 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912# If no C compiler was specified, use CC. 6913LTCC=${LTCC-"$CC"} 6914 6915# If no C compiler flags were specified, use CFLAGS. 6916LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6917 6918# Allow CC to be a program name with arguments. 6919compiler=$CC 6920 6921 6922# Check for command to grab the raw symbol name followed by C symbol from nm. 6923{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6924$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6925if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6926 $as_echo_n "(cached) " >&6 6927else 6928 6929# These are sane defaults that work on at least a few old systems. 6930# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6931 6932# Character class describing NM global symbol codes. 6933symcode='[BCDEGRST]' 6934 6935# Regexp to match symbols that can be accessed directly from C. 6936sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6937 6938# Define system-specific variables. 6939case $host_os in 6940aix*) 6941 symcode='[BCDT]' 6942 ;; 6943cygwin* | mingw* | pw32* | cegcc*) 6944 symcode='[ABCDGISTW]' 6945 ;; 6946hpux*) 6947 if test "$host_cpu" = ia64; then 6948 symcode='[ABCDEGRST]' 6949 fi 6950 ;; 6951irix* | nonstopux*) 6952 symcode='[BCDEGRST]' 6953 ;; 6954osf*) 6955 symcode='[BCDEGQRST]' 6956 ;; 6957solaris*) 6958 symcode='[BDRT]' 6959 ;; 6960sco3.2v5*) 6961 symcode='[DT]' 6962 ;; 6963sysv4.2uw2*) 6964 symcode='[DT]' 6965 ;; 6966sysv5* | sco5v6* | unixware* | OpenUNIX*) 6967 symcode='[ABDT]' 6968 ;; 6969sysv4) 6970 symcode='[DFNSTU]' 6971 ;; 6972esac 6973 6974# If we're using GNU nm, then use its standard symbol codes. 6975case `$NM -V 2>&1` in 6976*GNU* | *'with BFD'*) 6977 symcode='[ABCDGIRSTW]' ;; 6978esac 6979 6980# Transform an extracted symbol line into a proper C declaration. 6981# Some systems (esp. on ia64) link data and code symbols differently, 6982# so use this general approach. 6983lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6984 6985# Transform an extracted symbol line into symbol name and symbol address 6986lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6987lt_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'" 6988 6989# Handle CRLF in mingw tool chain 6990opt_cr= 6991case $build_os in 6992mingw*) 6993 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6994 ;; 6995esac 6996 6997# Try without a prefix underscore, then with it. 6998for ac_symprfx in "" "_"; do 6999 7000 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7001 symxfrm="\\1 $ac_symprfx\\2 \\2" 7002 7003 # Write the raw and C identifiers. 7004 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7005 # Fake it for dumpbin and say T for any non-static function 7006 # and D for any global variable. 7007 # Also find C++ and __fastcall symbols from MSVC++, 7008 # which start with @ or ?. 7009 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7010" {last_section=section; section=\$ 3};"\ 7011" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7012" \$ 0!~/External *\|/{next};"\ 7013" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7014" {if(hide[section]) next};"\ 7015" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 7016" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 7017" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 7018" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 7019" ' prfx=^$ac_symprfx" 7020 else 7021 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7022 fi 7023 7024 # Check to see that the pipe works correctly. 7025 pipe_works=no 7026 7027 rm -f conftest* 7028 cat > conftest.$ac_ext <<_LT_EOF 7029#ifdef __cplusplus 7030extern "C" { 7031#endif 7032char nm_test_var; 7033void nm_test_func(void); 7034void nm_test_func(void){} 7035#ifdef __cplusplus 7036} 7037#endif 7038int main(){nm_test_var='a';nm_test_func();return(0);} 7039_LT_EOF 7040 7041 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7042 (eval $ac_compile) 2>&5 7043 ac_status=$? 7044 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7045 test $ac_status = 0; }; then 7046 # Now try to grab the symbols. 7047 nlist=conftest.nm 7048 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7049 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7050 ac_status=$? 7051 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7052 test $ac_status = 0; } && test -s "$nlist"; then 7053 # Try sorting and uniquifying the output. 7054 if sort "$nlist" | uniq > "$nlist"T; then 7055 mv -f "$nlist"T "$nlist" 7056 else 7057 rm -f "$nlist"T 7058 fi 7059 7060 # Make sure that we snagged all the symbols we need. 7061 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7062 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7063 cat <<_LT_EOF > conftest.$ac_ext 7064#ifdef __cplusplus 7065extern "C" { 7066#endif 7067 7068_LT_EOF 7069 # Now generate the symbol file. 7070 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7071 7072 cat <<_LT_EOF >> conftest.$ac_ext 7073 7074/* The mapping between symbol names and symbols. */ 7075const struct { 7076 const char *name; 7077 void *address; 7078} 7079lt__PROGRAM__LTX_preloaded_symbols[] = 7080{ 7081 { "@PROGRAM@", (void *) 0 }, 7082_LT_EOF 7083 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7084 cat <<\_LT_EOF >> conftest.$ac_ext 7085 {0, (void *) 0} 7086}; 7087 7088/* This works around a problem in FreeBSD linker */ 7089#ifdef FREEBSD_WORKAROUND 7090static const void *lt_preloaded_setup() { 7091 return lt__PROGRAM__LTX_preloaded_symbols; 7092} 7093#endif 7094 7095#ifdef __cplusplus 7096} 7097#endif 7098_LT_EOF 7099 # Now try linking the two files. 7100 mv conftest.$ac_objext conftstm.$ac_objext 7101 lt_save_LIBS="$LIBS" 7102 lt_save_CFLAGS="$CFLAGS" 7103 LIBS="conftstm.$ac_objext" 7104 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7105 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7106 (eval $ac_link) 2>&5 7107 ac_status=$? 7108 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7109 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 7110 pipe_works=yes 7111 fi 7112 LIBS="$lt_save_LIBS" 7113 CFLAGS="$lt_save_CFLAGS" 7114 else 7115 echo "cannot find nm_test_func in $nlist" >&5 7116 fi 7117 else 7118 echo "cannot find nm_test_var in $nlist" >&5 7119 fi 7120 else 7121 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7122 fi 7123 else 7124 echo "$progname: failed program was:" >&5 7125 cat conftest.$ac_ext >&5 7126 fi 7127 rm -rf conftest* conftst* 7128 7129 # Do not use the global_symbol_pipe unless it works. 7130 if test "$pipe_works" = yes; then 7131 break 7132 else 7133 lt_cv_sys_global_symbol_pipe= 7134 fi 7135done 7136 7137fi 7138 7139if test -z "$lt_cv_sys_global_symbol_pipe"; then 7140 lt_cv_sys_global_symbol_to_cdecl= 7141fi 7142if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7144$as_echo "failed" >&6; } 7145else 7146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7147$as_echo "ok" >&6; } 7148fi 7149 7150 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162 7163 7164 7165 7166 7167 7168 7169 7170 7171# Check whether --enable-libtool-lock was given. 7172if test "${enable_libtool_lock+set}" = set; then : 7173 enableval=$enable_libtool_lock; 7174fi 7175 7176test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 7177 7178# Some flags need to be propagated to the compiler or linker for good 7179# libtool support. 7180case $host in 7181ia64-*-hpux*) 7182 # Find out which ABI we are using. 7183 echo 'int i;' > conftest.$ac_ext 7184 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7185 (eval $ac_compile) 2>&5 7186 ac_status=$? 7187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7188 test $ac_status = 0; }; then 7189 case `/usr/bin/file conftest.$ac_objext` in 7190 *ELF-32*) 7191 HPUX_IA64_MODE="32" 7192 ;; 7193 *ELF-64*) 7194 HPUX_IA64_MODE="64" 7195 ;; 7196 esac 7197 fi 7198 rm -rf conftest* 7199 ;; 7200*-*-irix6*) 7201 # Find out which ABI we are using. 7202 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7203 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7204 (eval $ac_compile) 2>&5 7205 ac_status=$? 7206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7207 test $ac_status = 0; }; then 7208 if test "$lt_cv_prog_gnu_ld" = yes; then 7209 case `/usr/bin/file conftest.$ac_objext` in 7210 *32-bit*) 7211 LD="${LD-ld} -melf32bsmip" 7212 ;; 7213 *N32*) 7214 LD="${LD-ld} -melf32bmipn32" 7215 ;; 7216 *64-bit*) 7217 LD="${LD-ld} -melf64bmip" 7218 ;; 7219 esac 7220 else 7221 case `/usr/bin/file conftest.$ac_objext` in 7222 *32-bit*) 7223 LD="${LD-ld} -32" 7224 ;; 7225 *N32*) 7226 LD="${LD-ld} -n32" 7227 ;; 7228 *64-bit*) 7229 LD="${LD-ld} -64" 7230 ;; 7231 esac 7232 fi 7233 fi 7234 rm -rf conftest* 7235 ;; 7236 7237x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7238s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7239 # Find out which ABI we are using. 7240 echo 'int i;' > conftest.$ac_ext 7241 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7242 (eval $ac_compile) 2>&5 7243 ac_status=$? 7244 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7245 test $ac_status = 0; }; then 7246 case `/usr/bin/file conftest.o` in 7247 *32-bit*) 7248 case $host in 7249 x86_64-*kfreebsd*-gnu) 7250 LD="${LD-ld} -m elf_i386_fbsd" 7251 ;; 7252 x86_64-*linux*) 7253 LD="${LD-ld} -m elf_i386" 7254 ;; 7255 ppc64-*linux*|powerpc64-*linux*) 7256 LD="${LD-ld} -m elf32ppclinux" 7257 ;; 7258 s390x-*linux*) 7259 LD="${LD-ld} -m elf_s390" 7260 ;; 7261 sparc64-*linux*) 7262 LD="${LD-ld} -m elf32_sparc" 7263 ;; 7264 esac 7265 ;; 7266 *64-bit*) 7267 case $host in 7268 x86_64-*kfreebsd*-gnu) 7269 LD="${LD-ld} -m elf_x86_64_fbsd" 7270 ;; 7271 x86_64-*linux*) 7272 LD="${LD-ld} -m elf_x86_64" 7273 ;; 7274 ppc*-*linux*|powerpc*-*linux*) 7275 LD="${LD-ld} -m elf64ppc" 7276 ;; 7277 s390*-*linux*|s390*-*tpf*) 7278 LD="${LD-ld} -m elf64_s390" 7279 ;; 7280 sparc*-*linux*) 7281 LD="${LD-ld} -m elf64_sparc" 7282 ;; 7283 esac 7284 ;; 7285 esac 7286 fi 7287 rm -rf conftest* 7288 ;; 7289 7290*-*-sco3.2v5*) 7291 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7292 SAVE_CFLAGS="$CFLAGS" 7293 CFLAGS="$CFLAGS -belf" 7294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7295$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7296if ${lt_cv_cc_needs_belf+:} false; then : 7297 $as_echo_n "(cached) " >&6 7298else 7299 ac_ext=c 7300ac_cpp='$CPP $CPPFLAGS' 7301ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7302ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7303ac_compiler_gnu=$ac_cv_c_compiler_gnu 7304 7305 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7306/* end confdefs.h. */ 7307 7308int 7309main () 7310{ 7311 7312 ; 7313 return 0; 7314} 7315_ACEOF 7316if ac_fn_c_try_link "$LINENO"; then : 7317 lt_cv_cc_needs_belf=yes 7318else 7319 lt_cv_cc_needs_belf=no 7320fi 7321rm -f core conftest.err conftest.$ac_objext \ 7322 conftest$ac_exeext conftest.$ac_ext 7323 ac_ext=c 7324ac_cpp='$CPP $CPPFLAGS' 7325ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7326ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7327ac_compiler_gnu=$ac_cv_c_compiler_gnu 7328 7329fi 7330{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7331$as_echo "$lt_cv_cc_needs_belf" >&6; } 7332 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7333 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7334 CFLAGS="$SAVE_CFLAGS" 7335 fi 7336 ;; 7337sparc*-*solaris*) 7338 # Find out which ABI we are using. 7339 echo 'int i;' > conftest.$ac_ext 7340 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7341 (eval $ac_compile) 2>&5 7342 ac_status=$? 7343 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7344 test $ac_status = 0; }; then 7345 case `/usr/bin/file conftest.o` in 7346 *64-bit*) 7347 case $lt_cv_prog_gnu_ld in 7348 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7349 *) 7350 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7351 LD="${LD-ld} -64" 7352 fi 7353 ;; 7354 esac 7355 ;; 7356 esac 7357 fi 7358 rm -rf conftest* 7359 ;; 7360esac 7361 7362need_locks="$enable_libtool_lock" 7363 7364 7365 case $host_os in 7366 rhapsody* | darwin*) 7367 if test -n "$ac_tool_prefix"; then 7368 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7369set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7370{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7371$as_echo_n "checking for $ac_word... " >&6; } 7372if ${ac_cv_prog_DSYMUTIL+:} false; then : 7373 $as_echo_n "(cached) " >&6 7374else 7375 if test -n "$DSYMUTIL"; then 7376 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7377else 7378as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7379for as_dir in $PATH 7380do 7381 IFS=$as_save_IFS 7382 test -z "$as_dir" && as_dir=. 7383 for ac_exec_ext in '' $ac_executable_extensions; do 7384 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7385 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7386 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7387 break 2 7388 fi 7389done 7390 done 7391IFS=$as_save_IFS 7392 7393fi 7394fi 7395DSYMUTIL=$ac_cv_prog_DSYMUTIL 7396if test -n "$DSYMUTIL"; then 7397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7398$as_echo "$DSYMUTIL" >&6; } 7399else 7400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7401$as_echo "no" >&6; } 7402fi 7403 7404 7405fi 7406if test -z "$ac_cv_prog_DSYMUTIL"; then 7407 ac_ct_DSYMUTIL=$DSYMUTIL 7408 # Extract the first word of "dsymutil", so it can be a program name with args. 7409set dummy dsymutil; ac_word=$2 7410{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7411$as_echo_n "checking for $ac_word... " >&6; } 7412if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 7413 $as_echo_n "(cached) " >&6 7414else 7415 if test -n "$ac_ct_DSYMUTIL"; then 7416 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7417else 7418as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7419for as_dir in $PATH 7420do 7421 IFS=$as_save_IFS 7422 test -z "$as_dir" && as_dir=. 7423 for ac_exec_ext in '' $ac_executable_extensions; do 7424 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7425 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7427 break 2 7428 fi 7429done 7430 done 7431IFS=$as_save_IFS 7432 7433fi 7434fi 7435ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7436if test -n "$ac_ct_DSYMUTIL"; then 7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7438$as_echo "$ac_ct_DSYMUTIL" >&6; } 7439else 7440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7441$as_echo "no" >&6; } 7442fi 7443 7444 if test "x$ac_ct_DSYMUTIL" = x; then 7445 DSYMUTIL=":" 7446 else 7447 case $cross_compiling:$ac_tool_warned in 7448yes:) 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7450$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7451ac_tool_warned=yes ;; 7452esac 7453 DSYMUTIL=$ac_ct_DSYMUTIL 7454 fi 7455else 7456 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7457fi 7458 7459 if test -n "$ac_tool_prefix"; then 7460 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7461set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7463$as_echo_n "checking for $ac_word... " >&6; } 7464if ${ac_cv_prog_NMEDIT+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 if test -n "$NMEDIT"; then 7468 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7469else 7470as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7471for as_dir in $PATH 7472do 7473 IFS=$as_save_IFS 7474 test -z "$as_dir" && as_dir=. 7475 for ac_exec_ext in '' $ac_executable_extensions; do 7476 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7477 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7478 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7479 break 2 7480 fi 7481done 7482 done 7483IFS=$as_save_IFS 7484 7485fi 7486fi 7487NMEDIT=$ac_cv_prog_NMEDIT 7488if test -n "$NMEDIT"; then 7489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7490$as_echo "$NMEDIT" >&6; } 7491else 7492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7493$as_echo "no" >&6; } 7494fi 7495 7496 7497fi 7498if test -z "$ac_cv_prog_NMEDIT"; then 7499 ac_ct_NMEDIT=$NMEDIT 7500 # Extract the first word of "nmedit", so it can be a program name with args. 7501set dummy nmedit; ac_word=$2 7502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7503$as_echo_n "checking for $ac_word... " >&6; } 7504if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7505 $as_echo_n "(cached) " >&6 7506else 7507 if test -n "$ac_ct_NMEDIT"; then 7508 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7509else 7510as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7511for as_dir in $PATH 7512do 7513 IFS=$as_save_IFS 7514 test -z "$as_dir" && as_dir=. 7515 for ac_exec_ext in '' $ac_executable_extensions; do 7516 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7517 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7519 break 2 7520 fi 7521done 7522 done 7523IFS=$as_save_IFS 7524 7525fi 7526fi 7527ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7528if test -n "$ac_ct_NMEDIT"; then 7529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7530$as_echo "$ac_ct_NMEDIT" >&6; } 7531else 7532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7533$as_echo "no" >&6; } 7534fi 7535 7536 if test "x$ac_ct_NMEDIT" = x; then 7537 NMEDIT=":" 7538 else 7539 case $cross_compiling:$ac_tool_warned in 7540yes:) 7541{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7542$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7543ac_tool_warned=yes ;; 7544esac 7545 NMEDIT=$ac_ct_NMEDIT 7546 fi 7547else 7548 NMEDIT="$ac_cv_prog_NMEDIT" 7549fi 7550 7551 if test -n "$ac_tool_prefix"; then 7552 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7553set dummy ${ac_tool_prefix}lipo; ac_word=$2 7554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7555$as_echo_n "checking for $ac_word... " >&6; } 7556if ${ac_cv_prog_LIPO+:} false; then : 7557 $as_echo_n "(cached) " >&6 7558else 7559 if test -n "$LIPO"; then 7560 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7561else 7562as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7563for as_dir in $PATH 7564do 7565 IFS=$as_save_IFS 7566 test -z "$as_dir" && as_dir=. 7567 for ac_exec_ext in '' $ac_executable_extensions; do 7568 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7569 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7570 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7571 break 2 7572 fi 7573done 7574 done 7575IFS=$as_save_IFS 7576 7577fi 7578fi 7579LIPO=$ac_cv_prog_LIPO 7580if test -n "$LIPO"; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7582$as_echo "$LIPO" >&6; } 7583else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585$as_echo "no" >&6; } 7586fi 7587 7588 7589fi 7590if test -z "$ac_cv_prog_LIPO"; then 7591 ac_ct_LIPO=$LIPO 7592 # Extract the first word of "lipo", so it can be a program name with args. 7593set dummy lipo; ac_word=$2 7594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7595$as_echo_n "checking for $ac_word... " >&6; } 7596if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7597 $as_echo_n "(cached) " >&6 7598else 7599 if test -n "$ac_ct_LIPO"; then 7600 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7601else 7602as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7603for as_dir in $PATH 7604do 7605 IFS=$as_save_IFS 7606 test -z "$as_dir" && as_dir=. 7607 for ac_exec_ext in '' $ac_executable_extensions; do 7608 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7609 ac_cv_prog_ac_ct_LIPO="lipo" 7610 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7611 break 2 7612 fi 7613done 7614 done 7615IFS=$as_save_IFS 7616 7617fi 7618fi 7619ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7620if test -n "$ac_ct_LIPO"; then 7621 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7622$as_echo "$ac_ct_LIPO" >&6; } 7623else 7624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7625$as_echo "no" >&6; } 7626fi 7627 7628 if test "x$ac_ct_LIPO" = x; then 7629 LIPO=":" 7630 else 7631 case $cross_compiling:$ac_tool_warned in 7632yes:) 7633{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7634$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7635ac_tool_warned=yes ;; 7636esac 7637 LIPO=$ac_ct_LIPO 7638 fi 7639else 7640 LIPO="$ac_cv_prog_LIPO" 7641fi 7642 7643 if test -n "$ac_tool_prefix"; then 7644 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7645set dummy ${ac_tool_prefix}otool; ac_word=$2 7646{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7647$as_echo_n "checking for $ac_word... " >&6; } 7648if ${ac_cv_prog_OTOOL+:} false; then : 7649 $as_echo_n "(cached) " >&6 7650else 7651 if test -n "$OTOOL"; then 7652 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7653else 7654as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7655for as_dir in $PATH 7656do 7657 IFS=$as_save_IFS 7658 test -z "$as_dir" && as_dir=. 7659 for ac_exec_ext in '' $ac_executable_extensions; do 7660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7661 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7663 break 2 7664 fi 7665done 7666 done 7667IFS=$as_save_IFS 7668 7669fi 7670fi 7671OTOOL=$ac_cv_prog_OTOOL 7672if test -n "$OTOOL"; then 7673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7674$as_echo "$OTOOL" >&6; } 7675else 7676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7677$as_echo "no" >&6; } 7678fi 7679 7680 7681fi 7682if test -z "$ac_cv_prog_OTOOL"; then 7683 ac_ct_OTOOL=$OTOOL 7684 # Extract the first word of "otool", so it can be a program name with args. 7685set dummy otool; ac_word=$2 7686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7687$as_echo_n "checking for $ac_word... " >&6; } 7688if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7689 $as_echo_n "(cached) " >&6 7690else 7691 if test -n "$ac_ct_OTOOL"; then 7692 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7693else 7694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7695for as_dir in $PATH 7696do 7697 IFS=$as_save_IFS 7698 test -z "$as_dir" && as_dir=. 7699 for ac_exec_ext in '' $ac_executable_extensions; do 7700 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7701 ac_cv_prog_ac_ct_OTOOL="otool" 7702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7703 break 2 7704 fi 7705done 7706 done 7707IFS=$as_save_IFS 7708 7709fi 7710fi 7711ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7712if test -n "$ac_ct_OTOOL"; then 7713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7714$as_echo "$ac_ct_OTOOL" >&6; } 7715else 7716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7717$as_echo "no" >&6; } 7718fi 7719 7720 if test "x$ac_ct_OTOOL" = x; then 7721 OTOOL=":" 7722 else 7723 case $cross_compiling:$ac_tool_warned in 7724yes:) 7725{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7726$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7727ac_tool_warned=yes ;; 7728esac 7729 OTOOL=$ac_ct_OTOOL 7730 fi 7731else 7732 OTOOL="$ac_cv_prog_OTOOL" 7733fi 7734 7735 if test -n "$ac_tool_prefix"; then 7736 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7737set dummy ${ac_tool_prefix}otool64; ac_word=$2 7738{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7739$as_echo_n "checking for $ac_word... " >&6; } 7740if ${ac_cv_prog_OTOOL64+:} false; then : 7741 $as_echo_n "(cached) " >&6 7742else 7743 if test -n "$OTOOL64"; then 7744 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7745else 7746as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7747for as_dir in $PATH 7748do 7749 IFS=$as_save_IFS 7750 test -z "$as_dir" && as_dir=. 7751 for ac_exec_ext in '' $ac_executable_extensions; do 7752 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7753 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7754 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7755 break 2 7756 fi 7757done 7758 done 7759IFS=$as_save_IFS 7760 7761fi 7762fi 7763OTOOL64=$ac_cv_prog_OTOOL64 7764if test -n "$OTOOL64"; then 7765 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7766$as_echo "$OTOOL64" >&6; } 7767else 7768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7769$as_echo "no" >&6; } 7770fi 7771 7772 7773fi 7774if test -z "$ac_cv_prog_OTOOL64"; then 7775 ac_ct_OTOOL64=$OTOOL64 7776 # Extract the first word of "otool64", so it can be a program name with args. 7777set dummy otool64; ac_word=$2 7778{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7779$as_echo_n "checking for $ac_word... " >&6; } 7780if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7781 $as_echo_n "(cached) " >&6 7782else 7783 if test -n "$ac_ct_OTOOL64"; then 7784 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7785else 7786as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7787for as_dir in $PATH 7788do 7789 IFS=$as_save_IFS 7790 test -z "$as_dir" && as_dir=. 7791 for ac_exec_ext in '' $ac_executable_extensions; do 7792 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7793 ac_cv_prog_ac_ct_OTOOL64="otool64" 7794 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7795 break 2 7796 fi 7797done 7798 done 7799IFS=$as_save_IFS 7800 7801fi 7802fi 7803ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7804if test -n "$ac_ct_OTOOL64"; then 7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7806$as_echo "$ac_ct_OTOOL64" >&6; } 7807else 7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7809$as_echo "no" >&6; } 7810fi 7811 7812 if test "x$ac_ct_OTOOL64" = x; then 7813 OTOOL64=":" 7814 else 7815 case $cross_compiling:$ac_tool_warned in 7816yes:) 7817{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7818$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7819ac_tool_warned=yes ;; 7820esac 7821 OTOOL64=$ac_ct_OTOOL64 7822 fi 7823else 7824 OTOOL64="$ac_cv_prog_OTOOL64" 7825fi 7826 7827 7828 7829 7830 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852 7853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7854$as_echo_n "checking for -single_module linker flag... " >&6; } 7855if ${lt_cv_apple_cc_single_mod+:} false; then : 7856 $as_echo_n "(cached) " >&6 7857else 7858 lt_cv_apple_cc_single_mod=no 7859 if test -z "${LT_MULTI_MODULE}"; then 7860 # By default we will add the -single_module flag. You can override 7861 # by either setting the environment variable LT_MULTI_MODULE 7862 # non-empty at configure time, or by adding -multi_module to the 7863 # link flags. 7864 rm -rf libconftest.dylib* 7865 echo "int foo(void){return 1;}" > conftest.c 7866 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7867-dynamiclib -Wl,-single_module conftest.c" >&5 7868 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7869 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7870 _lt_result=$? 7871 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7872 lt_cv_apple_cc_single_mod=yes 7873 else 7874 cat conftest.err >&5 7875 fi 7876 rm -rf libconftest.dylib* 7877 rm -f conftest.* 7878 fi 7879fi 7880{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7881$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7883$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7884if ${lt_cv_ld_exported_symbols_list+:} false; then : 7885 $as_echo_n "(cached) " >&6 7886else 7887 lt_cv_ld_exported_symbols_list=no 7888 save_LDFLAGS=$LDFLAGS 7889 echo "_main" > conftest.sym 7890 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7892/* end confdefs.h. */ 7893 7894int 7895main () 7896{ 7897 7898 ; 7899 return 0; 7900} 7901_ACEOF 7902if ac_fn_c_try_link "$LINENO"; then : 7903 lt_cv_ld_exported_symbols_list=yes 7904else 7905 lt_cv_ld_exported_symbols_list=no 7906fi 7907rm -f core conftest.err conftest.$ac_objext \ 7908 conftest$ac_exeext conftest.$ac_ext 7909 LDFLAGS="$save_LDFLAGS" 7910 7911fi 7912{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7913$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7915$as_echo_n "checking for -force_load linker flag... " >&6; } 7916if ${lt_cv_ld_force_load+:} false; then : 7917 $as_echo_n "(cached) " >&6 7918else 7919 lt_cv_ld_force_load=no 7920 cat > conftest.c << _LT_EOF 7921int forced_loaded() { return 2;} 7922_LT_EOF 7923 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7924 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7925 echo "$AR cru libconftest.a conftest.o" >&5 7926 $AR cru libconftest.a conftest.o 2>&5 7927 echo "$RANLIB libconftest.a" >&5 7928 $RANLIB libconftest.a 2>&5 7929 cat > conftest.c << _LT_EOF 7930int main() { return 0;} 7931_LT_EOF 7932 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7933 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7934 _lt_result=$? 7935 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7936 lt_cv_ld_force_load=yes 7937 else 7938 cat conftest.err >&5 7939 fi 7940 rm -f conftest.err libconftest.a conftest conftest.c 7941 rm -rf conftest.dSYM 7942 7943fi 7944{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7945$as_echo "$lt_cv_ld_force_load" >&6; } 7946 case $host_os in 7947 rhapsody* | darwin1.[012]) 7948 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7949 darwin1.*) 7950 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7951 darwin*) # darwin 5.x on 7952 # if running on 10.5 or later, the deployment target defaults 7953 # to the OS version, if on x86, and 10.4, the deployment 7954 # target defaults to 10.4. Don't you love it? 7955 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7956 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7957 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7958 10.[012]*) 7959 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7960 10.*) 7961 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7962 esac 7963 ;; 7964 esac 7965 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7966 _lt_dar_single_mod='$single_module' 7967 fi 7968 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7969 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7970 else 7971 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7972 fi 7973 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7974 _lt_dsymutil='~$DSYMUTIL $lib || :' 7975 else 7976 _lt_dsymutil= 7977 fi 7978 ;; 7979 esac 7980 7981for ac_header in dlfcn.h 7982do : 7983 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7984" 7985if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7986 cat >>confdefs.h <<_ACEOF 7987#define HAVE_DLFCN_H 1 7988_ACEOF 7989 7990fi 7991 7992done 7993 7994 7995 7996 7997 7998# Set options 7999 8000 8001 8002 enable_dlopen=no 8003 8004 8005 enable_win32_dll=no 8006 8007 8008 # Check whether --enable-shared was given. 8009if test "${enable_shared+set}" = set; then : 8010 enableval=$enable_shared; p=${PACKAGE-default} 8011 case $enableval in 8012 yes) enable_shared=yes ;; 8013 no) enable_shared=no ;; 8014 *) 8015 enable_shared=no 8016 # Look at the argument we got. We use all the common list separators. 8017 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8018 for pkg in $enableval; do 8019 IFS="$lt_save_ifs" 8020 if test "X$pkg" = "X$p"; then 8021 enable_shared=yes 8022 fi 8023 done 8024 IFS="$lt_save_ifs" 8025 ;; 8026 esac 8027else 8028 enable_shared=yes 8029fi 8030 8031 8032 8033 8034 8035 8036 8037 8038 8039 # Check whether --enable-static was given. 8040if test "${enable_static+set}" = set; then : 8041 enableval=$enable_static; p=${PACKAGE-default} 8042 case $enableval in 8043 yes) enable_static=yes ;; 8044 no) enable_static=no ;; 8045 *) 8046 enable_static=no 8047 # Look at the argument we got. We use all the common list separators. 8048 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8049 for pkg in $enableval; do 8050 IFS="$lt_save_ifs" 8051 if test "X$pkg" = "X$p"; then 8052 enable_static=yes 8053 fi 8054 done 8055 IFS="$lt_save_ifs" 8056 ;; 8057 esac 8058else 8059 enable_static=yes 8060fi 8061 8062 8063 8064 8065 8066 8067 8068 8069 8070 8071# Check whether --with-pic was given. 8072if test "${with_pic+set}" = set; then : 8073 withval=$with_pic; pic_mode="$withval" 8074else 8075 pic_mode=default 8076fi 8077 8078 8079test -z "$pic_mode" && pic_mode=default 8080 8081 8082 8083 8084 8085 8086 8087 # Check whether --enable-fast-install was given. 8088if test "${enable_fast_install+set}" = set; then : 8089 enableval=$enable_fast_install; p=${PACKAGE-default} 8090 case $enableval in 8091 yes) enable_fast_install=yes ;; 8092 no) enable_fast_install=no ;; 8093 *) 8094 enable_fast_install=no 8095 # Look at the argument we got. We use all the common list separators. 8096 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 8097 for pkg in $enableval; do 8098 IFS="$lt_save_ifs" 8099 if test "X$pkg" = "X$p"; then 8100 enable_fast_install=yes 8101 fi 8102 done 8103 IFS="$lt_save_ifs" 8104 ;; 8105 esac 8106else 8107 enable_fast_install=yes 8108fi 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120# This can be used to rebuild libtool when needed 8121LIBTOOL_DEPS="$ltmain" 8122 8123# Always use our own libtool. 8124LIBTOOL='$(SHELL) $(top_builddir)/libtool' 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151test -z "$LN_S" && LN_S="ln -s" 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166if test -n "${ZSH_VERSION+set}" ; then 8167 setopt NO_GLOB_SUBST 8168fi 8169 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 8171$as_echo_n "checking for objdir... " >&6; } 8172if ${lt_cv_objdir+:} false; then : 8173 $as_echo_n "(cached) " >&6 8174else 8175 rm -f .libs 2>/dev/null 8176mkdir .libs 2>/dev/null 8177if test -d .libs; then 8178 lt_cv_objdir=.libs 8179else 8180 # MS-DOS does not allow filenames that begin with a dot. 8181 lt_cv_objdir=_libs 8182fi 8183rmdir .libs 2>/dev/null 8184fi 8185{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 8186$as_echo "$lt_cv_objdir" >&6; } 8187objdir=$lt_cv_objdir 8188 8189 8190 8191 8192 8193cat >>confdefs.h <<_ACEOF 8194#define LT_OBJDIR "$lt_cv_objdir/" 8195_ACEOF 8196 8197 8198 8199 8200case $host_os in 8201aix3*) 8202 # AIX sometimes has problems with the GCC collect2 program. For some 8203 # reason, if we set the COLLECT_NAMES environment variable, the problems 8204 # vanish in a puff of smoke. 8205 if test "X${COLLECT_NAMES+set}" != Xset; then 8206 COLLECT_NAMES= 8207 export COLLECT_NAMES 8208 fi 8209 ;; 8210esac 8211 8212# Global variables: 8213ofile=libtool 8214can_build_shared=yes 8215 8216# All known linkers require a `.a' archive for static linking (except MSVC, 8217# which needs '.lib'). 8218libext=a 8219 8220with_gnu_ld="$lt_cv_prog_gnu_ld" 8221 8222old_CC="$CC" 8223old_CFLAGS="$CFLAGS" 8224 8225# Set sane defaults for various variables 8226test -z "$CC" && CC=cc 8227test -z "$LTCC" && LTCC=$CC 8228test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8229test -z "$LD" && LD=ld 8230test -z "$ac_objext" && ac_objext=o 8231 8232for cc_temp in $compiler""; do 8233 case $cc_temp in 8234 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8235 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8236 \-*) ;; 8237 *) break;; 8238 esac 8239done 8240cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8241 8242 8243# Only perform the check for file, if the check method requires it 8244test -z "$MAGIC_CMD" && MAGIC_CMD=file 8245case $deplibs_check_method in 8246file_magic*) 8247 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8249$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8250if ${lt_cv_path_MAGIC_CMD+:} false; then : 8251 $as_echo_n "(cached) " >&6 8252else 8253 case $MAGIC_CMD in 8254[\\/*] | ?:[\\/]*) 8255 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8256 ;; 8257*) 8258 lt_save_MAGIC_CMD="$MAGIC_CMD" 8259 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8260 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8261 for ac_dir in $ac_dummy; do 8262 IFS="$lt_save_ifs" 8263 test -z "$ac_dir" && ac_dir=. 8264 if test -f $ac_dir/${ac_tool_prefix}file; then 8265 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8266 if test -n "$file_magic_test_file"; then 8267 case $deplibs_check_method in 8268 "file_magic "*) 8269 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8270 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8271 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8272 $EGREP "$file_magic_regex" > /dev/null; then 8273 : 8274 else 8275 cat <<_LT_EOF 1>&2 8276 8277*** Warning: the command libtool uses to detect shared libraries, 8278*** $file_magic_cmd, produces output that libtool cannot recognize. 8279*** The result is that libtool may fail to recognize shared libraries 8280*** as such. This will affect the creation of libtool libraries that 8281*** depend on shared libraries, but programs linked with such libtool 8282*** libraries will work regardless of this problem. Nevertheless, you 8283*** may want to report the problem to your system manager and/or to 8284*** bug-libtool@gnu.org 8285 8286_LT_EOF 8287 fi ;; 8288 esac 8289 fi 8290 break 8291 fi 8292 done 8293 IFS="$lt_save_ifs" 8294 MAGIC_CMD="$lt_save_MAGIC_CMD" 8295 ;; 8296esac 8297fi 8298 8299MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8300if test -n "$MAGIC_CMD"; then 8301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8302$as_echo "$MAGIC_CMD" >&6; } 8303else 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8305$as_echo "no" >&6; } 8306fi 8307 8308 8309 8310 8311 8312if test -z "$lt_cv_path_MAGIC_CMD"; then 8313 if test -n "$ac_tool_prefix"; then 8314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8315$as_echo_n "checking for file... " >&6; } 8316if ${lt_cv_path_MAGIC_CMD+:} false; then : 8317 $as_echo_n "(cached) " >&6 8318else 8319 case $MAGIC_CMD in 8320[\\/*] | ?:[\\/]*) 8321 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8322 ;; 8323*) 8324 lt_save_MAGIC_CMD="$MAGIC_CMD" 8325 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8326 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8327 for ac_dir in $ac_dummy; do 8328 IFS="$lt_save_ifs" 8329 test -z "$ac_dir" && ac_dir=. 8330 if test -f $ac_dir/file; then 8331 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8332 if test -n "$file_magic_test_file"; then 8333 case $deplibs_check_method in 8334 "file_magic "*) 8335 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8336 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8337 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8338 $EGREP "$file_magic_regex" > /dev/null; then 8339 : 8340 else 8341 cat <<_LT_EOF 1>&2 8342 8343*** Warning: the command libtool uses to detect shared libraries, 8344*** $file_magic_cmd, produces output that libtool cannot recognize. 8345*** The result is that libtool may fail to recognize shared libraries 8346*** as such. This will affect the creation of libtool libraries that 8347*** depend on shared libraries, but programs linked with such libtool 8348*** libraries will work regardless of this problem. Nevertheless, you 8349*** may want to report the problem to your system manager and/or to 8350*** bug-libtool@gnu.org 8351 8352_LT_EOF 8353 fi ;; 8354 esac 8355 fi 8356 break 8357 fi 8358 done 8359 IFS="$lt_save_ifs" 8360 MAGIC_CMD="$lt_save_MAGIC_CMD" 8361 ;; 8362esac 8363fi 8364 8365MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8366if test -n "$MAGIC_CMD"; then 8367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8368$as_echo "$MAGIC_CMD" >&6; } 8369else 8370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8371$as_echo "no" >&6; } 8372fi 8373 8374 8375 else 8376 MAGIC_CMD=: 8377 fi 8378fi 8379 8380 fi 8381 ;; 8382esac 8383 8384# Use C for the default configuration in the libtool script 8385 8386lt_save_CC="$CC" 8387ac_ext=c 8388ac_cpp='$CPP $CPPFLAGS' 8389ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8390ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8391ac_compiler_gnu=$ac_cv_c_compiler_gnu 8392 8393 8394# Source file extension for C test sources. 8395ac_ext=c 8396 8397# Object file extension for compiled C test sources. 8398objext=o 8399objext=$objext 8400 8401# Code to be used in simple compile tests 8402lt_simple_compile_test_code="int some_variable = 0;" 8403 8404# Code to be used in simple link tests 8405lt_simple_link_test_code='int main(){return(0);}' 8406 8407 8408 8409 8410 8411 8412 8413# If no C compiler was specified, use CC. 8414LTCC=${LTCC-"$CC"} 8415 8416# If no C compiler flags were specified, use CFLAGS. 8417LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8418 8419# Allow CC to be a program name with arguments. 8420compiler=$CC 8421 8422# Save the default compiler, since it gets overwritten when the other 8423# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8424compiler_DEFAULT=$CC 8425 8426# save warnings/boilerplate of simple test code 8427ac_outfile=conftest.$ac_objext 8428echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8429eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8430_lt_compiler_boilerplate=`cat conftest.err` 8431$RM conftest* 8432 8433ac_outfile=conftest.$ac_objext 8434echo "$lt_simple_link_test_code" >conftest.$ac_ext 8435eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8436_lt_linker_boilerplate=`cat conftest.err` 8437$RM -r conftest* 8438 8439 8440if test -n "$compiler"; then 8441 8442lt_prog_compiler_no_builtin_flag= 8443 8444if test "$GCC" = yes; then 8445 case $cc_basename in 8446 nvcc*) 8447 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8448 *) 8449 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8450 esac 8451 8452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8453$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8454if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8455 $as_echo_n "(cached) " >&6 8456else 8457 lt_cv_prog_compiler_rtti_exceptions=no 8458 ac_outfile=conftest.$ac_objext 8459 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8460 lt_compiler_flag="-fno-rtti -fno-exceptions" 8461 # Insert the option either (1) after the last *FLAGS variable, or 8462 # (2) before a word containing "conftest.", or (3) at the end. 8463 # Note that $ac_compile itself does not contain backslashes and begins 8464 # with a dollar sign (not a hyphen), so the echo should work correctly. 8465 # The option is referenced via a variable to avoid confusing sed. 8466 lt_compile=`echo "$ac_compile" | $SED \ 8467 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8468 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8469 -e 's:$: $lt_compiler_flag:'` 8470 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8471 (eval "$lt_compile" 2>conftest.err) 8472 ac_status=$? 8473 cat conftest.err >&5 8474 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8475 if (exit $ac_status) && test -s "$ac_outfile"; then 8476 # The compiler can only warn and ignore the option if not recognized 8477 # So say no if there are warnings other than the usual output. 8478 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8479 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8480 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8481 lt_cv_prog_compiler_rtti_exceptions=yes 8482 fi 8483 fi 8484 $RM conftest* 8485 8486fi 8487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8488$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8489 8490if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8491 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8492else 8493 : 8494fi 8495 8496fi 8497 8498 8499 8500 8501 8502 8503 lt_prog_compiler_wl= 8504lt_prog_compiler_pic= 8505lt_prog_compiler_static= 8506 8507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8508$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8509 8510 if test "$GCC" = yes; then 8511 lt_prog_compiler_wl='-Wl,' 8512 lt_prog_compiler_static='-static' 8513 8514 case $host_os in 8515 aix*) 8516 # All AIX code is PIC. 8517 if test "$host_cpu" = ia64; then 8518 # AIX 5 now supports IA64 processor 8519 lt_prog_compiler_static='-Bstatic' 8520 fi 8521 ;; 8522 8523 amigaos*) 8524 case $host_cpu in 8525 powerpc) 8526 # see comment about AmigaOS4 .so support 8527 lt_prog_compiler_pic='-fPIC' 8528 ;; 8529 m68k) 8530 # FIXME: we need at least 68020 code to build shared libraries, but 8531 # adding the `-m68020' flag to GCC prevents building anything better, 8532 # like `-m68040'. 8533 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8534 ;; 8535 esac 8536 ;; 8537 8538 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8539 # PIC is the default for these OSes. 8540 ;; 8541 8542 mingw* | cygwin* | pw32* | os2* | cegcc*) 8543 # This hack is so that the source file can tell whether it is being 8544 # built for inclusion in a dll (and should export symbols for example). 8545 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8546 # (--disable-auto-import) libraries 8547 lt_prog_compiler_pic='-DDLL_EXPORT' 8548 ;; 8549 8550 darwin* | rhapsody*) 8551 # PIC is the default on this platform 8552 # Common symbols not allowed in MH_DYLIB files 8553 lt_prog_compiler_pic='-fno-common' 8554 ;; 8555 8556 haiku*) 8557 # PIC is the default for Haiku. 8558 # The "-static" flag exists, but is broken. 8559 lt_prog_compiler_static= 8560 ;; 8561 8562 hpux*) 8563 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8564 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8565 # sets the default TLS model and affects inlining. 8566 case $host_cpu in 8567 hppa*64*) 8568 # +Z the default 8569 ;; 8570 *) 8571 lt_prog_compiler_pic='-fPIC' 8572 ;; 8573 esac 8574 ;; 8575 8576 interix[3-9]*) 8577 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8578 # Instead, we relocate shared libraries at runtime. 8579 ;; 8580 8581 msdosdjgpp*) 8582 # Just because we use GCC doesn't mean we suddenly get shared libraries 8583 # on systems that don't support them. 8584 lt_prog_compiler_can_build_shared=no 8585 enable_shared=no 8586 ;; 8587 8588 *nto* | *qnx*) 8589 # QNX uses GNU C++, but need to define -shared option too, otherwise 8590 # it will coredump. 8591 lt_prog_compiler_pic='-fPIC -shared' 8592 ;; 8593 8594 sysv4*MP*) 8595 if test -d /usr/nec; then 8596 lt_prog_compiler_pic=-Kconform_pic 8597 fi 8598 ;; 8599 8600 *) 8601 lt_prog_compiler_pic='-fPIC' 8602 ;; 8603 esac 8604 8605 case $cc_basename in 8606 nvcc*) # Cuda Compiler Driver 2.2 8607 lt_prog_compiler_wl='-Xlinker ' 8608 lt_prog_compiler_pic='-Xcompiler -fPIC' 8609 ;; 8610 esac 8611 else 8612 # PORTME Check for flag to pass linker flags through the system compiler. 8613 case $host_os in 8614 aix*) 8615 lt_prog_compiler_wl='-Wl,' 8616 if test "$host_cpu" = ia64; then 8617 # AIX 5 now supports IA64 processor 8618 lt_prog_compiler_static='-Bstatic' 8619 else 8620 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8621 fi 8622 ;; 8623 8624 mingw* | cygwin* | pw32* | os2* | cegcc*) 8625 # This hack is so that the source file can tell whether it is being 8626 # built for inclusion in a dll (and should export symbols for example). 8627 lt_prog_compiler_pic='-DDLL_EXPORT' 8628 ;; 8629 8630 hpux9* | hpux10* | hpux11*) 8631 lt_prog_compiler_wl='-Wl,' 8632 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8633 # not for PA HP-UX. 8634 case $host_cpu in 8635 hppa*64*|ia64*) 8636 # +Z the default 8637 ;; 8638 *) 8639 lt_prog_compiler_pic='+Z' 8640 ;; 8641 esac 8642 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8643 lt_prog_compiler_static='${wl}-a ${wl}archive' 8644 ;; 8645 8646 irix5* | irix6* | nonstopux*) 8647 lt_prog_compiler_wl='-Wl,' 8648 # PIC (with -KPIC) is the default. 8649 lt_prog_compiler_static='-non_shared' 8650 ;; 8651 8652 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8653 case $cc_basename in 8654 # old Intel for x86_64 which still supported -KPIC. 8655 ecc*) 8656 lt_prog_compiler_wl='-Wl,' 8657 lt_prog_compiler_pic='-KPIC' 8658 lt_prog_compiler_static='-static' 8659 ;; 8660 # icc used to be incompatible with GCC. 8661 # ICC 10 doesn't accept -KPIC any more. 8662 icc* | ifort*) 8663 lt_prog_compiler_wl='-Wl,' 8664 lt_prog_compiler_pic='-fPIC' 8665 lt_prog_compiler_static='-static' 8666 ;; 8667 # Lahey Fortran 8.1. 8668 lf95*) 8669 lt_prog_compiler_wl='-Wl,' 8670 lt_prog_compiler_pic='--shared' 8671 lt_prog_compiler_static='--static' 8672 ;; 8673 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8674 # Portland Group compilers (*not* the Pentium gcc compiler, 8675 # which looks to be a dead project) 8676 lt_prog_compiler_wl='-Wl,' 8677 lt_prog_compiler_pic='-fpic' 8678 lt_prog_compiler_static='-Bstatic' 8679 ;; 8680 ccc*) 8681 lt_prog_compiler_wl='-Wl,' 8682 # All Alpha code is PIC. 8683 lt_prog_compiler_static='-non_shared' 8684 ;; 8685 xl* | bgxl* | bgf* | mpixl*) 8686 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8687 lt_prog_compiler_wl='-Wl,' 8688 lt_prog_compiler_pic='-qpic' 8689 lt_prog_compiler_static='-qstaticlink' 8690 ;; 8691 *) 8692 case `$CC -V 2>&1 | sed 5q` in 8693 *Sun\ F* | *Sun*Fortran*) 8694 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8695 lt_prog_compiler_pic='-KPIC' 8696 lt_prog_compiler_static='-Bstatic' 8697 lt_prog_compiler_wl='' 8698 ;; 8699 *Sun\ C*) 8700 # Sun C 5.9 8701 lt_prog_compiler_pic='-KPIC' 8702 lt_prog_compiler_static='-Bstatic' 8703 lt_prog_compiler_wl='-Wl,' 8704 ;; 8705 esac 8706 ;; 8707 esac 8708 ;; 8709 8710 newsos6) 8711 lt_prog_compiler_pic='-KPIC' 8712 lt_prog_compiler_static='-Bstatic' 8713 ;; 8714 8715 *nto* | *qnx*) 8716 # QNX uses GNU C++, but need to define -shared option too, otherwise 8717 # it will coredump. 8718 lt_prog_compiler_pic='-fPIC -shared' 8719 ;; 8720 8721 osf3* | osf4* | osf5*) 8722 lt_prog_compiler_wl='-Wl,' 8723 # All OSF/1 code is PIC. 8724 lt_prog_compiler_static='-non_shared' 8725 ;; 8726 8727 rdos*) 8728 lt_prog_compiler_static='-non_shared' 8729 ;; 8730 8731 solaris*) 8732 lt_prog_compiler_pic='-KPIC' 8733 lt_prog_compiler_static='-Bstatic' 8734 case $cc_basename in 8735 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8736 lt_prog_compiler_wl='-Qoption ld ';; 8737 *) 8738 lt_prog_compiler_wl='-Wl,';; 8739 esac 8740 ;; 8741 8742 sunos4*) 8743 lt_prog_compiler_wl='-Qoption ld ' 8744 lt_prog_compiler_pic='-PIC' 8745 lt_prog_compiler_static='-Bstatic' 8746 ;; 8747 8748 sysv4 | sysv4.2uw2* | sysv4.3*) 8749 lt_prog_compiler_wl='-Wl,' 8750 lt_prog_compiler_pic='-KPIC' 8751 lt_prog_compiler_static='-Bstatic' 8752 ;; 8753 8754 sysv4*MP*) 8755 if test -d /usr/nec ;then 8756 lt_prog_compiler_pic='-Kconform_pic' 8757 lt_prog_compiler_static='-Bstatic' 8758 fi 8759 ;; 8760 8761 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8762 lt_prog_compiler_wl='-Wl,' 8763 lt_prog_compiler_pic='-KPIC' 8764 lt_prog_compiler_static='-Bstatic' 8765 ;; 8766 8767 unicos*) 8768 lt_prog_compiler_wl='-Wl,' 8769 lt_prog_compiler_can_build_shared=no 8770 ;; 8771 8772 uts4*) 8773 lt_prog_compiler_pic='-pic' 8774 lt_prog_compiler_static='-Bstatic' 8775 ;; 8776 8777 *) 8778 lt_prog_compiler_can_build_shared=no 8779 ;; 8780 esac 8781 fi 8782 8783case $host_os in 8784 # For platforms which do not support PIC, -DPIC is meaningless: 8785 *djgpp*) 8786 lt_prog_compiler_pic= 8787 ;; 8788 *) 8789 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8790 ;; 8791esac 8792{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8793$as_echo "$lt_prog_compiler_pic" >&6; } 8794 8795 8796 8797 8798 8799 8800# 8801# Check to make sure the PIC flag actually works. 8802# 8803if test -n "$lt_prog_compiler_pic"; then 8804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8805$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8806if ${lt_cv_prog_compiler_pic_works+:} false; then : 8807 $as_echo_n "(cached) " >&6 8808else 8809 lt_cv_prog_compiler_pic_works=no 8810 ac_outfile=conftest.$ac_objext 8811 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8812 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8813 # Insert the option either (1) after the last *FLAGS variable, or 8814 # (2) before a word containing "conftest.", or (3) at the end. 8815 # Note that $ac_compile itself does not contain backslashes and begins 8816 # with a dollar sign (not a hyphen), so the echo should work correctly. 8817 # The option is referenced via a variable to avoid confusing sed. 8818 lt_compile=`echo "$ac_compile" | $SED \ 8819 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8820 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8821 -e 's:$: $lt_compiler_flag:'` 8822 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8823 (eval "$lt_compile" 2>conftest.err) 8824 ac_status=$? 8825 cat conftest.err >&5 8826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8827 if (exit $ac_status) && test -s "$ac_outfile"; then 8828 # The compiler can only warn and ignore the option if not recognized 8829 # So say no if there are warnings other than the usual output. 8830 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8831 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8832 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8833 lt_cv_prog_compiler_pic_works=yes 8834 fi 8835 fi 8836 $RM conftest* 8837 8838fi 8839{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8840$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8841 8842if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8843 case $lt_prog_compiler_pic in 8844 "" | " "*) ;; 8845 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8846 esac 8847else 8848 lt_prog_compiler_pic= 8849 lt_prog_compiler_can_build_shared=no 8850fi 8851 8852fi 8853 8854 8855 8856 8857 8858 8859# 8860# Check to make sure the static flag actually works. 8861# 8862wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8864$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8865if ${lt_cv_prog_compiler_static_works+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 lt_cv_prog_compiler_static_works=no 8869 save_LDFLAGS="$LDFLAGS" 8870 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8871 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8872 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8873 # The linker can only warn and ignore the option if not recognized 8874 # So say no if there are warnings 8875 if test -s conftest.err; then 8876 # Append any errors to the config.log. 8877 cat conftest.err 1>&5 8878 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8879 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8880 if diff conftest.exp conftest.er2 >/dev/null; then 8881 lt_cv_prog_compiler_static_works=yes 8882 fi 8883 else 8884 lt_cv_prog_compiler_static_works=yes 8885 fi 8886 fi 8887 $RM -r conftest* 8888 LDFLAGS="$save_LDFLAGS" 8889 8890fi 8891{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8892$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8893 8894if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8895 : 8896else 8897 lt_prog_compiler_static= 8898fi 8899 8900 8901 8902 8903 8904 8905 8906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8907$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8908if ${lt_cv_prog_compiler_c_o+:} false; then : 8909 $as_echo_n "(cached) " >&6 8910else 8911 lt_cv_prog_compiler_c_o=no 8912 $RM -r conftest 2>/dev/null 8913 mkdir conftest 8914 cd conftest 8915 mkdir out 8916 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8917 8918 lt_compiler_flag="-o out/conftest2.$ac_objext" 8919 # Insert the option either (1) after the last *FLAGS variable, or 8920 # (2) before a word containing "conftest.", or (3) at the end. 8921 # Note that $ac_compile itself does not contain backslashes and begins 8922 # with a dollar sign (not a hyphen), so the echo should work correctly. 8923 lt_compile=`echo "$ac_compile" | $SED \ 8924 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8925 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8926 -e 's:$: $lt_compiler_flag:'` 8927 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8928 (eval "$lt_compile" 2>out/conftest.err) 8929 ac_status=$? 8930 cat out/conftest.err >&5 8931 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8932 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8933 then 8934 # The compiler can only warn and ignore the option if not recognized 8935 # So say no if there are warnings 8936 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8937 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8938 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8939 lt_cv_prog_compiler_c_o=yes 8940 fi 8941 fi 8942 chmod u+w . 2>&5 8943 $RM conftest* 8944 # SGI C++ compiler will create directory out/ii_files/ for 8945 # template instantiation 8946 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8947 $RM out/* && rmdir out 8948 cd .. 8949 $RM -r conftest 8950 $RM conftest* 8951 8952fi 8953{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8954$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8955 8956 8957 8958 8959 8960 8961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8962$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8963if ${lt_cv_prog_compiler_c_o+:} false; then : 8964 $as_echo_n "(cached) " >&6 8965else 8966 lt_cv_prog_compiler_c_o=no 8967 $RM -r conftest 2>/dev/null 8968 mkdir conftest 8969 cd conftest 8970 mkdir out 8971 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8972 8973 lt_compiler_flag="-o out/conftest2.$ac_objext" 8974 # Insert the option either (1) after the last *FLAGS variable, or 8975 # (2) before a word containing "conftest.", or (3) at the end. 8976 # Note that $ac_compile itself does not contain backslashes and begins 8977 # with a dollar sign (not a hyphen), so the echo should work correctly. 8978 lt_compile=`echo "$ac_compile" | $SED \ 8979 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8980 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8981 -e 's:$: $lt_compiler_flag:'` 8982 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8983 (eval "$lt_compile" 2>out/conftest.err) 8984 ac_status=$? 8985 cat out/conftest.err >&5 8986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8987 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8988 then 8989 # The compiler can only warn and ignore the option if not recognized 8990 # So say no if there are warnings 8991 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8992 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8993 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8994 lt_cv_prog_compiler_c_o=yes 8995 fi 8996 fi 8997 chmod u+w . 2>&5 8998 $RM conftest* 8999 # SGI C++ compiler will create directory out/ii_files/ for 9000 # template instantiation 9001 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 9002 $RM out/* && rmdir out 9003 cd .. 9004 $RM -r conftest 9005 $RM conftest* 9006 9007fi 9008{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 9009$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 9010 9011 9012 9013 9014hard_links="nottested" 9015if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 9016 # do not overwrite the value of need_locks provided by the user 9017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 9018$as_echo_n "checking if we can lock with hard links... " >&6; } 9019 hard_links=yes 9020 $RM conftest* 9021 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9022 touch conftest.a 9023 ln conftest.a conftest.b 2>&5 || hard_links=no 9024 ln conftest.a conftest.b 2>/dev/null && hard_links=no 9025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 9026$as_echo "$hard_links" >&6; } 9027 if test "$hard_links" = no; then 9028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 9029$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 9030 need_locks=warn 9031 fi 9032else 9033 need_locks=no 9034fi 9035 9036 9037 9038 9039 9040 9041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9042$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 9043 9044 runpath_var= 9045 allow_undefined_flag= 9046 always_export_symbols=no 9047 archive_cmds= 9048 archive_expsym_cmds= 9049 compiler_needs_object=no 9050 enable_shared_with_static_runtimes=no 9051 export_dynamic_flag_spec= 9052 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 9053 hardcode_automatic=no 9054 hardcode_direct=no 9055 hardcode_direct_absolute=no 9056 hardcode_libdir_flag_spec= 9057 hardcode_libdir_flag_spec_ld= 9058 hardcode_libdir_separator= 9059 hardcode_minus_L=no 9060 hardcode_shlibpath_var=unsupported 9061 inherit_rpath=no 9062 link_all_deplibs=unknown 9063 module_cmds= 9064 module_expsym_cmds= 9065 old_archive_from_new_cmds= 9066 old_archive_from_expsyms_cmds= 9067 thread_safe_flag_spec= 9068 whole_archive_flag_spec= 9069 # include_expsyms should be a list of space-separated symbols to be *always* 9070 # included in the symbol list 9071 include_expsyms= 9072 # exclude_expsyms can be an extended regexp of symbols to exclude 9073 # it will be wrapped by ` (' and `)$', so one must not match beginning or 9074 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 9075 # as well as any symbol that contains `d'. 9076 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 9077 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 9078 # platforms (ab)use it in PIC code, but their linkers get confused if 9079 # the symbol is explicitly referenced. Since portable code cannot 9080 # rely on this symbol name, it's probably fine to never include it in 9081 # preloaded symbol tables. 9082 # Exclude shared library initialization/finalization symbols. 9083 extract_expsyms_cmds= 9084 9085 case $host_os in 9086 cygwin* | mingw* | pw32* | cegcc*) 9087 # FIXME: the MSVC++ port hasn't been tested in a loooong time 9088 # When not using gcc, we currently assume that we are using 9089 # Microsoft Visual C++. 9090 if test "$GCC" != yes; then 9091 with_gnu_ld=no 9092 fi 9093 ;; 9094 interix*) 9095 # we just hope/assume this is gcc and not c89 (= MSVC++) 9096 with_gnu_ld=yes 9097 ;; 9098 openbsd*) 9099 with_gnu_ld=no 9100 ;; 9101 esac 9102 9103 ld_shlibs=yes 9104 9105 # On some targets, GNU ld is compatible enough with the native linker 9106 # that we're better off using the native interface for both. 9107 lt_use_gnu_ld_interface=no 9108 if test "$with_gnu_ld" = yes; then 9109 case $host_os in 9110 aix*) 9111 # The AIX port of GNU ld has always aspired to compatibility 9112 # with the native linker. However, as the warning in the GNU ld 9113 # block says, versions before 2.19.5* couldn't really create working 9114 # shared libraries, regardless of the interface used. 9115 case `$LD -v 2>&1` in 9116 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 9117 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 9118 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 9119 *) 9120 lt_use_gnu_ld_interface=yes 9121 ;; 9122 esac 9123 ;; 9124 *) 9125 lt_use_gnu_ld_interface=yes 9126 ;; 9127 esac 9128 fi 9129 9130 if test "$lt_use_gnu_ld_interface" = yes; then 9131 # If archive_cmds runs LD, not CC, wlarc should be empty 9132 wlarc='${wl}' 9133 9134 # Set some defaults for GNU ld with shared library support. These 9135 # are reset later if shared libraries are not supported. Putting them 9136 # here allows them to be overridden if necessary. 9137 runpath_var=LD_RUN_PATH 9138 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9139 export_dynamic_flag_spec='${wl}--export-dynamic' 9140 # ancient GNU ld didn't support --whole-archive et. al. 9141 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 9142 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9143 else 9144 whole_archive_flag_spec= 9145 fi 9146 supports_anon_versioning=no 9147 case `$LD -v 2>&1` in 9148 *GNU\ gold*) supports_anon_versioning=yes ;; 9149 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 9150 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 9151 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 9152 *\ 2.11.*) ;; # other 2.11 versions 9153 *) supports_anon_versioning=yes ;; 9154 esac 9155 9156 # See if GNU ld supports shared libraries. 9157 case $host_os in 9158 aix[3-9]*) 9159 # On AIX/PPC, the GNU linker is very broken 9160 if test "$host_cpu" != ia64; then 9161 ld_shlibs=no 9162 cat <<_LT_EOF 1>&2 9163 9164*** Warning: the GNU linker, at least up to release 2.19, is reported 9165*** to be unable to reliably create shared libraries on AIX. 9166*** Therefore, libtool is disabling shared libraries support. If you 9167*** really care for shared libraries, you may want to install binutils 9168*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 9169*** You will then need to restart the configuration process. 9170 9171_LT_EOF 9172 fi 9173 ;; 9174 9175 amigaos*) 9176 case $host_cpu in 9177 powerpc) 9178 # see comment about AmigaOS4 .so support 9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9180 archive_expsym_cmds='' 9181 ;; 9182 m68k) 9183 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)' 9184 hardcode_libdir_flag_spec='-L$libdir' 9185 hardcode_minus_L=yes 9186 ;; 9187 esac 9188 ;; 9189 9190 beos*) 9191 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9192 allow_undefined_flag=unsupported 9193 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9194 # support --undefined. This deserves some investigation. FIXME 9195 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9196 else 9197 ld_shlibs=no 9198 fi 9199 ;; 9200 9201 cygwin* | mingw* | pw32* | cegcc*) 9202 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9203 # as there is no search path for DLLs. 9204 hardcode_libdir_flag_spec='-L$libdir' 9205 export_dynamic_flag_spec='${wl}--export-all-symbols' 9206 allow_undefined_flag=unsupported 9207 always_export_symbols=no 9208 enable_shared_with_static_runtimes=yes 9209 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9210 9211 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9212 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9213 # If the export-symbols file already is a .def file (1st line 9214 # is EXPORTS), use it as is; otherwise, prepend... 9215 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9216 cp $export_symbols $output_objdir/$soname.def; 9217 else 9218 echo EXPORTS > $output_objdir/$soname.def; 9219 cat $export_symbols >> $output_objdir/$soname.def; 9220 fi~ 9221 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9222 else 9223 ld_shlibs=no 9224 fi 9225 ;; 9226 9227 haiku*) 9228 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9229 link_all_deplibs=yes 9230 ;; 9231 9232 interix[3-9]*) 9233 hardcode_direct=no 9234 hardcode_shlibpath_var=no 9235 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9236 export_dynamic_flag_spec='${wl}-E' 9237 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9238 # Instead, shared libraries are loaded at an image base (0x10000000 by 9239 # default) and relocated if they conflict, which is a slow very memory 9240 # consuming and fragmenting process. To avoid this, we pick a random, 9241 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9242 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9243 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9244 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' 9245 ;; 9246 9247 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9248 tmp_diet=no 9249 if test "$host_os" = linux-dietlibc; then 9250 case $cc_basename in 9251 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9252 esac 9253 fi 9254 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9255 && test "$tmp_diet" = no 9256 then 9257 tmp_addflag= 9258 tmp_sharedflag='-shared' 9259 case $cc_basename,$host_cpu in 9260 pgcc*) # Portland Group C compiler 9261 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' 9262 tmp_addflag=' $pic_flag' 9263 ;; 9264 pgf77* | pgf90* | pgf95* | pgfortran*) 9265 # Portland Group f77 and f90 compilers 9266 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' 9267 tmp_addflag=' $pic_flag -Mnomain' ;; 9268 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9269 tmp_addflag=' -i_dynamic' ;; 9270 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9271 tmp_addflag=' -i_dynamic -nofor_main' ;; 9272 ifc* | ifort*) # Intel Fortran compiler 9273 tmp_addflag=' -nofor_main' ;; 9274 lf95*) # Lahey Fortran 8.1 9275 whole_archive_flag_spec= 9276 tmp_sharedflag='--shared' ;; 9277 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9278 tmp_sharedflag='-qmkshrobj' 9279 tmp_addflag= ;; 9280 nvcc*) # Cuda Compiler Driver 2.2 9281 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' 9282 compiler_needs_object=yes 9283 ;; 9284 esac 9285 case `$CC -V 2>&1 | sed 5q` in 9286 *Sun\ C*) # Sun C 5.9 9287 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' 9288 compiler_needs_object=yes 9289 tmp_sharedflag='-G' ;; 9290 *Sun\ F*) # Sun Fortran 8.3 9291 tmp_sharedflag='-G' ;; 9292 esac 9293 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9294 9295 if test "x$supports_anon_versioning" = xyes; then 9296 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9297 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9298 echo "local: *; };" >> $output_objdir/$libname.ver~ 9299 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9300 fi 9301 9302 case $cc_basename in 9303 xlf* | bgf* | bgxlf* | mpixlf*) 9304 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9305 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9306 hardcode_libdir_flag_spec= 9307 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9308 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9309 if test "x$supports_anon_versioning" = xyes; then 9310 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9311 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9312 echo "local: *; };" >> $output_objdir/$libname.ver~ 9313 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9314 fi 9315 ;; 9316 esac 9317 else 9318 ld_shlibs=no 9319 fi 9320 ;; 9321 9322 netbsd*) 9323 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9324 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9325 wlarc= 9326 else 9327 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9328 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9329 fi 9330 ;; 9331 9332 solaris*) 9333 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9334 ld_shlibs=no 9335 cat <<_LT_EOF 1>&2 9336 9337*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9338*** create shared libraries on Solaris systems. Therefore, libtool 9339*** is disabling shared libraries support. We urge you to upgrade GNU 9340*** binutils to release 2.9.1 or newer. Another option is to modify 9341*** your PATH or compiler configuration so that the native linker is 9342*** used, and then restart. 9343 9344_LT_EOF 9345 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9346 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9347 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9348 else 9349 ld_shlibs=no 9350 fi 9351 ;; 9352 9353 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9354 case `$LD -v 2>&1` in 9355 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9356 ld_shlibs=no 9357 cat <<_LT_EOF 1>&2 9358 9359*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9360*** reliably create shared libraries on SCO systems. Therefore, libtool 9361*** is disabling shared libraries support. We urge you to upgrade GNU 9362*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9363*** your PATH or compiler configuration so that the native linker is 9364*** used, and then restart. 9365 9366_LT_EOF 9367 ;; 9368 *) 9369 # For security reasons, it is highly recommended that you always 9370 # use absolute paths for naming shared libraries, and exclude the 9371 # DT_RUNPATH tag from executables and libraries. But doing so 9372 # requires that you compile everything twice, which is a pain. 9373 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9374 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9375 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9376 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9377 else 9378 ld_shlibs=no 9379 fi 9380 ;; 9381 esac 9382 ;; 9383 9384 sunos4*) 9385 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9386 wlarc= 9387 hardcode_direct=yes 9388 hardcode_shlibpath_var=no 9389 ;; 9390 9391 *) 9392 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9393 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9394 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9395 else 9396 ld_shlibs=no 9397 fi 9398 ;; 9399 esac 9400 9401 if test "$ld_shlibs" = no; then 9402 runpath_var= 9403 hardcode_libdir_flag_spec= 9404 export_dynamic_flag_spec= 9405 whole_archive_flag_spec= 9406 fi 9407 else 9408 # PORTME fill in a description of your system's linker (not GNU ld) 9409 case $host_os in 9410 aix3*) 9411 allow_undefined_flag=unsupported 9412 always_export_symbols=yes 9413 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' 9414 # Note: this linker hardcodes the directories in LIBPATH if there 9415 # are no directories specified by -L. 9416 hardcode_minus_L=yes 9417 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9418 # Neither direct hardcoding nor static linking is supported with a 9419 # broken collect2. 9420 hardcode_direct=unsupported 9421 fi 9422 ;; 9423 9424 aix[4-9]*) 9425 if test "$host_cpu" = ia64; then 9426 # On IA64, the linker does run time linking by default, so we don't 9427 # have to do anything special. 9428 aix_use_runtimelinking=no 9429 exp_sym_flag='-Bexport' 9430 no_entry_flag="" 9431 else 9432 # If we're using GNU nm, then we don't want the "-C" option. 9433 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9434 # Also, AIX nm treats weak defined symbols like other global 9435 # defined symbols, whereas GNU nm marks them as "W". 9436 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9437 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' 9438 else 9439 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' 9440 fi 9441 aix_use_runtimelinking=no 9442 9443 # Test if we are trying to use run time linking or normal 9444 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9445 # need to do runtime linking. 9446 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9447 for ld_flag in $LDFLAGS; do 9448 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9449 aix_use_runtimelinking=yes 9450 break 9451 fi 9452 done 9453 ;; 9454 esac 9455 9456 exp_sym_flag='-bexport' 9457 no_entry_flag='-bnoentry' 9458 fi 9459 9460 # When large executables or shared objects are built, AIX ld can 9461 # have problems creating the table of contents. If linking a library 9462 # or program results in "error TOC overflow" add -mminimal-toc to 9463 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9464 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9465 9466 archive_cmds='' 9467 hardcode_direct=yes 9468 hardcode_direct_absolute=yes 9469 hardcode_libdir_separator=':' 9470 link_all_deplibs=yes 9471 file_list_spec='${wl}-f,' 9472 9473 if test "$GCC" = yes; then 9474 case $host_os in aix4.[012]|aix4.[012].*) 9475 # We only want to do this on AIX 4.2 and lower, the check 9476 # below for broken collect2 doesn't work under 4.3+ 9477 collect2name=`${CC} -print-prog-name=collect2` 9478 if test -f "$collect2name" && 9479 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9480 then 9481 # We have reworked collect2 9482 : 9483 else 9484 # We have old collect2 9485 hardcode_direct=unsupported 9486 # It fails to find uninstalled libraries when the uninstalled 9487 # path is not listed in the libpath. Setting hardcode_minus_L 9488 # to unsupported forces relinking 9489 hardcode_minus_L=yes 9490 hardcode_libdir_flag_spec='-L$libdir' 9491 hardcode_libdir_separator= 9492 fi 9493 ;; 9494 esac 9495 shared_flag='-shared' 9496 if test "$aix_use_runtimelinking" = yes; then 9497 shared_flag="$shared_flag "'${wl}-G' 9498 fi 9499 else 9500 # not using gcc 9501 if test "$host_cpu" = ia64; then 9502 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9503 # chokes on -Wl,-G. The following line is correct: 9504 shared_flag='-G' 9505 else 9506 if test "$aix_use_runtimelinking" = yes; then 9507 shared_flag='${wl}-G' 9508 else 9509 shared_flag='${wl}-bM:SRE' 9510 fi 9511 fi 9512 fi 9513 9514 export_dynamic_flag_spec='${wl}-bexpall' 9515 # It seems that -bexpall does not export symbols beginning with 9516 # underscore (_), so it is better to generate a list of symbols to export. 9517 always_export_symbols=yes 9518 if test "$aix_use_runtimelinking" = yes; then 9519 # Warning - without using the other runtime loading flags (-brtl), 9520 # -berok will link without error, but may produce a broken library. 9521 allow_undefined_flag='-berok' 9522 # Determine the default libpath from the value encoded in an 9523 # empty executable. 9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9525/* end confdefs.h. */ 9526 9527int 9528main () 9529{ 9530 9531 ; 9532 return 0; 9533} 9534_ACEOF 9535if ac_fn_c_try_link "$LINENO"; then : 9536 9537lt_aix_libpath_sed=' 9538 /Import File Strings/,/^$/ { 9539 /^0/ { 9540 s/^0 *\(.*\)$/\1/ 9541 p 9542 } 9543 }' 9544aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9545# Check for a 64-bit object if we didn't find anything. 9546if test -z "$aix_libpath"; then 9547 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9548fi 9549fi 9550rm -f core conftest.err conftest.$ac_objext \ 9551 conftest$ac_exeext conftest.$ac_ext 9552if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9553 9554 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9555 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" 9556 else 9557 if test "$host_cpu" = ia64; then 9558 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9559 allow_undefined_flag="-z nodefs" 9560 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" 9561 else 9562 # Determine the default libpath from the value encoded in an 9563 # empty executable. 9564 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9565/* end confdefs.h. */ 9566 9567int 9568main () 9569{ 9570 9571 ; 9572 return 0; 9573} 9574_ACEOF 9575if ac_fn_c_try_link "$LINENO"; then : 9576 9577lt_aix_libpath_sed=' 9578 /Import File Strings/,/^$/ { 9579 /^0/ { 9580 s/^0 *\(.*\)$/\1/ 9581 p 9582 } 9583 }' 9584aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9585# Check for a 64-bit object if we didn't find anything. 9586if test -z "$aix_libpath"; then 9587 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9588fi 9589fi 9590rm -f core conftest.err conftest.$ac_objext \ 9591 conftest$ac_exeext conftest.$ac_ext 9592if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9593 9594 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9595 # Warning - without using the other run time loading flags, 9596 # -berok will link without error, but may produce a broken library. 9597 no_undefined_flag=' ${wl}-bernotok' 9598 allow_undefined_flag=' ${wl}-berok' 9599 if test "$with_gnu_ld" = yes; then 9600 # We only use this code for GNU lds that support --whole-archive. 9601 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9602 else 9603 # Exported symbols can be pulled into shared objects from archives 9604 whole_archive_flag_spec='$convenience' 9605 fi 9606 archive_cmds_need_lc=yes 9607 # This is similar to how AIX traditionally builds its shared libraries. 9608 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' 9609 fi 9610 fi 9611 ;; 9612 9613 amigaos*) 9614 case $host_cpu in 9615 powerpc) 9616 # see comment about AmigaOS4 .so support 9617 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9618 archive_expsym_cmds='' 9619 ;; 9620 m68k) 9621 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)' 9622 hardcode_libdir_flag_spec='-L$libdir' 9623 hardcode_minus_L=yes 9624 ;; 9625 esac 9626 ;; 9627 9628 bsdi[45]*) 9629 export_dynamic_flag_spec=-rdynamic 9630 ;; 9631 9632 cygwin* | mingw* | pw32* | cegcc*) 9633 # When not using gcc, we currently assume that we are using 9634 # Microsoft Visual C++. 9635 # hardcode_libdir_flag_spec is actually meaningless, as there is 9636 # no search path for DLLs. 9637 hardcode_libdir_flag_spec=' ' 9638 allow_undefined_flag=unsupported 9639 # Tell ltmain to make .lib files, not .a files. 9640 libext=lib 9641 # Tell ltmain to make .dll files, not .so files. 9642 shrext_cmds=".dll" 9643 # FIXME: Setting linknames here is a bad hack. 9644 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9645 # The linker will automatically build a .lib file if we build a DLL. 9646 old_archive_from_new_cmds='true' 9647 # FIXME: Should let the user specify the lib program. 9648 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9649 fix_srcfile_path='`cygpath -w "$srcfile"`' 9650 enable_shared_with_static_runtimes=yes 9651 ;; 9652 9653 darwin* | rhapsody*) 9654 9655 9656 archive_cmds_need_lc=no 9657 hardcode_direct=no 9658 hardcode_automatic=yes 9659 hardcode_shlibpath_var=unsupported 9660 if test "$lt_cv_ld_force_load" = "yes"; then 9661 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\"`' 9662 else 9663 whole_archive_flag_spec='' 9664 fi 9665 link_all_deplibs=yes 9666 allow_undefined_flag="$_lt_dar_allow_undefined" 9667 case $cc_basename in 9668 ifort*) _lt_dar_can_shared=yes ;; 9669 *) _lt_dar_can_shared=$GCC ;; 9670 esac 9671 if test "$_lt_dar_can_shared" = "yes"; then 9672 output_verbose_link_cmd=func_echo_all 9673 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9674 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9675 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}" 9676 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}" 9677 9678 else 9679 ld_shlibs=no 9680 fi 9681 9682 ;; 9683 9684 dgux*) 9685 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9686 hardcode_libdir_flag_spec='-L$libdir' 9687 hardcode_shlibpath_var=no 9688 ;; 9689 9690 freebsd1*) 9691 ld_shlibs=no 9692 ;; 9693 9694 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9695 # support. Future versions do this automatically, but an explicit c++rt0.o 9696 # does not break anything, and helps significantly (at the cost of a little 9697 # extra space). 9698 freebsd2.2*) 9699 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9700 hardcode_libdir_flag_spec='-R$libdir' 9701 hardcode_direct=yes 9702 hardcode_shlibpath_var=no 9703 ;; 9704 9705 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9706 freebsd2*) 9707 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9708 hardcode_direct=yes 9709 hardcode_minus_L=yes 9710 hardcode_shlibpath_var=no 9711 ;; 9712 9713 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9714 freebsd* | dragonfly*) 9715 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9716 hardcode_libdir_flag_spec='-R$libdir' 9717 hardcode_direct=yes 9718 hardcode_shlibpath_var=no 9719 ;; 9720 9721 hpux9*) 9722 if test "$GCC" = yes; then 9723 archive_cmds='$RM $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9724 else 9725 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' 9726 fi 9727 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9728 hardcode_libdir_separator=: 9729 hardcode_direct=yes 9730 9731 # hardcode_minus_L: Not really in the search PATH, 9732 # but as the default location of the library. 9733 hardcode_minus_L=yes 9734 export_dynamic_flag_spec='${wl}-E' 9735 ;; 9736 9737 hpux10*) 9738 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9739 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9740 else 9741 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9742 fi 9743 if test "$with_gnu_ld" = no; then 9744 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9745 hardcode_libdir_flag_spec_ld='+b $libdir' 9746 hardcode_libdir_separator=: 9747 hardcode_direct=yes 9748 hardcode_direct_absolute=yes 9749 export_dynamic_flag_spec='${wl}-E' 9750 # hardcode_minus_L: Not really in the search PATH, 9751 # but as the default location of the library. 9752 hardcode_minus_L=yes 9753 fi 9754 ;; 9755 9756 hpux11*) 9757 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9758 case $host_cpu in 9759 hppa*64*) 9760 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9761 ;; 9762 ia64*) 9763 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9764 ;; 9765 *) 9766 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9767 ;; 9768 esac 9769 else 9770 case $host_cpu in 9771 hppa*64*) 9772 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9773 ;; 9774 ia64*) 9775 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9776 ;; 9777 *) 9778 9779 # Older versions of the 11.00 compiler do not understand -b yet 9780 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9782$as_echo_n "checking if $CC understands -b... " >&6; } 9783if ${lt_cv_prog_compiler__b+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 lt_cv_prog_compiler__b=no 9787 save_LDFLAGS="$LDFLAGS" 9788 LDFLAGS="$LDFLAGS -b" 9789 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9790 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9791 # The linker can only warn and ignore the option if not recognized 9792 # So say no if there are warnings 9793 if test -s conftest.err; then 9794 # Append any errors to the config.log. 9795 cat conftest.err 1>&5 9796 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9797 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9798 if diff conftest.exp conftest.er2 >/dev/null; then 9799 lt_cv_prog_compiler__b=yes 9800 fi 9801 else 9802 lt_cv_prog_compiler__b=yes 9803 fi 9804 fi 9805 $RM -r conftest* 9806 LDFLAGS="$save_LDFLAGS" 9807 9808fi 9809{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9810$as_echo "$lt_cv_prog_compiler__b" >&6; } 9811 9812if test x"$lt_cv_prog_compiler__b" = xyes; then 9813 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9814else 9815 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9816fi 9817 9818 ;; 9819 esac 9820 fi 9821 if test "$with_gnu_ld" = no; then 9822 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9823 hardcode_libdir_separator=: 9824 9825 case $host_cpu in 9826 hppa*64*|ia64*) 9827 hardcode_direct=no 9828 hardcode_shlibpath_var=no 9829 ;; 9830 *) 9831 hardcode_direct=yes 9832 hardcode_direct_absolute=yes 9833 export_dynamic_flag_spec='${wl}-E' 9834 9835 # hardcode_minus_L: Not really in the search PATH, 9836 # but as the default location of the library. 9837 hardcode_minus_L=yes 9838 ;; 9839 esac 9840 fi 9841 ;; 9842 9843 irix5* | irix6* | nonstopux*) 9844 if test "$GCC" = yes; then 9845 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9846 # Try to use the -exported_symbol ld option, if it does not 9847 # work, assume that -exports_file does not work either and 9848 # implicitly export all symbols. 9849 save_LDFLAGS="$LDFLAGS" 9850 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9852/* end confdefs.h. */ 9853int foo(void) {} 9854_ACEOF 9855if ac_fn_c_try_link "$LINENO"; then : 9856 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9857 9858fi 9859rm -f core conftest.err conftest.$ac_objext \ 9860 conftest$ac_exeext conftest.$ac_ext 9861 LDFLAGS="$save_LDFLAGS" 9862 else 9863 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' 9864 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' 9865 fi 9866 archive_cmds_need_lc='no' 9867 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9868 hardcode_libdir_separator=: 9869 inherit_rpath=yes 9870 link_all_deplibs=yes 9871 ;; 9872 9873 netbsd*) 9874 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9875 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9876 else 9877 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9878 fi 9879 hardcode_libdir_flag_spec='-R$libdir' 9880 hardcode_direct=yes 9881 hardcode_shlibpath_var=no 9882 ;; 9883 9884 newsos6) 9885 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9886 hardcode_direct=yes 9887 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9888 hardcode_libdir_separator=: 9889 hardcode_shlibpath_var=no 9890 ;; 9891 9892 *nto* | *qnx*) 9893 ;; 9894 9895 openbsd*) 9896 if test -f /usr/libexec/ld.so; then 9897 hardcode_direct=yes 9898 hardcode_shlibpath_var=no 9899 hardcode_direct_absolute=yes 9900 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9901 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9902 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9903 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9904 export_dynamic_flag_spec='${wl}-E' 9905 else 9906 case $host_os in 9907 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9908 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9909 hardcode_libdir_flag_spec='-R$libdir' 9910 ;; 9911 *) 9912 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9913 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9914 ;; 9915 esac 9916 fi 9917 else 9918 ld_shlibs=no 9919 fi 9920 ;; 9921 9922 os2*) 9923 hardcode_libdir_flag_spec='-L$libdir' 9924 hardcode_minus_L=yes 9925 allow_undefined_flag=unsupported 9926 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' 9927 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9928 ;; 9929 9930 osf3*) 9931 if test "$GCC" = yes; then 9932 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9933 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' 9934 else 9935 allow_undefined_flag=' -expect_unresolved \*' 9936 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' 9937 fi 9938 archive_cmds_need_lc='no' 9939 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9940 hardcode_libdir_separator=: 9941 ;; 9942 9943 osf4* | osf5*) # as osf3* with the addition of -msym flag 9944 if test "$GCC" = yes; then 9945 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9946 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9947 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9948 else 9949 allow_undefined_flag=' -expect_unresolved \*' 9950 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' 9951 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~ 9952 $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' 9953 9954 # Both c and cxx compiler support -rpath directly 9955 hardcode_libdir_flag_spec='-rpath $libdir' 9956 fi 9957 archive_cmds_need_lc='no' 9958 hardcode_libdir_separator=: 9959 ;; 9960 9961 solaris*) 9962 no_undefined_flag=' -z defs' 9963 if test "$GCC" = yes; then 9964 wlarc='${wl}' 9965 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9966 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9967 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9968 else 9969 case `$CC -V 2>&1` in 9970 *"Compilers 5.0"*) 9971 wlarc='' 9972 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9973 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9974 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9975 ;; 9976 *) 9977 wlarc='${wl}' 9978 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9979 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9980 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9981 ;; 9982 esac 9983 fi 9984 hardcode_libdir_flag_spec='-R$libdir' 9985 hardcode_shlibpath_var=no 9986 case $host_os in 9987 solaris2.[0-5] | solaris2.[0-5].*) ;; 9988 *) 9989 # The compiler driver will combine and reorder linker options, 9990 # but understands `-z linker_flag'. GCC discards it without `$wl', 9991 # but is careful enough not to reorder. 9992 # Supported since Solaris 2.6 (maybe 2.5.1?) 9993 if test "$GCC" = yes; then 9994 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9995 else 9996 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9997 fi 9998 ;; 9999 esac 10000 link_all_deplibs=yes 10001 ;; 10002 10003 sunos4*) 10004 if test "x$host_vendor" = xsequent; then 10005 # Use $CC to link under sequent, because it throws in some extra .o 10006 # files that make .init and .fini sections work. 10007 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 10008 else 10009 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 10010 fi 10011 hardcode_libdir_flag_spec='-L$libdir' 10012 hardcode_direct=yes 10013 hardcode_minus_L=yes 10014 hardcode_shlibpath_var=no 10015 ;; 10016 10017 sysv4) 10018 case $host_vendor in 10019 sni) 10020 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10021 hardcode_direct=yes # is this really true??? 10022 ;; 10023 siemens) 10024 ## LD is ld it makes a PLAMLIB 10025 ## CC just makes a GrossModule. 10026 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 10027 reload_cmds='$CC -r -o $output$reload_objs' 10028 hardcode_direct=no 10029 ;; 10030 motorola) 10031 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10032 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 10033 ;; 10034 esac 10035 runpath_var='LD_RUN_PATH' 10036 hardcode_shlibpath_var=no 10037 ;; 10038 10039 sysv4.3*) 10040 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10041 hardcode_shlibpath_var=no 10042 export_dynamic_flag_spec='-Bexport' 10043 ;; 10044 10045 sysv4*MP*) 10046 if test -d /usr/nec; then 10047 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10048 hardcode_shlibpath_var=no 10049 runpath_var=LD_RUN_PATH 10050 hardcode_runpath_var=yes 10051 ld_shlibs=yes 10052 fi 10053 ;; 10054 10055 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 10056 no_undefined_flag='${wl}-z,text' 10057 archive_cmds_need_lc=no 10058 hardcode_shlibpath_var=no 10059 runpath_var='LD_RUN_PATH' 10060 10061 if test "$GCC" = yes; then 10062 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10063 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10064 else 10065 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10066 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10067 fi 10068 ;; 10069 10070 sysv5* | sco3.2v5* | sco5v6*) 10071 # Note: We can NOT use -z defs as we might desire, because we do not 10072 # link with -lc, and that would cause any symbols used from libc to 10073 # always be unresolved, which means just about no library would 10074 # ever link correctly. If we're not using GNU ld we use -z text 10075 # though, which does catch some bad symbols but isn't as heavy-handed 10076 # as -z defs. 10077 no_undefined_flag='${wl}-z,text' 10078 allow_undefined_flag='${wl}-z,nodefs' 10079 archive_cmds_need_lc=no 10080 hardcode_shlibpath_var=no 10081 hardcode_libdir_flag_spec='${wl}-R,$libdir' 10082 hardcode_libdir_separator=':' 10083 link_all_deplibs=yes 10084 export_dynamic_flag_spec='${wl}-Bexport' 10085 runpath_var='LD_RUN_PATH' 10086 10087 if test "$GCC" = yes; then 10088 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10089 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10090 else 10091 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10092 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 10093 fi 10094 ;; 10095 10096 uts4*) 10097 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 10098 hardcode_libdir_flag_spec='-L$libdir' 10099 hardcode_shlibpath_var=no 10100 ;; 10101 10102 *) 10103 ld_shlibs=no 10104 ;; 10105 esac 10106 10107 if test x$host_vendor = xsni; then 10108 case $host in 10109 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10110 export_dynamic_flag_spec='${wl}-Blargedynsym' 10111 ;; 10112 esac 10113 fi 10114 fi 10115 10116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10117$as_echo "$ld_shlibs" >&6; } 10118test "$ld_shlibs" = no && can_build_shared=no 10119 10120with_gnu_ld=$with_gnu_ld 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136# 10137# Do we need to explicitly link libc? 10138# 10139case "x$archive_cmds_need_lc" in 10140x|xyes) 10141 # Assume -lc should be added 10142 archive_cmds_need_lc=yes 10143 10144 if test "$enable_shared" = yes && test "$GCC" = yes; then 10145 case $archive_cmds in 10146 *'~'*) 10147 # FIXME: we may have to deal with multi-command sequences. 10148 ;; 10149 '$CC '*) 10150 # Test whether the compiler implicitly links with -lc since on some 10151 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10152 # to ld, don't add -lc before -lgcc. 10153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10154$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10155if ${lt_cv_archive_cmds_need_lc+:} false; then : 10156 $as_echo_n "(cached) " >&6 10157else 10158 $RM conftest* 10159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10160 10161 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10162 (eval $ac_compile) 2>&5 10163 ac_status=$? 10164 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10165 test $ac_status = 0; } 2>conftest.err; then 10166 soname=conftest 10167 lib=conftest 10168 libobjs=conftest.$ac_objext 10169 deplibs= 10170 wl=$lt_prog_compiler_wl 10171 pic_flag=$lt_prog_compiler_pic 10172 compiler_flags=-v 10173 linker_flags=-v 10174 verstring= 10175 output_objdir=. 10176 libname=conftest 10177 lt_save_allow_undefined_flag=$allow_undefined_flag 10178 allow_undefined_flag= 10179 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10180 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10181 ac_status=$? 10182 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10183 test $ac_status = 0; } 10184 then 10185 lt_cv_archive_cmds_need_lc=no 10186 else 10187 lt_cv_archive_cmds_need_lc=yes 10188 fi 10189 allow_undefined_flag=$lt_save_allow_undefined_flag 10190 else 10191 cat conftest.err 1>&5 10192 fi 10193 $RM conftest* 10194 10195fi 10196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10197$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10198 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10199 ;; 10200 esac 10201 fi 10202 ;; 10203esac 10204 10205 10206 10207 10208 10209 10210 10211 10212 10213 10214 10215 10216 10217 10218 10219 10220 10221 10222 10223 10224 10225 10226 10227 10228 10229 10230 10231 10232 10233 10234 10235 10236 10237 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249 10250 10251 10252 10253 10254 10255 10256 10257 10258 10259 10260 10261 10262 10263 10264 10265 10266 10267 10268 10269 10270 10271 10272 10273 10274 10275 10276 10277 10278 10279 10280 10281 10282 10283 10284 10285 10286 10287 10288 10289 10290 10291 10292 10293 10294 10295 10296 10297 10298 10299 10300 10301 10302 10303 10304 10305 10306 10307 10308 10309 10310 10311 10312 10313 10314 10315 10316 10317 10318 10319 10320 10321 10322 10323 10324 10325 10326 10327 10328 10329 10330 10331 10332 10333 10334 10335 10336 10337 10338 10339 10340 10341 10342 10343 10344 10345 10346 10347 10348 10349 10350 10351 10352 10353 10354 10355 10356 10357 10358 10359 10360 10361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10362$as_echo_n "checking dynamic linker characteristics... " >&6; } 10363 10364if test "$GCC" = yes; then 10365 case $host_os in 10366 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10367 *) lt_awk_arg="/^libraries:/" ;; 10368 esac 10369 case $host_os in 10370 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10371 *) lt_sed_strip_eq="s,=/,/,g" ;; 10372 esac 10373 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10374 case $lt_search_path_spec in 10375 *\;*) 10376 # if the path contains ";" then we assume it to be the separator 10377 # otherwise default to the standard path separator (i.e. ":") - it is 10378 # assumed that no part of a normal pathname contains ";" but that should 10379 # okay in the real world where ";" in dirpaths is itself problematic. 10380 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10381 ;; 10382 *) 10383 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10384 ;; 10385 esac 10386 # Ok, now we have the path, separated by spaces, we can step through it 10387 # and add multilib dir if necessary. 10388 lt_tmp_lt_search_path_spec= 10389 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10390 for lt_sys_path in $lt_search_path_spec; do 10391 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10392 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10393 else 10394 test -d "$lt_sys_path" && \ 10395 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10396 fi 10397 done 10398 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10399BEGIN {RS=" "; FS="/|\n";} { 10400 lt_foo=""; 10401 lt_count=0; 10402 for (lt_i = NF; lt_i > 0; lt_i--) { 10403 if ($lt_i != "" && $lt_i != ".") { 10404 if ($lt_i == "..") { 10405 lt_count++; 10406 } else { 10407 if (lt_count == 0) { 10408 lt_foo="/" $lt_i lt_foo; 10409 } else { 10410 lt_count--; 10411 } 10412 } 10413 } 10414 } 10415 if (lt_foo != "") { lt_freq[lt_foo]++; } 10416 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10417}'` 10418 # AWK program above erroneously prepends '/' to C:/dos/paths 10419 # for these hosts. 10420 case $host_os in 10421 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10422 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10423 esac 10424 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10425else 10426 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10427fi 10428library_names_spec= 10429libname_spec='lib$name' 10430soname_spec= 10431shrext_cmds=".so" 10432postinstall_cmds= 10433postuninstall_cmds= 10434finish_cmds= 10435finish_eval= 10436shlibpath_var= 10437shlibpath_overrides_runpath=unknown 10438version_type=none 10439dynamic_linker="$host_os ld.so" 10440sys_lib_dlsearch_path_spec="/lib /usr/lib" 10441need_lib_prefix=unknown 10442hardcode_into_libs=no 10443 10444# when you set need_version to no, make sure it does not cause -set_version 10445# flags to be left without arguments 10446need_version=unknown 10447 10448case $host_os in 10449aix3*) 10450 version_type=linux 10451 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10452 shlibpath_var=LIBPATH 10453 10454 # AIX 3 has no versioning support, so we append a major version to the name. 10455 soname_spec='${libname}${release}${shared_ext}$major' 10456 ;; 10457 10458aix[4-9]*) 10459 version_type=linux 10460 need_lib_prefix=no 10461 need_version=no 10462 hardcode_into_libs=yes 10463 if test "$host_cpu" = ia64; then 10464 # AIX 5 supports IA64 10465 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10466 shlibpath_var=LD_LIBRARY_PATH 10467 else 10468 # With GCC up to 2.95.x, collect2 would create an import file 10469 # for dependence libraries. The import file would start with 10470 # the line `#! .'. This would cause the generated library to 10471 # depend on `.', always an invalid library. This was fixed in 10472 # development snapshots of GCC prior to 3.0. 10473 case $host_os in 10474 aix4 | aix4.[01] | aix4.[01].*) 10475 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10476 echo ' yes ' 10477 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10478 : 10479 else 10480 can_build_shared=no 10481 fi 10482 ;; 10483 esac 10484 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10485 # soname into executable. Probably we can add versioning support to 10486 # collect2, so additional links can be useful in future. 10487 if test "$aix_use_runtimelinking" = yes; then 10488 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10489 # instead of lib<name>.a to let people know that these are not 10490 # typical AIX shared libraries. 10491 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10492 else 10493 # We preserve .a as extension for shared libraries through AIX4.2 10494 # and later when we are not doing run time linking. 10495 library_names_spec='${libname}${release}.a $libname.a' 10496 soname_spec='${libname}${release}${shared_ext}$major' 10497 fi 10498 shlibpath_var=LIBPATH 10499 fi 10500 ;; 10501 10502amigaos*) 10503 case $host_cpu in 10504 powerpc) 10505 # Since July 2007 AmigaOS4 officially supports .so libraries. 10506 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10508 ;; 10509 m68k) 10510 library_names_spec='$libname.ixlibrary $libname.a' 10511 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10512 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' 10513 ;; 10514 esac 10515 ;; 10516 10517beos*) 10518 library_names_spec='${libname}${shared_ext}' 10519 dynamic_linker="$host_os ld.so" 10520 shlibpath_var=LIBRARY_PATH 10521 ;; 10522 10523bsdi[45]*) 10524 version_type=linux 10525 need_version=no 10526 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10527 soname_spec='${libname}${release}${shared_ext}$major' 10528 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10529 shlibpath_var=LD_LIBRARY_PATH 10530 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10531 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10532 # the default ld.so.conf also contains /usr/contrib/lib and 10533 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10534 # libtool to hard-code these into programs 10535 ;; 10536 10537cygwin* | mingw* | pw32* | cegcc*) 10538 version_type=windows 10539 shrext_cmds=".dll" 10540 need_version=no 10541 need_lib_prefix=no 10542 10543 case $GCC,$host_os in 10544 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10545 library_names_spec='$libname.dll.a' 10546 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10547 postinstall_cmds='base_file=`basename \${file}`~ 10548 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10549 dldir=$destdir/`dirname \$dlpath`~ 10550 test -d \$dldir || mkdir -p \$dldir~ 10551 $install_prog $dir/$dlname \$dldir/$dlname~ 10552 chmod a+x \$dldir/$dlname~ 10553 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10554 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10555 fi' 10556 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10557 dlpath=$dir/\$dldll~ 10558 $RM \$dlpath' 10559 shlibpath_overrides_runpath=yes 10560 10561 case $host_os in 10562 cygwin*) 10563 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10564 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10565 10566 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10567 ;; 10568 mingw* | cegcc*) 10569 # MinGW DLLs use traditional 'lib' prefix 10570 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10571 ;; 10572 pw32*) 10573 # pw32 DLLs use 'pw' prefix rather than 'lib' 10574 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10575 ;; 10576 esac 10577 ;; 10578 10579 *) 10580 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10581 ;; 10582 esac 10583 dynamic_linker='Win32 ld.exe' 10584 # FIXME: first we should search . and the directory the executable is in 10585 shlibpath_var=PATH 10586 ;; 10587 10588darwin* | rhapsody*) 10589 dynamic_linker="$host_os dyld" 10590 version_type=darwin 10591 need_lib_prefix=no 10592 need_version=no 10593 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10594 soname_spec='${libname}${release}${major}$shared_ext' 10595 shlibpath_overrides_runpath=yes 10596 shlibpath_var=DYLD_LIBRARY_PATH 10597 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10598 10599 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10600 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10601 ;; 10602 10603dgux*) 10604 version_type=linux 10605 need_lib_prefix=no 10606 need_version=no 10607 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10608 soname_spec='${libname}${release}${shared_ext}$major' 10609 shlibpath_var=LD_LIBRARY_PATH 10610 ;; 10611 10612freebsd1*) 10613 dynamic_linker=no 10614 ;; 10615 10616freebsd* | dragonfly*) 10617 # DragonFly does not have aout. When/if they implement a new 10618 # versioning mechanism, adjust this. 10619 if test -x /usr/bin/objformat; then 10620 objformat=`/usr/bin/objformat` 10621 else 10622 case $host_os in 10623 freebsd[123]*) objformat=aout ;; 10624 *) objformat=elf ;; 10625 esac 10626 fi 10627 version_type=freebsd-$objformat 10628 case $version_type in 10629 freebsd-elf*) 10630 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10631 need_version=no 10632 need_lib_prefix=no 10633 ;; 10634 freebsd-*) 10635 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10636 need_version=yes 10637 ;; 10638 esac 10639 shlibpath_var=LD_LIBRARY_PATH 10640 case $host_os in 10641 freebsd2*) 10642 shlibpath_overrides_runpath=yes 10643 ;; 10644 freebsd3.[01]* | freebsdelf3.[01]*) 10645 shlibpath_overrides_runpath=yes 10646 hardcode_into_libs=yes 10647 ;; 10648 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10649 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10650 shlibpath_overrides_runpath=no 10651 hardcode_into_libs=yes 10652 ;; 10653 *) # from 4.6 on, and DragonFly 10654 shlibpath_overrides_runpath=yes 10655 hardcode_into_libs=yes 10656 ;; 10657 esac 10658 ;; 10659 10660gnu*) 10661 version_type=linux 10662 need_lib_prefix=no 10663 need_version=no 10664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10665 soname_spec='${libname}${release}${shared_ext}$major' 10666 shlibpath_var=LD_LIBRARY_PATH 10667 hardcode_into_libs=yes 10668 ;; 10669 10670haiku*) 10671 version_type=linux 10672 need_lib_prefix=no 10673 need_version=no 10674 dynamic_linker="$host_os runtime_loader" 10675 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10676 soname_spec='${libname}${release}${shared_ext}$major' 10677 shlibpath_var=LIBRARY_PATH 10678 shlibpath_overrides_runpath=yes 10679 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10680 hardcode_into_libs=yes 10681 ;; 10682 10683hpux9* | hpux10* | hpux11*) 10684 # Give a soname corresponding to the major version so that dld.sl refuses to 10685 # link against other versions. 10686 version_type=sunos 10687 need_lib_prefix=no 10688 need_version=no 10689 case $host_cpu in 10690 ia64*) 10691 shrext_cmds='.so' 10692 hardcode_into_libs=yes 10693 dynamic_linker="$host_os dld.so" 10694 shlibpath_var=LD_LIBRARY_PATH 10695 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10696 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10697 soname_spec='${libname}${release}${shared_ext}$major' 10698 if test "X$HPUX_IA64_MODE" = X32; then 10699 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10700 else 10701 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10702 fi 10703 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10704 ;; 10705 hppa*64*) 10706 shrext_cmds='.sl' 10707 hardcode_into_libs=yes 10708 dynamic_linker="$host_os dld.sl" 10709 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10710 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10711 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10712 soname_spec='${libname}${release}${shared_ext}$major' 10713 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10714 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10715 ;; 10716 *) 10717 shrext_cmds='.sl' 10718 dynamic_linker="$host_os dld.sl" 10719 shlibpath_var=SHLIB_PATH 10720 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10721 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10722 soname_spec='${libname}${release}${shared_ext}$major' 10723 ;; 10724 esac 10725 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10726 postinstall_cmds='chmod 555 $lib' 10727 # or fails outright, so override atomically: 10728 install_override_mode=555 10729 ;; 10730 10731interix[3-9]*) 10732 version_type=linux 10733 need_lib_prefix=no 10734 need_version=no 10735 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10736 soname_spec='${libname}${release}${shared_ext}$major' 10737 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10738 shlibpath_var=LD_LIBRARY_PATH 10739 shlibpath_overrides_runpath=no 10740 hardcode_into_libs=yes 10741 ;; 10742 10743irix5* | irix6* | nonstopux*) 10744 case $host_os in 10745 nonstopux*) version_type=nonstopux ;; 10746 *) 10747 if test "$lt_cv_prog_gnu_ld" = yes; then 10748 version_type=linux 10749 else 10750 version_type=irix 10751 fi ;; 10752 esac 10753 need_lib_prefix=no 10754 need_version=no 10755 soname_spec='${libname}${release}${shared_ext}$major' 10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10757 case $host_os in 10758 irix5* | nonstopux*) 10759 libsuff= shlibsuff= 10760 ;; 10761 *) 10762 case $LD in # libtool.m4 will add one of these switches to LD 10763 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10764 libsuff= shlibsuff= libmagic=32-bit;; 10765 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10766 libsuff=32 shlibsuff=N32 libmagic=N32;; 10767 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10768 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10769 *) libsuff= shlibsuff= libmagic=never-match;; 10770 esac 10771 ;; 10772 esac 10773 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10774 shlibpath_overrides_runpath=no 10775 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10776 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10777 hardcode_into_libs=yes 10778 ;; 10779 10780# No shared lib support for Linux oldld, aout, or coff. 10781linux*oldld* | linux*aout* | linux*coff*) 10782 dynamic_linker=no 10783 ;; 10784 10785# This must be Linux ELF. 10786linux* | k*bsd*-gnu | kopensolaris*-gnu) 10787 version_type=linux 10788 need_lib_prefix=no 10789 need_version=no 10790 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10791 soname_spec='${libname}${release}${shared_ext}$major' 10792 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10793 shlibpath_var=LD_LIBRARY_PATH 10794 shlibpath_overrides_runpath=no 10795 10796 # Some binutils ld are patched to set DT_RUNPATH 10797 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10798 $as_echo_n "(cached) " >&6 10799else 10800 lt_cv_shlibpath_overrides_runpath=no 10801 save_LDFLAGS=$LDFLAGS 10802 save_libdir=$libdir 10803 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10804 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10806/* end confdefs.h. */ 10807 10808int 10809main () 10810{ 10811 10812 ; 10813 return 0; 10814} 10815_ACEOF 10816if ac_fn_c_try_link "$LINENO"; then : 10817 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10818 lt_cv_shlibpath_overrides_runpath=yes 10819fi 10820fi 10821rm -f core conftest.err conftest.$ac_objext \ 10822 conftest$ac_exeext conftest.$ac_ext 10823 LDFLAGS=$save_LDFLAGS 10824 libdir=$save_libdir 10825 10826fi 10827 10828 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10829 10830 # This implies no fast_install, which is unacceptable. 10831 # Some rework will be needed to allow for fast_install 10832 # before this can be enabled. 10833 hardcode_into_libs=yes 10834 10835 # Append ld.so.conf contents to the search path 10836 if test -f /etc/ld.so.conf; then 10837 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' ' '` 10838 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10839 fi 10840 10841 # We used to test for /lib/ld.so.1 and disable shared libraries on 10842 # powerpc, because MkLinux only supported shared libraries with the 10843 # GNU dynamic linker. Since this was broken with cross compilers, 10844 # most powerpc-linux boxes support dynamic linking these days and 10845 # people can always --disable-shared, the test was removed, and we 10846 # assume the GNU/Linux dynamic linker is in use. 10847 dynamic_linker='GNU/Linux ld.so' 10848 ;; 10849 10850netbsd*) 10851 version_type=sunos 10852 need_lib_prefix=no 10853 need_version=no 10854 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10855 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10856 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10857 dynamic_linker='NetBSD (a.out) ld.so' 10858 else 10859 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10860 soname_spec='${libname}${release}${shared_ext}$major' 10861 dynamic_linker='NetBSD ld.elf_so' 10862 fi 10863 shlibpath_var=LD_LIBRARY_PATH 10864 shlibpath_overrides_runpath=yes 10865 hardcode_into_libs=yes 10866 ;; 10867 10868newsos6) 10869 version_type=linux 10870 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10871 shlibpath_var=LD_LIBRARY_PATH 10872 shlibpath_overrides_runpath=yes 10873 ;; 10874 10875*nto* | *qnx*) 10876 version_type=qnx 10877 need_lib_prefix=no 10878 need_version=no 10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10880 soname_spec='${libname}${release}${shared_ext}$major' 10881 shlibpath_var=LD_LIBRARY_PATH 10882 shlibpath_overrides_runpath=no 10883 hardcode_into_libs=yes 10884 dynamic_linker='ldqnx.so' 10885 ;; 10886 10887openbsd*) 10888 version_type=sunos 10889 sys_lib_dlsearch_path_spec="/usr/lib" 10890 need_lib_prefix=no 10891 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10892 case $host_os in 10893 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10894 *) need_version=no ;; 10895 esac 10896 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10897 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10898 shlibpath_var=LD_LIBRARY_PATH 10899 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10900 case $host_os in 10901 openbsd2.[89] | openbsd2.[89].*) 10902 shlibpath_overrides_runpath=no 10903 ;; 10904 *) 10905 shlibpath_overrides_runpath=yes 10906 ;; 10907 esac 10908 else 10909 shlibpath_overrides_runpath=yes 10910 fi 10911 ;; 10912 10913os2*) 10914 libname_spec='$name' 10915 shrext_cmds=".dll" 10916 need_lib_prefix=no 10917 library_names_spec='$libname${shared_ext} $libname.a' 10918 dynamic_linker='OS/2 ld.exe' 10919 shlibpath_var=LIBPATH 10920 ;; 10921 10922osf3* | osf4* | osf5*) 10923 version_type=osf 10924 need_lib_prefix=no 10925 need_version=no 10926 soname_spec='${libname}${release}${shared_ext}$major' 10927 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10928 shlibpath_var=LD_LIBRARY_PATH 10929 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10930 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10931 ;; 10932 10933rdos*) 10934 dynamic_linker=no 10935 ;; 10936 10937solaris*) 10938 version_type=linux 10939 need_lib_prefix=no 10940 need_version=no 10941 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10942 soname_spec='${libname}${release}${shared_ext}$major' 10943 shlibpath_var=LD_LIBRARY_PATH 10944 shlibpath_overrides_runpath=yes 10945 hardcode_into_libs=yes 10946 # ldd complains unless libraries are executable 10947 postinstall_cmds='chmod +x $lib' 10948 ;; 10949 10950sunos4*) 10951 version_type=sunos 10952 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10953 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10954 shlibpath_var=LD_LIBRARY_PATH 10955 shlibpath_overrides_runpath=yes 10956 if test "$with_gnu_ld" = yes; then 10957 need_lib_prefix=no 10958 fi 10959 need_version=yes 10960 ;; 10961 10962sysv4 | sysv4.3*) 10963 version_type=linux 10964 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10965 soname_spec='${libname}${release}${shared_ext}$major' 10966 shlibpath_var=LD_LIBRARY_PATH 10967 case $host_vendor in 10968 sni) 10969 shlibpath_overrides_runpath=no 10970 need_lib_prefix=no 10971 runpath_var=LD_RUN_PATH 10972 ;; 10973 siemens) 10974 need_lib_prefix=no 10975 ;; 10976 motorola) 10977 need_lib_prefix=no 10978 need_version=no 10979 shlibpath_overrides_runpath=no 10980 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10981 ;; 10982 esac 10983 ;; 10984 10985sysv4*MP*) 10986 if test -d /usr/nec ;then 10987 version_type=linux 10988 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10989 soname_spec='$libname${shared_ext}.$major' 10990 shlibpath_var=LD_LIBRARY_PATH 10991 fi 10992 ;; 10993 10994sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10995 version_type=freebsd-elf 10996 need_lib_prefix=no 10997 need_version=no 10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10999 soname_spec='${libname}${release}${shared_ext}$major' 11000 shlibpath_var=LD_LIBRARY_PATH 11001 shlibpath_overrides_runpath=yes 11002 hardcode_into_libs=yes 11003 if test "$with_gnu_ld" = yes; then 11004 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 11005 else 11006 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 11007 case $host_os in 11008 sco3.2v5*) 11009 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 11010 ;; 11011 esac 11012 fi 11013 sys_lib_dlsearch_path_spec='/usr/lib' 11014 ;; 11015 11016tpf*) 11017 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 11018 version_type=linux 11019 need_lib_prefix=no 11020 need_version=no 11021 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11022 shlibpath_var=LD_LIBRARY_PATH 11023 shlibpath_overrides_runpath=no 11024 hardcode_into_libs=yes 11025 ;; 11026 11027uts4*) 11028 version_type=linux 11029 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11030 soname_spec='${libname}${release}${shared_ext}$major' 11031 shlibpath_var=LD_LIBRARY_PATH 11032 ;; 11033 11034*) 11035 dynamic_linker=no 11036 ;; 11037esac 11038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 11039$as_echo "$dynamic_linker" >&6; } 11040test "$dynamic_linker" = no && can_build_shared=no 11041 11042variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 11043if test "$GCC" = yes; then 11044 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 11045fi 11046 11047if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11048 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11049fi 11050if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11051 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11052fi 11053 11054 11055 11056 11057 11058 11059 11060 11061 11062 11063 11064 11065 11066 11067 11068 11069 11070 11071 11072 11073 11074 11075 11076 11077 11078 11079 11080 11081 11082 11083 11084 11085 11086 11087 11088 11089 11090 11091 11092 11093 11094 11095 11096 11097 11098 11099 11100 11101 11102 11103 11104 11105 11106 11107 11108 11109 11110 11111 11112 11113 11114 11115 11116 11117 11118 11119 11120 11121 11122 11123 11124 11125 11126 11127 11128 11129 11130 11131 11132 11133 11134 11135 11136 11137 11138 11139 11140 11141 11142 11143 11144 11145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11146$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11147hardcode_action= 11148if test -n "$hardcode_libdir_flag_spec" || 11149 test -n "$runpath_var" || 11150 test "X$hardcode_automatic" = "Xyes" ; then 11151 11152 # We can hardcode non-existent directories. 11153 if test "$hardcode_direct" != no && 11154 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11155 # have to relink, otherwise we might link with an installed library 11156 # when we should be linking with a yet-to-be-installed one 11157 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11158 test "$hardcode_minus_L" != no; then 11159 # Linking always hardcodes the temporary library directory. 11160 hardcode_action=relink 11161 else 11162 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11163 hardcode_action=immediate 11164 fi 11165else 11166 # We cannot hardcode anything, or else we can only hardcode existing 11167 # directories. 11168 hardcode_action=unsupported 11169fi 11170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11171$as_echo "$hardcode_action" >&6; } 11172 11173if test "$hardcode_action" = relink || 11174 test "$inherit_rpath" = yes; then 11175 # Fast installation is not supported 11176 enable_fast_install=no 11177elif test "$shlibpath_overrides_runpath" = yes || 11178 test "$enable_shared" = no; then 11179 # Fast installation is not necessary 11180 enable_fast_install=needless 11181fi 11182 11183 11184 11185 11186 11187 11188 if test "x$enable_dlopen" != xyes; then 11189 enable_dlopen=unknown 11190 enable_dlopen_self=unknown 11191 enable_dlopen_self_static=unknown 11192else 11193 lt_cv_dlopen=no 11194 lt_cv_dlopen_libs= 11195 11196 case $host_os in 11197 beos*) 11198 lt_cv_dlopen="load_add_on" 11199 lt_cv_dlopen_libs= 11200 lt_cv_dlopen_self=yes 11201 ;; 11202 11203 mingw* | pw32* | cegcc*) 11204 lt_cv_dlopen="LoadLibrary" 11205 lt_cv_dlopen_libs= 11206 ;; 11207 11208 cygwin*) 11209 lt_cv_dlopen="dlopen" 11210 lt_cv_dlopen_libs= 11211 ;; 11212 11213 darwin*) 11214 # if libdl is installed we need to link against it 11215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11216$as_echo_n "checking for dlopen in -ldl... " >&6; } 11217if ${ac_cv_lib_dl_dlopen+:} false; then : 11218 $as_echo_n "(cached) " >&6 11219else 11220 ac_check_lib_save_LIBS=$LIBS 11221LIBS="-ldl $LIBS" 11222cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11223/* end confdefs.h. */ 11224 11225/* Override any GCC internal prototype to avoid an error. 11226 Use char because int might match the return type of a GCC 11227 builtin and then its argument prototype would still apply. */ 11228#ifdef __cplusplus 11229extern "C" 11230#endif 11231char dlopen (); 11232int 11233main () 11234{ 11235return dlopen (); 11236 ; 11237 return 0; 11238} 11239_ACEOF 11240if ac_fn_c_try_link "$LINENO"; then : 11241 ac_cv_lib_dl_dlopen=yes 11242else 11243 ac_cv_lib_dl_dlopen=no 11244fi 11245rm -f core conftest.err conftest.$ac_objext \ 11246 conftest$ac_exeext conftest.$ac_ext 11247LIBS=$ac_check_lib_save_LIBS 11248fi 11249{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11250$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11251if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11252 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11253else 11254 11255 lt_cv_dlopen="dyld" 11256 lt_cv_dlopen_libs= 11257 lt_cv_dlopen_self=yes 11258 11259fi 11260 11261 ;; 11262 11263 *) 11264 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11265if test "x$ac_cv_func_shl_load" = xyes; then : 11266 lt_cv_dlopen="shl_load" 11267else 11268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11269$as_echo_n "checking for shl_load in -ldld... " >&6; } 11270if ${ac_cv_lib_dld_shl_load+:} false; then : 11271 $as_echo_n "(cached) " >&6 11272else 11273 ac_check_lib_save_LIBS=$LIBS 11274LIBS="-ldld $LIBS" 11275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11276/* end confdefs.h. */ 11277 11278/* Override any GCC internal prototype to avoid an error. 11279 Use char because int might match the return type of a GCC 11280 builtin and then its argument prototype would still apply. */ 11281#ifdef __cplusplus 11282extern "C" 11283#endif 11284char shl_load (); 11285int 11286main () 11287{ 11288return shl_load (); 11289 ; 11290 return 0; 11291} 11292_ACEOF 11293if ac_fn_c_try_link "$LINENO"; then : 11294 ac_cv_lib_dld_shl_load=yes 11295else 11296 ac_cv_lib_dld_shl_load=no 11297fi 11298rm -f core conftest.err conftest.$ac_objext \ 11299 conftest$ac_exeext conftest.$ac_ext 11300LIBS=$ac_check_lib_save_LIBS 11301fi 11302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11303$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11304if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11305 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11306else 11307 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11308if test "x$ac_cv_func_dlopen" = xyes; then : 11309 lt_cv_dlopen="dlopen" 11310else 11311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11312$as_echo_n "checking for dlopen in -ldl... " >&6; } 11313if ${ac_cv_lib_dl_dlopen+:} false; then : 11314 $as_echo_n "(cached) " >&6 11315else 11316 ac_check_lib_save_LIBS=$LIBS 11317LIBS="-ldl $LIBS" 11318cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11319/* end confdefs.h. */ 11320 11321/* Override any GCC internal prototype to avoid an error. 11322 Use char because int might match the return type of a GCC 11323 builtin and then its argument prototype would still apply. */ 11324#ifdef __cplusplus 11325extern "C" 11326#endif 11327char dlopen (); 11328int 11329main () 11330{ 11331return dlopen (); 11332 ; 11333 return 0; 11334} 11335_ACEOF 11336if ac_fn_c_try_link "$LINENO"; then : 11337 ac_cv_lib_dl_dlopen=yes 11338else 11339 ac_cv_lib_dl_dlopen=no 11340fi 11341rm -f core conftest.err conftest.$ac_objext \ 11342 conftest$ac_exeext conftest.$ac_ext 11343LIBS=$ac_check_lib_save_LIBS 11344fi 11345{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11346$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11347if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11348 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11349else 11350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11351$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11352if ${ac_cv_lib_svld_dlopen+:} false; then : 11353 $as_echo_n "(cached) " >&6 11354else 11355 ac_check_lib_save_LIBS=$LIBS 11356LIBS="-lsvld $LIBS" 11357cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11358/* end confdefs.h. */ 11359 11360/* Override any GCC internal prototype to avoid an error. 11361 Use char because int might match the return type of a GCC 11362 builtin and then its argument prototype would still apply. */ 11363#ifdef __cplusplus 11364extern "C" 11365#endif 11366char dlopen (); 11367int 11368main () 11369{ 11370return dlopen (); 11371 ; 11372 return 0; 11373} 11374_ACEOF 11375if ac_fn_c_try_link "$LINENO"; then : 11376 ac_cv_lib_svld_dlopen=yes 11377else 11378 ac_cv_lib_svld_dlopen=no 11379fi 11380rm -f core conftest.err conftest.$ac_objext \ 11381 conftest$ac_exeext conftest.$ac_ext 11382LIBS=$ac_check_lib_save_LIBS 11383fi 11384{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11385$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11386if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11387 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11388else 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11390$as_echo_n "checking for dld_link in -ldld... " >&6; } 11391if ${ac_cv_lib_dld_dld_link+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393else 11394 ac_check_lib_save_LIBS=$LIBS 11395LIBS="-ldld $LIBS" 11396cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398 11399/* Override any GCC internal prototype to avoid an error. 11400 Use char because int might match the return type of a GCC 11401 builtin and then its argument prototype would still apply. */ 11402#ifdef __cplusplus 11403extern "C" 11404#endif 11405char dld_link (); 11406int 11407main () 11408{ 11409return dld_link (); 11410 ; 11411 return 0; 11412} 11413_ACEOF 11414if ac_fn_c_try_link "$LINENO"; then : 11415 ac_cv_lib_dld_dld_link=yes 11416else 11417 ac_cv_lib_dld_dld_link=no 11418fi 11419rm -f core conftest.err conftest.$ac_objext \ 11420 conftest$ac_exeext conftest.$ac_ext 11421LIBS=$ac_check_lib_save_LIBS 11422fi 11423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11424$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11425if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11426 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11427fi 11428 11429 11430fi 11431 11432 11433fi 11434 11435 11436fi 11437 11438 11439fi 11440 11441 11442fi 11443 11444 ;; 11445 esac 11446 11447 if test "x$lt_cv_dlopen" != xno; then 11448 enable_dlopen=yes 11449 else 11450 enable_dlopen=no 11451 fi 11452 11453 case $lt_cv_dlopen in 11454 dlopen) 11455 save_CPPFLAGS="$CPPFLAGS" 11456 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11457 11458 save_LDFLAGS="$LDFLAGS" 11459 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11460 11461 save_LIBS="$LIBS" 11462 LIBS="$lt_cv_dlopen_libs $LIBS" 11463 11464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11465$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11466if ${lt_cv_dlopen_self+:} false; then : 11467 $as_echo_n "(cached) " >&6 11468else 11469 if test "$cross_compiling" = yes; then : 11470 lt_cv_dlopen_self=cross 11471else 11472 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11473 lt_status=$lt_dlunknown 11474 cat > conftest.$ac_ext <<_LT_EOF 11475#line $LINENO "configure" 11476#include "confdefs.h" 11477 11478#if HAVE_DLFCN_H 11479#include <dlfcn.h> 11480#endif 11481 11482#include <stdio.h> 11483 11484#ifdef RTLD_GLOBAL 11485# define LT_DLGLOBAL RTLD_GLOBAL 11486#else 11487# ifdef DL_GLOBAL 11488# define LT_DLGLOBAL DL_GLOBAL 11489# else 11490# define LT_DLGLOBAL 0 11491# endif 11492#endif 11493 11494/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11495 find out it does not work in some platform. */ 11496#ifndef LT_DLLAZY_OR_NOW 11497# ifdef RTLD_LAZY 11498# define LT_DLLAZY_OR_NOW RTLD_LAZY 11499# else 11500# ifdef DL_LAZY 11501# define LT_DLLAZY_OR_NOW DL_LAZY 11502# else 11503# ifdef RTLD_NOW 11504# define LT_DLLAZY_OR_NOW RTLD_NOW 11505# else 11506# ifdef DL_NOW 11507# define LT_DLLAZY_OR_NOW DL_NOW 11508# else 11509# define LT_DLLAZY_OR_NOW 0 11510# endif 11511# endif 11512# endif 11513# endif 11514#endif 11515 11516/* When -fvisbility=hidden is used, assume the code has been annotated 11517 correspondingly for the symbols needed. */ 11518#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11519void fnord () __attribute__((visibility("default"))); 11520#endif 11521 11522void fnord () { int i=42; } 11523int main () 11524{ 11525 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11526 int status = $lt_dlunknown; 11527 11528 if (self) 11529 { 11530 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11531 else 11532 { 11533 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11534 else puts (dlerror ()); 11535 } 11536 /* dlclose (self); */ 11537 } 11538 else 11539 puts (dlerror ()); 11540 11541 return status; 11542} 11543_LT_EOF 11544 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11545 (eval $ac_link) 2>&5 11546 ac_status=$? 11547 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11548 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11549 (./conftest; exit; ) >&5 2>/dev/null 11550 lt_status=$? 11551 case x$lt_status in 11552 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11553 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11554 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11555 esac 11556 else : 11557 # compilation failed 11558 lt_cv_dlopen_self=no 11559 fi 11560fi 11561rm -fr conftest* 11562 11563 11564fi 11565{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11566$as_echo "$lt_cv_dlopen_self" >&6; } 11567 11568 if test "x$lt_cv_dlopen_self" = xyes; then 11569 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11571$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11572if ${lt_cv_dlopen_self_static+:} false; then : 11573 $as_echo_n "(cached) " >&6 11574else 11575 if test "$cross_compiling" = yes; then : 11576 lt_cv_dlopen_self_static=cross 11577else 11578 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11579 lt_status=$lt_dlunknown 11580 cat > conftest.$ac_ext <<_LT_EOF 11581#line $LINENO "configure" 11582#include "confdefs.h" 11583 11584#if HAVE_DLFCN_H 11585#include <dlfcn.h> 11586#endif 11587 11588#include <stdio.h> 11589 11590#ifdef RTLD_GLOBAL 11591# define LT_DLGLOBAL RTLD_GLOBAL 11592#else 11593# ifdef DL_GLOBAL 11594# define LT_DLGLOBAL DL_GLOBAL 11595# else 11596# define LT_DLGLOBAL 0 11597# endif 11598#endif 11599 11600/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11601 find out it does not work in some platform. */ 11602#ifndef LT_DLLAZY_OR_NOW 11603# ifdef RTLD_LAZY 11604# define LT_DLLAZY_OR_NOW RTLD_LAZY 11605# else 11606# ifdef DL_LAZY 11607# define LT_DLLAZY_OR_NOW DL_LAZY 11608# else 11609# ifdef RTLD_NOW 11610# define LT_DLLAZY_OR_NOW RTLD_NOW 11611# else 11612# ifdef DL_NOW 11613# define LT_DLLAZY_OR_NOW DL_NOW 11614# else 11615# define LT_DLLAZY_OR_NOW 0 11616# endif 11617# endif 11618# endif 11619# endif 11620#endif 11621 11622/* When -fvisbility=hidden is used, assume the code has been annotated 11623 correspondingly for the symbols needed. */ 11624#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11625void fnord () __attribute__((visibility("default"))); 11626#endif 11627 11628void fnord () { int i=42; } 11629int main () 11630{ 11631 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11632 int status = $lt_dlunknown; 11633 11634 if (self) 11635 { 11636 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11637 else 11638 { 11639 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11640 else puts (dlerror ()); 11641 } 11642 /* dlclose (self); */ 11643 } 11644 else 11645 puts (dlerror ()); 11646 11647 return status; 11648} 11649_LT_EOF 11650 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11651 (eval $ac_link) 2>&5 11652 ac_status=$? 11653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11654 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11655 (./conftest; exit; ) >&5 2>/dev/null 11656 lt_status=$? 11657 case x$lt_status in 11658 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11659 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11660 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11661 esac 11662 else : 11663 # compilation failed 11664 lt_cv_dlopen_self_static=no 11665 fi 11666fi 11667rm -fr conftest* 11668 11669 11670fi 11671{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11672$as_echo "$lt_cv_dlopen_self_static" >&6; } 11673 fi 11674 11675 CPPFLAGS="$save_CPPFLAGS" 11676 LDFLAGS="$save_LDFLAGS" 11677 LIBS="$save_LIBS" 11678 ;; 11679 esac 11680 11681 case $lt_cv_dlopen_self in 11682 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11683 *) enable_dlopen_self=unknown ;; 11684 esac 11685 11686 case $lt_cv_dlopen_self_static in 11687 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11688 *) enable_dlopen_self_static=unknown ;; 11689 esac 11690fi 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708striplib= 11709old_striplib= 11710{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11711$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11712if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11713 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11714 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11716$as_echo "yes" >&6; } 11717else 11718# FIXME - insert some real tests, host_os isn't really good enough 11719 case $host_os in 11720 darwin*) 11721 if test -n "$STRIP" ; then 11722 striplib="$STRIP -x" 11723 old_striplib="$STRIP -S" 11724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11725$as_echo "yes" >&6; } 11726 else 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11728$as_echo "no" >&6; } 11729 fi 11730 ;; 11731 *) 11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11733$as_echo "no" >&6; } 11734 ;; 11735 esac 11736fi 11737 11738 11739 11740 11741 11742 11743 11744 11745 11746 11747 11748 11749 # Report which library types will actually be built 11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11751$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11753$as_echo "$can_build_shared" >&6; } 11754 11755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11756$as_echo_n "checking whether to build shared libraries... " >&6; } 11757 test "$can_build_shared" = "no" && enable_shared=no 11758 11759 # On AIX, shared libraries and static libraries use the same namespace, and 11760 # are all built from PIC. 11761 case $host_os in 11762 aix3*) 11763 test "$enable_shared" = yes && enable_static=no 11764 if test -n "$RANLIB"; then 11765 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11766 postinstall_cmds='$RANLIB $lib' 11767 fi 11768 ;; 11769 11770 aix[4-9]*) 11771 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11772 test "$enable_shared" = yes && enable_static=no 11773 fi 11774 ;; 11775 esac 11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11777$as_echo "$enable_shared" >&6; } 11778 11779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11780$as_echo_n "checking whether to build static libraries... " >&6; } 11781 # Make sure either enable_shared or enable_static is yes. 11782 test "$enable_shared" = yes || enable_static=yes 11783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11784$as_echo "$enable_static" >&6; } 11785 11786 11787 11788 11789fi 11790ac_ext=c 11791ac_cpp='$CPP $CPPFLAGS' 11792ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11793ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11794ac_compiler_gnu=$ac_cv_c_compiler_gnu 11795 11796CC="$lt_save_CC" 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 ac_config_commands="$ac_config_commands libtool" 11811 11812 11813 11814 11815# Only expand once: 11816 11817 11818 11819# Checks for pkg-config packages 11820 11821pkg_failed=no 11822{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XXF86DGA" >&5 11823$as_echo_n "checking for XXF86DGA... " >&6; } 11824 11825if test -n "$XXF86DGA_CFLAGS"; then 11826 pkg_cv_XXF86DGA_CFLAGS="$XXF86DGA_CFLAGS" 11827 elif test -n "$PKG_CONFIG"; then 11828 if test -n "$PKG_CONFIG" && \ 11829 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2\""; } >&5 11830 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2") 2>&5 11831 ac_status=$? 11832 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11833 test $ac_status = 0; }; then 11834 pkg_cv_XXF86DGA_CFLAGS=`$PKG_CONFIG --cflags "xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2" 2>/dev/null` 11835else 11836 pkg_failed=yes 11837fi 11838 else 11839 pkg_failed=untried 11840fi 11841if test -n "$XXF86DGA_LIBS"; then 11842 pkg_cv_XXF86DGA_LIBS="$XXF86DGA_LIBS" 11843 elif test -n "$PKG_CONFIG"; then 11844 if test -n "$PKG_CONFIG" && \ 11845 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2\""; } >&5 11846 ($PKG_CONFIG --exists --print-errors "xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2") 2>&5 11847 ac_status=$? 11848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11849 test $ac_status = 0; }; then 11850 pkg_cv_XXF86DGA_LIBS=`$PKG_CONFIG --libs "xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2" 2>/dev/null` 11851else 11852 pkg_failed=yes 11853fi 11854 else 11855 pkg_failed=untried 11856fi 11857 11858 11859 11860if test $pkg_failed = yes; then 11861 11862if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 11863 _pkg_short_errors_supported=yes 11864else 11865 _pkg_short_errors_supported=no 11866fi 11867 if test $_pkg_short_errors_supported = yes; then 11868 XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors "xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2" 2>&1` 11869 else 11870 XXF86DGA_PKG_ERRORS=`$PKG_CONFIG --print-errors "xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2" 2>&1` 11871 fi 11872 # Put the nasty error message in config.log where it belongs 11873 echo "$XXF86DGA_PKG_ERRORS" >&5 11874 11875 as_fn_error $? "Package requirements (xproto x11 xextproto xext xf86dgaproto >= 2.0.99.2) were not met: 11876 11877$XXF86DGA_PKG_ERRORS 11878 11879Consider adjusting the PKG_CONFIG_PATH environment variable if you 11880installed software in a non-standard prefix. 11881 11882Alternatively, you may set the environment variables XXF86DGA_CFLAGS 11883and XXF86DGA_LIBS to avoid the need to call pkg-config. 11884See the pkg-config man page for more details. 11885" "$LINENO" 5 11886elif test $pkg_failed = untried; then 11887 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11888$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11889as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 11890is in your PATH or set the PKG_CONFIG environment variable to the full 11891path to pkg-config. 11892 11893Alternatively, you may set the environment variables XXF86DGA_CFLAGS 11894and XXF86DGA_LIBS to avoid the need to call pkg-config. 11895See the pkg-config man page for more details. 11896 11897To get pkg-config, see <http://pkg-config.freedesktop.org/>. 11898See \`config.log' for more details" "$LINENO" 5; } 11899else 11900 XXF86DGA_CFLAGS=$pkg_cv_XXF86DGA_CFLAGS 11901 XXF86DGA_LIBS=$pkg_cv_XXF86DGA_LIBS 11902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11903$as_echo "yes" >&6; } 11904 : 11905fi 11906 11907 11908# Check whether --enable-malloc0returnsnull was given. 11909if test "${enable_malloc0returnsnull+set}" = set; then : 11910 enableval=$enable_malloc0returnsnull; MALLOC_ZERO_RETURNS_NULL=$enableval 11911else 11912 MALLOC_ZERO_RETURNS_NULL=auto 11913fi 11914 11915 11916{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether malloc(0) returns NULL" >&5 11917$as_echo_n "checking whether malloc(0) returns NULL... " >&6; } 11918if test "x$MALLOC_ZERO_RETURNS_NULL" = xauto; then 11919 if test "$cross_compiling" = yes; then : 11920 MALLOC_ZERO_RETURNS_NULL=yes 11921else 11922 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11923/* end confdefs.h. */ 11924 11925char *malloc(); 11926char *realloc(); 11927char *calloc(); 11928main() { 11929 char *m0, *r0, *c0, *p; 11930 m0 = malloc(0); 11931 p = malloc(10); 11932 r0 = realloc(p,0); 11933 c0 = calloc(0); 11934 exit(m0 == 0 || r0 == 0 || c0 == 0 ? 0 : 1); 11935} 11936_ACEOF 11937if ac_fn_c_try_run "$LINENO"; then : 11938 MALLOC_ZERO_RETURNS_NULL=yes 11939else 11940 MALLOC_ZERO_RETURNS_NULL=no 11941fi 11942rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 11943 conftest.$ac_objext conftest.beam conftest.$ac_ext 11944fi 11945 11946fi 11947{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MALLOC_ZERO_RETURNS_NULL" >&5 11948$as_echo "$MALLOC_ZERO_RETURNS_NULL" >&6; } 11949 11950if test "x$MALLOC_ZERO_RETURNS_NULL" = xyes; then 11951 MALLOC_ZERO_CFLAGS="-DMALLOC_0_RETURNS_NULL" 11952 XMALLOC_ZERO_CFLAGS=$MALLOC_ZERO_CFLAGS 11953 XTMALLOC_ZERO_CFLAGS="$MALLOC_ZERO_CFLAGS -DXTMALLOC_BC" 11954else 11955 MALLOC_ZERO_CFLAGS="" 11956 XMALLOC_ZERO_CFLAGS="" 11957 XTMALLOC_ZERO_CFLAGS="" 11958fi 11959 11960 11961 11962 11963 11964 11965ac_config_files="$ac_config_files Makefile src/Makefile man/Makefile xxf86dga.pc" 11966 11967cat >confcache <<\_ACEOF 11968# This file is a shell script that caches the results of configure 11969# tests run on this system so they can be shared between configure 11970# scripts and configure runs, see configure's option --config-cache. 11971# It is not useful on other systems. If it contains results you don't 11972# want to keep, you may remove or edit it. 11973# 11974# config.status only pays attention to the cache file if you give it 11975# the --recheck option to rerun configure. 11976# 11977# `ac_cv_env_foo' variables (set or unset) will be overridden when 11978# loading this file, other *unset* `ac_cv_foo' will be assigned the 11979# following values. 11980 11981_ACEOF 11982 11983# The following way of writing the cache mishandles newlines in values, 11984# but we know of no workaround that is simple, portable, and efficient. 11985# So, we kill variables containing newlines. 11986# Ultrix sh set writes to stderr and can't be redirected directly, 11987# and sets the high bit in the cache file unless we assign to the vars. 11988( 11989 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11990 eval ac_val=\$$ac_var 11991 case $ac_val in #( 11992 *${as_nl}*) 11993 case $ac_var in #( 11994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11995$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11996 esac 11997 case $ac_var in #( 11998 _ | IFS | as_nl) ;; #( 11999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 12000 *) { eval $ac_var=; unset $ac_var;} ;; 12001 esac ;; 12002 esac 12003 done 12004 12005 (set) 2>&1 | 12006 case $as_nl`(ac_space=' '; set) 2>&1` in #( 12007 *${as_nl}ac_space=\ *) 12008 # `set' does not quote correctly, so add quotes: double-quote 12009 # substitution turns \\\\ into \\, and sed turns \\ into \. 12010 sed -n \ 12011 "s/'/'\\\\''/g; 12012 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 12013 ;; #( 12014 *) 12015 # `set' quotes correctly as required by POSIX, so do not add quotes. 12016 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 12017 ;; 12018 esac | 12019 sort 12020) | 12021 sed ' 12022 /^ac_cv_env_/b end 12023 t clear 12024 :clear 12025 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 12026 t end 12027 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 12028 :end' >>confcache 12029if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 12030 if test -w "$cache_file"; then 12031 if test "x$cache_file" != "x/dev/null"; then 12032 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 12033$as_echo "$as_me: updating cache $cache_file" >&6;} 12034 if test ! -f "$cache_file" || test -h "$cache_file"; then 12035 cat confcache >"$cache_file" 12036 else 12037 case $cache_file in #( 12038 */* | ?:*) 12039 mv -f confcache "$cache_file"$$ && 12040 mv -f "$cache_file"$$ "$cache_file" ;; #( 12041 *) 12042 mv -f confcache "$cache_file" ;; 12043 esac 12044 fi 12045 fi 12046 else 12047 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 12048$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 12049 fi 12050fi 12051rm -f confcache 12052 12053test "x$prefix" = xNONE && prefix=$ac_default_prefix 12054# Let make expand exec_prefix. 12055test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 12056 12057DEFS=-DHAVE_CONFIG_H 12058 12059ac_libobjs= 12060ac_ltlibobjs= 12061U= 12062for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 12063 # 1. Remove the extension, and $U if already installed. 12064 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 12065 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 12066 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 12067 # will be set to the directory where LIBOBJS objects are built. 12068 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 12069 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 12070done 12071LIBOBJS=$ac_libobjs 12072 12073LTLIBOBJS=$ac_ltlibobjs 12074 12075 12076 if test -n "$EXEEXT"; then 12077 am__EXEEXT_TRUE= 12078 am__EXEEXT_FALSE='#' 12079else 12080 am__EXEEXT_TRUE='#' 12081 am__EXEEXT_FALSE= 12082fi 12083 12084if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 12085 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 12086Usually this means the macro was only invoked conditionally." "$LINENO" 5 12087fi 12088if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 12089 as_fn_error $? "conditional \"AMDEP\" was never defined. 12090Usually this means the macro was only invoked conditionally." "$LINENO" 5 12091fi 12092if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12093 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12094Usually this means the macro was only invoked conditionally." "$LINENO" 5 12095fi 12096if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 12097 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 12098Usually this means the macro was only invoked conditionally." "$LINENO" 5 12099fi 12100 12101: "${CONFIG_STATUS=./config.status}" 12102ac_write_fail=0 12103ac_clean_files_save=$ac_clean_files 12104ac_clean_files="$ac_clean_files $CONFIG_STATUS" 12105{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 12106$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 12107as_write_fail=0 12108cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 12109#! $SHELL 12110# Generated by $as_me. 12111# Run this file to recreate the current configuration. 12112# Compiler output produced by configure, useful for debugging 12113# configure, is in config.log if it exists. 12114 12115debug=false 12116ac_cs_recheck=false 12117ac_cs_silent=false 12118 12119SHELL=\${CONFIG_SHELL-$SHELL} 12120export SHELL 12121_ASEOF 12122cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 12123## -------------------- ## 12124## M4sh Initialization. ## 12125## -------------------- ## 12126 12127# Be more Bourne compatible 12128DUALCASE=1; export DUALCASE # for MKS sh 12129if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 12130 emulate sh 12131 NULLCMD=: 12132 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 12133 # is contrary to our usage. Disable this feature. 12134 alias -g '${1+"$@"}'='"$@"' 12135 setopt NO_GLOB_SUBST 12136else 12137 case `(set -o) 2>/dev/null` in #( 12138 *posix*) : 12139 set -o posix ;; #( 12140 *) : 12141 ;; 12142esac 12143fi 12144 12145 12146as_nl=' 12147' 12148export as_nl 12149# Printing a long string crashes Solaris 7 /usr/bin/printf. 12150as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 12151as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 12152as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 12153# Prefer a ksh shell builtin over an external printf program on Solaris, 12154# but without wasting forks for bash or zsh. 12155if test -z "$BASH_VERSION$ZSH_VERSION" \ 12156 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 12157 as_echo='print -r --' 12158 as_echo_n='print -rn --' 12159elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 12160 as_echo='printf %s\n' 12161 as_echo_n='printf %s' 12162else 12163 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 12164 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 12165 as_echo_n='/usr/ucb/echo -n' 12166 else 12167 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 12168 as_echo_n_body='eval 12169 arg=$1; 12170 case $arg in #( 12171 *"$as_nl"*) 12172 expr "X$arg" : "X\\(.*\\)$as_nl"; 12173 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 12174 esac; 12175 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 12176 ' 12177 export as_echo_n_body 12178 as_echo_n='sh -c $as_echo_n_body as_echo' 12179 fi 12180 export as_echo_body 12181 as_echo='sh -c $as_echo_body as_echo' 12182fi 12183 12184# The user is always right. 12185if test "${PATH_SEPARATOR+set}" != set; then 12186 PATH_SEPARATOR=: 12187 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 12188 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 12189 PATH_SEPARATOR=';' 12190 } 12191fi 12192 12193 12194# IFS 12195# We need space, tab and new line, in precisely that order. Quoting is 12196# there to prevent editors from complaining about space-tab. 12197# (If _AS_PATH_WALK were called with IFS unset, it would disable word 12198# splitting by setting IFS to empty value.) 12199IFS=" "" $as_nl" 12200 12201# Find who we are. Look in the path if we contain no directory separator. 12202as_myself= 12203case $0 in #(( 12204 *[\\/]* ) as_myself=$0 ;; 12205 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12206for as_dir in $PATH 12207do 12208 IFS=$as_save_IFS 12209 test -z "$as_dir" && as_dir=. 12210 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 12211 done 12212IFS=$as_save_IFS 12213 12214 ;; 12215esac 12216# We did not find ourselves, most probably we were run as `sh COMMAND' 12217# in which case we are not to be found in the path. 12218if test "x$as_myself" = x; then 12219 as_myself=$0 12220fi 12221if test ! -f "$as_myself"; then 12222 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 12223 exit 1 12224fi 12225 12226# Unset variables that we do not need and which cause bugs (e.g. in 12227# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 12228# suppresses any "Segmentation fault" message there. '((' could 12229# trigger a bug in pdksh 5.2.14. 12230for as_var in BASH_ENV ENV MAIL MAILPATH 12231do eval test x\${$as_var+set} = xset \ 12232 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 12233done 12234PS1='$ ' 12235PS2='> ' 12236PS4='+ ' 12237 12238# NLS nuisances. 12239LC_ALL=C 12240export LC_ALL 12241LANGUAGE=C 12242export LANGUAGE 12243 12244# CDPATH. 12245(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12246 12247 12248# as_fn_error STATUS ERROR [LINENO LOG_FD] 12249# ---------------------------------------- 12250# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 12251# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 12252# script with STATUS, using 1 if that was 0. 12253as_fn_error () 12254{ 12255 as_status=$1; test $as_status -eq 0 && as_status=1 12256 if test "$4"; then 12257 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 12258 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 12259 fi 12260 $as_echo "$as_me: error: $2" >&2 12261 as_fn_exit $as_status 12262} # as_fn_error 12263 12264 12265# as_fn_set_status STATUS 12266# ----------------------- 12267# Set $? to STATUS, without forking. 12268as_fn_set_status () 12269{ 12270 return $1 12271} # as_fn_set_status 12272 12273# as_fn_exit STATUS 12274# ----------------- 12275# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 12276as_fn_exit () 12277{ 12278 set +e 12279 as_fn_set_status $1 12280 exit $1 12281} # as_fn_exit 12282 12283# as_fn_unset VAR 12284# --------------- 12285# Portably unset VAR. 12286as_fn_unset () 12287{ 12288 { eval $1=; unset $1;} 12289} 12290as_unset=as_fn_unset 12291# as_fn_append VAR VALUE 12292# ---------------------- 12293# Append the text in VALUE to the end of the definition contained in VAR. Take 12294# advantage of any shell optimizations that allow amortized linear growth over 12295# repeated appends, instead of the typical quadratic growth present in naive 12296# implementations. 12297if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 12298 eval 'as_fn_append () 12299 { 12300 eval $1+=\$2 12301 }' 12302else 12303 as_fn_append () 12304 { 12305 eval $1=\$$1\$2 12306 } 12307fi # as_fn_append 12308 12309# as_fn_arith ARG... 12310# ------------------ 12311# Perform arithmetic evaluation on the ARGs, and store the result in the 12312# global $as_val. Take advantage of shells that can avoid forks. The arguments 12313# must be portable across $(()) and expr. 12314if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 12315 eval 'as_fn_arith () 12316 { 12317 as_val=$(( $* )) 12318 }' 12319else 12320 as_fn_arith () 12321 { 12322 as_val=`expr "$@" || test $? -eq 1` 12323 } 12324fi # as_fn_arith 12325 12326 12327if expr a : '\(a\)' >/dev/null 2>&1 && 12328 test "X`expr 00001 : '.*\(...\)'`" = X001; then 12329 as_expr=expr 12330else 12331 as_expr=false 12332fi 12333 12334if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 12335 as_basename=basename 12336else 12337 as_basename=false 12338fi 12339 12340if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 12341 as_dirname=dirname 12342else 12343 as_dirname=false 12344fi 12345 12346as_me=`$as_basename -- "$0" || 12347$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 12348 X"$0" : 'X\(//\)$' \| \ 12349 X"$0" : 'X\(/\)' \| . 2>/dev/null || 12350$as_echo X/"$0" | 12351 sed '/^.*\/\([^/][^/]*\)\/*$/{ 12352 s//\1/ 12353 q 12354 } 12355 /^X\/\(\/\/\)$/{ 12356 s//\1/ 12357 q 12358 } 12359 /^X\/\(\/\).*/{ 12360 s//\1/ 12361 q 12362 } 12363 s/.*/./; q'` 12364 12365# Avoid depending upon Character Ranges. 12366as_cr_letters='abcdefghijklmnopqrstuvwxyz' 12367as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 12368as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12369as_cr_digits='0123456789' 12370as_cr_alnum=$as_cr_Letters$as_cr_digits 12371 12372ECHO_C= ECHO_N= ECHO_T= 12373case `echo -n x` in #((((( 12374-n*) 12375 case `echo 'xy\c'` in 12376 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12377 xy) ECHO_C='\c';; 12378 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12379 ECHO_T=' ';; 12380 esac;; 12381*) 12382 ECHO_N='-n';; 12383esac 12384 12385rm -f conf$$ conf$$.exe conf$$.file 12386if test -d conf$$.dir; then 12387 rm -f conf$$.dir/conf$$.file 12388else 12389 rm -f conf$$.dir 12390 mkdir conf$$.dir 2>/dev/null 12391fi 12392if (echo >conf$$.file) 2>/dev/null; then 12393 if ln -s conf$$.file conf$$ 2>/dev/null; then 12394 as_ln_s='ln -s' 12395 # ... but there are two gotchas: 12396 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12397 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12398 # In both cases, we have to default to `cp -p'. 12399 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12400 as_ln_s='cp -p' 12401 elif ln conf$$.file conf$$ 2>/dev/null; then 12402 as_ln_s=ln 12403 else 12404 as_ln_s='cp -p' 12405 fi 12406else 12407 as_ln_s='cp -p' 12408fi 12409rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12410rmdir conf$$.dir 2>/dev/null 12411 12412 12413# as_fn_mkdir_p 12414# ------------- 12415# Create "$as_dir" as a directory, including parents if necessary. 12416as_fn_mkdir_p () 12417{ 12418 12419 case $as_dir in #( 12420 -*) as_dir=./$as_dir;; 12421 esac 12422 test -d "$as_dir" || eval $as_mkdir_p || { 12423 as_dirs= 12424 while :; do 12425 case $as_dir in #( 12426 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12427 *) as_qdir=$as_dir;; 12428 esac 12429 as_dirs="'$as_qdir' $as_dirs" 12430 as_dir=`$as_dirname -- "$as_dir" || 12431$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12432 X"$as_dir" : 'X\(//\)[^/]' \| \ 12433 X"$as_dir" : 'X\(//\)$' \| \ 12434 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12435$as_echo X"$as_dir" | 12436 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12437 s//\1/ 12438 q 12439 } 12440 /^X\(\/\/\)[^/].*/{ 12441 s//\1/ 12442 q 12443 } 12444 /^X\(\/\/\)$/{ 12445 s//\1/ 12446 q 12447 } 12448 /^X\(\/\).*/{ 12449 s//\1/ 12450 q 12451 } 12452 s/.*/./; q'` 12453 test -d "$as_dir" && break 12454 done 12455 test -z "$as_dirs" || eval "mkdir $as_dirs" 12456 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 12457 12458 12459} # as_fn_mkdir_p 12460if mkdir -p . 2>/dev/null; then 12461 as_mkdir_p='mkdir -p "$as_dir"' 12462else 12463 test -d ./-p && rmdir ./-p 12464 as_mkdir_p=false 12465fi 12466 12467if test -x / >/dev/null 2>&1; then 12468 as_test_x='test -x' 12469else 12470 if ls -dL / >/dev/null 2>&1; then 12471 as_ls_L_option=L 12472 else 12473 as_ls_L_option= 12474 fi 12475 as_test_x=' 12476 eval sh -c '\'' 12477 if test -d "$1"; then 12478 test -d "$1/."; 12479 else 12480 case $1 in #( 12481 -*)set "./$1";; 12482 esac; 12483 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12484 ???[sx]*):;;*)false;;esac;fi 12485 '\'' sh 12486 ' 12487fi 12488as_executable_p=$as_test_x 12489 12490# Sed expression to map a string onto a valid CPP name. 12491as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12492 12493# Sed expression to map a string onto a valid variable name. 12494as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12495 12496 12497exec 6>&1 12498## ----------------------------------- ## 12499## Main body of $CONFIG_STATUS script. ## 12500## ----------------------------------- ## 12501_ASEOF 12502test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12503 12504cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12505# Save the log message, to keep $0 and so on meaningful, and to 12506# report actual input values of CONFIG_FILES etc. instead of their 12507# values after options handling. 12508ac_log=" 12509This file was extended by libXxf86dga $as_me 1.1.2, which was 12510generated by GNU Autoconf 2.68. Invocation command line was 12511 12512 CONFIG_FILES = $CONFIG_FILES 12513 CONFIG_HEADERS = $CONFIG_HEADERS 12514 CONFIG_LINKS = $CONFIG_LINKS 12515 CONFIG_COMMANDS = $CONFIG_COMMANDS 12516 $ $0 $@ 12517 12518on `(hostname || uname -n) 2>/dev/null | sed 1q` 12519" 12520 12521_ACEOF 12522 12523case $ac_config_files in *" 12524"*) set x $ac_config_files; shift; ac_config_files=$*;; 12525esac 12526 12527case $ac_config_headers in *" 12528"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12529esac 12530 12531 12532cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12533# Files that config.status was made for. 12534config_files="$ac_config_files" 12535config_headers="$ac_config_headers" 12536config_commands="$ac_config_commands" 12537 12538_ACEOF 12539 12540cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12541ac_cs_usage="\ 12542\`$as_me' instantiates files and other configuration actions 12543from templates according to the current configuration. Unless the files 12544and actions are specified as TAGs, all are instantiated by default. 12545 12546Usage: $0 [OPTION]... [TAG]... 12547 12548 -h, --help print this help, then exit 12549 -V, --version print version number and configuration settings, then exit 12550 --config print configuration, then exit 12551 -q, --quiet, --silent 12552 do not print progress messages 12553 -d, --debug don't remove temporary files 12554 --recheck update $as_me by reconfiguring in the same conditions 12555 --file=FILE[:TEMPLATE] 12556 instantiate the configuration file FILE 12557 --header=FILE[:TEMPLATE] 12558 instantiate the configuration header FILE 12559 12560Configuration files: 12561$config_files 12562 12563Configuration headers: 12564$config_headers 12565 12566Configuration commands: 12567$config_commands 12568 12569Report bugs to <https://bugs.freedesktop.org/enter_bug.cgi?product=xorg>." 12570 12571_ACEOF 12572cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12573ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 12574ac_cs_version="\\ 12575libXxf86dga config.status 1.1.2 12576configured by $0, generated by GNU Autoconf 2.68, 12577 with options \\"\$ac_cs_config\\" 12578 12579Copyright (C) 2010 Free Software Foundation, Inc. 12580This config.status script is free software; the Free Software Foundation 12581gives unlimited permission to copy, distribute and modify it." 12582 12583ac_pwd='$ac_pwd' 12584srcdir='$srcdir' 12585INSTALL='$INSTALL' 12586MKDIR_P='$MKDIR_P' 12587AWK='$AWK' 12588test -n "\$AWK" || AWK=awk 12589_ACEOF 12590 12591cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12592# The default lists apply if the user does not specify any file. 12593ac_need_defaults=: 12594while test $# != 0 12595do 12596 case $1 in 12597 --*=?*) 12598 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12599 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12600 ac_shift=: 12601 ;; 12602 --*=) 12603 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12604 ac_optarg= 12605 ac_shift=: 12606 ;; 12607 *) 12608 ac_option=$1 12609 ac_optarg=$2 12610 ac_shift=shift 12611 ;; 12612 esac 12613 12614 case $ac_option in 12615 # Handling of the options. 12616 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12617 ac_cs_recheck=: ;; 12618 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12619 $as_echo "$ac_cs_version"; exit ;; 12620 --config | --confi | --conf | --con | --co | --c ) 12621 $as_echo "$ac_cs_config"; exit ;; 12622 --debug | --debu | --deb | --de | --d | -d ) 12623 debug=: ;; 12624 --file | --fil | --fi | --f ) 12625 $ac_shift 12626 case $ac_optarg in 12627 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12628 '') as_fn_error $? "missing file argument" ;; 12629 esac 12630 as_fn_append CONFIG_FILES " '$ac_optarg'" 12631 ac_need_defaults=false;; 12632 --header | --heade | --head | --hea ) 12633 $ac_shift 12634 case $ac_optarg in 12635 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12636 esac 12637 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12638 ac_need_defaults=false;; 12639 --he | --h) 12640 # Conflict between --help and --header 12641 as_fn_error $? "ambiguous option: \`$1' 12642Try \`$0 --help' for more information.";; 12643 --help | --hel | -h ) 12644 $as_echo "$ac_cs_usage"; exit ;; 12645 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12646 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12647 ac_cs_silent=: ;; 12648 12649 # This is an error. 12650 -*) as_fn_error $? "unrecognized option: \`$1' 12651Try \`$0 --help' for more information." ;; 12652 12653 *) as_fn_append ac_config_targets " $1" 12654 ac_need_defaults=false ;; 12655 12656 esac 12657 shift 12658done 12659 12660ac_configure_extra_args= 12661 12662if $ac_cs_silent; then 12663 exec 6>/dev/null 12664 ac_configure_extra_args="$ac_configure_extra_args --silent" 12665fi 12666 12667_ACEOF 12668cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12669if \$ac_cs_recheck; then 12670 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12671 shift 12672 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12673 CONFIG_SHELL='$SHELL' 12674 export CONFIG_SHELL 12675 exec "\$@" 12676fi 12677 12678_ACEOF 12679cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12680exec 5>>config.log 12681{ 12682 echo 12683 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12684## Running $as_me. ## 12685_ASBOX 12686 $as_echo "$ac_log" 12687} >&5 12688 12689_ACEOF 12690cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12691# 12692# INIT-COMMANDS 12693# 12694AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 12695 12696 12697# The HP-UX ksh and POSIX shell print the target directory to stdout 12698# if CDPATH is set. 12699(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12700 12701sed_quote_subst='$sed_quote_subst' 12702double_quote_subst='$double_quote_subst' 12703delay_variable_subst='$delay_variable_subst' 12704macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12705macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12706enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12707enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12708pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12709enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12710SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12711ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12712host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12713host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12714host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12715build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12716build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12717build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12718SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12719Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12720GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12721EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12722FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12723LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12724NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12725LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12726max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12727ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12728exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12729lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12730lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12731lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12732reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12733reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12734OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12735deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12736file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12737AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12738AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12739STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12740RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12741old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12742old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12743old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12744lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12745CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12746CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12747compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12748GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12749lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12750lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12751lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12752lt_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"`' 12753objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12754MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12755lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12756lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12757lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12758lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12759lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12760need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12761DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12762NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12763LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12764OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12765OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12766libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12767shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12768extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12769archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12770enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12771export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12772whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12773compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12774old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12775old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12776archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12777archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12778module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12779module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12780with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12781allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12782no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12783hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12784hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12785hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12786hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12787hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12788hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12789hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12790hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12791inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12792link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12793fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12794always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12795export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12796exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12797include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12798prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12799file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12800variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12801need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12802need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12803version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12804runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12805shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12806shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12807libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12808library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12809soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12810install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12811postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12812postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12813finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12814finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12815hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12816sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12817sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12818hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12819enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12820enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12821enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12822old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12823striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12824 12825LTCC='$LTCC' 12826LTCFLAGS='$LTCFLAGS' 12827compiler='$compiler_DEFAULT' 12828 12829# A function that is used when there is no print builtin or printf. 12830func_fallback_echo () 12831{ 12832 eval 'cat <<_LTECHO_EOF 12833\$1 12834_LTECHO_EOF' 12835} 12836 12837# Quote evaled strings. 12838for var in SHELL \ 12839ECHO \ 12840SED \ 12841GREP \ 12842EGREP \ 12843FGREP \ 12844LD \ 12845NM \ 12846LN_S \ 12847lt_SP2NL \ 12848lt_NL2SP \ 12849reload_flag \ 12850OBJDUMP \ 12851deplibs_check_method \ 12852file_magic_cmd \ 12853AR \ 12854AR_FLAGS \ 12855STRIP \ 12856RANLIB \ 12857CC \ 12858CFLAGS \ 12859compiler \ 12860lt_cv_sys_global_symbol_pipe \ 12861lt_cv_sys_global_symbol_to_cdecl \ 12862lt_cv_sys_global_symbol_to_c_name_address \ 12863lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12864lt_prog_compiler_no_builtin_flag \ 12865lt_prog_compiler_wl \ 12866lt_prog_compiler_pic \ 12867lt_prog_compiler_static \ 12868lt_cv_prog_compiler_c_o \ 12869need_locks \ 12870DSYMUTIL \ 12871NMEDIT \ 12872LIPO \ 12873OTOOL \ 12874OTOOL64 \ 12875shrext_cmds \ 12876export_dynamic_flag_spec \ 12877whole_archive_flag_spec \ 12878compiler_needs_object \ 12879with_gnu_ld \ 12880allow_undefined_flag \ 12881no_undefined_flag \ 12882hardcode_libdir_flag_spec \ 12883hardcode_libdir_flag_spec_ld \ 12884hardcode_libdir_separator \ 12885fix_srcfile_path \ 12886exclude_expsyms \ 12887include_expsyms \ 12888file_list_spec \ 12889variables_saved_for_relink \ 12890libname_spec \ 12891library_names_spec \ 12892soname_spec \ 12893install_override_mode \ 12894finish_eval \ 12895old_striplib \ 12896striplib; do 12897 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12898 *[\\\\\\\`\\"\\\$]*) 12899 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12900 ;; 12901 *) 12902 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12903 ;; 12904 esac 12905done 12906 12907# Double-quote double-evaled strings. 12908for var in reload_cmds \ 12909old_postinstall_cmds \ 12910old_postuninstall_cmds \ 12911old_archive_cmds \ 12912extract_expsyms_cmds \ 12913old_archive_from_new_cmds \ 12914old_archive_from_expsyms_cmds \ 12915archive_cmds \ 12916archive_expsym_cmds \ 12917module_cmds \ 12918module_expsym_cmds \ 12919export_symbols_cmds \ 12920prelink_cmds \ 12921postinstall_cmds \ 12922postuninstall_cmds \ 12923finish_cmds \ 12924sys_lib_search_path_spec \ 12925sys_lib_dlsearch_path_spec; do 12926 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12927 *[\\\\\\\`\\"\\\$]*) 12928 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12929 ;; 12930 *) 12931 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12932 ;; 12933 esac 12934done 12935 12936ac_aux_dir='$ac_aux_dir' 12937xsi_shell='$xsi_shell' 12938lt_shell_append='$lt_shell_append' 12939 12940# See if we are running on zsh, and set the options which allow our 12941# commands through without removal of \ escapes INIT. 12942if test -n "\${ZSH_VERSION+set}" ; then 12943 setopt NO_GLOB_SUBST 12944fi 12945 12946 12947 PACKAGE='$PACKAGE' 12948 VERSION='$VERSION' 12949 TIMESTAMP='$TIMESTAMP' 12950 RM='$RM' 12951 ofile='$ofile' 12952 12953 12954 12955 12956_ACEOF 12957 12958cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12959 12960# Handling of arguments. 12961for ac_config_target in $ac_config_targets 12962do 12963 case $ac_config_target in 12964 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 12965 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 12966 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12967 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12968 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 12969 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 12970 "xxf86dga.pc") CONFIG_FILES="$CONFIG_FILES xxf86dga.pc" ;; 12971 12972 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12973 esac 12974done 12975 12976 12977# If the user did not use the arguments to specify the items to instantiate, 12978# then the envvar interface is used. Set only those that are not. 12979# We use the long form for the default assignment because of an extremely 12980# bizarre bug on SunOS 4.1.3. 12981if $ac_need_defaults; then 12982 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12983 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12984 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12985fi 12986 12987# Have a temporary directory for convenience. Make it in the build tree 12988# simply because there is no reason against having it here, and in addition, 12989# creating and moving files from /tmp can sometimes cause problems. 12990# Hook for its removal unless debugging. 12991# Note that there is a small window in which the directory will not be cleaned: 12992# after its creation but before its name has been assigned to `$tmp'. 12993$debug || 12994{ 12995 tmp= ac_tmp= 12996 trap 'exit_status=$? 12997 : "${ac_tmp:=$tmp}" 12998 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 12999' 0 13000 trap 'as_fn_exit 1' 1 2 13 15 13001} 13002# Create a (secure) tmp directory for tmp files. 13003 13004{ 13005 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 13006 test -d "$tmp" 13007} || 13008{ 13009 tmp=./conf$$-$RANDOM 13010 (umask 077 && mkdir "$tmp") 13011} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 13012ac_tmp=$tmp 13013 13014# Set up the scripts for CONFIG_FILES section. 13015# No need to generate them if there are no CONFIG_FILES. 13016# This happens for instance with `./config.status config.h'. 13017if test -n "$CONFIG_FILES"; then 13018 13019 13020ac_cr=`echo X | tr X '\015'` 13021# On cygwin, bash can eat \r inside `` if the user requested igncr. 13022# But we know of no other shell where ac_cr would be empty at this 13023# point, so we can use a bashism as a fallback. 13024if test "x$ac_cr" = x; then 13025 eval ac_cr=\$\'\\r\' 13026fi 13027ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 13028if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 13029 ac_cs_awk_cr='\\r' 13030else 13031 ac_cs_awk_cr=$ac_cr 13032fi 13033 13034echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 13035_ACEOF 13036 13037 13038{ 13039 echo "cat >conf$$subs.awk <<_ACEOF" && 13040 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 13041 echo "_ACEOF" 13042} >conf$$subs.sh || 13043 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13044ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 13045ac_delim='%!_!# ' 13046for ac_last_try in false false false false false :; do 13047 . ./conf$$subs.sh || 13048 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13049 13050 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 13051 if test $ac_delim_n = $ac_delim_num; then 13052 break 13053 elif $ac_last_try; then 13054 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 13055 else 13056 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13057 fi 13058done 13059rm -f conf$$subs.sh 13060 13061cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13062cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 13063_ACEOF 13064sed -n ' 13065h 13066s/^/S["/; s/!.*/"]=/ 13067p 13068g 13069s/^[^!]*!// 13070:repl 13071t repl 13072s/'"$ac_delim"'$// 13073t delim 13074:nl 13075h 13076s/\(.\{148\}\)..*/\1/ 13077t more1 13078s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 13079p 13080n 13081b repl 13082:more1 13083s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13084p 13085g 13086s/.\{148\}// 13087t nl 13088:delim 13089h 13090s/\(.\{148\}\)..*/\1/ 13091t more2 13092s/["\\]/\\&/g; s/^/"/; s/$/"/ 13093p 13094b 13095:more2 13096s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 13097p 13098g 13099s/.\{148\}// 13100t delim 13101' <conf$$subs.awk | sed ' 13102/^[^""]/{ 13103 N 13104 s/\n// 13105} 13106' >>$CONFIG_STATUS || ac_write_fail=1 13107rm -f conf$$subs.awk 13108cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13109_ACAWK 13110cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 13111 for (key in S) S_is_set[key] = 1 13112 FS = "" 13113 13114} 13115{ 13116 line = $ 0 13117 nfields = split(line, field, "@") 13118 substed = 0 13119 len = length(field[1]) 13120 for (i = 2; i < nfields; i++) { 13121 key = field[i] 13122 keylen = length(key) 13123 if (S_is_set[key]) { 13124 value = S[key] 13125 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 13126 len += length(value) + length(field[++i]) 13127 substed = 1 13128 } else 13129 len += 1 + keylen 13130 } 13131 13132 print line 13133} 13134 13135_ACAWK 13136_ACEOF 13137cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13138if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 13139 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 13140else 13141 cat 13142fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 13143 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 13144_ACEOF 13145 13146# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 13147# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 13148# trailing colons and then remove the whole line if VPATH becomes empty 13149# (actually we leave an empty line to preserve line numbers). 13150if test "x$srcdir" = x.; then 13151 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 13152h 13153s/// 13154s/^/:/ 13155s/[ ]*$/:/ 13156s/:\$(srcdir):/:/g 13157s/:\${srcdir}:/:/g 13158s/:@srcdir@:/:/g 13159s/^:*// 13160s/:*$// 13161x 13162s/\(=[ ]*\).*/\1/ 13163G 13164s/\n// 13165s/^[^=]*=[ ]*$// 13166}' 13167fi 13168 13169cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13170fi # test -n "$CONFIG_FILES" 13171 13172# Set up the scripts for CONFIG_HEADERS section. 13173# No need to generate them if there are no CONFIG_HEADERS. 13174# This happens for instance with `./config.status Makefile'. 13175if test -n "$CONFIG_HEADERS"; then 13176cat >"$ac_tmp/defines.awk" <<\_ACAWK || 13177BEGIN { 13178_ACEOF 13179 13180# Transform confdefs.h into an awk script `defines.awk', embedded as 13181# here-document in config.status, that substitutes the proper values into 13182# config.h.in to produce config.h. 13183 13184# Create a delimiter string that does not exist in confdefs.h, to ease 13185# handling of long lines. 13186ac_delim='%!_!# ' 13187for ac_last_try in false false :; do 13188 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 13189 if test -z "$ac_tt"; then 13190 break 13191 elif $ac_last_try; then 13192 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 13193 else 13194 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 13195 fi 13196done 13197 13198# For the awk script, D is an array of macro values keyed by name, 13199# likewise P contains macro parameters if any. Preserve backslash 13200# newline sequences. 13201 13202ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 13203sed -n ' 13204s/.\{148\}/&'"$ac_delim"'/g 13205t rset 13206:rset 13207s/^[ ]*#[ ]*define[ ][ ]*/ / 13208t def 13209d 13210:def 13211s/\\$// 13212t bsnl 13213s/["\\]/\\&/g 13214s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13215D["\1"]=" \3"/p 13216s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 13217d 13218:bsnl 13219s/["\\]/\\&/g 13220s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 13221D["\1"]=" \3\\\\\\n"\\/p 13222t cont 13223s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 13224t cont 13225d 13226:cont 13227n 13228s/.\{148\}/&'"$ac_delim"'/g 13229t clear 13230:clear 13231s/\\$// 13232t bsnlc 13233s/["\\]/\\&/g; s/^/"/; s/$/"/p 13234d 13235:bsnlc 13236s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 13237b cont 13238' <confdefs.h | sed ' 13239s/'"$ac_delim"'/"\\\ 13240"/g' >>$CONFIG_STATUS || ac_write_fail=1 13241 13242cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13243 for (key in D) D_is_set[key] = 1 13244 FS = "" 13245} 13246/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 13247 line = \$ 0 13248 split(line, arg, " ") 13249 if (arg[1] == "#") { 13250 defundef = arg[2] 13251 mac1 = arg[3] 13252 } else { 13253 defundef = substr(arg[1], 2) 13254 mac1 = arg[2] 13255 } 13256 split(mac1, mac2, "(") #) 13257 macro = mac2[1] 13258 prefix = substr(line, 1, index(line, defundef) - 1) 13259 if (D_is_set[macro]) { 13260 # Preserve the white space surrounding the "#". 13261 print prefix "define", macro P[macro] D[macro] 13262 next 13263 } else { 13264 # Replace #undef with comments. This is necessary, for example, 13265 # in the case of _POSIX_SOURCE, which is predefined and required 13266 # on some systems where configure will not decide to define it. 13267 if (defundef == "undef") { 13268 print "/*", prefix defundef, macro, "*/" 13269 next 13270 } 13271 } 13272} 13273{ print } 13274_ACAWK 13275_ACEOF 13276cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13277 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 13278fi # test -n "$CONFIG_HEADERS" 13279 13280 13281eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 13282shift 13283for ac_tag 13284do 13285 case $ac_tag in 13286 :[FHLC]) ac_mode=$ac_tag; continue;; 13287 esac 13288 case $ac_mode$ac_tag in 13289 :[FHL]*:*);; 13290 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 13291 :[FH]-) ac_tag=-:-;; 13292 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 13293 esac 13294 ac_save_IFS=$IFS 13295 IFS=: 13296 set x $ac_tag 13297 IFS=$ac_save_IFS 13298 shift 13299 ac_file=$1 13300 shift 13301 13302 case $ac_mode in 13303 :L) ac_source=$1;; 13304 :[FH]) 13305 ac_file_inputs= 13306 for ac_f 13307 do 13308 case $ac_f in 13309 -) ac_f="$ac_tmp/stdin";; 13310 *) # Look for the file first in the build tree, then in the source tree 13311 # (if the path is not absolute). The absolute path cannot be DOS-style, 13312 # because $ac_f cannot contain `:'. 13313 test -f "$ac_f" || 13314 case $ac_f in 13315 [\\/$]*) false;; 13316 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 13317 esac || 13318 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 13319 esac 13320 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 13321 as_fn_append ac_file_inputs " '$ac_f'" 13322 done 13323 13324 # Let's still pretend it is `configure' which instantiates (i.e., don't 13325 # use $as_me), people would be surprised to read: 13326 # /* config.h. Generated by config.status. */ 13327 configure_input='Generated from '` 13328 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 13329 `' by configure.' 13330 if test x"$ac_file" != x-; then 13331 configure_input="$ac_file. $configure_input" 13332 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 13333$as_echo "$as_me: creating $ac_file" >&6;} 13334 fi 13335 # Neutralize special characters interpreted by sed in replacement strings. 13336 case $configure_input in #( 13337 *\&* | *\|* | *\\* ) 13338 ac_sed_conf_input=`$as_echo "$configure_input" | 13339 sed 's/[\\\\&|]/\\\\&/g'`;; #( 13340 *) ac_sed_conf_input=$configure_input;; 13341 esac 13342 13343 case $ac_tag in 13344 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 13345 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 13346 esac 13347 ;; 13348 esac 13349 13350 ac_dir=`$as_dirname -- "$ac_file" || 13351$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13352 X"$ac_file" : 'X\(//\)[^/]' \| \ 13353 X"$ac_file" : 'X\(//\)$' \| \ 13354 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 13355$as_echo X"$ac_file" | 13356 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13357 s//\1/ 13358 q 13359 } 13360 /^X\(\/\/\)[^/].*/{ 13361 s//\1/ 13362 q 13363 } 13364 /^X\(\/\/\)$/{ 13365 s//\1/ 13366 q 13367 } 13368 /^X\(\/\).*/{ 13369 s//\1/ 13370 q 13371 } 13372 s/.*/./; q'` 13373 as_dir="$ac_dir"; as_fn_mkdir_p 13374 ac_builddir=. 13375 13376case "$ac_dir" in 13377.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13378*) 13379 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13380 # A ".." for each directory in $ac_dir_suffix. 13381 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13382 case $ac_top_builddir_sub in 13383 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13384 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13385 esac ;; 13386esac 13387ac_abs_top_builddir=$ac_pwd 13388ac_abs_builddir=$ac_pwd$ac_dir_suffix 13389# for backward compatibility: 13390ac_top_builddir=$ac_top_build_prefix 13391 13392case $srcdir in 13393 .) # We are building in place. 13394 ac_srcdir=. 13395 ac_top_srcdir=$ac_top_builddir_sub 13396 ac_abs_top_srcdir=$ac_pwd ;; 13397 [\\/]* | ?:[\\/]* ) # Absolute name. 13398 ac_srcdir=$srcdir$ac_dir_suffix; 13399 ac_top_srcdir=$srcdir 13400 ac_abs_top_srcdir=$srcdir ;; 13401 *) # Relative name. 13402 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13403 ac_top_srcdir=$ac_top_build_prefix$srcdir 13404 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13405esac 13406ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13407 13408 13409 case $ac_mode in 13410 :F) 13411 # 13412 # CONFIG_FILE 13413 # 13414 13415 case $INSTALL in 13416 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13417 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13418 esac 13419 ac_MKDIR_P=$MKDIR_P 13420 case $MKDIR_P in 13421 [\\/$]* | ?:[\\/]* ) ;; 13422 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13423 esac 13424_ACEOF 13425 13426cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13427# If the template does not know about datarootdir, expand it. 13428# FIXME: This hack should be removed a few years after 2.60. 13429ac_datarootdir_hack=; ac_datarootdir_seen= 13430ac_sed_dataroot=' 13431/datarootdir/ { 13432 p 13433 q 13434} 13435/@datadir@/p 13436/@docdir@/p 13437/@infodir@/p 13438/@localedir@/p 13439/@mandir@/p' 13440case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13441*datarootdir*) ac_datarootdir_seen=yes;; 13442*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13443 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13444$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13445_ACEOF 13446cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13447 ac_datarootdir_hack=' 13448 s&@datadir@&$datadir&g 13449 s&@docdir@&$docdir&g 13450 s&@infodir@&$infodir&g 13451 s&@localedir@&$localedir&g 13452 s&@mandir@&$mandir&g 13453 s&\\\${datarootdir}&$datarootdir&g' ;; 13454esac 13455_ACEOF 13456 13457# Neutralize VPATH when `$srcdir' = `.'. 13458# Shell code in configure.ac might set extrasub. 13459# FIXME: do we really want to maintain this feature? 13460cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13461ac_sed_extra="$ac_vpsub 13462$extrasub 13463_ACEOF 13464cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13465:t 13466/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13467s|@configure_input@|$ac_sed_conf_input|;t t 13468s&@top_builddir@&$ac_top_builddir_sub&;t t 13469s&@top_build_prefix@&$ac_top_build_prefix&;t t 13470s&@srcdir@&$ac_srcdir&;t t 13471s&@abs_srcdir@&$ac_abs_srcdir&;t t 13472s&@top_srcdir@&$ac_top_srcdir&;t t 13473s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13474s&@builddir@&$ac_builddir&;t t 13475s&@abs_builddir@&$ac_abs_builddir&;t t 13476s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13477s&@INSTALL@&$ac_INSTALL&;t t 13478s&@MKDIR_P@&$ac_MKDIR_P&;t t 13479$ac_datarootdir_hack 13480" 13481eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 13482 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13483 13484test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13485 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 13486 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 13487 "$ac_tmp/out"`; test -z "$ac_out"; } && 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13489which seems to be undefined. Please make sure it is defined" >&5 13490$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13491which seems to be undefined. Please make sure it is defined" >&2;} 13492 13493 rm -f "$ac_tmp/stdin" 13494 case $ac_file in 13495 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 13496 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 13497 esac \ 13498 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13499 ;; 13500 :H) 13501 # 13502 # CONFIG_HEADER 13503 # 13504 if test x"$ac_file" != x-; then 13505 { 13506 $as_echo "/* $configure_input */" \ 13507 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 13508 } >"$ac_tmp/config.h" \ 13509 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13510 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 13511 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13512$as_echo "$as_me: $ac_file is unchanged" >&6;} 13513 else 13514 rm -f "$ac_file" 13515 mv "$ac_tmp/config.h" "$ac_file" \ 13516 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 13517 fi 13518 else 13519 $as_echo "/* $configure_input */" \ 13520 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 13521 || as_fn_error $? "could not create -" "$LINENO" 5 13522 fi 13523# Compute "$ac_file"'s index in $config_headers. 13524_am_arg="$ac_file" 13525_am_stamp_count=1 13526for _am_header in $config_headers :; do 13527 case $_am_header in 13528 $_am_arg | $_am_arg:* ) 13529 break ;; 13530 * ) 13531 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13532 esac 13533done 13534echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13535$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13536 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13537 X"$_am_arg" : 'X\(//\)$' \| \ 13538 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13539$as_echo X"$_am_arg" | 13540 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13541 s//\1/ 13542 q 13543 } 13544 /^X\(\/\/\)[^/].*/{ 13545 s//\1/ 13546 q 13547 } 13548 /^X\(\/\/\)$/{ 13549 s//\1/ 13550 q 13551 } 13552 /^X\(\/\).*/{ 13553 s//\1/ 13554 q 13555 } 13556 s/.*/./; q'`/stamp-h$_am_stamp_count 13557 ;; 13558 13559 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13560$as_echo "$as_me: executing $ac_file commands" >&6;} 13561 ;; 13562 esac 13563 13564 13565 case $ac_file$ac_mode in 13566 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 13567 # Autoconf 2.62 quotes --file arguments for eval, but not when files 13568 # are listed without --file. Let's play safe and only enable the eval 13569 # if we detect the quoting. 13570 case $CONFIG_FILES in 13571 *\'*) eval set x "$CONFIG_FILES" ;; 13572 *) set x $CONFIG_FILES ;; 13573 esac 13574 shift 13575 for mf 13576 do 13577 # Strip MF so we end up with the name of the file. 13578 mf=`echo "$mf" | sed -e 's/:.*$//'` 13579 # Check whether this is an Automake generated Makefile or not. 13580 # We used to match only the files named `Makefile.in', but 13581 # some people rename them; so instead we look at the file content. 13582 # Grep'ing the first line is not enough: some people post-process 13583 # each Makefile.in and add a new line on top of each file to say so. 13584 # Grep'ing the whole file is not good either: AIX grep has a line 13585 # limit of 2048, but all sed's we know have understand at least 4000. 13586 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 13587 dirpart=`$as_dirname -- "$mf" || 13588$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13589 X"$mf" : 'X\(//\)[^/]' \| \ 13590 X"$mf" : 'X\(//\)$' \| \ 13591 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 13592$as_echo X"$mf" | 13593 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13594 s//\1/ 13595 q 13596 } 13597 /^X\(\/\/\)[^/].*/{ 13598 s//\1/ 13599 q 13600 } 13601 /^X\(\/\/\)$/{ 13602 s//\1/ 13603 q 13604 } 13605 /^X\(\/\).*/{ 13606 s//\1/ 13607 q 13608 } 13609 s/.*/./; q'` 13610 else 13611 continue 13612 fi 13613 # Extract the definition of DEPDIR, am__include, and am__quote 13614 # from the Makefile without running `make'. 13615 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 13616 test -z "$DEPDIR" && continue 13617 am__include=`sed -n 's/^am__include = //p' < "$mf"` 13618 test -z "am__include" && continue 13619 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 13620 # When using ansi2knr, U may be empty or an underscore; expand it 13621 U=`sed -n 's/^U = //p' < "$mf"` 13622 # Find all dependency output files, they are included files with 13623 # $(DEPDIR) in their names. We invoke sed twice because it is the 13624 # simplest approach to changing $(DEPDIR) to its actual value in the 13625 # expansion. 13626 for file in `sed -n " 13627 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 13628 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 13629 # Make sure the directory exists. 13630 test -f "$dirpart/$file" && continue 13631 fdir=`$as_dirname -- "$file" || 13632$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13633 X"$file" : 'X\(//\)[^/]' \| \ 13634 X"$file" : 'X\(//\)$' \| \ 13635 X"$file" : 'X\(/\)' \| . 2>/dev/null || 13636$as_echo X"$file" | 13637 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13638 s//\1/ 13639 q 13640 } 13641 /^X\(\/\/\)[^/].*/{ 13642 s//\1/ 13643 q 13644 } 13645 /^X\(\/\/\)$/{ 13646 s//\1/ 13647 q 13648 } 13649 /^X\(\/\).*/{ 13650 s//\1/ 13651 q 13652 } 13653 s/.*/./; q'` 13654 as_dir=$dirpart/$fdir; as_fn_mkdir_p 13655 # echo "creating $dirpart/$file" 13656 echo '# dummy' > "$dirpart/$file" 13657 done 13658 done 13659} 13660 ;; 13661 "libtool":C) 13662 13663 # See if we are running on zsh, and set the options which allow our 13664 # commands through without removal of \ escapes. 13665 if test -n "${ZSH_VERSION+set}" ; then 13666 setopt NO_GLOB_SUBST 13667 fi 13668 13669 cfgfile="${ofile}T" 13670 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13671 $RM "$cfgfile" 13672 13673 cat <<_LT_EOF >> "$cfgfile" 13674#! $SHELL 13675 13676# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13677# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13678# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13679# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13680# 13681# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13682# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 13683# Inc. 13684# Written by Gordon Matzigkeit, 1996 13685# 13686# This file is part of GNU Libtool. 13687# 13688# GNU Libtool is free software; you can redistribute it and/or 13689# modify it under the terms of the GNU General Public License as 13690# published by the Free Software Foundation; either version 2 of 13691# the License, or (at your option) any later version. 13692# 13693# As a special exception to the GNU General Public License, 13694# if you distribute this file as part of a program or library that 13695# is built using GNU Libtool, you may include this file under the 13696# same distribution terms that you use for the rest of that program. 13697# 13698# GNU Libtool is distributed in the hope that it will be useful, 13699# but WITHOUT ANY WARRANTY; without even the implied warranty of 13700# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13701# GNU General Public License for more details. 13702# 13703# You should have received a copy of the GNU General Public License 13704# along with GNU Libtool; see the file COPYING. If not, a copy 13705# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13706# obtained by writing to the Free Software Foundation, Inc., 13707# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13708 13709 13710# The names of the tagged configurations supported by this script. 13711available_tags="" 13712 13713# ### BEGIN LIBTOOL CONFIG 13714 13715# Which release of libtool.m4 was used? 13716macro_version=$macro_version 13717macro_revision=$macro_revision 13718 13719# Whether or not to build shared libraries. 13720build_libtool_libs=$enable_shared 13721 13722# Whether or not to build static libraries. 13723build_old_libs=$enable_static 13724 13725# What type of objects to build. 13726pic_mode=$pic_mode 13727 13728# Whether or not to optimize for fast installation. 13729fast_install=$enable_fast_install 13730 13731# Shell to use when invoking shell scripts. 13732SHELL=$lt_SHELL 13733 13734# An echo program that protects backslashes. 13735ECHO=$lt_ECHO 13736 13737# The host system. 13738host_alias=$host_alias 13739host=$host 13740host_os=$host_os 13741 13742# The build system. 13743build_alias=$build_alias 13744build=$build 13745build_os=$build_os 13746 13747# A sed program that does not truncate output. 13748SED=$lt_SED 13749 13750# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13751Xsed="\$SED -e 1s/^X//" 13752 13753# A grep program that handles long lines. 13754GREP=$lt_GREP 13755 13756# An ERE matcher. 13757EGREP=$lt_EGREP 13758 13759# A literal string matcher. 13760FGREP=$lt_FGREP 13761 13762# A BSD- or MS-compatible name lister. 13763NM=$lt_NM 13764 13765# Whether we need soft or hard links. 13766LN_S=$lt_LN_S 13767 13768# What is the maximum length of a command? 13769max_cmd_len=$max_cmd_len 13770 13771# Object file suffix (normally "o"). 13772objext=$ac_objext 13773 13774# Executable file suffix (normally ""). 13775exeext=$exeext 13776 13777# whether the shell understands "unset". 13778lt_unset=$lt_unset 13779 13780# turn spaces into newlines. 13781SP2NL=$lt_lt_SP2NL 13782 13783# turn newlines into spaces. 13784NL2SP=$lt_lt_NL2SP 13785 13786# An object symbol dumper. 13787OBJDUMP=$lt_OBJDUMP 13788 13789# Method to check whether dependent libraries are shared objects. 13790deplibs_check_method=$lt_deplibs_check_method 13791 13792# Command to use when deplibs_check_method == "file_magic". 13793file_magic_cmd=$lt_file_magic_cmd 13794 13795# The archiver. 13796AR=$lt_AR 13797AR_FLAGS=$lt_AR_FLAGS 13798 13799# A symbol stripping program. 13800STRIP=$lt_STRIP 13801 13802# Commands used to install an old-style archive. 13803RANLIB=$lt_RANLIB 13804old_postinstall_cmds=$lt_old_postinstall_cmds 13805old_postuninstall_cmds=$lt_old_postuninstall_cmds 13806 13807# Whether to use a lock for old archive extraction. 13808lock_old_archive_extraction=$lock_old_archive_extraction 13809 13810# A C compiler. 13811LTCC=$lt_CC 13812 13813# LTCC compiler flags. 13814LTCFLAGS=$lt_CFLAGS 13815 13816# Take the output of nm and produce a listing of raw symbols and C names. 13817global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13818 13819# Transform the output of nm in a proper C declaration. 13820global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13821 13822# Transform the output of nm in a C name address pair. 13823global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13824 13825# Transform the output of nm in a C name address pair when lib prefix is needed. 13826global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13827 13828# The name of the directory that contains temporary libtool files. 13829objdir=$objdir 13830 13831# Used to examine libraries when file_magic_cmd begins with "file". 13832MAGIC_CMD=$MAGIC_CMD 13833 13834# Must we lock files when doing compilation? 13835need_locks=$lt_need_locks 13836 13837# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13838DSYMUTIL=$lt_DSYMUTIL 13839 13840# Tool to change global to local symbols on Mac OS X. 13841NMEDIT=$lt_NMEDIT 13842 13843# Tool to manipulate fat objects and archives on Mac OS X. 13844LIPO=$lt_LIPO 13845 13846# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13847OTOOL=$lt_OTOOL 13848 13849# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13850OTOOL64=$lt_OTOOL64 13851 13852# Old archive suffix (normally "a"). 13853libext=$libext 13854 13855# Shared library suffix (normally ".so"). 13856shrext_cmds=$lt_shrext_cmds 13857 13858# The commands to extract the exported symbol list from a shared archive. 13859extract_expsyms_cmds=$lt_extract_expsyms_cmds 13860 13861# Variables whose values should be saved in libtool wrapper scripts and 13862# restored at link time. 13863variables_saved_for_relink=$lt_variables_saved_for_relink 13864 13865# Do we need the "lib" prefix for modules? 13866need_lib_prefix=$need_lib_prefix 13867 13868# Do we need a version for libraries? 13869need_version=$need_version 13870 13871# Library versioning type. 13872version_type=$version_type 13873 13874# Shared library runtime path variable. 13875runpath_var=$runpath_var 13876 13877# Shared library path variable. 13878shlibpath_var=$shlibpath_var 13879 13880# Is shlibpath searched before the hard-coded library search path? 13881shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13882 13883# Format of library name prefix. 13884libname_spec=$lt_libname_spec 13885 13886# List of archive names. First name is the real one, the rest are links. 13887# The last name is the one that the linker finds with -lNAME 13888library_names_spec=$lt_library_names_spec 13889 13890# The coded name of the library, if different from the real name. 13891soname_spec=$lt_soname_spec 13892 13893# Permission mode override for installation of shared libraries. 13894install_override_mode=$lt_install_override_mode 13895 13896# Command to use after installation of a shared archive. 13897postinstall_cmds=$lt_postinstall_cmds 13898 13899# Command to use after uninstallation of a shared archive. 13900postuninstall_cmds=$lt_postuninstall_cmds 13901 13902# Commands used to finish a libtool library installation in a directory. 13903finish_cmds=$lt_finish_cmds 13904 13905# As "finish_cmds", except a single script fragment to be evaled but 13906# not shown. 13907finish_eval=$lt_finish_eval 13908 13909# Whether we should hardcode library paths into libraries. 13910hardcode_into_libs=$hardcode_into_libs 13911 13912# Compile-time system search path for libraries. 13913sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13914 13915# Run-time system search path for libraries. 13916sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13917 13918# Whether dlopen is supported. 13919dlopen_support=$enable_dlopen 13920 13921# Whether dlopen of programs is supported. 13922dlopen_self=$enable_dlopen_self 13923 13924# Whether dlopen of statically linked programs is supported. 13925dlopen_self_static=$enable_dlopen_self_static 13926 13927# Commands to strip libraries. 13928old_striplib=$lt_old_striplib 13929striplib=$lt_striplib 13930 13931 13932# The linker used to build libraries. 13933LD=$lt_LD 13934 13935# How to create reloadable object files. 13936reload_flag=$lt_reload_flag 13937reload_cmds=$lt_reload_cmds 13938 13939# Commands used to build an old-style archive. 13940old_archive_cmds=$lt_old_archive_cmds 13941 13942# A language specific compiler. 13943CC=$lt_compiler 13944 13945# Is the compiler the GNU compiler? 13946with_gcc=$GCC 13947 13948# Compiler flag to turn off builtin functions. 13949no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13950 13951# How to pass a linker flag through the compiler. 13952wl=$lt_lt_prog_compiler_wl 13953 13954# Additional compiler flags for building library objects. 13955pic_flag=$lt_lt_prog_compiler_pic 13956 13957# Compiler flag to prevent dynamic linking. 13958link_static_flag=$lt_lt_prog_compiler_static 13959 13960# Does compiler simultaneously support -c and -o options? 13961compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13962 13963# Whether or not to add -lc for building shared libraries. 13964build_libtool_need_lc=$archive_cmds_need_lc 13965 13966# Whether or not to disallow shared libs when runtime libs are static. 13967allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13968 13969# Compiler flag to allow reflexive dlopens. 13970export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13971 13972# Compiler flag to generate shared objects directly from archives. 13973whole_archive_flag_spec=$lt_whole_archive_flag_spec 13974 13975# Whether the compiler copes with passing no objects directly. 13976compiler_needs_object=$lt_compiler_needs_object 13977 13978# Create an old-style archive from a shared archive. 13979old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13980 13981# Create a temporary old-style archive to link instead of a shared archive. 13982old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13983 13984# Commands used to build a shared archive. 13985archive_cmds=$lt_archive_cmds 13986archive_expsym_cmds=$lt_archive_expsym_cmds 13987 13988# Commands used to build a loadable module if different from building 13989# a shared archive. 13990module_cmds=$lt_module_cmds 13991module_expsym_cmds=$lt_module_expsym_cmds 13992 13993# Whether we are building with GNU ld or not. 13994with_gnu_ld=$lt_with_gnu_ld 13995 13996# Flag that allows shared libraries with undefined symbols to be built. 13997allow_undefined_flag=$lt_allow_undefined_flag 13998 13999# Flag that enforces no undefined symbols. 14000no_undefined_flag=$lt_no_undefined_flag 14001 14002# Flag to hardcode \$libdir into a binary during linking. 14003# This must work even if \$libdir does not exist 14004hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 14005 14006# If ld is used when linking, flag to hardcode \$libdir into a binary 14007# during linking. This must work even if \$libdir does not exist. 14008hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 14009 14010# Whether we need a single "-rpath" flag with a separated argument. 14011hardcode_libdir_separator=$lt_hardcode_libdir_separator 14012 14013# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14014# DIR into the resulting binary. 14015hardcode_direct=$hardcode_direct 14016 14017# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 14018# DIR into the resulting binary and the resulting library dependency is 14019# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 14020# library is relocated. 14021hardcode_direct_absolute=$hardcode_direct_absolute 14022 14023# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 14024# into the resulting binary. 14025hardcode_minus_L=$hardcode_minus_L 14026 14027# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 14028# into the resulting binary. 14029hardcode_shlibpath_var=$hardcode_shlibpath_var 14030 14031# Set to "yes" if building a shared library automatically hardcodes DIR 14032# into the library and all subsequent libraries and executables linked 14033# against it. 14034hardcode_automatic=$hardcode_automatic 14035 14036# Set to yes if linker adds runtime paths of dependent libraries 14037# to runtime path list. 14038inherit_rpath=$inherit_rpath 14039 14040# Whether libtool must link a program against all its dependency libraries. 14041link_all_deplibs=$link_all_deplibs 14042 14043# Fix the shell variable \$srcfile for the compiler. 14044fix_srcfile_path=$lt_fix_srcfile_path 14045 14046# Set to "yes" if exported symbols are required. 14047always_export_symbols=$always_export_symbols 14048 14049# The commands to list exported symbols. 14050export_symbols_cmds=$lt_export_symbols_cmds 14051 14052# Symbols that should not be listed in the preloaded symbols. 14053exclude_expsyms=$lt_exclude_expsyms 14054 14055# Symbols that must always be exported. 14056include_expsyms=$lt_include_expsyms 14057 14058# Commands necessary for linking programs (against libraries) with templates. 14059prelink_cmds=$lt_prelink_cmds 14060 14061# Specify filename containing input files. 14062file_list_spec=$lt_file_list_spec 14063 14064# How to hardcode a shared library path into an executable. 14065hardcode_action=$hardcode_action 14066 14067# ### END LIBTOOL CONFIG 14068 14069_LT_EOF 14070 14071 case $host_os in 14072 aix3*) 14073 cat <<\_LT_EOF >> "$cfgfile" 14074# AIX sometimes has problems with the GCC collect2 program. For some 14075# reason, if we set the COLLECT_NAMES environment variable, the problems 14076# vanish in a puff of smoke. 14077if test "X${COLLECT_NAMES+set}" != Xset; then 14078 COLLECT_NAMES= 14079 export COLLECT_NAMES 14080fi 14081_LT_EOF 14082 ;; 14083 esac 14084 14085 14086ltmain="$ac_aux_dir/ltmain.sh" 14087 14088 14089 # We use sed instead of cat because bash on DJGPP gets confused if 14090 # if finds mixed CR/LF and LF-only lines. Since sed operates in 14091 # text mode, it properly converts lines to CR/LF. This bash problem 14092 # is reportedly fixed, but why not run on old versions too? 14093 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 14094 || (rm -f "$cfgfile"; exit 1) 14095 14096 case $xsi_shell in 14097 yes) 14098 cat << \_LT_EOF >> "$cfgfile" 14099 14100# func_dirname file append nondir_replacement 14101# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14102# otherwise set result to NONDIR_REPLACEMENT. 14103func_dirname () 14104{ 14105 case ${1} in 14106 */*) func_dirname_result="${1%/*}${2}" ;; 14107 * ) func_dirname_result="${3}" ;; 14108 esac 14109} 14110 14111# func_basename file 14112func_basename () 14113{ 14114 func_basename_result="${1##*/}" 14115} 14116 14117# func_dirname_and_basename file append nondir_replacement 14118# perform func_basename and func_dirname in a single function 14119# call: 14120# dirname: Compute the dirname of FILE. If nonempty, 14121# add APPEND to the result, otherwise set result 14122# to NONDIR_REPLACEMENT. 14123# value returned in "$func_dirname_result" 14124# basename: Compute filename of FILE. 14125# value retuned in "$func_basename_result" 14126# Implementation must be kept synchronized with func_dirname 14127# and func_basename. For efficiency, we do not delegate to 14128# those functions but instead duplicate the functionality here. 14129func_dirname_and_basename () 14130{ 14131 case ${1} in 14132 */*) func_dirname_result="${1%/*}${2}" ;; 14133 * ) func_dirname_result="${3}" ;; 14134 esac 14135 func_basename_result="${1##*/}" 14136} 14137 14138# func_stripname prefix suffix name 14139# strip PREFIX and SUFFIX off of NAME. 14140# PREFIX and SUFFIX must not contain globbing or regex special 14141# characters, hashes, percent signs, but SUFFIX may contain a leading 14142# dot (in which case that matches only a dot). 14143func_stripname () 14144{ 14145 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 14146 # positional parameters, so assign one to ordinary parameter first. 14147 func_stripname_result=${3} 14148 func_stripname_result=${func_stripname_result#"${1}"} 14149 func_stripname_result=${func_stripname_result%"${2}"} 14150} 14151 14152# func_opt_split 14153func_opt_split () 14154{ 14155 func_opt_split_opt=${1%%=*} 14156 func_opt_split_arg=${1#*=} 14157} 14158 14159# func_lo2o object 14160func_lo2o () 14161{ 14162 case ${1} in 14163 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 14164 *) func_lo2o_result=${1} ;; 14165 esac 14166} 14167 14168# func_xform libobj-or-source 14169func_xform () 14170{ 14171 func_xform_result=${1%.*}.lo 14172} 14173 14174# func_arith arithmetic-term... 14175func_arith () 14176{ 14177 func_arith_result=$(( $* )) 14178} 14179 14180# func_len string 14181# STRING may not start with a hyphen. 14182func_len () 14183{ 14184 func_len_result=${#1} 14185} 14186 14187_LT_EOF 14188 ;; 14189 *) # Bourne compatible functions. 14190 cat << \_LT_EOF >> "$cfgfile" 14191 14192# func_dirname file append nondir_replacement 14193# Compute the dirname of FILE. If nonempty, add APPEND to the result, 14194# otherwise set result to NONDIR_REPLACEMENT. 14195func_dirname () 14196{ 14197 # Extract subdirectory from the argument. 14198 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 14199 if test "X$func_dirname_result" = "X${1}"; then 14200 func_dirname_result="${3}" 14201 else 14202 func_dirname_result="$func_dirname_result${2}" 14203 fi 14204} 14205 14206# func_basename file 14207func_basename () 14208{ 14209 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 14210} 14211 14212 14213# func_stripname prefix suffix name 14214# strip PREFIX and SUFFIX off of NAME. 14215# PREFIX and SUFFIX must not contain globbing or regex special 14216# characters, hashes, percent signs, but SUFFIX may contain a leading 14217# dot (in which case that matches only a dot). 14218# func_strip_suffix prefix name 14219func_stripname () 14220{ 14221 case ${2} in 14222 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 14223 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 14224 esac 14225} 14226 14227# sed scripts: 14228my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 14229my_sed_long_arg='1s/^-[^=]*=//' 14230 14231# func_opt_split 14232func_opt_split () 14233{ 14234 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 14235 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 14236} 14237 14238# func_lo2o object 14239func_lo2o () 14240{ 14241 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 14242} 14243 14244# func_xform libobj-or-source 14245func_xform () 14246{ 14247 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 14248} 14249 14250# func_arith arithmetic-term... 14251func_arith () 14252{ 14253 func_arith_result=`expr "$@"` 14254} 14255 14256# func_len string 14257# STRING may not start with a hyphen. 14258func_len () 14259{ 14260 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 14261} 14262 14263_LT_EOF 14264esac 14265 14266case $lt_shell_append in 14267 yes) 14268 cat << \_LT_EOF >> "$cfgfile" 14269 14270# func_append var value 14271# Append VALUE to the end of shell variable VAR. 14272func_append () 14273{ 14274 eval "$1+=\$2" 14275} 14276_LT_EOF 14277 ;; 14278 *) 14279 cat << \_LT_EOF >> "$cfgfile" 14280 14281# func_append var value 14282# Append VALUE to the end of shell variable VAR. 14283func_append () 14284{ 14285 eval "$1=\$$1\$2" 14286} 14287 14288_LT_EOF 14289 ;; 14290 esac 14291 14292 14293 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 14294 || (rm -f "$cfgfile"; exit 1) 14295 14296 mv -f "$cfgfile" "$ofile" || 14297 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 14298 chmod +x "$ofile" 14299 14300 ;; 14301 14302 esac 14303done # for ac_tag 14304 14305 14306as_fn_exit 0 14307_ACEOF 14308ac_clean_files=$ac_clean_files_save 14309 14310test $ac_write_fail = 0 || 14311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 14312 14313 14314# configure is writing to config.log, and then calls config.status. 14315# config.status does its own redirection, appending to config.log. 14316# Unfortunately, on DOS this fails, as config.log is still kept open 14317# by configure, so config.status won't be able to write to it; its 14318# output is simply discarded. So we exec the FD to /dev/null, 14319# effectively closing config.log, so it can be properly (re)opened and 14320# appended to by config.status. When coming back to configure, we 14321# need to make the FD available again. 14322if test "$no_create" != yes; then 14323 ac_cs_success=: 14324 ac_config_status_args= 14325 test "$silent" = yes && 14326 ac_config_status_args="$ac_config_status_args --quiet" 14327 exec 5>/dev/null 14328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 14329 exec 5>>config.log 14330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 14331 # would make configure fail if this is the last instruction. 14332 $ac_cs_success || as_fn_exit 1 14333fi 14334if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 14335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 14336$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 14337fi 14338 14339