1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199test \$(( 1 + 1 )) = 2 || exit 1 200 201 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 202 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 PATH=/empty FPATH=/empty; export PATH FPATH 206 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 207 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME= 589PACKAGE_TARNAME= 590PACKAGE_VERSION= 591PACKAGE_STRING= 592PACKAGE_BUGREPORT= 593PACKAGE_URL= 594 595ac_unique_file="drivers/sqlite/dbd_sqlite.c" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_subst_vars='am__EXEEXT_FALSE 633am__EXEEXT_TRUE 634LTLIBOBJS 635LIBDBI_LIBDIR 636LIBADD_LIBDBI 637dbi_dbdir 638LIBDBI_TEST 639BUILDDOCS_FALSE 640BUILDDOCS_TRUE 641docs_subdirs 642LIBOBJS 643DB2_TEST 644DB2_LDFLAGS 645DB2_INCLUDE 646DB2_LIBS 647HAVE_DB2_FALSE 648HAVE_DB2_TRUE 649INGRES_TEST 650INGRES_LDFLAGS 651INGRES_INCLUDE 652INGRES_LIBS 653HAVE_INGRES_FALSE 654HAVE_INGRES_TRUE 655FREETDS_TEST 656FREETDS_LDFLAGS 657FREETDS_INCLUDE 658FREETDS_LIBS 659HAVE_FREETDS_FALSE 660HAVE_FREETDS_TRUE 661FIREBIRD_TEST 662FIREBIRD_ISQL_FLAG 663FIREBIRD_LDFLAGS 664FIREBIRD_INCLUDE 665FIREBIRD_LIBS 666FIREBIRD_ISQL 667HAVE_FIREBIRD_INTERBASE_FALSE 668HAVE_FIREBIRD_INTERBASE_TRUE 669ORACLE_TEST 670ORACLE_LDFLAGS 671ORACLE_INCLUDE 672ORACLE_LIBS 673HAVE_ORACLE_FALSE 674HAVE_ORACLE_TRUE 675MSQL_TEST 676MSQL_LDFLAGS 677MSQL_INCLUDE 678MSQL_LIBS 679HAVE_MSQL_FALSE 680HAVE_MSQL_TRUE 681SQLITE3_TEST 682SQLITE3_LDFLAGS 683SQLITE3_INCLUDE 684SQLITE3_LIBS 685HAVE_SQLITE3_FALSE 686HAVE_SQLITE3_TRUE 687SQLITE_TEST 688SQLITE_LDFLAGS 689SQLITE_INCLUDE 690SQLITE_LIBS 691HAVE_SQLITE_FALSE 692HAVE_SQLITE_TRUE 693PGSQL_TEST 694PGSQL_LDFLAGS 695PGSQL_INCLUDE 696PGSQL_LIBS 697PG_CONFIG 698HAVE_PGSQL_FALSE 699HAVE_PGSQL_TRUE 700MYSQL_TEST 701MYSQL_LDFLAGS 702MYSQL_INCLUDE 703MYSQL_LIBS 704MYSQL_CONFIG 705HAVE_MYSQL_FALSE 706HAVE_MYSQL_TRUE 707DBI_INCLUDE 708HAVE_DBI_FALSE 709HAVE_DBI_TRUE 710PROFILE 711DEBUG 712CPP 713OTOOL64 714OTOOL 715LIPO 716NMEDIT 717DSYMUTIL 718MANIFEST_TOOL 719RANLIB 720ac_ct_AR 721AR 722LN_S 723NM 724ac_ct_DUMPBIN 725DUMPBIN 726LIBTOOL 727LD 728FGREP 729EGREP 730GREP 731SED 732am__fastdepCC_FALSE 733am__fastdepCC_TRUE 734CCDEPMODE 735am__nodep 736AMDEPBACKSLASH 737AMDEP_FALSE 738AMDEP_TRUE 739am__quote 740am__include 741DEPDIR 742OBJEXT 743EXEEXT 744ac_ct_CC 745CPPFLAGS 746LDFLAGS 747CFLAGS 748CC 749driverdir 750OBJDUMP 751DLLTOOL 752AS 753host_os 754host_vendor 755host_cpu 756host 757build_os 758build_vendor 759build_cpu 760build 761am__untar 762am__tar 763AMTAR 764am__leading_dot 765SET_MAKE 766AWK 767mkdir_p 768MKDIR_P 769INSTALL_STRIP_PROGRAM 770STRIP 771install_sh 772MAKEINFO 773AUTOHEADER 774AUTOMAKE 775AUTOCONF 776ACLOCAL 777VERSION 778PACKAGE 779CYGPATH_W 780am__isrc 781INSTALL_DATA 782INSTALL_SCRIPT 783INSTALL_PROGRAM 784MAINT 785MAINTAINER_MODE_FALSE 786MAINTAINER_MODE_TRUE 787target_alias 788host_alias 789build_alias 790LIBS 791ECHO_T 792ECHO_N 793ECHO_C 794DEFS 795mandir 796localedir 797libdir 798psdir 799pdfdir 800dvidir 801htmldir 802infodir 803docdir 804oldincludedir 805includedir 806localstatedir 807sharedstatedir 808sysconfdir 809datadir 810datarootdir 811libexecdir 812sbindir 813bindir 814program_transform_name 815prefix 816exec_prefix 817PACKAGE_URL 818PACKAGE_BUGREPORT 819PACKAGE_STRING 820PACKAGE_VERSION 821PACKAGE_TARNAME 822PACKAGE_NAME 823PATH_SEPARATOR 824SHELL' 825ac_subst_files='' 826ac_user_opts=' 827enable_option_checking 828enable_maintainer_mode 829enable_dependency_tracking 830with_gnu_ld 831enable_shared 832enable_static 833with_pic 834enable_fast_install 835with_sysroot 836enable_libtool_lock 837with_dbi_incdir 838with_mysql 839with_mysql_incdir 840with_mysql_libdir 841enable_mysql_threadsafe 842with_pgsql 843with_pgsql_incdir 844with_pgsql_libdir 845with_sqlite 846with_sqlite_incdir 847with_sqlite_libdir 848with_sqlite3 849with_sqlite3_incdir 850with_sqlite3_libdir 851with_msql 852with_msql_incdir 853with_msql_libdir 854with_oracle 855with_oracle_dir 856with_oracle_incdir 857with_oracle_libdir 858with_firebird 859with_firebird_incdir 860with_firebird_libdir 861with_freetds 862with_freetds_incdir 863with_freetds_libdir 864with_ingres 865with_ingres_dir 866with_ingres_incdir 867with_ingres_libdir 868with_db2 869with_db2_dir 870with_db2_incdir 871with_db2_libdir 872with_shlib_ext 873enable_docs 874enable_libdbi 875with_dbi_dbdir 876with_dbi_libdir 877' 878 ac_precious_vars='build_alias 879host_alias 880target_alias 881CC 882CFLAGS 883LDFLAGS 884LIBS 885CPPFLAGS 886CPP' 887 888 889# Initialize some variables set by options. 890ac_init_help= 891ac_init_version=false 892ac_unrecognized_opts= 893ac_unrecognized_sep= 894# The variables have the same names as the options, with 895# dashes changed to underlines. 896cache_file=/dev/null 897exec_prefix=NONE 898no_create= 899no_recursion= 900prefix=NONE 901program_prefix=NONE 902program_suffix=NONE 903program_transform_name=s,x,x, 904silent= 905site= 906srcdir= 907verbose= 908x_includes=NONE 909x_libraries=NONE 910 911# Installation directory options. 912# These are left unexpanded so users can "make install exec_prefix=/foo" 913# and all the variables that are supposed to be based on exec_prefix 914# by default will actually change. 915# Use braces instead of parens because sh, perl, etc. also accept them. 916# (The list follows the same order as the GNU Coding Standards.) 917bindir='${exec_prefix}/bin' 918sbindir='${exec_prefix}/sbin' 919libexecdir='${exec_prefix}/libexec' 920datarootdir='${prefix}/share' 921datadir='${datarootdir}' 922sysconfdir='${prefix}/etc' 923sharedstatedir='${prefix}/com' 924localstatedir='${prefix}/var' 925includedir='${prefix}/include' 926oldincludedir='/usr/include' 927docdir='${datarootdir}/doc/${PACKAGE}' 928infodir='${datarootdir}/info' 929htmldir='${docdir}' 930dvidir='${docdir}' 931pdfdir='${docdir}' 932psdir='${docdir}' 933libdir='${exec_prefix}/lib' 934localedir='${datarootdir}/locale' 935mandir='${datarootdir}/man' 936 937ac_prev= 938ac_dashdash= 939for ac_option 940do 941 # If the previous option needs an argument, assign it. 942 if test -n "$ac_prev"; then 943 eval $ac_prev=\$ac_option 944 ac_prev= 945 continue 946 fi 947 948 case $ac_option in 949 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 950 *=) ac_optarg= ;; 951 *) ac_optarg=yes ;; 952 esac 953 954 # Accept the important Cygnus configure options, so we can diagnose typos. 955 956 case $ac_dashdash$ac_option in 957 --) 958 ac_dashdash=yes ;; 959 960 -bindir | --bindir | --bindi | --bind | --bin | --bi) 961 ac_prev=bindir ;; 962 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 963 bindir=$ac_optarg ;; 964 965 -build | --build | --buil | --bui | --bu) 966 ac_prev=build_alias ;; 967 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 968 build_alias=$ac_optarg ;; 969 970 -cache-file | --cache-file | --cache-fil | --cache-fi \ 971 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 972 ac_prev=cache_file ;; 973 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 974 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 975 cache_file=$ac_optarg ;; 976 977 --config-cache | -C) 978 cache_file=config.cache ;; 979 980 -datadir | --datadir | --datadi | --datad) 981 ac_prev=datadir ;; 982 -datadir=* | --datadir=* | --datadi=* | --datad=*) 983 datadir=$ac_optarg ;; 984 985 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 986 | --dataroo | --dataro | --datar) 987 ac_prev=datarootdir ;; 988 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 989 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 990 datarootdir=$ac_optarg ;; 991 992 -disable-* | --disable-*) 993 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 994 # Reject names that are not valid shell variable names. 995 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 996 as_fn_error $? "invalid feature name: $ac_useropt" 997 ac_useropt_orig=$ac_useropt 998 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 999 case $ac_user_opts in 1000 *" 1001"enable_$ac_useropt" 1002"*) ;; 1003 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 1004 ac_unrecognized_sep=', ';; 1005 esac 1006 eval enable_$ac_useropt=no ;; 1007 1008 -docdir | --docdir | --docdi | --doc | --do) 1009 ac_prev=docdir ;; 1010 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 1011 docdir=$ac_optarg ;; 1012 1013 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 1014 ac_prev=dvidir ;; 1015 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 1016 dvidir=$ac_optarg ;; 1017 1018 -enable-* | --enable-*) 1019 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 1020 # Reject names that are not valid shell variable names. 1021 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1022 as_fn_error $? "invalid feature name: $ac_useropt" 1023 ac_useropt_orig=$ac_useropt 1024 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1025 case $ac_user_opts in 1026 *" 1027"enable_$ac_useropt" 1028"*) ;; 1029 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1030 ac_unrecognized_sep=', ';; 1031 esac 1032 eval enable_$ac_useropt=\$ac_optarg ;; 1033 1034 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1035 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1036 | --exec | --exe | --ex) 1037 ac_prev=exec_prefix ;; 1038 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1039 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1040 | --exec=* | --exe=* | --ex=*) 1041 exec_prefix=$ac_optarg ;; 1042 1043 -gas | --gas | --ga | --g) 1044 # Obsolete; use --with-gas. 1045 with_gas=yes ;; 1046 1047 -help | --help | --hel | --he | -h) 1048 ac_init_help=long ;; 1049 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1050 ac_init_help=recursive ;; 1051 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1052 ac_init_help=short ;; 1053 1054 -host | --host | --hos | --ho) 1055 ac_prev=host_alias ;; 1056 -host=* | --host=* | --hos=* | --ho=*) 1057 host_alias=$ac_optarg ;; 1058 1059 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1060 ac_prev=htmldir ;; 1061 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1062 | --ht=*) 1063 htmldir=$ac_optarg ;; 1064 1065 -includedir | --includedir | --includedi | --included | --include \ 1066 | --includ | --inclu | --incl | --inc) 1067 ac_prev=includedir ;; 1068 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1069 | --includ=* | --inclu=* | --incl=* | --inc=*) 1070 includedir=$ac_optarg ;; 1071 1072 -infodir | --infodir | --infodi | --infod | --info | --inf) 1073 ac_prev=infodir ;; 1074 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1075 infodir=$ac_optarg ;; 1076 1077 -libdir | --libdir | --libdi | --libd) 1078 ac_prev=libdir ;; 1079 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1080 libdir=$ac_optarg ;; 1081 1082 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1083 | --libexe | --libex | --libe) 1084 ac_prev=libexecdir ;; 1085 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1086 | --libexe=* | --libex=* | --libe=*) 1087 libexecdir=$ac_optarg ;; 1088 1089 -localedir | --localedir | --localedi | --localed | --locale) 1090 ac_prev=localedir ;; 1091 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1092 localedir=$ac_optarg ;; 1093 1094 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1095 | --localstate | --localstat | --localsta | --localst | --locals) 1096 ac_prev=localstatedir ;; 1097 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1098 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1099 localstatedir=$ac_optarg ;; 1100 1101 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1102 ac_prev=mandir ;; 1103 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1104 mandir=$ac_optarg ;; 1105 1106 -nfp | --nfp | --nf) 1107 # Obsolete; use --without-fp. 1108 with_fp=no ;; 1109 1110 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1111 | --no-cr | --no-c | -n) 1112 no_create=yes ;; 1113 1114 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1115 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1116 no_recursion=yes ;; 1117 1118 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1119 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1120 | --oldin | --oldi | --old | --ol | --o) 1121 ac_prev=oldincludedir ;; 1122 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1123 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1124 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1125 oldincludedir=$ac_optarg ;; 1126 1127 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1128 ac_prev=prefix ;; 1129 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1130 prefix=$ac_optarg ;; 1131 1132 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1133 | --program-pre | --program-pr | --program-p) 1134 ac_prev=program_prefix ;; 1135 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1136 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1137 program_prefix=$ac_optarg ;; 1138 1139 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1140 | --program-suf | --program-su | --program-s) 1141 ac_prev=program_suffix ;; 1142 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1143 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1144 program_suffix=$ac_optarg ;; 1145 1146 -program-transform-name | --program-transform-name \ 1147 | --program-transform-nam | --program-transform-na \ 1148 | --program-transform-n | --program-transform- \ 1149 | --program-transform | --program-transfor \ 1150 | --program-transfo | --program-transf \ 1151 | --program-trans | --program-tran \ 1152 | --progr-tra | --program-tr | --program-t) 1153 ac_prev=program_transform_name ;; 1154 -program-transform-name=* | --program-transform-name=* \ 1155 | --program-transform-nam=* | --program-transform-na=* \ 1156 | --program-transform-n=* | --program-transform-=* \ 1157 | --program-transform=* | --program-transfor=* \ 1158 | --program-transfo=* | --program-transf=* \ 1159 | --program-trans=* | --program-tran=* \ 1160 | --progr-tra=* | --program-tr=* | --program-t=*) 1161 program_transform_name=$ac_optarg ;; 1162 1163 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1164 ac_prev=pdfdir ;; 1165 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1166 pdfdir=$ac_optarg ;; 1167 1168 -psdir | --psdir | --psdi | --psd | --ps) 1169 ac_prev=psdir ;; 1170 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1171 psdir=$ac_optarg ;; 1172 1173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1174 | -silent | --silent | --silen | --sile | --sil) 1175 silent=yes ;; 1176 1177 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1178 ac_prev=sbindir ;; 1179 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1180 | --sbi=* | --sb=*) 1181 sbindir=$ac_optarg ;; 1182 1183 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1184 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1185 | --sharedst | --shareds | --shared | --share | --shar \ 1186 | --sha | --sh) 1187 ac_prev=sharedstatedir ;; 1188 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1189 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1190 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1191 | --sha=* | --sh=*) 1192 sharedstatedir=$ac_optarg ;; 1193 1194 -site | --site | --sit) 1195 ac_prev=site ;; 1196 -site=* | --site=* | --sit=*) 1197 site=$ac_optarg ;; 1198 1199 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1200 ac_prev=srcdir ;; 1201 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1202 srcdir=$ac_optarg ;; 1203 1204 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1205 | --syscon | --sysco | --sysc | --sys | --sy) 1206 ac_prev=sysconfdir ;; 1207 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1208 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1209 sysconfdir=$ac_optarg ;; 1210 1211 -target | --target | --targe | --targ | --tar | --ta | --t) 1212 ac_prev=target_alias ;; 1213 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1214 target_alias=$ac_optarg ;; 1215 1216 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1217 verbose=yes ;; 1218 1219 -version | --version | --versio | --versi | --vers | -V) 1220 ac_init_version=: ;; 1221 1222 -with-* | --with-*) 1223 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1224 # Reject names that are not valid shell variable names. 1225 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1226 as_fn_error $? "invalid package name: $ac_useropt" 1227 ac_useropt_orig=$ac_useropt 1228 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1229 case $ac_user_opts in 1230 *" 1231"with_$ac_useropt" 1232"*) ;; 1233 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1234 ac_unrecognized_sep=', ';; 1235 esac 1236 eval with_$ac_useropt=\$ac_optarg ;; 1237 1238 -without-* | --without-*) 1239 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1240 # Reject names that are not valid shell variable names. 1241 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1242 as_fn_error $? "invalid package name: $ac_useropt" 1243 ac_useropt_orig=$ac_useropt 1244 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1245 case $ac_user_opts in 1246 *" 1247"with_$ac_useropt" 1248"*) ;; 1249 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1250 ac_unrecognized_sep=', ';; 1251 esac 1252 eval with_$ac_useropt=no ;; 1253 1254 --x) 1255 # Obsolete; use --with-x. 1256 with_x=yes ;; 1257 1258 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1259 | --x-incl | --x-inc | --x-in | --x-i) 1260 ac_prev=x_includes ;; 1261 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1262 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1263 x_includes=$ac_optarg ;; 1264 1265 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1266 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1267 ac_prev=x_libraries ;; 1268 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1269 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1270 x_libraries=$ac_optarg ;; 1271 1272 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1273Try \`$0 --help' for more information" 1274 ;; 1275 1276 *=*) 1277 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1278 # Reject names that are not valid shell variable names. 1279 case $ac_envvar in #( 1280 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1281 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1282 esac 1283 eval $ac_envvar=\$ac_optarg 1284 export $ac_envvar ;; 1285 1286 *) 1287 # FIXME: should be removed in autoconf 3.0. 1288 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1289 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1290 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1291 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1292 ;; 1293 1294 esac 1295done 1296 1297if test -n "$ac_prev"; then 1298 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1299 as_fn_error $? "missing argument to $ac_option" 1300fi 1301 1302if test -n "$ac_unrecognized_opts"; then 1303 case $enable_option_checking in 1304 no) ;; 1305 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1306 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1307 esac 1308fi 1309 1310# Check all directory arguments for consistency. 1311for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1312 datadir sysconfdir sharedstatedir localstatedir includedir \ 1313 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1314 libdir localedir mandir 1315do 1316 eval ac_val=\$$ac_var 1317 # Remove trailing slashes. 1318 case $ac_val in 1319 */ ) 1320 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1321 eval $ac_var=\$ac_val;; 1322 esac 1323 # Be sure to have absolute directory names. 1324 case $ac_val in 1325 [\\/$]* | ?:[\\/]* ) continue;; 1326 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1327 esac 1328 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1329done 1330 1331# There might be people who depend on the old broken behavior: `$host' 1332# used to hold the argument of --host etc. 1333# FIXME: To remove some day. 1334build=$build_alias 1335host=$host_alias 1336target=$target_alias 1337 1338# FIXME: To remove some day. 1339if test "x$host_alias" != x; then 1340 if test "x$build_alias" = x; then 1341 cross_compiling=maybe 1342 elif test "x$build_alias" != "x$host_alias"; then 1343 cross_compiling=yes 1344 fi 1345fi 1346 1347ac_tool_prefix= 1348test -n "$host_alias" && ac_tool_prefix=$host_alias- 1349 1350test "$silent" = yes && exec 6>/dev/null 1351 1352 1353ac_pwd=`pwd` && test -n "$ac_pwd" && 1354ac_ls_di=`ls -di .` && 1355ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1356 as_fn_error $? "working directory cannot be determined" 1357test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1358 as_fn_error $? "pwd does not report name of working directory" 1359 1360 1361# Find the source files, if location was not specified. 1362if test -z "$srcdir"; then 1363 ac_srcdir_defaulted=yes 1364 # Try the directory containing this script, then the parent directory. 1365 ac_confdir=`$as_dirname -- "$as_myself" || 1366$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1367 X"$as_myself" : 'X\(//\)[^/]' \| \ 1368 X"$as_myself" : 'X\(//\)$' \| \ 1369 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1370$as_echo X"$as_myself" | 1371 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1372 s//\1/ 1373 q 1374 } 1375 /^X\(\/\/\)[^/].*/{ 1376 s//\1/ 1377 q 1378 } 1379 /^X\(\/\/\)$/{ 1380 s//\1/ 1381 q 1382 } 1383 /^X\(\/\).*/{ 1384 s//\1/ 1385 q 1386 } 1387 s/.*/./; q'` 1388 srcdir=$ac_confdir 1389 if test ! -r "$srcdir/$ac_unique_file"; then 1390 srcdir=.. 1391 fi 1392else 1393 ac_srcdir_defaulted=no 1394fi 1395if test ! -r "$srcdir/$ac_unique_file"; then 1396 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1397 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1398fi 1399ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1400ac_abs_confdir=`( 1401 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1402 pwd)` 1403# When building in place, set srcdir=. 1404if test "$ac_abs_confdir" = "$ac_pwd"; then 1405 srcdir=. 1406fi 1407# Remove unnecessary trailing slashes from srcdir. 1408# Double slashes in file names in object file debugging info 1409# mess up M-x gdb in Emacs. 1410case $srcdir in 1411*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1412esac 1413for ac_var in $ac_precious_vars; do 1414 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1415 eval ac_env_${ac_var}_value=\$${ac_var} 1416 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1417 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1418done 1419 1420# 1421# Report the --help message. 1422# 1423if test "$ac_init_help" = "long"; then 1424 # Omit some internal or obsolete options to make the list less imposing. 1425 # This message is too long to be a string in the A/UX 3.1 sh. 1426 cat <<_ACEOF 1427\`configure' configures this package to adapt to many kinds of systems. 1428 1429Usage: $0 [OPTION]... [VAR=VALUE]... 1430 1431To assign environment variables (e.g., CC, CFLAGS...), specify them as 1432VAR=VALUE. See below for descriptions of some of the useful variables. 1433 1434Defaults for the options are specified in brackets. 1435 1436Configuration: 1437 -h, --help display this help and exit 1438 --help=short display options specific to this package 1439 --help=recursive display the short help of all the included packages 1440 -V, --version display version information and exit 1441 -q, --quiet, --silent do not print \`checking ...' messages 1442 --cache-file=FILE cache test results in FILE [disabled] 1443 -C, --config-cache alias for \`--cache-file=config.cache' 1444 -n, --no-create do not create output files 1445 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1446 1447Installation directories: 1448 --prefix=PREFIX install architecture-independent files in PREFIX 1449 [$ac_default_prefix] 1450 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1451 [PREFIX] 1452 1453By default, \`make install' will install all the files in 1454\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1455an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1456for instance \`--prefix=\$HOME'. 1457 1458For better control, use the options below. 1459 1460Fine tuning of the installation directories: 1461 --bindir=DIR user executables [EPREFIX/bin] 1462 --sbindir=DIR system admin executables [EPREFIX/sbin] 1463 --libexecdir=DIR program executables [EPREFIX/libexec] 1464 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1465 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1466 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1467 --libdir=DIR object code libraries [EPREFIX/lib] 1468 --includedir=DIR C header files [PREFIX/include] 1469 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1470 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1471 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1472 --infodir=DIR info documentation [DATAROOTDIR/info] 1473 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1474 --mandir=DIR man documentation [DATAROOTDIR/man] 1475 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE] 1476 --htmldir=DIR html documentation [DOCDIR] 1477 --dvidir=DIR dvi documentation [DOCDIR] 1478 --pdfdir=DIR pdf documentation [DOCDIR] 1479 --psdir=DIR ps documentation [DOCDIR] 1480_ACEOF 1481 1482 cat <<\_ACEOF 1483 1484Program names: 1485 --program-prefix=PREFIX prepend PREFIX to installed program names 1486 --program-suffix=SUFFIX append SUFFIX to installed program names 1487 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1488 1489System types: 1490 --build=BUILD configure for building on BUILD [guessed] 1491 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1492_ACEOF 1493fi 1494 1495if test -n "$ac_init_help"; then 1496 1497 cat <<\_ACEOF 1498 1499Optional Features: 1500 --disable-option-checking ignore unrecognized --enable/--with options 1501 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1502 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1503 --enable-maintainer-mode 1504 enable make rules and dependencies not useful (and 1505 sometimes confusing) to the casual installer 1506 --enable-dependency-tracking 1507 do not reject slow dependency extractors 1508 --disable-dependency-tracking 1509 speeds up one-time build 1510 --enable-shared[=PKGS] build shared libraries [default=yes] 1511 --enable-static[=PKGS] build static libraries [default=yes] 1512 --enable-fast-install[=PKGS] 1513 optimize for fast installation [default=yes] 1514 --disable-libtool-lock avoid locking (might break parallel builds) 1515 --enable-mysql-threadsafe use threadsafe version of libmysqlclient. 1516 --disable-docs do not build and install the documentation. 1517 --disable-libdbi do not link drivers against libdbi. 1518 1519Optional Packages: 1520 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1521 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1522 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1523 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1524 both] 1525 --with-sysroot=DIR Search for dependent libraries within DIR 1526 (or the compiler's sysroot if not specified). 1527 --with-dbi-incdir Specifies where the libdbi include files are. 1528 --with-mysql Include MySQL support. 1529 --with-mysql-incdir Specifies where the MySQL include files are. 1530 --with-mysql-libdir Specifies where the MySQL libraries are. 1531 --with-pgsql Include PostgreSQL support. 1532 --with-pgsql-incdir Specifies where the PostgreSQL include files are. 1533 --with-pgsql-libdir Specifies where the PostgreSQL libraries are. 1534 --with-sqlite Include SQLite support. 1535 --with-sqlite-incdir Specifies where the SQLite include files are. 1536 --with-sqlite-libdir Specifies where the SQLite libraries are. 1537 --with-sqlite3 Include SQLite3 support. 1538 --with-sqlite3-incdir Specifies where the SQLite3 include files are. 1539 --with-sqlite3-libdir Specifies where the SQLite3 libraries are. 1540 --with-msql Include MiniSQL (mSQL) support. 1541 --with-msql-incdir Specifies where the mSQL include files are. 1542 --with-msql-libdir Specifies where the mSQL libraries are. 1543 --with-oracle Include Oracle support. 1544 --with-oracle-dir Specifies ORACLE_HOME. 1545 --with-oracle-incdir Specifies where the Oracle include files are. 1546 --with-oracle-libdir Specifies where the Oracle libraries are. 1547 --with-firebird Include Firebird/Interbase support. 1548 --with-firebird-incdir Specifies where the Firebird/Interbase include files are. 1549 --with-firebird-libdir Specifies where the Firebird/Interbase libraries are. 1550 --with-freetds Include Freetds support. 1551 --with-freetds-incdir Specifies where the Freetds include files are. 1552 --with-freetds-libdir Specifies where the Freetds libraries are. 1553 --with-ingres Include Ingres support. 1554 --with-ingres-dir Specifies II_SYSTEM. 1555 --with-ingres-incdir Specifies where the Ingres include files are. 1556 --with-ingres-libdir Specifies where the Ingres libraries are. 1557 --with-db2 Include IBM DB2 support. 1558 --with-db2-dir Specifies DB2_HOME. 1559 --with-db2-incdir Specifies where the IBM DB2 include files are. 1560 --with-db2-libdir Specifies where the IBM DB2 libraries are. 1561 --with-shlib-ext Specifies the filename extension of loadable modules (usually not necessary). 1562 --with-dbi-dbdir=PATH Directory for database files 1563 --with-dbi-libdir Specifies where the libdbi library files are. 1564 1565Some influential environment variables: 1566 CC C compiler command 1567 CFLAGS C compiler flags 1568 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1569 nonstandard directory <lib dir> 1570 LIBS libraries to pass to the linker, e.g. -l<library> 1571 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1572 you have headers in a nonstandard directory <include dir> 1573 CPP C preprocessor 1574 1575Use these variables to override the choices made by `configure' or to help 1576it to find libraries and programs with nonstandard names/locations. 1577 1578Report bugs to the package provider. 1579_ACEOF 1580ac_status=$? 1581fi 1582 1583if test "$ac_init_help" = "recursive"; then 1584 # If there are subdirs, report their specific --help. 1585 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1586 test -d "$ac_dir" || 1587 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1588 continue 1589 ac_builddir=. 1590 1591case "$ac_dir" in 1592.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1593*) 1594 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1595 # A ".." for each directory in $ac_dir_suffix. 1596 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1597 case $ac_top_builddir_sub in 1598 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1599 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1600 esac ;; 1601esac 1602ac_abs_top_builddir=$ac_pwd 1603ac_abs_builddir=$ac_pwd$ac_dir_suffix 1604# for backward compatibility: 1605ac_top_builddir=$ac_top_build_prefix 1606 1607case $srcdir in 1608 .) # We are building in place. 1609 ac_srcdir=. 1610 ac_top_srcdir=$ac_top_builddir_sub 1611 ac_abs_top_srcdir=$ac_pwd ;; 1612 [\\/]* | ?:[\\/]* ) # Absolute name. 1613 ac_srcdir=$srcdir$ac_dir_suffix; 1614 ac_top_srcdir=$srcdir 1615 ac_abs_top_srcdir=$srcdir ;; 1616 *) # Relative name. 1617 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1618 ac_top_srcdir=$ac_top_build_prefix$srcdir 1619 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1620esac 1621ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1622 1623 cd "$ac_dir" || { ac_status=$?; continue; } 1624 # Check for guested configure. 1625 if test -f "$ac_srcdir/configure.gnu"; then 1626 echo && 1627 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1628 elif test -f "$ac_srcdir/configure"; then 1629 echo && 1630 $SHELL "$ac_srcdir/configure" --help=recursive 1631 else 1632 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1633 fi || ac_status=$? 1634 cd "$ac_pwd" || { ac_status=$?; break; } 1635 done 1636fi 1637 1638test -n "$ac_init_help" && exit $ac_status 1639if $ac_init_version; then 1640 cat <<\_ACEOF 1641configure 1642generated by GNU Autoconf 2.69 1643 1644Copyright (C) 2012 Free Software Foundation, Inc. 1645This configure script is free software; the Free Software Foundation 1646gives unlimited permission to copy, distribute and modify it. 1647_ACEOF 1648 exit 1649fi 1650 1651## ------------------------ ## 1652## Autoconf initialization. ## 1653## ------------------------ ## 1654 1655# ac_fn_c_try_compile LINENO 1656# -------------------------- 1657# Try to compile conftest.$ac_ext, and return whether this succeeded. 1658ac_fn_c_try_compile () 1659{ 1660 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1661 rm -f conftest.$ac_objext 1662 if { { ac_try="$ac_compile" 1663case "(($ac_try" in 1664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1665 *) ac_try_echo=$ac_try;; 1666esac 1667eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1668$as_echo "$ac_try_echo"; } >&5 1669 (eval "$ac_compile") 2>conftest.err 1670 ac_status=$? 1671 if test -s conftest.err; then 1672 grep -v '^ *+' conftest.err >conftest.er1 1673 cat conftest.er1 >&5 1674 mv -f conftest.er1 conftest.err 1675 fi 1676 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1677 test $ac_status = 0; } && { 1678 test -z "$ac_c_werror_flag" || 1679 test ! -s conftest.err 1680 } && test -s conftest.$ac_objext; then : 1681 ac_retval=0 1682else 1683 $as_echo "$as_me: failed program was:" >&5 1684sed 's/^/| /' conftest.$ac_ext >&5 1685 1686 ac_retval=1 1687fi 1688 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1689 as_fn_set_status $ac_retval 1690 1691} # ac_fn_c_try_compile 1692 1693# ac_fn_c_try_link LINENO 1694# ----------------------- 1695# Try to link conftest.$ac_ext, and return whether this succeeded. 1696ac_fn_c_try_link () 1697{ 1698 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1699 rm -f conftest.$ac_objext conftest$ac_exeext 1700 if { { ac_try="$ac_link" 1701case "(($ac_try" in 1702 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1703 *) ac_try_echo=$ac_try;; 1704esac 1705eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1706$as_echo "$ac_try_echo"; } >&5 1707 (eval "$ac_link") 2>conftest.err 1708 ac_status=$? 1709 if test -s conftest.err; then 1710 grep -v '^ *+' conftest.err >conftest.er1 1711 cat conftest.er1 >&5 1712 mv -f conftest.er1 conftest.err 1713 fi 1714 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1715 test $ac_status = 0; } && { 1716 test -z "$ac_c_werror_flag" || 1717 test ! -s conftest.err 1718 } && test -s conftest$ac_exeext && { 1719 test "$cross_compiling" = yes || 1720 test -x conftest$ac_exeext 1721 }; then : 1722 ac_retval=0 1723else 1724 $as_echo "$as_me: failed program was:" >&5 1725sed 's/^/| /' conftest.$ac_ext >&5 1726 1727 ac_retval=1 1728fi 1729 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1730 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1731 # interfere with the next link command; also delete a directory that is 1732 # left behind by Apple's compiler. We do this before executing the actions. 1733 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1734 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1735 as_fn_set_status $ac_retval 1736 1737} # ac_fn_c_try_link 1738 1739# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1740# ------------------------------------------------------- 1741# Tests whether HEADER exists and can be compiled using the include files in 1742# INCLUDES, setting the cache variable VAR accordingly. 1743ac_fn_c_check_header_compile () 1744{ 1745 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1747$as_echo_n "checking for $2... " >&6; } 1748if eval \${$3+:} false; then : 1749 $as_echo_n "(cached) " >&6 1750else 1751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1752/* end confdefs.h. */ 1753$4 1754#include <$2> 1755_ACEOF 1756if ac_fn_c_try_compile "$LINENO"; then : 1757 eval "$3=yes" 1758else 1759 eval "$3=no" 1760fi 1761rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1762fi 1763eval ac_res=\$$3 1764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1765$as_echo "$ac_res" >&6; } 1766 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1767 1768} # ac_fn_c_check_header_compile 1769 1770# ac_fn_c_try_cpp LINENO 1771# ---------------------- 1772# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1773ac_fn_c_try_cpp () 1774{ 1775 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1776 if { { ac_try="$ac_cpp conftest.$ac_ext" 1777case "(($ac_try" in 1778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1779 *) ac_try_echo=$ac_try;; 1780esac 1781eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1782$as_echo "$ac_try_echo"; } >&5 1783 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1784 ac_status=$? 1785 if test -s conftest.err; then 1786 grep -v '^ *+' conftest.err >conftest.er1 1787 cat conftest.er1 >&5 1788 mv -f conftest.er1 conftest.err 1789 fi 1790 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1791 test $ac_status = 0; } > conftest.i && { 1792 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1793 test ! -s conftest.err 1794 }; then : 1795 ac_retval=0 1796else 1797 $as_echo "$as_me: failed program was:" >&5 1798sed 's/^/| /' conftest.$ac_ext >&5 1799 1800 ac_retval=1 1801fi 1802 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1803 as_fn_set_status $ac_retval 1804 1805} # ac_fn_c_try_cpp 1806 1807# ac_fn_c_try_run LINENO 1808# ---------------------- 1809# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1810# that executables *can* be run. 1811ac_fn_c_try_run () 1812{ 1813 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1814 if { { ac_try="$ac_link" 1815case "(($ac_try" in 1816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1817 *) ac_try_echo=$ac_try;; 1818esac 1819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1820$as_echo "$ac_try_echo"; } >&5 1821 (eval "$ac_link") 2>&5 1822 ac_status=$? 1823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1824 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1825 { { case "(($ac_try" in 1826 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1827 *) ac_try_echo=$ac_try;; 1828esac 1829eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1830$as_echo "$ac_try_echo"; } >&5 1831 (eval "$ac_try") 2>&5 1832 ac_status=$? 1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1834 test $ac_status = 0; }; }; then : 1835 ac_retval=0 1836else 1837 $as_echo "$as_me: program exited with status $ac_status" >&5 1838 $as_echo "$as_me: failed program was:" >&5 1839sed 's/^/| /' conftest.$ac_ext >&5 1840 1841 ac_retval=$ac_status 1842fi 1843 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1844 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1845 as_fn_set_status $ac_retval 1846 1847} # ac_fn_c_try_run 1848 1849# ac_fn_c_check_func LINENO FUNC VAR 1850# ---------------------------------- 1851# Tests whether FUNC exists, setting the cache variable VAR accordingly 1852ac_fn_c_check_func () 1853{ 1854 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1856$as_echo_n "checking for $2... " >&6; } 1857if eval \${$3+:} false; then : 1858 $as_echo_n "(cached) " >&6 1859else 1860 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1861/* end confdefs.h. */ 1862/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1863 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1864#define $2 innocuous_$2 1865 1866/* System header to define __stub macros and hopefully few prototypes, 1867 which can conflict with char $2 (); below. 1868 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1869 <limits.h> exists even on freestanding compilers. */ 1870 1871#ifdef __STDC__ 1872# include <limits.h> 1873#else 1874# include <assert.h> 1875#endif 1876 1877#undef $2 1878 1879/* Override any GCC internal prototype to avoid an error. 1880 Use char because int might match the return type of a GCC 1881 builtin and then its argument prototype would still apply. */ 1882#ifdef __cplusplus 1883extern "C" 1884#endif 1885char $2 (); 1886/* The GNU C library defines this for functions which it implements 1887 to always fail with ENOSYS. Some functions are actually named 1888 something starting with __ and the normal name is an alias. */ 1889#if defined __stub_$2 || defined __stub___$2 1890choke me 1891#endif 1892 1893int 1894main () 1895{ 1896return $2 (); 1897 ; 1898 return 0; 1899} 1900_ACEOF 1901if ac_fn_c_try_link "$LINENO"; then : 1902 eval "$3=yes" 1903else 1904 eval "$3=no" 1905fi 1906rm -f core conftest.err conftest.$ac_objext \ 1907 conftest$ac_exeext conftest.$ac_ext 1908fi 1909eval ac_res=\$$3 1910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1911$as_echo "$ac_res" >&6; } 1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1913 1914} # ac_fn_c_check_func 1915 1916# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1917# ------------------------------------------------------- 1918# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1919# the include files in INCLUDES and setting the cache variable VAR 1920# accordingly. 1921ac_fn_c_check_header_mongrel () 1922{ 1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1924 if eval \${$3+:} false; then : 1925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1926$as_echo_n "checking for $2... " >&6; } 1927if eval \${$3+:} false; then : 1928 $as_echo_n "(cached) " >&6 1929fi 1930eval ac_res=\$$3 1931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1932$as_echo "$ac_res" >&6; } 1933else 1934 # Is the header compilable? 1935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1936$as_echo_n "checking $2 usability... " >&6; } 1937cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1938/* end confdefs.h. */ 1939$4 1940#include <$2> 1941_ACEOF 1942if ac_fn_c_try_compile "$LINENO"; then : 1943 ac_header_compiler=yes 1944else 1945 ac_header_compiler=no 1946fi 1947rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1949$as_echo "$ac_header_compiler" >&6; } 1950 1951# Is the header present? 1952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1953$as_echo_n "checking $2 presence... " >&6; } 1954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1955/* end confdefs.h. */ 1956#include <$2> 1957_ACEOF 1958if ac_fn_c_try_cpp "$LINENO"; then : 1959 ac_header_preproc=yes 1960else 1961 ac_header_preproc=no 1962fi 1963rm -f conftest.err conftest.i conftest.$ac_ext 1964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1965$as_echo "$ac_header_preproc" >&6; } 1966 1967# So? What about this header? 1968case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1969 yes:no: ) 1970 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1971$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1973$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1974 ;; 1975 no:yes:* ) 1976 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1977$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1978 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1979$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1980 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1981$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1983$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1984 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1985$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1986 ;; 1987esac 1988 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1989$as_echo_n "checking for $2... " >&6; } 1990if eval \${$3+:} false; then : 1991 $as_echo_n "(cached) " >&6 1992else 1993 eval "$3=\$ac_header_compiler" 1994fi 1995eval ac_res=\$$3 1996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1997$as_echo "$ac_res" >&6; } 1998fi 1999 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2000 2001} # ac_fn_c_check_header_mongrel 2002cat >config.log <<_ACEOF 2003This file contains any messages produced by compilers while 2004running configure, to aid debugging if configure makes a mistake. 2005 2006It was created by $as_me, which was 2007generated by GNU Autoconf 2.69. Invocation command line was 2008 2009 $ $0 $@ 2010 2011_ACEOF 2012exec 5>>config.log 2013{ 2014cat <<_ASUNAME 2015## --------- ## 2016## Platform. ## 2017## --------- ## 2018 2019hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2020uname -m = `(uname -m) 2>/dev/null || echo unknown` 2021uname -r = `(uname -r) 2>/dev/null || echo unknown` 2022uname -s = `(uname -s) 2>/dev/null || echo unknown` 2023uname -v = `(uname -v) 2>/dev/null || echo unknown` 2024 2025/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2026/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2027 2028/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2029/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2030/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2031/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2032/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2033/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2034/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2035 2036_ASUNAME 2037 2038as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2039for as_dir in $PATH 2040do 2041 IFS=$as_save_IFS 2042 test -z "$as_dir" && as_dir=. 2043 $as_echo "PATH: $as_dir" 2044 done 2045IFS=$as_save_IFS 2046 2047} >&5 2048 2049cat >&5 <<_ACEOF 2050 2051 2052## ----------- ## 2053## Core tests. ## 2054## ----------- ## 2055 2056_ACEOF 2057 2058 2059# Keep a trace of the command line. 2060# Strip out --no-create and --no-recursion so they do not pile up. 2061# Strip out --silent because we don't want to record it for future runs. 2062# Also quote any args containing shell meta-characters. 2063# Make two passes to allow for proper duplicate-argument suppression. 2064ac_configure_args= 2065ac_configure_args0= 2066ac_configure_args1= 2067ac_must_keep_next=false 2068for ac_pass in 1 2 2069do 2070 for ac_arg 2071 do 2072 case $ac_arg in 2073 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2074 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2075 | -silent | --silent | --silen | --sile | --sil) 2076 continue ;; 2077 *\'*) 2078 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2079 esac 2080 case $ac_pass in 2081 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2082 2) 2083 as_fn_append ac_configure_args1 " '$ac_arg'" 2084 if test $ac_must_keep_next = true; then 2085 ac_must_keep_next=false # Got value, back to normal. 2086 else 2087 case $ac_arg in 2088 *=* | --config-cache | -C | -disable-* | --disable-* \ 2089 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2090 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2091 | -with-* | --with-* | -without-* | --without-* | --x) 2092 case "$ac_configure_args0 " in 2093 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2094 esac 2095 ;; 2096 -* ) ac_must_keep_next=true ;; 2097 esac 2098 fi 2099 as_fn_append ac_configure_args " '$ac_arg'" 2100 ;; 2101 esac 2102 done 2103done 2104{ ac_configure_args0=; unset ac_configure_args0;} 2105{ ac_configure_args1=; unset ac_configure_args1;} 2106 2107# When interrupted or exit'd, cleanup temporary files, and complete 2108# config.log. We remove comments because anyway the quotes in there 2109# would cause problems or look ugly. 2110# WARNING: Use '\'' to represent an apostrophe within the trap. 2111# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2112trap 'exit_status=$? 2113 # Save into config.log some information that might help in debugging. 2114 { 2115 echo 2116 2117 $as_echo "## ---------------- ## 2118## Cache variables. ## 2119## ---------------- ##" 2120 echo 2121 # The following way of writing the cache mishandles newlines in values, 2122( 2123 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2124 eval ac_val=\$$ac_var 2125 case $ac_val in #( 2126 *${as_nl}*) 2127 case $ac_var in #( 2128 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2129$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2130 esac 2131 case $ac_var in #( 2132 _ | IFS | as_nl) ;; #( 2133 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2134 *) { eval $ac_var=; unset $ac_var;} ;; 2135 esac ;; 2136 esac 2137 done 2138 (set) 2>&1 | 2139 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2140 *${as_nl}ac_space=\ *) 2141 sed -n \ 2142 "s/'\''/'\''\\\\'\'''\''/g; 2143 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2144 ;; #( 2145 *) 2146 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2147 ;; 2148 esac | 2149 sort 2150) 2151 echo 2152 2153 $as_echo "## ----------------- ## 2154## Output variables. ## 2155## ----------------- ##" 2156 echo 2157 for ac_var in $ac_subst_vars 2158 do 2159 eval ac_val=\$$ac_var 2160 case $ac_val in 2161 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2162 esac 2163 $as_echo "$ac_var='\''$ac_val'\''" 2164 done | sort 2165 echo 2166 2167 if test -n "$ac_subst_files"; then 2168 $as_echo "## ------------------- ## 2169## File substitutions. ## 2170## ------------------- ##" 2171 echo 2172 for ac_var in $ac_subst_files 2173 do 2174 eval ac_val=\$$ac_var 2175 case $ac_val in 2176 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2177 esac 2178 $as_echo "$ac_var='\''$ac_val'\''" 2179 done | sort 2180 echo 2181 fi 2182 2183 if test -s confdefs.h; then 2184 $as_echo "## ----------- ## 2185## confdefs.h. ## 2186## ----------- ##" 2187 echo 2188 cat confdefs.h 2189 echo 2190 fi 2191 test "$ac_signal" != 0 && 2192 $as_echo "$as_me: caught signal $ac_signal" 2193 $as_echo "$as_me: exit $exit_status" 2194 } >&5 2195 rm -f core *.core core.conftest.* && 2196 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2197 exit $exit_status 2198' 0 2199for ac_signal in 1 2 13 15; do 2200 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2201done 2202ac_signal=0 2203 2204# confdefs.h avoids OS command line length limits that DEFS can exceed. 2205rm -f -r conftest* confdefs.h 2206 2207$as_echo "/* confdefs.h */" > confdefs.h 2208 2209# Predefined preprocessor variables. 2210 2211cat >>confdefs.h <<_ACEOF 2212#define PACKAGE_NAME "$PACKAGE_NAME" 2213_ACEOF 2214 2215cat >>confdefs.h <<_ACEOF 2216#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2217_ACEOF 2218 2219cat >>confdefs.h <<_ACEOF 2220#define PACKAGE_VERSION "$PACKAGE_VERSION" 2221_ACEOF 2222 2223cat >>confdefs.h <<_ACEOF 2224#define PACKAGE_STRING "$PACKAGE_STRING" 2225_ACEOF 2226 2227cat >>confdefs.h <<_ACEOF 2228#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2229_ACEOF 2230 2231cat >>confdefs.h <<_ACEOF 2232#define PACKAGE_URL "$PACKAGE_URL" 2233_ACEOF 2234 2235 2236# Let the site file select an alternate cache file if it wants to. 2237# Prefer an explicitly selected file to automatically selected ones. 2238ac_site_file1=NONE 2239ac_site_file2=NONE 2240if test -n "$CONFIG_SITE"; then 2241 # We do not want a PATH search for config.site. 2242 case $CONFIG_SITE in #(( 2243 -*) ac_site_file1=./$CONFIG_SITE;; 2244 */*) ac_site_file1=$CONFIG_SITE;; 2245 *) ac_site_file1=./$CONFIG_SITE;; 2246 esac 2247elif test "x$prefix" != xNONE; then 2248 ac_site_file1=$prefix/share/config.site 2249 ac_site_file2=$prefix/etc/config.site 2250else 2251 ac_site_file1=$ac_default_prefix/share/config.site 2252 ac_site_file2=$ac_default_prefix/etc/config.site 2253fi 2254for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2255do 2256 test "x$ac_site_file" = xNONE && continue 2257 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2258 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2259$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2260 sed 's/^/| /' "$ac_site_file" >&5 2261 . "$ac_site_file" \ 2262 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2263$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2264as_fn_error $? "failed to load site script $ac_site_file 2265See \`config.log' for more details" "$LINENO" 5; } 2266 fi 2267done 2268 2269if test -r "$cache_file"; then 2270 # Some versions of bash will fail to source /dev/null (special files 2271 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2272 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2273 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2274$as_echo "$as_me: loading cache $cache_file" >&6;} 2275 case $cache_file in 2276 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2277 *) . "./$cache_file";; 2278 esac 2279 fi 2280else 2281 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2282$as_echo "$as_me: creating cache $cache_file" >&6;} 2283 >$cache_file 2284fi 2285 2286# Check that the precious variables saved in the cache have kept the same 2287# value. 2288ac_cache_corrupted=false 2289for ac_var in $ac_precious_vars; do 2290 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2291 eval ac_new_set=\$ac_env_${ac_var}_set 2292 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2293 eval ac_new_val=\$ac_env_${ac_var}_value 2294 case $ac_old_set,$ac_new_set in 2295 set,) 2296 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2297$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2298 ac_cache_corrupted=: ;; 2299 ,set) 2300 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2301$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2302 ac_cache_corrupted=: ;; 2303 ,);; 2304 *) 2305 if test "x$ac_old_val" != "x$ac_new_val"; then 2306 # differences in whitespace do not lead to failure. 2307 ac_old_val_w=`echo x $ac_old_val` 2308 ac_new_val_w=`echo x $ac_new_val` 2309 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2310 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2311$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2312 ac_cache_corrupted=: 2313 else 2314 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2315$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2316 eval $ac_var=\$ac_old_val 2317 fi 2318 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2319$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2320 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2321$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2322 fi;; 2323 esac 2324 # Pass precious variables to config.status. 2325 if test "$ac_new_set" = set; then 2326 case $ac_new_val in 2327 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2328 *) ac_arg=$ac_var=$ac_new_val ;; 2329 esac 2330 case " $ac_configure_args " in 2331 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2332 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2333 esac 2334 fi 2335done 2336if $ac_cache_corrupted; then 2337 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2338$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2339 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2340$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2341 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2342fi 2343## -------------------- ## 2344## Main body of script. ## 2345## -------------------- ## 2346 2347ac_ext=c 2348ac_cpp='$CPP $CPPFLAGS' 2349ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2350ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2351ac_compiler_gnu=$ac_cv_c_compiler_gnu 2352 2353 2354 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2356$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2357 # Check whether --enable-maintainer-mode was given. 2358if test "${enable_maintainer_mode+set}" = set; then : 2359 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2360else 2361 USE_MAINTAINER_MODE=no 2362fi 2363 2364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2365$as_echo "$USE_MAINTAINER_MODE" >&6; } 2366 if test $USE_MAINTAINER_MODE = yes; then 2367 MAINTAINER_MODE_TRUE= 2368 MAINTAINER_MODE_FALSE='#' 2369else 2370 MAINTAINER_MODE_TRUE='#' 2371 MAINTAINER_MODE_FALSE= 2372fi 2373 2374 MAINT=$MAINTAINER_MODE_TRUE 2375 2376 2377 2378am__api_version='1.12' 2379 2380ac_aux_dir= 2381for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2382 if test -f "$ac_dir/install-sh"; then 2383 ac_aux_dir=$ac_dir 2384 ac_install_sh="$ac_aux_dir/install-sh -c" 2385 break 2386 elif test -f "$ac_dir/install.sh"; then 2387 ac_aux_dir=$ac_dir 2388 ac_install_sh="$ac_aux_dir/install.sh -c" 2389 break 2390 elif test -f "$ac_dir/shtool"; then 2391 ac_aux_dir=$ac_dir 2392 ac_install_sh="$ac_aux_dir/shtool install -c" 2393 break 2394 fi 2395done 2396if test -z "$ac_aux_dir"; then 2397 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2398fi 2399 2400# These three variables are undocumented and unsupported, 2401# and are intended to be withdrawn in a future Autoconf release. 2402# They can cause serious problems if a builder's source tree is in a directory 2403# whose full name contains unusual characters. 2404ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2405ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2406ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2407 2408 2409# Find a good install program. We prefer a C program (faster), 2410# so one script is as good as another. But avoid the broken or 2411# incompatible versions: 2412# SysV /etc/install, /usr/sbin/install 2413# SunOS /usr/etc/install 2414# IRIX /sbin/install 2415# AIX /bin/install 2416# AmigaOS /C/install, which installs bootblocks on floppy discs 2417# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2418# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2419# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2420# OS/2's system install, which has a completely different semantic 2421# ./install, which can be erroneously created by make from ./install.sh. 2422# Reject install programs that cannot install multiple files. 2423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2424$as_echo_n "checking for a BSD-compatible install... " >&6; } 2425if test -z "$INSTALL"; then 2426if ${ac_cv_path_install+:} false; then : 2427 $as_echo_n "(cached) " >&6 2428else 2429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2430for as_dir in $PATH 2431do 2432 IFS=$as_save_IFS 2433 test -z "$as_dir" && as_dir=. 2434 # Account for people who put trailing slashes in PATH elements. 2435case $as_dir/ in #(( 2436 ./ | .// | /[cC]/* | \ 2437 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2438 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2439 /usr/ucb/* ) ;; 2440 *) 2441 # OSF1 and SCO ODT 3.0 have their own names for install. 2442 # Don't use installbsd from OSF since it installs stuff as root 2443 # by default. 2444 for ac_prog in ginstall scoinst install; do 2445 for ac_exec_ext in '' $ac_executable_extensions; do 2446 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2447 if test $ac_prog = install && 2448 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2449 # AIX install. It has an incompatible calling convention. 2450 : 2451 elif test $ac_prog = install && 2452 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2453 # program-specific install script used by HP pwplus--don't use. 2454 : 2455 else 2456 rm -rf conftest.one conftest.two conftest.dir 2457 echo one > conftest.one 2458 echo two > conftest.two 2459 mkdir conftest.dir 2460 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2461 test -s conftest.one && test -s conftest.two && 2462 test -s conftest.dir/conftest.one && 2463 test -s conftest.dir/conftest.two 2464 then 2465 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2466 break 3 2467 fi 2468 fi 2469 fi 2470 done 2471 done 2472 ;; 2473esac 2474 2475 done 2476IFS=$as_save_IFS 2477 2478rm -rf conftest.one conftest.two conftest.dir 2479 2480fi 2481 if test "${ac_cv_path_install+set}" = set; then 2482 INSTALL=$ac_cv_path_install 2483 else 2484 # As a last resort, use the slow shell script. Don't cache a 2485 # value for INSTALL within a source directory, because that will 2486 # break other packages using the cache if that directory is 2487 # removed, or if the value is a relative name. 2488 INSTALL=$ac_install_sh 2489 fi 2490fi 2491{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2492$as_echo "$INSTALL" >&6; } 2493 2494# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2495# It thinks the first close brace ends the variable substitution. 2496test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2497 2498test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2499 2500test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2501 2502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2503$as_echo_n "checking whether build environment is sane... " >&6; } 2504# Reject unsafe characters in $srcdir or the absolute working directory 2505# name. Accept space and tab only in the latter. 2506am_lf=' 2507' 2508case `pwd` in 2509 *[\\\"\#\$\&\'\`$am_lf]*) 2510 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2511esac 2512case $srcdir in 2513 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2514 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 2515esac 2516 2517# Do 'set' in a subshell so we don't clobber the current shell's 2518# arguments. Must try -L first in case configure is actually a 2519# symlink; some systems play weird games with the mod time of symlinks 2520# (eg FreeBSD returns the mod time of the symlink's containing 2521# directory). 2522if ( 2523 am_has_slept=no 2524 for am_try in 1 2; do 2525 echo "timestamp, slept: $am_has_slept" > conftest.file 2526 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2527 if test "$*" = "X"; then 2528 # -L didn't work. 2529 set X `ls -t "$srcdir/configure" conftest.file` 2530 fi 2531 if test "$*" != "X $srcdir/configure conftest.file" \ 2532 && test "$*" != "X conftest.file $srcdir/configure"; then 2533 2534 # If neither matched, then we have a broken ls. This can happen 2535 # if, for instance, CONFIG_SHELL is bash and it inherits a 2536 # broken ls alias from the environment. This has actually 2537 # happened. Such a system could not be considered "sane". 2538 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2539 alias in your environment" "$LINENO" 5 2540 fi 2541 if test "$2" = conftest.file || test $am_try -eq 2; then 2542 break 2543 fi 2544 # Just in case. 2545 sleep 1 2546 am_has_slept=yes 2547 done 2548 test "$2" = conftest.file 2549 ) 2550then 2551 # Ok. 2552 : 2553else 2554 as_fn_error $? "newly created file is older than distributed files! 2555Check your system clock" "$LINENO" 5 2556fi 2557{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2558$as_echo "yes" >&6; } 2559# If we didn't sleep, we still need to ensure time stamps of config.status and 2560# generated files are strictly newer. 2561am_sleep_pid= 2562if grep 'slept: no' conftest.file >/dev/null 2>&1; then 2563 ( sleep 1 ) & 2564 am_sleep_pid=$! 2565fi 2566 2567rm -f conftest.file 2568 2569test "$program_prefix" != NONE && 2570 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2571# Use a double $ so make ignores it. 2572test "$program_suffix" != NONE && 2573 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2574# Double any \ or $. 2575# By default was `s,x,x', remove it if useless. 2576ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2577program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2578 2579# expand $ac_aux_dir to an absolute path 2580am_aux_dir=`cd $ac_aux_dir && pwd` 2581 2582if test x"${MISSING+set}" != xset; then 2583 case $am_aux_dir in 2584 *\ * | *\ *) 2585 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2586 *) 2587 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2588 esac 2589fi 2590# Use eval to expand $SHELL 2591if eval "$MISSING --run true"; then 2592 am_missing_run="$MISSING --run " 2593else 2594 am_missing_run= 2595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 2596$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 2597fi 2598 2599if test x"${install_sh}" != xset; then 2600 case $am_aux_dir in 2601 *\ * | *\ *) 2602 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2603 *) 2604 install_sh="\${SHELL} $am_aux_dir/install-sh" 2605 esac 2606fi 2607 2608# Installed binaries are usually stripped using 'strip' when the user 2609# run "make install-strip". However 'strip' might not be the right 2610# tool to use in cross-compilation environments, therefore Automake 2611# will honor the 'STRIP' environment variable to overrule this program. 2612if test "$cross_compiling" != no; then 2613 if test -n "$ac_tool_prefix"; then 2614 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2615set dummy ${ac_tool_prefix}strip; ac_word=$2 2616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2617$as_echo_n "checking for $ac_word... " >&6; } 2618if ${ac_cv_prog_STRIP+:} false; then : 2619 $as_echo_n "(cached) " >&6 2620else 2621 if test -n "$STRIP"; then 2622 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2623else 2624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2625for as_dir in $PATH 2626do 2627 IFS=$as_save_IFS 2628 test -z "$as_dir" && as_dir=. 2629 for ac_exec_ext in '' $ac_executable_extensions; do 2630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2631 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2633 break 2 2634 fi 2635done 2636 done 2637IFS=$as_save_IFS 2638 2639fi 2640fi 2641STRIP=$ac_cv_prog_STRIP 2642if test -n "$STRIP"; then 2643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2644$as_echo "$STRIP" >&6; } 2645else 2646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2647$as_echo "no" >&6; } 2648fi 2649 2650 2651fi 2652if test -z "$ac_cv_prog_STRIP"; then 2653 ac_ct_STRIP=$STRIP 2654 # Extract the first word of "strip", so it can be a program name with args. 2655set dummy strip; ac_word=$2 2656{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2657$as_echo_n "checking for $ac_word... " >&6; } 2658if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 2659 $as_echo_n "(cached) " >&6 2660else 2661 if test -n "$ac_ct_STRIP"; then 2662 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2663else 2664as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2665for as_dir in $PATH 2666do 2667 IFS=$as_save_IFS 2668 test -z "$as_dir" && as_dir=. 2669 for ac_exec_ext in '' $ac_executable_extensions; do 2670 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2671 ac_cv_prog_ac_ct_STRIP="strip" 2672 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2673 break 2 2674 fi 2675done 2676 done 2677IFS=$as_save_IFS 2678 2679fi 2680fi 2681ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2682if test -n "$ac_ct_STRIP"; then 2683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2684$as_echo "$ac_ct_STRIP" >&6; } 2685else 2686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2687$as_echo "no" >&6; } 2688fi 2689 2690 if test "x$ac_ct_STRIP" = x; then 2691 STRIP=":" 2692 else 2693 case $cross_compiling:$ac_tool_warned in 2694yes:) 2695{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2696$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2697ac_tool_warned=yes ;; 2698esac 2699 STRIP=$ac_ct_STRIP 2700 fi 2701else 2702 STRIP="$ac_cv_prog_STRIP" 2703fi 2704 2705fi 2706INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2707 2708{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2709$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2710if test -z "$MKDIR_P"; then 2711 if ${ac_cv_path_mkdir+:} false; then : 2712 $as_echo_n "(cached) " >&6 2713else 2714 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2715for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2716do 2717 IFS=$as_save_IFS 2718 test -z "$as_dir" && as_dir=. 2719 for ac_prog in mkdir gmkdir; do 2720 for ac_exec_ext in '' $ac_executable_extensions; do 2721 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 2722 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2723 'mkdir (GNU coreutils) '* | \ 2724 'mkdir (coreutils) '* | \ 2725 'mkdir (fileutils) '4.1*) 2726 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2727 break 3;; 2728 esac 2729 done 2730 done 2731 done 2732IFS=$as_save_IFS 2733 2734fi 2735 2736 test -d ./--version && rmdir ./--version 2737 if test "${ac_cv_path_mkdir+set}" = set; then 2738 MKDIR_P="$ac_cv_path_mkdir -p" 2739 else 2740 # As a last resort, use the slow shell script. Don't cache a 2741 # value for MKDIR_P within a source directory, because that will 2742 # break other packages using the cache if that directory is 2743 # removed, or if the value is a relative name. 2744 MKDIR_P="$ac_install_sh -d" 2745 fi 2746fi 2747{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2748$as_echo "$MKDIR_P" >&6; } 2749 2750for ac_prog in gawk mawk nawk awk 2751do 2752 # Extract the first word of "$ac_prog", so it can be a program name with args. 2753set dummy $ac_prog; ac_word=$2 2754{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2755$as_echo_n "checking for $ac_word... " >&6; } 2756if ${ac_cv_prog_AWK+:} false; then : 2757 $as_echo_n "(cached) " >&6 2758else 2759 if test -n "$AWK"; then 2760 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2761else 2762as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2763for as_dir in $PATH 2764do 2765 IFS=$as_save_IFS 2766 test -z "$as_dir" && as_dir=. 2767 for ac_exec_ext in '' $ac_executable_extensions; do 2768 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2769 ac_cv_prog_AWK="$ac_prog" 2770 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2771 break 2 2772 fi 2773done 2774 done 2775IFS=$as_save_IFS 2776 2777fi 2778fi 2779AWK=$ac_cv_prog_AWK 2780if test -n "$AWK"; then 2781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2782$as_echo "$AWK" >&6; } 2783else 2784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2785$as_echo "no" >&6; } 2786fi 2787 2788 2789 test -n "$AWK" && break 2790done 2791 2792{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2793$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2794set x ${MAKE-make} 2795ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2796if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 2797 $as_echo_n "(cached) " >&6 2798else 2799 cat >conftest.make <<\_ACEOF 2800SHELL = /bin/sh 2801all: 2802 @echo '@@@%%%=$(MAKE)=@@@%%%' 2803_ACEOF 2804# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2805case `${MAKE-make} -f conftest.make 2>/dev/null` in 2806 *@@@%%%=?*=@@@%%%*) 2807 eval ac_cv_prog_make_${ac_make}_set=yes;; 2808 *) 2809 eval ac_cv_prog_make_${ac_make}_set=no;; 2810esac 2811rm -f conftest.make 2812fi 2813if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2815$as_echo "yes" >&6; } 2816 SET_MAKE= 2817else 2818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2819$as_echo "no" >&6; } 2820 SET_MAKE="MAKE=${MAKE-make}" 2821fi 2822 2823rm -rf .tst 2>/dev/null 2824mkdir .tst 2>/dev/null 2825if test -d .tst; then 2826 am__leading_dot=. 2827else 2828 am__leading_dot=_ 2829fi 2830rmdir .tst 2>/dev/null 2831 2832if test "`cd $srcdir && pwd`" != "`pwd`"; then 2833 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2834 # is not polluted with repeated "-I." 2835 am__isrc=' -I$(srcdir)' 2836 # test to see if srcdir already configured 2837 if test -f $srcdir/config.status; then 2838 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2839 fi 2840fi 2841 2842# test whether we have cygpath 2843if test -z "$CYGPATH_W"; then 2844 if (cygpath --version) >/dev/null 2>/dev/null; then 2845 CYGPATH_W='cygpath -w' 2846 else 2847 CYGPATH_W=echo 2848 fi 2849fi 2850 2851 2852# Define the identity of the package. 2853 2854 PACKAGE=libdbi-drivers 2855 VERSION=0.9.0 2856 2857 2858cat >>confdefs.h <<_ACEOF 2859#define PACKAGE "$PACKAGE" 2860_ACEOF 2861 2862 2863cat >>confdefs.h <<_ACEOF 2864#define VERSION "$VERSION" 2865_ACEOF 2866 2867# Some tools Automake needs. 2868 2869ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2870 2871 2872AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2873 2874 2875AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2876 2877 2878AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2879 2880 2881MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2882 2883# For better backward compatibility. To be removed once Automake 1.9.x 2884# dies out for good. For more background, see: 2885# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 2886# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 2887mkdir_p='$(MKDIR_P)' 2888 2889# We need awk for the "check" target. The system "awk" is bad on 2890# some platforms. 2891# Always define AMTAR for backward compatibility. Yes, it's still used 2892# in the wild :-( We should find a proper way to deprecate it ... 2893AMTAR='$${TAR-tar}' 2894 2895am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 2896 2897 2898 2899 2900 2901ac_config_headers="$ac_config_headers config.h" 2902 2903# Make sure we can run config.sub. 2904$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2905 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2906 2907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2908$as_echo_n "checking build system type... " >&6; } 2909if ${ac_cv_build+:} false; then : 2910 $as_echo_n "(cached) " >&6 2911else 2912 ac_build_alias=$build_alias 2913test "x$ac_build_alias" = x && 2914 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2915test "x$ac_build_alias" = x && 2916 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2917ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2918 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2919 2920fi 2921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2922$as_echo "$ac_cv_build" >&6; } 2923case $ac_cv_build in 2924*-*-*) ;; 2925*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2926esac 2927build=$ac_cv_build 2928ac_save_IFS=$IFS; IFS='-' 2929set x $ac_cv_build 2930shift 2931build_cpu=$1 2932build_vendor=$2 2933shift; shift 2934# Remember, the first character of IFS is used to create $*, 2935# except with old shells: 2936build_os=$* 2937IFS=$ac_save_IFS 2938case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2939 2940 2941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2942$as_echo_n "checking host system type... " >&6; } 2943if ${ac_cv_host+:} false; then : 2944 $as_echo_n "(cached) " >&6 2945else 2946 if test "x$host_alias" = x; then 2947 ac_cv_host=$ac_cv_build 2948else 2949 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2950 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2951fi 2952 2953fi 2954{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2955$as_echo "$ac_cv_host" >&6; } 2956case $ac_cv_host in 2957*-*-*) ;; 2958*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2959esac 2960host=$ac_cv_host 2961ac_save_IFS=$IFS; IFS='-' 2962set x $ac_cv_host 2963shift 2964host_cpu=$1 2965host_vendor=$2 2966shift; shift 2967# Remember, the first character of IFS is used to create $*, 2968# except with old shells: 2969host_os=$* 2970IFS=$ac_save_IFS 2971case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2972 2973 2974enable_win32_dll=yes 2975 2976case $host in 2977*-*-cygwin* | *-*-mingw* | *-*-pw32* | *-*-cegcc*) 2978 if test -n "$ac_tool_prefix"; then 2979 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 2980set dummy ${ac_tool_prefix}as; ac_word=$2 2981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2982$as_echo_n "checking for $ac_word... " >&6; } 2983if ${ac_cv_prog_AS+:} false; then : 2984 $as_echo_n "(cached) " >&6 2985else 2986 if test -n "$AS"; then 2987 ac_cv_prog_AS="$AS" # Let the user override the test. 2988else 2989as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2990for as_dir in $PATH 2991do 2992 IFS=$as_save_IFS 2993 test -z "$as_dir" && as_dir=. 2994 for ac_exec_ext in '' $ac_executable_extensions; do 2995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2996 ac_cv_prog_AS="${ac_tool_prefix}as" 2997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2998 break 2 2999 fi 3000done 3001 done 3002IFS=$as_save_IFS 3003 3004fi 3005fi 3006AS=$ac_cv_prog_AS 3007if test -n "$AS"; then 3008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 3009$as_echo "$AS" >&6; } 3010else 3011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3012$as_echo "no" >&6; } 3013fi 3014 3015 3016fi 3017if test -z "$ac_cv_prog_AS"; then 3018 ac_ct_AS=$AS 3019 # Extract the first word of "as", so it can be a program name with args. 3020set dummy as; ac_word=$2 3021{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3022$as_echo_n "checking for $ac_word... " >&6; } 3023if ${ac_cv_prog_ac_ct_AS+:} false; then : 3024 $as_echo_n "(cached) " >&6 3025else 3026 if test -n "$ac_ct_AS"; then 3027 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 3028else 3029as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3030for as_dir in $PATH 3031do 3032 IFS=$as_save_IFS 3033 test -z "$as_dir" && as_dir=. 3034 for ac_exec_ext in '' $ac_executable_extensions; do 3035 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3036 ac_cv_prog_ac_ct_AS="as" 3037 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3038 break 2 3039 fi 3040done 3041 done 3042IFS=$as_save_IFS 3043 3044fi 3045fi 3046ac_ct_AS=$ac_cv_prog_ac_ct_AS 3047if test -n "$ac_ct_AS"; then 3048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 3049$as_echo "$ac_ct_AS" >&6; } 3050else 3051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3052$as_echo "no" >&6; } 3053fi 3054 3055 if test "x$ac_ct_AS" = x; then 3056 AS="false" 3057 else 3058 case $cross_compiling:$ac_tool_warned in 3059yes:) 3060{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3061$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3062ac_tool_warned=yes ;; 3063esac 3064 AS=$ac_ct_AS 3065 fi 3066else 3067 AS="$ac_cv_prog_AS" 3068fi 3069 3070 if test -n "$ac_tool_prefix"; then 3071 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 3072set dummy ${ac_tool_prefix}dlltool; ac_word=$2 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3074$as_echo_n "checking for $ac_word... " >&6; } 3075if ${ac_cv_prog_DLLTOOL+:} false; then : 3076 $as_echo_n "(cached) " >&6 3077else 3078 if test -n "$DLLTOOL"; then 3079 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 3080else 3081as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3082for as_dir in $PATH 3083do 3084 IFS=$as_save_IFS 3085 test -z "$as_dir" && as_dir=. 3086 for ac_exec_ext in '' $ac_executable_extensions; do 3087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3088 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096fi 3097fi 3098DLLTOOL=$ac_cv_prog_DLLTOOL 3099if test -n "$DLLTOOL"; then 3100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 3101$as_echo "$DLLTOOL" >&6; } 3102else 3103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3104$as_echo "no" >&6; } 3105fi 3106 3107 3108fi 3109if test -z "$ac_cv_prog_DLLTOOL"; then 3110 ac_ct_DLLTOOL=$DLLTOOL 3111 # Extract the first word of "dlltool", so it can be a program name with args. 3112set dummy dlltool; ac_word=$2 3113{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3114$as_echo_n "checking for $ac_word... " >&6; } 3115if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 3116 $as_echo_n "(cached) " >&6 3117else 3118 if test -n "$ac_ct_DLLTOOL"; then 3119 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 3120else 3121as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3122for as_dir in $PATH 3123do 3124 IFS=$as_save_IFS 3125 test -z "$as_dir" && as_dir=. 3126 for ac_exec_ext in '' $ac_executable_extensions; do 3127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3128 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 3129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3130 break 2 3131 fi 3132done 3133 done 3134IFS=$as_save_IFS 3135 3136fi 3137fi 3138ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 3139if test -n "$ac_ct_DLLTOOL"; then 3140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 3141$as_echo "$ac_ct_DLLTOOL" >&6; } 3142else 3143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3144$as_echo "no" >&6; } 3145fi 3146 3147 if test "x$ac_ct_DLLTOOL" = x; then 3148 DLLTOOL="false" 3149 else 3150 case $cross_compiling:$ac_tool_warned in 3151yes:) 3152{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3153$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3154ac_tool_warned=yes ;; 3155esac 3156 DLLTOOL=$ac_ct_DLLTOOL 3157 fi 3158else 3159 DLLTOOL="$ac_cv_prog_DLLTOOL" 3160fi 3161 3162 if test -n "$ac_tool_prefix"; then 3163 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 3164set dummy ${ac_tool_prefix}objdump; ac_word=$2 3165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3166$as_echo_n "checking for $ac_word... " >&6; } 3167if ${ac_cv_prog_OBJDUMP+:} false; then : 3168 $as_echo_n "(cached) " >&6 3169else 3170 if test -n "$OBJDUMP"; then 3171 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 3172else 3173as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3174for as_dir in $PATH 3175do 3176 IFS=$as_save_IFS 3177 test -z "$as_dir" && as_dir=. 3178 for ac_exec_ext in '' $ac_executable_extensions; do 3179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3180 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 3181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3182 break 2 3183 fi 3184done 3185 done 3186IFS=$as_save_IFS 3187 3188fi 3189fi 3190OBJDUMP=$ac_cv_prog_OBJDUMP 3191if test -n "$OBJDUMP"; then 3192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 3193$as_echo "$OBJDUMP" >&6; } 3194else 3195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3196$as_echo "no" >&6; } 3197fi 3198 3199 3200fi 3201if test -z "$ac_cv_prog_OBJDUMP"; then 3202 ac_ct_OBJDUMP=$OBJDUMP 3203 # Extract the first word of "objdump", so it can be a program name with args. 3204set dummy objdump; ac_word=$2 3205{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3206$as_echo_n "checking for $ac_word... " >&6; } 3207if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 3208 $as_echo_n "(cached) " >&6 3209else 3210 if test -n "$ac_ct_OBJDUMP"; then 3211 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 3212else 3213as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3214for as_dir in $PATH 3215do 3216 IFS=$as_save_IFS 3217 test -z "$as_dir" && as_dir=. 3218 for ac_exec_ext in '' $ac_executable_extensions; do 3219 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3220 ac_cv_prog_ac_ct_OBJDUMP="objdump" 3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3222 break 2 3223 fi 3224done 3225 done 3226IFS=$as_save_IFS 3227 3228fi 3229fi 3230ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 3231if test -n "$ac_ct_OBJDUMP"; then 3232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 3233$as_echo "$ac_ct_OBJDUMP" >&6; } 3234else 3235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3236$as_echo "no" >&6; } 3237fi 3238 3239 if test "x$ac_ct_OBJDUMP" = x; then 3240 OBJDUMP="false" 3241 else 3242 case $cross_compiling:$ac_tool_warned in 3243yes:) 3244{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3245$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3246ac_tool_warned=yes ;; 3247esac 3248 OBJDUMP=$ac_ct_OBJDUMP 3249 fi 3250else 3251 OBJDUMP="$ac_cv_prog_OBJDUMP" 3252fi 3253 3254 ;; 3255esac 3256 3257test -z "$AS" && AS=as 3258 3259 3260 3261 3262 3263test -z "$DLLTOOL" && DLLTOOL=dlltool 3264 3265 3266 3267 3268 3269test -z "$OBJDUMP" && OBJDUMP=objdump 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282driverdir=$libdir/dbd 3283 3284 3285: ${CFLAGS=""} 3286 3287 3288ac_ext=c 3289ac_cpp='$CPP $CPPFLAGS' 3290ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3291ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3292ac_compiler_gnu=$ac_cv_c_compiler_gnu 3293if test -n "$ac_tool_prefix"; then 3294 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3295set dummy ${ac_tool_prefix}gcc; ac_word=$2 3296{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3297$as_echo_n "checking for $ac_word... " >&6; } 3298if ${ac_cv_prog_CC+:} false; then : 3299 $as_echo_n "(cached) " >&6 3300else 3301 if test -n "$CC"; then 3302 ac_cv_prog_CC="$CC" # Let the user override the test. 3303else 3304as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3305for as_dir in $PATH 3306do 3307 IFS=$as_save_IFS 3308 test -z "$as_dir" && as_dir=. 3309 for ac_exec_ext in '' $ac_executable_extensions; do 3310 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3311 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3312 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3313 break 2 3314 fi 3315done 3316 done 3317IFS=$as_save_IFS 3318 3319fi 3320fi 3321CC=$ac_cv_prog_CC 3322if test -n "$CC"; then 3323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3324$as_echo "$CC" >&6; } 3325else 3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3327$as_echo "no" >&6; } 3328fi 3329 3330 3331fi 3332if test -z "$ac_cv_prog_CC"; then 3333 ac_ct_CC=$CC 3334 # Extract the first word of "gcc", so it can be a program name with args. 3335set dummy gcc; ac_word=$2 3336{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3337$as_echo_n "checking for $ac_word... " >&6; } 3338if ${ac_cv_prog_ac_ct_CC+:} false; then : 3339 $as_echo_n "(cached) " >&6 3340else 3341 if test -n "$ac_ct_CC"; then 3342 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3343else 3344as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3345for as_dir in $PATH 3346do 3347 IFS=$as_save_IFS 3348 test -z "$as_dir" && as_dir=. 3349 for ac_exec_ext in '' $ac_executable_extensions; do 3350 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3351 ac_cv_prog_ac_ct_CC="gcc" 3352 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3353 break 2 3354 fi 3355done 3356 done 3357IFS=$as_save_IFS 3358 3359fi 3360fi 3361ac_ct_CC=$ac_cv_prog_ac_ct_CC 3362if test -n "$ac_ct_CC"; then 3363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3364$as_echo "$ac_ct_CC" >&6; } 3365else 3366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3367$as_echo "no" >&6; } 3368fi 3369 3370 if test "x$ac_ct_CC" = x; then 3371 CC="" 3372 else 3373 case $cross_compiling:$ac_tool_warned in 3374yes:) 3375{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3376$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3377ac_tool_warned=yes ;; 3378esac 3379 CC=$ac_ct_CC 3380 fi 3381else 3382 CC="$ac_cv_prog_CC" 3383fi 3384 3385if test -z "$CC"; then 3386 if test -n "$ac_tool_prefix"; then 3387 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3388set dummy ${ac_tool_prefix}cc; ac_word=$2 3389{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3390$as_echo_n "checking for $ac_word... " >&6; } 3391if ${ac_cv_prog_CC+:} false; then : 3392 $as_echo_n "(cached) " >&6 3393else 3394 if test -n "$CC"; then 3395 ac_cv_prog_CC="$CC" # Let the user override the test. 3396else 3397as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3398for as_dir in $PATH 3399do 3400 IFS=$as_save_IFS 3401 test -z "$as_dir" && as_dir=. 3402 for ac_exec_ext in '' $ac_executable_extensions; do 3403 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3404 ac_cv_prog_CC="${ac_tool_prefix}cc" 3405 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3406 break 2 3407 fi 3408done 3409 done 3410IFS=$as_save_IFS 3411 3412fi 3413fi 3414CC=$ac_cv_prog_CC 3415if test -n "$CC"; then 3416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3417$as_echo "$CC" >&6; } 3418else 3419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3420$as_echo "no" >&6; } 3421fi 3422 3423 3424 fi 3425fi 3426if test -z "$CC"; then 3427 # Extract the first word of "cc", so it can be a program name with args. 3428set dummy cc; ac_word=$2 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3430$as_echo_n "checking for $ac_word... " >&6; } 3431if ${ac_cv_prog_CC+:} false; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 if test -n "$CC"; then 3435 ac_cv_prog_CC="$CC" # Let the user override the test. 3436else 3437 ac_prog_rejected=no 3438as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3439for as_dir in $PATH 3440do 3441 IFS=$as_save_IFS 3442 test -z "$as_dir" && as_dir=. 3443 for ac_exec_ext in '' $ac_executable_extensions; do 3444 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3445 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3446 ac_prog_rejected=yes 3447 continue 3448 fi 3449 ac_cv_prog_CC="cc" 3450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3451 break 2 3452 fi 3453done 3454 done 3455IFS=$as_save_IFS 3456 3457if test $ac_prog_rejected = yes; then 3458 # We found a bogon in the path, so make sure we never use it. 3459 set dummy $ac_cv_prog_CC 3460 shift 3461 if test $# != 0; then 3462 # We chose a different compiler from the bogus one. 3463 # However, it has the same basename, so the bogon will be chosen 3464 # first if we set CC to just the basename; use the full file name. 3465 shift 3466 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3467 fi 3468fi 3469fi 3470fi 3471CC=$ac_cv_prog_CC 3472if test -n "$CC"; then 3473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3474$as_echo "$CC" >&6; } 3475else 3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3477$as_echo "no" >&6; } 3478fi 3479 3480 3481fi 3482if test -z "$CC"; then 3483 if test -n "$ac_tool_prefix"; then 3484 for ac_prog in cl.exe 3485 do 3486 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3487set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3489$as_echo_n "checking for $ac_word... " >&6; } 3490if ${ac_cv_prog_CC+:} false; then : 3491 $as_echo_n "(cached) " >&6 3492else 3493 if test -n "$CC"; then 3494 ac_cv_prog_CC="$CC" # Let the user override the test. 3495else 3496as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3497for as_dir in $PATH 3498do 3499 IFS=$as_save_IFS 3500 test -z "$as_dir" && as_dir=. 3501 for ac_exec_ext in '' $ac_executable_extensions; do 3502 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3503 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3504 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3505 break 2 3506 fi 3507done 3508 done 3509IFS=$as_save_IFS 3510 3511fi 3512fi 3513CC=$ac_cv_prog_CC 3514if test -n "$CC"; then 3515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3516$as_echo "$CC" >&6; } 3517else 3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3519$as_echo "no" >&6; } 3520fi 3521 3522 3523 test -n "$CC" && break 3524 done 3525fi 3526if test -z "$CC"; then 3527 ac_ct_CC=$CC 3528 for ac_prog in cl.exe 3529do 3530 # Extract the first word of "$ac_prog", so it can be a program name with args. 3531set dummy $ac_prog; ac_word=$2 3532{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3533$as_echo_n "checking for $ac_word... " >&6; } 3534if ${ac_cv_prog_ac_ct_CC+:} false; then : 3535 $as_echo_n "(cached) " >&6 3536else 3537 if test -n "$ac_ct_CC"; then 3538 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3539else 3540as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3541for as_dir in $PATH 3542do 3543 IFS=$as_save_IFS 3544 test -z "$as_dir" && as_dir=. 3545 for ac_exec_ext in '' $ac_executable_extensions; do 3546 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3547 ac_cv_prog_ac_ct_CC="$ac_prog" 3548 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3549 break 2 3550 fi 3551done 3552 done 3553IFS=$as_save_IFS 3554 3555fi 3556fi 3557ac_ct_CC=$ac_cv_prog_ac_ct_CC 3558if test -n "$ac_ct_CC"; then 3559 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3560$as_echo "$ac_ct_CC" >&6; } 3561else 3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3563$as_echo "no" >&6; } 3564fi 3565 3566 3567 test -n "$ac_ct_CC" && break 3568done 3569 3570 if test "x$ac_ct_CC" = x; then 3571 CC="" 3572 else 3573 case $cross_compiling:$ac_tool_warned in 3574yes:) 3575{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3576$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3577ac_tool_warned=yes ;; 3578esac 3579 CC=$ac_ct_CC 3580 fi 3581fi 3582 3583fi 3584 3585 3586test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3587$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3588as_fn_error $? "no acceptable C compiler found in \$PATH 3589See \`config.log' for more details" "$LINENO" 5; } 3590 3591# Provide some information about the compiler. 3592$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3593set X $ac_compile 3594ac_compiler=$2 3595for ac_option in --version -v -V -qversion; do 3596 { { ac_try="$ac_compiler $ac_option >&5" 3597case "(($ac_try" in 3598 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3599 *) ac_try_echo=$ac_try;; 3600esac 3601eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3602$as_echo "$ac_try_echo"; } >&5 3603 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3604 ac_status=$? 3605 if test -s conftest.err; then 3606 sed '10a\ 3607... rest of stderr output deleted ... 3608 10q' conftest.err >conftest.er1 3609 cat conftest.er1 >&5 3610 fi 3611 rm -f conftest.er1 conftest.err 3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3613 test $ac_status = 0; } 3614done 3615 3616cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3617/* end confdefs.h. */ 3618 3619int 3620main () 3621{ 3622 3623 ; 3624 return 0; 3625} 3626_ACEOF 3627ac_clean_files_save=$ac_clean_files 3628ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3629# Try to create an executable without -o first, disregard a.out. 3630# It will help us diagnose broken compilers, and finding out an intuition 3631# of exeext. 3632{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3633$as_echo_n "checking whether the C compiler works... " >&6; } 3634ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3635 3636# The possible output files: 3637ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3638 3639ac_rmfiles= 3640for ac_file in $ac_files 3641do 3642 case $ac_file in 3643 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3644 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3645 esac 3646done 3647rm -f $ac_rmfiles 3648 3649if { { ac_try="$ac_link_default" 3650case "(($ac_try" in 3651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3652 *) ac_try_echo=$ac_try;; 3653esac 3654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3655$as_echo "$ac_try_echo"; } >&5 3656 (eval "$ac_link_default") 2>&5 3657 ac_status=$? 3658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3659 test $ac_status = 0; }; then : 3660 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3661# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3662# in a Makefile. We should not override ac_cv_exeext if it was cached, 3663# so that the user can short-circuit this test for compilers unknown to 3664# Autoconf. 3665for ac_file in $ac_files '' 3666do 3667 test -f "$ac_file" || continue 3668 case $ac_file in 3669 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3670 ;; 3671 [ab].out ) 3672 # We found the default executable, but exeext='' is most 3673 # certainly right. 3674 break;; 3675 *.* ) 3676 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3677 then :; else 3678 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3679 fi 3680 # We set ac_cv_exeext here because the later test for it is not 3681 # safe: cross compilers may not add the suffix if given an `-o' 3682 # argument, so we may need to know it at that point already. 3683 # Even if this section looks crufty: it has the advantage of 3684 # actually working. 3685 break;; 3686 * ) 3687 break;; 3688 esac 3689done 3690test "$ac_cv_exeext" = no && ac_cv_exeext= 3691 3692else 3693 ac_file='' 3694fi 3695if test -z "$ac_file"; then : 3696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3697$as_echo "no" >&6; } 3698$as_echo "$as_me: failed program was:" >&5 3699sed 's/^/| /' conftest.$ac_ext >&5 3700 3701{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3702$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3703as_fn_error 77 "C compiler cannot create executables 3704See \`config.log' for more details" "$LINENO" 5; } 3705else 3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3707$as_echo "yes" >&6; } 3708fi 3709{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3710$as_echo_n "checking for C compiler default output file name... " >&6; } 3711{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3712$as_echo "$ac_file" >&6; } 3713ac_exeext=$ac_cv_exeext 3714 3715rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3716ac_clean_files=$ac_clean_files_save 3717{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3718$as_echo_n "checking for suffix of executables... " >&6; } 3719if { { ac_try="$ac_link" 3720case "(($ac_try" in 3721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3722 *) ac_try_echo=$ac_try;; 3723esac 3724eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3725$as_echo "$ac_try_echo"; } >&5 3726 (eval "$ac_link") 2>&5 3727 ac_status=$? 3728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3729 test $ac_status = 0; }; then : 3730 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3731# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3732# work properly (i.e., refer to `conftest.exe'), while it won't with 3733# `rm'. 3734for ac_file in conftest.exe conftest conftest.*; do 3735 test -f "$ac_file" || continue 3736 case $ac_file in 3737 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3738 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3739 break;; 3740 * ) break;; 3741 esac 3742done 3743else 3744 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3745$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3746as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3747See \`config.log' for more details" "$LINENO" 5; } 3748fi 3749rm -f conftest conftest$ac_cv_exeext 3750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3751$as_echo "$ac_cv_exeext" >&6; } 3752 3753rm -f conftest.$ac_ext 3754EXEEXT=$ac_cv_exeext 3755ac_exeext=$EXEEXT 3756cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3757/* end confdefs.h. */ 3758#include <stdio.h> 3759int 3760main () 3761{ 3762FILE *f = fopen ("conftest.out", "w"); 3763 return ferror (f) || fclose (f) != 0; 3764 3765 ; 3766 return 0; 3767} 3768_ACEOF 3769ac_clean_files="$ac_clean_files conftest.out" 3770# Check that the compiler produces executables we can run. If not, either 3771# the compiler is broken, or we cross compile. 3772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3773$as_echo_n "checking whether we are cross compiling... " >&6; } 3774if test "$cross_compiling" != yes; then 3775 { { ac_try="$ac_link" 3776case "(($ac_try" in 3777 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3778 *) ac_try_echo=$ac_try;; 3779esac 3780eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3781$as_echo "$ac_try_echo"; } >&5 3782 (eval "$ac_link") 2>&5 3783 ac_status=$? 3784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3785 test $ac_status = 0; } 3786 if { ac_try='./conftest$ac_cv_exeext' 3787 { { case "(($ac_try" in 3788 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3789 *) ac_try_echo=$ac_try;; 3790esac 3791eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3792$as_echo "$ac_try_echo"; } >&5 3793 (eval "$ac_try") 2>&5 3794 ac_status=$? 3795 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3796 test $ac_status = 0; }; }; then 3797 cross_compiling=no 3798 else 3799 if test "$cross_compiling" = maybe; then 3800 cross_compiling=yes 3801 else 3802 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3803$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3804as_fn_error $? "cannot run C compiled programs. 3805If you meant to cross compile, use \`--host'. 3806See \`config.log' for more details" "$LINENO" 5; } 3807 fi 3808 fi 3809fi 3810{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3811$as_echo "$cross_compiling" >&6; } 3812 3813rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3814ac_clean_files=$ac_clean_files_save 3815{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3816$as_echo_n "checking for suffix of object files... " >&6; } 3817if ${ac_cv_objext+:} false; then : 3818 $as_echo_n "(cached) " >&6 3819else 3820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3821/* end confdefs.h. */ 3822 3823int 3824main () 3825{ 3826 3827 ; 3828 return 0; 3829} 3830_ACEOF 3831rm -f conftest.o conftest.obj 3832if { { ac_try="$ac_compile" 3833case "(($ac_try" in 3834 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3835 *) ac_try_echo=$ac_try;; 3836esac 3837eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3838$as_echo "$ac_try_echo"; } >&5 3839 (eval "$ac_compile") 2>&5 3840 ac_status=$? 3841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3842 test $ac_status = 0; }; then : 3843 for ac_file in conftest.o conftest.obj conftest.*; do 3844 test -f "$ac_file" || continue; 3845 case $ac_file in 3846 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3847 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3848 break;; 3849 esac 3850done 3851else 3852 $as_echo "$as_me: failed program was:" >&5 3853sed 's/^/| /' conftest.$ac_ext >&5 3854 3855{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3856$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3857as_fn_error $? "cannot compute suffix of object files: cannot compile 3858See \`config.log' for more details" "$LINENO" 5; } 3859fi 3860rm -f conftest.$ac_cv_objext conftest.$ac_ext 3861fi 3862{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3863$as_echo "$ac_cv_objext" >&6; } 3864OBJEXT=$ac_cv_objext 3865ac_objext=$OBJEXT 3866{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3867$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3868if ${ac_cv_c_compiler_gnu+:} false; then : 3869 $as_echo_n "(cached) " >&6 3870else 3871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3872/* end confdefs.h. */ 3873 3874int 3875main () 3876{ 3877#ifndef __GNUC__ 3878 choke me 3879#endif 3880 3881 ; 3882 return 0; 3883} 3884_ACEOF 3885if ac_fn_c_try_compile "$LINENO"; then : 3886 ac_compiler_gnu=yes 3887else 3888 ac_compiler_gnu=no 3889fi 3890rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3891ac_cv_c_compiler_gnu=$ac_compiler_gnu 3892 3893fi 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3895$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3896if test $ac_compiler_gnu = yes; then 3897 GCC=yes 3898else 3899 GCC= 3900fi 3901ac_test_CFLAGS=${CFLAGS+set} 3902ac_save_CFLAGS=$CFLAGS 3903{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3904$as_echo_n "checking whether $CC accepts -g... " >&6; } 3905if ${ac_cv_prog_cc_g+:} false; then : 3906 $as_echo_n "(cached) " >&6 3907else 3908 ac_save_c_werror_flag=$ac_c_werror_flag 3909 ac_c_werror_flag=yes 3910 ac_cv_prog_cc_g=no 3911 CFLAGS="-g" 3912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3913/* end confdefs.h. */ 3914 3915int 3916main () 3917{ 3918 3919 ; 3920 return 0; 3921} 3922_ACEOF 3923if ac_fn_c_try_compile "$LINENO"; then : 3924 ac_cv_prog_cc_g=yes 3925else 3926 CFLAGS="" 3927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3928/* end confdefs.h. */ 3929 3930int 3931main () 3932{ 3933 3934 ; 3935 return 0; 3936} 3937_ACEOF 3938if ac_fn_c_try_compile "$LINENO"; then : 3939 3940else 3941 ac_c_werror_flag=$ac_save_c_werror_flag 3942 CFLAGS="-g" 3943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3944/* end confdefs.h. */ 3945 3946int 3947main () 3948{ 3949 3950 ; 3951 return 0; 3952} 3953_ACEOF 3954if ac_fn_c_try_compile "$LINENO"; then : 3955 ac_cv_prog_cc_g=yes 3956fi 3957rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3958fi 3959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3960fi 3961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3962 ac_c_werror_flag=$ac_save_c_werror_flag 3963fi 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3965$as_echo "$ac_cv_prog_cc_g" >&6; } 3966if test "$ac_test_CFLAGS" = set; then 3967 CFLAGS=$ac_save_CFLAGS 3968elif test $ac_cv_prog_cc_g = yes; then 3969 if test "$GCC" = yes; then 3970 CFLAGS="-g -O2" 3971 else 3972 CFLAGS="-g" 3973 fi 3974else 3975 if test "$GCC" = yes; then 3976 CFLAGS="-O2" 3977 else 3978 CFLAGS= 3979 fi 3980fi 3981{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3982$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3983if ${ac_cv_prog_cc_c89+:} false; then : 3984 $as_echo_n "(cached) " >&6 3985else 3986 ac_cv_prog_cc_c89=no 3987ac_save_CC=$CC 3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3989/* end confdefs.h. */ 3990#include <stdarg.h> 3991#include <stdio.h> 3992struct stat; 3993/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3994struct buf { int x; }; 3995FILE * (*rcsopen) (struct buf *, struct stat *, int); 3996static char *e (p, i) 3997 char **p; 3998 int i; 3999{ 4000 return p[i]; 4001} 4002static char *f (char * (*g) (char **, int), char **p, ...) 4003{ 4004 char *s; 4005 va_list v; 4006 va_start (v,p); 4007 s = g (p, va_arg (v,int)); 4008 va_end (v); 4009 return s; 4010} 4011 4012/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4013 function prototypes and stuff, but not '\xHH' hex character constants. 4014 These don't provoke an error unfortunately, instead are silently treated 4015 as 'x'. The following induces an error, until -std is added to get 4016 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4017 array size at least. It's necessary to write '\x00'==0 to get something 4018 that's true only with -std. */ 4019int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4020 4021/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4022 inside strings and character constants. */ 4023#define FOO(x) 'x' 4024int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4025 4026int test (int i, double x); 4027struct s1 {int (*f) (int a);}; 4028struct s2 {int (*f) (double a);}; 4029int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4030int argc; 4031char **argv; 4032int 4033main () 4034{ 4035return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4036 ; 4037 return 0; 4038} 4039_ACEOF 4040for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4041 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4042do 4043 CC="$ac_save_CC $ac_arg" 4044 if ac_fn_c_try_compile "$LINENO"; then : 4045 ac_cv_prog_cc_c89=$ac_arg 4046fi 4047rm -f core conftest.err conftest.$ac_objext 4048 test "x$ac_cv_prog_cc_c89" != "xno" && break 4049done 4050rm -f conftest.$ac_ext 4051CC=$ac_save_CC 4052 4053fi 4054# AC_CACHE_VAL 4055case "x$ac_cv_prog_cc_c89" in 4056 x) 4057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4058$as_echo "none needed" >&6; } ;; 4059 xno) 4060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4061$as_echo "unsupported" >&6; } ;; 4062 *) 4063 CC="$CC $ac_cv_prog_cc_c89" 4064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4065$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4066esac 4067if test "x$ac_cv_prog_cc_c89" != xno; then : 4068 4069fi 4070 4071ac_ext=c 4072ac_cpp='$CPP $CPPFLAGS' 4073ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4074ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4075ac_compiler_gnu=$ac_cv_c_compiler_gnu 4076DEPDIR="${am__leading_dot}deps" 4077 4078ac_config_commands="$ac_config_commands depfiles" 4079 4080 4081am_make=${MAKE-make} 4082cat > confinc << 'END' 4083am__doit: 4084 @echo this is the am__doit target 4085.PHONY: am__doit 4086END 4087# If we don't find an include directive, just comment out the code. 4088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 4089$as_echo_n "checking for style of include used by $am_make... " >&6; } 4090am__include="#" 4091am__quote= 4092_am_result=none 4093# First try GNU make style include. 4094echo "include confinc" > confmf 4095# Ignore all kinds of additional output from 'make'. 4096case `$am_make -s -f confmf 2> /dev/null` in #( 4097*the\ am__doit\ target*) 4098 am__include=include 4099 am__quote= 4100 _am_result=GNU 4101 ;; 4102esac 4103# Now try BSD make style include. 4104if test "$am__include" = "#"; then 4105 echo '.include "confinc"' > confmf 4106 case `$am_make -s -f confmf 2> /dev/null` in #( 4107 *the\ am__doit\ target*) 4108 am__include=.include 4109 am__quote="\"" 4110 _am_result=BSD 4111 ;; 4112 esac 4113fi 4114 4115 4116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 4117$as_echo "$_am_result" >&6; } 4118rm -f confinc confmf 4119 4120# Check whether --enable-dependency-tracking was given. 4121if test "${enable_dependency_tracking+set}" = set; then : 4122 enableval=$enable_dependency_tracking; 4123fi 4124 4125if test "x$enable_dependency_tracking" != xno; then 4126 am_depcomp="$ac_aux_dir/depcomp" 4127 AMDEPBACKSLASH='\' 4128 am__nodep='_no' 4129fi 4130 if test "x$enable_dependency_tracking" != xno; then 4131 AMDEP_TRUE= 4132 AMDEP_FALSE='#' 4133else 4134 AMDEP_TRUE='#' 4135 AMDEP_FALSE= 4136fi 4137 4138 4139 4140depcc="$CC" am_compiler_list= 4141 4142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4143$as_echo_n "checking dependency style of $depcc... " >&6; } 4144if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4145 $as_echo_n "(cached) " >&6 4146else 4147 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4148 # We make a subdir and do the tests there. Otherwise we can end up 4149 # making bogus files that we don't know about and never remove. For 4150 # instance it was reported that on HP-UX the gcc test will end up 4151 # making a dummy file named 'D' -- because '-MD' means "put the output 4152 # in D". 4153 rm -rf conftest.dir 4154 mkdir conftest.dir 4155 # Copy depcomp to subdir because otherwise we won't find it if we're 4156 # using a relative directory. 4157 cp "$am_depcomp" conftest.dir 4158 cd conftest.dir 4159 # We will build objects and dependencies in a subdirectory because 4160 # it helps to detect inapplicable dependency modes. For instance 4161 # both Tru64's cc and ICC support -MD to output dependencies as a 4162 # side effect of compilation, but ICC will put the dependencies in 4163 # the current directory while Tru64 will put them in the object 4164 # directory. 4165 mkdir sub 4166 4167 am_cv_CC_dependencies_compiler_type=none 4168 if test "$am_compiler_list" = ""; then 4169 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4170 fi 4171 am__universal=false 4172 case " $depcc " in #( 4173 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4174 esac 4175 4176 for depmode in $am_compiler_list; do 4177 # Setup a source with many dependencies, because some compilers 4178 # like to wrap large dependency lists on column 80 (with \), and 4179 # we should not choose a depcomp mode which is confused by this. 4180 # 4181 # We need to recreate these files for each test, as the compiler may 4182 # overwrite some of them when testing with obscure command lines. 4183 # This happens at least with the AIX C compiler. 4184 : > sub/conftest.c 4185 for i in 1 2 3 4 5 6; do 4186 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4187 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4188 # Solaris 10 /bin/sh. 4189 echo '/* dummy */' > sub/conftst$i.h 4190 done 4191 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4192 4193 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4194 # mode. It turns out that the SunPro C++ compiler does not properly 4195 # handle '-M -o', and we need to detect this. Also, some Intel 4196 # versions had trouble with output in subdirs. 4197 am__obj=sub/conftest.${OBJEXT-o} 4198 am__minus_obj="-o $am__obj" 4199 case $depmode in 4200 gcc) 4201 # This depmode causes a compiler race in universal mode. 4202 test "$am__universal" = false || continue 4203 ;; 4204 nosideeffect) 4205 # After this tag, mechanisms are not by side-effect, so they'll 4206 # only be used when explicitly requested. 4207 if test "x$enable_dependency_tracking" = xyes; then 4208 continue 4209 else 4210 break 4211 fi 4212 ;; 4213 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4214 # This compiler won't grok '-c -o', but also, the minuso test has 4215 # not run yet. These depmodes are late enough in the game, and 4216 # so weak that their functioning should not be impacted. 4217 am__obj=conftest.${OBJEXT-o} 4218 am__minus_obj= 4219 ;; 4220 none) break ;; 4221 esac 4222 if depmode=$depmode \ 4223 source=sub/conftest.c object=$am__obj \ 4224 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4225 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4226 >/dev/null 2>conftest.err && 4227 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4228 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4229 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4230 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4231 # icc doesn't choke on unknown options, it will just issue warnings 4232 # or remarks (even with -Werror). So we grep stderr for any message 4233 # that says an option was ignored or not supported. 4234 # When given -MP, icc 7.0 and 7.1 complain thusly: 4235 # icc: Command line warning: ignoring option '-M'; no argument required 4236 # The diagnosis changed in icc 8.0: 4237 # icc: Command line remark: option '-MP' not supported 4238 if (grep 'ignoring option' conftest.err || 4239 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4240 am_cv_CC_dependencies_compiler_type=$depmode 4241 break 4242 fi 4243 fi 4244 done 4245 4246 cd .. 4247 rm -rf conftest.dir 4248else 4249 am_cv_CC_dependencies_compiler_type=none 4250fi 4251 4252fi 4253{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4254$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4255CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4256 4257 if 4258 test "x$enable_dependency_tracking" != xno \ 4259 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4260 am__fastdepCC_TRUE= 4261 am__fastdepCC_FALSE='#' 4262else 4263 am__fastdepCC_TRUE='#' 4264 am__fastdepCC_FALSE= 4265fi 4266 4267 4268{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 4269$as_echo_n "checking for a sed that does not truncate output... " >&6; } 4270if ${ac_cv_path_SED+:} false; then : 4271 $as_echo_n "(cached) " >&6 4272else 4273 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 4274 for ac_i in 1 2 3 4 5 6 7; do 4275 ac_script="$ac_script$as_nl$ac_script" 4276 done 4277 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 4278 { ac_script=; unset ac_script;} 4279 if test -z "$SED"; then 4280 ac_path_SED_found=false 4281 # Loop through the user's path and test for each of PROGNAME-LIST 4282 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4283for as_dir in $PATH 4284do 4285 IFS=$as_save_IFS 4286 test -z "$as_dir" && as_dir=. 4287 for ac_prog in sed gsed; do 4288 for ac_exec_ext in '' $ac_executable_extensions; do 4289 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 4290 as_fn_executable_p "$ac_path_SED" || continue 4291# Check for GNU ac_path_SED and select it if it is found. 4292 # Check for GNU $ac_path_SED 4293case `"$ac_path_SED" --version 2>&1` in 4294*GNU*) 4295 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 4296*) 4297 ac_count=0 4298 $as_echo_n 0123456789 >"conftest.in" 4299 while : 4300 do 4301 cat "conftest.in" "conftest.in" >"conftest.tmp" 4302 mv "conftest.tmp" "conftest.in" 4303 cp "conftest.in" "conftest.nl" 4304 $as_echo '' >> "conftest.nl" 4305 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 4306 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4307 as_fn_arith $ac_count + 1 && ac_count=$as_val 4308 if test $ac_count -gt ${ac_path_SED_max-0}; then 4309 # Best one so far, save it but keep looking for a better one 4310 ac_cv_path_SED="$ac_path_SED" 4311 ac_path_SED_max=$ac_count 4312 fi 4313 # 10*(2^10) chars as input seems more than enough 4314 test $ac_count -gt 10 && break 4315 done 4316 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4317esac 4318 4319 $ac_path_SED_found && break 3 4320 done 4321 done 4322 done 4323IFS=$as_save_IFS 4324 if test -z "$ac_cv_path_SED"; then 4325 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 4326 fi 4327else 4328 ac_cv_path_SED=$SED 4329fi 4330 4331fi 4332{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 4333$as_echo "$ac_cv_path_SED" >&6; } 4334 SED="$ac_cv_path_SED" 4335 rm -f conftest.sed 4336 4337test -z "$SED" && SED=sed 4338Xsed="$SED -e 1s/^X//" 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4351$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4352if ${ac_cv_path_GREP+:} false; then : 4353 $as_echo_n "(cached) " >&6 4354else 4355 if test -z "$GREP"; then 4356 ac_path_GREP_found=false 4357 # Loop through the user's path and test for each of PROGNAME-LIST 4358 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4359for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4360do 4361 IFS=$as_save_IFS 4362 test -z "$as_dir" && as_dir=. 4363 for ac_prog in grep ggrep; do 4364 for ac_exec_ext in '' $ac_executable_extensions; do 4365 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4366 as_fn_executable_p "$ac_path_GREP" || continue 4367# Check for GNU ac_path_GREP and select it if it is found. 4368 # Check for GNU $ac_path_GREP 4369case `"$ac_path_GREP" --version 2>&1` in 4370*GNU*) 4371 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4372*) 4373 ac_count=0 4374 $as_echo_n 0123456789 >"conftest.in" 4375 while : 4376 do 4377 cat "conftest.in" "conftest.in" >"conftest.tmp" 4378 mv "conftest.tmp" "conftest.in" 4379 cp "conftest.in" "conftest.nl" 4380 $as_echo 'GREP' >> "conftest.nl" 4381 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4382 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4383 as_fn_arith $ac_count + 1 && ac_count=$as_val 4384 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4385 # Best one so far, save it but keep looking for a better one 4386 ac_cv_path_GREP="$ac_path_GREP" 4387 ac_path_GREP_max=$ac_count 4388 fi 4389 # 10*(2^10) chars as input seems more than enough 4390 test $ac_count -gt 10 && break 4391 done 4392 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4393esac 4394 4395 $ac_path_GREP_found && break 3 4396 done 4397 done 4398 done 4399IFS=$as_save_IFS 4400 if test -z "$ac_cv_path_GREP"; then 4401 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4402 fi 4403else 4404 ac_cv_path_GREP=$GREP 4405fi 4406 4407fi 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4409$as_echo "$ac_cv_path_GREP" >&6; } 4410 GREP="$ac_cv_path_GREP" 4411 4412 4413{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4414$as_echo_n "checking for egrep... " >&6; } 4415if ${ac_cv_path_EGREP+:} false; then : 4416 $as_echo_n "(cached) " >&6 4417else 4418 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4419 then ac_cv_path_EGREP="$GREP -E" 4420 else 4421 if test -z "$EGREP"; then 4422 ac_path_EGREP_found=false 4423 # Loop through the user's path and test for each of PROGNAME-LIST 4424 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4425for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4426do 4427 IFS=$as_save_IFS 4428 test -z "$as_dir" && as_dir=. 4429 for ac_prog in egrep; do 4430 for ac_exec_ext in '' $ac_executable_extensions; do 4431 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4432 as_fn_executable_p "$ac_path_EGREP" || continue 4433# Check for GNU ac_path_EGREP and select it if it is found. 4434 # Check for GNU $ac_path_EGREP 4435case `"$ac_path_EGREP" --version 2>&1` in 4436*GNU*) 4437 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4438*) 4439 ac_count=0 4440 $as_echo_n 0123456789 >"conftest.in" 4441 while : 4442 do 4443 cat "conftest.in" "conftest.in" >"conftest.tmp" 4444 mv "conftest.tmp" "conftest.in" 4445 cp "conftest.in" "conftest.nl" 4446 $as_echo 'EGREP' >> "conftest.nl" 4447 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4448 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4449 as_fn_arith $ac_count + 1 && ac_count=$as_val 4450 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4451 # Best one so far, save it but keep looking for a better one 4452 ac_cv_path_EGREP="$ac_path_EGREP" 4453 ac_path_EGREP_max=$ac_count 4454 fi 4455 # 10*(2^10) chars as input seems more than enough 4456 test $ac_count -gt 10 && break 4457 done 4458 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4459esac 4460 4461 $ac_path_EGREP_found && break 3 4462 done 4463 done 4464 done 4465IFS=$as_save_IFS 4466 if test -z "$ac_cv_path_EGREP"; then 4467 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4468 fi 4469else 4470 ac_cv_path_EGREP=$EGREP 4471fi 4472 4473 fi 4474fi 4475{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4476$as_echo "$ac_cv_path_EGREP" >&6; } 4477 EGREP="$ac_cv_path_EGREP" 4478 4479 4480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 4481$as_echo_n "checking for fgrep... " >&6; } 4482if ${ac_cv_path_FGREP+:} false; then : 4483 $as_echo_n "(cached) " >&6 4484else 4485 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 4486 then ac_cv_path_FGREP="$GREP -F" 4487 else 4488 if test -z "$FGREP"; then 4489 ac_path_FGREP_found=false 4490 # Loop through the user's path and test for each of PROGNAME-LIST 4491 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_prog in fgrep; do 4497 for ac_exec_ext in '' $ac_executable_extensions; do 4498 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 4499 as_fn_executable_p "$ac_path_FGREP" || continue 4500# Check for GNU ac_path_FGREP and select it if it is found. 4501 # Check for GNU $ac_path_FGREP 4502case `"$ac_path_FGREP" --version 2>&1` in 4503*GNU*) 4504 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 4505*) 4506 ac_count=0 4507 $as_echo_n 0123456789 >"conftest.in" 4508 while : 4509 do 4510 cat "conftest.in" "conftest.in" >"conftest.tmp" 4511 mv "conftest.tmp" "conftest.in" 4512 cp "conftest.in" "conftest.nl" 4513 $as_echo 'FGREP' >> "conftest.nl" 4514 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 4515 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4516 as_fn_arith $ac_count + 1 && ac_count=$as_val 4517 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 4518 # Best one so far, save it but keep looking for a better one 4519 ac_cv_path_FGREP="$ac_path_FGREP" 4520 ac_path_FGREP_max=$ac_count 4521 fi 4522 # 10*(2^10) chars as input seems more than enough 4523 test $ac_count -gt 10 && break 4524 done 4525 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4526esac 4527 4528 $ac_path_FGREP_found && break 3 4529 done 4530 done 4531 done 4532IFS=$as_save_IFS 4533 if test -z "$ac_cv_path_FGREP"; then 4534 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4535 fi 4536else 4537 ac_cv_path_FGREP=$FGREP 4538fi 4539 4540 fi 4541fi 4542{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 4543$as_echo "$ac_cv_path_FGREP" >&6; } 4544 FGREP="$ac_cv_path_FGREP" 4545 4546 4547test -z "$GREP" && GREP=grep 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 4566ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 4567ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 4568 4569{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 4570$as_echo_n "checking how to print strings... " >&6; } 4571# Test print first, because it will be a builtin if present. 4572if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 4573 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 4574 ECHO='print -r --' 4575elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 4576 ECHO='printf %s\n' 4577else 4578 # Use this function as a fallback that always works. 4579 func_fallback_echo () 4580 { 4581 eval 'cat <<_LTECHO_EOF 4582$1 4583_LTECHO_EOF' 4584 } 4585 ECHO='func_fallback_echo' 4586fi 4587 4588# func_echo_all arg... 4589# Invoke $ECHO with all args, space-separated. 4590func_echo_all () 4591{ 4592 $ECHO "" 4593} 4594 4595case "$ECHO" in 4596 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 4597$as_echo "printf" >&6; } ;; 4598 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 4599$as_echo "print -r" >&6; } ;; 4600 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 4601$as_echo "cat" >&6; } ;; 4602esac 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619# Check whether --with-gnu-ld was given. 4620if test "${with_gnu_ld+set}" = set; then : 4621 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 4622else 4623 with_gnu_ld=no 4624fi 4625 4626ac_prog=ld 4627if test "$GCC" = yes; then 4628 # Check if gcc -print-prog-name=ld gives a path. 4629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 4630$as_echo_n "checking for ld used by $CC... " >&6; } 4631 case $host in 4632 *-*-mingw*) 4633 # gcc leaves a trailing carriage return which upsets mingw 4634 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 4635 *) 4636 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 4637 esac 4638 case $ac_prog in 4639 # Accept absolute paths. 4640 [\\/]* | ?:[\\/]*) 4641 re_direlt='/[^/][^/]*/\.\./' 4642 # Canonicalize the pathname of ld 4643 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 4644 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 4645 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 4646 done 4647 test -z "$LD" && LD="$ac_prog" 4648 ;; 4649 "") 4650 # If it fails, then pretend we aren't using GCC. 4651 ac_prog=ld 4652 ;; 4653 *) 4654 # If it is relative, then search for the first ld in PATH. 4655 with_gnu_ld=unknown 4656 ;; 4657 esac 4658elif test "$with_gnu_ld" = yes; then 4659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 4660$as_echo_n "checking for GNU ld... " >&6; } 4661else 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 4663$as_echo_n "checking for non-GNU ld... " >&6; } 4664fi 4665if ${lt_cv_path_LD+:} false; then : 4666 $as_echo_n "(cached) " >&6 4667else 4668 if test -z "$LD"; then 4669 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4670 for ac_dir in $PATH; do 4671 IFS="$lt_save_ifs" 4672 test -z "$ac_dir" && ac_dir=. 4673 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4674 lt_cv_path_LD="$ac_dir/$ac_prog" 4675 # Check to see if the program is GNU ld. I'd rather use --version, 4676 # but apparently some variants of GNU ld only accept -v. 4677 # Break only if it was the GNU/non-GNU ld that we prefer. 4678 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4679 *GNU* | *'with BFD'*) 4680 test "$with_gnu_ld" != no && break 4681 ;; 4682 *) 4683 test "$with_gnu_ld" != yes && break 4684 ;; 4685 esac 4686 fi 4687 done 4688 IFS="$lt_save_ifs" 4689else 4690 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4691fi 4692fi 4693 4694LD="$lt_cv_path_LD" 4695if test -n "$LD"; then 4696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 4697$as_echo "$LD" >&6; } 4698else 4699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4700$as_echo "no" >&6; } 4701fi 4702test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 4703{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 4704$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 4705if ${lt_cv_prog_gnu_ld+:} false; then : 4706 $as_echo_n "(cached) " >&6 4707else 4708 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4709case `$LD -v 2>&1 </dev/null` in 4710*GNU* | *'with BFD'*) 4711 lt_cv_prog_gnu_ld=yes 4712 ;; 4713*) 4714 lt_cv_prog_gnu_ld=no 4715 ;; 4716esac 4717fi 4718{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 4719$as_echo "$lt_cv_prog_gnu_ld" >&6; } 4720with_gnu_ld=$lt_cv_prog_gnu_ld 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731case `pwd` in 4732 *\ * | *\ *) 4733 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 4734$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 4735esac 4736 4737 4738 4739macro_version='2.4.2' 4740macro_revision='1.3337' 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754ltmain="$ac_aux_dir/ltmain.sh" 4755 4756# Backslashify metacharacters that are still active within 4757# double-quoted strings. 4758sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 4759 4760# Same as above, but do not quote variable references. 4761double_quote_subst='s/\(["`\\]\)/\\\1/g' 4762 4763# Sed substitution to delay expansion of an escaped shell variable in a 4764# double_quote_subst'ed string. 4765delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 4766 4767# Sed substitution to delay expansion of an escaped single quote. 4768delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 4769 4770# Sed substitution to avoid accidental globbing in evaled expressions 4771no_glob_subst='s/\*/\\\*/g' 4772 4773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 4774$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 4775if ${lt_cv_path_NM+:} false; then : 4776 $as_echo_n "(cached) " >&6 4777else 4778 if test -n "$NM"; then 4779 # Let the user override the test. 4780 lt_cv_path_NM="$NM" 4781else 4782 lt_nm_to_check="${ac_tool_prefix}nm" 4783 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4784 lt_nm_to_check="$lt_nm_to_check nm" 4785 fi 4786 for lt_tmp_nm in $lt_nm_to_check; do 4787 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4788 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4789 IFS="$lt_save_ifs" 4790 test -z "$ac_dir" && ac_dir=. 4791 tmp_nm="$ac_dir/$lt_tmp_nm" 4792 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4793 # Check to see if the nm accepts a BSD-compat flag. 4794 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4795 # nm: unknown option "B" ignored 4796 # Tru64's nm complains that /dev/null is an invalid object file 4797 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4798 */dev/null* | *'Invalid file or object type'*) 4799 lt_cv_path_NM="$tmp_nm -B" 4800 break 4801 ;; 4802 *) 4803 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4804 */dev/null*) 4805 lt_cv_path_NM="$tmp_nm -p" 4806 break 4807 ;; 4808 *) 4809 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4810 continue # so that we can try to find one that supports BSD flags 4811 ;; 4812 esac 4813 ;; 4814 esac 4815 fi 4816 done 4817 IFS="$lt_save_ifs" 4818 done 4819 : ${lt_cv_path_NM=no} 4820fi 4821fi 4822{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 4823$as_echo "$lt_cv_path_NM" >&6; } 4824if test "$lt_cv_path_NM" != "no"; then 4825 NM="$lt_cv_path_NM" 4826else 4827 # Didn't find any BSD compatible name lister, look for dumpbin. 4828 if test -n "$DUMPBIN"; then : 4829 # Let the user override the test. 4830 else 4831 if test -n "$ac_tool_prefix"; then 4832 for ac_prog in dumpbin "link -dump" 4833 do 4834 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4835set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4836{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4837$as_echo_n "checking for $ac_word... " >&6; } 4838if ${ac_cv_prog_DUMPBIN+:} false; then : 4839 $as_echo_n "(cached) " >&6 4840else 4841 if test -n "$DUMPBIN"; then 4842 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4843else 4844as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4845for as_dir in $PATH 4846do 4847 IFS=$as_save_IFS 4848 test -z "$as_dir" && as_dir=. 4849 for ac_exec_ext in '' $ac_executable_extensions; do 4850 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4851 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4852 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4853 break 2 4854 fi 4855done 4856 done 4857IFS=$as_save_IFS 4858 4859fi 4860fi 4861DUMPBIN=$ac_cv_prog_DUMPBIN 4862if test -n "$DUMPBIN"; then 4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4864$as_echo "$DUMPBIN" >&6; } 4865else 4866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4867$as_echo "no" >&6; } 4868fi 4869 4870 4871 test -n "$DUMPBIN" && break 4872 done 4873fi 4874if test -z "$DUMPBIN"; then 4875 ac_ct_DUMPBIN=$DUMPBIN 4876 for ac_prog in dumpbin "link -dump" 4877do 4878 # Extract the first word of "$ac_prog", so it can be a program name with args. 4879set dummy $ac_prog; ac_word=$2 4880{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4881$as_echo_n "checking for $ac_word... " >&6; } 4882if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4883 $as_echo_n "(cached) " >&6 4884else 4885 if test -n "$ac_ct_DUMPBIN"; then 4886 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4887else 4888as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4889for as_dir in $PATH 4890do 4891 IFS=$as_save_IFS 4892 test -z "$as_dir" && as_dir=. 4893 for ac_exec_ext in '' $ac_executable_extensions; do 4894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4895 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4897 break 2 4898 fi 4899done 4900 done 4901IFS=$as_save_IFS 4902 4903fi 4904fi 4905ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4906if test -n "$ac_ct_DUMPBIN"; then 4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4908$as_echo "$ac_ct_DUMPBIN" >&6; } 4909else 4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4911$as_echo "no" >&6; } 4912fi 4913 4914 4915 test -n "$ac_ct_DUMPBIN" && break 4916done 4917 4918 if test "x$ac_ct_DUMPBIN" = x; then 4919 DUMPBIN=":" 4920 else 4921 case $cross_compiling:$ac_tool_warned in 4922yes:) 4923{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4924$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4925ac_tool_warned=yes ;; 4926esac 4927 DUMPBIN=$ac_ct_DUMPBIN 4928 fi 4929fi 4930 4931 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 4932 *COFF*) 4933 DUMPBIN="$DUMPBIN -symbols" 4934 ;; 4935 *) 4936 DUMPBIN=: 4937 ;; 4938 esac 4939 fi 4940 4941 if test "$DUMPBIN" != ":"; then 4942 NM="$DUMPBIN" 4943 fi 4944fi 4945test -z "$NM" && NM=nm 4946 4947 4948 4949 4950 4951 4952{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4953$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4954if ${lt_cv_nm_interface+:} false; then : 4955 $as_echo_n "(cached) " >&6 4956else 4957 lt_cv_nm_interface="BSD nm" 4958 echo "int some_variable = 0;" > conftest.$ac_ext 4959 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4960 (eval "$ac_compile" 2>conftest.err) 4961 cat conftest.err >&5 4962 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4963 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4964 cat conftest.err >&5 4965 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4966 cat conftest.out >&5 4967 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4968 lt_cv_nm_interface="MS dumpbin" 4969 fi 4970 rm -f conftest* 4971fi 4972{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4973$as_echo "$lt_cv_nm_interface" >&6; } 4974 4975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4976$as_echo_n "checking whether ln -s works... " >&6; } 4977LN_S=$as_ln_s 4978if test "$LN_S" = "ln -s"; then 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4980$as_echo "yes" >&6; } 4981else 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4983$as_echo "no, using $LN_S" >&6; } 4984fi 4985 4986# find the maximum length of command line arguments 4987{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4988$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4989if ${lt_cv_sys_max_cmd_len+:} false; then : 4990 $as_echo_n "(cached) " >&6 4991else 4992 i=0 4993 teststring="ABCD" 4994 4995 case $build_os in 4996 msdosdjgpp*) 4997 # On DJGPP, this test can blow up pretty badly due to problems in libc 4998 # (any single argument exceeding 2000 bytes causes a buffer overrun 4999 # during glob expansion). Even if it were fixed, the result of this 5000 # check would be larger than it should be. 5001 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5002 ;; 5003 5004 gnu*) 5005 # Under GNU Hurd, this test is not required because there is 5006 # no limit to the length of command line arguments. 5007 # Libtool will interpret -1 as no limit whatsoever 5008 lt_cv_sys_max_cmd_len=-1; 5009 ;; 5010 5011 cygwin* | mingw* | cegcc*) 5012 # On Win9x/ME, this test blows up -- it succeeds, but takes 5013 # about 5 minutes as the teststring grows exponentially. 5014 # Worse, since 9x/ME are not pre-emptively multitasking, 5015 # you end up with a "frozen" computer, even though with patience 5016 # the test eventually succeeds (with a max line length of 256k). 5017 # Instead, let's just punt: use the minimum linelength reported by 5018 # all of the supported platforms: 8192 (on NT/2K/XP). 5019 lt_cv_sys_max_cmd_len=8192; 5020 ;; 5021 5022 mint*) 5023 # On MiNT this can take a long time and run out of memory. 5024 lt_cv_sys_max_cmd_len=8192; 5025 ;; 5026 5027 amigaos*) 5028 # On AmigaOS with pdksh, this test takes hours, literally. 5029 # So we just punt and use a minimum line length of 8192. 5030 lt_cv_sys_max_cmd_len=8192; 5031 ;; 5032 5033 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5034 # This has been around since 386BSD, at least. Likely further. 5035 if test -x /sbin/sysctl; then 5036 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5037 elif test -x /usr/sbin/sysctl; then 5038 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5039 else 5040 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5041 fi 5042 # And add a safety zone 5043 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5044 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5045 ;; 5046 5047 interix*) 5048 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5049 lt_cv_sys_max_cmd_len=196608 5050 ;; 5051 5052 os2*) 5053 # The test takes a long time on OS/2. 5054 lt_cv_sys_max_cmd_len=8192 5055 ;; 5056 5057 osf*) 5058 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5059 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5060 # nice to cause kernel panics so lets avoid the loop below. 5061 # First set a reasonable default. 5062 lt_cv_sys_max_cmd_len=16384 5063 # 5064 if test -x /sbin/sysconfig; then 5065 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5066 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5067 esac 5068 fi 5069 ;; 5070 sco3.2v5*) 5071 lt_cv_sys_max_cmd_len=102400 5072 ;; 5073 sysv5* | sco5v6* | sysv4.2uw2*) 5074 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5075 if test -n "$kargmax"; then 5076 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5077 else 5078 lt_cv_sys_max_cmd_len=32768 5079 fi 5080 ;; 5081 *) 5082 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5083 if test -n "$lt_cv_sys_max_cmd_len"; then 5084 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5085 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5086 else 5087 # Make teststring a little bigger before we do anything with it. 5088 # a 1K string should be a reasonable start. 5089 for i in 1 2 3 4 5 6 7 8 ; do 5090 teststring=$teststring$teststring 5091 done 5092 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5093 # If test is not a shell built-in, we'll probably end up computing a 5094 # maximum length that is only half of the actual maximum length, but 5095 # we can't tell. 5096 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \ 5097 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5098 test $i != 17 # 1/2 MB should be enough 5099 do 5100 i=`expr $i + 1` 5101 teststring=$teststring$teststring 5102 done 5103 # Only check the string length outside the loop. 5104 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5105 teststring= 5106 # Add a significant safety factor because C++ compilers can tack on 5107 # massive amounts of additional arguments before passing them to the 5108 # linker. It appears as though 1/2 is a usable value. 5109 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5110 fi 5111 ;; 5112 esac 5113 5114fi 5115 5116if test -n $lt_cv_sys_max_cmd_len ; then 5117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5118$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5119else 5120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5121$as_echo "none" >&6; } 5122fi 5123max_cmd_len=$lt_cv_sys_max_cmd_len 5124 5125 5126 5127 5128 5129 5130: ${CP="cp -f"} 5131: ${MV="mv -f"} 5132: ${RM="rm -f"} 5133 5134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5135$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5136# Try some XSI features 5137xsi_shell=no 5138( _lt_dummy="a/b/c" 5139 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \ 5140 = c,a/b,b/c, \ 5141 && eval 'test $(( 1 + 1 )) -eq 2 \ 5142 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5143 && xsi_shell=yes 5144{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5145$as_echo "$xsi_shell" >&6; } 5146 5147 5148{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5149$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5150lt_shell_append=no 5151( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5152 >/dev/null 2>&1 \ 5153 && lt_shell_append=yes 5154{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5155$as_echo "$lt_shell_append" >&6; } 5156 5157 5158if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5159 lt_unset=unset 5160else 5161 lt_unset=false 5162fi 5163 5164 5165 5166 5167 5168# test EBCDIC or ASCII 5169case `echo X|tr X '\101'` in 5170 A) # ASCII based system 5171 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5172 lt_SP2NL='tr \040 \012' 5173 lt_NL2SP='tr \015\012 \040\040' 5174 ;; 5175 *) # EBCDIC based system 5176 lt_SP2NL='tr \100 \n' 5177 lt_NL2SP='tr \r\n \100\100' 5178 ;; 5179esac 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 5190$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 5191if ${lt_cv_to_host_file_cmd+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 case $host in 5195 *-*-mingw* ) 5196 case $build in 5197 *-*-mingw* ) # actually msys 5198 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 5199 ;; 5200 *-*-cygwin* ) 5201 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 5202 ;; 5203 * ) # otherwise, assume *nix 5204 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 5205 ;; 5206 esac 5207 ;; 5208 *-*-cygwin* ) 5209 case $build in 5210 *-*-mingw* ) # actually msys 5211 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 5212 ;; 5213 *-*-cygwin* ) 5214 lt_cv_to_host_file_cmd=func_convert_file_noop 5215 ;; 5216 * ) # otherwise, assume *nix 5217 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 5218 ;; 5219 esac 5220 ;; 5221 * ) # unhandled hosts (and "normal" native builds) 5222 lt_cv_to_host_file_cmd=func_convert_file_noop 5223 ;; 5224esac 5225 5226fi 5227 5228to_host_file_cmd=$lt_cv_to_host_file_cmd 5229{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 5230$as_echo "$lt_cv_to_host_file_cmd" >&6; } 5231 5232 5233 5234 5235 5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 5237$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 5238if ${lt_cv_to_tool_file_cmd+:} false; then : 5239 $as_echo_n "(cached) " >&6 5240else 5241 #assume ordinary cross tools, or native build. 5242lt_cv_to_tool_file_cmd=func_convert_file_noop 5243case $host in 5244 *-*-mingw* ) 5245 case $build in 5246 *-*-mingw* ) # actually msys 5247 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 5248 ;; 5249 esac 5250 ;; 5251esac 5252 5253fi 5254 5255to_tool_file_cmd=$lt_cv_to_tool_file_cmd 5256{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 5257$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 5258 5259 5260 5261 5262 5263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5264$as_echo_n "checking for $LD option to reload object files... " >&6; } 5265if ${lt_cv_ld_reload_flag+:} false; then : 5266 $as_echo_n "(cached) " >&6 5267else 5268 lt_cv_ld_reload_flag='-r' 5269fi 5270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5271$as_echo "$lt_cv_ld_reload_flag" >&6; } 5272reload_flag=$lt_cv_ld_reload_flag 5273case $reload_flag in 5274"" | " "*) ;; 5275*) reload_flag=" $reload_flag" ;; 5276esac 5277reload_cmds='$LD$reload_flag -o $output$reload_objs' 5278case $host_os in 5279 cygwin* | mingw* | pw32* | cegcc*) 5280 if test "$GCC" != yes; then 5281 reload_cmds=false 5282 fi 5283 ;; 5284 darwin*) 5285 if test "$GCC" = yes; then 5286 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5287 else 5288 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5289 fi 5290 ;; 5291esac 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301if test -n "$ac_tool_prefix"; then 5302 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 5303set dummy ${ac_tool_prefix}objdump; ac_word=$2 5304{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5305$as_echo_n "checking for $ac_word... " >&6; } 5306if ${ac_cv_prog_OBJDUMP+:} false; then : 5307 $as_echo_n "(cached) " >&6 5308else 5309 if test -n "$OBJDUMP"; then 5310 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 5311else 5312as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5313for as_dir in $PATH 5314do 5315 IFS=$as_save_IFS 5316 test -z "$as_dir" && as_dir=. 5317 for ac_exec_ext in '' $ac_executable_extensions; do 5318 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5319 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 5320 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5321 break 2 5322 fi 5323done 5324 done 5325IFS=$as_save_IFS 5326 5327fi 5328fi 5329OBJDUMP=$ac_cv_prog_OBJDUMP 5330if test -n "$OBJDUMP"; then 5331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 5332$as_echo "$OBJDUMP" >&6; } 5333else 5334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5335$as_echo "no" >&6; } 5336fi 5337 5338 5339fi 5340if test -z "$ac_cv_prog_OBJDUMP"; then 5341 ac_ct_OBJDUMP=$OBJDUMP 5342 # Extract the first word of "objdump", so it can be a program name with args. 5343set dummy objdump; ac_word=$2 5344{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5345$as_echo_n "checking for $ac_word... " >&6; } 5346if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 5347 $as_echo_n "(cached) " >&6 5348else 5349 if test -n "$ac_ct_OBJDUMP"; then 5350 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 5351else 5352as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5353for as_dir in $PATH 5354do 5355 IFS=$as_save_IFS 5356 test -z "$as_dir" && as_dir=. 5357 for ac_exec_ext in '' $ac_executable_extensions; do 5358 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5359 ac_cv_prog_ac_ct_OBJDUMP="objdump" 5360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5361 break 2 5362 fi 5363done 5364 done 5365IFS=$as_save_IFS 5366 5367fi 5368fi 5369ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 5370if test -n "$ac_ct_OBJDUMP"; then 5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 5372$as_echo "$ac_ct_OBJDUMP" >&6; } 5373else 5374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5375$as_echo "no" >&6; } 5376fi 5377 5378 if test "x$ac_ct_OBJDUMP" = x; then 5379 OBJDUMP="false" 5380 else 5381 case $cross_compiling:$ac_tool_warned in 5382yes:) 5383{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5384$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5385ac_tool_warned=yes ;; 5386esac 5387 OBJDUMP=$ac_ct_OBJDUMP 5388 fi 5389else 5390 OBJDUMP="$ac_cv_prog_OBJDUMP" 5391fi 5392 5393test -z "$OBJDUMP" && OBJDUMP=objdump 5394 5395 5396 5397 5398 5399 5400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 5401$as_echo_n "checking how to recognize dependent libraries... " >&6; } 5402if ${lt_cv_deplibs_check_method+:} false; then : 5403 $as_echo_n "(cached) " >&6 5404else 5405 lt_cv_file_magic_cmd='$MAGIC_CMD' 5406lt_cv_file_magic_test_file= 5407lt_cv_deplibs_check_method='unknown' 5408# Need to set the preceding variable on all platforms that support 5409# interlibrary dependencies. 5410# 'none' -- dependencies not supported. 5411# `unknown' -- same as none, but documents that we really don't know. 5412# 'pass_all' -- all dependencies passed with no checks. 5413# 'test_compile' -- check by making test program. 5414# 'file_magic [[regex]]' -- check by looking for files in library path 5415# which responds to the $file_magic_cmd with a given extended regex. 5416# If you have `file' or equivalent on your system and you're not sure 5417# whether `pass_all' will *always* work, you probably want this one. 5418 5419case $host_os in 5420aix[4-9]*) 5421 lt_cv_deplibs_check_method=pass_all 5422 ;; 5423 5424beos*) 5425 lt_cv_deplibs_check_method=pass_all 5426 ;; 5427 5428bsdi[45]*) 5429 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 5430 lt_cv_file_magic_cmd='/usr/bin/file -L' 5431 lt_cv_file_magic_test_file=/shlib/libc.so 5432 ;; 5433 5434cygwin*) 5435 # func_win32_libid is a shell function defined in ltmain.sh 5436 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5437 lt_cv_file_magic_cmd='func_win32_libid' 5438 ;; 5439 5440mingw* | pw32*) 5441 # Base MSYS/MinGW do not provide the 'file' command needed by 5442 # func_win32_libid shell function, so use a weaker test based on 'objdump', 5443 # unless we find 'file', for example because we are cross-compiling. 5444 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 5445 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 5446 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 5447 lt_cv_file_magic_cmd='func_win32_libid' 5448 else 5449 # Keep this pattern in sync with the one in func_win32_libid. 5450 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 5451 lt_cv_file_magic_cmd='$OBJDUMP -f' 5452 fi 5453 ;; 5454 5455cegcc*) 5456 # use the weaker test based on 'objdump'. See mingw*. 5457 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 5458 lt_cv_file_magic_cmd='$OBJDUMP -f' 5459 ;; 5460 5461darwin* | rhapsody*) 5462 lt_cv_deplibs_check_method=pass_all 5463 ;; 5464 5465freebsd* | dragonfly*) 5466 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5467 case $host_cpu in 5468 i*86 ) 5469 # Not sure whether the presence of OpenBSD here was a mistake. 5470 # Let's accept both of them until this is cleared up. 5471 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 5472 lt_cv_file_magic_cmd=/usr/bin/file 5473 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 5474 ;; 5475 esac 5476 else 5477 lt_cv_deplibs_check_method=pass_all 5478 fi 5479 ;; 5480 5481gnu*) 5482 lt_cv_deplibs_check_method=pass_all 5483 ;; 5484 5485haiku*) 5486 lt_cv_deplibs_check_method=pass_all 5487 ;; 5488 5489hpux10.20* | hpux11*) 5490 lt_cv_file_magic_cmd=/usr/bin/file 5491 case $host_cpu in 5492 ia64*) 5493 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 5494 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 5495 ;; 5496 hppa*64*) 5497 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]' 5498 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 5499 ;; 5500 *) 5501 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 5502 lt_cv_file_magic_test_file=/usr/lib/libc.sl 5503 ;; 5504 esac 5505 ;; 5506 5507interix[3-9]*) 5508 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 5509 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 5510 ;; 5511 5512irix5* | irix6* | nonstopux*) 5513 case $LD in 5514 *-32|*"-32 ") libmagic=32-bit;; 5515 *-n32|*"-n32 ") libmagic=N32;; 5516 *-64|*"-64 ") libmagic=64-bit;; 5517 *) libmagic=never-match;; 5518 esac 5519 lt_cv_deplibs_check_method=pass_all 5520 ;; 5521 5522# This must be glibc/ELF. 5523linux* | k*bsd*-gnu | kopensolaris*-gnu) 5524 lt_cv_deplibs_check_method=pass_all 5525 ;; 5526 5527netbsd*) 5528 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 5529 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5530 else 5531 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 5532 fi 5533 ;; 5534 5535newos6*) 5536 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 5537 lt_cv_file_magic_cmd=/usr/bin/file 5538 lt_cv_file_magic_test_file=/usr/lib/libnls.so 5539 ;; 5540 5541*nto* | *qnx*) 5542 lt_cv_deplibs_check_method=pass_all 5543 ;; 5544 5545openbsd*) 5546 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 5547 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 5548 else 5549 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 5550 fi 5551 ;; 5552 5553osf3* | osf4* | osf5*) 5554 lt_cv_deplibs_check_method=pass_all 5555 ;; 5556 5557rdos*) 5558 lt_cv_deplibs_check_method=pass_all 5559 ;; 5560 5561solaris*) 5562 lt_cv_deplibs_check_method=pass_all 5563 ;; 5564 5565sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 5566 lt_cv_deplibs_check_method=pass_all 5567 ;; 5568 5569sysv4 | sysv4.3*) 5570 case $host_vendor in 5571 motorola) 5572 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]' 5573 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 5574 ;; 5575 ncr) 5576 lt_cv_deplibs_check_method=pass_all 5577 ;; 5578 sequent) 5579 lt_cv_file_magic_cmd='/bin/file' 5580 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 5581 ;; 5582 sni) 5583 lt_cv_file_magic_cmd='/bin/file' 5584 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 5585 lt_cv_file_magic_test_file=/lib/libc.so 5586 ;; 5587 siemens) 5588 lt_cv_deplibs_check_method=pass_all 5589 ;; 5590 pc) 5591 lt_cv_deplibs_check_method=pass_all 5592 ;; 5593 esac 5594 ;; 5595 5596tpf*) 5597 lt_cv_deplibs_check_method=pass_all 5598 ;; 5599esac 5600 5601fi 5602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 5603$as_echo "$lt_cv_deplibs_check_method" >&6; } 5604 5605file_magic_glob= 5606want_nocaseglob=no 5607if test "$build" = "$host"; then 5608 case $host_os in 5609 mingw* | pw32*) 5610 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 5611 want_nocaseglob=yes 5612 else 5613 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 5614 fi 5615 ;; 5616 esac 5617fi 5618 5619file_magic_cmd=$lt_cv_file_magic_cmd 5620deplibs_check_method=$lt_cv_deplibs_check_method 5621test -z "$deplibs_check_method" && deplibs_check_method=unknown 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644if test -n "$ac_tool_prefix"; then 5645 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 5646set dummy ${ac_tool_prefix}dlltool; ac_word=$2 5647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5648$as_echo_n "checking for $ac_word... " >&6; } 5649if ${ac_cv_prog_DLLTOOL+:} false; then : 5650 $as_echo_n "(cached) " >&6 5651else 5652 if test -n "$DLLTOOL"; then 5653 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 5654else 5655as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5656for as_dir in $PATH 5657do 5658 IFS=$as_save_IFS 5659 test -z "$as_dir" && as_dir=. 5660 for ac_exec_ext in '' $ac_executable_extensions; do 5661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5662 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 5663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5664 break 2 5665 fi 5666done 5667 done 5668IFS=$as_save_IFS 5669 5670fi 5671fi 5672DLLTOOL=$ac_cv_prog_DLLTOOL 5673if test -n "$DLLTOOL"; then 5674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 5675$as_echo "$DLLTOOL" >&6; } 5676else 5677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5678$as_echo "no" >&6; } 5679fi 5680 5681 5682fi 5683if test -z "$ac_cv_prog_DLLTOOL"; then 5684 ac_ct_DLLTOOL=$DLLTOOL 5685 # Extract the first word of "dlltool", so it can be a program name with args. 5686set dummy dlltool; ac_word=$2 5687{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5688$as_echo_n "checking for $ac_word... " >&6; } 5689if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 5690 $as_echo_n "(cached) " >&6 5691else 5692 if test -n "$ac_ct_DLLTOOL"; then 5693 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 5694else 5695as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5696for as_dir in $PATH 5697do 5698 IFS=$as_save_IFS 5699 test -z "$as_dir" && as_dir=. 5700 for ac_exec_ext in '' $ac_executable_extensions; do 5701 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5702 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 5703 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5704 break 2 5705 fi 5706done 5707 done 5708IFS=$as_save_IFS 5709 5710fi 5711fi 5712ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 5713if test -n "$ac_ct_DLLTOOL"; then 5714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 5715$as_echo "$ac_ct_DLLTOOL" >&6; } 5716else 5717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5718$as_echo "no" >&6; } 5719fi 5720 5721 if test "x$ac_ct_DLLTOOL" = x; then 5722 DLLTOOL="false" 5723 else 5724 case $cross_compiling:$ac_tool_warned in 5725yes:) 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5727$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5728ac_tool_warned=yes ;; 5729esac 5730 DLLTOOL=$ac_ct_DLLTOOL 5731 fi 5732else 5733 DLLTOOL="$ac_cv_prog_DLLTOOL" 5734fi 5735 5736test -z "$DLLTOOL" && DLLTOOL=dlltool 5737 5738 5739 5740 5741 5742 5743 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 5745$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 5746if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 lt_cv_sharedlib_from_linklib_cmd='unknown' 5750 5751case $host_os in 5752cygwin* | mingw* | pw32* | cegcc*) 5753 # two different shell functions defined in ltmain.sh 5754 # decide which to use based on capabilities of $DLLTOOL 5755 case `$DLLTOOL --help 2>&1` in 5756 *--identify-strict*) 5757 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 5758 ;; 5759 *) 5760 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 5761 ;; 5762 esac 5763 ;; 5764*) 5765 # fallback: assume linklib IS sharedlib 5766 lt_cv_sharedlib_from_linklib_cmd="$ECHO" 5767 ;; 5768esac 5769 5770fi 5771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 5772$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 5773sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 5774test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 5775 5776 5777 5778 5779 5780 5781 5782 5783if test -n "$ac_tool_prefix"; then 5784 for ac_prog in ar 5785 do 5786 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5787set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5788{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5789$as_echo_n "checking for $ac_word... " >&6; } 5790if ${ac_cv_prog_AR+:} false; then : 5791 $as_echo_n "(cached) " >&6 5792else 5793 if test -n "$AR"; then 5794 ac_cv_prog_AR="$AR" # Let the user override the test. 5795else 5796as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5797for as_dir in $PATH 5798do 5799 IFS=$as_save_IFS 5800 test -z "$as_dir" && as_dir=. 5801 for ac_exec_ext in '' $ac_executable_extensions; do 5802 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5803 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 5804 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5805 break 2 5806 fi 5807done 5808 done 5809IFS=$as_save_IFS 5810 5811fi 5812fi 5813AR=$ac_cv_prog_AR 5814if test -n "$AR"; then 5815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 5816$as_echo "$AR" >&6; } 5817else 5818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5819$as_echo "no" >&6; } 5820fi 5821 5822 5823 test -n "$AR" && break 5824 done 5825fi 5826if test -z "$AR"; then 5827 ac_ct_AR=$AR 5828 for ac_prog in ar 5829do 5830 # Extract the first word of "$ac_prog", so it can be a program name with args. 5831set dummy $ac_prog; ac_word=$2 5832{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5833$as_echo_n "checking for $ac_word... " >&6; } 5834if ${ac_cv_prog_ac_ct_AR+:} false; then : 5835 $as_echo_n "(cached) " >&6 5836else 5837 if test -n "$ac_ct_AR"; then 5838 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5839else 5840as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5841for as_dir in $PATH 5842do 5843 IFS=$as_save_IFS 5844 test -z "$as_dir" && as_dir=. 5845 for ac_exec_ext in '' $ac_executable_extensions; do 5846 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5847 ac_cv_prog_ac_ct_AR="$ac_prog" 5848 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5849 break 2 5850 fi 5851done 5852 done 5853IFS=$as_save_IFS 5854 5855fi 5856fi 5857ac_ct_AR=$ac_cv_prog_ac_ct_AR 5858if test -n "$ac_ct_AR"; then 5859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5860$as_echo "$ac_ct_AR" >&6; } 5861else 5862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5863$as_echo "no" >&6; } 5864fi 5865 5866 5867 test -n "$ac_ct_AR" && break 5868done 5869 5870 if test "x$ac_ct_AR" = x; then 5871 AR="false" 5872 else 5873 case $cross_compiling:$ac_tool_warned in 5874yes:) 5875{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5876$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5877ac_tool_warned=yes ;; 5878esac 5879 AR=$ac_ct_AR 5880 fi 5881fi 5882 5883: ${AR=ar} 5884: ${AR_FLAGS=cru} 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5897$as_echo_n "checking for archiver @FILE support... " >&6; } 5898if ${lt_cv_ar_at_file+:} false; then : 5899 $as_echo_n "(cached) " >&6 5900else 5901 lt_cv_ar_at_file=no 5902 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5903/* end confdefs.h. */ 5904 5905int 5906main () 5907{ 5908 5909 ; 5910 return 0; 5911} 5912_ACEOF 5913if ac_fn_c_try_compile "$LINENO"; then : 5914 echo conftest.$ac_objext > conftest.lst 5915 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5916 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5917 (eval $lt_ar_try) 2>&5 5918 ac_status=$? 5919 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5920 test $ac_status = 0; } 5921 if test "$ac_status" -eq 0; then 5922 # Ensure the archiver fails upon bogus file names. 5923 rm -f conftest.$ac_objext libconftest.a 5924 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5925 (eval $lt_ar_try) 2>&5 5926 ac_status=$? 5927 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5928 test $ac_status = 0; } 5929 if test "$ac_status" -ne 0; then 5930 lt_cv_ar_at_file=@ 5931 fi 5932 fi 5933 rm -f conftest.* libconftest.a 5934 5935fi 5936rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5937 5938fi 5939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5940$as_echo "$lt_cv_ar_at_file" >&6; } 5941 5942if test "x$lt_cv_ar_at_file" = xno; then 5943 archiver_list_spec= 5944else 5945 archiver_list_spec=$lt_cv_ar_at_file 5946fi 5947 5948 5949 5950 5951 5952 5953 5954if test -n "$ac_tool_prefix"; then 5955 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5956set dummy ${ac_tool_prefix}strip; ac_word=$2 5957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5958$as_echo_n "checking for $ac_word... " >&6; } 5959if ${ac_cv_prog_STRIP+:} false; then : 5960 $as_echo_n "(cached) " >&6 5961else 5962 if test -n "$STRIP"; then 5963 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5964else 5965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5966for as_dir in $PATH 5967do 5968 IFS=$as_save_IFS 5969 test -z "$as_dir" && as_dir=. 5970 for ac_exec_ext in '' $ac_executable_extensions; do 5971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5972 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5974 break 2 5975 fi 5976done 5977 done 5978IFS=$as_save_IFS 5979 5980fi 5981fi 5982STRIP=$ac_cv_prog_STRIP 5983if test -n "$STRIP"; then 5984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5985$as_echo "$STRIP" >&6; } 5986else 5987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5988$as_echo "no" >&6; } 5989fi 5990 5991 5992fi 5993if test -z "$ac_cv_prog_STRIP"; then 5994 ac_ct_STRIP=$STRIP 5995 # Extract the first word of "strip", so it can be a program name with args. 5996set dummy strip; ac_word=$2 5997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5998$as_echo_n "checking for $ac_word... " >&6; } 5999if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 6000 $as_echo_n "(cached) " >&6 6001else 6002 if test -n "$ac_ct_STRIP"; then 6003 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6004else 6005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6006for as_dir in $PATH 6007do 6008 IFS=$as_save_IFS 6009 test -z "$as_dir" && as_dir=. 6010 for ac_exec_ext in '' $ac_executable_extensions; do 6011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6012 ac_cv_prog_ac_ct_STRIP="strip" 6013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6014 break 2 6015 fi 6016done 6017 done 6018IFS=$as_save_IFS 6019 6020fi 6021fi 6022ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6023if test -n "$ac_ct_STRIP"; then 6024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6025$as_echo "$ac_ct_STRIP" >&6; } 6026else 6027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6028$as_echo "no" >&6; } 6029fi 6030 6031 if test "x$ac_ct_STRIP" = x; then 6032 STRIP=":" 6033 else 6034 case $cross_compiling:$ac_tool_warned in 6035yes:) 6036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6038ac_tool_warned=yes ;; 6039esac 6040 STRIP=$ac_ct_STRIP 6041 fi 6042else 6043 STRIP="$ac_cv_prog_STRIP" 6044fi 6045 6046test -z "$STRIP" && STRIP=: 6047 6048 6049 6050 6051 6052 6053if test -n "$ac_tool_prefix"; then 6054 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6055set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6056{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6057$as_echo_n "checking for $ac_word... " >&6; } 6058if ${ac_cv_prog_RANLIB+:} false; then : 6059 $as_echo_n "(cached) " >&6 6060else 6061 if test -n "$RANLIB"; then 6062 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6063else 6064as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6065for as_dir in $PATH 6066do 6067 IFS=$as_save_IFS 6068 test -z "$as_dir" && as_dir=. 6069 for ac_exec_ext in '' $ac_executable_extensions; do 6070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6071 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6073 break 2 6074 fi 6075done 6076 done 6077IFS=$as_save_IFS 6078 6079fi 6080fi 6081RANLIB=$ac_cv_prog_RANLIB 6082if test -n "$RANLIB"; then 6083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6084$as_echo "$RANLIB" >&6; } 6085else 6086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6087$as_echo "no" >&6; } 6088fi 6089 6090 6091fi 6092if test -z "$ac_cv_prog_RANLIB"; then 6093 ac_ct_RANLIB=$RANLIB 6094 # Extract the first word of "ranlib", so it can be a program name with args. 6095set dummy ranlib; ac_word=$2 6096{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6097$as_echo_n "checking for $ac_word... " >&6; } 6098if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 6099 $as_echo_n "(cached) " >&6 6100else 6101 if test -n "$ac_ct_RANLIB"; then 6102 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6103else 6104as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6105for as_dir in $PATH 6106do 6107 IFS=$as_save_IFS 6108 test -z "$as_dir" && as_dir=. 6109 for ac_exec_ext in '' $ac_executable_extensions; do 6110 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6111 ac_cv_prog_ac_ct_RANLIB="ranlib" 6112 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6113 break 2 6114 fi 6115done 6116 done 6117IFS=$as_save_IFS 6118 6119fi 6120fi 6121ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6122if test -n "$ac_ct_RANLIB"; then 6123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6124$as_echo "$ac_ct_RANLIB" >&6; } 6125else 6126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6127$as_echo "no" >&6; } 6128fi 6129 6130 if test "x$ac_ct_RANLIB" = x; then 6131 RANLIB=":" 6132 else 6133 case $cross_compiling:$ac_tool_warned in 6134yes:) 6135{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6136$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6137ac_tool_warned=yes ;; 6138esac 6139 RANLIB=$ac_ct_RANLIB 6140 fi 6141else 6142 RANLIB="$ac_cv_prog_RANLIB" 6143fi 6144 6145test -z "$RANLIB" && RANLIB=: 6146 6147 6148 6149 6150 6151 6152# Determine commands to create old-style static archives. 6153old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6154old_postinstall_cmds='chmod 644 $oldlib' 6155old_postuninstall_cmds= 6156 6157if test -n "$RANLIB"; then 6158 case $host_os in 6159 openbsd*) 6160 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 6161 ;; 6162 *) 6163 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 6164 ;; 6165 esac 6166 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 6167fi 6168 6169case $host_os in 6170 darwin*) 6171 lock_old_archive_extraction=yes ;; 6172 *) 6173 lock_old_archive_extraction=no ;; 6174esac 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214# If no C compiler was specified, use CC. 6215LTCC=${LTCC-"$CC"} 6216 6217# If no C compiler flags were specified, use CFLAGS. 6218LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6219 6220# Allow CC to be a program name with arguments. 6221compiler=$CC 6222 6223 6224# Check for command to grab the raw symbol name followed by C symbol from nm. 6225{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6226$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6227if ${lt_cv_sys_global_symbol_pipe+:} false; then : 6228 $as_echo_n "(cached) " >&6 6229else 6230 6231# These are sane defaults that work on at least a few old systems. 6232# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6233 6234# Character class describing NM global symbol codes. 6235symcode='[BCDEGRST]' 6236 6237# Regexp to match symbols that can be accessed directly from C. 6238sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6239 6240# Define system-specific variables. 6241case $host_os in 6242aix*) 6243 symcode='[BCDT]' 6244 ;; 6245cygwin* | mingw* | pw32* | cegcc*) 6246 symcode='[ABCDGISTW]' 6247 ;; 6248hpux*) 6249 if test "$host_cpu" = ia64; then 6250 symcode='[ABCDEGRST]' 6251 fi 6252 ;; 6253irix* | nonstopux*) 6254 symcode='[BCDEGRST]' 6255 ;; 6256osf*) 6257 symcode='[BCDEGQRST]' 6258 ;; 6259solaris*) 6260 symcode='[BDRT]' 6261 ;; 6262sco3.2v5*) 6263 symcode='[DT]' 6264 ;; 6265sysv4.2uw2*) 6266 symcode='[DT]' 6267 ;; 6268sysv5* | sco5v6* | unixware* | OpenUNIX*) 6269 symcode='[ABDT]' 6270 ;; 6271sysv4) 6272 symcode='[DFNSTU]' 6273 ;; 6274esac 6275 6276# If we're using GNU nm, then use its standard symbol codes. 6277case `$NM -V 2>&1` in 6278*GNU* | *'with BFD'*) 6279 symcode='[ABCDGIRSTW]' ;; 6280esac 6281 6282# Transform an extracted symbol line into a proper C declaration. 6283# Some systems (esp. on ia64) link data and code symbols differently, 6284# so use this general approach. 6285lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6286 6287# Transform an extracted symbol line into symbol name and symbol address 6288lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6289lt_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'" 6290 6291# Handle CRLF in mingw tool chain 6292opt_cr= 6293case $build_os in 6294mingw*) 6295 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6296 ;; 6297esac 6298 6299# Try without a prefix underscore, then with it. 6300for ac_symprfx in "" "_"; do 6301 6302 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6303 symxfrm="\\1 $ac_symprfx\\2 \\2" 6304 6305 # Write the raw and C identifiers. 6306 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6307 # Fake it for dumpbin and say T for any non-static function 6308 # and D for any global variable. 6309 # Also find C++ and __fastcall symbols from MSVC++, 6310 # which start with @ or ?. 6311 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6312" {last_section=section; section=\$ 3};"\ 6313" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 6314" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6315" \$ 0!~/External *\|/{next};"\ 6316" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6317" {if(hide[section]) next};"\ 6318" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6319" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6320" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6321" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6322" ' prfx=^$ac_symprfx" 6323 else 6324 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6325 fi 6326 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 6327 6328 # Check to see that the pipe works correctly. 6329 pipe_works=no 6330 6331 rm -f conftest* 6332 cat > conftest.$ac_ext <<_LT_EOF 6333#ifdef __cplusplus 6334extern "C" { 6335#endif 6336char nm_test_var; 6337void nm_test_func(void); 6338void nm_test_func(void){} 6339#ifdef __cplusplus 6340} 6341#endif 6342int main(){nm_test_var='a';nm_test_func();return(0);} 6343_LT_EOF 6344 6345 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6346 (eval $ac_compile) 2>&5 6347 ac_status=$? 6348 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6349 test $ac_status = 0; }; then 6350 # Now try to grab the symbols. 6351 nlist=conftest.nm 6352 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6353 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6354 ac_status=$? 6355 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6356 test $ac_status = 0; } && test -s "$nlist"; then 6357 # Try sorting and uniquifying the output. 6358 if sort "$nlist" | uniq > "$nlist"T; then 6359 mv -f "$nlist"T "$nlist" 6360 else 6361 rm -f "$nlist"T 6362 fi 6363 6364 # Make sure that we snagged all the symbols we need. 6365 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6366 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6367 cat <<_LT_EOF > conftest.$ac_ext 6368/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 6369#if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE) 6370/* DATA imports from DLLs on WIN32 con't be const, because runtime 6371 relocations are performed -- see ld's documentation on pseudo-relocs. */ 6372# define LT_DLSYM_CONST 6373#elif defined(__osf__) 6374/* This system does not cope well with relocations in const data. */ 6375# define LT_DLSYM_CONST 6376#else 6377# define LT_DLSYM_CONST const 6378#endif 6379 6380#ifdef __cplusplus 6381extern "C" { 6382#endif 6383 6384_LT_EOF 6385 # Now generate the symbol file. 6386 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6387 6388 cat <<_LT_EOF >> conftest.$ac_ext 6389 6390/* The mapping between symbol names and symbols. */ 6391LT_DLSYM_CONST struct { 6392 const char *name; 6393 void *address; 6394} 6395lt__PROGRAM__LTX_preloaded_symbols[] = 6396{ 6397 { "@PROGRAM@", (void *) 0 }, 6398_LT_EOF 6399 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6400 cat <<\_LT_EOF >> conftest.$ac_ext 6401 {0, (void *) 0} 6402}; 6403 6404/* This works around a problem in FreeBSD linker */ 6405#ifdef FREEBSD_WORKAROUND 6406static const void *lt_preloaded_setup() { 6407 return lt__PROGRAM__LTX_preloaded_symbols; 6408} 6409#endif 6410 6411#ifdef __cplusplus 6412} 6413#endif 6414_LT_EOF 6415 # Now try linking the two files. 6416 mv conftest.$ac_objext conftstm.$ac_objext 6417 lt_globsym_save_LIBS=$LIBS 6418 lt_globsym_save_CFLAGS=$CFLAGS 6419 LIBS="conftstm.$ac_objext" 6420 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6421 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6422 (eval $ac_link) 2>&5 6423 ac_status=$? 6424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6425 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6426 pipe_works=yes 6427 fi 6428 LIBS=$lt_globsym_save_LIBS 6429 CFLAGS=$lt_globsym_save_CFLAGS 6430 else 6431 echo "cannot find nm_test_func in $nlist" >&5 6432 fi 6433 else 6434 echo "cannot find nm_test_var in $nlist" >&5 6435 fi 6436 else 6437 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6438 fi 6439 else 6440 echo "$progname: failed program was:" >&5 6441 cat conftest.$ac_ext >&5 6442 fi 6443 rm -rf conftest* conftst* 6444 6445 # Do not use the global_symbol_pipe unless it works. 6446 if test "$pipe_works" = yes; then 6447 break 6448 else 6449 lt_cv_sys_global_symbol_pipe= 6450 fi 6451done 6452 6453fi 6454 6455if test -z "$lt_cv_sys_global_symbol_pipe"; then 6456 lt_cv_sys_global_symbol_to_cdecl= 6457fi 6458if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6460$as_echo "failed" >&6; } 6461else 6462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6463$as_echo "ok" >&6; } 6464fi 6465 6466# Response file support. 6467if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6468 nm_file_list_spec='@' 6469elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 6470 nm_file_list_spec='@' 6471fi 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 6500$as_echo_n "checking for sysroot... " >&6; } 6501 6502# Check whether --with-sysroot was given. 6503if test "${with_sysroot+set}" = set; then : 6504 withval=$with_sysroot; 6505else 6506 with_sysroot=no 6507fi 6508 6509 6510lt_sysroot= 6511case ${with_sysroot} in #( 6512 yes) 6513 if test "$GCC" = yes; then 6514 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 6515 fi 6516 ;; #( 6517 /*) 6518 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 6519 ;; #( 6520 no|'') 6521 ;; #( 6522 *) 6523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5 6524$as_echo "${with_sysroot}" >&6; } 6525 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 6526 ;; 6527esac 6528 6529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 6530$as_echo "${lt_sysroot:-no}" >&6; } 6531 6532 6533 6534 6535 6536# Check whether --enable-libtool-lock was given. 6537if test "${enable_libtool_lock+set}" = set; then : 6538 enableval=$enable_libtool_lock; 6539fi 6540 6541test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6542 6543# Some flags need to be propagated to the compiler or linker for good 6544# libtool support. 6545case $host in 6546ia64-*-hpux*) 6547 # Find out which ABI we are using. 6548 echo 'int i;' > conftest.$ac_ext 6549 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6550 (eval $ac_compile) 2>&5 6551 ac_status=$? 6552 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6553 test $ac_status = 0; }; then 6554 case `/usr/bin/file conftest.$ac_objext` in 6555 *ELF-32*) 6556 HPUX_IA64_MODE="32" 6557 ;; 6558 *ELF-64*) 6559 HPUX_IA64_MODE="64" 6560 ;; 6561 esac 6562 fi 6563 rm -rf conftest* 6564 ;; 6565*-*-irix6*) 6566 # Find out which ABI we are using. 6567 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6568 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6569 (eval $ac_compile) 2>&5 6570 ac_status=$? 6571 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6572 test $ac_status = 0; }; then 6573 if test "$lt_cv_prog_gnu_ld" = yes; then 6574 case `/usr/bin/file conftest.$ac_objext` in 6575 *32-bit*) 6576 LD="${LD-ld} -melf32bsmip" 6577 ;; 6578 *N32*) 6579 LD="${LD-ld} -melf32bmipn32" 6580 ;; 6581 *64-bit*) 6582 LD="${LD-ld} -melf64bmip" 6583 ;; 6584 esac 6585 else 6586 case `/usr/bin/file conftest.$ac_objext` in 6587 *32-bit*) 6588 LD="${LD-ld} -32" 6589 ;; 6590 *N32*) 6591 LD="${LD-ld} -n32" 6592 ;; 6593 *64-bit*) 6594 LD="${LD-ld} -64" 6595 ;; 6596 esac 6597 fi 6598 fi 6599 rm -rf conftest* 6600 ;; 6601 6602x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 6603s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 6604 # Find out which ABI we are using. 6605 echo 'int i;' > conftest.$ac_ext 6606 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6607 (eval $ac_compile) 2>&5 6608 ac_status=$? 6609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6610 test $ac_status = 0; }; then 6611 case `/usr/bin/file conftest.o` in 6612 *32-bit*) 6613 case $host in 6614 x86_64-*kfreebsd*-gnu) 6615 LD="${LD-ld} -m elf_i386_fbsd" 6616 ;; 6617 x86_64-*linux*) 6618 LD="${LD-ld} -m elf_i386" 6619 ;; 6620 ppc64-*linux*|powerpc64-*linux*) 6621 LD="${LD-ld} -m elf32ppclinux" 6622 ;; 6623 s390x-*linux*) 6624 LD="${LD-ld} -m elf_s390" 6625 ;; 6626 sparc64-*linux*) 6627 LD="${LD-ld} -m elf32_sparc" 6628 ;; 6629 esac 6630 ;; 6631 *64-bit*) 6632 case $host in 6633 x86_64-*kfreebsd*-gnu) 6634 LD="${LD-ld} -m elf_x86_64_fbsd" 6635 ;; 6636 x86_64-*linux*) 6637 LD="${LD-ld} -m elf_x86_64" 6638 ;; 6639 ppc*-*linux*|powerpc*-*linux*) 6640 LD="${LD-ld} -m elf64ppc" 6641 ;; 6642 s390*-*linux*|s390*-*tpf*) 6643 LD="${LD-ld} -m elf64_s390" 6644 ;; 6645 sparc*-*linux*) 6646 LD="${LD-ld} -m elf64_sparc" 6647 ;; 6648 esac 6649 ;; 6650 esac 6651 fi 6652 rm -rf conftest* 6653 ;; 6654 6655*-*-sco3.2v5*) 6656 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6657 SAVE_CFLAGS="$CFLAGS" 6658 CFLAGS="$CFLAGS -belf" 6659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6660$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6661if ${lt_cv_cc_needs_belf+:} false; then : 6662 $as_echo_n "(cached) " >&6 6663else 6664 ac_ext=c 6665ac_cpp='$CPP $CPPFLAGS' 6666ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6667ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6668ac_compiler_gnu=$ac_cv_c_compiler_gnu 6669 6670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6671/* end confdefs.h. */ 6672 6673int 6674main () 6675{ 6676 6677 ; 6678 return 0; 6679} 6680_ACEOF 6681if ac_fn_c_try_link "$LINENO"; then : 6682 lt_cv_cc_needs_belf=yes 6683else 6684 lt_cv_cc_needs_belf=no 6685fi 6686rm -f core conftest.err conftest.$ac_objext \ 6687 conftest$ac_exeext conftest.$ac_ext 6688 ac_ext=c 6689ac_cpp='$CPP $CPPFLAGS' 6690ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6691ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6692ac_compiler_gnu=$ac_cv_c_compiler_gnu 6693 6694fi 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6696$as_echo "$lt_cv_cc_needs_belf" >&6; } 6697 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 6698 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6699 CFLAGS="$SAVE_CFLAGS" 6700 fi 6701 ;; 6702*-*solaris*) 6703 # Find out which ABI we are using. 6704 echo 'int i;' > conftest.$ac_ext 6705 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6706 (eval $ac_compile) 2>&5 6707 ac_status=$? 6708 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6709 test $ac_status = 0; }; then 6710 case `/usr/bin/file conftest.o` in 6711 *64-bit*) 6712 case $lt_cv_prog_gnu_ld in 6713 yes*) 6714 case $host in 6715 i?86-*-solaris*) 6716 LD="${LD-ld} -m elf_x86_64" 6717 ;; 6718 sparc*-*-solaris*) 6719 LD="${LD-ld} -m elf64_sparc" 6720 ;; 6721 esac 6722 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6723 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6724 LD="${LD-ld}_sol2" 6725 fi 6726 ;; 6727 *) 6728 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6729 LD="${LD-ld} -64" 6730 fi 6731 ;; 6732 esac 6733 ;; 6734 esac 6735 fi 6736 rm -rf conftest* 6737 ;; 6738esac 6739 6740need_locks="$enable_libtool_lock" 6741 6742if test -n "$ac_tool_prefix"; then 6743 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6744set dummy ${ac_tool_prefix}mt; ac_word=$2 6745{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6746$as_echo_n "checking for $ac_word... " >&6; } 6747if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6748 $as_echo_n "(cached) " >&6 6749else 6750 if test -n "$MANIFEST_TOOL"; then 6751 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6752else 6753as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6754for as_dir in $PATH 6755do 6756 IFS=$as_save_IFS 6757 test -z "$as_dir" && as_dir=. 6758 for ac_exec_ext in '' $ac_executable_extensions; do 6759 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6760 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6761 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6762 break 2 6763 fi 6764done 6765 done 6766IFS=$as_save_IFS 6767 6768fi 6769fi 6770MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6771if test -n "$MANIFEST_TOOL"; then 6772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6773$as_echo "$MANIFEST_TOOL" >&6; } 6774else 6775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6776$as_echo "no" >&6; } 6777fi 6778 6779 6780fi 6781if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6782 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6783 # Extract the first word of "mt", so it can be a program name with args. 6784set dummy mt; ac_word=$2 6785{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6786$as_echo_n "checking for $ac_word... " >&6; } 6787if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6788 $as_echo_n "(cached) " >&6 6789else 6790 if test -n "$ac_ct_MANIFEST_TOOL"; then 6791 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6792else 6793as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6794for as_dir in $PATH 6795do 6796 IFS=$as_save_IFS 6797 test -z "$as_dir" && as_dir=. 6798 for ac_exec_ext in '' $ac_executable_extensions; do 6799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6800 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6802 break 2 6803 fi 6804done 6805 done 6806IFS=$as_save_IFS 6807 6808fi 6809fi 6810ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6811if test -n "$ac_ct_MANIFEST_TOOL"; then 6812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6813$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6814else 6815 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6816$as_echo "no" >&6; } 6817fi 6818 6819 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6820 MANIFEST_TOOL=":" 6821 else 6822 case $cross_compiling:$ac_tool_warned in 6823yes:) 6824{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6825$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6826ac_tool_warned=yes ;; 6827esac 6828 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6829 fi 6830else 6831 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6832fi 6833 6834test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6835{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6836$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6837if ${lt_cv_path_mainfest_tool+:} false; then : 6838 $as_echo_n "(cached) " >&6 6839else 6840 lt_cv_path_mainfest_tool=no 6841 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6842 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6843 cat conftest.err >&5 6844 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6845 lt_cv_path_mainfest_tool=yes 6846 fi 6847 rm -f conftest* 6848fi 6849{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6850$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6851if test "x$lt_cv_path_mainfest_tool" != xyes; then 6852 MANIFEST_TOOL=: 6853fi 6854 6855 6856 6857 6858 6859 6860 case $host_os in 6861 rhapsody* | darwin*) 6862 if test -n "$ac_tool_prefix"; then 6863 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6864set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6865{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6866$as_echo_n "checking for $ac_word... " >&6; } 6867if ${ac_cv_prog_DSYMUTIL+:} false; then : 6868 $as_echo_n "(cached) " >&6 6869else 6870 if test -n "$DSYMUTIL"; then 6871 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6872else 6873as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6874for as_dir in $PATH 6875do 6876 IFS=$as_save_IFS 6877 test -z "$as_dir" && as_dir=. 6878 for ac_exec_ext in '' $ac_executable_extensions; do 6879 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6880 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6881 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6882 break 2 6883 fi 6884done 6885 done 6886IFS=$as_save_IFS 6887 6888fi 6889fi 6890DSYMUTIL=$ac_cv_prog_DSYMUTIL 6891if test -n "$DSYMUTIL"; then 6892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6893$as_echo "$DSYMUTIL" >&6; } 6894else 6895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6896$as_echo "no" >&6; } 6897fi 6898 6899 6900fi 6901if test -z "$ac_cv_prog_DSYMUTIL"; then 6902 ac_ct_DSYMUTIL=$DSYMUTIL 6903 # Extract the first word of "dsymutil", so it can be a program name with args. 6904set dummy dsymutil; ac_word=$2 6905{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6906$as_echo_n "checking for $ac_word... " >&6; } 6907if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6908 $as_echo_n "(cached) " >&6 6909else 6910 if test -n "$ac_ct_DSYMUTIL"; then 6911 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6912else 6913as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6914for as_dir in $PATH 6915do 6916 IFS=$as_save_IFS 6917 test -z "$as_dir" && as_dir=. 6918 for ac_exec_ext in '' $ac_executable_extensions; do 6919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6920 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6922 break 2 6923 fi 6924done 6925 done 6926IFS=$as_save_IFS 6927 6928fi 6929fi 6930ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6931if test -n "$ac_ct_DSYMUTIL"; then 6932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6933$as_echo "$ac_ct_DSYMUTIL" >&6; } 6934else 6935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6936$as_echo "no" >&6; } 6937fi 6938 6939 if test "x$ac_ct_DSYMUTIL" = x; then 6940 DSYMUTIL=":" 6941 else 6942 case $cross_compiling:$ac_tool_warned in 6943yes:) 6944{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6945$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6946ac_tool_warned=yes ;; 6947esac 6948 DSYMUTIL=$ac_ct_DSYMUTIL 6949 fi 6950else 6951 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6952fi 6953 6954 if test -n "$ac_tool_prefix"; then 6955 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6956set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6957{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6958$as_echo_n "checking for $ac_word... " >&6; } 6959if ${ac_cv_prog_NMEDIT+:} false; then : 6960 $as_echo_n "(cached) " >&6 6961else 6962 if test -n "$NMEDIT"; then 6963 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6964else 6965as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6966for as_dir in $PATH 6967do 6968 IFS=$as_save_IFS 6969 test -z "$as_dir" && as_dir=. 6970 for ac_exec_ext in '' $ac_executable_extensions; do 6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6972 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6974 break 2 6975 fi 6976done 6977 done 6978IFS=$as_save_IFS 6979 6980fi 6981fi 6982NMEDIT=$ac_cv_prog_NMEDIT 6983if test -n "$NMEDIT"; then 6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6985$as_echo "$NMEDIT" >&6; } 6986else 6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6988$as_echo "no" >&6; } 6989fi 6990 6991 6992fi 6993if test -z "$ac_cv_prog_NMEDIT"; then 6994 ac_ct_NMEDIT=$NMEDIT 6995 # Extract the first word of "nmedit", so it can be a program name with args. 6996set dummy nmedit; ac_word=$2 6997{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6998$as_echo_n "checking for $ac_word... " >&6; } 6999if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 7000 $as_echo_n "(cached) " >&6 7001else 7002 if test -n "$ac_ct_NMEDIT"; then 7003 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7004else 7005as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7006for as_dir in $PATH 7007do 7008 IFS=$as_save_IFS 7009 test -z "$as_dir" && as_dir=. 7010 for ac_exec_ext in '' $ac_executable_extensions; do 7011 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7012 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7013 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7014 break 2 7015 fi 7016done 7017 done 7018IFS=$as_save_IFS 7019 7020fi 7021fi 7022ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7023if test -n "$ac_ct_NMEDIT"; then 7024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7025$as_echo "$ac_ct_NMEDIT" >&6; } 7026else 7027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7028$as_echo "no" >&6; } 7029fi 7030 7031 if test "x$ac_ct_NMEDIT" = x; then 7032 NMEDIT=":" 7033 else 7034 case $cross_compiling:$ac_tool_warned in 7035yes:) 7036{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7037$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7038ac_tool_warned=yes ;; 7039esac 7040 NMEDIT=$ac_ct_NMEDIT 7041 fi 7042else 7043 NMEDIT="$ac_cv_prog_NMEDIT" 7044fi 7045 7046 if test -n "$ac_tool_prefix"; then 7047 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7048set dummy ${ac_tool_prefix}lipo; ac_word=$2 7049{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7050$as_echo_n "checking for $ac_word... " >&6; } 7051if ${ac_cv_prog_LIPO+:} false; then : 7052 $as_echo_n "(cached) " >&6 7053else 7054 if test -n "$LIPO"; then 7055 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7056else 7057as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7058for as_dir in $PATH 7059do 7060 IFS=$as_save_IFS 7061 test -z "$as_dir" && as_dir=. 7062 for ac_exec_ext in '' $ac_executable_extensions; do 7063 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7064 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7065 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7066 break 2 7067 fi 7068done 7069 done 7070IFS=$as_save_IFS 7071 7072fi 7073fi 7074LIPO=$ac_cv_prog_LIPO 7075if test -n "$LIPO"; then 7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7077$as_echo "$LIPO" >&6; } 7078else 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7080$as_echo "no" >&6; } 7081fi 7082 7083 7084fi 7085if test -z "$ac_cv_prog_LIPO"; then 7086 ac_ct_LIPO=$LIPO 7087 # Extract the first word of "lipo", so it can be a program name with args. 7088set dummy lipo; ac_word=$2 7089{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7090$as_echo_n "checking for $ac_word... " >&6; } 7091if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 7092 $as_echo_n "(cached) " >&6 7093else 7094 if test -n "$ac_ct_LIPO"; then 7095 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7096else 7097as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7098for as_dir in $PATH 7099do 7100 IFS=$as_save_IFS 7101 test -z "$as_dir" && as_dir=. 7102 for ac_exec_ext in '' $ac_executable_extensions; do 7103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7104 ac_cv_prog_ac_ct_LIPO="lipo" 7105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7106 break 2 7107 fi 7108done 7109 done 7110IFS=$as_save_IFS 7111 7112fi 7113fi 7114ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7115if test -n "$ac_ct_LIPO"; then 7116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7117$as_echo "$ac_ct_LIPO" >&6; } 7118else 7119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7120$as_echo "no" >&6; } 7121fi 7122 7123 if test "x$ac_ct_LIPO" = x; then 7124 LIPO=":" 7125 else 7126 case $cross_compiling:$ac_tool_warned in 7127yes:) 7128{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7129$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7130ac_tool_warned=yes ;; 7131esac 7132 LIPO=$ac_ct_LIPO 7133 fi 7134else 7135 LIPO="$ac_cv_prog_LIPO" 7136fi 7137 7138 if test -n "$ac_tool_prefix"; then 7139 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7140set dummy ${ac_tool_prefix}otool; ac_word=$2 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7142$as_echo_n "checking for $ac_word... " >&6; } 7143if ${ac_cv_prog_OTOOL+:} false; then : 7144 $as_echo_n "(cached) " >&6 7145else 7146 if test -n "$OTOOL"; then 7147 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7148else 7149as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7150for as_dir in $PATH 7151do 7152 IFS=$as_save_IFS 7153 test -z "$as_dir" && as_dir=. 7154 for ac_exec_ext in '' $ac_executable_extensions; do 7155 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7156 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7157 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7158 break 2 7159 fi 7160done 7161 done 7162IFS=$as_save_IFS 7163 7164fi 7165fi 7166OTOOL=$ac_cv_prog_OTOOL 7167if test -n "$OTOOL"; then 7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7169$as_echo "$OTOOL" >&6; } 7170else 7171 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7172$as_echo "no" >&6; } 7173fi 7174 7175 7176fi 7177if test -z "$ac_cv_prog_OTOOL"; then 7178 ac_ct_OTOOL=$OTOOL 7179 # Extract the first word of "otool", so it can be a program name with args. 7180set dummy otool; ac_word=$2 7181{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7182$as_echo_n "checking for $ac_word... " >&6; } 7183if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 7184 $as_echo_n "(cached) " >&6 7185else 7186 if test -n "$ac_ct_OTOOL"; then 7187 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7188else 7189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7190for as_dir in $PATH 7191do 7192 IFS=$as_save_IFS 7193 test -z "$as_dir" && as_dir=. 7194 for ac_exec_ext in '' $ac_executable_extensions; do 7195 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7196 ac_cv_prog_ac_ct_OTOOL="otool" 7197 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7198 break 2 7199 fi 7200done 7201 done 7202IFS=$as_save_IFS 7203 7204fi 7205fi 7206ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7207if test -n "$ac_ct_OTOOL"; then 7208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7209$as_echo "$ac_ct_OTOOL" >&6; } 7210else 7211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7212$as_echo "no" >&6; } 7213fi 7214 7215 if test "x$ac_ct_OTOOL" = x; then 7216 OTOOL=":" 7217 else 7218 case $cross_compiling:$ac_tool_warned in 7219yes:) 7220{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7221$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7222ac_tool_warned=yes ;; 7223esac 7224 OTOOL=$ac_ct_OTOOL 7225 fi 7226else 7227 OTOOL="$ac_cv_prog_OTOOL" 7228fi 7229 7230 if test -n "$ac_tool_prefix"; then 7231 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7232set dummy ${ac_tool_prefix}otool64; ac_word=$2 7233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7234$as_echo_n "checking for $ac_word... " >&6; } 7235if ${ac_cv_prog_OTOOL64+:} false; then : 7236 $as_echo_n "(cached) " >&6 7237else 7238 if test -n "$OTOOL64"; then 7239 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7240else 7241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7242for as_dir in $PATH 7243do 7244 IFS=$as_save_IFS 7245 test -z "$as_dir" && as_dir=. 7246 for ac_exec_ext in '' $ac_executable_extensions; do 7247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7248 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7250 break 2 7251 fi 7252done 7253 done 7254IFS=$as_save_IFS 7255 7256fi 7257fi 7258OTOOL64=$ac_cv_prog_OTOOL64 7259if test -n "$OTOOL64"; then 7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7261$as_echo "$OTOOL64" >&6; } 7262else 7263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7264$as_echo "no" >&6; } 7265fi 7266 7267 7268fi 7269if test -z "$ac_cv_prog_OTOOL64"; then 7270 ac_ct_OTOOL64=$OTOOL64 7271 # Extract the first word of "otool64", so it can be a program name with args. 7272set dummy otool64; ac_word=$2 7273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7274$as_echo_n "checking for $ac_word... " >&6; } 7275if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 7276 $as_echo_n "(cached) " >&6 7277else 7278 if test -n "$ac_ct_OTOOL64"; then 7279 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7280else 7281as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7282for as_dir in $PATH 7283do 7284 IFS=$as_save_IFS 7285 test -z "$as_dir" && as_dir=. 7286 for ac_exec_ext in '' $ac_executable_extensions; do 7287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7288 ac_cv_prog_ac_ct_OTOOL64="otool64" 7289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7290 break 2 7291 fi 7292done 7293 done 7294IFS=$as_save_IFS 7295 7296fi 7297fi 7298ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7299if test -n "$ac_ct_OTOOL64"; then 7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7301$as_echo "$ac_ct_OTOOL64" >&6; } 7302else 7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7304$as_echo "no" >&6; } 7305fi 7306 7307 if test "x$ac_ct_OTOOL64" = x; then 7308 OTOOL64=":" 7309 else 7310 case $cross_compiling:$ac_tool_warned in 7311yes:) 7312{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7313$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7314ac_tool_warned=yes ;; 7315esac 7316 OTOOL64=$ac_ct_OTOOL64 7317 fi 7318else 7319 OTOOL64="$ac_cv_prog_OTOOL64" 7320fi 7321 7322 7323 7324 7325 7326 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337 7338 7339 7340 7341 7342 7343 7344 7345 7346 7347 7348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7349$as_echo_n "checking for -single_module linker flag... " >&6; } 7350if ${lt_cv_apple_cc_single_mod+:} false; then : 7351 $as_echo_n "(cached) " >&6 7352else 7353 lt_cv_apple_cc_single_mod=no 7354 if test -z "${LT_MULTI_MODULE}"; then 7355 # By default we will add the -single_module flag. You can override 7356 # by either setting the environment variable LT_MULTI_MODULE 7357 # non-empty at configure time, or by adding -multi_module to the 7358 # link flags. 7359 rm -rf libconftest.dylib* 7360 echo "int foo(void){return 1;}" > conftest.c 7361 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7362-dynamiclib -Wl,-single_module conftest.c" >&5 7363 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7364 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7365 _lt_result=$? 7366 # If there is a non-empty error log, and "single_module" 7367 # appears in it, assume the flag caused a linker warning 7368 if test -s conftest.err && $GREP single_module conftest.err; then 7369 cat conftest.err >&5 7370 # Otherwise, if the output was created with a 0 exit code from 7371 # the compiler, it worked. 7372 elif test -f libconftest.dylib && test $_lt_result -eq 0; then 7373 lt_cv_apple_cc_single_mod=yes 7374 else 7375 cat conftest.err >&5 7376 fi 7377 rm -rf libconftest.dylib* 7378 rm -f conftest.* 7379 fi 7380fi 7381{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7382$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7383 7384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7385$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7386if ${lt_cv_ld_exported_symbols_list+:} false; then : 7387 $as_echo_n "(cached) " >&6 7388else 7389 lt_cv_ld_exported_symbols_list=no 7390 save_LDFLAGS=$LDFLAGS 7391 echo "_main" > conftest.sym 7392 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7393 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7394/* end confdefs.h. */ 7395 7396int 7397main () 7398{ 7399 7400 ; 7401 return 0; 7402} 7403_ACEOF 7404if ac_fn_c_try_link "$LINENO"; then : 7405 lt_cv_ld_exported_symbols_list=yes 7406else 7407 lt_cv_ld_exported_symbols_list=no 7408fi 7409rm -f core conftest.err conftest.$ac_objext \ 7410 conftest$ac_exeext conftest.$ac_ext 7411 LDFLAGS="$save_LDFLAGS" 7412 7413fi 7414{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7415$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7416 7417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7418$as_echo_n "checking for -force_load linker flag... " >&6; } 7419if ${lt_cv_ld_force_load+:} false; then : 7420 $as_echo_n "(cached) " >&6 7421else 7422 lt_cv_ld_force_load=no 7423 cat > conftest.c << _LT_EOF 7424int forced_loaded() { return 2;} 7425_LT_EOF 7426 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7427 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7428 echo "$AR cru libconftest.a conftest.o" >&5 7429 $AR cru libconftest.a conftest.o 2>&5 7430 echo "$RANLIB libconftest.a" >&5 7431 $RANLIB libconftest.a 2>&5 7432 cat > conftest.c << _LT_EOF 7433int main() { return 0;} 7434_LT_EOF 7435 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7436 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7437 _lt_result=$? 7438 if test -s conftest.err && $GREP force_load conftest.err; then 7439 cat conftest.err >&5 7440 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then 7441 lt_cv_ld_force_load=yes 7442 else 7443 cat conftest.err >&5 7444 fi 7445 rm -f conftest.err libconftest.a conftest conftest.c 7446 rm -rf conftest.dSYM 7447 7448fi 7449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7450$as_echo "$lt_cv_ld_force_load" >&6; } 7451 case $host_os in 7452 rhapsody* | darwin1.[012]) 7453 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7454 darwin1.*) 7455 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7456 darwin*) # darwin 5.x on 7457 # if running on 10.5 or later, the deployment target defaults 7458 # to the OS version, if on x86, and 10.4, the deployment 7459 # target defaults to 10.4. Don't you love it? 7460 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7461 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7462 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7463 10.[012]*) 7464 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7465 10.*) 7466 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7467 esac 7468 ;; 7469 esac 7470 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7471 _lt_dar_single_mod='$single_module' 7472 fi 7473 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7474 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7475 else 7476 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7477 fi 7478 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7479 _lt_dsymutil='~$DSYMUTIL $lib || :' 7480 else 7481 _lt_dsymutil= 7482 fi 7483 ;; 7484 esac 7485 7486ac_ext=c 7487ac_cpp='$CPP $CPPFLAGS' 7488ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7489ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7490ac_compiler_gnu=$ac_cv_c_compiler_gnu 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 7492$as_echo_n "checking how to run the C preprocessor... " >&6; } 7493# On Suns, sometimes $CPP names a directory. 7494if test -n "$CPP" && test -d "$CPP"; then 7495 CPP= 7496fi 7497if test -z "$CPP"; then 7498 if ${ac_cv_prog_CPP+:} false; then : 7499 $as_echo_n "(cached) " >&6 7500else 7501 # Double quotes because CPP needs to be expanded 7502 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 7503 do 7504 ac_preproc_ok=false 7505for ac_c_preproc_warn_flag in '' yes 7506do 7507 # Use a header file that comes with gcc, so configuring glibc 7508 # with a fresh cross-compiler works. 7509 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7510 # <limits.h> exists even on freestanding compilers. 7511 # On the NeXT, cc -E runs the code through the compiler's parser, 7512 # not just through cpp. "Syntax error" is here to catch this case. 7513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7514/* end confdefs.h. */ 7515#ifdef __STDC__ 7516# include <limits.h> 7517#else 7518# include <assert.h> 7519#endif 7520 Syntax error 7521_ACEOF 7522if ac_fn_c_try_cpp "$LINENO"; then : 7523 7524else 7525 # Broken: fails on valid input. 7526continue 7527fi 7528rm -f conftest.err conftest.i conftest.$ac_ext 7529 7530 # OK, works on sane cases. Now check whether nonexistent headers 7531 # can be detected and how. 7532 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7533/* end confdefs.h. */ 7534#include <ac_nonexistent.h> 7535_ACEOF 7536if ac_fn_c_try_cpp "$LINENO"; then : 7537 # Broken: success on invalid input. 7538continue 7539else 7540 # Passes both tests. 7541ac_preproc_ok=: 7542break 7543fi 7544rm -f conftest.err conftest.i conftest.$ac_ext 7545 7546done 7547# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7548rm -f conftest.i conftest.err conftest.$ac_ext 7549if $ac_preproc_ok; then : 7550 break 7551fi 7552 7553 done 7554 ac_cv_prog_CPP=$CPP 7555 7556fi 7557 CPP=$ac_cv_prog_CPP 7558else 7559 ac_cv_prog_CPP=$CPP 7560fi 7561{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 7562$as_echo "$CPP" >&6; } 7563ac_preproc_ok=false 7564for ac_c_preproc_warn_flag in '' yes 7565do 7566 # Use a header file that comes with gcc, so configuring glibc 7567 # with a fresh cross-compiler works. 7568 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7569 # <limits.h> exists even on freestanding compilers. 7570 # On the NeXT, cc -E runs the code through the compiler's parser, 7571 # not just through cpp. "Syntax error" is here to catch this case. 7572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7573/* end confdefs.h. */ 7574#ifdef __STDC__ 7575# include <limits.h> 7576#else 7577# include <assert.h> 7578#endif 7579 Syntax error 7580_ACEOF 7581if ac_fn_c_try_cpp "$LINENO"; then : 7582 7583else 7584 # Broken: fails on valid input. 7585continue 7586fi 7587rm -f conftest.err conftest.i conftest.$ac_ext 7588 7589 # OK, works on sane cases. Now check whether nonexistent headers 7590 # can be detected and how. 7591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7592/* end confdefs.h. */ 7593#include <ac_nonexistent.h> 7594_ACEOF 7595if ac_fn_c_try_cpp "$LINENO"; then : 7596 # Broken: success on invalid input. 7597continue 7598else 7599 # Passes both tests. 7600ac_preproc_ok=: 7601break 7602fi 7603rm -f conftest.err conftest.i conftest.$ac_ext 7604 7605done 7606# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 7607rm -f conftest.i conftest.err conftest.$ac_ext 7608if $ac_preproc_ok; then : 7609 7610else 7611 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 7612$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 7613as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 7614See \`config.log' for more details" "$LINENO" 5; } 7615fi 7616 7617ac_ext=c 7618ac_cpp='$CPP $CPPFLAGS' 7619ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7620ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7621ac_compiler_gnu=$ac_cv_c_compiler_gnu 7622 7623 7624{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7625$as_echo_n "checking for ANSI C header files... " >&6; } 7626if ${ac_cv_header_stdc+:} false; then : 7627 $as_echo_n "(cached) " >&6 7628else 7629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7630/* end confdefs.h. */ 7631#include <stdlib.h> 7632#include <stdarg.h> 7633#include <string.h> 7634#include <float.h> 7635 7636int 7637main () 7638{ 7639 7640 ; 7641 return 0; 7642} 7643_ACEOF 7644if ac_fn_c_try_compile "$LINENO"; then : 7645 ac_cv_header_stdc=yes 7646else 7647 ac_cv_header_stdc=no 7648fi 7649rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7650 7651if test $ac_cv_header_stdc = yes; then 7652 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7654/* end confdefs.h. */ 7655#include <string.h> 7656 7657_ACEOF 7658if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7659 $EGREP "memchr" >/dev/null 2>&1; then : 7660 7661else 7662 ac_cv_header_stdc=no 7663fi 7664rm -f conftest* 7665 7666fi 7667 7668if test $ac_cv_header_stdc = yes; then 7669 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7671/* end confdefs.h. */ 7672#include <stdlib.h> 7673 7674_ACEOF 7675if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7676 $EGREP "free" >/dev/null 2>&1; then : 7677 7678else 7679 ac_cv_header_stdc=no 7680fi 7681rm -f conftest* 7682 7683fi 7684 7685if test $ac_cv_header_stdc = yes; then 7686 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7687 if test "$cross_compiling" = yes; then : 7688 : 7689else 7690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7691/* end confdefs.h. */ 7692#include <ctype.h> 7693#include <stdlib.h> 7694#if ((' ' & 0x0FF) == 0x020) 7695# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7696# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7697#else 7698# define ISLOWER(c) \ 7699 (('a' <= (c) && (c) <= 'i') \ 7700 || ('j' <= (c) && (c) <= 'r') \ 7701 || ('s' <= (c) && (c) <= 'z')) 7702# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7703#endif 7704 7705#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7706int 7707main () 7708{ 7709 int i; 7710 for (i = 0; i < 256; i++) 7711 if (XOR (islower (i), ISLOWER (i)) 7712 || toupper (i) != TOUPPER (i)) 7713 return 2; 7714 return 0; 7715} 7716_ACEOF 7717if ac_fn_c_try_run "$LINENO"; then : 7718 7719else 7720 ac_cv_header_stdc=no 7721fi 7722rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7723 conftest.$ac_objext conftest.beam conftest.$ac_ext 7724fi 7725 7726fi 7727fi 7728{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7729$as_echo "$ac_cv_header_stdc" >&6; } 7730if test $ac_cv_header_stdc = yes; then 7731 7732$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7733 7734fi 7735 7736# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7737for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7738 inttypes.h stdint.h unistd.h 7739do : 7740 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7741ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7742" 7743if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7744 cat >>confdefs.h <<_ACEOF 7745#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7746_ACEOF 7747 7748fi 7749 7750done 7751 7752 7753for ac_header in dlfcn.h 7754do : 7755 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7756" 7757if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7758 cat >>confdefs.h <<_ACEOF 7759#define HAVE_DLFCN_H 1 7760_ACEOF 7761 7762fi 7763 7764done 7765 7766 7767 7768 7769 7770# Set options 7771 7772 7773 7774 enable_dlopen=no 7775 7776 7777 7778 # Check whether --enable-shared was given. 7779if test "${enable_shared+set}" = set; then : 7780 enableval=$enable_shared; p=${PACKAGE-default} 7781 case $enableval in 7782 yes) enable_shared=yes ;; 7783 no) enable_shared=no ;; 7784 *) 7785 enable_shared=no 7786 # Look at the argument we got. We use all the common list separators. 7787 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7788 for pkg in $enableval; do 7789 IFS="$lt_save_ifs" 7790 if test "X$pkg" = "X$p"; then 7791 enable_shared=yes 7792 fi 7793 done 7794 IFS="$lt_save_ifs" 7795 ;; 7796 esac 7797else 7798 enable_shared=yes 7799fi 7800 7801 7802 7803 7804 7805 7806 7807 7808 7809 # Check whether --enable-static was given. 7810if test "${enable_static+set}" = set; then : 7811 enableval=$enable_static; p=${PACKAGE-default} 7812 case $enableval in 7813 yes) enable_static=yes ;; 7814 no) enable_static=no ;; 7815 *) 7816 enable_static=no 7817 # Look at the argument we got. We use all the common list separators. 7818 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7819 for pkg in $enableval; do 7820 IFS="$lt_save_ifs" 7821 if test "X$pkg" = "X$p"; then 7822 enable_static=yes 7823 fi 7824 done 7825 IFS="$lt_save_ifs" 7826 ;; 7827 esac 7828else 7829 enable_static=yes 7830fi 7831 7832 7833 7834 7835 7836 7837 7838 7839 7840 7841# Check whether --with-pic was given. 7842if test "${with_pic+set}" = set; then : 7843 withval=$with_pic; lt_p=${PACKAGE-default} 7844 case $withval in 7845 yes|no) pic_mode=$withval ;; 7846 *) 7847 pic_mode=default 7848 # Look at the argument we got. We use all the common list separators. 7849 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7850 for lt_pkg in $withval; do 7851 IFS="$lt_save_ifs" 7852 if test "X$lt_pkg" = "X$lt_p"; then 7853 pic_mode=yes 7854 fi 7855 done 7856 IFS="$lt_save_ifs" 7857 ;; 7858 esac 7859else 7860 pic_mode=default 7861fi 7862 7863 7864test -z "$pic_mode" && pic_mode=default 7865 7866 7867 7868 7869 7870 7871 7872 # Check whether --enable-fast-install was given. 7873if test "${enable_fast_install+set}" = set; then : 7874 enableval=$enable_fast_install; p=${PACKAGE-default} 7875 case $enableval in 7876 yes) enable_fast_install=yes ;; 7877 no) enable_fast_install=no ;; 7878 *) 7879 enable_fast_install=no 7880 # Look at the argument we got. We use all the common list separators. 7881 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7882 for pkg in $enableval; do 7883 IFS="$lt_save_ifs" 7884 if test "X$pkg" = "X$p"; then 7885 enable_fast_install=yes 7886 fi 7887 done 7888 IFS="$lt_save_ifs" 7889 ;; 7890 esac 7891else 7892 enable_fast_install=yes 7893fi 7894 7895 7896 7897 7898 7899 7900 7901 7902 7903 7904 7905# This can be used to rebuild libtool when needed 7906LIBTOOL_DEPS="$ltmain" 7907 7908# Always use our own libtool. 7909LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932 7933 7934 7935 7936 7937 7938 7939 7940test -z "$LN_S" && LN_S="ln -s" 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955if test -n "${ZSH_VERSION+set}" ; then 7956 setopt NO_GLOB_SUBST 7957fi 7958 7959{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7960$as_echo_n "checking for objdir... " >&6; } 7961if ${lt_cv_objdir+:} false; then : 7962 $as_echo_n "(cached) " >&6 7963else 7964 rm -f .libs 2>/dev/null 7965mkdir .libs 2>/dev/null 7966if test -d .libs; then 7967 lt_cv_objdir=.libs 7968else 7969 # MS-DOS does not allow filenames that begin with a dot. 7970 lt_cv_objdir=_libs 7971fi 7972rmdir .libs 2>/dev/null 7973fi 7974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7975$as_echo "$lt_cv_objdir" >&6; } 7976objdir=$lt_cv_objdir 7977 7978 7979 7980 7981 7982cat >>confdefs.h <<_ACEOF 7983#define LT_OBJDIR "$lt_cv_objdir/" 7984_ACEOF 7985 7986 7987 7988 7989case $host_os in 7990aix3*) 7991 # AIX sometimes has problems with the GCC collect2 program. For some 7992 # reason, if we set the COLLECT_NAMES environment variable, the problems 7993 # vanish in a puff of smoke. 7994 if test "X${COLLECT_NAMES+set}" != Xset; then 7995 COLLECT_NAMES= 7996 export COLLECT_NAMES 7997 fi 7998 ;; 7999esac 8000 8001# Global variables: 8002ofile=libtool 8003can_build_shared=yes 8004 8005# All known linkers require a `.a' archive for static linking (except MSVC, 8006# which needs '.lib'). 8007libext=a 8008 8009with_gnu_ld="$lt_cv_prog_gnu_ld" 8010 8011old_CC="$CC" 8012old_CFLAGS="$CFLAGS" 8013 8014# Set sane defaults for various variables 8015test -z "$CC" && CC=cc 8016test -z "$LTCC" && LTCC=$CC 8017test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8018test -z "$LD" && LD=ld 8019test -z "$ac_objext" && ac_objext=o 8020 8021for cc_temp in $compiler""; do 8022 case $cc_temp in 8023 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8024 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8025 \-*) ;; 8026 *) break;; 8027 esac 8028done 8029cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8030 8031 8032# Only perform the check for file, if the check method requires it 8033test -z "$MAGIC_CMD" && MAGIC_CMD=file 8034case $deplibs_check_method in 8035file_magic*) 8036 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8038$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8039if ${lt_cv_path_MAGIC_CMD+:} false; then : 8040 $as_echo_n "(cached) " >&6 8041else 8042 case $MAGIC_CMD in 8043[\\/*] | ?:[\\/]*) 8044 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8045 ;; 8046*) 8047 lt_save_MAGIC_CMD="$MAGIC_CMD" 8048 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8049 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8050 for ac_dir in $ac_dummy; do 8051 IFS="$lt_save_ifs" 8052 test -z "$ac_dir" && ac_dir=. 8053 if test -f $ac_dir/${ac_tool_prefix}file; then 8054 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8055 if test -n "$file_magic_test_file"; then 8056 case $deplibs_check_method in 8057 "file_magic "*) 8058 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8059 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8060 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8061 $EGREP "$file_magic_regex" > /dev/null; then 8062 : 8063 else 8064 cat <<_LT_EOF 1>&2 8065 8066*** Warning: the command libtool uses to detect shared libraries, 8067*** $file_magic_cmd, produces output that libtool cannot recognize. 8068*** The result is that libtool may fail to recognize shared libraries 8069*** as such. This will affect the creation of libtool libraries that 8070*** depend on shared libraries, but programs linked with such libtool 8071*** libraries will work regardless of this problem. Nevertheless, you 8072*** may want to report the problem to your system manager and/or to 8073*** bug-libtool@gnu.org 8074 8075_LT_EOF 8076 fi ;; 8077 esac 8078 fi 8079 break 8080 fi 8081 done 8082 IFS="$lt_save_ifs" 8083 MAGIC_CMD="$lt_save_MAGIC_CMD" 8084 ;; 8085esac 8086fi 8087 8088MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8089if test -n "$MAGIC_CMD"; then 8090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8091$as_echo "$MAGIC_CMD" >&6; } 8092else 8093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8094$as_echo "no" >&6; } 8095fi 8096 8097 8098 8099 8100 8101if test -z "$lt_cv_path_MAGIC_CMD"; then 8102 if test -n "$ac_tool_prefix"; then 8103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8104$as_echo_n "checking for file... " >&6; } 8105if ${lt_cv_path_MAGIC_CMD+:} false; then : 8106 $as_echo_n "(cached) " >&6 8107else 8108 case $MAGIC_CMD in 8109[\\/*] | ?:[\\/]*) 8110 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8111 ;; 8112*) 8113 lt_save_MAGIC_CMD="$MAGIC_CMD" 8114 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8115 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8116 for ac_dir in $ac_dummy; do 8117 IFS="$lt_save_ifs" 8118 test -z "$ac_dir" && ac_dir=. 8119 if test -f $ac_dir/file; then 8120 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8121 if test -n "$file_magic_test_file"; then 8122 case $deplibs_check_method in 8123 "file_magic "*) 8124 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8125 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8126 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8127 $EGREP "$file_magic_regex" > /dev/null; then 8128 : 8129 else 8130 cat <<_LT_EOF 1>&2 8131 8132*** Warning: the command libtool uses to detect shared libraries, 8133*** $file_magic_cmd, produces output that libtool cannot recognize. 8134*** The result is that libtool may fail to recognize shared libraries 8135*** as such. This will affect the creation of libtool libraries that 8136*** depend on shared libraries, but programs linked with such libtool 8137*** libraries will work regardless of this problem. Nevertheless, you 8138*** may want to report the problem to your system manager and/or to 8139*** bug-libtool@gnu.org 8140 8141_LT_EOF 8142 fi ;; 8143 esac 8144 fi 8145 break 8146 fi 8147 done 8148 IFS="$lt_save_ifs" 8149 MAGIC_CMD="$lt_save_MAGIC_CMD" 8150 ;; 8151esac 8152fi 8153 8154MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8155if test -n "$MAGIC_CMD"; then 8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8157$as_echo "$MAGIC_CMD" >&6; } 8158else 8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8160$as_echo "no" >&6; } 8161fi 8162 8163 8164 else 8165 MAGIC_CMD=: 8166 fi 8167fi 8168 8169 fi 8170 ;; 8171esac 8172 8173# Use C for the default configuration in the libtool script 8174 8175lt_save_CC="$CC" 8176ac_ext=c 8177ac_cpp='$CPP $CPPFLAGS' 8178ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8179ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8180ac_compiler_gnu=$ac_cv_c_compiler_gnu 8181 8182 8183# Source file extension for C test sources. 8184ac_ext=c 8185 8186# Object file extension for compiled C test sources. 8187objext=o 8188objext=$objext 8189 8190# Code to be used in simple compile tests 8191lt_simple_compile_test_code="int some_variable = 0;" 8192 8193# Code to be used in simple link tests 8194lt_simple_link_test_code='int main(){return(0);}' 8195 8196 8197 8198 8199 8200 8201 8202# If no C compiler was specified, use CC. 8203LTCC=${LTCC-"$CC"} 8204 8205# If no C compiler flags were specified, use CFLAGS. 8206LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8207 8208# Allow CC to be a program name with arguments. 8209compiler=$CC 8210 8211# Save the default compiler, since it gets overwritten when the other 8212# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8213compiler_DEFAULT=$CC 8214 8215# save warnings/boilerplate of simple test code 8216ac_outfile=conftest.$ac_objext 8217echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8218eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8219_lt_compiler_boilerplate=`cat conftest.err` 8220$RM conftest* 8221 8222ac_outfile=conftest.$ac_objext 8223echo "$lt_simple_link_test_code" >conftest.$ac_ext 8224eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8225_lt_linker_boilerplate=`cat conftest.err` 8226$RM -r conftest* 8227 8228 8229## CAVEAT EMPTOR: 8230## There is no encapsulation within the following macros, do not change 8231## the running order or otherwise move them around unless you know exactly 8232## what you are doing... 8233if test -n "$compiler"; then 8234 8235lt_prog_compiler_no_builtin_flag= 8236 8237if test "$GCC" = yes; then 8238 case $cc_basename in 8239 nvcc*) 8240 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8241 *) 8242 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8243 esac 8244 8245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8246$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8247if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 8248 $as_echo_n "(cached) " >&6 8249else 8250 lt_cv_prog_compiler_rtti_exceptions=no 8251 ac_outfile=conftest.$ac_objext 8252 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8253 lt_compiler_flag="-fno-rtti -fno-exceptions" 8254 # Insert the option either (1) after the last *FLAGS variable, or 8255 # (2) before a word containing "conftest.", or (3) at the end. 8256 # Note that $ac_compile itself does not contain backslashes and begins 8257 # with a dollar sign (not a hyphen), so the echo should work correctly. 8258 # The option is referenced via a variable to avoid confusing sed. 8259 lt_compile=`echo "$ac_compile" | $SED \ 8260 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8261 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8262 -e 's:$: $lt_compiler_flag:'` 8263 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8264 (eval "$lt_compile" 2>conftest.err) 8265 ac_status=$? 8266 cat conftest.err >&5 8267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8268 if (exit $ac_status) && test -s "$ac_outfile"; then 8269 # The compiler can only warn and ignore the option if not recognized 8270 # So say no if there are warnings other than the usual output. 8271 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8272 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8273 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8274 lt_cv_prog_compiler_rtti_exceptions=yes 8275 fi 8276 fi 8277 $RM conftest* 8278 8279fi 8280{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8281$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8282 8283if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8284 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8285else 8286 : 8287fi 8288 8289fi 8290 8291 8292 8293 8294 8295 8296 lt_prog_compiler_wl= 8297lt_prog_compiler_pic= 8298lt_prog_compiler_static= 8299 8300 8301 if test "$GCC" = yes; then 8302 lt_prog_compiler_wl='-Wl,' 8303 lt_prog_compiler_static='-static' 8304 8305 case $host_os in 8306 aix*) 8307 # All AIX code is PIC. 8308 if test "$host_cpu" = ia64; then 8309 # AIX 5 now supports IA64 processor 8310 lt_prog_compiler_static='-Bstatic' 8311 fi 8312 ;; 8313 8314 amigaos*) 8315 case $host_cpu in 8316 powerpc) 8317 # see comment about AmigaOS4 .so support 8318 lt_prog_compiler_pic='-fPIC' 8319 ;; 8320 m68k) 8321 # FIXME: we need at least 68020 code to build shared libraries, but 8322 # adding the `-m68020' flag to GCC prevents building anything better, 8323 # like `-m68040'. 8324 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8325 ;; 8326 esac 8327 ;; 8328 8329 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8330 # PIC is the default for these OSes. 8331 ;; 8332 8333 mingw* | cygwin* | pw32* | os2* | cegcc*) 8334 # This hack is so that the source file can tell whether it is being 8335 # built for inclusion in a dll (and should export symbols for example). 8336 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8337 # (--disable-auto-import) libraries 8338 lt_prog_compiler_pic='-DDLL_EXPORT' 8339 ;; 8340 8341 darwin* | rhapsody*) 8342 # PIC is the default on this platform 8343 # Common symbols not allowed in MH_DYLIB files 8344 lt_prog_compiler_pic='-fno-common' 8345 ;; 8346 8347 haiku*) 8348 # PIC is the default for Haiku. 8349 # The "-static" flag exists, but is broken. 8350 lt_prog_compiler_static= 8351 ;; 8352 8353 hpux*) 8354 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8355 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8356 # sets the default TLS model and affects inlining. 8357 case $host_cpu in 8358 hppa*64*) 8359 # +Z the default 8360 ;; 8361 *) 8362 lt_prog_compiler_pic='-fPIC' 8363 ;; 8364 esac 8365 ;; 8366 8367 interix[3-9]*) 8368 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8369 # Instead, we relocate shared libraries at runtime. 8370 ;; 8371 8372 msdosdjgpp*) 8373 # Just because we use GCC doesn't mean we suddenly get shared libraries 8374 # on systems that don't support them. 8375 lt_prog_compiler_can_build_shared=no 8376 enable_shared=no 8377 ;; 8378 8379 *nto* | *qnx*) 8380 # QNX uses GNU C++, but need to define -shared option too, otherwise 8381 # it will coredump. 8382 lt_prog_compiler_pic='-fPIC -shared' 8383 ;; 8384 8385 sysv4*MP*) 8386 if test -d /usr/nec; then 8387 lt_prog_compiler_pic=-Kconform_pic 8388 fi 8389 ;; 8390 8391 *) 8392 lt_prog_compiler_pic='-fPIC' 8393 ;; 8394 esac 8395 8396 case $cc_basename in 8397 nvcc*) # Cuda Compiler Driver 2.2 8398 lt_prog_compiler_wl='-Xlinker ' 8399 if test -n "$lt_prog_compiler_pic"; then 8400 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 8401 fi 8402 ;; 8403 esac 8404 else 8405 # PORTME Check for flag to pass linker flags through the system compiler. 8406 case $host_os in 8407 aix*) 8408 lt_prog_compiler_wl='-Wl,' 8409 if test "$host_cpu" = ia64; then 8410 # AIX 5 now supports IA64 processor 8411 lt_prog_compiler_static='-Bstatic' 8412 else 8413 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8414 fi 8415 ;; 8416 8417 mingw* | cygwin* | pw32* | os2* | cegcc*) 8418 # This hack is so that the source file can tell whether it is being 8419 # built for inclusion in a dll (and should export symbols for example). 8420 lt_prog_compiler_pic='-DDLL_EXPORT' 8421 ;; 8422 8423 hpux9* | hpux10* | hpux11*) 8424 lt_prog_compiler_wl='-Wl,' 8425 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8426 # not for PA HP-UX. 8427 case $host_cpu in 8428 hppa*64*|ia64*) 8429 # +Z the default 8430 ;; 8431 *) 8432 lt_prog_compiler_pic='+Z' 8433 ;; 8434 esac 8435 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8436 lt_prog_compiler_static='${wl}-a ${wl}archive' 8437 ;; 8438 8439 irix5* | irix6* | nonstopux*) 8440 lt_prog_compiler_wl='-Wl,' 8441 # PIC (with -KPIC) is the default. 8442 lt_prog_compiler_static='-non_shared' 8443 ;; 8444 8445 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8446 case $cc_basename in 8447 # old Intel for x86_64 which still supported -KPIC. 8448 ecc*) 8449 lt_prog_compiler_wl='-Wl,' 8450 lt_prog_compiler_pic='-KPIC' 8451 lt_prog_compiler_static='-static' 8452 ;; 8453 # icc used to be incompatible with GCC. 8454 # ICC 10 doesn't accept -KPIC any more. 8455 icc* | ifort*) 8456 lt_prog_compiler_wl='-Wl,' 8457 lt_prog_compiler_pic='-fPIC' 8458 lt_prog_compiler_static='-static' 8459 ;; 8460 # Lahey Fortran 8.1. 8461 lf95*) 8462 lt_prog_compiler_wl='-Wl,' 8463 lt_prog_compiler_pic='--shared' 8464 lt_prog_compiler_static='--static' 8465 ;; 8466 nagfor*) 8467 # NAG Fortran compiler 8468 lt_prog_compiler_wl='-Wl,-Wl,,' 8469 lt_prog_compiler_pic='-PIC' 8470 lt_prog_compiler_static='-Bstatic' 8471 ;; 8472 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8473 # Portland Group compilers (*not* the Pentium gcc compiler, 8474 # which looks to be a dead project) 8475 lt_prog_compiler_wl='-Wl,' 8476 lt_prog_compiler_pic='-fpic' 8477 lt_prog_compiler_static='-Bstatic' 8478 ;; 8479 ccc*) 8480 lt_prog_compiler_wl='-Wl,' 8481 # All Alpha code is PIC. 8482 lt_prog_compiler_static='-non_shared' 8483 ;; 8484 xl* | bgxl* | bgf* | mpixl*) 8485 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8486 lt_prog_compiler_wl='-Wl,' 8487 lt_prog_compiler_pic='-qpic' 8488 lt_prog_compiler_static='-qstaticlink' 8489 ;; 8490 *) 8491 case `$CC -V 2>&1 | sed 5q` in 8492 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 8493 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8494 lt_prog_compiler_pic='-KPIC' 8495 lt_prog_compiler_static='-Bstatic' 8496 lt_prog_compiler_wl='' 8497 ;; 8498 *Sun\ F* | *Sun*Fortran*) 8499 lt_prog_compiler_pic='-KPIC' 8500 lt_prog_compiler_static='-Bstatic' 8501 lt_prog_compiler_wl='-Qoption ld ' 8502 ;; 8503 *Sun\ C*) 8504 # Sun C 5.9 8505 lt_prog_compiler_pic='-KPIC' 8506 lt_prog_compiler_static='-Bstatic' 8507 lt_prog_compiler_wl='-Wl,' 8508 ;; 8509 *Intel*\ [CF]*Compiler*) 8510 lt_prog_compiler_wl='-Wl,' 8511 lt_prog_compiler_pic='-fPIC' 8512 lt_prog_compiler_static='-static' 8513 ;; 8514 *Portland\ Group*) 8515 lt_prog_compiler_wl='-Wl,' 8516 lt_prog_compiler_pic='-fpic' 8517 lt_prog_compiler_static='-Bstatic' 8518 ;; 8519 esac 8520 ;; 8521 esac 8522 ;; 8523 8524 newsos6) 8525 lt_prog_compiler_pic='-KPIC' 8526 lt_prog_compiler_static='-Bstatic' 8527 ;; 8528 8529 *nto* | *qnx*) 8530 # QNX uses GNU C++, but need to define -shared option too, otherwise 8531 # it will coredump. 8532 lt_prog_compiler_pic='-fPIC -shared' 8533 ;; 8534 8535 osf3* | osf4* | osf5*) 8536 lt_prog_compiler_wl='-Wl,' 8537 # All OSF/1 code is PIC. 8538 lt_prog_compiler_static='-non_shared' 8539 ;; 8540 8541 rdos*) 8542 lt_prog_compiler_static='-non_shared' 8543 ;; 8544 8545 solaris*) 8546 lt_prog_compiler_pic='-KPIC' 8547 lt_prog_compiler_static='-Bstatic' 8548 case $cc_basename in 8549 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8550 lt_prog_compiler_wl='-Qoption ld ';; 8551 *) 8552 lt_prog_compiler_wl='-Wl,';; 8553 esac 8554 ;; 8555 8556 sunos4*) 8557 lt_prog_compiler_wl='-Qoption ld ' 8558 lt_prog_compiler_pic='-PIC' 8559 lt_prog_compiler_static='-Bstatic' 8560 ;; 8561 8562 sysv4 | sysv4.2uw2* | sysv4.3*) 8563 lt_prog_compiler_wl='-Wl,' 8564 lt_prog_compiler_pic='-KPIC' 8565 lt_prog_compiler_static='-Bstatic' 8566 ;; 8567 8568 sysv4*MP*) 8569 if test -d /usr/nec ;then 8570 lt_prog_compiler_pic='-Kconform_pic' 8571 lt_prog_compiler_static='-Bstatic' 8572 fi 8573 ;; 8574 8575 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8576 lt_prog_compiler_wl='-Wl,' 8577 lt_prog_compiler_pic='-KPIC' 8578 lt_prog_compiler_static='-Bstatic' 8579 ;; 8580 8581 unicos*) 8582 lt_prog_compiler_wl='-Wl,' 8583 lt_prog_compiler_can_build_shared=no 8584 ;; 8585 8586 uts4*) 8587 lt_prog_compiler_pic='-pic' 8588 lt_prog_compiler_static='-Bstatic' 8589 ;; 8590 8591 *) 8592 lt_prog_compiler_can_build_shared=no 8593 ;; 8594 esac 8595 fi 8596 8597case $host_os in 8598 # For platforms which do not support PIC, -DPIC is meaningless: 8599 *djgpp*) 8600 lt_prog_compiler_pic= 8601 ;; 8602 *) 8603 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8604 ;; 8605esac 8606 8607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8608$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8609if ${lt_cv_prog_compiler_pic+:} false; then : 8610 $as_echo_n "(cached) " >&6 8611else 8612 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8613fi 8614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8615$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8616lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8617 8618# 8619# Check to make sure the PIC flag actually works. 8620# 8621if test -n "$lt_prog_compiler_pic"; then 8622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8623$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8624if ${lt_cv_prog_compiler_pic_works+:} false; then : 8625 $as_echo_n "(cached) " >&6 8626else 8627 lt_cv_prog_compiler_pic_works=no 8628 ac_outfile=conftest.$ac_objext 8629 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8630 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8631 # Insert the option either (1) after the last *FLAGS variable, or 8632 # (2) before a word containing "conftest.", or (3) at the end. 8633 # Note that $ac_compile itself does not contain backslashes and begins 8634 # with a dollar sign (not a hyphen), so the echo should work correctly. 8635 # The option is referenced via a variable to avoid confusing sed. 8636 lt_compile=`echo "$ac_compile" | $SED \ 8637 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8638 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8639 -e 's:$: $lt_compiler_flag:'` 8640 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8641 (eval "$lt_compile" 2>conftest.err) 8642 ac_status=$? 8643 cat conftest.err >&5 8644 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8645 if (exit $ac_status) && test -s "$ac_outfile"; then 8646 # The compiler can only warn and ignore the option if not recognized 8647 # So say no if there are warnings other than the usual output. 8648 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8649 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8650 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8651 lt_cv_prog_compiler_pic_works=yes 8652 fi 8653 fi 8654 $RM conftest* 8655 8656fi 8657{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8658$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8659 8660if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8661 case $lt_prog_compiler_pic in 8662 "" | " "*) ;; 8663 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8664 esac 8665else 8666 lt_prog_compiler_pic= 8667 lt_prog_compiler_can_build_shared=no 8668fi 8669 8670fi 8671 8672 8673 8674 8675 8676 8677 8678 8679 8680 8681 8682# 8683# Check to make sure the static flag actually works. 8684# 8685wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8686{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8687$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8688if ${lt_cv_prog_compiler_static_works+:} false; then : 8689 $as_echo_n "(cached) " >&6 8690else 8691 lt_cv_prog_compiler_static_works=no 8692 save_LDFLAGS="$LDFLAGS" 8693 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8694 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8695 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8696 # The linker can only warn and ignore the option if not recognized 8697 # So say no if there are warnings 8698 if test -s conftest.err; then 8699 # Append any errors to the config.log. 8700 cat conftest.err 1>&5 8701 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8702 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8703 if diff conftest.exp conftest.er2 >/dev/null; then 8704 lt_cv_prog_compiler_static_works=yes 8705 fi 8706 else 8707 lt_cv_prog_compiler_static_works=yes 8708 fi 8709 fi 8710 $RM -r conftest* 8711 LDFLAGS="$save_LDFLAGS" 8712 8713fi 8714{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8715$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8716 8717if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8718 : 8719else 8720 lt_prog_compiler_static= 8721fi 8722 8723 8724 8725 8726 8727 8728 8729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8730$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8731if ${lt_cv_prog_compiler_c_o+:} false; then : 8732 $as_echo_n "(cached) " >&6 8733else 8734 lt_cv_prog_compiler_c_o=no 8735 $RM -r conftest 2>/dev/null 8736 mkdir conftest 8737 cd conftest 8738 mkdir out 8739 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8740 8741 lt_compiler_flag="-o out/conftest2.$ac_objext" 8742 # Insert the option either (1) after the last *FLAGS variable, or 8743 # (2) before a word containing "conftest.", or (3) at the end. 8744 # Note that $ac_compile itself does not contain backslashes and begins 8745 # with a dollar sign (not a hyphen), so the echo should work correctly. 8746 lt_compile=`echo "$ac_compile" | $SED \ 8747 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8748 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8749 -e 's:$: $lt_compiler_flag:'` 8750 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8751 (eval "$lt_compile" 2>out/conftest.err) 8752 ac_status=$? 8753 cat out/conftest.err >&5 8754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8755 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8756 then 8757 # The compiler can only warn and ignore the option if not recognized 8758 # So say no if there are warnings 8759 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8760 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8761 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8762 lt_cv_prog_compiler_c_o=yes 8763 fi 8764 fi 8765 chmod u+w . 2>&5 8766 $RM conftest* 8767 # SGI C++ compiler will create directory out/ii_files/ for 8768 # template instantiation 8769 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8770 $RM out/* && rmdir out 8771 cd .. 8772 $RM -r conftest 8773 $RM conftest* 8774 8775fi 8776{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8777$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8778 8779 8780 8781 8782 8783 8784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8785$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8786if ${lt_cv_prog_compiler_c_o+:} false; then : 8787 $as_echo_n "(cached) " >&6 8788else 8789 lt_cv_prog_compiler_c_o=no 8790 $RM -r conftest 2>/dev/null 8791 mkdir conftest 8792 cd conftest 8793 mkdir out 8794 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8795 8796 lt_compiler_flag="-o out/conftest2.$ac_objext" 8797 # Insert the option either (1) after the last *FLAGS variable, or 8798 # (2) before a word containing "conftest.", or (3) at the end. 8799 # Note that $ac_compile itself does not contain backslashes and begins 8800 # with a dollar sign (not a hyphen), so the echo should work correctly. 8801 lt_compile=`echo "$ac_compile" | $SED \ 8802 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8803 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8804 -e 's:$: $lt_compiler_flag:'` 8805 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8806 (eval "$lt_compile" 2>out/conftest.err) 8807 ac_status=$? 8808 cat out/conftest.err >&5 8809 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8810 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8811 then 8812 # The compiler can only warn and ignore the option if not recognized 8813 # So say no if there are warnings 8814 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8815 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8816 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8817 lt_cv_prog_compiler_c_o=yes 8818 fi 8819 fi 8820 chmod u+w . 2>&5 8821 $RM conftest* 8822 # SGI C++ compiler will create directory out/ii_files/ for 8823 # template instantiation 8824 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8825 $RM out/* && rmdir out 8826 cd .. 8827 $RM -r conftest 8828 $RM conftest* 8829 8830fi 8831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8832$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8833 8834 8835 8836 8837hard_links="nottested" 8838if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8839 # do not overwrite the value of need_locks provided by the user 8840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8841$as_echo_n "checking if we can lock with hard links... " >&6; } 8842 hard_links=yes 8843 $RM conftest* 8844 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8845 touch conftest.a 8846 ln conftest.a conftest.b 2>&5 || hard_links=no 8847 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8848 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8849$as_echo "$hard_links" >&6; } 8850 if test "$hard_links" = no; then 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8852$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8853 need_locks=warn 8854 fi 8855else 8856 need_locks=no 8857fi 8858 8859 8860 8861 8862 8863 8864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8865$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8866 8867 runpath_var= 8868 allow_undefined_flag= 8869 always_export_symbols=no 8870 archive_cmds= 8871 archive_expsym_cmds= 8872 compiler_needs_object=no 8873 enable_shared_with_static_runtimes=no 8874 export_dynamic_flag_spec= 8875 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8876 hardcode_automatic=no 8877 hardcode_direct=no 8878 hardcode_direct_absolute=no 8879 hardcode_libdir_flag_spec= 8880 hardcode_libdir_separator= 8881 hardcode_minus_L=no 8882 hardcode_shlibpath_var=unsupported 8883 inherit_rpath=no 8884 link_all_deplibs=unknown 8885 module_cmds= 8886 module_expsym_cmds= 8887 old_archive_from_new_cmds= 8888 old_archive_from_expsyms_cmds= 8889 thread_safe_flag_spec= 8890 whole_archive_flag_spec= 8891 # include_expsyms should be a list of space-separated symbols to be *always* 8892 # included in the symbol list 8893 include_expsyms= 8894 # exclude_expsyms can be an extended regexp of symbols to exclude 8895 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8896 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8897 # as well as any symbol that contains `d'. 8898 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8899 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8900 # platforms (ab)use it in PIC code, but their linkers get confused if 8901 # the symbol is explicitly referenced. Since portable code cannot 8902 # rely on this symbol name, it's probably fine to never include it in 8903 # preloaded symbol tables. 8904 # Exclude shared library initialization/finalization symbols. 8905 extract_expsyms_cmds= 8906 8907 case $host_os in 8908 cygwin* | mingw* | pw32* | cegcc*) 8909 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8910 # When not using gcc, we currently assume that we are using 8911 # Microsoft Visual C++. 8912 if test "$GCC" != yes; then 8913 with_gnu_ld=no 8914 fi 8915 ;; 8916 interix*) 8917 # we just hope/assume this is gcc and not c89 (= MSVC++) 8918 with_gnu_ld=yes 8919 ;; 8920 openbsd*) 8921 with_gnu_ld=no 8922 ;; 8923 esac 8924 8925 ld_shlibs=yes 8926 8927 # On some targets, GNU ld is compatible enough with the native linker 8928 # that we're better off using the native interface for both. 8929 lt_use_gnu_ld_interface=no 8930 if test "$with_gnu_ld" = yes; then 8931 case $host_os in 8932 aix*) 8933 # The AIX port of GNU ld has always aspired to compatibility 8934 # with the native linker. However, as the warning in the GNU ld 8935 # block says, versions before 2.19.5* couldn't really create working 8936 # shared libraries, regardless of the interface used. 8937 case `$LD -v 2>&1` in 8938 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8939 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8940 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8941 *) 8942 lt_use_gnu_ld_interface=yes 8943 ;; 8944 esac 8945 ;; 8946 *) 8947 lt_use_gnu_ld_interface=yes 8948 ;; 8949 esac 8950 fi 8951 8952 if test "$lt_use_gnu_ld_interface" = yes; then 8953 # If archive_cmds runs LD, not CC, wlarc should be empty 8954 wlarc='${wl}' 8955 8956 # Set some defaults for GNU ld with shared library support. These 8957 # are reset later if shared libraries are not supported. Putting them 8958 # here allows them to be overridden if necessary. 8959 runpath_var=LD_RUN_PATH 8960 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8961 export_dynamic_flag_spec='${wl}--export-dynamic' 8962 # ancient GNU ld didn't support --whole-archive et. al. 8963 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8964 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8965 else 8966 whole_archive_flag_spec= 8967 fi 8968 supports_anon_versioning=no 8969 case `$LD -v 2>&1` in 8970 *GNU\ gold*) supports_anon_versioning=yes ;; 8971 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8972 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8973 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8974 *\ 2.11.*) ;; # other 2.11 versions 8975 *) supports_anon_versioning=yes ;; 8976 esac 8977 8978 # See if GNU ld supports shared libraries. 8979 case $host_os in 8980 aix[3-9]*) 8981 # On AIX/PPC, the GNU linker is very broken 8982 if test "$host_cpu" != ia64; then 8983 ld_shlibs=no 8984 cat <<_LT_EOF 1>&2 8985 8986*** Warning: the GNU linker, at least up to release 2.19, is reported 8987*** to be unable to reliably create shared libraries on AIX. 8988*** Therefore, libtool is disabling shared libraries support. If you 8989*** really care for shared libraries, you may want to install binutils 8990*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8991*** You will then need to restart the configuration process. 8992 8993_LT_EOF 8994 fi 8995 ;; 8996 8997 amigaos*) 8998 case $host_cpu in 8999 powerpc) 9000 # see comment about AmigaOS4 .so support 9001 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9002 archive_expsym_cmds='' 9003 ;; 9004 m68k) 9005 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)' 9006 hardcode_libdir_flag_spec='-L$libdir' 9007 hardcode_minus_L=yes 9008 ;; 9009 esac 9010 ;; 9011 9012 beos*) 9013 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9014 allow_undefined_flag=unsupported 9015 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9016 # support --undefined. This deserves some investigation. FIXME 9017 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9018 else 9019 ld_shlibs=no 9020 fi 9021 ;; 9022 9023 cygwin* | mingw* | pw32* | cegcc*) 9024 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9025 # as there is no search path for DLLs. 9026 hardcode_libdir_flag_spec='-L$libdir' 9027 export_dynamic_flag_spec='${wl}--export-all-symbols' 9028 allow_undefined_flag=unsupported 9029 always_export_symbols=no 9030 enable_shared_with_static_runtimes=yes 9031 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 9032 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 9033 9034 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9035 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9036 # If the export-symbols file already is a .def file (1st line 9037 # is EXPORTS), use it as is; otherwise, prepend... 9038 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9039 cp $export_symbols $output_objdir/$soname.def; 9040 else 9041 echo EXPORTS > $output_objdir/$soname.def; 9042 cat $export_symbols >> $output_objdir/$soname.def; 9043 fi~ 9044 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9045 else 9046 ld_shlibs=no 9047 fi 9048 ;; 9049 9050 haiku*) 9051 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9052 link_all_deplibs=yes 9053 ;; 9054 9055 interix[3-9]*) 9056 hardcode_direct=no 9057 hardcode_shlibpath_var=no 9058 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9059 export_dynamic_flag_spec='${wl}-E' 9060 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9061 # Instead, shared libraries are loaded at an image base (0x10000000 by 9062 # default) and relocated if they conflict, which is a slow very memory 9063 # consuming and fragmenting process. To avoid this, we pick a random, 9064 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9065 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9066 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9067 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' 9068 ;; 9069 9070 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9071 tmp_diet=no 9072 if test "$host_os" = linux-dietlibc; then 9073 case $cc_basename in 9074 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9075 esac 9076 fi 9077 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9078 && test "$tmp_diet" = no 9079 then 9080 tmp_addflag=' $pic_flag' 9081 tmp_sharedflag='-shared' 9082 case $cc_basename,$host_cpu in 9083 pgcc*) # Portland Group C compiler 9084 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' 9085 tmp_addflag=' $pic_flag' 9086 ;; 9087 pgf77* | pgf90* | pgf95* | pgfortran*) 9088 # Portland Group f77 and f90 compilers 9089 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' 9090 tmp_addflag=' $pic_flag -Mnomain' ;; 9091 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9092 tmp_addflag=' -i_dynamic' ;; 9093 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9094 tmp_addflag=' -i_dynamic -nofor_main' ;; 9095 ifc* | ifort*) # Intel Fortran compiler 9096 tmp_addflag=' -nofor_main' ;; 9097 lf95*) # Lahey Fortran 8.1 9098 whole_archive_flag_spec= 9099 tmp_sharedflag='--shared' ;; 9100 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9101 tmp_sharedflag='-qmkshrobj' 9102 tmp_addflag= ;; 9103 nvcc*) # Cuda Compiler Driver 2.2 9104 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' 9105 compiler_needs_object=yes 9106 ;; 9107 esac 9108 case `$CC -V 2>&1 | sed 5q` in 9109 *Sun\ C*) # Sun C 5.9 9110 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' 9111 compiler_needs_object=yes 9112 tmp_sharedflag='-G' ;; 9113 *Sun\ F*) # Sun Fortran 8.3 9114 tmp_sharedflag='-G' ;; 9115 esac 9116 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9117 9118 if test "x$supports_anon_versioning" = xyes; then 9119 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9120 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9121 echo "local: *; };" >> $output_objdir/$libname.ver~ 9122 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9123 fi 9124 9125 case $cc_basename in 9126 xlf* | bgf* | bgxlf* | mpixlf*) 9127 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9128 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9129 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9130 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9131 if test "x$supports_anon_versioning" = xyes; then 9132 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9133 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9134 echo "local: *; };" >> $output_objdir/$libname.ver~ 9135 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9136 fi 9137 ;; 9138 esac 9139 else 9140 ld_shlibs=no 9141 fi 9142 ;; 9143 9144 netbsd*) 9145 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9146 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9147 wlarc= 9148 else 9149 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9150 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9151 fi 9152 ;; 9153 9154 solaris*) 9155 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9156 ld_shlibs=no 9157 cat <<_LT_EOF 1>&2 9158 9159*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9160*** create shared libraries on Solaris systems. Therefore, libtool 9161*** is disabling shared libraries support. We urge you to upgrade GNU 9162*** binutils to release 2.9.1 or newer. Another option is to modify 9163*** your PATH or compiler configuration so that the native linker is 9164*** used, and then restart. 9165 9166_LT_EOF 9167 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9168 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9169 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9170 else 9171 ld_shlibs=no 9172 fi 9173 ;; 9174 9175 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9176 case `$LD -v 2>&1` in 9177 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9178 ld_shlibs=no 9179 cat <<_LT_EOF 1>&2 9180 9181*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9182*** reliably create shared libraries on SCO systems. Therefore, libtool 9183*** is disabling shared libraries support. We urge you to upgrade GNU 9184*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9185*** your PATH or compiler configuration so that the native linker is 9186*** used, and then restart. 9187 9188_LT_EOF 9189 ;; 9190 *) 9191 # For security reasons, it is highly recommended that you always 9192 # use absolute paths for naming shared libraries, and exclude the 9193 # DT_RUNPATH tag from executables and libraries. But doing so 9194 # requires that you compile everything twice, which is a pain. 9195 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9196 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9197 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9198 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9199 else 9200 ld_shlibs=no 9201 fi 9202 ;; 9203 esac 9204 ;; 9205 9206 sunos4*) 9207 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9208 wlarc= 9209 hardcode_direct=yes 9210 hardcode_shlibpath_var=no 9211 ;; 9212 9213 *) 9214 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9215 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9216 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9217 else 9218 ld_shlibs=no 9219 fi 9220 ;; 9221 esac 9222 9223 if test "$ld_shlibs" = no; then 9224 runpath_var= 9225 hardcode_libdir_flag_spec= 9226 export_dynamic_flag_spec= 9227 whole_archive_flag_spec= 9228 fi 9229 else 9230 # PORTME fill in a description of your system's linker (not GNU ld) 9231 case $host_os in 9232 aix3*) 9233 allow_undefined_flag=unsupported 9234 always_export_symbols=yes 9235 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' 9236 # Note: this linker hardcodes the directories in LIBPATH if there 9237 # are no directories specified by -L. 9238 hardcode_minus_L=yes 9239 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9240 # Neither direct hardcoding nor static linking is supported with a 9241 # broken collect2. 9242 hardcode_direct=unsupported 9243 fi 9244 ;; 9245 9246 aix[4-9]*) 9247 if test "$host_cpu" = ia64; then 9248 # On IA64, the linker does run time linking by default, so we don't 9249 # have to do anything special. 9250 aix_use_runtimelinking=no 9251 exp_sym_flag='-Bexport' 9252 no_entry_flag="" 9253 else 9254 # If we're using GNU nm, then we don't want the "-C" option. 9255 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9256 # Also, AIX nm treats weak defined symbols like other global 9257 # defined symbols, whereas GNU nm marks them as "W". 9258 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9259 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' 9260 else 9261 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' 9262 fi 9263 aix_use_runtimelinking=no 9264 9265 # Test if we are trying to use run time linking or normal 9266 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9267 # need to do runtime linking. 9268 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9269 for ld_flag in $LDFLAGS; do 9270 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9271 aix_use_runtimelinking=yes 9272 break 9273 fi 9274 done 9275 ;; 9276 esac 9277 9278 exp_sym_flag='-bexport' 9279 no_entry_flag='-bnoentry' 9280 fi 9281 9282 # When large executables or shared objects are built, AIX ld can 9283 # have problems creating the table of contents. If linking a library 9284 # or program results in "error TOC overflow" add -mminimal-toc to 9285 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9286 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9287 9288 archive_cmds='' 9289 hardcode_direct=yes 9290 hardcode_direct_absolute=yes 9291 hardcode_libdir_separator=':' 9292 link_all_deplibs=yes 9293 file_list_spec='${wl}-f,' 9294 9295 if test "$GCC" = yes; then 9296 case $host_os in aix4.[012]|aix4.[012].*) 9297 # We only want to do this on AIX 4.2 and lower, the check 9298 # below for broken collect2 doesn't work under 4.3+ 9299 collect2name=`${CC} -print-prog-name=collect2` 9300 if test -f "$collect2name" && 9301 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9302 then 9303 # We have reworked collect2 9304 : 9305 else 9306 # We have old collect2 9307 hardcode_direct=unsupported 9308 # It fails to find uninstalled libraries when the uninstalled 9309 # path is not listed in the libpath. Setting hardcode_minus_L 9310 # to unsupported forces relinking 9311 hardcode_minus_L=yes 9312 hardcode_libdir_flag_spec='-L$libdir' 9313 hardcode_libdir_separator= 9314 fi 9315 ;; 9316 esac 9317 shared_flag='-shared' 9318 if test "$aix_use_runtimelinking" = yes; then 9319 shared_flag="$shared_flag "'${wl}-G' 9320 fi 9321 else 9322 # not using gcc 9323 if test "$host_cpu" = ia64; then 9324 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9325 # chokes on -Wl,-G. The following line is correct: 9326 shared_flag='-G' 9327 else 9328 if test "$aix_use_runtimelinking" = yes; then 9329 shared_flag='${wl}-G' 9330 else 9331 shared_flag='${wl}-bM:SRE' 9332 fi 9333 fi 9334 fi 9335 9336 export_dynamic_flag_spec='${wl}-bexpall' 9337 # It seems that -bexpall does not export symbols beginning with 9338 # underscore (_), so it is better to generate a list of symbols to export. 9339 always_export_symbols=yes 9340 if test "$aix_use_runtimelinking" = yes; then 9341 # Warning - without using the other runtime loading flags (-brtl), 9342 # -berok will link without error, but may produce a broken library. 9343 allow_undefined_flag='-berok' 9344 # Determine the default libpath from the value encoded in an 9345 # empty executable. 9346 if test "${lt_cv_aix_libpath+set}" = set; then 9347 aix_libpath=$lt_cv_aix_libpath 9348else 9349 if ${lt_cv_aix_libpath_+:} false; then : 9350 $as_echo_n "(cached) " >&6 9351else 9352 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9353/* end confdefs.h. */ 9354 9355int 9356main () 9357{ 9358 9359 ; 9360 return 0; 9361} 9362_ACEOF 9363if ac_fn_c_try_link "$LINENO"; then : 9364 9365 lt_aix_libpath_sed=' 9366 /Import File Strings/,/^$/ { 9367 /^0/ { 9368 s/^0 *\([^ ]*\) *$/\1/ 9369 p 9370 } 9371 }' 9372 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9373 # Check for a 64-bit object if we didn't find anything. 9374 if test -z "$lt_cv_aix_libpath_"; then 9375 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9376 fi 9377fi 9378rm -f core conftest.err conftest.$ac_objext \ 9379 conftest$ac_exeext conftest.$ac_ext 9380 if test -z "$lt_cv_aix_libpath_"; then 9381 lt_cv_aix_libpath_="/usr/lib:/lib" 9382 fi 9383 9384fi 9385 9386 aix_libpath=$lt_cv_aix_libpath_ 9387fi 9388 9389 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9390 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" 9391 else 9392 if test "$host_cpu" = ia64; then 9393 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9394 allow_undefined_flag="-z nodefs" 9395 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" 9396 else 9397 # Determine the default libpath from the value encoded in an 9398 # empty executable. 9399 if test "${lt_cv_aix_libpath+set}" = set; then 9400 aix_libpath=$lt_cv_aix_libpath 9401else 9402 if ${lt_cv_aix_libpath_+:} false; then : 9403 $as_echo_n "(cached) " >&6 9404else 9405 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9406/* end confdefs.h. */ 9407 9408int 9409main () 9410{ 9411 9412 ; 9413 return 0; 9414} 9415_ACEOF 9416if ac_fn_c_try_link "$LINENO"; then : 9417 9418 lt_aix_libpath_sed=' 9419 /Import File Strings/,/^$/ { 9420 /^0/ { 9421 s/^0 *\([^ ]*\) *$/\1/ 9422 p 9423 } 9424 }' 9425 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9426 # Check for a 64-bit object if we didn't find anything. 9427 if test -z "$lt_cv_aix_libpath_"; then 9428 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9429 fi 9430fi 9431rm -f core conftest.err conftest.$ac_objext \ 9432 conftest$ac_exeext conftest.$ac_ext 9433 if test -z "$lt_cv_aix_libpath_"; then 9434 lt_cv_aix_libpath_="/usr/lib:/lib" 9435 fi 9436 9437fi 9438 9439 aix_libpath=$lt_cv_aix_libpath_ 9440fi 9441 9442 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9443 # Warning - without using the other run time loading flags, 9444 # -berok will link without error, but may produce a broken library. 9445 no_undefined_flag=' ${wl}-bernotok' 9446 allow_undefined_flag=' ${wl}-berok' 9447 if test "$with_gnu_ld" = yes; then 9448 # We only use this code for GNU lds that support --whole-archive. 9449 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9450 else 9451 # Exported symbols can be pulled into shared objects from archives 9452 whole_archive_flag_spec='$convenience' 9453 fi 9454 archive_cmds_need_lc=yes 9455 # This is similar to how AIX traditionally builds its shared libraries. 9456 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' 9457 fi 9458 fi 9459 ;; 9460 9461 amigaos*) 9462 case $host_cpu in 9463 powerpc) 9464 # see comment about AmigaOS4 .so support 9465 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9466 archive_expsym_cmds='' 9467 ;; 9468 m68k) 9469 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)' 9470 hardcode_libdir_flag_spec='-L$libdir' 9471 hardcode_minus_L=yes 9472 ;; 9473 esac 9474 ;; 9475 9476 bsdi[45]*) 9477 export_dynamic_flag_spec=-rdynamic 9478 ;; 9479 9480 cygwin* | mingw* | pw32* | cegcc*) 9481 # When not using gcc, we currently assume that we are using 9482 # Microsoft Visual C++. 9483 # hardcode_libdir_flag_spec is actually meaningless, as there is 9484 # no search path for DLLs. 9485 case $cc_basename in 9486 cl*) 9487 # Native MSVC 9488 hardcode_libdir_flag_spec=' ' 9489 allow_undefined_flag=unsupported 9490 always_export_symbols=yes 9491 file_list_spec='@' 9492 # Tell ltmain to make .lib files, not .a files. 9493 libext=lib 9494 # Tell ltmain to make .dll files, not .so files. 9495 shrext_cmds=".dll" 9496 # FIXME: Setting linknames here is a bad hack. 9497 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames=' 9498 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9499 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp; 9500 else 9501 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp; 9502 fi~ 9503 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9504 linknames=' 9505 # The linker will not automatically build a static lib if we build a DLL. 9506 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9507 enable_shared_with_static_runtimes=yes 9508 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9509 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9510 # Don't use ranlib 9511 old_postinstall_cmds='chmod 644 $oldlib' 9512 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9513 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9514 case $lt_outputfile in 9515 *.exe|*.EXE) ;; 9516 *) 9517 lt_outputfile="$lt_outputfile.exe" 9518 lt_tool_outputfile="$lt_tool_outputfile.exe" 9519 ;; 9520 esac~ 9521 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then 9522 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9523 $RM "$lt_outputfile.manifest"; 9524 fi' 9525 ;; 9526 *) 9527 # Assume MSVC wrapper 9528 hardcode_libdir_flag_spec=' ' 9529 allow_undefined_flag=unsupported 9530 # Tell ltmain to make .lib files, not .a files. 9531 libext=lib 9532 # Tell ltmain to make .dll files, not .so files. 9533 shrext_cmds=".dll" 9534 # FIXME: Setting linknames here is a bad hack. 9535 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9536 # The linker will automatically build a .lib file if we build a DLL. 9537 old_archive_from_new_cmds='true' 9538 # FIXME: Should let the user specify the lib program. 9539 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9540 enable_shared_with_static_runtimes=yes 9541 ;; 9542 esac 9543 ;; 9544 9545 darwin* | rhapsody*) 9546 9547 9548 archive_cmds_need_lc=no 9549 hardcode_direct=no 9550 hardcode_automatic=yes 9551 hardcode_shlibpath_var=unsupported 9552 if test "$lt_cv_ld_force_load" = "yes"; then 9553 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\"`' 9554 9555 else 9556 whole_archive_flag_spec='' 9557 fi 9558 link_all_deplibs=yes 9559 allow_undefined_flag="$_lt_dar_allow_undefined" 9560 case $cc_basename in 9561 ifort*) _lt_dar_can_shared=yes ;; 9562 *) _lt_dar_can_shared=$GCC ;; 9563 esac 9564 if test "$_lt_dar_can_shared" = "yes"; then 9565 output_verbose_link_cmd=func_echo_all 9566 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9567 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9568 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}" 9569 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}" 9570 9571 else 9572 ld_shlibs=no 9573 fi 9574 9575 ;; 9576 9577 dgux*) 9578 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9579 hardcode_libdir_flag_spec='-L$libdir' 9580 hardcode_shlibpath_var=no 9581 ;; 9582 9583 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9584 # support. Future versions do this automatically, but an explicit c++rt0.o 9585 # does not break anything, and helps significantly (at the cost of a little 9586 # extra space). 9587 freebsd2.2*) 9588 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9589 hardcode_libdir_flag_spec='-R$libdir' 9590 hardcode_direct=yes 9591 hardcode_shlibpath_var=no 9592 ;; 9593 9594 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9595 freebsd2.*) 9596 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9597 hardcode_direct=yes 9598 hardcode_minus_L=yes 9599 hardcode_shlibpath_var=no 9600 ;; 9601 9602 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9603 freebsd* | dragonfly*) 9604 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9605 hardcode_libdir_flag_spec='-R$libdir' 9606 hardcode_direct=yes 9607 hardcode_shlibpath_var=no 9608 ;; 9609 9610 hpux9*) 9611 if test "$GCC" = yes; then 9612 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9613 else 9614 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' 9615 fi 9616 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9617 hardcode_libdir_separator=: 9618 hardcode_direct=yes 9619 9620 # hardcode_minus_L: Not really in the search PATH, 9621 # but as the default location of the library. 9622 hardcode_minus_L=yes 9623 export_dynamic_flag_spec='${wl}-E' 9624 ;; 9625 9626 hpux10*) 9627 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9628 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9629 else 9630 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9631 fi 9632 if test "$with_gnu_ld" = no; then 9633 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9634 hardcode_libdir_separator=: 9635 hardcode_direct=yes 9636 hardcode_direct_absolute=yes 9637 export_dynamic_flag_spec='${wl}-E' 9638 # hardcode_minus_L: Not really in the search PATH, 9639 # but as the default location of the library. 9640 hardcode_minus_L=yes 9641 fi 9642 ;; 9643 9644 hpux11*) 9645 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9646 case $host_cpu in 9647 hppa*64*) 9648 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9649 ;; 9650 ia64*) 9651 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9652 ;; 9653 *) 9654 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9655 ;; 9656 esac 9657 else 9658 case $host_cpu in 9659 hppa*64*) 9660 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9661 ;; 9662 ia64*) 9663 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9664 ;; 9665 *) 9666 9667 # Older versions of the 11.00 compiler do not understand -b yet 9668 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9670$as_echo_n "checking if $CC understands -b... " >&6; } 9671if ${lt_cv_prog_compiler__b+:} false; then : 9672 $as_echo_n "(cached) " >&6 9673else 9674 lt_cv_prog_compiler__b=no 9675 save_LDFLAGS="$LDFLAGS" 9676 LDFLAGS="$LDFLAGS -b" 9677 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9678 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9679 # The linker can only warn and ignore the option if not recognized 9680 # So say no if there are warnings 9681 if test -s conftest.err; then 9682 # Append any errors to the config.log. 9683 cat conftest.err 1>&5 9684 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9685 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9686 if diff conftest.exp conftest.er2 >/dev/null; then 9687 lt_cv_prog_compiler__b=yes 9688 fi 9689 else 9690 lt_cv_prog_compiler__b=yes 9691 fi 9692 fi 9693 $RM -r conftest* 9694 LDFLAGS="$save_LDFLAGS" 9695 9696fi 9697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9698$as_echo "$lt_cv_prog_compiler__b" >&6; } 9699 9700if test x"$lt_cv_prog_compiler__b" = xyes; then 9701 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9702else 9703 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9704fi 9705 9706 ;; 9707 esac 9708 fi 9709 if test "$with_gnu_ld" = no; then 9710 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9711 hardcode_libdir_separator=: 9712 9713 case $host_cpu in 9714 hppa*64*|ia64*) 9715 hardcode_direct=no 9716 hardcode_shlibpath_var=no 9717 ;; 9718 *) 9719 hardcode_direct=yes 9720 hardcode_direct_absolute=yes 9721 export_dynamic_flag_spec='${wl}-E' 9722 9723 # hardcode_minus_L: Not really in the search PATH, 9724 # but as the default location of the library. 9725 hardcode_minus_L=yes 9726 ;; 9727 esac 9728 fi 9729 ;; 9730 9731 irix5* | irix6* | nonstopux*) 9732 if test "$GCC" = yes; then 9733 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9734 # Try to use the -exported_symbol ld option, if it does not 9735 # work, assume that -exports_file does not work either and 9736 # implicitly export all symbols. 9737 # This should be the same for all languages, so no per-tag cache variable. 9738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9739$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9740if ${lt_cv_irix_exported_symbol+:} false; then : 9741 $as_echo_n "(cached) " >&6 9742else 9743 save_LDFLAGS="$LDFLAGS" 9744 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9745 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9746/* end confdefs.h. */ 9747int foo (void) { return 0; } 9748_ACEOF 9749if ac_fn_c_try_link "$LINENO"; then : 9750 lt_cv_irix_exported_symbol=yes 9751else 9752 lt_cv_irix_exported_symbol=no 9753fi 9754rm -f core conftest.err conftest.$ac_objext \ 9755 conftest$ac_exeext conftest.$ac_ext 9756 LDFLAGS="$save_LDFLAGS" 9757fi 9758{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9759$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9760 if test "$lt_cv_irix_exported_symbol" = yes; then 9761 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9762 fi 9763 else 9764 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' 9765 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' 9766 fi 9767 archive_cmds_need_lc='no' 9768 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9769 hardcode_libdir_separator=: 9770 inherit_rpath=yes 9771 link_all_deplibs=yes 9772 ;; 9773 9774 netbsd*) 9775 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9776 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9777 else 9778 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9779 fi 9780 hardcode_libdir_flag_spec='-R$libdir' 9781 hardcode_direct=yes 9782 hardcode_shlibpath_var=no 9783 ;; 9784 9785 newsos6) 9786 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9787 hardcode_direct=yes 9788 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9789 hardcode_libdir_separator=: 9790 hardcode_shlibpath_var=no 9791 ;; 9792 9793 *nto* | *qnx*) 9794 ;; 9795 9796 openbsd*) 9797 if test -f /usr/libexec/ld.so; then 9798 hardcode_direct=yes 9799 hardcode_shlibpath_var=no 9800 hardcode_direct_absolute=yes 9801 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9802 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9803 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9804 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9805 export_dynamic_flag_spec='${wl}-E' 9806 else 9807 case $host_os in 9808 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9809 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9810 hardcode_libdir_flag_spec='-R$libdir' 9811 ;; 9812 *) 9813 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9814 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9815 ;; 9816 esac 9817 fi 9818 else 9819 ld_shlibs=no 9820 fi 9821 ;; 9822 9823 os2*) 9824 hardcode_libdir_flag_spec='-L$libdir' 9825 hardcode_minus_L=yes 9826 allow_undefined_flag=unsupported 9827 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' 9828 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9829 ;; 9830 9831 osf3*) 9832 if test "$GCC" = yes; then 9833 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9834 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' 9835 else 9836 allow_undefined_flag=' -expect_unresolved \*' 9837 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' 9838 fi 9839 archive_cmds_need_lc='no' 9840 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9841 hardcode_libdir_separator=: 9842 ;; 9843 9844 osf4* | osf5*) # as osf3* with the addition of -msym flag 9845 if test "$GCC" = yes; then 9846 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9847 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9848 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9849 else 9850 allow_undefined_flag=' -expect_unresolved \*' 9851 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' 9852 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~ 9853 $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' 9854 9855 # Both c and cxx compiler support -rpath directly 9856 hardcode_libdir_flag_spec='-rpath $libdir' 9857 fi 9858 archive_cmds_need_lc='no' 9859 hardcode_libdir_separator=: 9860 ;; 9861 9862 solaris*) 9863 no_undefined_flag=' -z defs' 9864 if test "$GCC" = yes; then 9865 wlarc='${wl}' 9866 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9867 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9868 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9869 else 9870 case `$CC -V 2>&1` in 9871 *"Compilers 5.0"*) 9872 wlarc='' 9873 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9874 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9875 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9876 ;; 9877 *) 9878 wlarc='${wl}' 9879 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9880 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9881 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9882 ;; 9883 esac 9884 fi 9885 hardcode_libdir_flag_spec='-R$libdir' 9886 hardcode_shlibpath_var=no 9887 case $host_os in 9888 solaris2.[0-5] | solaris2.[0-5].*) ;; 9889 *) 9890 # The compiler driver will combine and reorder linker options, 9891 # but understands `-z linker_flag'. GCC discards it without `$wl', 9892 # but is careful enough not to reorder. 9893 # Supported since Solaris 2.6 (maybe 2.5.1?) 9894 if test "$GCC" = yes; then 9895 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9896 else 9897 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9898 fi 9899 ;; 9900 esac 9901 link_all_deplibs=yes 9902 ;; 9903 9904 sunos4*) 9905 if test "x$host_vendor" = xsequent; then 9906 # Use $CC to link under sequent, because it throws in some extra .o 9907 # files that make .init and .fini sections work. 9908 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9909 else 9910 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9911 fi 9912 hardcode_libdir_flag_spec='-L$libdir' 9913 hardcode_direct=yes 9914 hardcode_minus_L=yes 9915 hardcode_shlibpath_var=no 9916 ;; 9917 9918 sysv4) 9919 case $host_vendor in 9920 sni) 9921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9922 hardcode_direct=yes # is this really true??? 9923 ;; 9924 siemens) 9925 ## LD is ld it makes a PLAMLIB 9926 ## CC just makes a GrossModule. 9927 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9928 reload_cmds='$CC -r -o $output$reload_objs' 9929 hardcode_direct=no 9930 ;; 9931 motorola) 9932 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9933 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9934 ;; 9935 esac 9936 runpath_var='LD_RUN_PATH' 9937 hardcode_shlibpath_var=no 9938 ;; 9939 9940 sysv4.3*) 9941 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9942 hardcode_shlibpath_var=no 9943 export_dynamic_flag_spec='-Bexport' 9944 ;; 9945 9946 sysv4*MP*) 9947 if test -d /usr/nec; then 9948 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9949 hardcode_shlibpath_var=no 9950 runpath_var=LD_RUN_PATH 9951 hardcode_runpath_var=yes 9952 ld_shlibs=yes 9953 fi 9954 ;; 9955 9956 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9957 no_undefined_flag='${wl}-z,text' 9958 archive_cmds_need_lc=no 9959 hardcode_shlibpath_var=no 9960 runpath_var='LD_RUN_PATH' 9961 9962 if test "$GCC" = yes; then 9963 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9964 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9965 else 9966 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9967 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9968 fi 9969 ;; 9970 9971 sysv5* | sco3.2v5* | sco5v6*) 9972 # Note: We can NOT use -z defs as we might desire, because we do not 9973 # link with -lc, and that would cause any symbols used from libc to 9974 # always be unresolved, which means just about no library would 9975 # ever link correctly. If we're not using GNU ld we use -z text 9976 # though, which does catch some bad symbols but isn't as heavy-handed 9977 # as -z defs. 9978 no_undefined_flag='${wl}-z,text' 9979 allow_undefined_flag='${wl}-z,nodefs' 9980 archive_cmds_need_lc=no 9981 hardcode_shlibpath_var=no 9982 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9983 hardcode_libdir_separator=':' 9984 link_all_deplibs=yes 9985 export_dynamic_flag_spec='${wl}-Bexport' 9986 runpath_var='LD_RUN_PATH' 9987 9988 if test "$GCC" = yes; then 9989 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9990 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9991 else 9992 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9993 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9994 fi 9995 ;; 9996 9997 uts4*) 9998 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9999 hardcode_libdir_flag_spec='-L$libdir' 10000 hardcode_shlibpath_var=no 10001 ;; 10002 10003 *) 10004 ld_shlibs=no 10005 ;; 10006 esac 10007 10008 if test x$host_vendor = xsni; then 10009 case $host in 10010 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 10011 export_dynamic_flag_spec='${wl}-Blargedynsym' 10012 ;; 10013 esac 10014 fi 10015 fi 10016 10017{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 10018$as_echo "$ld_shlibs" >&6; } 10019test "$ld_shlibs" = no && can_build_shared=no 10020 10021with_gnu_ld=$with_gnu_ld 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037# 10038# Do we need to explicitly link libc? 10039# 10040case "x$archive_cmds_need_lc" in 10041x|xyes) 10042 # Assume -lc should be added 10043 archive_cmds_need_lc=yes 10044 10045 if test "$enable_shared" = yes && test "$GCC" = yes; then 10046 case $archive_cmds in 10047 *'~'*) 10048 # FIXME: we may have to deal with multi-command sequences. 10049 ;; 10050 '$CC '*) 10051 # Test whether the compiler implicitly links with -lc since on some 10052 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10053 # to ld, don't add -lc before -lgcc. 10054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 10055$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 10056if ${lt_cv_archive_cmds_need_lc+:} false; then : 10057 $as_echo_n "(cached) " >&6 10058else 10059 $RM conftest* 10060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10061 10062 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 10063 (eval $ac_compile) 2>&5 10064 ac_status=$? 10065 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10066 test $ac_status = 0; } 2>conftest.err; then 10067 soname=conftest 10068 lib=conftest 10069 libobjs=conftest.$ac_objext 10070 deplibs= 10071 wl=$lt_prog_compiler_wl 10072 pic_flag=$lt_prog_compiler_pic 10073 compiler_flags=-v 10074 linker_flags=-v 10075 verstring= 10076 output_objdir=. 10077 libname=conftest 10078 lt_save_allow_undefined_flag=$allow_undefined_flag 10079 allow_undefined_flag= 10080 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 10081 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 10082 ac_status=$? 10083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 10084 test $ac_status = 0; } 10085 then 10086 lt_cv_archive_cmds_need_lc=no 10087 else 10088 lt_cv_archive_cmds_need_lc=yes 10089 fi 10090 allow_undefined_flag=$lt_save_allow_undefined_flag 10091 else 10092 cat conftest.err 1>&5 10093 fi 10094 $RM conftest* 10095 10096fi 10097{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10098$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10099 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10100 ;; 10101 esac 10102 fi 10103 ;; 10104esac 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 10172 10173 10174 10175 10176 10177 10178 10179 10180 10181 10182 10183 10184 10185 10186 10187 10188 10189 10190 10191 10192 10193 10194 10195 10196 10197 10198 10199 10200 10201 10202 10203 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10258$as_echo_n "checking dynamic linker characteristics... " >&6; } 10259 10260if test "$GCC" = yes; then 10261 case $host_os in 10262 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10263 *) lt_awk_arg="/^libraries:/" ;; 10264 esac 10265 case $host_os in 10266 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10267 *) lt_sed_strip_eq="s,=/,/,g" ;; 10268 esac 10269 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10270 case $lt_search_path_spec in 10271 *\;*) 10272 # if the path contains ";" then we assume it to be the separator 10273 # otherwise default to the standard path separator (i.e. ":") - it is 10274 # assumed that no part of a normal pathname contains ";" but that should 10275 # okay in the real world where ";" in dirpaths is itself problematic. 10276 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10277 ;; 10278 *) 10279 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10280 ;; 10281 esac 10282 # Ok, now we have the path, separated by spaces, we can step through it 10283 # and add multilib dir if necessary. 10284 lt_tmp_lt_search_path_spec= 10285 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10286 for lt_sys_path in $lt_search_path_spec; do 10287 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10288 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10289 else 10290 test -d "$lt_sys_path" && \ 10291 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10292 fi 10293 done 10294 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10295BEGIN {RS=" "; FS="/|\n";} { 10296 lt_foo=""; 10297 lt_count=0; 10298 for (lt_i = NF; lt_i > 0; lt_i--) { 10299 if ($lt_i != "" && $lt_i != ".") { 10300 if ($lt_i == "..") { 10301 lt_count++; 10302 } else { 10303 if (lt_count == 0) { 10304 lt_foo="/" $lt_i lt_foo; 10305 } else { 10306 lt_count--; 10307 } 10308 } 10309 } 10310 } 10311 if (lt_foo != "") { lt_freq[lt_foo]++; } 10312 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10313}'` 10314 # AWK program above erroneously prepends '/' to C:/dos/paths 10315 # for these hosts. 10316 case $host_os in 10317 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10318 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10319 esac 10320 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10321else 10322 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10323fi 10324library_names_spec= 10325libname_spec='lib$name' 10326soname_spec= 10327shrext_cmds=".so" 10328postinstall_cmds= 10329postuninstall_cmds= 10330finish_cmds= 10331finish_eval= 10332shlibpath_var= 10333shlibpath_overrides_runpath=unknown 10334version_type=none 10335dynamic_linker="$host_os ld.so" 10336sys_lib_dlsearch_path_spec="/lib /usr/lib" 10337need_lib_prefix=unknown 10338hardcode_into_libs=no 10339 10340# when you set need_version to no, make sure it does not cause -set_version 10341# flags to be left without arguments 10342need_version=unknown 10343 10344case $host_os in 10345aix3*) 10346 version_type=linux # correct to gnu/linux during the next big refactor 10347 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10348 shlibpath_var=LIBPATH 10349 10350 # AIX 3 has no versioning support, so we append a major version to the name. 10351 soname_spec='${libname}${release}${shared_ext}$major' 10352 ;; 10353 10354aix[4-9]*) 10355 version_type=linux # correct to gnu/linux during the next big refactor 10356 need_lib_prefix=no 10357 need_version=no 10358 hardcode_into_libs=yes 10359 if test "$host_cpu" = ia64; then 10360 # AIX 5 supports IA64 10361 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10362 shlibpath_var=LD_LIBRARY_PATH 10363 else 10364 # With GCC up to 2.95.x, collect2 would create an import file 10365 # for dependence libraries. The import file would start with 10366 # the line `#! .'. This would cause the generated library to 10367 # depend on `.', always an invalid library. This was fixed in 10368 # development snapshots of GCC prior to 3.0. 10369 case $host_os in 10370 aix4 | aix4.[01] | aix4.[01].*) 10371 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10372 echo ' yes ' 10373 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10374 : 10375 else 10376 can_build_shared=no 10377 fi 10378 ;; 10379 esac 10380 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10381 # soname into executable. Probably we can add versioning support to 10382 # collect2, so additional links can be useful in future. 10383 if test "$aix_use_runtimelinking" = yes; then 10384 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10385 # instead of lib<name>.a to let people know that these are not 10386 # typical AIX shared libraries. 10387 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10388 else 10389 # We preserve .a as extension for shared libraries through AIX4.2 10390 # and later when we are not doing run time linking. 10391 library_names_spec='${libname}${release}.a $libname.a' 10392 soname_spec='${libname}${release}${shared_ext}$major' 10393 fi 10394 shlibpath_var=LIBPATH 10395 fi 10396 ;; 10397 10398amigaos*) 10399 case $host_cpu in 10400 powerpc) 10401 # Since July 2007 AmigaOS4 officially supports .so libraries. 10402 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10403 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10404 ;; 10405 m68k) 10406 library_names_spec='$libname.ixlibrary $libname.a' 10407 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10408 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' 10409 ;; 10410 esac 10411 ;; 10412 10413beos*) 10414 library_names_spec='${libname}${shared_ext}' 10415 dynamic_linker="$host_os ld.so" 10416 shlibpath_var=LIBRARY_PATH 10417 ;; 10418 10419bsdi[45]*) 10420 version_type=linux # correct to gnu/linux during the next big refactor 10421 need_version=no 10422 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10423 soname_spec='${libname}${release}${shared_ext}$major' 10424 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10425 shlibpath_var=LD_LIBRARY_PATH 10426 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10427 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10428 # the default ld.so.conf also contains /usr/contrib/lib and 10429 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10430 # libtool to hard-code these into programs 10431 ;; 10432 10433cygwin* | mingw* | pw32* | cegcc*) 10434 version_type=windows 10435 shrext_cmds=".dll" 10436 need_version=no 10437 need_lib_prefix=no 10438 10439 case $GCC,$cc_basename in 10440 yes,*) 10441 # gcc 10442 library_names_spec='$libname.dll.a' 10443 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10444 postinstall_cmds='base_file=`basename \${file}`~ 10445 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10446 dldir=$destdir/`dirname \$dlpath`~ 10447 test -d \$dldir || mkdir -p \$dldir~ 10448 $install_prog $dir/$dlname \$dldir/$dlname~ 10449 chmod a+x \$dldir/$dlname~ 10450 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10451 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10452 fi' 10453 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10454 dlpath=$dir/\$dldll~ 10455 $RM \$dlpath' 10456 shlibpath_overrides_runpath=yes 10457 10458 case $host_os in 10459 cygwin*) 10460 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10461 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10462 10463 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10464 ;; 10465 mingw* | cegcc*) 10466 # MinGW DLLs use traditional 'lib' prefix 10467 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10468 ;; 10469 pw32*) 10470 # pw32 DLLs use 'pw' prefix rather than 'lib' 10471 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10472 ;; 10473 esac 10474 dynamic_linker='Win32 ld.exe' 10475 ;; 10476 10477 *,cl*) 10478 # Native MSVC 10479 libname_spec='$name' 10480 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10481 library_names_spec='${libname}.dll.lib' 10482 10483 case $build_os in 10484 mingw*) 10485 sys_lib_search_path_spec= 10486 lt_save_ifs=$IFS 10487 IFS=';' 10488 for lt_path in $LIB 10489 do 10490 IFS=$lt_save_ifs 10491 # Let DOS variable expansion print the short 8.3 style file name. 10492 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10493 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10494 done 10495 IFS=$lt_save_ifs 10496 # Convert to MSYS style. 10497 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10498 ;; 10499 cygwin*) 10500 # Convert to unix form, then to dos form, then back to unix form 10501 # but this time dos style (no spaces!) so that the unix form looks 10502 # like /cygdrive/c/PROGRA~1:/cygdr... 10503 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10504 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10505 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10506 ;; 10507 *) 10508 sys_lib_search_path_spec="$LIB" 10509 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10510 # It is most probably a Windows format PATH. 10511 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10512 else 10513 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10514 fi 10515 # FIXME: find the short name or the path components, as spaces are 10516 # common. (e.g. "Program Files" -> "PROGRA~1") 10517 ;; 10518 esac 10519 10520 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10521 postinstall_cmds='base_file=`basename \${file}`~ 10522 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10523 dldir=$destdir/`dirname \$dlpath`~ 10524 test -d \$dldir || mkdir -p \$dldir~ 10525 $install_prog $dir/$dlname \$dldir/$dlname' 10526 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10527 dlpath=$dir/\$dldll~ 10528 $RM \$dlpath' 10529 shlibpath_overrides_runpath=yes 10530 dynamic_linker='Win32 link.exe' 10531 ;; 10532 10533 *) 10534 # Assume MSVC wrapper 10535 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10536 dynamic_linker='Win32 ld.exe' 10537 ;; 10538 esac 10539 # FIXME: first we should search . and the directory the executable is in 10540 shlibpath_var=PATH 10541 ;; 10542 10543darwin* | rhapsody*) 10544 dynamic_linker="$host_os dyld" 10545 version_type=darwin 10546 need_lib_prefix=no 10547 need_version=no 10548 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10549 soname_spec='${libname}${release}${major}$shared_ext' 10550 shlibpath_overrides_runpath=yes 10551 shlibpath_var=DYLD_LIBRARY_PATH 10552 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10553 10554 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10555 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10556 ;; 10557 10558dgux*) 10559 version_type=linux # correct to gnu/linux during the next big refactor 10560 need_lib_prefix=no 10561 need_version=no 10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10563 soname_spec='${libname}${release}${shared_ext}$major' 10564 shlibpath_var=LD_LIBRARY_PATH 10565 ;; 10566 10567freebsd* | dragonfly*) 10568 # DragonFly does not have aout. When/if they implement a new 10569 # versioning mechanism, adjust this. 10570 if test -x /usr/bin/objformat; then 10571 objformat=`/usr/bin/objformat` 10572 else 10573 case $host_os in 10574 freebsd[23].*) objformat=aout ;; 10575 *) objformat=elf ;; 10576 esac 10577 fi 10578 version_type=freebsd-$objformat 10579 case $version_type in 10580 freebsd-elf*) 10581 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10582 need_version=no 10583 need_lib_prefix=no 10584 ;; 10585 freebsd-*) 10586 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10587 need_version=yes 10588 ;; 10589 esac 10590 shlibpath_var=LD_LIBRARY_PATH 10591 case $host_os in 10592 freebsd2.*) 10593 shlibpath_overrides_runpath=yes 10594 ;; 10595 freebsd3.[01]* | freebsdelf3.[01]*) 10596 shlibpath_overrides_runpath=yes 10597 hardcode_into_libs=yes 10598 ;; 10599 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10600 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10601 shlibpath_overrides_runpath=no 10602 hardcode_into_libs=yes 10603 ;; 10604 *) # from 4.6 on, and DragonFly 10605 shlibpath_overrides_runpath=yes 10606 hardcode_into_libs=yes 10607 ;; 10608 esac 10609 ;; 10610 10611gnu*) 10612 version_type=linux # correct to gnu/linux during the next big refactor 10613 need_lib_prefix=no 10614 need_version=no 10615 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10616 soname_spec='${libname}${release}${shared_ext}$major' 10617 shlibpath_var=LD_LIBRARY_PATH 10618 shlibpath_overrides_runpath=no 10619 hardcode_into_libs=yes 10620 ;; 10621 10622haiku*) 10623 version_type=linux # correct to gnu/linux during the next big refactor 10624 need_lib_prefix=no 10625 need_version=no 10626 dynamic_linker="$host_os runtime_loader" 10627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10628 soname_spec='${libname}${release}${shared_ext}$major' 10629 shlibpath_var=LIBRARY_PATH 10630 shlibpath_overrides_runpath=yes 10631 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10632 hardcode_into_libs=yes 10633 ;; 10634 10635hpux9* | hpux10* | hpux11*) 10636 # Give a soname corresponding to the major version so that dld.sl refuses to 10637 # link against other versions. 10638 version_type=sunos 10639 need_lib_prefix=no 10640 need_version=no 10641 case $host_cpu in 10642 ia64*) 10643 shrext_cmds='.so' 10644 hardcode_into_libs=yes 10645 dynamic_linker="$host_os dld.so" 10646 shlibpath_var=LD_LIBRARY_PATH 10647 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10649 soname_spec='${libname}${release}${shared_ext}$major' 10650 if test "X$HPUX_IA64_MODE" = X32; then 10651 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10652 else 10653 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10654 fi 10655 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10656 ;; 10657 hppa*64*) 10658 shrext_cmds='.sl' 10659 hardcode_into_libs=yes 10660 dynamic_linker="$host_os dld.sl" 10661 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10662 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10663 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10664 soname_spec='${libname}${release}${shared_ext}$major' 10665 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10666 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10667 ;; 10668 *) 10669 shrext_cmds='.sl' 10670 dynamic_linker="$host_os dld.sl" 10671 shlibpath_var=SHLIB_PATH 10672 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 ;; 10676 esac 10677 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10678 postinstall_cmds='chmod 555 $lib' 10679 # or fails outright, so override atomically: 10680 install_override_mode=555 10681 ;; 10682 10683interix[3-9]*) 10684 version_type=linux # correct to gnu/linux during the next big refactor 10685 need_lib_prefix=no 10686 need_version=no 10687 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10688 soname_spec='${libname}${release}${shared_ext}$major' 10689 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10690 shlibpath_var=LD_LIBRARY_PATH 10691 shlibpath_overrides_runpath=no 10692 hardcode_into_libs=yes 10693 ;; 10694 10695irix5* | irix6* | nonstopux*) 10696 case $host_os in 10697 nonstopux*) version_type=nonstopux ;; 10698 *) 10699 if test "$lt_cv_prog_gnu_ld" = yes; then 10700 version_type=linux # correct to gnu/linux during the next big refactor 10701 else 10702 version_type=irix 10703 fi ;; 10704 esac 10705 need_lib_prefix=no 10706 need_version=no 10707 soname_spec='${libname}${release}${shared_ext}$major' 10708 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10709 case $host_os in 10710 irix5* | nonstopux*) 10711 libsuff= shlibsuff= 10712 ;; 10713 *) 10714 case $LD in # libtool.m4 will add one of these switches to LD 10715 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10716 libsuff= shlibsuff= libmagic=32-bit;; 10717 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10718 libsuff=32 shlibsuff=N32 libmagic=N32;; 10719 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10720 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10721 *) libsuff= shlibsuff= libmagic=never-match;; 10722 esac 10723 ;; 10724 esac 10725 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10726 shlibpath_overrides_runpath=no 10727 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10728 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10729 hardcode_into_libs=yes 10730 ;; 10731 10732# No shared lib support for Linux oldld, aout, or coff. 10733linux*oldld* | linux*aout* | linux*coff*) 10734 dynamic_linker=no 10735 ;; 10736 10737# This must be glibc/ELF. 10738linux* | k*bsd*-gnu | kopensolaris*-gnu) 10739 version_type=linux # correct to gnu/linux during the next big refactor 10740 need_lib_prefix=no 10741 need_version=no 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10745 shlibpath_var=LD_LIBRARY_PATH 10746 shlibpath_overrides_runpath=no 10747 10748 # Some binutils ld are patched to set DT_RUNPATH 10749 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10750 $as_echo_n "(cached) " >&6 10751else 10752 lt_cv_shlibpath_overrides_runpath=no 10753 save_LDFLAGS=$LDFLAGS 10754 save_libdir=$libdir 10755 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10756 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10758/* end confdefs.h. */ 10759 10760int 10761main () 10762{ 10763 10764 ; 10765 return 0; 10766} 10767_ACEOF 10768if ac_fn_c_try_link "$LINENO"; then : 10769 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10770 lt_cv_shlibpath_overrides_runpath=yes 10771fi 10772fi 10773rm -f core conftest.err conftest.$ac_objext \ 10774 conftest$ac_exeext conftest.$ac_ext 10775 LDFLAGS=$save_LDFLAGS 10776 libdir=$save_libdir 10777 10778fi 10779 10780 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10781 10782 # This implies no fast_install, which is unacceptable. 10783 # Some rework will be needed to allow for fast_install 10784 # before this can be enabled. 10785 hardcode_into_libs=yes 10786 10787 # Append ld.so.conf contents to the search path 10788 if test -f /etc/ld.so.conf; then 10789 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' ' '` 10790 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10791 fi 10792 10793 # We used to test for /lib/ld.so.1 and disable shared libraries on 10794 # powerpc, because MkLinux only supported shared libraries with the 10795 # GNU dynamic linker. Since this was broken with cross compilers, 10796 # most powerpc-linux boxes support dynamic linking these days and 10797 # people can always --disable-shared, the test was removed, and we 10798 # assume the GNU/Linux dynamic linker is in use. 10799 dynamic_linker='GNU/Linux ld.so' 10800 ;; 10801 10802netbsd*) 10803 version_type=sunos 10804 need_lib_prefix=no 10805 need_version=no 10806 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10808 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10809 dynamic_linker='NetBSD (a.out) ld.so' 10810 else 10811 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10812 soname_spec='${libname}${release}${shared_ext}$major' 10813 dynamic_linker='NetBSD ld.elf_so' 10814 fi 10815 shlibpath_var=LD_LIBRARY_PATH 10816 shlibpath_overrides_runpath=yes 10817 hardcode_into_libs=yes 10818 ;; 10819 10820newsos6) 10821 version_type=linux # correct to gnu/linux during the next big refactor 10822 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10823 shlibpath_var=LD_LIBRARY_PATH 10824 shlibpath_overrides_runpath=yes 10825 ;; 10826 10827*nto* | *qnx*) 10828 version_type=qnx 10829 need_lib_prefix=no 10830 need_version=no 10831 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10832 soname_spec='${libname}${release}${shared_ext}$major' 10833 shlibpath_var=LD_LIBRARY_PATH 10834 shlibpath_overrides_runpath=no 10835 hardcode_into_libs=yes 10836 dynamic_linker='ldqnx.so' 10837 ;; 10838 10839openbsd*) 10840 version_type=sunos 10841 sys_lib_dlsearch_path_spec="/usr/lib" 10842 need_lib_prefix=no 10843 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10844 case $host_os in 10845 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10846 *) need_version=no ;; 10847 esac 10848 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10849 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10850 shlibpath_var=LD_LIBRARY_PATH 10851 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10852 case $host_os in 10853 openbsd2.[89] | openbsd2.[89].*) 10854 shlibpath_overrides_runpath=no 10855 ;; 10856 *) 10857 shlibpath_overrides_runpath=yes 10858 ;; 10859 esac 10860 else 10861 shlibpath_overrides_runpath=yes 10862 fi 10863 ;; 10864 10865os2*) 10866 libname_spec='$name' 10867 shrext_cmds=".dll" 10868 need_lib_prefix=no 10869 library_names_spec='$libname${shared_ext} $libname.a' 10870 dynamic_linker='OS/2 ld.exe' 10871 shlibpath_var=LIBPATH 10872 ;; 10873 10874osf3* | osf4* | osf5*) 10875 version_type=osf 10876 need_lib_prefix=no 10877 need_version=no 10878 soname_spec='${libname}${release}${shared_ext}$major' 10879 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10880 shlibpath_var=LD_LIBRARY_PATH 10881 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10882 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10883 ;; 10884 10885rdos*) 10886 dynamic_linker=no 10887 ;; 10888 10889solaris*) 10890 version_type=linux # correct to gnu/linux during the next big refactor 10891 need_lib_prefix=no 10892 need_version=no 10893 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10894 soname_spec='${libname}${release}${shared_ext}$major' 10895 shlibpath_var=LD_LIBRARY_PATH 10896 shlibpath_overrides_runpath=yes 10897 hardcode_into_libs=yes 10898 # ldd complains unless libraries are executable 10899 postinstall_cmds='chmod +x $lib' 10900 ;; 10901 10902sunos4*) 10903 version_type=sunos 10904 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10905 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10906 shlibpath_var=LD_LIBRARY_PATH 10907 shlibpath_overrides_runpath=yes 10908 if test "$with_gnu_ld" = yes; then 10909 need_lib_prefix=no 10910 fi 10911 need_version=yes 10912 ;; 10913 10914sysv4 | sysv4.3*) 10915 version_type=linux # correct to gnu/linux during the next big refactor 10916 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10917 soname_spec='${libname}${release}${shared_ext}$major' 10918 shlibpath_var=LD_LIBRARY_PATH 10919 case $host_vendor in 10920 sni) 10921 shlibpath_overrides_runpath=no 10922 need_lib_prefix=no 10923 runpath_var=LD_RUN_PATH 10924 ;; 10925 siemens) 10926 need_lib_prefix=no 10927 ;; 10928 motorola) 10929 need_lib_prefix=no 10930 need_version=no 10931 shlibpath_overrides_runpath=no 10932 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10933 ;; 10934 esac 10935 ;; 10936 10937sysv4*MP*) 10938 if test -d /usr/nec ;then 10939 version_type=linux # correct to gnu/linux during the next big refactor 10940 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10941 soname_spec='$libname${shared_ext}.$major' 10942 shlibpath_var=LD_LIBRARY_PATH 10943 fi 10944 ;; 10945 10946sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10947 version_type=freebsd-elf 10948 need_lib_prefix=no 10949 need_version=no 10950 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10951 soname_spec='${libname}${release}${shared_ext}$major' 10952 shlibpath_var=LD_LIBRARY_PATH 10953 shlibpath_overrides_runpath=yes 10954 hardcode_into_libs=yes 10955 if test "$with_gnu_ld" = yes; then 10956 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10957 else 10958 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10959 case $host_os in 10960 sco3.2v5*) 10961 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10962 ;; 10963 esac 10964 fi 10965 sys_lib_dlsearch_path_spec='/usr/lib' 10966 ;; 10967 10968tpf*) 10969 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10970 version_type=linux # correct to gnu/linux during the next big refactor 10971 need_lib_prefix=no 10972 need_version=no 10973 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10974 shlibpath_var=LD_LIBRARY_PATH 10975 shlibpath_overrides_runpath=no 10976 hardcode_into_libs=yes 10977 ;; 10978 10979uts4*) 10980 version_type=linux # correct to gnu/linux during the next big refactor 10981 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10982 soname_spec='${libname}${release}${shared_ext}$major' 10983 shlibpath_var=LD_LIBRARY_PATH 10984 ;; 10985 10986*) 10987 dynamic_linker=no 10988 ;; 10989esac 10990{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10991$as_echo "$dynamic_linker" >&6; } 10992test "$dynamic_linker" = no && can_build_shared=no 10993 10994variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10995if test "$GCC" = yes; then 10996 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10997fi 10998 10999if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 11000 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 11001fi 11002if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 11003 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 11004fi 11005 11006 11007 11008 11009 11010 11011 11012 11013 11014 11015 11016 11017 11018 11019 11020 11021 11022 11023 11024 11025 11026 11027 11028 11029 11030 11031 11032 11033 11034 11035 11036 11037 11038 11039 11040 11041 11042 11043 11044 11045 11046 11047 11048 11049 11050 11051 11052 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 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 11098$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 11099hardcode_action= 11100if test -n "$hardcode_libdir_flag_spec" || 11101 test -n "$runpath_var" || 11102 test "X$hardcode_automatic" = "Xyes" ; then 11103 11104 # We can hardcode non-existent directories. 11105 if test "$hardcode_direct" != no && 11106 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11107 # have to relink, otherwise we might link with an installed library 11108 # when we should be linking with a yet-to-be-installed one 11109 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 11110 test "$hardcode_minus_L" != no; then 11111 # Linking always hardcodes the temporary library directory. 11112 hardcode_action=relink 11113 else 11114 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11115 hardcode_action=immediate 11116 fi 11117else 11118 # We cannot hardcode anything, or else we can only hardcode existing 11119 # directories. 11120 hardcode_action=unsupported 11121fi 11122{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 11123$as_echo "$hardcode_action" >&6; } 11124 11125if test "$hardcode_action" = relink || 11126 test "$inherit_rpath" = yes; then 11127 # Fast installation is not supported 11128 enable_fast_install=no 11129elif test "$shlibpath_overrides_runpath" = yes || 11130 test "$enable_shared" = no; then 11131 # Fast installation is not necessary 11132 enable_fast_install=needless 11133fi 11134 11135 11136 11137 11138 11139 11140 if test "x$enable_dlopen" != xyes; then 11141 enable_dlopen=unknown 11142 enable_dlopen_self=unknown 11143 enable_dlopen_self_static=unknown 11144else 11145 lt_cv_dlopen=no 11146 lt_cv_dlopen_libs= 11147 11148 case $host_os in 11149 beos*) 11150 lt_cv_dlopen="load_add_on" 11151 lt_cv_dlopen_libs= 11152 lt_cv_dlopen_self=yes 11153 ;; 11154 11155 mingw* | pw32* | cegcc*) 11156 lt_cv_dlopen="LoadLibrary" 11157 lt_cv_dlopen_libs= 11158 ;; 11159 11160 cygwin*) 11161 lt_cv_dlopen="dlopen" 11162 lt_cv_dlopen_libs= 11163 ;; 11164 11165 darwin*) 11166 # if libdl is installed we need to link against it 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11168$as_echo_n "checking for dlopen in -ldl... " >&6; } 11169if ${ac_cv_lib_dl_dlopen+:} false; then : 11170 $as_echo_n "(cached) " >&6 11171else 11172 ac_check_lib_save_LIBS=$LIBS 11173LIBS="-ldl $LIBS" 11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176 11177/* Override any GCC internal prototype to avoid an error. 11178 Use char because int might match the return type of a GCC 11179 builtin and then its argument prototype would still apply. */ 11180#ifdef __cplusplus 11181extern "C" 11182#endif 11183char dlopen (); 11184int 11185main () 11186{ 11187return dlopen (); 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO"; then : 11193 ac_cv_lib_dl_dlopen=yes 11194else 11195 ac_cv_lib_dl_dlopen=no 11196fi 11197rm -f core conftest.err conftest.$ac_objext \ 11198 conftest$ac_exeext conftest.$ac_ext 11199LIBS=$ac_check_lib_save_LIBS 11200fi 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11202$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11203if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11204 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11205else 11206 11207 lt_cv_dlopen="dyld" 11208 lt_cv_dlopen_libs= 11209 lt_cv_dlopen_self=yes 11210 11211fi 11212 11213 ;; 11214 11215 *) 11216 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11217if test "x$ac_cv_func_shl_load" = xyes; then : 11218 lt_cv_dlopen="shl_load" 11219else 11220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11221$as_echo_n "checking for shl_load in -ldld... " >&6; } 11222if ${ac_cv_lib_dld_shl_load+:} false; then : 11223 $as_echo_n "(cached) " >&6 11224else 11225 ac_check_lib_save_LIBS=$LIBS 11226LIBS="-ldld $LIBS" 11227cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11228/* end confdefs.h. */ 11229 11230/* Override any GCC internal prototype to avoid an error. 11231 Use char because int might match the return type of a GCC 11232 builtin and then its argument prototype would still apply. */ 11233#ifdef __cplusplus 11234extern "C" 11235#endif 11236char shl_load (); 11237int 11238main () 11239{ 11240return shl_load (); 11241 ; 11242 return 0; 11243} 11244_ACEOF 11245if ac_fn_c_try_link "$LINENO"; then : 11246 ac_cv_lib_dld_shl_load=yes 11247else 11248 ac_cv_lib_dld_shl_load=no 11249fi 11250rm -f core conftest.err conftest.$ac_objext \ 11251 conftest$ac_exeext conftest.$ac_ext 11252LIBS=$ac_check_lib_save_LIBS 11253fi 11254{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11255$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11256if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 11257 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11258else 11259 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11260if test "x$ac_cv_func_dlopen" = xyes; then : 11261 lt_cv_dlopen="dlopen" 11262else 11263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11264$as_echo_n "checking for dlopen in -ldl... " >&6; } 11265if ${ac_cv_lib_dl_dlopen+:} false; then : 11266 $as_echo_n "(cached) " >&6 11267else 11268 ac_check_lib_save_LIBS=$LIBS 11269LIBS="-ldl $LIBS" 11270cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11271/* end confdefs.h. */ 11272 11273/* Override any GCC internal prototype to avoid an error. 11274 Use char because int might match the return type of a GCC 11275 builtin and then its argument prototype would still apply. */ 11276#ifdef __cplusplus 11277extern "C" 11278#endif 11279char dlopen (); 11280int 11281main () 11282{ 11283return dlopen (); 11284 ; 11285 return 0; 11286} 11287_ACEOF 11288if ac_fn_c_try_link "$LINENO"; then : 11289 ac_cv_lib_dl_dlopen=yes 11290else 11291 ac_cv_lib_dl_dlopen=no 11292fi 11293rm -f core conftest.err conftest.$ac_objext \ 11294 conftest$ac_exeext conftest.$ac_ext 11295LIBS=$ac_check_lib_save_LIBS 11296fi 11297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11298$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11299if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 11300 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11301else 11302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11303$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11304if ${ac_cv_lib_svld_dlopen+:} false; then : 11305 $as_echo_n "(cached) " >&6 11306else 11307 ac_check_lib_save_LIBS=$LIBS 11308LIBS="-lsvld $LIBS" 11309cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11310/* end confdefs.h. */ 11311 11312/* Override any GCC internal prototype to avoid an error. 11313 Use char because int might match the return type of a GCC 11314 builtin and then its argument prototype would still apply. */ 11315#ifdef __cplusplus 11316extern "C" 11317#endif 11318char dlopen (); 11319int 11320main () 11321{ 11322return dlopen (); 11323 ; 11324 return 0; 11325} 11326_ACEOF 11327if ac_fn_c_try_link "$LINENO"; then : 11328 ac_cv_lib_svld_dlopen=yes 11329else 11330 ac_cv_lib_svld_dlopen=no 11331fi 11332rm -f core conftest.err conftest.$ac_objext \ 11333 conftest$ac_exeext conftest.$ac_ext 11334LIBS=$ac_check_lib_save_LIBS 11335fi 11336{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11337$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11338if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11339 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11340else 11341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11342$as_echo_n "checking for dld_link in -ldld... " >&6; } 11343if ${ac_cv_lib_dld_dld_link+:} false; then : 11344 $as_echo_n "(cached) " >&6 11345else 11346 ac_check_lib_save_LIBS=$LIBS 11347LIBS="-ldld $LIBS" 11348cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11349/* end confdefs.h. */ 11350 11351/* Override any GCC internal prototype to avoid an error. 11352 Use char because int might match the return type of a GCC 11353 builtin and then its argument prototype would still apply. */ 11354#ifdef __cplusplus 11355extern "C" 11356#endif 11357char dld_link (); 11358int 11359main () 11360{ 11361return dld_link (); 11362 ; 11363 return 0; 11364} 11365_ACEOF 11366if ac_fn_c_try_link "$LINENO"; then : 11367 ac_cv_lib_dld_dld_link=yes 11368else 11369 ac_cv_lib_dld_dld_link=no 11370fi 11371rm -f core conftest.err conftest.$ac_objext \ 11372 conftest$ac_exeext conftest.$ac_ext 11373LIBS=$ac_check_lib_save_LIBS 11374fi 11375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11376$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11377if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11378 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11379fi 11380 11381 11382fi 11383 11384 11385fi 11386 11387 11388fi 11389 11390 11391fi 11392 11393 11394fi 11395 11396 ;; 11397 esac 11398 11399 if test "x$lt_cv_dlopen" != xno; then 11400 enable_dlopen=yes 11401 else 11402 enable_dlopen=no 11403 fi 11404 11405 case $lt_cv_dlopen in 11406 dlopen) 11407 save_CPPFLAGS="$CPPFLAGS" 11408 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11409 11410 save_LDFLAGS="$LDFLAGS" 11411 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11412 11413 save_LIBS="$LIBS" 11414 LIBS="$lt_cv_dlopen_libs $LIBS" 11415 11416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11417$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11418if ${lt_cv_dlopen_self+:} false; then : 11419 $as_echo_n "(cached) " >&6 11420else 11421 if test "$cross_compiling" = yes; then : 11422 lt_cv_dlopen_self=cross 11423else 11424 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11425 lt_status=$lt_dlunknown 11426 cat > conftest.$ac_ext <<_LT_EOF 11427#line $LINENO "configure" 11428#include "confdefs.h" 11429 11430#if HAVE_DLFCN_H 11431#include <dlfcn.h> 11432#endif 11433 11434#include <stdio.h> 11435 11436#ifdef RTLD_GLOBAL 11437# define LT_DLGLOBAL RTLD_GLOBAL 11438#else 11439# ifdef DL_GLOBAL 11440# define LT_DLGLOBAL DL_GLOBAL 11441# else 11442# define LT_DLGLOBAL 0 11443# endif 11444#endif 11445 11446/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11447 find out it does not work in some platform. */ 11448#ifndef LT_DLLAZY_OR_NOW 11449# ifdef RTLD_LAZY 11450# define LT_DLLAZY_OR_NOW RTLD_LAZY 11451# else 11452# ifdef DL_LAZY 11453# define LT_DLLAZY_OR_NOW DL_LAZY 11454# else 11455# ifdef RTLD_NOW 11456# define LT_DLLAZY_OR_NOW RTLD_NOW 11457# else 11458# ifdef DL_NOW 11459# define LT_DLLAZY_OR_NOW DL_NOW 11460# else 11461# define LT_DLLAZY_OR_NOW 0 11462# endif 11463# endif 11464# endif 11465# endif 11466#endif 11467 11468/* When -fvisbility=hidden is used, assume the code has been annotated 11469 correspondingly for the symbols needed. */ 11470#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11471int fnord () __attribute__((visibility("default"))); 11472#endif 11473 11474int fnord () { return 42; } 11475int main () 11476{ 11477 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11478 int status = $lt_dlunknown; 11479 11480 if (self) 11481 { 11482 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11483 else 11484 { 11485 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11486 else puts (dlerror ()); 11487 } 11488 /* dlclose (self); */ 11489 } 11490 else 11491 puts (dlerror ()); 11492 11493 return status; 11494} 11495_LT_EOF 11496 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11497 (eval $ac_link) 2>&5 11498 ac_status=$? 11499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11500 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11501 (./conftest; exit; ) >&5 2>/dev/null 11502 lt_status=$? 11503 case x$lt_status in 11504 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11505 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11506 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11507 esac 11508 else : 11509 # compilation failed 11510 lt_cv_dlopen_self=no 11511 fi 11512fi 11513rm -fr conftest* 11514 11515 11516fi 11517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11518$as_echo "$lt_cv_dlopen_self" >&6; } 11519 11520 if test "x$lt_cv_dlopen_self" = xyes; then 11521 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11523$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11524if ${lt_cv_dlopen_self_static+:} false; then : 11525 $as_echo_n "(cached) " >&6 11526else 11527 if test "$cross_compiling" = yes; then : 11528 lt_cv_dlopen_self_static=cross 11529else 11530 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11531 lt_status=$lt_dlunknown 11532 cat > conftest.$ac_ext <<_LT_EOF 11533#line $LINENO "configure" 11534#include "confdefs.h" 11535 11536#if HAVE_DLFCN_H 11537#include <dlfcn.h> 11538#endif 11539 11540#include <stdio.h> 11541 11542#ifdef RTLD_GLOBAL 11543# define LT_DLGLOBAL RTLD_GLOBAL 11544#else 11545# ifdef DL_GLOBAL 11546# define LT_DLGLOBAL DL_GLOBAL 11547# else 11548# define LT_DLGLOBAL 0 11549# endif 11550#endif 11551 11552/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11553 find out it does not work in some platform. */ 11554#ifndef LT_DLLAZY_OR_NOW 11555# ifdef RTLD_LAZY 11556# define LT_DLLAZY_OR_NOW RTLD_LAZY 11557# else 11558# ifdef DL_LAZY 11559# define LT_DLLAZY_OR_NOW DL_LAZY 11560# else 11561# ifdef RTLD_NOW 11562# define LT_DLLAZY_OR_NOW RTLD_NOW 11563# else 11564# ifdef DL_NOW 11565# define LT_DLLAZY_OR_NOW DL_NOW 11566# else 11567# define LT_DLLAZY_OR_NOW 0 11568# endif 11569# endif 11570# endif 11571# endif 11572#endif 11573 11574/* When -fvisbility=hidden is used, assume the code has been annotated 11575 correspondingly for the symbols needed. */ 11576#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11577int fnord () __attribute__((visibility("default"))); 11578#endif 11579 11580int fnord () { return 42; } 11581int main () 11582{ 11583 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11584 int status = $lt_dlunknown; 11585 11586 if (self) 11587 { 11588 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11589 else 11590 { 11591 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11592 else puts (dlerror ()); 11593 } 11594 /* dlclose (self); */ 11595 } 11596 else 11597 puts (dlerror ()); 11598 11599 return status; 11600} 11601_LT_EOF 11602 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11603 (eval $ac_link) 2>&5 11604 ac_status=$? 11605 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11606 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11607 (./conftest; exit; ) >&5 2>/dev/null 11608 lt_status=$? 11609 case x$lt_status in 11610 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11611 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11612 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11613 esac 11614 else : 11615 # compilation failed 11616 lt_cv_dlopen_self_static=no 11617 fi 11618fi 11619rm -fr conftest* 11620 11621 11622fi 11623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11624$as_echo "$lt_cv_dlopen_self_static" >&6; } 11625 fi 11626 11627 CPPFLAGS="$save_CPPFLAGS" 11628 LDFLAGS="$save_LDFLAGS" 11629 LIBS="$save_LIBS" 11630 ;; 11631 esac 11632 11633 case $lt_cv_dlopen_self in 11634 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11635 *) enable_dlopen_self=unknown ;; 11636 esac 11637 11638 case $lt_cv_dlopen_self_static in 11639 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11640 *) enable_dlopen_self_static=unknown ;; 11641 esac 11642fi 11643 11644 11645 11646 11647 11648 11649 11650 11651 11652 11653 11654 11655 11656 11657 11658 11659 11660striplib= 11661old_striplib= 11662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11663$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11664if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11665 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11666 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11668$as_echo "yes" >&6; } 11669else 11670# FIXME - insert some real tests, host_os isn't really good enough 11671 case $host_os in 11672 darwin*) 11673 if test -n "$STRIP" ; then 11674 striplib="$STRIP -x" 11675 old_striplib="$STRIP -S" 11676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11677$as_echo "yes" >&6; } 11678 else 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11680$as_echo "no" >&6; } 11681 fi 11682 ;; 11683 *) 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11685$as_echo "no" >&6; } 11686 ;; 11687 esac 11688fi 11689 11690 11691 11692 11693 11694 11695 11696 11697 11698 11699 11700 11701 # Report which library types will actually be built 11702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11703$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11705$as_echo "$can_build_shared" >&6; } 11706 11707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11708$as_echo_n "checking whether to build shared libraries... " >&6; } 11709 test "$can_build_shared" = "no" && enable_shared=no 11710 11711 # On AIX, shared libraries and static libraries use the same namespace, and 11712 # are all built from PIC. 11713 case $host_os in 11714 aix3*) 11715 test "$enable_shared" = yes && enable_static=no 11716 if test -n "$RANLIB"; then 11717 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11718 postinstall_cmds='$RANLIB $lib' 11719 fi 11720 ;; 11721 11722 aix[4-9]*) 11723 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11724 test "$enable_shared" = yes && enable_static=no 11725 fi 11726 ;; 11727 esac 11728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11729$as_echo "$enable_shared" >&6; } 11730 11731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11732$as_echo_n "checking whether to build static libraries... " >&6; } 11733 # Make sure either enable_shared or enable_static is yes. 11734 test "$enable_shared" = yes || enable_static=yes 11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11736$as_echo "$enable_static" >&6; } 11737 11738 11739 11740 11741fi 11742ac_ext=c 11743ac_cpp='$CPP $CPPFLAGS' 11744ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11745ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11746ac_compiler_gnu=$ac_cv_c_compiler_gnu 11747 11748CC="$lt_save_CC" 11749 11750 11751 11752 11753 11754 11755 11756 11757 11758 11759 11760 11761 11762 11763 11764 ac_config_commands="$ac_config_commands libtool" 11765 11766 11767 11768 11769# Only expand once: 11770 11771 11772ac_ext=c 11773ac_cpp='$CPP $CPPFLAGS' 11774ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11775ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11776ac_compiler_gnu=$ac_cv_c_compiler_gnu 11777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 11778$as_echo_n "checking how to run the C preprocessor... " >&6; } 11779# On Suns, sometimes $CPP names a directory. 11780if test -n "$CPP" && test -d "$CPP"; then 11781 CPP= 11782fi 11783if test -z "$CPP"; then 11784 if ${ac_cv_prog_CPP+:} false; then : 11785 $as_echo_n "(cached) " >&6 11786else 11787 # Double quotes because CPP needs to be expanded 11788 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 11789 do 11790 ac_preproc_ok=false 11791for ac_c_preproc_warn_flag in '' yes 11792do 11793 # Use a header file that comes with gcc, so configuring glibc 11794 # with a fresh cross-compiler works. 11795 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11796 # <limits.h> exists even on freestanding compilers. 11797 # On the NeXT, cc -E runs the code through the compiler's parser, 11798 # not just through cpp. "Syntax error" is here to catch this case. 11799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11800/* end confdefs.h. */ 11801#ifdef __STDC__ 11802# include <limits.h> 11803#else 11804# include <assert.h> 11805#endif 11806 Syntax error 11807_ACEOF 11808if ac_fn_c_try_cpp "$LINENO"; then : 11809 11810else 11811 # Broken: fails on valid input. 11812continue 11813fi 11814rm -f conftest.err conftest.i conftest.$ac_ext 11815 11816 # OK, works on sane cases. Now check whether nonexistent headers 11817 # can be detected and how. 11818 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11819/* end confdefs.h. */ 11820#include <ac_nonexistent.h> 11821_ACEOF 11822if ac_fn_c_try_cpp "$LINENO"; then : 11823 # Broken: success on invalid input. 11824continue 11825else 11826 # Passes both tests. 11827ac_preproc_ok=: 11828break 11829fi 11830rm -f conftest.err conftest.i conftest.$ac_ext 11831 11832done 11833# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11834rm -f conftest.i conftest.err conftest.$ac_ext 11835if $ac_preproc_ok; then : 11836 break 11837fi 11838 11839 done 11840 ac_cv_prog_CPP=$CPP 11841 11842fi 11843 CPP=$ac_cv_prog_CPP 11844else 11845 ac_cv_prog_CPP=$CPP 11846fi 11847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 11848$as_echo "$CPP" >&6; } 11849ac_preproc_ok=false 11850for ac_c_preproc_warn_flag in '' yes 11851do 11852 # Use a header file that comes with gcc, so configuring glibc 11853 # with a fresh cross-compiler works. 11854 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11855 # <limits.h> exists even on freestanding compilers. 11856 # On the NeXT, cc -E runs the code through the compiler's parser, 11857 # not just through cpp. "Syntax error" is here to catch this case. 11858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11859/* end confdefs.h. */ 11860#ifdef __STDC__ 11861# include <limits.h> 11862#else 11863# include <assert.h> 11864#endif 11865 Syntax error 11866_ACEOF 11867if ac_fn_c_try_cpp "$LINENO"; then : 11868 11869else 11870 # Broken: fails on valid input. 11871continue 11872fi 11873rm -f conftest.err conftest.i conftest.$ac_ext 11874 11875 # OK, works on sane cases. Now check whether nonexistent headers 11876 # can be detected and how. 11877 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11878/* end confdefs.h. */ 11879#include <ac_nonexistent.h> 11880_ACEOF 11881if ac_fn_c_try_cpp "$LINENO"; then : 11882 # Broken: success on invalid input. 11883continue 11884else 11885 # Passes both tests. 11886ac_preproc_ok=: 11887break 11888fi 11889rm -f conftest.err conftest.i conftest.$ac_ext 11890 11891done 11892# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 11893rm -f conftest.i conftest.err conftest.$ac_ext 11894if $ac_preproc_ok; then : 11895 11896else 11897 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 11898$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 11899as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 11900See \`config.log' for more details" "$LINENO" 5; } 11901fi 11902 11903ac_ext=c 11904ac_cpp='$CPP $CPPFLAGS' 11905ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11906ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11907ac_compiler_gnu=$ac_cv_c_compiler_gnu 11908 11909 11910 11911 11912 11913 11914if test -z "$GCC" ; then 11915 DEBUG="-g $CFLAGS" 11916 PROFILE="-g -p $CFLAGS" 11917else 11918 DEBUG="-g -std=gnu99 $CFLAGS" 11919 PROFILE="-g -p -std=gnu99 $CFLAGS" 11920 CFLAGS="-std=gnu99 $CFLAGS" 11921fi 11922 11923 11924 11925 11926case $host in 11927 *-*-*bsd*) 11928 dlopen_flag="RTLD_LAZY" ;; 11929 *) 11930 dlopen_flag="RTLD_NOW" ;; 11931esac 11932 11933 11934cat >>confdefs.h <<_ACEOF 11935#define DLOPEN_FLAG $dlopen_flag 11936_ACEOF 11937 11938 11939 11940 11941 if false; then 11942 HAVE_DBI_TRUE= 11943 HAVE_DBI_FALSE='#' 11944else 11945 HAVE_DBI_TRUE='#' 11946 HAVE_DBI_FALSE= 11947fi 11948 11949ac_dbi_incdir="no" 11950 11951# exported variables 11952DBI_INCLUDE="" 11953 11954{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdbi framework" >&5 11955$as_echo_n "checking for libdbi framework... " >&6; } 11956 11957 11958# Check whether --with-dbi-incdir was given. 11959if test "${with_dbi_incdir+set}" = set; then : 11960 withval=$with_dbi_incdir; ac_dbi_incdir="$withval" 11961fi 11962 11963 11964if test "$ac_dbi_incdir" = "no"; then 11965 for ac_header in dbi/dbi.h 11966do : 11967 ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default" 11968if test "x$ac_cv_header_dbi_dbi_h" = xyes; then : 11969 cat >>confdefs.h <<_ACEOF 11970#define HAVE_DBI_DBI_H 1 11971_ACEOF 11972 11973fi 11974 11975done 11976 11977 DBI_INCLUDE="" 11978else 11979 DBI_INCLUDE=-I$ac_dbi_incdir 11980fi 11981 11982 11983 11984 11985 if false; then 11986 HAVE_MYSQL_TRUE= 11987 HAVE_MYSQL_FALSE='#' 11988else 11989 HAVE_MYSQL_TRUE='#' 11990 HAVE_MYSQL_FALSE= 11991fi 11992 11993ac_mysql="no" 11994ac_mysql_incdir="no" 11995ac_mysql_libdir="no" 11996 11997# exported variables 11998MYSQL_LIBS="" 11999MYSQL_LDFLAGS="" 12000MYSQL_INCLUDE="" 12001MYSQL_TEST="" 12002 12003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL support" >&5 12004$as_echo_n "checking for MySQL support... " >&6; } 12005 12006 12007# Check whether --with-mysql was given. 12008if test "${with_mysql+set}" = set; then : 12009 withval=$with_mysql; ac_mysql="$withval" 12010fi 12011 12012 12013# Check whether --with-mysql-incdir was given. 12014if test "${with_mysql_incdir+set}" = set; then : 12015 withval=$with_mysql_incdir; ac_mysql_incdir="$withval" 12016fi 12017 12018 12019# Check whether --with-mysql-libdir was given. 12020if test "${with_mysql_libdir+set}" = set; then : 12021 withval=$with_mysql_libdir; ac_mysql_libdir="$withval" 12022fi 12023 12024 12025ac_mysql_threadsafe="NO" 12026# Check whether --enable-mysql-threadsafe was given. 12027if test "${enable_mysql_threadsafe+set}" = set; then : 12028 enableval=$enable_mysql_threadsafe; if test "$enable_mysql_threadsafe" = "yes"; then 12029 ac_mysql_threadsafe="YES" 12030 fi 12031fi 12032 12033 12034if test "$ac_mysql" = "yes"; then 12035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12036$as_echo "yes" >&6; } 12037 if test "$ac_mysql_incdir" = "no" || test "$ac_mysql_libdir" = "no"; then 12038 # Extract the first word of "mysql_config", so it can be a program name with args. 12039set dummy mysql_config; ac_word=$2 12040{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12041$as_echo_n "checking for $ac_word... " >&6; } 12042if ${ac_cv_prog_MYSQL_CONFIG+:} false; then : 12043 $as_echo_n "(cached) " >&6 12044else 12045 if test -n "$MYSQL_CONFIG"; then 12046 ac_cv_prog_MYSQL_CONFIG="$MYSQL_CONFIG" # Let the user override the test. 12047else 12048as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12049for as_dir in $PATH 12050do 12051 IFS=$as_save_IFS 12052 test -z "$as_dir" && as_dir=. 12053 for ac_exec_ext in '' $ac_executable_extensions; do 12054 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12055 ac_cv_prog_MYSQL_CONFIG="yes" 12056 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12057 break 2 12058 fi 12059done 12060 done 12061IFS=$as_save_IFS 12062 12063 test -z "$ac_cv_prog_MYSQL_CONFIG" && ac_cv_prog_MYSQL_CONFIG="no" 12064fi 12065fi 12066MYSQL_CONFIG=$ac_cv_prog_MYSQL_CONFIG 12067if test -n "$MYSQL_CONFIG"; then 12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_CONFIG" >&5 12069$as_echo "$MYSQL_CONFIG" >&6; } 12070else 12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12072$as_echo "no" >&6; } 12073fi 12074 12075 12076 if test "$MYSQL_CONFIG" = "no"; then 12077 as_fn_error $? "cannot auto-configure MySQL without mysql_config" "$LINENO" 5 12078 fi 12079 fi 12080 12081 if test "$ac_mysql_incdir" = "no"; then 12082 MYSQL_INCLUDE=`mysql_config --include` 12083 else 12084 MYSQL_INCLUDE=-I$ac_mysql_incdir 12085 fi 12086 if test "$ac_mysql_libdir" = "no"; then 12087 if test "$ac_mysql_threadsafe" = "YES"; then 12088 MYSQL_LIBS=`mysql_config --libs_r` 12089 else 12090 MYSQL_LIBS=`mysql_config --libs` 12091 fi 12092 else 12093 if test "$ac_mysql_threadsafe" = "YES"; then 12094 MYSQL_LIBS="-L$ac_mysql_libdir -lmysqlclient_r" 12095 else 12096 MYSQL_LIBS="-L$ac_mysql_libdir -lmysqlclient" 12097 fi 12098 fi 12099 12100 if true; then 12101 HAVE_MYSQL_TRUE= 12102 HAVE_MYSQL_FALSE='#' 12103else 12104 HAVE_MYSQL_TRUE='#' 12105 HAVE_MYSQL_FALSE= 12106fi 12107 12108 MYSQL_TEST="test_mysql.sh" 12109 12110 12111 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL includes" >&5 12113$as_echo_n "checking for MySQL includes... " >&6; } 12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_INCLUDE" >&5 12115$as_echo "$MYSQL_INCLUDE" >&6; } 12116 12117 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MySQL libraries" >&5 12118$as_echo_n "checking for MySQL libraries... " >&6; } 12119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MYSQL_LDFLAGS" >&5 12120$as_echo "$MYSQL_LDFLAGS" >&6; } 12121else 12122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12123$as_echo "no" >&6; } 12124fi 12125 12126 12127 12128 if false; then 12129 HAVE_PGSQL_TRUE= 12130 HAVE_PGSQL_FALSE='#' 12131else 12132 HAVE_PGSQL_TRUE='#' 12133 HAVE_PGSQL_FALSE= 12134fi 12135 12136ac_pgsql="no" 12137ac_pgsql_incdir="no" 12138ac_pgsql_libdir="no" 12139 12140# exported variables 12141PGSQL_LIBS="" 12142PGSQL_LDFLAGS="" 12143PGSQL_INCLUDE="" 12144PGSQL_TEST="" 12145 12146{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL support" >&5 12147$as_echo_n "checking for PostgreSQL support... " >&6; } 12148 12149 12150# Check whether --with-pgsql was given. 12151if test "${with_pgsql+set}" = set; then : 12152 withval=$with_pgsql; ac_pgsql="$withval" 12153fi 12154 12155 12156# Check whether --with-pgsql-incdir was given. 12157if test "${with_pgsql_incdir+set}" = set; then : 12158 withval=$with_pgsql_incdir; ac_pgsql_incdir="$withval" 12159fi 12160 12161 12162# Check whether --with-pgsql-libdir was given. 12163if test "${with_pgsql_libdir+set}" = set; then : 12164 withval=$with_pgsql_libdir; ac_pgsql_libdir="$withval" 12165fi 12166 12167 12168if test "$ac_pgsql" = "yes"; then 12169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12170$as_echo "yes" >&6; } 12171 if test "$ac_pgsql_incdir" = "no" || test "$ac_pgsql_libdir" = "no"; then 12172 # Extract the first word of "pg_config", so it can be a program name with args. 12173set dummy pg_config; ac_word=$2 12174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12175$as_echo_n "checking for $ac_word... " >&6; } 12176if ${ac_cv_prog_PG_CONFIG+:} false; then : 12177 $as_echo_n "(cached) " >&6 12178else 12179 if test -n "$PG_CONFIG"; then 12180 ac_cv_prog_PG_CONFIG="$PG_CONFIG" # Let the user override the test. 12181else 12182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12183for as_dir in $PATH 12184do 12185 IFS=$as_save_IFS 12186 test -z "$as_dir" && as_dir=. 12187 for ac_exec_ext in '' $ac_executable_extensions; do 12188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12189 ac_cv_prog_PG_CONFIG="yes" 12190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12191 break 2 12192 fi 12193done 12194 done 12195IFS=$as_save_IFS 12196 12197 test -z "$ac_cv_prog_PG_CONFIG" && ac_cv_prog_PG_CONFIG="no" 12198fi 12199fi 12200PG_CONFIG=$ac_cv_prog_PG_CONFIG 12201if test -n "$PG_CONFIG"; then 12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PG_CONFIG" >&5 12203$as_echo "$PG_CONFIG" >&6; } 12204else 12205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12206$as_echo "no" >&6; } 12207fi 12208 12209 12210 if test "$PG_CONFIG" = "no"; then 12211 as_fn_error $? "cannot auto-configure PostgreSQL without pg_config" "$LINENO" 5 12212 fi 12213 fi 12214 if test "$ac_pgsql_incdir" = "no"; then 12215 PGSQL_INCLUDE="-I"`pg_config --includedir` 12216 else 12217 PGSQL_INCLUDE=-I$ac_pgsql_incdir 12218 fi 12219 if test "$ac_pgsql_libdir" = "no"; then 12220 PGSQL_LDFLAGS=`pg_config --libdir` 12221 else 12222 PGSQL_LDFLAGS=-L$ac_pgsql_libdir 12223 fi 12224 12225 PGSQL_LIBS=-lpq 12226 PGSQL_TEST="test_pgsql.sh" 12227 12228 12229 if true; then 12230 HAVE_PGSQL_TRUE= 12231 HAVE_PGSQL_FALSE='#' 12232else 12233 HAVE_PGSQL_TRUE='#' 12234 HAVE_PGSQL_FALSE= 12235fi 12236 12237 12238 12239 12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL includes" >&5 12241$as_echo_n "checking for PostgreSQL includes... " >&6; } 12242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_INCLUDE" >&5 12243$as_echo "$PGSQL_INCLUDE" >&6; } 12244 12245 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PostgreSQL libraries" >&5 12246$as_echo_n "checking for PostgreSQL libraries... " >&6; } 12247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PGSQL_LDFLAGS" >&5 12248$as_echo "$PGSQL_LDFLAGS" >&6; } 12249else 12250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12251$as_echo "no" >&6; } 12252fi 12253 12254 12255 12256 if false; then 12257 HAVE_SQLITE_TRUE= 12258 HAVE_SQLITE_FALSE='#' 12259else 12260 HAVE_SQLITE_TRUE='#' 12261 HAVE_SQLITE_FALSE= 12262fi 12263 12264ac_sqlite="no" 12265ac_sqlite_incdir="no" 12266ac_sqlite_libdir="no" 12267 12268# exported variables 12269SQLITE_LIBS="" 12270SQLITE_LDFLAGS="" 12271SQLITE_INCLUDE="" 12272SQLITE_TEST="" 12273 12274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite support" >&5 12275$as_echo_n "checking for SQLite support... " >&6; } 12276 12277 12278# Check whether --with-sqlite was given. 12279if test "${with_sqlite+set}" = set; then : 12280 withval=$with_sqlite; ac_sqlite="$withval" 12281fi 12282 12283 12284# Check whether --with-sqlite-incdir was given. 12285if test "${with_sqlite_incdir+set}" = set; then : 12286 withval=$with_sqlite_incdir; ac_sqlite_incdir="$withval" 12287fi 12288 12289 12290# Check whether --with-sqlite-libdir was given. 12291if test "${with_sqlite_libdir+set}" = set; then : 12292 withval=$with_sqlite_libdir; ac_sqlite_libdir="$withval" 12293fi 12294 12295 12296if test "$ac_sqlite" = "yes"; then 12297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12298$as_echo "yes" >&6; } 12299 if test "$ac_sqlite_incdir" = "no"; then 12300 ac_fn_c_check_header_mongrel "$LINENO" "sqlite.h" "ac_cv_header_sqlite_h" "$ac_includes_default" 12301if test "x$ac_cv_header_sqlite_h" = xyes; then : 12302 12303fi 12304 12305 12306 SQLITE_INCLUDE="" 12307 else 12308 SQLITE_INCLUDE=-I$ac_sqlite_incdir 12309 fi 12310 if test "$ac_sqlite_libdir" = "no"; then 12311 12312{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite_exec" >&5 12313$as_echo_n "checking for library containing sqlite_exec... " >&6; } 12314if ${ac_cv_search_sqlite_exec+:} false; then : 12315 $as_echo_n "(cached) " >&6 12316else 12317 ac_func_search_save_LIBS="$LIBS" 12318ac_cv_search_sqlite_exec="no" 12319cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12320/* end confdefs.h. */ 12321 12322/* Override any GCC internal prototype to avoid an error. 12323 Use char because int might match the return type of a GCC 12324 builtin and then its argument prototype would still apply. */ 12325#ifdef __cplusplus 12326extern "C" 12327#endif 12328char sqlite_exec (); 12329int 12330main () 12331{ 12332return sqlite_exec (); 12333 ; 12334 return 0; 12335} 12336_ACEOF 12337if ac_fn_c_try_link "$LINENO"; then : 12338 ac_cv_search_sqlite_exec="none required" 12339fi 12340rm -f core conftest.err conftest.$ac_objext \ 12341 conftest$ac_exeext conftest.$ac_ext 12342test "$ac_cv_search_sqlite_exec" = "no" && for i in sqlite; do 12343LIBS="-l$i $ac_func_search_save_LIBS" 12344cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12345/* end confdefs.h. */ 12346 12347/* Override any GCC internal prototype to avoid an error. 12348 Use char because int might match the return type of a GCC 12349 builtin and then its argument prototype would still apply. */ 12350#ifdef __cplusplus 12351extern "C" 12352#endif 12353char sqlite_exec (); 12354int 12355main () 12356{ 12357return sqlite_exec (); 12358 ; 12359 return 0; 12360} 12361_ACEOF 12362if ac_fn_c_try_link "$LINENO"; then : 12363 ac_cv_search_sqlite_exec="-l$i" 12364break 12365fi 12366rm -f core conftest.err conftest.$ac_objext \ 12367 conftest$ac_exeext conftest.$ac_ext 12368done 12369LIBS="$ac_func_search_save_LIBS" 12370fi 12371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite_exec" >&5 12372$as_echo "$ac_cv_search_sqlite_exec" >&6; } 12373if test "$ac_cv_search_sqlite_exec" != "no"; then 12374 test "$ac_cv_search_sqlite_exec" = "none required" || SQLITE_LIBS="$SQLITE_LIBS $ac_cv_search_sqlite_exec" 12375 12376else : 12377 12378fi 12379 SQLITE_LDFLAGS="" 12380 else 12381 SQLITE_LIBS=-lsqlite 12382 SQLITE_LDFLAGS=-L$ac_sqlite_libdir 12383 fi 12384 12385 SQLITE_TEST="test_sqlite.sh" 12386 12387 if true; then 12388 HAVE_SQLITE_TRUE= 12389 HAVE_SQLITE_FALSE='#' 12390else 12391 HAVE_SQLITE_TRUE='#' 12392 HAVE_SQLITE_FALSE= 12393fi 12394 12395 12396 12397 12398 12399else 12400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12401$as_echo "no" >&6; } 12402fi 12403 12404 12405 12406 if false; then 12407 HAVE_SQLITE3_TRUE= 12408 HAVE_SQLITE3_FALSE='#' 12409else 12410 HAVE_SQLITE3_TRUE='#' 12411 HAVE_SQLITE3_FALSE= 12412fi 12413 12414ac_sqlite3="no" 12415ac_sqlite3_incdir="no" 12416ac_sqlite3_libdir="no" 12417 12418# exported variables 12419SQLITE3_LIBS="" 12420SQLITE3_LDFLAGS="" 12421SQLITE3_INCLUDE="" 12422SQLITE3_TEST="" 12423 12424{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for SQLite3 support" >&5 12425$as_echo_n "checking for SQLite3 support... " >&6; } 12426 12427 12428# Check whether --with-sqlite3 was given. 12429if test "${with_sqlite3+set}" = set; then : 12430 withval=$with_sqlite3; ac_sqlite3="$withval" 12431fi 12432 12433 12434# Check whether --with-sqlite3-incdir was given. 12435if test "${with_sqlite3_incdir+set}" = set; then : 12436 withval=$with_sqlite3_incdir; ac_sqlite3_incdir="$withval" 12437fi 12438 12439 12440# Check whether --with-sqlite3-libdir was given. 12441if test "${with_sqlite3_libdir+set}" = set; then : 12442 withval=$with_sqlite3_libdir; ac_sqlite3_libdir="$withval" 12443fi 12444 12445 12446if test "$ac_sqlite3" = "yes"; then 12447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12448$as_echo "yes" >&6; } 12449 if test "$ac_sqlite3_incdir" = "no"; then 12450 ac_fn_c_check_header_mongrel "$LINENO" "sqlite3.h" "ac_cv_header_sqlite3_h" "$ac_includes_default" 12451if test "x$ac_cv_header_sqlite3_h" = xyes; then : 12452 12453fi 12454 12455 12456 SQLITE3_INCLUDE="" 12457 else 12458 SQLITE3_INCLUDE=-I$ac_sqlite3_incdir 12459 fi 12460 if test "$ac_sqlite3_libdir" = "no"; then 12461 12462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing sqlite3_exec" >&5 12463$as_echo_n "checking for library containing sqlite3_exec... " >&6; } 12464if ${ac_cv_search_sqlite3_exec+:} false; then : 12465 $as_echo_n "(cached) " >&6 12466else 12467 ac_func_search_save_LIBS="$LIBS" 12468ac_cv_search_sqlite3_exec="no" 12469cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12470/* end confdefs.h. */ 12471 12472/* Override any GCC internal prototype to avoid an error. 12473 Use char because int might match the return type of a GCC 12474 builtin and then its argument prototype would still apply. */ 12475#ifdef __cplusplus 12476extern "C" 12477#endif 12478char sqlite3_exec (); 12479int 12480main () 12481{ 12482return sqlite3_exec (); 12483 ; 12484 return 0; 12485} 12486_ACEOF 12487if ac_fn_c_try_link "$LINENO"; then : 12488 ac_cv_search_sqlite3_exec="none required" 12489fi 12490rm -f core conftest.err conftest.$ac_objext \ 12491 conftest$ac_exeext conftest.$ac_ext 12492test "$ac_cv_search_sqlite3_exec" = "no" && for i in sqlite3; do 12493LIBS="-l$i $ac_func_search_save_LIBS" 12494cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12495/* end confdefs.h. */ 12496 12497/* Override any GCC internal prototype to avoid an error. 12498 Use char because int might match the return type of a GCC 12499 builtin and then its argument prototype would still apply. */ 12500#ifdef __cplusplus 12501extern "C" 12502#endif 12503char sqlite3_exec (); 12504int 12505main () 12506{ 12507return sqlite3_exec (); 12508 ; 12509 return 0; 12510} 12511_ACEOF 12512if ac_fn_c_try_link "$LINENO"; then : 12513 ac_cv_search_sqlite3_exec="-l$i" 12514break 12515fi 12516rm -f core conftest.err conftest.$ac_objext \ 12517 conftest$ac_exeext conftest.$ac_ext 12518done 12519LIBS="$ac_func_search_save_LIBS" 12520fi 12521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_sqlite3_exec" >&5 12522$as_echo "$ac_cv_search_sqlite3_exec" >&6; } 12523if test "$ac_cv_search_sqlite3_exec" != "no"; then 12524 test "$ac_cv_search_sqlite3_exec" = "none required" || SQLITE3_LIBS="$SQLITE3_LIBS $ac_cv_search_sqlite3_exec" 12525 12526else : 12527 12528fi 12529 SQLITE3_LDFLAGS="" 12530 else 12531 SQLITE3_LIBS=-lsqlite 12532 SQLITE3_LDFLAGS=-L$ac_sqlite3_libdir 12533 fi 12534 12535 SQLITE3_TEST="test_sqlite3.sh" 12536 if true; then 12537 HAVE_SQLITE3_TRUE= 12538 HAVE_SQLITE3_FALSE='#' 12539else 12540 HAVE_SQLITE3_TRUE='#' 12541 HAVE_SQLITE3_FALSE= 12542fi 12543 12544 12545 12546 12547 12548else 12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12550$as_echo "no" >&6; } 12551fi 12552 12553 12554 12555 if false; then 12556 HAVE_MSQL_TRUE= 12557 HAVE_MSQL_FALSE='#' 12558else 12559 HAVE_MSQL_TRUE='#' 12560 HAVE_MSQL_FALSE= 12561fi 12562 12563ac_msql="no" 12564ac_msql_incdir="no" 12565ac_msql_libdir="no" 12566 12567# exported variables 12568MSQL_LIBS="" 12569MSQL_LDFLAGS="" 12570MSQL_INCLUDE="" 12571MSQL_TEST="" 12572 12573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Msql support" >&5 12574$as_echo_n "checking for Msql support... " >&6; } 12575 12576 12577# Check whether --with-msql was given. 12578if test "${with_msql+set}" = set; then : 12579 withval=$with_msql; ac_msql="$withval" 12580fi 12581 12582 12583# Check whether --with-msql-incdir was given. 12584if test "${with_msql_incdir+set}" = set; then : 12585 withval=$with_msql_incdir; ac_msql_incdir="$withval" 12586fi 12587 12588 12589# Check whether --with-msql-libdir was given. 12590if test "${with_msql_libdir+set}" = set; then : 12591 withval=$with_msql_libdir; ac_msql_libdir="$withval" 12592fi 12593 12594 12595if test "$ac_msql" = "yes"; then 12596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12597$as_echo "yes" >&6; } 12598 if test "$ac_msql_incdir" = "no"; then 12599 ac_fn_c_check_header_mongrel "$LINENO" "msql.h" "ac_cv_header_msql_h" "$ac_includes_default" 12600if test "x$ac_cv_header_msql_h" = xyes; then : 12601 12602fi 12603 12604 12605 MSQL_INCLUDE="" 12606 else 12607 MSQL_INCLUDE=-I$ac_msql_incdir 12608 fi 12609 if test "$ac_msql_libdir" = "no"; then 12610 12611{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing msql_exec" >&5 12612$as_echo_n "checking for library containing msql_exec... " >&6; } 12613if ${ac_cv_search_msql_exec+:} false; then : 12614 $as_echo_n "(cached) " >&6 12615else 12616 ac_func_search_save_LIBS="$LIBS" 12617ac_cv_search_msql_exec="no" 12618cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12619/* end confdefs.h. */ 12620 12621/* Override any GCC internal prototype to avoid an error. 12622 Use char because int might match the return type of a GCC 12623 builtin and then its argument prototype would still apply. */ 12624#ifdef __cplusplus 12625extern "C" 12626#endif 12627char msql_exec (); 12628int 12629main () 12630{ 12631return msql_exec (); 12632 ; 12633 return 0; 12634} 12635_ACEOF 12636if ac_fn_c_try_link "$LINENO"; then : 12637 ac_cv_search_msql_exec="none required" 12638fi 12639rm -f core conftest.err conftest.$ac_objext \ 12640 conftest$ac_exeext conftest.$ac_ext 12641test "$ac_cv_search_msql_exec" = "no" && for i in msql; do 12642LIBS="-l$i $ac_func_search_save_LIBS" 12643cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12644/* end confdefs.h. */ 12645 12646/* Override any GCC internal prototype to avoid an error. 12647 Use char because int might match the return type of a GCC 12648 builtin and then its argument prototype would still apply. */ 12649#ifdef __cplusplus 12650extern "C" 12651#endif 12652char msql_exec (); 12653int 12654main () 12655{ 12656return msql_exec (); 12657 ; 12658 return 0; 12659} 12660_ACEOF 12661if ac_fn_c_try_link "$LINENO"; then : 12662 ac_cv_search_msql_exec="-l$i" 12663break 12664fi 12665rm -f core conftest.err conftest.$ac_objext \ 12666 conftest$ac_exeext conftest.$ac_ext 12667done 12668LIBS="$ac_func_search_save_LIBS" 12669fi 12670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_msql_exec" >&5 12671$as_echo "$ac_cv_search_msql_exec" >&6; } 12672if test "$ac_cv_search_msql_exec" != "no"; then 12673 test "$ac_cv_search_msql_exec" = "none required" || MSQL_LIBS="$MSQL_LIBS $ac_cv_search_msql_exec" 12674 12675else : 12676 12677fi 12678 MSQL_LDFLAGS="" 12679 else 12680 MSQL_LIBS=-lmsql 12681 MSQL_LDFLAGS=-L$ac_msql_libdir 12682 fi 12683 12684 MSQL_TEST="test_msql.sh" 12685 12686 if true; then 12687 HAVE_MSQL_TRUE= 12688 HAVE_MSQL_FALSE='#' 12689else 12690 HAVE_MSQL_TRUE='#' 12691 HAVE_MSQL_FALSE= 12692fi 12693 12694 12695 12696 12697 12698else 12699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12700$as_echo "no" >&6; } 12701fi 12702 12703 12704 12705 if false; then 12706 HAVE_ORACLE_TRUE= 12707 HAVE_ORACLE_FALSE='#' 12708else 12709 HAVE_ORACLE_TRUE='#' 12710 HAVE_ORACLE_FALSE= 12711fi 12712 12713ac_oracle="no" 12714ac_oracle_incdir="no" 12715ac_oracle_libdir="no" 12716 12717# exported variables 12718ORACLE_LIBS="" 12719ORACLE_LDFLAGS="" 12720ORACLE_INCLUDE="" 12721ORACLE_TEST="" 12722 12723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Oracle support" >&5 12724$as_echo_n "checking for Oracle support... " >&6; } 12725 12726 12727# Check whether --with-oracle was given. 12728if test "${with_oracle+set}" = set; then : 12729 withval=$with_oracle; ac_oracle="$withval" 12730fi 12731 12732 12733# Check whether --with-oracle-dir was given. 12734if test "${with_oracle_dir+set}" = set; then : 12735 withval=$with_oracle_dir; ac_oracle_incdir="$withval"/rdbms/demo 12736 ac_oracle_libdir="$withval"/lib 12737fi 12738 12739 12740# Check whether --with-oracle-incdir was given. 12741if test "${with_oracle_incdir+set}" = set; then : 12742 withval=$with_oracle_incdir; ac_oracle_incdir="$withval" 12743fi 12744 12745 12746# Check whether --with-oracle-libdir was given. 12747if test "${with_oracle_libdir+set}" = set; then : 12748 withval=$with_oracle_libdir; ac_oracle_libdir="$withval" 12749fi 12750 12751 12752if test "$ac_oracle" = "yes"; then 12753 if test "$ac_oracle_incdir" = "no" || test "$ac_oracle_libs" = "no"; then 12754 oracle_incdirs="$ORACLE_HOME/rdbms/demo $ORACLE_HOME/rdbms/public" 12755 12756ac_oracle_incdir=no 12757for i in $oracle_incdirs; do 12758 for j in oci.h; do 12759 if test -r "$i/$j"; then 12760 ac_oracle_incdir=$i 12761 break 2 12762 fi 12763 done 12764done 12765 12766 oracle_libdirs="$ORACLE_HOME/lib" 12767 12768ac_oracle_libdir=no 12769for i in $oracle_libdirs; do 12770 for j in libclntsh.so; do 12771 if test -r "$i/$j"; then 12772 ac_oracle_libdir=$i 12773 break 2 12774 fi 12775 done 12776done 12777 12778 if test "$ac_oracle_incdir" = "no"; then 12779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12780$as_echo "no" >&6; } 12781 as_fn_error $? "Invalid Oracle directory - include files not found." "$LINENO" 5 12782 fi 12783 if test "$ac_oracle_libdir" = "no"; then 12784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12785$as_echo "no" >&6; } 12786 as_fn_error $? "Invalid Oracle directory - libraries not found." "$LINENO" 5 12787 fi 12788 fi 12789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: libs in $ac_oracle_libdir, headers in $ac_oracle_incdir" >&5 12790$as_echo "yes: libs in $ac_oracle_libdir, headers in $ac_oracle_incdir" >&6; } 12791 if true; then 12792 HAVE_ORACLE_TRUE= 12793 HAVE_ORACLE_FALSE='#' 12794else 12795 HAVE_ORACLE_TRUE='#' 12796 HAVE_ORACLE_FALSE= 12797fi 12798 12799 12800 ORACLE_LIBS=-lclntsh 12801 ORACLE_INCLUDE="-I$ac_oracle_incdir -I$ORACLE_HOME/rdbms/public" 12802 ORACLE_LDFLAGS=-L$ac_oracle_libdir 12803 ORACLE_TEST="test_oracle.sh" 12804 12805 12806 12807 12808else 12809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12810$as_echo "no" >&6; } 12811fi 12812 12813 12814 12815 if false; then 12816 HAVE_FIREBIRD_INTERBASE_TRUE= 12817 HAVE_FIREBIRD_INTERBASE_FALSE='#' 12818else 12819 HAVE_FIREBIRD_INTERBASE_TRUE='#' 12820 HAVE_FIREBIRD_INTERBASE_FALSE= 12821fi 12822 12823ac_firebird="no" 12824ac_firebird_incdir="no" 12825ac_firebird_libdir="no" 12826 12827# exported variables 12828FIREBIRD_LIBS="" 12829FIREBIRD_LDFLAGS="" 12830FIREBIRD_INCLUDE="" 12831FIREBIRD_TEST="" 12832 12833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Firebird/Interbase support" >&5 12834$as_echo_n "checking for Firebird/Interbase support... " >&6; } 12835 12836 12837# Check whether --with-firebird was given. 12838if test "${with_firebird+set}" = set; then : 12839 withval=$with_firebird; ac_firebird="$withval" 12840fi 12841 12842 12843# Check whether --with-firebird-incdir was given. 12844if test "${with_firebird_incdir+set}" = set; then : 12845 withval=$with_firebird_incdir; ac_firebird_incdir="$withval" 12846fi 12847 12848 12849# Check whether --with-firebird-libdir was given. 12850if test "${with_firebird_libdir+set}" = set; then : 12851 withval=$with_firebird_libdir; ac_firebird_libdir="$withval" 12852fi 12853 12854 12855if test "$ac_firebird" = "yes"; then 12856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 12857$as_echo "yes" >&6; } 12858 if test "$ac_firebird_incdir" = "no"; then 12859 ac_fn_c_check_header_mongrel "$LINENO" "ibase.h" "ac_cv_header_ibase_h" "$ac_includes_default" 12860if test "x$ac_cv_header_ibase_h" = xyes; then : 12861 12862fi 12863 12864 12865 FIREBIRD_INCLUDE="" 12866 else 12867 FIREBIRD_INCLUDE=-I$ac_firebird_incdir 12868 fi 12869 if test "$ac_firebird_libdir" = "no"; then 12870 12871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing isc_dsql_fetch" >&5 12872$as_echo_n "checking for library containing isc_dsql_fetch... " >&6; } 12873if ${ac_cv_search_isc_dsql_fetch+:} false; then : 12874 $as_echo_n "(cached) " >&6 12875else 12876 ac_func_search_save_LIBS="$LIBS" 12877ac_cv_search_isc_dsql_fetch="no" 12878cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12879/* end confdefs.h. */ 12880 12881/* Override any GCC internal prototype to avoid an error. 12882 Use char because int might match the return type of a GCC 12883 builtin and then its argument prototype would still apply. */ 12884#ifdef __cplusplus 12885extern "C" 12886#endif 12887char isc_dsql_fetch (); 12888int 12889main () 12890{ 12891return isc_dsql_fetch (); 12892 ; 12893 return 0; 12894} 12895_ACEOF 12896if ac_fn_c_try_link "$LINENO"; then : 12897 ac_cv_search_isc_dsql_fetch="none required" 12898fi 12899rm -f core conftest.err conftest.$ac_objext \ 12900 conftest$ac_exeext conftest.$ac_ext 12901test "$ac_cv_search_isc_dsql_fetch" = "no" && for i in fbembed; do 12902LIBS="-l$i $ac_func_search_save_LIBS" 12903cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12904/* end confdefs.h. */ 12905 12906/* Override any GCC internal prototype to avoid an error. 12907 Use char because int might match the return type of a GCC 12908 builtin and then its argument prototype would still apply. */ 12909#ifdef __cplusplus 12910extern "C" 12911#endif 12912char isc_dsql_fetch (); 12913int 12914main () 12915{ 12916return isc_dsql_fetch (); 12917 ; 12918 return 0; 12919} 12920_ACEOF 12921if ac_fn_c_try_link "$LINENO"; then : 12922 ac_cv_search_isc_dsql_fetch="-l$i" 12923break 12924fi 12925rm -f core conftest.err conftest.$ac_objext \ 12926 conftest$ac_exeext conftest.$ac_ext 12927done 12928LIBS="$ac_func_search_save_LIBS" 12929fi 12930{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_isc_dsql_fetch" >&5 12931$as_echo "$ac_cv_search_isc_dsql_fetch" >&6; } 12932if test "$ac_cv_search_isc_dsql_fetch" != "no"; then 12933 test "$ac_cv_search_isc_dsql_fetch" = "none required" || FIREBIRD_LIBS="$FIREBIRD_LIBS $ac_cv_search_isc_dsql_fetch" 12934 12935else : 12936 12937fi 12938 FIREBIRD_LDFLAGS="" 12939 else 12940 FIREBIRD_LIBS=-lfbembed 12941 FIREBIRD_LDFLAGS=-L$ac_firebird_libdir 12942 fi 12943 12944 for ac_prog in isql-fb isql 12945do 12946 # Extract the first word of "$ac_prog", so it can be a program name with args. 12947set dummy $ac_prog; ac_word=$2 12948{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12949$as_echo_n "checking for $ac_word... " >&6; } 12950if ${ac_cv_prog_FIREBIRD_ISQL+:} false; then : 12951 $as_echo_n "(cached) " >&6 12952else 12953 if test -n "$FIREBIRD_ISQL"; then 12954 ac_cv_prog_FIREBIRD_ISQL="$FIREBIRD_ISQL" # Let the user override the test. 12955else 12956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12957for as_dir in $PATH 12958do 12959 IFS=$as_save_IFS 12960 test -z "$as_dir" && as_dir=. 12961 for ac_exec_ext in '' $ac_executable_extensions; do 12962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12963 ac_cv_prog_FIREBIRD_ISQL="$ac_prog" 12964 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12965 break 2 12966 fi 12967done 12968 done 12969IFS=$as_save_IFS 12970 12971fi 12972fi 12973FIREBIRD_ISQL=$ac_cv_prog_FIREBIRD_ISQL 12974if test -n "$FIREBIRD_ISQL"; then 12975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIREBIRD_ISQL" >&5 12976$as_echo "$FIREBIRD_ISQL" >&6; } 12977else 12978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12979$as_echo "no" >&6; } 12980fi 12981 12982 12983 test -n "$FIREBIRD_ISQL" && break 12984done 12985 12986 if test "x$FIREBIRD_ISQL != x"; then 12987 FIREBIRD_ISQL_FLAG="-DFIREBIRD_ISQL=\\\"$FIREBIRD_ISQL\\\"" 12988 else 12989 FIREBIRD_ISQL_FLAG="" 12990 fi 12991 12992 FIREBIRD_TEST="test_firebird.sh" 12993 12994 if true; then 12995 HAVE_FIREBIRD_INTERBASE_TRUE= 12996 HAVE_FIREBIRD_INTERBASE_FALSE='#' 12997else 12998 HAVE_FIREBIRD_INTERBASE_TRUE='#' 12999 HAVE_FIREBIRD_INTERBASE_FALSE= 13000fi 13001 13002 13003 13004 13005 13006 13007else 13008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13009$as_echo "no" >&6; } 13010fi 13011 13012 13013 13014 if false; then 13015 HAVE_FREETDS_TRUE= 13016 HAVE_FREETDS_FALSE='#' 13017else 13018 HAVE_FREETDS_TRUE='#' 13019 HAVE_FREETDS_FALSE= 13020fi 13021 13022ac_freetds="no" 13023ac_freetds_incdir="no" 13024ac_freetds_libdir="no" 13025 13026# exported variables 13027FREETDS_LIBS="" 13028FREETDS_LDFLAGS="" 13029FREETDS_INCLUDE="" 13030FREETDS_TEST="" 13031 13032{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Freetds support" >&5 13033$as_echo_n "checking for Freetds support... " >&6; } 13034 13035 13036# Check whether --with-freetds was given. 13037if test "${with_freetds+set}" = set; then : 13038 withval=$with_freetds; ac_freetds="$withval" 13039fi 13040 13041 13042# Check whether --with-freetds-incdir was given. 13043if test "${with_freetds_incdir+set}" = set; then : 13044 withval=$with_freetds_incdir; ac_freetds_incdir="$withval" 13045fi 13046 13047 13048# Check whether --with-freetds-libdir was given. 13049if test "${with_freetds_libdir+set}" = set; then : 13050 withval=$with_freetds_libdir; ac_freetds_libdir="$withval" 13051fi 13052 13053 13054if test "$ac_freetds" = "yes"; then 13055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13056$as_echo "yes" >&6; } 13057 if test "$ac_freetds_incdir" = "no"; then 13058 ac_fn_c_check_header_mongrel "$LINENO" "tds.h" "ac_cv_header_tds_h" "$ac_includes_default" 13059if test "x$ac_cv_header_tds_h" = xyes; then : 13060 13061fi 13062 13063 13064 FREETDS_INCLUDE="" 13065 else 13066 FREETDS_INCLUDE=-I$ac_freetds_incdir 13067 fi 13068 if test "$ac_freetds_libdir" = "no"; then 13069 13070{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing ct_command" >&5 13071$as_echo_n "checking for library containing ct_command... " >&6; } 13072if ${ac_cv_search_ct_command+:} false; then : 13073 $as_echo_n "(cached) " >&6 13074else 13075 ac_func_search_save_LIBS="$LIBS" 13076ac_cv_search_ct_command="no" 13077cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13078/* end confdefs.h. */ 13079 13080/* Override any GCC internal prototype to avoid an error. 13081 Use char because int might match the return type of a GCC 13082 builtin and then its argument prototype would still apply. */ 13083#ifdef __cplusplus 13084extern "C" 13085#endif 13086char ct_command (); 13087int 13088main () 13089{ 13090return ct_command (); 13091 ; 13092 return 0; 13093} 13094_ACEOF 13095if ac_fn_c_try_link "$LINENO"; then : 13096 ac_cv_search_ct_command="none required" 13097fi 13098rm -f core conftest.err conftest.$ac_objext \ 13099 conftest$ac_exeext conftest.$ac_ext 13100test "$ac_cv_search_ct_command" = "no" && for i in ct; do 13101LIBS="-l$i $ac_func_search_save_LIBS" 13102cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13103/* end confdefs.h. */ 13104 13105/* Override any GCC internal prototype to avoid an error. 13106 Use char because int might match the return type of a GCC 13107 builtin and then its argument prototype would still apply. */ 13108#ifdef __cplusplus 13109extern "C" 13110#endif 13111char ct_command (); 13112int 13113main () 13114{ 13115return ct_command (); 13116 ; 13117 return 0; 13118} 13119_ACEOF 13120if ac_fn_c_try_link "$LINENO"; then : 13121 ac_cv_search_ct_command="-l$i" 13122break 13123fi 13124rm -f core conftest.err conftest.$ac_objext \ 13125 conftest$ac_exeext conftest.$ac_ext 13126done 13127LIBS="$ac_func_search_save_LIBS" 13128fi 13129{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_ct_command" >&5 13130$as_echo "$ac_cv_search_ct_command" >&6; } 13131if test "$ac_cv_search_ct_command" != "no"; then 13132 test "$ac_cv_search_ct_command" = "none required" || FREETDS_LIBS="$FREETDS_LIBS $ac_cv_search_ct_command" 13133 13134else : 13135 13136fi 13137 FREETDS_LDFLAGS="" 13138 else 13139 FREETDS_LIBS=-lct 13140 FREETDS_LDFLAGS=-L$ac_freetds_libdir 13141 fi 13142 13143 FREETDS_TEST="test_freetds.sh" 13144 13145 if true; then 13146 HAVE_FREETDS_TRUE= 13147 HAVE_FREETDS_FALSE='#' 13148else 13149 HAVE_FREETDS_TRUE='#' 13150 HAVE_FREETDS_FALSE= 13151fi 13152 13153 13154 13155 13156 13157else 13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13159$as_echo "no" >&6; } 13160fi 13161 13162 13163 13164 if false; then 13165 HAVE_INGRES_TRUE= 13166 HAVE_INGRES_FALSE='#' 13167else 13168 HAVE_INGRES_TRUE='#' 13169 HAVE_INGRES_FALSE= 13170fi 13171 13172ac_ingres="no" 13173ac_ingres_incdir="no" 13174ac_ingres_libdir="no" 13175 13176# exported variables 13177INGRES_LIBS="" 13178INGRES_LDFLAGS="" 13179INGRES_INCLUDE="" 13180INGRES_TEST="" 13181 13182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for Ingres support" >&5 13183$as_echo_n "checking for Ingres support... " >&6; } 13184 13185 13186# Check whether --with-ingres was given. 13187if test "${with_ingres+set}" = set; then : 13188 withval=$with_ingres; ac_ingres="$withval" 13189fi 13190 13191 13192# Check whether --with-ingres-dir was given. 13193if test "${with_ingres_dir+set}" = set; then : 13194 withval=$with_ingres_dir; ac_ingres_incdir="$withval"/ingres/files 13195 ac_ingres_libdir="$withval"/ingres/lib 13196fi 13197 13198 13199# Check whether --with-ingres-incdir was given. 13200if test "${with_ingres_incdir+set}" = set; then : 13201 withval=$with_ingres_incdir; ac_ingres_incdir="$withval" 13202fi 13203 13204 13205# Check whether --with-ingres-libdir was given. 13206if test "${with_ingres_libdir+set}" = set; then : 13207 withval=$with_ingres_libdir; ac_ingres_libdir="$withval" 13208fi 13209 13210 13211if test "$ac_ingres" = "yes"; then 13212 if test "$ac_ingres_incdir" = "no" || test "$ac_ingres_libs" = "no"; then 13213 ingres_incdirs="/usr/include /usr/local/include /opt/Ingres/IngresII/ingres/files" 13214 13215ac_ingres_incdir=no 13216for i in $ingres_incdirs; do 13217 for j in iiapi.h; do 13218 if test -r "$i/$j"; then 13219 ac_ingres_incdir=$i 13220 break 2 13221 fi 13222 done 13223done 13224 13225 ingres_libdirs="/usr/lib /usr/local/lib /opt/Ingres/IngresII/ingres/lib" 13226 13227ac_ingres_libdir=no 13228for i in $ingres_libdirs; do 13229 for j in libingres.a; do 13230 if test -r "$i/$j"; then 13231 ac_ingres_libdir=$i 13232 break 2 13233 fi 13234 done 13235done 13236 13237 if test "$ac_ingres_incdir" = "no"; then 13238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13239$as_echo "no" >&6; } 13240 as_fn_error $? "Invalid Ingres directory - include files not found." "$LINENO" 5 13241 fi 13242 if test "$ac_ingres_libdir" = "no"; then 13243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13244$as_echo "no" >&6; } 13245 as_fn_error $? "Invalid Ingres directory - libraries not found." "$LINENO" 5 13246 fi 13247 fi 13248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: libs in $ac_ingres_libdir, headers in $ac_ingres_incdir" >&5 13249$as_echo "yes: libs in $ac_ingres_libdir, headers in $ac_ingres_incdir" >&6; } 13250 if true; then 13251 HAVE_INGRES_TRUE= 13252 HAVE_INGRES_FALSE='#' 13253else 13254 HAVE_INGRES_TRUE='#' 13255 HAVE_INGRES_FALSE= 13256fi 13257 13258 13259 INGRES_LIBS="-lingres -lpthread -ldl -lm -lcrypt" 13260 INGRES_INCLUDE=-I$ac_ingres_incdir 13261 INGRES_LDFLAGS=-L$ac_ingres_libdir 13262 INGRES_TEST="test_ingres.sh" 13263 13264 13265 13266 13267else 13268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13269$as_echo "no" >&6; } 13270fi 13271 13272 13273 13274 if false; then 13275 HAVE_DB2_TRUE= 13276 HAVE_DB2_FALSE='#' 13277else 13278 HAVE_DB2_TRUE='#' 13279 HAVE_DB2_FALSE= 13280fi 13281 13282ac_db2="no" 13283ac_db2_incdir="no" 13284ac_db2_libdir="no" 13285 13286# exported variables 13287DB2_LIBS="" 13288DB2_LDFLAGS="" 13289DB2_INCLUDE="" 13290DB2_TEST="" 13291 13292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for IBM DB2 support" >&5 13293$as_echo_n "checking for IBM DB2 support... " >&6; } 13294 13295 13296# Check whether --with-db2 was given. 13297if test "${with_db2+set}" = set; then : 13298 withval=$with_db2; ac_db2="$withval" 13299fi 13300 13301 13302# Check whether --with-db2-dir was given. 13303if test "${with_db2_dir+set}" = set; then : 13304 withval=$with_db2_dir; ac_db2_incdir="$withval"/include 13305 ac_db2_libdir="$withval"/lib 13306fi 13307 13308 13309# Check whether --with-db2-incdir was given. 13310if test "${with_db2_incdir+set}" = set; then : 13311 withval=$with_db2_incdir; ac_db2_incdir="$withval" 13312fi 13313 13314 13315# Check whether --with-db2-libdir was given. 13316if test "${with_db2_libdir+set}" = set; then : 13317 withval=$with_db2_libdir; ac_db2_libdir="$withval" 13318fi 13319 13320 13321if test "$ac_db2" = "yes"; then 13322 if test "$ac_db2_incdir" = "no" || test "$ac_db2_libs" = "no"; then 13323 db2_incdirs="$DB2_HOME/rdbms/demo $DB2_HOME/rdbms/public" 13324 13325ac_db2_incdir=no 13326for i in $db2_incdirs; do 13327 for j in sqlcli1.h; do 13328 if test -r "$i/$j"; then 13329 ac_db2_incdir=$i 13330 break 2 13331 fi 13332 done 13333done 13334 13335 db2_libdirs="$ORACLE_HOME/lib" 13336 13337ac_db2_libdir=no 13338for i in $db2_libdirs; do 13339 for j in libdb2.so; do 13340 if test -r "$i/$j"; then 13341 ac_db2_libdir=$i 13342 break 2 13343 fi 13344 done 13345done 13346 13347 if test "$ac_db2_incdir" = "no"; then 13348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13349$as_echo "no" >&6; } 13350 as_fn_error $? "Invalid IBM DB2 directory - include files not found." "$LINENO" 5 13351 fi 13352 if test "$ac_db2_libdir" = "no"; then 13353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13354$as_echo "no" >&6; } 13355 as_fn_error $? "Invalid IBM DB2 directory - libraries not found." "$LINENO" 5 13356 fi 13357 fi 13358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: libs in $ac_db2_libdir, headers in $ac_db2_incdir" >&5 13359$as_echo "yes: libs in $ac_db2_libdir, headers in $ac_db2_incdir" >&6; } 13360 if true; then 13361 HAVE_DB2_TRUE= 13362 HAVE_DB2_FALSE='#' 13363else 13364 HAVE_DB2_TRUE='#' 13365 HAVE_DB2_FALSE= 13366fi 13367 13368 13369 DB2_LIBS=-ldb2 13370 DB2_INCLUDE="-I$ac_db2_incdir -I$DB2_HOME/include" 13371 DB2_LDFLAGS=-L$ac_db2_libdir 13372 DB2_TEST="test_db2.sh" 13373 13374 13375 13376 13377else 13378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13379$as_echo "no" >&6; } 13380fi 13381 13382 13383 13384 13385case $host in 13386 *-*-win32*) 13387 shlib_ext=.dll ;; 13388 *-*-cygwin*) 13389 shlib_ext=.dll ;; 13390 *-*-mingw32*) 13391 shlib_ext=.dll ;; 13392 *) 13393 shlib_ext=.so ;; 13394esac 13395 13396 13397# Check whether --with-shlib-ext was given. 13398if test "${with_shlib_ext+set}" = set; then : 13399 withval=$with_shlib_ext; shlib_ext=$withval 13400fi 13401 13402 13403 13404cat >>confdefs.h <<_ACEOF 13405#define DRIVER_EXT "$shlib_ext" 13406_ACEOF 13407 13408 13409for ac_func in strtoll 13410do : 13411 ac_fn_c_check_func "$LINENO" "strtoll" "ac_cv_func_strtoll" 13412if test "x$ac_cv_func_strtoll" = xyes; then : 13413 cat >>confdefs.h <<_ACEOF 13414#define HAVE_STRTOLL 1 13415_ACEOF 13416 13417fi 13418done 13419 13420ac_fn_c_check_func "$LINENO" "atoll" "ac_cv_func_atoll" 13421if test "x$ac_cv_func_atoll" = xyes; then : 13422 $as_echo "#define HAVE_ATOLL 1" >>confdefs.h 13423 13424else 13425 case " $LIBOBJS " in 13426 *" atoll.$ac_objext "* ) ;; 13427 *) LIBOBJS="$LIBOBJS atoll.$ac_objext" 13428 ;; 13429esac 13430 13431fi 13432 13433 13434for ac_func in vasprintf 13435do : 13436 ac_fn_c_check_func "$LINENO" "vasprintf" "ac_cv_func_vasprintf" 13437if test "x$ac_cv_func_vasprintf" = xyes; then : 13438 cat >>confdefs.h <<_ACEOF 13439#define HAVE_VASPRINTF 1 13440_ACEOF 13441 13442fi 13443done 13444 13445ac_fn_c_check_func "$LINENO" "asprintf" "ac_cv_func_asprintf" 13446if test "x$ac_cv_func_asprintf" = xyes; then : 13447 $as_echo "#define HAVE_ASPRINTF 1" >>confdefs.h 13448 13449else 13450 case " $LIBOBJS " in 13451 *" asprintf.$ac_objext "* ) ;; 13452 *) LIBOBJS="$LIBOBJS asprintf.$ac_objext" 13453 ;; 13454esac 13455 13456fi 13457 13458 13459 13460 13461ac_docs="YES" 13462# Check whether --enable-docs was given. 13463if test "${enable_docs+set}" = set; then : 13464 enableval=$enable_docs; if test "$enable_docs" = "no"; then 13465 ac_docs="NO" 13466 fi 13467fi 13468 13469 13470if test "$ac_docs" = "YES"; then 13471 docs_subdirs="doc" 13472else 13473 docs_subdirs="" 13474fi 13475 13476 13477 13478 if test "x$docs_subdirs" != "x"; then 13479 BUILDDOCS_TRUE= 13480 BUILDDOCS_FALSE='#' 13481else 13482 BUILDDOCS_TRUE='#' 13483 BUILDDOCS_FALSE= 13484fi 13485 13486 13487 13488ac_libdbi="YES" 13489# Check whether --enable-libdbi was given. 13490if test "${enable_libdbi+set}" = set; then : 13491 enableval=$enable_libdbi; if test "$enable_libdbi" = "no"; then 13492 ac_libdbi="NO" 13493 fi 13494fi 13495 13496 13497if test "$ac_libdbi" = "YES"; then 13498 LIBADD_LIBDBI="-no-undefined -ldbi" 13499 LIBDBI_TEST="test_libdbi.sh" 13500 13501 13502else 13503 LIBADD_LIBDBI="-no-undefined" 13504fi 13505 13506 13507# Check whether --with-dbi_dbdir was given. 13508if test "${with_dbi_dbdir+set}" = set; then : 13509 withval=$with_dbi_dbdir; dbi_dbdir=$withval 13510else 13511 dbi_dbdir="\$(localstatedir)/lib/libdbi" 13512fi 13513 13514 13515 13516 13517 13518ac_dbi_libdir="no" 13519 13520 13521# Check whether --with-dbi-libdir was given. 13522if test "${with_dbi_libdir+set}" = set; then : 13523 withval=$with_dbi_libdir; ac_dbi_libdir="$withval" 13524fi 13525 13526 13527if test "$ac_libdbi" = "YES"; then 13528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libdbi library" >&5 13529$as_echo_n "checking for libdbi library... " >&6; } 13530 if test "$ac_dbi_libdir" = "no"; then 13531 dbi_libdirs="/usr/lib /usr/local/lib /sw/lib" 13532 libdbi_libs="libdbi.so libdbi.a" 13533 13534ac_dbi_libdir=no 13535for i in $dbi_libdirs; do 13536 for j in $libdbi_libs; do 13537 if test -r "$i/$j"; then 13538 ac_dbi_libdir=$i 13539 break 2 13540 fi 13541 done 13542done 13543 13544 if test "$ac_dbi_libdir" = "no"; then 13545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13546$as_echo "no" >&6; } 13547 as_fn_error $? "Invalid libdbi directory - include files not found." "$LINENO" 5 13548 fi 13549 fi 13550 13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes: libs in $ac_dbi_libdir" >&5 13552$as_echo "yes: libs in $ac_dbi_libdir" >&6; } 13553 LIBADD_LIBDBI="$LIBADD_LIBDBI -L$ac_dbi_libdir" 13554 13555 13556 13557 LIBDBI_LIBDIR="$ac_dbi_libdir" 13558 13559 13560fi 13561 13562 13563for ac_header in string.h strings.h 13564do : 13565 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 13566ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 13567if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 13568 cat >>confdefs.h <<_ACEOF 13569#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 13570_ACEOF 13571 13572fi 13573 13574done 13575 13576 13577ac_config_files="$ac_config_files libdbi-drivers.spec Makefile doc/Makefile doc/include/Makefile drivers/Makefile drivers/mysql/Makefile drivers/pgsql/Makefile drivers/sqlite/Makefile drivers/sqlite3/Makefile drivers/msql/Makefile drivers/oracle/Makefile drivers/firebird/Makefile drivers/freetds/Makefile drivers/ingres/Makefile drivers/db2/Makefile tests/Makefile tests/cgreen/Makefile tests/test_dbi.cfg tests/plugin_settings.sh" 13578 13579cat >confcache <<\_ACEOF 13580# This file is a shell script that caches the results of configure 13581# tests run on this system so they can be shared between configure 13582# scripts and configure runs, see configure's option --config-cache. 13583# It is not useful on other systems. If it contains results you don't 13584# want to keep, you may remove or edit it. 13585# 13586# config.status only pays attention to the cache file if you give it 13587# the --recheck option to rerun configure. 13588# 13589# `ac_cv_env_foo' variables (set or unset) will be overridden when 13590# loading this file, other *unset* `ac_cv_foo' will be assigned the 13591# following values. 13592 13593_ACEOF 13594 13595# The following way of writing the cache mishandles newlines in values, 13596# but we know of no workaround that is simple, portable, and efficient. 13597# So, we kill variables containing newlines. 13598# Ultrix sh set writes to stderr and can't be redirected directly, 13599# and sets the high bit in the cache file unless we assign to the vars. 13600( 13601 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 13602 eval ac_val=\$$ac_var 13603 case $ac_val in #( 13604 *${as_nl}*) 13605 case $ac_var in #( 13606 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 13607$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 13608 esac 13609 case $ac_var in #( 13610 _ | IFS | as_nl) ;; #( 13611 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 13612 *) { eval $ac_var=; unset $ac_var;} ;; 13613 esac ;; 13614 esac 13615 done 13616 13617 (set) 2>&1 | 13618 case $as_nl`(ac_space=' '; set) 2>&1` in #( 13619 *${as_nl}ac_space=\ *) 13620 # `set' does not quote correctly, so add quotes: double-quote 13621 # substitution turns \\\\ into \\, and sed turns \\ into \. 13622 sed -n \ 13623 "s/'/'\\\\''/g; 13624 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 13625 ;; #( 13626 *) 13627 # `set' quotes correctly as required by POSIX, so do not add quotes. 13628 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 13629 ;; 13630 esac | 13631 sort 13632) | 13633 sed ' 13634 /^ac_cv_env_/b end 13635 t clear 13636 :clear 13637 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 13638 t end 13639 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 13640 :end' >>confcache 13641if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 13642 if test -w "$cache_file"; then 13643 if test "x$cache_file" != "x/dev/null"; then 13644 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 13645$as_echo "$as_me: updating cache $cache_file" >&6;} 13646 if test ! -f "$cache_file" || test -h "$cache_file"; then 13647 cat confcache >"$cache_file" 13648 else 13649 case $cache_file in #( 13650 */* | ?:*) 13651 mv -f confcache "$cache_file"$$ && 13652 mv -f "$cache_file"$$ "$cache_file" ;; #( 13653 *) 13654 mv -f confcache "$cache_file" ;; 13655 esac 13656 fi 13657 fi 13658 else 13659 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 13660$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 13661 fi 13662fi 13663rm -f confcache 13664 13665test "x$prefix" = xNONE && prefix=$ac_default_prefix 13666# Let make expand exec_prefix. 13667test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 13668 13669DEFS=-DHAVE_CONFIG_H 13670 13671ac_libobjs= 13672ac_ltlibobjs= 13673U= 13674for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 13675 # 1. Remove the extension, and $U if already installed. 13676 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 13677 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 13678 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 13679 # will be set to the directory where LIBOBJS objects are built. 13680 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 13681 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 13682done 13683LIBOBJS=$ac_libobjs 13684 13685LTLIBOBJS=$ac_ltlibobjs 13686 13687 13688if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 13689 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. 13690Usually this means the macro was only invoked conditionally." "$LINENO" 5 13691fi 13692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 13693$as_echo_n "checking that generated files are newer than configure... " >&6; } 13694 if test -n "$am_sleep_pid"; then 13695 # Hide warnings about reused PIDs. 13696 wait $am_sleep_pid 2>/dev/null 13697 fi 13698 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 13699$as_echo "done" >&6; } 13700 if test -n "$EXEEXT"; then 13701 am__EXEEXT_TRUE= 13702 am__EXEEXT_FALSE='#' 13703else 13704 am__EXEEXT_TRUE='#' 13705 am__EXEEXT_FALSE= 13706fi 13707 13708if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 13709 as_fn_error $? "conditional \"AMDEP\" was never defined. 13710Usually this means the macro was only invoked conditionally." "$LINENO" 5 13711fi 13712if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 13713 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 13714Usually this means the macro was only invoked conditionally." "$LINENO" 5 13715fi 13716if test -z "${HAVE_DBI_TRUE}" && test -z "${HAVE_DBI_FALSE}"; then 13717 as_fn_error $? "conditional \"HAVE_DBI\" was never defined. 13718Usually this means the macro was only invoked conditionally." "$LINENO" 5 13719fi 13720if test -z "${HAVE_MYSQL_TRUE}" && test -z "${HAVE_MYSQL_FALSE}"; then 13721 as_fn_error $? "conditional \"HAVE_MYSQL\" was never defined. 13722Usually this means the macro was only invoked conditionally." "$LINENO" 5 13723fi 13724if test -z "${HAVE_MYSQL_TRUE}" && test -z "${HAVE_MYSQL_FALSE}"; then 13725 as_fn_error $? "conditional \"HAVE_MYSQL\" was never defined. 13726Usually this means the macro was only invoked conditionally." "$LINENO" 5 13727fi 13728if test -z "${HAVE_PGSQL_TRUE}" && test -z "${HAVE_PGSQL_FALSE}"; then 13729 as_fn_error $? "conditional \"HAVE_PGSQL\" was never defined. 13730Usually this means the macro was only invoked conditionally." "$LINENO" 5 13731fi 13732if test -z "${HAVE_PGSQL_TRUE}" && test -z "${HAVE_PGSQL_FALSE}"; then 13733 as_fn_error $? "conditional \"HAVE_PGSQL\" was never defined. 13734Usually this means the macro was only invoked conditionally." "$LINENO" 5 13735fi 13736if test -z "${HAVE_SQLITE_TRUE}" && test -z "${HAVE_SQLITE_FALSE}"; then 13737 as_fn_error $? "conditional \"HAVE_SQLITE\" was never defined. 13738Usually this means the macro was only invoked conditionally." "$LINENO" 5 13739fi 13740if test -z "${HAVE_SQLITE_TRUE}" && test -z "${HAVE_SQLITE_FALSE}"; then 13741 as_fn_error $? "conditional \"HAVE_SQLITE\" was never defined. 13742Usually this means the macro was only invoked conditionally." "$LINENO" 5 13743fi 13744if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then 13745 as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined. 13746Usually this means the macro was only invoked conditionally." "$LINENO" 5 13747fi 13748if test -z "${HAVE_SQLITE3_TRUE}" && test -z "${HAVE_SQLITE3_FALSE}"; then 13749 as_fn_error $? "conditional \"HAVE_SQLITE3\" was never defined. 13750Usually this means the macro was only invoked conditionally." "$LINENO" 5 13751fi 13752if test -z "${HAVE_MSQL_TRUE}" && test -z "${HAVE_MSQL_FALSE}"; then 13753 as_fn_error $? "conditional \"HAVE_MSQL\" was never defined. 13754Usually this means the macro was only invoked conditionally." "$LINENO" 5 13755fi 13756if test -z "${HAVE_MSQL_TRUE}" && test -z "${HAVE_MSQL_FALSE}"; then 13757 as_fn_error $? "conditional \"HAVE_MSQL\" was never defined. 13758Usually this means the macro was only invoked conditionally." "$LINENO" 5 13759fi 13760if test -z "${HAVE_ORACLE_TRUE}" && test -z "${HAVE_ORACLE_FALSE}"; then 13761 as_fn_error $? "conditional \"HAVE_ORACLE\" was never defined. 13762Usually this means the macro was only invoked conditionally." "$LINENO" 5 13763fi 13764if test -z "${HAVE_ORACLE_TRUE}" && test -z "${HAVE_ORACLE_FALSE}"; then 13765 as_fn_error $? "conditional \"HAVE_ORACLE\" was never defined. 13766Usually this means the macro was only invoked conditionally." "$LINENO" 5 13767fi 13768if test -z "${HAVE_FIREBIRD_INTERBASE_TRUE}" && test -z "${HAVE_FIREBIRD_INTERBASE_FALSE}"; then 13769 as_fn_error $? "conditional \"HAVE_FIREBIRD_INTERBASE\" was never defined. 13770Usually this means the macro was only invoked conditionally." "$LINENO" 5 13771fi 13772if test -z "${HAVE_FIREBIRD_INTERBASE_TRUE}" && test -z "${HAVE_FIREBIRD_INTERBASE_FALSE}"; then 13773 as_fn_error $? "conditional \"HAVE_FIREBIRD_INTERBASE\" was never defined. 13774Usually this means the macro was only invoked conditionally." "$LINENO" 5 13775fi 13776if test -z "${HAVE_FREETDS_TRUE}" && test -z "${HAVE_FREETDS_FALSE}"; then 13777 as_fn_error $? "conditional \"HAVE_FREETDS\" was never defined. 13778Usually this means the macro was only invoked conditionally." "$LINENO" 5 13779fi 13780if test -z "${HAVE_FREETDS_TRUE}" && test -z "${HAVE_FREETDS_FALSE}"; then 13781 as_fn_error $? "conditional \"HAVE_FREETDS\" was never defined. 13782Usually this means the macro was only invoked conditionally." "$LINENO" 5 13783fi 13784if test -z "${HAVE_INGRES_TRUE}" && test -z "${HAVE_INGRES_FALSE}"; then 13785 as_fn_error $? "conditional \"HAVE_INGRES\" was never defined. 13786Usually this means the macro was only invoked conditionally." "$LINENO" 5 13787fi 13788if test -z "${HAVE_INGRES_TRUE}" && test -z "${HAVE_INGRES_FALSE}"; then 13789 as_fn_error $? "conditional \"HAVE_INGRES\" was never defined. 13790Usually this means the macro was only invoked conditionally." "$LINENO" 5 13791fi 13792if test -z "${HAVE_DB2_TRUE}" && test -z "${HAVE_DB2_FALSE}"; then 13793 as_fn_error $? "conditional \"HAVE_DB2\" was never defined. 13794Usually this means the macro was only invoked conditionally." "$LINENO" 5 13795fi 13796if test -z "${HAVE_DB2_TRUE}" && test -z "${HAVE_DB2_FALSE}"; then 13797 as_fn_error $? "conditional \"HAVE_DB2\" was never defined. 13798Usually this means the macro was only invoked conditionally." "$LINENO" 5 13799fi 13800if test -z "${BUILDDOCS_TRUE}" && test -z "${BUILDDOCS_FALSE}"; then 13801 as_fn_error $? "conditional \"BUILDDOCS\" was never defined. 13802Usually this means the macro was only invoked conditionally." "$LINENO" 5 13803fi 13804 13805: "${CONFIG_STATUS=./config.status}" 13806ac_write_fail=0 13807ac_clean_files_save=$ac_clean_files 13808ac_clean_files="$ac_clean_files $CONFIG_STATUS" 13809{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 13810$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 13811as_write_fail=0 13812cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 13813#! $SHELL 13814# Generated by $as_me. 13815# Run this file to recreate the current configuration. 13816# Compiler output produced by configure, useful for debugging 13817# configure, is in config.log if it exists. 13818 13819debug=false 13820ac_cs_recheck=false 13821ac_cs_silent=false 13822 13823SHELL=\${CONFIG_SHELL-$SHELL} 13824export SHELL 13825_ASEOF 13826cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 13827## -------------------- ## 13828## M4sh Initialization. ## 13829## -------------------- ## 13830 13831# Be more Bourne compatible 13832DUALCASE=1; export DUALCASE # for MKS sh 13833if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 13834 emulate sh 13835 NULLCMD=: 13836 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 13837 # is contrary to our usage. Disable this feature. 13838 alias -g '${1+"$@"}'='"$@"' 13839 setopt NO_GLOB_SUBST 13840else 13841 case `(set -o) 2>/dev/null` in #( 13842 *posix*) : 13843 set -o posix ;; #( 13844 *) : 13845 ;; 13846esac 13847fi 13848 13849 13850as_nl=' 13851' 13852export as_nl 13853# Printing a long string crashes Solaris 7 /usr/bin/printf. 13854as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 13855as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 13856as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 13857# Prefer a ksh shell builtin over an external printf program on Solaris, 13858# but without wasting forks for bash or zsh. 13859if test -z "$BASH_VERSION$ZSH_VERSION" \ 13860 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 13861 as_echo='print -r --' 13862 as_echo_n='print -rn --' 13863elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 13864 as_echo='printf %s\n' 13865 as_echo_n='printf %s' 13866else 13867 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 13868 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 13869 as_echo_n='/usr/ucb/echo -n' 13870 else 13871 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 13872 as_echo_n_body='eval 13873 arg=$1; 13874 case $arg in #( 13875 *"$as_nl"*) 13876 expr "X$arg" : "X\\(.*\\)$as_nl"; 13877 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 13878 esac; 13879 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 13880 ' 13881 export as_echo_n_body 13882 as_echo_n='sh -c $as_echo_n_body as_echo' 13883 fi 13884 export as_echo_body 13885 as_echo='sh -c $as_echo_body as_echo' 13886fi 13887 13888# The user is always right. 13889if test "${PATH_SEPARATOR+set}" != set; then 13890 PATH_SEPARATOR=: 13891 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 13892 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 13893 PATH_SEPARATOR=';' 13894 } 13895fi 13896 13897 13898# IFS 13899# We need space, tab and new line, in precisely that order. Quoting is 13900# there to prevent editors from complaining about space-tab. 13901# (If _AS_PATH_WALK were called with IFS unset, it would disable word 13902# splitting by setting IFS to empty value.) 13903IFS=" "" $as_nl" 13904 13905# Find who we are. Look in the path if we contain no directory separator. 13906as_myself= 13907case $0 in #(( 13908 *[\\/]* ) as_myself=$0 ;; 13909 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 13910for as_dir in $PATH 13911do 13912 IFS=$as_save_IFS 13913 test -z "$as_dir" && as_dir=. 13914 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 13915 done 13916IFS=$as_save_IFS 13917 13918 ;; 13919esac 13920# We did not find ourselves, most probably we were run as `sh COMMAND' 13921# in which case we are not to be found in the path. 13922if test "x$as_myself" = x; then 13923 as_myself=$0 13924fi 13925if test ! -f "$as_myself"; then 13926 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 13927 exit 1 13928fi 13929 13930# Unset variables that we do not need and which cause bugs (e.g. in 13931# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 13932# suppresses any "Segmentation fault" message there. '((' could 13933# trigger a bug in pdksh 5.2.14. 13934for as_var in BASH_ENV ENV MAIL MAILPATH 13935do eval test x\${$as_var+set} = xset \ 13936 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 13937done 13938PS1='$ ' 13939PS2='> ' 13940PS4='+ ' 13941 13942# NLS nuisances. 13943LC_ALL=C 13944export LC_ALL 13945LANGUAGE=C 13946export LANGUAGE 13947 13948# CDPATH. 13949(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 13950 13951 13952# as_fn_error STATUS ERROR [LINENO LOG_FD] 13953# ---------------------------------------- 13954# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 13955# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 13956# script with STATUS, using 1 if that was 0. 13957as_fn_error () 13958{ 13959 as_status=$1; test $as_status -eq 0 && as_status=1 13960 if test "$4"; then 13961 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 13962 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 13963 fi 13964 $as_echo "$as_me: error: $2" >&2 13965 as_fn_exit $as_status 13966} # as_fn_error 13967 13968 13969# as_fn_set_status STATUS 13970# ----------------------- 13971# Set $? to STATUS, without forking. 13972as_fn_set_status () 13973{ 13974 return $1 13975} # as_fn_set_status 13976 13977# as_fn_exit STATUS 13978# ----------------- 13979# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 13980as_fn_exit () 13981{ 13982 set +e 13983 as_fn_set_status $1 13984 exit $1 13985} # as_fn_exit 13986 13987# as_fn_unset VAR 13988# --------------- 13989# Portably unset VAR. 13990as_fn_unset () 13991{ 13992 { eval $1=; unset $1;} 13993} 13994as_unset=as_fn_unset 13995# as_fn_append VAR VALUE 13996# ---------------------- 13997# Append the text in VALUE to the end of the definition contained in VAR. Take 13998# advantage of any shell optimizations that allow amortized linear growth over 13999# repeated appends, instead of the typical quadratic growth present in naive 14000# implementations. 14001if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 14002 eval 'as_fn_append () 14003 { 14004 eval $1+=\$2 14005 }' 14006else 14007 as_fn_append () 14008 { 14009 eval $1=\$$1\$2 14010 } 14011fi # as_fn_append 14012 14013# as_fn_arith ARG... 14014# ------------------ 14015# Perform arithmetic evaluation on the ARGs, and store the result in the 14016# global $as_val. Take advantage of shells that can avoid forks. The arguments 14017# must be portable across $(()) and expr. 14018if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 14019 eval 'as_fn_arith () 14020 { 14021 as_val=$(( $* )) 14022 }' 14023else 14024 as_fn_arith () 14025 { 14026 as_val=`expr "$@" || test $? -eq 1` 14027 } 14028fi # as_fn_arith 14029 14030 14031if expr a : '\(a\)' >/dev/null 2>&1 && 14032 test "X`expr 00001 : '.*\(...\)'`" = X001; then 14033 as_expr=expr 14034else 14035 as_expr=false 14036fi 14037 14038if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 14039 as_basename=basename 14040else 14041 as_basename=false 14042fi 14043 14044if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 14045 as_dirname=dirname 14046else 14047 as_dirname=false 14048fi 14049 14050as_me=`$as_basename -- "$0" || 14051$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 14052 X"$0" : 'X\(//\)$' \| \ 14053 X"$0" : 'X\(/\)' \| . 2>/dev/null || 14054$as_echo X/"$0" | 14055 sed '/^.*\/\([^/][^/]*\)\/*$/{ 14056 s//\1/ 14057 q 14058 } 14059 /^X\/\(\/\/\)$/{ 14060 s//\1/ 14061 q 14062 } 14063 /^X\/\(\/\).*/{ 14064 s//\1/ 14065 q 14066 } 14067 s/.*/./; q'` 14068 14069# Avoid depending upon Character Ranges. 14070as_cr_letters='abcdefghijklmnopqrstuvwxyz' 14071as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 14072as_cr_Letters=$as_cr_letters$as_cr_LETTERS 14073as_cr_digits='0123456789' 14074as_cr_alnum=$as_cr_Letters$as_cr_digits 14075 14076ECHO_C= ECHO_N= ECHO_T= 14077case `echo -n x` in #((((( 14078-n*) 14079 case `echo 'xy\c'` in 14080 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 14081 xy) ECHO_C='\c';; 14082 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 14083 ECHO_T=' ';; 14084 esac;; 14085*) 14086 ECHO_N='-n';; 14087esac 14088 14089rm -f conf$$ conf$$.exe conf$$.file 14090if test -d conf$$.dir; then 14091 rm -f conf$$.dir/conf$$.file 14092else 14093 rm -f conf$$.dir 14094 mkdir conf$$.dir 2>/dev/null 14095fi 14096if (echo >conf$$.file) 2>/dev/null; then 14097 if ln -s conf$$.file conf$$ 2>/dev/null; then 14098 as_ln_s='ln -s' 14099 # ... but there are two gotchas: 14100 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 14101 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 14102 # In both cases, we have to default to `cp -pR'. 14103 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 14104 as_ln_s='cp -pR' 14105 elif ln conf$$.file conf$$ 2>/dev/null; then 14106 as_ln_s=ln 14107 else 14108 as_ln_s='cp -pR' 14109 fi 14110else 14111 as_ln_s='cp -pR' 14112fi 14113rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 14114rmdir conf$$.dir 2>/dev/null 14115 14116 14117# as_fn_mkdir_p 14118# ------------- 14119# Create "$as_dir" as a directory, including parents if necessary. 14120as_fn_mkdir_p () 14121{ 14122 14123 case $as_dir in #( 14124 -*) as_dir=./$as_dir;; 14125 esac 14126 test -d "$as_dir" || eval $as_mkdir_p || { 14127 as_dirs= 14128 while :; do 14129 case $as_dir in #( 14130 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 14131 *) as_qdir=$as_dir;; 14132 esac 14133 as_dirs="'$as_qdir' $as_dirs" 14134 as_dir=`$as_dirname -- "$as_dir" || 14135$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 14136 X"$as_dir" : 'X\(//\)[^/]' \| \ 14137 X"$as_dir" : 'X\(//\)$' \| \ 14138 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 14139$as_echo X"$as_dir" | 14140 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 14141 s//\1/ 14142 q 14143 } 14144 /^X\(\/\/\)[^/].*/{ 14145 s//\1/ 14146 q 14147 } 14148 /^X\(\/\/\)$/{ 14149 s//\1/ 14150 q 14151 } 14152 /^X\(\/\).*/{ 14153 s//\1/ 14154 q 14155 } 14156 s/.*/./; q'` 14157 test -d "$as_dir" && break 14158 done 14159 test -z "$as_dirs" || eval "mkdir $as_dirs" 14160 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 14161 14162 14163} # as_fn_mkdir_p 14164if mkdir -p . 2>/dev/null; then 14165 as_mkdir_p='mkdir -p "$as_dir"' 14166else 14167 test -d ./-p && rmdir ./-p 14168 as_mkdir_p=false 14169fi 14170 14171 14172# as_fn_executable_p FILE 14173# ----------------------- 14174# Test if FILE is an executable regular file. 14175as_fn_executable_p () 14176{ 14177 test -f "$1" && test -x "$1" 14178} # as_fn_executable_p 14179as_test_x='test -x' 14180as_executable_p=as_fn_executable_p 14181 14182# Sed expression to map a string onto a valid CPP name. 14183as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 14184 14185# Sed expression to map a string onto a valid variable name. 14186as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 14187 14188 14189exec 6>&1 14190## ----------------------------------- ## 14191## Main body of $CONFIG_STATUS script. ## 14192## ----------------------------------- ## 14193_ASEOF 14194test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 14195 14196cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14197# Save the log message, to keep $0 and so on meaningful, and to 14198# report actual input values of CONFIG_FILES etc. instead of their 14199# values after options handling. 14200ac_log=" 14201This file was extended by $as_me, which was 14202generated by GNU Autoconf 2.69. Invocation command line was 14203 14204 CONFIG_FILES = $CONFIG_FILES 14205 CONFIG_HEADERS = $CONFIG_HEADERS 14206 CONFIG_LINKS = $CONFIG_LINKS 14207 CONFIG_COMMANDS = $CONFIG_COMMANDS 14208 $ $0 $@ 14209 14210on `(hostname || uname -n) 2>/dev/null | sed 1q` 14211" 14212 14213_ACEOF 14214 14215case $ac_config_files in *" 14216"*) set x $ac_config_files; shift; ac_config_files=$*;; 14217esac 14218 14219case $ac_config_headers in *" 14220"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 14221esac 14222 14223 14224cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14225# Files that config.status was made for. 14226config_files="$ac_config_files" 14227config_headers="$ac_config_headers" 14228config_commands="$ac_config_commands" 14229 14230_ACEOF 14231 14232cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14233ac_cs_usage="\ 14234\`$as_me' instantiates files and other configuration actions 14235from templates according to the current configuration. Unless the files 14236and actions are specified as TAGs, all are instantiated by default. 14237 14238Usage: $0 [OPTION]... [TAG]... 14239 14240 -h, --help print this help, then exit 14241 -V, --version print version number and configuration settings, then exit 14242 --config print configuration, then exit 14243 -q, --quiet, --silent 14244 do not print progress messages 14245 -d, --debug don't remove temporary files 14246 --recheck update $as_me by reconfiguring in the same conditions 14247 --file=FILE[:TEMPLATE] 14248 instantiate the configuration file FILE 14249 --header=FILE[:TEMPLATE] 14250 instantiate the configuration header FILE 14251 14252Configuration files: 14253$config_files 14254 14255Configuration headers: 14256$config_headers 14257 14258Configuration commands: 14259$config_commands 14260 14261Report bugs to the package provider." 14262 14263_ACEOF 14264cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14265ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 14266ac_cs_version="\\ 14267config.status 14268configured by $0, generated by GNU Autoconf 2.69, 14269 with options \\"\$ac_cs_config\\" 14270 14271Copyright (C) 2012 Free Software Foundation, Inc. 14272This config.status script is free software; the Free Software Foundation 14273gives unlimited permission to copy, distribute and modify it." 14274 14275ac_pwd='$ac_pwd' 14276srcdir='$srcdir' 14277INSTALL='$INSTALL' 14278MKDIR_P='$MKDIR_P' 14279AWK='$AWK' 14280test -n "\$AWK" || AWK=awk 14281_ACEOF 14282 14283cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14284# The default lists apply if the user does not specify any file. 14285ac_need_defaults=: 14286while test $# != 0 14287do 14288 case $1 in 14289 --*=?*) 14290 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14291 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 14292 ac_shift=: 14293 ;; 14294 --*=) 14295 ac_option=`expr "X$1" : 'X\([^=]*\)='` 14296 ac_optarg= 14297 ac_shift=: 14298 ;; 14299 *) 14300 ac_option=$1 14301 ac_optarg=$2 14302 ac_shift=shift 14303 ;; 14304 esac 14305 14306 case $ac_option in 14307 # Handling of the options. 14308 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 14309 ac_cs_recheck=: ;; 14310 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 14311 $as_echo "$ac_cs_version"; exit ;; 14312 --config | --confi | --conf | --con | --co | --c ) 14313 $as_echo "$ac_cs_config"; exit ;; 14314 --debug | --debu | --deb | --de | --d | -d ) 14315 debug=: ;; 14316 --file | --fil | --fi | --f ) 14317 $ac_shift 14318 case $ac_optarg in 14319 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14320 '') as_fn_error $? "missing file argument" ;; 14321 esac 14322 as_fn_append CONFIG_FILES " '$ac_optarg'" 14323 ac_need_defaults=false;; 14324 --header | --heade | --head | --hea ) 14325 $ac_shift 14326 case $ac_optarg in 14327 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 14328 esac 14329 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 14330 ac_need_defaults=false;; 14331 --he | --h) 14332 # Conflict between --help and --header 14333 as_fn_error $? "ambiguous option: \`$1' 14334Try \`$0 --help' for more information.";; 14335 --help | --hel | -h ) 14336 $as_echo "$ac_cs_usage"; exit ;; 14337 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 14338 | -silent | --silent | --silen | --sile | --sil | --si | --s) 14339 ac_cs_silent=: ;; 14340 14341 # This is an error. 14342 -*) as_fn_error $? "unrecognized option: \`$1' 14343Try \`$0 --help' for more information." ;; 14344 14345 *) as_fn_append ac_config_targets " $1" 14346 ac_need_defaults=false ;; 14347 14348 esac 14349 shift 14350done 14351 14352ac_configure_extra_args= 14353 14354if $ac_cs_silent; then 14355 exec 6>/dev/null 14356 ac_configure_extra_args="$ac_configure_extra_args --silent" 14357fi 14358 14359_ACEOF 14360cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14361if \$ac_cs_recheck; then 14362 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 14363 shift 14364 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 14365 CONFIG_SHELL='$SHELL' 14366 export CONFIG_SHELL 14367 exec "\$@" 14368fi 14369 14370_ACEOF 14371cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14372exec 5>>config.log 14373{ 14374 echo 14375 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 14376## Running $as_me. ## 14377_ASBOX 14378 $as_echo "$ac_log" 14379} >&5 14380 14381_ACEOF 14382cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14383# 14384# INIT-COMMANDS 14385# 14386AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 14387 14388 14389# The HP-UX ksh and POSIX shell print the target directory to stdout 14390# if CDPATH is set. 14391(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 14392 14393sed_quote_subst='$sed_quote_subst' 14394double_quote_subst='$double_quote_subst' 14395delay_variable_subst='$delay_variable_subst' 14396AS='`$ECHO "$AS" | $SED "$delay_single_quote_subst"`' 14397DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 14398OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 14399SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 14400Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 14401GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 14402EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 14403FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 14404SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 14405ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 14406LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 14407macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 14408macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 14409enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 14410enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 14411pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 14412enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 14413PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 14414host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 14415host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 14416host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 14417build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 14418build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 14419build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 14420NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 14421LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 14422max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 14423ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 14424exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 14425lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 14426lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 14427lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 14428lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 14429lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 14430reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 14431reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 14432deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 14433file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 14434file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 14435want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 14436sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 14437AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 14438AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 14439archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 14440STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 14441RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 14442old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14443old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14444old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 14445lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 14446CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 14447CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 14448compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 14449GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 14450lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 14451lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 14452lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 14453lt_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"`' 14454nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 14455lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 14456objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 14457MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 14458lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 14459lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 14460lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 14461lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 14462lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 14463need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 14464MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 14465DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 14466NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 14467LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 14468OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 14469OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 14470libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 14471shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 14472extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14473archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 14474enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 14475export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 14476whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 14477compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 14478old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 14479old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 14480archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 14481archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14482module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 14483module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 14484with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 14485allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 14486no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 14487hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 14488hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 14489hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 14490hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 14491hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 14492hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 14493hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 14494inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 14495link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 14496always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 14497export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 14498exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 14499include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 14500prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 14501postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 14502file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 14503variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 14504need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 14505need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 14506version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 14507runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 14508shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 14509shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 14510libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 14511library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 14512soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 14513install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 14514postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 14515postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 14516finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 14517finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 14518hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 14519sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 14520sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 14521hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 14522enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 14523enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 14524enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 14525old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 14526striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 14527 14528LTCC='$LTCC' 14529LTCFLAGS='$LTCFLAGS' 14530compiler='$compiler_DEFAULT' 14531 14532# A function that is used when there is no print builtin or printf. 14533func_fallback_echo () 14534{ 14535 eval 'cat <<_LTECHO_EOF 14536\$1 14537_LTECHO_EOF' 14538} 14539 14540# Quote evaled strings. 14541for var in AS \ 14542DLLTOOL \ 14543OBJDUMP \ 14544SED \ 14545GREP \ 14546EGREP \ 14547FGREP \ 14548SHELL \ 14549ECHO \ 14550LD \ 14551PATH_SEPARATOR \ 14552NM \ 14553LN_S \ 14554lt_SP2NL \ 14555lt_NL2SP \ 14556reload_flag \ 14557deplibs_check_method \ 14558file_magic_cmd \ 14559file_magic_glob \ 14560want_nocaseglob \ 14561sharedlib_from_linklib_cmd \ 14562AR \ 14563AR_FLAGS \ 14564archiver_list_spec \ 14565STRIP \ 14566RANLIB \ 14567CC \ 14568CFLAGS \ 14569compiler \ 14570lt_cv_sys_global_symbol_pipe \ 14571lt_cv_sys_global_symbol_to_cdecl \ 14572lt_cv_sys_global_symbol_to_c_name_address \ 14573lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 14574nm_file_list_spec \ 14575lt_prog_compiler_no_builtin_flag \ 14576lt_prog_compiler_pic \ 14577lt_prog_compiler_wl \ 14578lt_prog_compiler_static \ 14579lt_cv_prog_compiler_c_o \ 14580need_locks \ 14581MANIFEST_TOOL \ 14582DSYMUTIL \ 14583NMEDIT \ 14584LIPO \ 14585OTOOL \ 14586OTOOL64 \ 14587shrext_cmds \ 14588export_dynamic_flag_spec \ 14589whole_archive_flag_spec \ 14590compiler_needs_object \ 14591with_gnu_ld \ 14592allow_undefined_flag \ 14593no_undefined_flag \ 14594hardcode_libdir_flag_spec \ 14595hardcode_libdir_separator \ 14596exclude_expsyms \ 14597include_expsyms \ 14598file_list_spec \ 14599variables_saved_for_relink \ 14600libname_spec \ 14601library_names_spec \ 14602soname_spec \ 14603install_override_mode \ 14604finish_eval \ 14605old_striplib \ 14606striplib; do 14607 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14608 *[\\\\\\\`\\"\\\$]*) 14609 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 14610 ;; 14611 *) 14612 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14613 ;; 14614 esac 14615done 14616 14617# Double-quote double-evaled strings. 14618for var in reload_cmds \ 14619old_postinstall_cmds \ 14620old_postuninstall_cmds \ 14621old_archive_cmds \ 14622extract_expsyms_cmds \ 14623old_archive_from_new_cmds \ 14624old_archive_from_expsyms_cmds \ 14625archive_cmds \ 14626archive_expsym_cmds \ 14627module_cmds \ 14628module_expsym_cmds \ 14629export_symbols_cmds \ 14630prelink_cmds \ 14631postlink_cmds \ 14632postinstall_cmds \ 14633postuninstall_cmds \ 14634finish_cmds \ 14635sys_lib_search_path_spec \ 14636sys_lib_dlsearch_path_spec; do 14637 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 14638 *[\\\\\\\`\\"\\\$]*) 14639 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 14640 ;; 14641 *) 14642 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 14643 ;; 14644 esac 14645done 14646 14647ac_aux_dir='$ac_aux_dir' 14648xsi_shell='$xsi_shell' 14649lt_shell_append='$lt_shell_append' 14650 14651# See if we are running on zsh, and set the options which allow our 14652# commands through without removal of \ escapes INIT. 14653if test -n "\${ZSH_VERSION+set}" ; then 14654 setopt NO_GLOB_SUBST 14655fi 14656 14657 14658 PACKAGE='$PACKAGE' 14659 VERSION='$VERSION' 14660 TIMESTAMP='$TIMESTAMP' 14661 RM='$RM' 14662 ofile='$ofile' 14663 14664 14665 14666 14667_ACEOF 14668 14669cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14670 14671# Handling of arguments. 14672for ac_config_target in $ac_config_targets 14673do 14674 case $ac_config_target in 14675 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 14676 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 14677 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 14678 "libdbi-drivers.spec") CONFIG_FILES="$CONFIG_FILES libdbi-drivers.spec" ;; 14679 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 14680 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 14681 "doc/include/Makefile") CONFIG_FILES="$CONFIG_FILES doc/include/Makefile" ;; 14682 "drivers/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/Makefile" ;; 14683 "drivers/mysql/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/mysql/Makefile" ;; 14684 "drivers/pgsql/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/pgsql/Makefile" ;; 14685 "drivers/sqlite/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/sqlite/Makefile" ;; 14686 "drivers/sqlite3/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/sqlite3/Makefile" ;; 14687 "drivers/msql/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/msql/Makefile" ;; 14688 "drivers/oracle/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/oracle/Makefile" ;; 14689 "drivers/firebird/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/firebird/Makefile" ;; 14690 "drivers/freetds/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/freetds/Makefile" ;; 14691 "drivers/ingres/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/ingres/Makefile" ;; 14692 "drivers/db2/Makefile") CONFIG_FILES="$CONFIG_FILES drivers/db2/Makefile" ;; 14693 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 14694 "tests/cgreen/Makefile") CONFIG_FILES="$CONFIG_FILES tests/cgreen/Makefile" ;; 14695 "tests/test_dbi.cfg") CONFIG_FILES="$CONFIG_FILES tests/test_dbi.cfg" ;; 14696 "tests/plugin_settings.sh") CONFIG_FILES="$CONFIG_FILES tests/plugin_settings.sh" ;; 14697 14698 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 14699 esac 14700done 14701 14702 14703# If the user did not use the arguments to specify the items to instantiate, 14704# then the envvar interface is used. Set only those that are not. 14705# We use the long form for the default assignment because of an extremely 14706# bizarre bug on SunOS 4.1.3. 14707if $ac_need_defaults; then 14708 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 14709 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 14710 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 14711fi 14712 14713# Have a temporary directory for convenience. Make it in the build tree 14714# simply because there is no reason against having it here, and in addition, 14715# creating and moving files from /tmp can sometimes cause problems. 14716# Hook for its removal unless debugging. 14717# Note that there is a small window in which the directory will not be cleaned: 14718# after its creation but before its name has been assigned to `$tmp'. 14719$debug || 14720{ 14721 tmp= ac_tmp= 14722 trap 'exit_status=$? 14723 : "${ac_tmp:=$tmp}" 14724 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 14725' 0 14726 trap 'as_fn_exit 1' 1 2 13 15 14727} 14728# Create a (secure) tmp directory for tmp files. 14729 14730{ 14731 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 14732 test -d "$tmp" 14733} || 14734{ 14735 tmp=./conf$$-$RANDOM 14736 (umask 077 && mkdir "$tmp") 14737} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 14738ac_tmp=$tmp 14739 14740# Set up the scripts for CONFIG_FILES section. 14741# No need to generate them if there are no CONFIG_FILES. 14742# This happens for instance with `./config.status config.h'. 14743if test -n "$CONFIG_FILES"; then 14744 14745 14746ac_cr=`echo X | tr X '\015'` 14747# On cygwin, bash can eat \r inside `` if the user requested igncr. 14748# But we know of no other shell where ac_cr would be empty at this 14749# point, so we can use a bashism as a fallback. 14750if test "x$ac_cr" = x; then 14751 eval ac_cr=\$\'\\r\' 14752fi 14753ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 14754if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 14755 ac_cs_awk_cr='\\r' 14756else 14757 ac_cs_awk_cr=$ac_cr 14758fi 14759 14760echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 14761_ACEOF 14762 14763 14764{ 14765 echo "cat >conf$$subs.awk <<_ACEOF" && 14766 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 14767 echo "_ACEOF" 14768} >conf$$subs.sh || 14769 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14770ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 14771ac_delim='%!_!# ' 14772for ac_last_try in false false false false false :; do 14773 . ./conf$$subs.sh || 14774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14775 14776 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 14777 if test $ac_delim_n = $ac_delim_num; then 14778 break 14779 elif $ac_last_try; then 14780 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 14781 else 14782 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14783 fi 14784done 14785rm -f conf$$subs.sh 14786 14787cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14788cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 14789_ACEOF 14790sed -n ' 14791h 14792s/^/S["/; s/!.*/"]=/ 14793p 14794g 14795s/^[^!]*!// 14796:repl 14797t repl 14798s/'"$ac_delim"'$// 14799t delim 14800:nl 14801h 14802s/\(.\{148\}\)..*/\1/ 14803t more1 14804s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 14805p 14806n 14807b repl 14808:more1 14809s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14810p 14811g 14812s/.\{148\}// 14813t nl 14814:delim 14815h 14816s/\(.\{148\}\)..*/\1/ 14817t more2 14818s/["\\]/\\&/g; s/^/"/; s/$/"/ 14819p 14820b 14821:more2 14822s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 14823p 14824g 14825s/.\{148\}// 14826t delim 14827' <conf$$subs.awk | sed ' 14828/^[^""]/{ 14829 N 14830 s/\n// 14831} 14832' >>$CONFIG_STATUS || ac_write_fail=1 14833rm -f conf$$subs.awk 14834cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14835_ACAWK 14836cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 14837 for (key in S) S_is_set[key] = 1 14838 FS = "" 14839 14840} 14841{ 14842 line = $ 0 14843 nfields = split(line, field, "@") 14844 substed = 0 14845 len = length(field[1]) 14846 for (i = 2; i < nfields; i++) { 14847 key = field[i] 14848 keylen = length(key) 14849 if (S_is_set[key]) { 14850 value = S[key] 14851 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 14852 len += length(value) + length(field[++i]) 14853 substed = 1 14854 } else 14855 len += 1 + keylen 14856 } 14857 14858 print line 14859} 14860 14861_ACAWK 14862_ACEOF 14863cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14864if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 14865 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 14866else 14867 cat 14868fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 14869 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 14870_ACEOF 14871 14872# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 14873# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 14874# trailing colons and then remove the whole line if VPATH becomes empty 14875# (actually we leave an empty line to preserve line numbers). 14876if test "x$srcdir" = x.; then 14877 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 14878h 14879s/// 14880s/^/:/ 14881s/[ ]*$/:/ 14882s/:\$(srcdir):/:/g 14883s/:\${srcdir}:/:/g 14884s/:@srcdir@:/:/g 14885s/^:*// 14886s/:*$// 14887x 14888s/\(=[ ]*\).*/\1/ 14889G 14890s/\n// 14891s/^[^=]*=[ ]*$// 14892}' 14893fi 14894 14895cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 14896fi # test -n "$CONFIG_FILES" 14897 14898# Set up the scripts for CONFIG_HEADERS section. 14899# No need to generate them if there are no CONFIG_HEADERS. 14900# This happens for instance with `./config.status Makefile'. 14901if test -n "$CONFIG_HEADERS"; then 14902cat >"$ac_tmp/defines.awk" <<\_ACAWK || 14903BEGIN { 14904_ACEOF 14905 14906# Transform confdefs.h into an awk script `defines.awk', embedded as 14907# here-document in config.status, that substitutes the proper values into 14908# config.h.in to produce config.h. 14909 14910# Create a delimiter string that does not exist in confdefs.h, to ease 14911# handling of long lines. 14912ac_delim='%!_!# ' 14913for ac_last_try in false false :; do 14914 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 14915 if test -z "$ac_tt"; then 14916 break 14917 elif $ac_last_try; then 14918 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 14919 else 14920 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 14921 fi 14922done 14923 14924# For the awk script, D is an array of macro values keyed by name, 14925# likewise P contains macro parameters if any. Preserve backslash 14926# newline sequences. 14927 14928ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 14929sed -n ' 14930s/.\{148\}/&'"$ac_delim"'/g 14931t rset 14932:rset 14933s/^[ ]*#[ ]*define[ ][ ]*/ / 14934t def 14935d 14936:def 14937s/\\$// 14938t bsnl 14939s/["\\]/\\&/g 14940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14941D["\1"]=" \3"/p 14942s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 14943d 14944:bsnl 14945s/["\\]/\\&/g 14946s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 14947D["\1"]=" \3\\\\\\n"\\/p 14948t cont 14949s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 14950t cont 14951d 14952:cont 14953n 14954s/.\{148\}/&'"$ac_delim"'/g 14955t clear 14956:clear 14957s/\\$// 14958t bsnlc 14959s/["\\]/\\&/g; s/^/"/; s/$/"/p 14960d 14961:bsnlc 14962s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 14963b cont 14964' <confdefs.h | sed ' 14965s/'"$ac_delim"'/"\\\ 14966"/g' >>$CONFIG_STATUS || ac_write_fail=1 14967 14968cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 14969 for (key in D) D_is_set[key] = 1 14970 FS = "" 14971} 14972/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 14973 line = \$ 0 14974 split(line, arg, " ") 14975 if (arg[1] == "#") { 14976 defundef = arg[2] 14977 mac1 = arg[3] 14978 } else { 14979 defundef = substr(arg[1], 2) 14980 mac1 = arg[2] 14981 } 14982 split(mac1, mac2, "(") #) 14983 macro = mac2[1] 14984 prefix = substr(line, 1, index(line, defundef) - 1) 14985 if (D_is_set[macro]) { 14986 # Preserve the white space surrounding the "#". 14987 print prefix "define", macro P[macro] D[macro] 14988 next 14989 } else { 14990 # Replace #undef with comments. This is necessary, for example, 14991 # in the case of _POSIX_SOURCE, which is predefined and required 14992 # on some systems where configure will not decide to define it. 14993 if (defundef == "undef") { 14994 print "/*", prefix defundef, macro, "*/" 14995 next 14996 } 14997 } 14998} 14999{ print } 15000_ACAWK 15001_ACEOF 15002cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15003 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 15004fi # test -n "$CONFIG_HEADERS" 15005 15006 15007eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 15008shift 15009for ac_tag 15010do 15011 case $ac_tag in 15012 :[FHLC]) ac_mode=$ac_tag; continue;; 15013 esac 15014 case $ac_mode$ac_tag in 15015 :[FHL]*:*);; 15016 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 15017 :[FH]-) ac_tag=-:-;; 15018 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 15019 esac 15020 ac_save_IFS=$IFS 15021 IFS=: 15022 set x $ac_tag 15023 IFS=$ac_save_IFS 15024 shift 15025 ac_file=$1 15026 shift 15027 15028 case $ac_mode in 15029 :L) ac_source=$1;; 15030 :[FH]) 15031 ac_file_inputs= 15032 for ac_f 15033 do 15034 case $ac_f in 15035 -) ac_f="$ac_tmp/stdin";; 15036 *) # Look for the file first in the build tree, then in the source tree 15037 # (if the path is not absolute). The absolute path cannot be DOS-style, 15038 # because $ac_f cannot contain `:'. 15039 test -f "$ac_f" || 15040 case $ac_f in 15041 [\\/$]*) false;; 15042 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 15043 esac || 15044 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 15045 esac 15046 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 15047 as_fn_append ac_file_inputs " '$ac_f'" 15048 done 15049 15050 # Let's still pretend it is `configure' which instantiates (i.e., don't 15051 # use $as_me), people would be surprised to read: 15052 # /* config.h. Generated by config.status. */ 15053 configure_input='Generated from '` 15054 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 15055 `' by configure.' 15056 if test x"$ac_file" != x-; then 15057 configure_input="$ac_file. $configure_input" 15058 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 15059$as_echo "$as_me: creating $ac_file" >&6;} 15060 fi 15061 # Neutralize special characters interpreted by sed in replacement strings. 15062 case $configure_input in #( 15063 *\&* | *\|* | *\\* ) 15064 ac_sed_conf_input=`$as_echo "$configure_input" | 15065 sed 's/[\\\\&|]/\\\\&/g'`;; #( 15066 *) ac_sed_conf_input=$configure_input;; 15067 esac 15068 15069 case $ac_tag in 15070 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 15071 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 15072 esac 15073 ;; 15074 esac 15075 15076 ac_dir=`$as_dirname -- "$ac_file" || 15077$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15078 X"$ac_file" : 'X\(//\)[^/]' \| \ 15079 X"$ac_file" : 'X\(//\)$' \| \ 15080 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 15081$as_echo X"$ac_file" | 15082 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15083 s//\1/ 15084 q 15085 } 15086 /^X\(\/\/\)[^/].*/{ 15087 s//\1/ 15088 q 15089 } 15090 /^X\(\/\/\)$/{ 15091 s//\1/ 15092 q 15093 } 15094 /^X\(\/\).*/{ 15095 s//\1/ 15096 q 15097 } 15098 s/.*/./; q'` 15099 as_dir="$ac_dir"; as_fn_mkdir_p 15100 ac_builddir=. 15101 15102case "$ac_dir" in 15103.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 15104*) 15105 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 15106 # A ".." for each directory in $ac_dir_suffix. 15107 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 15108 case $ac_top_builddir_sub in 15109 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 15110 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 15111 esac ;; 15112esac 15113ac_abs_top_builddir=$ac_pwd 15114ac_abs_builddir=$ac_pwd$ac_dir_suffix 15115# for backward compatibility: 15116ac_top_builddir=$ac_top_build_prefix 15117 15118case $srcdir in 15119 .) # We are building in place. 15120 ac_srcdir=. 15121 ac_top_srcdir=$ac_top_builddir_sub 15122 ac_abs_top_srcdir=$ac_pwd ;; 15123 [\\/]* | ?:[\\/]* ) # Absolute name. 15124 ac_srcdir=$srcdir$ac_dir_suffix; 15125 ac_top_srcdir=$srcdir 15126 ac_abs_top_srcdir=$srcdir ;; 15127 *) # Relative name. 15128 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 15129 ac_top_srcdir=$ac_top_build_prefix$srcdir 15130 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 15131esac 15132ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 15133 15134 15135 case $ac_mode in 15136 :F) 15137 # 15138 # CONFIG_FILE 15139 # 15140 15141 case $INSTALL in 15142 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 15143 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 15144 esac 15145 ac_MKDIR_P=$MKDIR_P 15146 case $MKDIR_P in 15147 [\\/$]* | ?:[\\/]* ) ;; 15148 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 15149 esac 15150_ACEOF 15151 15152cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15153# If the template does not know about datarootdir, expand it. 15154# FIXME: This hack should be removed a few years after 2.60. 15155ac_datarootdir_hack=; ac_datarootdir_seen= 15156ac_sed_dataroot=' 15157/datarootdir/ { 15158 p 15159 q 15160} 15161/@datadir@/p 15162/@docdir@/p 15163/@infodir@/p 15164/@localedir@/p 15165/@mandir@/p' 15166case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 15167*datarootdir*) ac_datarootdir_seen=yes;; 15168*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 15169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 15170$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 15171_ACEOF 15172cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15173 ac_datarootdir_hack=' 15174 s&@datadir@&$datadir&g 15175 s&@docdir@&$docdir&g 15176 s&@infodir@&$infodir&g 15177 s&@localedir@&$localedir&g 15178 s&@mandir@&$mandir&g 15179 s&\\\${datarootdir}&$datarootdir&g' ;; 15180esac 15181_ACEOF 15182 15183# Neutralize VPATH when `$srcdir' = `.'. 15184# Shell code in configure.ac might set extrasub. 15185# FIXME: do we really want to maintain this feature? 15186cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 15187ac_sed_extra="$ac_vpsub 15188$extrasub 15189_ACEOF 15190cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 15191:t 15192/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 15193s|@configure_input@|$ac_sed_conf_input|;t t 15194s&@top_builddir@&$ac_top_builddir_sub&;t t 15195s&@top_build_prefix@&$ac_top_build_prefix&;t t 15196s&@srcdir@&$ac_srcdir&;t t 15197s&@abs_srcdir@&$ac_abs_srcdir&;t t 15198s&@top_srcdir@&$ac_top_srcdir&;t t 15199s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 15200s&@builddir@&$ac_builddir&;t t 15201s&@abs_builddir@&$ac_abs_builddir&;t t 15202s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 15203s&@INSTALL@&$ac_INSTALL&;t t 15204s&@MKDIR_P@&$ac_MKDIR_P&;t t 15205$ac_datarootdir_hack 15206" 15207eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 15208 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15209 15210test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 15211 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 15212 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 15213 "$ac_tmp/out"`; test -z "$ac_out"; } && 15214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15215which seems to be undefined. Please make sure it is defined" >&5 15216$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 15217which seems to be undefined. Please make sure it is defined" >&2;} 15218 15219 rm -f "$ac_tmp/stdin" 15220 case $ac_file in 15221 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 15222 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 15223 esac \ 15224 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15225 ;; 15226 :H) 15227 # 15228 # CONFIG_HEADER 15229 # 15230 if test x"$ac_file" != x-; then 15231 { 15232 $as_echo "/* $configure_input */" \ 15233 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 15234 } >"$ac_tmp/config.h" \ 15235 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15236 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 15237 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 15238$as_echo "$as_me: $ac_file is unchanged" >&6;} 15239 else 15240 rm -f "$ac_file" 15241 mv "$ac_tmp/config.h" "$ac_file" \ 15242 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 15243 fi 15244 else 15245 $as_echo "/* $configure_input */" \ 15246 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 15247 || as_fn_error $? "could not create -" "$LINENO" 5 15248 fi 15249# Compute "$ac_file"'s index in $config_headers. 15250_am_arg="$ac_file" 15251_am_stamp_count=1 15252for _am_header in $config_headers :; do 15253 case $_am_header in 15254 $_am_arg | $_am_arg:* ) 15255 break ;; 15256 * ) 15257 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 15258 esac 15259done 15260echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 15261$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15262 X"$_am_arg" : 'X\(//\)[^/]' \| \ 15263 X"$_am_arg" : 'X\(//\)$' \| \ 15264 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 15265$as_echo X"$_am_arg" | 15266 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15267 s//\1/ 15268 q 15269 } 15270 /^X\(\/\/\)[^/].*/{ 15271 s//\1/ 15272 q 15273 } 15274 /^X\(\/\/\)$/{ 15275 s//\1/ 15276 q 15277 } 15278 /^X\(\/\).*/{ 15279 s//\1/ 15280 q 15281 } 15282 s/.*/./; q'`/stamp-h$_am_stamp_count 15283 ;; 15284 15285 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 15286$as_echo "$as_me: executing $ac_file commands" >&6;} 15287 ;; 15288 esac 15289 15290 15291 case $ac_file$ac_mode in 15292 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 15293 # Autoconf 2.62 quotes --file arguments for eval, but not when files 15294 # are listed without --file. Let's play safe and only enable the eval 15295 # if we detect the quoting. 15296 case $CONFIG_FILES in 15297 *\'*) eval set x "$CONFIG_FILES" ;; 15298 *) set x $CONFIG_FILES ;; 15299 esac 15300 shift 15301 for mf 15302 do 15303 # Strip MF so we end up with the name of the file. 15304 mf=`echo "$mf" | sed -e 's/:.*$//'` 15305 # Check whether this is an Automake generated Makefile or not. 15306 # We used to match only the files named 'Makefile.in', but 15307 # some people rename them; so instead we look at the file content. 15308 # Grep'ing the first line is not enough: some people post-process 15309 # each Makefile.in and add a new line on top of each file to say so. 15310 # Grep'ing the whole file is not good either: AIX grep has a line 15311 # limit of 2048, but all sed's we know have understand at least 4000. 15312 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 15313 dirpart=`$as_dirname -- "$mf" || 15314$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15315 X"$mf" : 'X\(//\)[^/]' \| \ 15316 X"$mf" : 'X\(//\)$' \| \ 15317 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 15318$as_echo X"$mf" | 15319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15320 s//\1/ 15321 q 15322 } 15323 /^X\(\/\/\)[^/].*/{ 15324 s//\1/ 15325 q 15326 } 15327 /^X\(\/\/\)$/{ 15328 s//\1/ 15329 q 15330 } 15331 /^X\(\/\).*/{ 15332 s//\1/ 15333 q 15334 } 15335 s/.*/./; q'` 15336 else 15337 continue 15338 fi 15339 # Extract the definition of DEPDIR, am__include, and am__quote 15340 # from the Makefile without running 'make'. 15341 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 15342 test -z "$DEPDIR" && continue 15343 am__include=`sed -n 's/^am__include = //p' < "$mf"` 15344 test -z "am__include" && continue 15345 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 15346 # Find all dependency output files, they are included files with 15347 # $(DEPDIR) in their names. We invoke sed twice because it is the 15348 # simplest approach to changing $(DEPDIR) to its actual value in the 15349 # expansion. 15350 for file in `sed -n " 15351 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 15352 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 15353 # Make sure the directory exists. 15354 test -f "$dirpart/$file" && continue 15355 fdir=`$as_dirname -- "$file" || 15356$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 15357 X"$file" : 'X\(//\)[^/]' \| \ 15358 X"$file" : 'X\(//\)$' \| \ 15359 X"$file" : 'X\(/\)' \| . 2>/dev/null || 15360$as_echo X"$file" | 15361 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 15362 s//\1/ 15363 q 15364 } 15365 /^X\(\/\/\)[^/].*/{ 15366 s//\1/ 15367 q 15368 } 15369 /^X\(\/\/\)$/{ 15370 s//\1/ 15371 q 15372 } 15373 /^X\(\/\).*/{ 15374 s//\1/ 15375 q 15376 } 15377 s/.*/./; q'` 15378 as_dir=$dirpart/$fdir; as_fn_mkdir_p 15379 # echo "creating $dirpart/$file" 15380 echo '# dummy' > "$dirpart/$file" 15381 done 15382 done 15383} 15384 ;; 15385 "libtool":C) 15386 15387 # See if we are running on zsh, and set the options which allow our 15388 # commands through without removal of \ escapes. 15389 if test -n "${ZSH_VERSION+set}" ; then 15390 setopt NO_GLOB_SUBST 15391 fi 15392 15393 cfgfile="${ofile}T" 15394 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 15395 $RM "$cfgfile" 15396 15397 cat <<_LT_EOF >> "$cfgfile" 15398#! $SHELL 15399 15400# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 15401# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 15402# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 15403# NOTE: Changes made to this file will be lost: look at ltmain.sh. 15404# 15405# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 15406# 2006, 2007, 2008, 2009, 2010, 2011 Free Software 15407# Foundation, Inc. 15408# Written by Gordon Matzigkeit, 1996 15409# 15410# This file is part of GNU Libtool. 15411# 15412# GNU Libtool is free software; you can redistribute it and/or 15413# modify it under the terms of the GNU General Public License as 15414# published by the Free Software Foundation; either version 2 of 15415# the License, or (at your option) any later version. 15416# 15417# As a special exception to the GNU General Public License, 15418# if you distribute this file as part of a program or library that 15419# is built using GNU Libtool, you may include this file under the 15420# same distribution terms that you use for the rest of that program. 15421# 15422# GNU Libtool is distributed in the hope that it will be useful, 15423# but WITHOUT ANY WARRANTY; without even the implied warranty of 15424# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 15425# GNU General Public License for more details. 15426# 15427# You should have received a copy of the GNU General Public License 15428# along with GNU Libtool; see the file COPYING. If not, a copy 15429# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 15430# obtained by writing to the Free Software Foundation, Inc., 15431# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 15432 15433 15434# The names of the tagged configurations supported by this script. 15435available_tags="" 15436 15437# ### BEGIN LIBTOOL CONFIG 15438 15439# Assembler program. 15440AS=$lt_AS 15441 15442# DLL creation program. 15443DLLTOOL=$lt_DLLTOOL 15444 15445# Object dumper program. 15446OBJDUMP=$lt_OBJDUMP 15447 15448# A sed program that does not truncate output. 15449SED=$lt_SED 15450 15451# Sed that helps us avoid accidentally triggering echo(1) options like -n. 15452Xsed="\$SED -e 1s/^X//" 15453 15454# A grep program that handles long lines. 15455GREP=$lt_GREP 15456 15457# An ERE matcher. 15458EGREP=$lt_EGREP 15459 15460# A literal string matcher. 15461FGREP=$lt_FGREP 15462 15463# Shell to use when invoking shell scripts. 15464SHELL=$lt_SHELL 15465 15466# An echo program that protects backslashes. 15467ECHO=$lt_ECHO 15468 15469# Which release of libtool.m4 was used? 15470macro_version=$macro_version 15471macro_revision=$macro_revision 15472 15473# Whether or not to build shared libraries. 15474build_libtool_libs=$enable_shared 15475 15476# Whether or not to build static libraries. 15477build_old_libs=$enable_static 15478 15479# What type of objects to build. 15480pic_mode=$pic_mode 15481 15482# Whether or not to optimize for fast installation. 15483fast_install=$enable_fast_install 15484 15485# The PATH separator for the build system. 15486PATH_SEPARATOR=$lt_PATH_SEPARATOR 15487 15488# The host system. 15489host_alias=$host_alias 15490host=$host 15491host_os=$host_os 15492 15493# The build system. 15494build_alias=$build_alias 15495build=$build 15496build_os=$build_os 15497 15498# A BSD- or MS-compatible name lister. 15499NM=$lt_NM 15500 15501# Whether we need soft or hard links. 15502LN_S=$lt_LN_S 15503 15504# What is the maximum length of a command? 15505max_cmd_len=$max_cmd_len 15506 15507# Object file suffix (normally "o"). 15508objext=$ac_objext 15509 15510# Executable file suffix (normally ""). 15511exeext=$exeext 15512 15513# whether the shell understands "unset". 15514lt_unset=$lt_unset 15515 15516# turn spaces into newlines. 15517SP2NL=$lt_lt_SP2NL 15518 15519# turn newlines into spaces. 15520NL2SP=$lt_lt_NL2SP 15521 15522# convert \$build file names to \$host format. 15523to_host_file_cmd=$lt_cv_to_host_file_cmd 15524 15525# convert \$build files to toolchain format. 15526to_tool_file_cmd=$lt_cv_to_tool_file_cmd 15527 15528# Method to check whether dependent libraries are shared objects. 15529deplibs_check_method=$lt_deplibs_check_method 15530 15531# Command to use when deplibs_check_method = "file_magic". 15532file_magic_cmd=$lt_file_magic_cmd 15533 15534# How to find potential files when deplibs_check_method = "file_magic". 15535file_magic_glob=$lt_file_magic_glob 15536 15537# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 15538want_nocaseglob=$lt_want_nocaseglob 15539 15540# Command to associate shared and link libraries. 15541sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 15542 15543# The archiver. 15544AR=$lt_AR 15545 15546# Flags to create an archive. 15547AR_FLAGS=$lt_AR_FLAGS 15548 15549# How to feed a file listing to the archiver. 15550archiver_list_spec=$lt_archiver_list_spec 15551 15552# A symbol stripping program. 15553STRIP=$lt_STRIP 15554 15555# Commands used to install an old-style archive. 15556RANLIB=$lt_RANLIB 15557old_postinstall_cmds=$lt_old_postinstall_cmds 15558old_postuninstall_cmds=$lt_old_postuninstall_cmds 15559 15560# Whether to use a lock for old archive extraction. 15561lock_old_archive_extraction=$lock_old_archive_extraction 15562 15563# A C compiler. 15564LTCC=$lt_CC 15565 15566# LTCC compiler flags. 15567LTCFLAGS=$lt_CFLAGS 15568 15569# Take the output of nm and produce a listing of raw symbols and C names. 15570global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 15571 15572# Transform the output of nm in a proper C declaration. 15573global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 15574 15575# Transform the output of nm in a C name address pair. 15576global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 15577 15578# Transform the output of nm in a C name address pair when lib prefix is needed. 15579global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 15580 15581# Specify filename containing input files for \$NM. 15582nm_file_list_spec=$lt_nm_file_list_spec 15583 15584# The root where to search for dependent libraries,and in which our libraries should be installed. 15585lt_sysroot=$lt_sysroot 15586 15587# The name of the directory that contains temporary libtool files. 15588objdir=$objdir 15589 15590# Used to examine libraries when file_magic_cmd begins with "file". 15591MAGIC_CMD=$MAGIC_CMD 15592 15593# Must we lock files when doing compilation? 15594need_locks=$lt_need_locks 15595 15596# Manifest tool. 15597MANIFEST_TOOL=$lt_MANIFEST_TOOL 15598 15599# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 15600DSYMUTIL=$lt_DSYMUTIL 15601 15602# Tool to change global to local symbols on Mac OS X. 15603NMEDIT=$lt_NMEDIT 15604 15605# Tool to manipulate fat objects and archives on Mac OS X. 15606LIPO=$lt_LIPO 15607 15608# ldd/readelf like tool for Mach-O binaries on Mac OS X. 15609OTOOL=$lt_OTOOL 15610 15611# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 15612OTOOL64=$lt_OTOOL64 15613 15614# Old archive suffix (normally "a"). 15615libext=$libext 15616 15617# Shared library suffix (normally ".so"). 15618shrext_cmds=$lt_shrext_cmds 15619 15620# The commands to extract the exported symbol list from a shared archive. 15621extract_expsyms_cmds=$lt_extract_expsyms_cmds 15622 15623# Variables whose values should be saved in libtool wrapper scripts and 15624# restored at link time. 15625variables_saved_for_relink=$lt_variables_saved_for_relink 15626 15627# Do we need the "lib" prefix for modules? 15628need_lib_prefix=$need_lib_prefix 15629 15630# Do we need a version for libraries? 15631need_version=$need_version 15632 15633# Library versioning type. 15634version_type=$version_type 15635 15636# Shared library runtime path variable. 15637runpath_var=$runpath_var 15638 15639# Shared library path variable. 15640shlibpath_var=$shlibpath_var 15641 15642# Is shlibpath searched before the hard-coded library search path? 15643shlibpath_overrides_runpath=$shlibpath_overrides_runpath 15644 15645# Format of library name prefix. 15646libname_spec=$lt_libname_spec 15647 15648# List of archive names. First name is the real one, the rest are links. 15649# The last name is the one that the linker finds with -lNAME 15650library_names_spec=$lt_library_names_spec 15651 15652# The coded name of the library, if different from the real name. 15653soname_spec=$lt_soname_spec 15654 15655# Permission mode override for installation of shared libraries. 15656install_override_mode=$lt_install_override_mode 15657 15658# Command to use after installation of a shared archive. 15659postinstall_cmds=$lt_postinstall_cmds 15660 15661# Command to use after uninstallation of a shared archive. 15662postuninstall_cmds=$lt_postuninstall_cmds 15663 15664# Commands used to finish a libtool library installation in a directory. 15665finish_cmds=$lt_finish_cmds 15666 15667# As "finish_cmds", except a single script fragment to be evaled but 15668# not shown. 15669finish_eval=$lt_finish_eval 15670 15671# Whether we should hardcode library paths into libraries. 15672hardcode_into_libs=$hardcode_into_libs 15673 15674# Compile-time system search path for libraries. 15675sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 15676 15677# Run-time system search path for libraries. 15678sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 15679 15680# Whether dlopen is supported. 15681dlopen_support=$enable_dlopen 15682 15683# Whether dlopen of programs is supported. 15684dlopen_self=$enable_dlopen_self 15685 15686# Whether dlopen of statically linked programs is supported. 15687dlopen_self_static=$enable_dlopen_self_static 15688 15689# Commands to strip libraries. 15690old_striplib=$lt_old_striplib 15691striplib=$lt_striplib 15692 15693 15694# The linker used to build libraries. 15695LD=$lt_LD 15696 15697# How to create reloadable object files. 15698reload_flag=$lt_reload_flag 15699reload_cmds=$lt_reload_cmds 15700 15701# Commands used to build an old-style archive. 15702old_archive_cmds=$lt_old_archive_cmds 15703 15704# A language specific compiler. 15705CC=$lt_compiler 15706 15707# Is the compiler the GNU compiler? 15708with_gcc=$GCC 15709 15710# Compiler flag to turn off builtin functions. 15711no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 15712 15713# Additional compiler flags for building library objects. 15714pic_flag=$lt_lt_prog_compiler_pic 15715 15716# How to pass a linker flag through the compiler. 15717wl=$lt_lt_prog_compiler_wl 15718 15719# Compiler flag to prevent dynamic linking. 15720link_static_flag=$lt_lt_prog_compiler_static 15721 15722# Does compiler simultaneously support -c and -o options? 15723compiler_c_o=$lt_lt_cv_prog_compiler_c_o 15724 15725# Whether or not to add -lc for building shared libraries. 15726build_libtool_need_lc=$archive_cmds_need_lc 15727 15728# Whether or not to disallow shared libs when runtime libs are static. 15729allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 15730 15731# Compiler flag to allow reflexive dlopens. 15732export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 15733 15734# Compiler flag to generate shared objects directly from archives. 15735whole_archive_flag_spec=$lt_whole_archive_flag_spec 15736 15737# Whether the compiler copes with passing no objects directly. 15738compiler_needs_object=$lt_compiler_needs_object 15739 15740# Create an old-style archive from a shared archive. 15741old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 15742 15743# Create a temporary old-style archive to link instead of a shared archive. 15744old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 15745 15746# Commands used to build a shared archive. 15747archive_cmds=$lt_archive_cmds 15748archive_expsym_cmds=$lt_archive_expsym_cmds 15749 15750# Commands used to build a loadable module if different from building 15751# a shared archive. 15752module_cmds=$lt_module_cmds 15753module_expsym_cmds=$lt_module_expsym_cmds 15754 15755# Whether we are building with GNU ld or not. 15756with_gnu_ld=$lt_with_gnu_ld 15757 15758# Flag that allows shared libraries with undefined symbols to be built. 15759allow_undefined_flag=$lt_allow_undefined_flag 15760 15761# Flag that enforces no undefined symbols. 15762no_undefined_flag=$lt_no_undefined_flag 15763 15764# Flag to hardcode \$libdir into a binary during linking. 15765# This must work even if \$libdir does not exist 15766hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 15767 15768# Whether we need a single "-rpath" flag with a separated argument. 15769hardcode_libdir_separator=$lt_hardcode_libdir_separator 15770 15771# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15772# DIR into the resulting binary. 15773hardcode_direct=$hardcode_direct 15774 15775# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 15776# DIR into the resulting binary and the resulting library dependency is 15777# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 15778# library is relocated. 15779hardcode_direct_absolute=$hardcode_direct_absolute 15780 15781# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 15782# into the resulting binary. 15783hardcode_minus_L=$hardcode_minus_L 15784 15785# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 15786# into the resulting binary. 15787hardcode_shlibpath_var=$hardcode_shlibpath_var 15788 15789# Set to "yes" if building a shared library automatically hardcodes DIR 15790# into the library and all subsequent libraries and executables linked 15791# against it. 15792hardcode_automatic=$hardcode_automatic 15793 15794# Set to yes if linker adds runtime paths of dependent libraries 15795# to runtime path list. 15796inherit_rpath=$inherit_rpath 15797 15798# Whether libtool must link a program against all its dependency libraries. 15799link_all_deplibs=$link_all_deplibs 15800 15801# Set to "yes" if exported symbols are required. 15802always_export_symbols=$always_export_symbols 15803 15804# The commands to list exported symbols. 15805export_symbols_cmds=$lt_export_symbols_cmds 15806 15807# Symbols that should not be listed in the preloaded symbols. 15808exclude_expsyms=$lt_exclude_expsyms 15809 15810# Symbols that must always be exported. 15811include_expsyms=$lt_include_expsyms 15812 15813# Commands necessary for linking programs (against libraries) with templates. 15814prelink_cmds=$lt_prelink_cmds 15815 15816# Commands necessary for finishing linking programs. 15817postlink_cmds=$lt_postlink_cmds 15818 15819# Specify filename containing input files. 15820file_list_spec=$lt_file_list_spec 15821 15822# How to hardcode a shared library path into an executable. 15823hardcode_action=$hardcode_action 15824 15825# ### END LIBTOOL CONFIG 15826 15827_LT_EOF 15828 15829 case $host_os in 15830 aix3*) 15831 cat <<\_LT_EOF >> "$cfgfile" 15832# AIX sometimes has problems with the GCC collect2 program. For some 15833# reason, if we set the COLLECT_NAMES environment variable, the problems 15834# vanish in a puff of smoke. 15835if test "X${COLLECT_NAMES+set}" != Xset; then 15836 COLLECT_NAMES= 15837 export COLLECT_NAMES 15838fi 15839_LT_EOF 15840 ;; 15841 esac 15842 15843 15844ltmain="$ac_aux_dir/ltmain.sh" 15845 15846 15847 # We use sed instead of cat because bash on DJGPP gets confused if 15848 # if finds mixed CR/LF and LF-only lines. Since sed operates in 15849 # text mode, it properly converts lines to CR/LF. This bash problem 15850 # is reportedly fixed, but why not run on old versions too? 15851 sed '$q' "$ltmain" >> "$cfgfile" \ 15852 || (rm -f "$cfgfile"; exit 1) 15853 15854 if test x"$xsi_shell" = xyes; then 15855 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\ 15856func_dirname ()\ 15857{\ 15858\ case ${1} in\ 15859\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15860\ * ) func_dirname_result="${3}" ;;\ 15861\ esac\ 15862} # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \ 15863 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15864 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15865test 0 -eq $? || _lt_function_replace_fail=: 15866 15867 15868 sed -e '/^func_basename ()$/,/^} # func_basename /c\ 15869func_basename ()\ 15870{\ 15871\ func_basename_result="${1##*/}"\ 15872} # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15873 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15874 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15875test 0 -eq $? || _lt_function_replace_fail=: 15876 15877 15878 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\ 15879func_dirname_and_basename ()\ 15880{\ 15881\ case ${1} in\ 15882\ */*) func_dirname_result="${1%/*}${2}" ;;\ 15883\ * ) func_dirname_result="${3}" ;;\ 15884\ esac\ 15885\ func_basename_result="${1##*/}"\ 15886} # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \ 15887 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15888 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15889test 0 -eq $? || _lt_function_replace_fail=: 15890 15891 15892 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\ 15893func_stripname ()\ 15894{\ 15895\ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\ 15896\ # positional parameters, so assign one to ordinary parameter first.\ 15897\ func_stripname_result=${3}\ 15898\ func_stripname_result=${func_stripname_result#"${1}"}\ 15899\ func_stripname_result=${func_stripname_result%"${2}"}\ 15900} # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \ 15901 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15902 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15903test 0 -eq $? || _lt_function_replace_fail=: 15904 15905 15906 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\ 15907func_split_long_opt ()\ 15908{\ 15909\ func_split_long_opt_name=${1%%=*}\ 15910\ func_split_long_opt_arg=${1#*=}\ 15911} # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15912 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15913 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15914test 0 -eq $? || _lt_function_replace_fail=: 15915 15916 15917 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\ 15918func_split_short_opt ()\ 15919{\ 15920\ func_split_short_opt_arg=${1#??}\ 15921\ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\ 15922} # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \ 15923 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15924 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15925test 0 -eq $? || _lt_function_replace_fail=: 15926 15927 15928 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\ 15929func_lo2o ()\ 15930{\ 15931\ case ${1} in\ 15932\ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\ 15933\ *) func_lo2o_result=${1} ;;\ 15934\ esac\ 15935} # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \ 15936 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15937 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15938test 0 -eq $? || _lt_function_replace_fail=: 15939 15940 15941 sed -e '/^func_xform ()$/,/^} # func_xform /c\ 15942func_xform ()\ 15943{\ 15944 func_xform_result=${1%.*}.lo\ 15945} # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \ 15946 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15947 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15948test 0 -eq $? || _lt_function_replace_fail=: 15949 15950 15951 sed -e '/^func_arith ()$/,/^} # func_arith /c\ 15952func_arith ()\ 15953{\ 15954 func_arith_result=$(( $* ))\ 15955} # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \ 15956 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15957 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15958test 0 -eq $? || _lt_function_replace_fail=: 15959 15960 15961 sed -e '/^func_len ()$/,/^} # func_len /c\ 15962func_len ()\ 15963{\ 15964 func_len_result=${#1}\ 15965} # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \ 15966 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15967 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15968test 0 -eq $? || _lt_function_replace_fail=: 15969 15970fi 15971 15972if test x"$lt_shell_append" = xyes; then 15973 sed -e '/^func_append ()$/,/^} # func_append /c\ 15974func_append ()\ 15975{\ 15976 eval "${1}+=\\${2}"\ 15977} # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \ 15978 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15979 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15980test 0 -eq $? || _lt_function_replace_fail=: 15981 15982 15983 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\ 15984func_append_quoted ()\ 15985{\ 15986\ func_quote_for_eval "${2}"\ 15987\ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\ 15988} # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \ 15989 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15990 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15991test 0 -eq $? || _lt_function_replace_fail=: 15992 15993 15994 # Save a `func_append' function call where possible by direct use of '+=' 15995 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \ 15996 && mv -f "$cfgfile.tmp" "$cfgfile" \ 15997 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 15998 test 0 -eq $? || _lt_function_replace_fail=: 15999else 16000 # Save a `func_append' function call even when '+=' is not available 16001 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \ 16002 && mv -f "$cfgfile.tmp" "$cfgfile" \ 16003 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp") 16004 test 0 -eq $? || _lt_function_replace_fail=: 16005fi 16006 16007if test x"$_lt_function_replace_fail" = x":"; then 16008 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5 16009$as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;} 16010fi 16011 16012 16013 mv -f "$cfgfile" "$ofile" || 16014 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 16015 chmod +x "$ofile" 16016 16017 ;; 16018 16019 esac 16020done # for ac_tag 16021 16022 16023as_fn_exit 0 16024_ACEOF 16025ac_clean_files=$ac_clean_files_save 16026 16027test $ac_write_fail = 0 || 16028 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 16029 16030 16031# configure is writing to config.log, and then calls config.status. 16032# config.status does its own redirection, appending to config.log. 16033# Unfortunately, on DOS this fails, as config.log is still kept open 16034# by configure, so config.status won't be able to write to it; its 16035# output is simply discarded. So we exec the FD to /dev/null, 16036# effectively closing config.log, so it can be properly (re)opened and 16037# appended to by config.status. When coming back to configure, we 16038# need to make the FD available again. 16039if test "$no_create" != yes; then 16040 ac_cs_success=: 16041 ac_config_status_args= 16042 test "$silent" = yes && 16043 ac_config_status_args="$ac_config_status_args --quiet" 16044 exec 5>/dev/null 16045 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 16046 exec 5>>config.log 16047 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 16048 # would make configure fail if this is the last instruction. 16049 $ac_cs_success || as_fn_exit 1 16050fi 16051if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 16052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 16053$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 16054fi 16055 16056 16057if test "$ac_mysql" = "NO" && test "$ac_pgsql" = "NO" && test "$ac_sqlite" = "NO" \ 16058 && test "$ac_sqlite3" = "NO" && test "$ac_msql" = "NO" && test "$ac_oracle" = "NO" \ 16059 && test "$ac_firebird" = "NO" && test "$ac_freetds" = "NO" && test "$ac_ingres" = "NO" \ 16060 && test "$ac_db2" = "NO"; then 16061 echo 16062 echo "***WARNING***" 16063 echo "You did not request any drivers to be built. This is most likely not what you want." 16064 echo "Please run ./configure --help for a list of switches and select at least one driver." 16065fi 16066 16067