1@%:@! /bin/sh 2@%:@ Guess values for system-dependent variables and create Makefiles. 3@%:@ Generated by GNU Autoconf 2.59 for vigra 1.5.0. 4@%:@ 5@%:@ Copyright (C) 2003 Free Software Foundation, Inc. 6@%:@ This configure script is free software; the Free Software Foundation 7@%:@ gives unlimited permission to copy, distribute and modify it. 8## --------------------- ## 9## M4sh Initialization. ## 10## --------------------- ## 11 12# Be Bourne compatible 13if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 14 emulate sh 15 NULLCMD=: 16 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 17 # is contrary to our usage. Disable this feature. 18 alias -g '${1+"$@"}'='"$@"' 19elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 20 set -o posix 21fi 22DUALCASE=1; export DUALCASE # for MKS sh 23 24# Support unset when possible. 25if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 26 as_unset=unset 27else 28 as_unset=false 29fi 30 31 32# Work around bugs in pre-3.0 UWIN ksh. 33$as_unset ENV MAIL MAILPATH 34PS1='$ ' 35PS2='> ' 36PS4='+ ' 37 38# NLS nuisances. 39for as_var in \ 40 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 41 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 42 LC_TELEPHONE LC_TIME 43do 44 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 45 eval $as_var=C; export $as_var 46 else 47 $as_unset $as_var 48 fi 49done 50 51# Required to use basename. 52if expr a : '\(a\)' >/dev/null 2>&1; then 53 as_expr=expr 54else 55 as_expr=false 56fi 57 58if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 59 as_basename=basename 60else 61 as_basename=false 62fi 63 64 65# Name of the executable. 66as_me=`$as_basename "$0" || 67$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 68 X"$0" : 'X\(//\)$' \| \ 69 X"$0" : 'X\(/\)$' \| \ 70 . : '\(.\)' 2>/dev/null || 71echo X/"$0" | 72 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 73 /^X\/\(\/\/\)$/{ s//\1/; q; } 74 /^X\/\(\/\).*/{ s//\1/; q; } 75 s/.*/./; q'` 76 77 78# PATH needs CR, and LINENO needs CR and PATH. 79# Avoid depending upon Character Ranges. 80as_cr_letters='abcdefghijklmnopqrstuvwxyz' 81as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 82as_cr_Letters=$as_cr_letters$as_cr_LETTERS 83as_cr_digits='0123456789' 84as_cr_alnum=$as_cr_Letters$as_cr_digits 85 86# The user is always right. 87if test "${PATH_SEPARATOR+set}" != set; then 88 echo "#! /bin/sh" >conf$$.sh 89 echo "exit 0" >>conf$$.sh 90 chmod +x conf$$.sh 91 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 92 PATH_SEPARATOR=';' 93 else 94 PATH_SEPARATOR=: 95 fi 96 rm -f conf$$.sh 97fi 98 99 100 as_lineno_1=$LINENO 101 as_lineno_2=$LINENO 102 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 103 test "x$as_lineno_1" != "x$as_lineno_2" && 104 test "x$as_lineno_3" = "x$as_lineno_2" || { 105 # Find who we are. Look in the path if we contain no path at all 106 # relative or not. 107 case $0 in 108 *[\\/]* ) as_myself=$0 ;; 109 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 110for as_dir in $PATH 111do 112 IFS=$as_save_IFS 113 test -z "$as_dir" && as_dir=. 114 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 115done 116 117 ;; 118 esac 119 # We did not find ourselves, most probably we were run as `sh COMMAND' 120 # in which case we are not to be found in the path. 121 if test "x$as_myself" = x; then 122 as_myself=$0 123 fi 124 if test ! -f "$as_myself"; then 125 { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 126 { (exit 1); exit 1; }; } 127 fi 128 case $CONFIG_SHELL in 129 '') 130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 131for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 132do 133 IFS=$as_save_IFS 134 test -z "$as_dir" && as_dir=. 135 for as_base in sh bash ksh sh5; do 136 case $as_dir in 137 /*) 138 if ("$as_dir/$as_base" -c ' 139 as_lineno_1=$LINENO 140 as_lineno_2=$LINENO 141 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 142 test "x$as_lineno_1" != "x$as_lineno_2" && 143 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 144 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 145 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 146 CONFIG_SHELL=$as_dir/$as_base 147 export CONFIG_SHELL 148 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 149 fi;; 150 esac 151 done 152done 153;; 154 esac 155 156 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 157 # uniformly replaced by the line number. The first 'sed' inserts a 158 # line-number line before each line; the second 'sed' does the real 159 # work. The second script uses 'N' to pair each line-number line 160 # with the numbered line, and appends trailing '-' during 161 # substitution so that $LINENO is not a special case at line end. 162 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 163 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 164 sed '=' <$as_myself | 165 sed ' 166 N 167 s,$,-, 168 : loop 169 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 170 t loop 171 s,-$,, 172 s,^['$as_cr_digits']*\n,, 173 ' >$as_me.lineno && 174 chmod +x $as_me.lineno || 175 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 176 { (exit 1); exit 1; }; } 177 178 # Don't try to exec as it changes $[0], causing all sort of problems 179 # (the dirname of $[0] is not the place where we might find the 180 # original and so on. Autoconf is especially sensible to this). 181 . ./$as_me.lineno 182 # Exit status is that of the last command. 183 exit 184} 185 186 187case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 188 *c*,-n*) ECHO_N= ECHO_C=' 189' ECHO_T=' ' ;; 190 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 191 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 192esac 193 194if expr a : '\(a\)' >/dev/null 2>&1; then 195 as_expr=expr 196else 197 as_expr=false 198fi 199 200rm -f conf$$ conf$$.exe conf$$.file 201echo >conf$$.file 202if ln -s conf$$.file conf$$ 2>/dev/null; then 203 # We could just check for DJGPP; but this test a) works b) is more generic 204 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 205 if test -f conf$$.exe; then 206 # Don't use ln at all; we don't have any links 207 as_ln_s='cp -p' 208 else 209 as_ln_s='ln -s' 210 fi 211elif ln conf$$.file conf$$ 2>/dev/null; then 212 as_ln_s=ln 213else 214 as_ln_s='cp -p' 215fi 216rm -f conf$$ conf$$.exe conf$$.file 217 218if mkdir -p . 2>/dev/null; then 219 as_mkdir_p=: 220else 221 test -d ./-p && rmdir ./-p 222 as_mkdir_p=false 223fi 224 225as_executable_p="test -f" 226 227# Sed expression to map a string onto a valid CPP name. 228as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 229 230# Sed expression to map a string onto a valid variable name. 231as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 232 233 234# IFS 235# We need space, tab and new line, in precisely that order. 236as_nl=' 237' 238IFS=" $as_nl" 239 240# CDPATH. 241$as_unset CDPATH 242 243 244 245# Check that we are running under the correct shell. 246SHELL=${CONFIG_SHELL-/bin/sh} 247 248case X$ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255echo=${ECHO-echo} 256if test "X$1" = X--no-reexec; then 257 # Discard the --no-reexec flag, and continue. 258 shift 259elif test "X$1" = X--fallback-echo; then 260 # Avoid inline document here, it may be left over 261 : 262elif test "X`($echo '\t') 2>/dev/null`" = 'X\t' ; then 263 # Yippee, $echo works! 264 : 265else 266 # Restart under the correct shell. 267 exec $SHELL "$0" --no-reexec ${1+"$@"} 268fi 269 270if test "X$1" = X--fallback-echo; then 271 # used as fallback echo 272 shift 273 cat <<EOF 274$* 275EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281if test "X${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 282 283if test -z "$ECHO"; then 284if test "X${echo_test_string+set}" != Xset; then 285# find a string as large as possible, as long as the shell can cope with it 286 for cmd in 'sed 50q "$0"' 'sed 20q "$0"' 'sed 10q "$0"' 'sed 2q "$0"' 'echo test'; do 287 # expected sizes: less than 2Kb, 1Kb, 512 bytes, 16 bytes, ... 288 if (echo_test_string="`eval $cmd`") 2>/dev/null && 289 echo_test_string="`eval $cmd`" && 290 (test "X$echo_test_string" = "X$echo_test_string") 2>/dev/null 291 then 292 break 293 fi 294 done 295fi 296 297if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 298 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 299 test "X$echo_testing_string" = "X$echo_test_string"; then 300 : 301else 302 # The Solaris, AIX, and Digital Unix default echo programs unquote 303 # backslashes. This makes it impossible to quote backslashes using 304 # echo "$something" | sed 's/\\/\\\\/g' 305 # 306 # So, first we look for a working echo in the user's PATH. 307 308 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 309 for dir in $PATH /usr/ucb; do 310 IFS="$lt_save_ifs" 311 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 312 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 313 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 314 test "X$echo_testing_string" = "X$echo_test_string"; then 315 echo="$dir/echo" 316 break 317 fi 318 done 319 IFS="$lt_save_ifs" 320 321 if test "X$echo" = Xecho; then 322 # We didn't find a better echo, so look for alternatives. 323 if test "X`(print -r '\t') 2>/dev/null`" = 'X\t' && 324 echo_testing_string=`(print -r "$echo_test_string") 2>/dev/null` && 325 test "X$echo_testing_string" = "X$echo_test_string"; then 326 # This shell has a builtin print -r that does the trick. 327 echo='print -r' 328 elif (test -f /bin/ksh || test -f /bin/ksh$ac_exeext) && 329 test "X$CONFIG_SHELL" != X/bin/ksh; then 330 # If we have ksh, try running configure again with it. 331 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 332 export ORIGINAL_CONFIG_SHELL 333 CONFIG_SHELL=/bin/ksh 334 export CONFIG_SHELL 335 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 336 else 337 # Try using printf. 338 echo='printf %s\n' 339 if test "X`($echo '\t') 2>/dev/null`" = 'X\t' && 340 echo_testing_string=`($echo "$echo_test_string") 2>/dev/null` && 341 test "X$echo_testing_string" = "X$echo_test_string"; then 342 # Cool, printf works 343 : 344 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 345 test "X$echo_testing_string" = 'X\t' && 346 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 347 test "X$echo_testing_string" = "X$echo_test_string"; then 348 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 349 export CONFIG_SHELL 350 SHELL="$CONFIG_SHELL" 351 export SHELL 352 echo="$CONFIG_SHELL $0 --fallback-echo" 353 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 354 test "X$echo_testing_string" = 'X\t' && 355 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 356 test "X$echo_testing_string" = "X$echo_test_string"; then 357 echo="$CONFIG_SHELL $0 --fallback-echo" 358 else 359 # maybe with a smaller string... 360 prev=: 361 362 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 363 if (test "X$echo_test_string" = "X`eval $cmd`") 2>/dev/null 364 then 365 break 366 fi 367 prev="$cmd" 368 done 369 370 if test "$prev" != 'sed 50q "$0"'; then 371 echo_test_string=`eval $prev` 372 export echo_test_string 373 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 374 else 375 # Oops. We lost completely, so just stick with echo. 376 echo=echo 377 fi 378 fi 379 fi 380 fi 381fi 382fi 383 384# Copy echo and quote the copy suitably for passing to libtool from 385# the Makefile, instead of quoting the original, which is used later. 386ECHO=$echo 387if test "X$ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 388 ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 389fi 390 391 392 393 394tagnames=${tagnames+${tagnames},}CXX 395 396tagnames=${tagnames+${tagnames},}F77 397 398# Name of the host. 399# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 400# so uname gets run too. 401ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 402 403exec 6>&1 404 405# 406# Initializations. 407# 408ac_default_prefix=/usr/local 409ac_default_docdir='${prefix}/doc/vigra' 410ac_config_libobj_dir=. 411cross_compiling=no 412subdirs= 413MFLAGS= 414MAKEFLAGS= 415SHELL=${CONFIG_SHELL-/bin/sh} 416 417# Maximum number of lines to put in a shell here document. 418# This variable seems obsolete. It should probably be removed, and 419# only ac_max_sed_lines should be used. 420: ${ac_max_here_lines=38} 421 422# Identity of this package. 423PACKAGE_NAME='vigra' 424PACKAGE_TARNAME='vigra' 425PACKAGE_VERSION='1.5.0' 426PACKAGE_STRING='vigra 1.5.0' 427PACKAGE_BUGREPORT='' 428 429ac_default_prefix=`pwd` 430# Factoring default headers for most tests. 431ac_includes_default="\ 432#include <stdio.h> 433#if HAVE_SYS_TYPES_H 434# include <sys/types.h> 435#endif 436#if HAVE_SYS_STAT_H 437# include <sys/stat.h> 438#endif 439#if STDC_HEADERS 440# include <stdlib.h> 441# include <stddef.h> 442#else 443# if HAVE_STDLIB_H 444# include <stdlib.h> 445# endif 446#endif 447#if HAVE_STRING_H 448# if !STDC_HEADERS && HAVE_MEMORY_H 449# include <memory.h> 450# endif 451# include <string.h> 452#endif 453#if HAVE_STRINGS_H 454# include <strings.h> 455#endif 456#if HAVE_INTTYPES_H 457# include <inttypes.h> 458#else 459# if HAVE_STDINT_H 460# include <stdint.h> 461# endif 462#endif 463#if HAVE_UNISTD_H 464# include <unistd.h> 465#endif" 466 467ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir libdir includedir docdir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS MAJOR_VERSION MINOR_VERSION MICRO_VERSION SHAREDLIB_VERSION build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT CXX CXXFLAGS ac_ct_CXX EGREP INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA LN_S ECHO AR ac_ct_AR RANLIB ac_ct_RANLIB STRIP ac_ct_STRIP CPP CXXCPP F77 FFLAGS ac_ct_F77 LIBTOOL PKGCONFIG LIBPNGCONFIG PYTHON vigra_srcdir vigra_builddir TIFF_LIB JPEG_LIB PNG_LIB FFTW_LIB FFTW_INCLUDES IMPEX_LIB IMPEX_DEPLIBS VIGRA_INCLUDES VIGRA_INCPATH POSTINSTALLCPPFLAGS BOOST_PYTHON_LIB BOOST_INCLUDES PYTHON_INSTALLDIR LIBCPPFLAGS LIB@&t@OBJS LTLIBOBJS' 468ac_subst_files='' 469 470# Initialize some variables set by options. 471ac_init_help= 472ac_init_version=false 473# The variables have the same names as the options, with 474# dashes changed to underlines. 475cache_file=/dev/null 476exec_prefix=NONE 477no_create= 478no_recursion= 479prefix=NONE 480program_prefix=NONE 481program_suffix=NONE 482program_transform_name=s,x,x, 483silent= 484site= 485srcdir= 486verbose= 487x_includes=NONE 488x_libraries=NONE 489 490# Installation directory options. 491# These are left unexpanded so users can "make install exec_prefix=/foo" 492# and all the variables that are supposed to be based on exec_prefix 493# by default will actually change. 494# Use braces instead of parens because sh, perl, etc. also accept them. 495bindir='${exec_prefix}/bin' 496libdir='${exec_prefix}/lib' 497includedir='${prefix}/include' 498docdir=$ac_default_docdir 499 500ac_prev= 501for ac_option 502do 503 # If the previous option needs an argument, assign it. 504 if test -n "$ac_prev"; then 505 eval "$ac_prev=\$ac_option" 506 ac_prev= 507 continue 508 fi 509 510 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 511 512 # Accept the important Cygnus configure options, so we can diagnose typos. 513 514 case $ac_option in 515 516 -bindir | --bindir | --bindi | --bind | --bin | --bi) 517 ac_prev=bindir ;; 518 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 519 bindir=$ac_optarg ;; 520 521 -build | --build | --buil | --bui | --bu) 522 ac_prev=build_alias ;; 523 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 524 build_alias=$ac_optarg ;; 525 526 -cache-file | --cache-file | --cache-fil | --cache-fi \ 527 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 528 ac_prev=cache_file ;; 529 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 530 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 531 cache_file=$ac_optarg ;; 532 533 --config-cache | -C) 534 cache_file=config.cache ;; 535 536 -disable-* | --disable-*) 537 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 538 # Reject names that are not valid shell variable names. 539 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 540 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 541 { (exit 1); exit 1; }; } 542 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 543 eval "enable_$ac_feature=no" ;; 544 545 -docdir | --docdir | --docdi | --docd | --doc | --do) 546 ac_prev=docdir ;; 547 -docdir=* | --docdir=* | --docdi=* | --docd=* | --doc=* | --do=* ) 548 docdir=$ac_optarg ;; 549 550 -enable-* | --enable-*) 551 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 552 # Reject names that are not valid shell variable names. 553 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 554 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 555 { (exit 1); exit 1; }; } 556 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 557 case $ac_option in 558 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 559 *) ac_optarg=yes ;; 560 esac 561 eval "enable_$ac_feature='$ac_optarg'" ;; 562 563 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 564 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 565 | --exec | --exe | --ex) 566 ac_prev=exec_prefix ;; 567 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 568 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 569 | --exec=* | --exe=* | --ex=*) 570 exec_prefix=$ac_optarg ;; 571 572 -gas | --gas | --ga | --g) 573 # Obsolete; use --with-gas. 574 with_gas=yes ;; 575 576 -help | --help | --hel | --he | -h) 577 ac_init_help=long ;; 578 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 579 ac_init_help=recursive ;; 580 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 581 ac_init_help=short ;; 582 583 -host | --host | --hos | --ho) 584 ac_prev=host_alias ;; 585 -host=* | --host=* | --hos=* | --ho=*) 586 host_alias=$ac_optarg ;; 587 588 -includedir | --includedir | --includedi | --included | --include \ 589 | --includ | --inclu | --incl | --inc) 590 ac_prev=includedir ;; 591 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 592 | --includ=* | --inclu=* | --incl=* | --inc=*) 593 includedir=$ac_optarg ;; 594 595 -libdir | --libdir | --libdi | --libd) 596 ac_prev=libdir ;; 597 -libdir=* | --libdir=* | --libdi=* | --libd=*) 598 libdir=$ac_optarg ;; 599 600 -nfp | --nfp | --nf) 601 # Obsolete; use --without-fp. 602 with_fp=no ;; 603 604 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 605 | --no-cr | --no-c | -n) 606 no_create=yes ;; 607 608 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 609 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 610 no_recursion=yes ;; 611 612 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 613 ac_prev=prefix ;; 614 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 615 prefix=$ac_optarg ;; 616 617 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 618 | --program-pre | --program-pr | --program-p) 619 ac_prev=program_prefix ;; 620 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 621 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 622 program_prefix=$ac_optarg ;; 623 624 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 625 | --program-suf | --program-su | --program-s) 626 ac_prev=program_suffix ;; 627 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 628 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 629 program_suffix=$ac_optarg ;; 630 631 -program-transform-name | --program-transform-name \ 632 | --program-transform-nam | --program-transform-na \ 633 | --program-transform-n | --program-transform- \ 634 | --program-transform | --program-transfor \ 635 | --program-transfo | --program-transf \ 636 | --program-trans | --program-tran \ 637 | --progr-tra | --program-tr | --program-t) 638 ac_prev=program_transform_name ;; 639 -program-transform-name=* | --program-transform-name=* \ 640 | --program-transform-nam=* | --program-transform-na=* \ 641 | --program-transform-n=* | --program-transform-=* \ 642 | --program-transform=* | --program-transfor=* \ 643 | --program-transfo=* | --program-transf=* \ 644 | --program-trans=* | --program-tran=* \ 645 | --progr-tra=* | --program-tr=* | --program-t=*) 646 program_transform_name=$ac_optarg ;; 647 648 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 649 | -silent | --silent | --silen | --sile | --sil) 650 silent=yes ;; 651 652 -site | --site | --sit) 653 ac_prev=site ;; 654 -site=* | --site=* | --sit=*) 655 site=$ac_optarg ;; 656 657 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 658 ac_prev=srcdir ;; 659 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 660 srcdir=$ac_optarg ;; 661 662 -target | --target | --targe | --targ | --tar | --ta | --t) 663 ac_prev=target_alias ;; 664 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 665 target_alias=$ac_optarg ;; 666 667 -v | -verbose | --verbose | --verbos | --verbo | --verb) 668 verbose=yes ;; 669 670 -version | --version | --versio | --versi | --vers | -V) 671 ac_init_version=: ;; 672 673 -with-* | --with-*) 674 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 675 # Reject names that are not valid shell variable names. 676 expr "x$ac_package" : "(.*[^-_$as_cr_alnum])" >/dev/null && 677 { echo "$as_me: error: invalid package name: $ac_package" >&2 678 { (exit 1); exit 1; }; } 679 ac_package=`echo $ac_package| sed 's/-/_/g'` 680 case $ac_option in 681 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 682 *) ac_optarg=yes ;; 683 esac 684 eval "with_$ac_package='$ac_optarg'" ;; 685 686 -without-* | --without-*) 687 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 688 # Reject names that are not valid shell variable names. 689 expr "x$ac_package" : "(.*[^-_$as_cr_alnum])" >/dev/null && 690 { echo "$as_me: error: invalid package name: $ac_package" >&2 691 { (exit 1); exit 1; }; } 692 ac_package=`echo $ac_package | sed 's/-/_/g'` 693 eval "with_$ac_package=no" ;; 694 695 --x) 696 # Obsolete; use --with-x. 697 with_x=yes ;; 698 699 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 700 | --x-incl | --x-inc | --x-in | --x-i) 701 ac_prev=x_includes ;; 702 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 703 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 704 x_includes=$ac_optarg ;; 705 706 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 707 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 708 ac_prev=x_libraries ;; 709 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 710 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 711 x_libraries=$ac_optarg ;; 712 713 -*) { echo "$as_me: error: unrecognized option: $ac_option 714Try \`$0 --help' for more information." >&2 715 { (exit 1); exit 1; }; } 716 ;; 717 718 *=*) 719 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 720 # Reject names that are not valid shell variable names. 721 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 722 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 723 { (exit 1); exit 1; }; } 724 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 725 eval "$ac_envvar='$ac_optarg'" 726 export $ac_envvar ;; 727 728 *) 729 # FIXME: should be removed in autoconf 3.0. 730 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 731 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 732 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 733 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 734 ;; 735 736 esac 737done 738 739if test -n "$ac_prev"; then 740 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 741 { echo "$as_me: error: missing argument to $ac_option" >&2 742 { (exit 1); exit 1; }; } 743fi 744 745# Be sure to have absolute paths. 746for ac_var in exec_prefix prefix 747do 748 eval ac_val=$`echo $ac_var` 749 case $ac_val in 750 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 751 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 752 { (exit 1); exit 1; }; };; 753 esac 754done 755 756# Be sure to have absolute paths. 757for ac_var in bindir libdir includedir docdir 758do 759 eval ac_val=$`echo $ac_var` 760 case $ac_val in 761 [\\/$]* | ?:[\\/]* ) ;; 762 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 763 { (exit 1); exit 1; }; };; 764 esac 765done 766 767# There might be people who depend on the old broken behavior: `$host' 768# used to hold the argument of --host etc. 769# FIXME: To remove some day. 770build=$build_alias 771host=$host_alias 772target=$target_alias 773 774# FIXME: To remove some day. 775if test "x$host_alias" != x; then 776 if test "x$build_alias" = x; then 777 cross_compiling=maybe 778 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 779 If a cross compiler is detected then cross compile mode will be used." >&2 780 elif test "x$build_alias" != "x$host_alias"; then 781 cross_compiling=yes 782 fi 783fi 784 785ac_tool_prefix= 786test -n "$host_alias" && ac_tool_prefix=$host_alias- 787 788test "$silent" = yes && exec 6>/dev/null 789 790 791# Find the source files, if location was not specified. 792if test -z "$srcdir"; then 793 ac_srcdir_defaulted=yes 794 # Try the directory containing this script, then its parent. 795 ac_confdir=`(dirname "$0") 2>/dev/null || 796$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 797 X"$0" : 'X\(//\)[^/]' \| \ 798 X"$0" : 'X\(//\)$' \| \ 799 X"$0" : 'X\(/\)' \| \ 800 . : '\(.\)' 2>/dev/null || 801echo X"$0" | 802 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 803 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 804 /^X\(\/\/\)$/{ s//\1/; q; } 805 /^X\(\/\).*/{ s//\1/; q; } 806 s/.*/./; q'` 807 srcdir=$ac_confdir 808 if test ! -r $srcdir/$ac_unique_file; then 809 srcdir=.. 810 fi 811else 812 ac_srcdir_defaulted=no 813fi 814if test ! -r $srcdir/$ac_unique_file; then 815 if test "$ac_srcdir_defaulted" = yes; then 816 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 817 { (exit 1); exit 1; }; } 818 else 819 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 820 { (exit 1); exit 1; }; } 821 fi 822fi 823(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 824 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 825 { (exit 1); exit 1; }; } 826srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 827ac_env_build_alias_set=${build_alias+set} 828ac_env_build_alias_value=$build_alias 829ac_cv_env_build_alias_set=${build_alias+set} 830ac_cv_env_build_alias_value=$build_alias 831ac_env_host_alias_set=${host_alias+set} 832ac_env_host_alias_value=$host_alias 833ac_cv_env_host_alias_set=${host_alias+set} 834ac_cv_env_host_alias_value=$host_alias 835ac_env_target_alias_set=${target_alias+set} 836ac_env_target_alias_value=$target_alias 837ac_cv_env_target_alias_set=${target_alias+set} 838ac_cv_env_target_alias_value=$target_alias 839ac_env_CC_set=${CC+set} 840ac_env_CC_value=$CC 841ac_cv_env_CC_set=${CC+set} 842ac_cv_env_CC_value=$CC 843ac_env_CFLAGS_set=${CFLAGS+set} 844ac_env_CFLAGS_value=$CFLAGS 845ac_cv_env_CFLAGS_set=${CFLAGS+set} 846ac_cv_env_CFLAGS_value=$CFLAGS 847ac_env_LDFLAGS_set=${LDFLAGS+set} 848ac_env_LDFLAGS_value=$LDFLAGS 849ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 850ac_cv_env_LDFLAGS_value=$LDFLAGS 851ac_env_CPPFLAGS_set=${CPPFLAGS+set} 852ac_env_CPPFLAGS_value=$CPPFLAGS 853ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 854ac_cv_env_CPPFLAGS_value=$CPPFLAGS 855ac_env_CXX_set=${CXX+set} 856ac_env_CXX_value=$CXX 857ac_cv_env_CXX_set=${CXX+set} 858ac_cv_env_CXX_value=$CXX 859ac_env_CXXFLAGS_set=${CXXFLAGS+set} 860ac_env_CXXFLAGS_value=$CXXFLAGS 861ac_cv_env_CXXFLAGS_set=${CXXFLAGS+set} 862ac_cv_env_CXXFLAGS_value=$CXXFLAGS 863ac_env_CPP_set=${CPP+set} 864ac_env_CPP_value=$CPP 865ac_cv_env_CPP_set=${CPP+set} 866ac_cv_env_CPP_value=$CPP 867ac_env_CXXCPP_set=${CXXCPP+set} 868ac_env_CXXCPP_value=$CXXCPP 869ac_cv_env_CXXCPP_set=${CXXCPP+set} 870ac_cv_env_CXXCPP_value=$CXXCPP 871ac_env_F77_set=${F77+set} 872ac_env_F77_value=$F77 873ac_cv_env_F77_set=${F77+set} 874ac_cv_env_F77_value=$F77 875ac_env_FFLAGS_set=${FFLAGS+set} 876ac_env_FFLAGS_value=$FFLAGS 877ac_cv_env_FFLAGS_set=${FFLAGS+set} 878ac_cv_env_FFLAGS_value=$FFLAGS 879 880# 881# Report the --help message. 882# 883if test "$ac_init_help" = "long"; then 884 # Omit some internal or obsolete options to make the list less imposing. 885 # This message is too long to be a string in the A/UX 3.1 sh. 886 cat <<_ACEOF 887\`configure' configures vigra 1.5.0 to adapt to many kinds of systems. 888 889Usage: $0 [OPTION]... [VAR=VALUE]... 890 891To assign environment variables (e.g., CC, CFLAGS...), specify them as 892VAR=VALUE. See below for descriptions of some of the useful variables. 893 894Defaults for the options are specified in brackets. 895 896Configuration: 897 -h, --help display this help and exit 898 --help=short display options specific to this package 899 --help=recursive display the short help of all the included packages 900 -V, --version display version information and exit 901 -q, --quiet, --silent do not print \`checking...' messages 902 --cache-file=FILE cache test results in FILE [disabled] 903 -C, --config-cache alias for \`--cache-file=config.cache' 904 -n, --no-create do not create output files 905 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 906 907_ACEOF 908 909 cat <<_ACEOF 910Installation directories: 911 --prefix=PREFIX install architecture-independent files in PREFIX 912 [$ac_default_prefix] 913 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 914 [PREFIX] 915 916By default, \`make install' will install all the files in 917\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 918an installation prefix other than \`$ac_default_prefix' using \`--prefix', 919for instance \`--prefix=\$HOME'. 920 921For better control, use the options below. 922 923Fine tuning of the installation directories: 924 --bindir=DIR user executables [EPREFIX/bin] 925 --libdir=DIR object code libraries [EPREFIX/lib] 926 --includedir=DIR C header files [PREFIX/include] 927 --docdir=DIR html documentation [$ac_default_docdir] 928_ACEOF 929 930 cat <<\_ACEOF 931 932System types: 933 --build=BUILD configure for building on BUILD [guessed] 934 --host=HOST cross-compile to build programs to run on HOST [BUILD] 935 --target=TARGET configure for building compilers for TARGET [HOST] 936_ACEOF 937fi 938 939if test -n "$ac_init_help"; then 940 case $ac_init_help in 941 short | recursive ) echo "Configuration of vigra 1.5.0:";; 942 esac 943 cat <<\_ACEOF 944 945Optional Features: 946 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 947 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 948 --enable-shared@<:@=PKGS@:>@ 949 build shared libraries @<:@default=yes@:>@ 950 --enable-static@<:@=PKGS@:>@ 951 build static libraries @<:@default=yes@:>@ 952 --enable-fast-install@<:@=PKGS@:>@ 953 optimize for fast installation @<:@default=yes@:>@ 954 --disable-libtool-lock avoid locking (might break parallel builds) 955 956Optional Packages: 957 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 958 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 959 --with-cc your C compiler (default=gcc) 960 --with-cxx your C++ compiler (default=g++) 961 --with-gnu-ld assume the C compiler uses GNU ld @<:@default=no@:>@ 962 --with-pic try to use only PIC/non-PIC objects @<:@default=use 963 both@:>@ 964 --with-tags@<:@=TAGS@:>@ 965 include additional configurations @<:@automatic@:>@ 966 967 --with-tiff 968 --with-tiff=dir 969 --without-tiff 970 --with-tifflib=dir 971 --with-tiffinc=dir 972 support import/export of tiff images. 973 default: --with-tiff=yes 974 if --with-tiff or --with-tiff=yes is given: tiff package files will be 975 searched for by 'pkg-config' and in some standard directories (the default). 976 if --with-tiff=dir is given, and dir is a directory: tiff library files 977 will be looked up in 'dir'. 978 if --with-tiff=no or --without-tiff is given: tiff package will 979 not be used. 980 alternatively, you can specify: 981 --with-tifflib=dir : the tiff package's lib directory 982 --with-tiffinc=dir : the tiff package's include directory 983 984 --with-jpeg 985 --with-jpeg=dir 986 --without-jpeg 987 --with-jpeglib=dir 988 --with-jpeginc=dir 989 support import/export of jpeg images. 990 default: --with-jpeg=yes 991 if --with-jpeg or --with-jpeg=yes is given: jpeg package files will be 992 searched for by 'pkg-config' and in some standard directories (the default). 993 if --with-jpeg=dir is given, and dir is a directory: jpeg library files 994 will be looked up in 'dir'. 995 if --with-jpeg=no or --without-jpeg is given: jpeg package will 996 not be used. 997 alternatively, you can specify: 998 --with-jpeglib=dir : the jpeg package's lib directory 999 --with-jpeginc=dir : the jpeg package's include directory 1000 1001 --with-png 1002 --with-png=dir 1003 --without-png 1004 --with-pnglib=dir 1005 --with-pnginc=dir 1006 support import/export of png images. 1007 default: --with-png=yes 1008 if --with-png or --with-png=yes is given: png package files will be 1009 searched for by 'pkg-config' and in some standard directories (the default). 1010 if --with-png=dir is given, and dir is a directory: png library files 1011 will be looked up in 'dir'. 1012 if --with-png=no or --without-png is given: png package will 1013 not be used. 1014 alternatively, you can specify: 1015 --with-pnglib=dir : the png package's lib directory 1016 --with-pnginc=dir : the png package's include directory 1017 1018 --with-zlib 1019 --with-zlib=dir 1020 --without-zlib 1021 --with-zliblib=dir 1022 --with-zlibinc=dir 1023 zlib compression library (required for libpng). 1024 default: --with-zlib=yes 1025 if --with-zlib or --with-zlib=yes is given: zlib package files will be 1026 searched for by 'pkg-config' and in some standard directories (the default). 1027 if --with-zlib=dir is given, and dir is a directory: zlib library files 1028 will be looked up in 'dir'. 1029 if --with-zlib=no or --without-zlib is given: zlib package will 1030 not be used. 1031 alternatively, you can specify: 1032 --with-zliblib=dir : the zlib package's lib directory 1033 --with-zlibinc=dir : the zlib package's include directory 1034 1035 --with-fftw 1036 --with-fftw=dir 1037 --without-fftw 1038 --with-fftwlib=dir 1039 --with-fftwinc=dir 1040 support fast Fourier transforms (fftw3 required!). 1041 default: --with-fftw=yes 1042 if --with-fftw or --with-fftw=yes is given: fftw package files will be 1043 searched for by 'pkg-config' and in some standard directories (the default). 1044 if --with-fftw=dir is given, and dir is a directory: fftw library files 1045 will be looked up in 'dir'. 1046 if --with-fftw=no or --without-fftw is given: fftw package will 1047 not be used. 1048 alternatively, you can specify: 1049 --with-fftwlib=dir : the fftw package's lib directory 1050 --with-fftwinc=dir : the fftw package's include directory 1051 1052 --with-boostpython 1053 --with-boostpython=dir 1054 --without-boostpython 1055 --with-boostpythonlib=dir 1056 --with-boostpythoninc=dir 1057 boost_python glue code generator (required for VIGRA Python bindings). 1058 default: --with-boostpython=$with_python 1059 if --with-boostpython or --with-boostpython=yes is given: boostpython package files will be 1060 searched for by 'pkg-config' and in some standard directories (the default). 1061 if --with-boostpython=dir is given, and dir is a directory: boostpython library files 1062 will be looked up in 'dir'. 1063 if --with-boostpython=no or --without-boostpython is given: boostpython package will 1064 not be used. 1065 alternatively, you can specify: 1066 --with-boostpythonlib=dir : the boostpython package's lib directory 1067 --with-boostpythoninc=dir : the boostpython package's include directory 1068 --with-boostpythonname=name : the name of the boost python library (default: boost_python) 1069 1070Some influential environment variables: 1071 CC C compiler command 1072 CFLAGS C compiler flags 1073 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1074 nonstandard directory <lib dir> 1075 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1076 headers in a nonstandard directory <include dir> 1077 CXX C++ compiler command 1078 CXXFLAGS C++ compiler flags 1079 CPP C preprocessor 1080 CXXCPP C++ preprocessor 1081 F77 Fortran 77 compiler command 1082 FFLAGS Fortran 77 compiler flags 1083 1084Use these variables to override the choices made by `configure' or to help 1085it to find libraries and programs with nonstandard names/locations. 1086 1087_ACEOF 1088fi 1089 1090if test "$ac_init_help" = "recursive"; then 1091 # If there are subdirs, report their specific --help. 1092 ac_popdir=`pwd` 1093 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1094 test -d $ac_dir || continue 1095 ac_builddir=. 1096 1097if test "$ac_dir" != .; then 1098 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1099 # A "../" for each directory in $ac_dir_suffix. 1100 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1101else 1102 ac_dir_suffix= ac_top_builddir= 1103fi 1104 1105case $srcdir in 1106 .) # No --srcdir option. We are building in place. 1107 ac_srcdir=. 1108 if test -z "$ac_top_builddir"; then 1109 ac_top_srcdir=. 1110 else 1111 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1112 fi ;; 1113 [\\/]* | ?:[\\/]* ) # Absolute path. 1114 ac_srcdir=$srcdir$ac_dir_suffix; 1115 ac_top_srcdir=$srcdir ;; 1116 *) # Relative path. 1117 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1118 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1119esac 1120 1121# Do not use `cd foo && pwd` to compute absolute paths, because 1122# the directories may not exist. 1123case `pwd` in 1124.) ac_abs_builddir="$ac_dir";; 1125*) 1126 case "$ac_dir" in 1127 .) ac_abs_builddir=`pwd`;; 1128 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1129 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1130 esac;; 1131esac 1132case $ac_abs_builddir in 1133.) ac_abs_top_builddir=${ac_top_builddir}.;; 1134*) 1135 case ${ac_top_builddir}. in 1136 .) ac_abs_top_builddir=$ac_abs_builddir;; 1137 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1138 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1139 esac;; 1140esac 1141case $ac_abs_builddir in 1142.) ac_abs_srcdir=$ac_srcdir;; 1143*) 1144 case $ac_srcdir in 1145 .) ac_abs_srcdir=$ac_abs_builddir;; 1146 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1147 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1148 esac;; 1149esac 1150case $ac_abs_builddir in 1151.) ac_abs_top_srcdir=$ac_top_srcdir;; 1152*) 1153 case $ac_top_srcdir in 1154 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1155 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1156 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1157 esac;; 1158esac 1159 1160 cd $ac_dir 1161 # Check for guested configure; otherwise get Cygnus style configure. 1162 if test -f $ac_srcdir/configure.gnu; then 1163 echo 1164 $SHELL $ac_srcdir/configure.gnu --help=recursive 1165 elif test -f $ac_srcdir/configure; then 1166 echo 1167 $SHELL $ac_srcdir/configure --help=recursive 1168 elif test -f $ac_srcdir/configure.ac || 1169 test -f $ac_srcdir/configure.in; then 1170 echo 1171 $ac_configure --help 1172 else 1173 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1174 fi 1175 cd $ac_popdir 1176 done 1177fi 1178 1179test -n "$ac_init_help" && exit 0 1180if $ac_init_version; then 1181 cat <<\_ACEOF 1182vigra configure 1.5.0 1183generated by GNU Autoconf 2.59 1184 1185Copyright (C) 2003 Free Software Foundation, Inc. 1186This configure script is free software; the Free Software Foundation 1187gives unlimited permission to copy, distribute and modify it. 1188_ACEOF 1189 exit 0 1190fi 1191exec 5>config.log 1192cat >&5 <<_ACEOF 1193This file contains any messages produced by compilers while 1194running configure, to aid debugging if configure makes a mistake. 1195 1196It was created by vigra $as_me 1.5.0, which was 1197generated by GNU Autoconf 2.59. Invocation command line was 1198 1199 $ $0 $@ 1200 1201_ACEOF 1202{ 1203cat <<_ASUNAME 1204@%:@@%:@ --------- @%:@@%:@ 1205@%:@@%:@ Platform. @%:@@%:@ 1206@%:@@%:@ --------- @%:@@%:@ 1207 1208hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1209uname -m = `(uname -m) 2>/dev/null || echo unknown` 1210uname -r = `(uname -r) 2>/dev/null || echo unknown` 1211uname -s = `(uname -s) 2>/dev/null || echo unknown` 1212uname -v = `(uname -v) 2>/dev/null || echo unknown` 1213 1214/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1215/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1216 1217/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1218/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1219/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1220hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1221/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1222/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1223/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1224 1225_ASUNAME 1226 1227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1228for as_dir in $PATH 1229do 1230 IFS=$as_save_IFS 1231 test -z "$as_dir" && as_dir=. 1232 echo "PATH: $as_dir" 1233done 1234 1235} >&5 1236 1237cat >&5 <<_ACEOF 1238 1239 1240@%:@@%:@ ----------- @%:@@%:@ 1241@%:@@%:@ Core tests. @%:@@%:@ 1242@%:@@%:@ ----------- @%:@@%:@ 1243 1244_ACEOF 1245 1246 1247# Keep a trace of the command line. 1248# Strip out --no-create and --no-recursion so they do not pile up. 1249# Strip out --silent because we don't want to record it for future runs. 1250# Also quote any args containing shell meta-characters. 1251# Make two passes to allow for proper duplicate-argument suppression. 1252ac_configure_args= 1253ac_configure_args0= 1254ac_configure_args1= 1255ac_sep= 1256ac_must_keep_next=false 1257for ac_pass in 1 2 1258do 1259 for ac_arg 1260 do 1261 case $ac_arg in 1262 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1263 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1264 | -silent | --silent | --silen | --sile | --sil) 1265 continue ;; 1266 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1267 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1268 esac 1269 case $ac_pass in 1270 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1271 2) 1272 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1273 if test $ac_must_keep_next = true; then 1274 ac_must_keep_next=false # Got value, back to normal. 1275 else 1276 case $ac_arg in 1277 *=* | --config-cache | -C | -disable-* | --disable-* \ 1278 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1279 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1280 | -with-* | --with-* | -without-* | --without-* | --x) 1281 case "$ac_configure_args0 " in 1282 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1283 esac 1284 ;; 1285 -* ) ac_must_keep_next=true ;; 1286 esac 1287 fi 1288 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1289 # Get rid of the leading space. 1290 ac_sep=" " 1291 ;; 1292 esac 1293 done 1294done 1295$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1296$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1297 1298# When interrupted or exit'd, cleanup temporary files, and complete 1299# config.log. We remove comments because anyway the quotes in there 1300# would cause problems or look ugly. 1301# WARNING: Be sure not to use single quotes in there, as some shells, 1302# such as our DU 5.0 friend, will then `close' the trap. 1303trap 'exit_status=$? 1304 # Save into config.log some information that might help in debugging. 1305 { 1306 echo 1307 1308 cat <<\_ASBOX 1309@%:@@%:@ ---------------- @%:@@%:@ 1310@%:@@%:@ Cache variables. @%:@@%:@ 1311@%:@@%:@ ---------------- @%:@@%:@ 1312_ASBOX 1313 echo 1314 # The following way of writing the cache mishandles newlines in values, 1315{ 1316 (set) 2>&1 | 1317 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1318 *ac_space=\ *) 1319 sed -n \ 1320 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1321 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1322 ;; 1323 *) 1324 sed -n \ 1325 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1326 ;; 1327 esac; 1328} 1329 echo 1330 1331 cat <<\_ASBOX 1332@%:@@%:@ ----------------- @%:@@%:@ 1333@%:@@%:@ Output variables. @%:@@%:@ 1334@%:@@%:@ ----------------- @%:@@%:@ 1335_ASBOX 1336 echo 1337 for ac_var in $ac_subst_vars 1338 do 1339 eval ac_val=$`echo $ac_var` 1340 echo "$ac_var='"'"'$ac_val'"'"'" 1341 done | sort 1342 echo 1343 1344 if test -n "$ac_subst_files"; then 1345 cat <<\_ASBOX 1346@%:@@%:@ ------------- @%:@@%:@ 1347@%:@@%:@ Output files. @%:@@%:@ 1348@%:@@%:@ ------------- @%:@@%:@ 1349_ASBOX 1350 echo 1351 for ac_var in $ac_subst_files 1352 do 1353 eval ac_val=$`echo $ac_var` 1354 echo "$ac_var='"'"'$ac_val'"'"'" 1355 done | sort 1356 echo 1357 fi 1358 1359 if test -s confdefs.h; then 1360 cat <<\_ASBOX 1361@%:@@%:@ ----------- @%:@@%:@ 1362@%:@@%:@ confdefs.h. @%:@@%:@ 1363@%:@@%:@ ----------- @%:@@%:@ 1364_ASBOX 1365 echo 1366 sed "/^$/d" confdefs.h | sort 1367 echo 1368 fi 1369 test "$ac_signal" != 0 && 1370 echo "$as_me: caught signal $ac_signal" 1371 echo "$as_me: exit $exit_status" 1372 } >&5 1373 rm -f core *.core && 1374 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1375 exit $exit_status 1376 ' 0 1377for ac_signal in 1 2 13 15; do 1378 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1379done 1380ac_signal=0 1381 1382# confdefs.h avoids OS command line length limits that DEFS can exceed. 1383rm -rf conftest* confdefs.h 1384# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1385echo >confdefs.h 1386 1387# Predefined preprocessor variables. 1388 1389cat >>confdefs.h <<_ACEOF 1390@%:@define PACKAGE_NAME "$PACKAGE_NAME" 1391_ACEOF 1392 1393 1394cat >>confdefs.h <<_ACEOF 1395@%:@define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1396_ACEOF 1397 1398 1399cat >>confdefs.h <<_ACEOF 1400@%:@define PACKAGE_VERSION "$PACKAGE_VERSION" 1401_ACEOF 1402 1403 1404cat >>confdefs.h <<_ACEOF 1405@%:@define PACKAGE_STRING "$PACKAGE_STRING" 1406_ACEOF 1407 1408 1409cat >>confdefs.h <<_ACEOF 1410@%:@define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1411_ACEOF 1412 1413 1414# Let the site file select an alternate cache file if it wants to. 1415# Prefer explicitly selected file to automatically selected ones. 1416if test -z "$CONFIG_SITE"; then 1417 if test "x$prefix" != xNONE; then 1418 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1419 else 1420 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1421 fi 1422fi 1423for ac_site_file in $CONFIG_SITE; do 1424 if test -r "$ac_site_file"; then 1425 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1426echo "$as_me: loading site script $ac_site_file" >&6;} 1427 sed 's/^/| /' "$ac_site_file" >&5 1428 . "$ac_site_file" 1429 fi 1430done 1431 1432if test -r "$cache_file"; then 1433 # Some versions of bash will fail to source /dev/null (special 1434 # files actually), so we avoid doing that. 1435 if test -f "$cache_file"; then 1436 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1437echo "$as_me: loading cache $cache_file" >&6;} 1438 case $cache_file in 1439 [\\/]* | ?:[\\/]* ) . $cache_file;; 1440 *) . ./$cache_file;; 1441 esac 1442 fi 1443else 1444 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1445echo "$as_me: creating cache $cache_file" >&6;} 1446 >$cache_file 1447fi 1448 1449# Check that the precious variables saved in the cache have kept the same 1450# value. 1451ac_cache_corrupted=false 1452for ac_var in `(set) 2>&1 | 1453 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1454 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1455 eval ac_new_set=\$ac_env_${ac_var}_set 1456 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1457 eval ac_new_val="\$ac_env_${ac_var}_value" 1458 case $ac_old_set,$ac_new_set in 1459 set,) 1460 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1461echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1462 ac_cache_corrupted=: ;; 1463 ,set) 1464 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1465echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1466 ac_cache_corrupted=: ;; 1467 ,);; 1468 *) 1469 if test "x$ac_old_val" != "x$ac_new_val"; then 1470 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1471echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1472 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1473echo "$as_me: former value: $ac_old_val" >&2;} 1474 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1475echo "$as_me: current value: $ac_new_val" >&2;} 1476 ac_cache_corrupted=: 1477 fi;; 1478 esac 1479 # Pass precious variables to config.status. 1480 if test "$ac_new_set" = set; then 1481 case $ac_new_val in 1482 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1483 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1484 *) ac_arg=$ac_var=$ac_new_val ;; 1485 esac 1486 case " $ac_configure_args " in 1487 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1488 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1489 esac 1490 fi 1491done 1492if $ac_cache_corrupted; then 1493 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1494echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1495 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1496echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1497 { (exit 1); exit 1; }; } 1498fi 1499 1500ac_ext=c 1501ac_cpp='$CPP $CPPFLAGS' 1502ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1503ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1504ac_compiler_gnu=$ac_cv_c_compiler_gnu 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534MAJOR_VERSION=1 1535MINOR_VERSION=5 1536MICRO_VERSION=0 1537 1538SHAREDLIB_VERSION=`echo "$MAJOR_VERSION$MINOR_VERSION$MICRO_VERSION" | sed 's,[^0-9],,g'` 1539 1540echo "configuring VIGRA $MAJOR_VERSION.$MINOR_VERSION.$MICRO_VERSION" 1541 1542 1543 1544 1545 1546vigra_builddir=`pwd` 1547vigra_srcdir=`expr $0 : "\(.*\)/"` 1548 1549if test "x$vigra_srcdir" = "x" ; then 1550 vigra_srcdir=`pwd` ; 1551else 1552 cd $vigra_srcdir 1553 vigra_srcdir=`pwd` 1554 cd $vigra_builddir ; 1555fi 1556 1557# expand prefix and exec_prefix 1558if test "x$prefix" = "xNONE" ; then 1559 prefix=$ac_default_prefix 1560elif test "x$prefix" = "x." ; then 1561 prefix=`pwd` 1562fi 1563 1564ac_aux_dir= 1565for ac_dir in $vigra_srcdir/config $srcdir/$vigra_srcdir/config; do 1566 if test -f $ac_dir/install-sh; then 1567 ac_aux_dir=$ac_dir 1568 ac_install_sh="$ac_aux_dir/install-sh -c" 1569 break 1570 elif test -f $ac_dir/install.sh; then 1571 ac_aux_dir=$ac_dir 1572 ac_install_sh="$ac_aux_dir/install.sh -c" 1573 break 1574 elif test -f $ac_dir/shtool; then 1575 ac_aux_dir=$ac_dir 1576 ac_install_sh="$ac_aux_dir/shtool install -c" 1577 break 1578 fi 1579done 1580if test -z "$ac_aux_dir"; then 1581 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $vigra_srcdir/config $srcdir/$vigra_srcdir/config" >&5 1582echo "$as_me: error: cannot find install-sh or install.sh in $vigra_srcdir/config $srcdir/$vigra_srcdir/config" >&2;} 1583 { (exit 1); exit 1; }; } 1584fi 1585ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1586ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1587ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1588 1589 1590# Make sure we can run config.sub. 1591$ac_config_sub sun4 >/dev/null 2>&1 || 1592 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1593echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1594 { (exit 1); exit 1; }; } 1595 1596echo "$as_me:$LINENO: checking build system type" >&5 1597echo $ECHO_N "checking build system type... $ECHO_C" >&6 1598if test "${ac_cv_build+set}" = set; then 1599 echo $ECHO_N "(cached) $ECHO_C" >&6 1600else 1601 ac_cv_build_alias=$build_alias 1602test -z "$ac_cv_build_alias" && 1603 ac_cv_build_alias=`$ac_config_guess` 1604test -z "$ac_cv_build_alias" && 1605 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1606echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1607 { (exit 1); exit 1; }; } 1608ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1609 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1610echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1611 { (exit 1); exit 1; }; } 1612 1613fi 1614echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1615echo "${ECHO_T}$ac_cv_build" >&6 1616build=$ac_cv_build 1617build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1618build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1619build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1620 1621 1622echo "$as_me:$LINENO: checking host system type" >&5 1623echo $ECHO_N "checking host system type... $ECHO_C" >&6 1624if test "${ac_cv_host+set}" = set; then 1625 echo $ECHO_N "(cached) $ECHO_C" >&6 1626else 1627 ac_cv_host_alias=$host_alias 1628test -z "$ac_cv_host_alias" && 1629 ac_cv_host_alias=$ac_cv_build_alias 1630ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1631 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1632echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1633 { (exit 1); exit 1; }; } 1634 1635fi 1636echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1637echo "${ECHO_T}$ac_cv_host" >&6 1638host=$ac_cv_host 1639host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1640host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1641host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1642 1643 1644echo "$as_me:$LINENO: checking target system type" >&5 1645echo $ECHO_N "checking target system type... $ECHO_C" >&6 1646if test "${ac_cv_target+set}" = set; then 1647 echo $ECHO_N "(cached) $ECHO_C" >&6 1648else 1649 ac_cv_target_alias=$target_alias 1650test "x$ac_cv_target_alias" = "x" && 1651 ac_cv_target_alias=$ac_cv_host_alias 1652ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1653 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1654echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1655 { (exit 1); exit 1; }; } 1656 1657fi 1658echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1659echo "${ECHO_T}$ac_cv_target" >&6 1660target=$ac_cv_target 1661target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1662target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1663target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1664 1665 1666# The aliases save the names the user supplied, while $host etc. 1667# will get canonicalized. 1668test -n "$target_alias" && 1669 test "$program_prefix$program_suffix$program_transform_name" = \ 1670 NONENONEs,x,x, && 1671 program_prefix=${target_alias}- 1672 1673 1674CFLAGS="$CFLAGS -O" 1675CXXFLAGS="$CXXFLAGS -O" 1676 1677 1678# Check whether --with-cc or --without-cc was given. 1679if test "${with_cc+set}" = set; then 1680 withval="$with_cc" 1681 CC=$with_cc 1682else 1683 if test "x$CC" = "x" ; then CC=gcc ; fi 1684fi; 1685 1686# Check whether --with-cxx or --without-cxx was given. 1687if test "${with_cxx+set}" = set; then 1688 withval="$with_cxx" 1689 CXX=$with_cxx 1690else 1691 if test "x$CXX" = "x" ; then CXX=g++ ; fi 1692fi; 1693 1694ac_ext=c 1695ac_cpp='$CPP $CPPFLAGS' 1696ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1697ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1698ac_compiler_gnu=$ac_cv_c_compiler_gnu 1699if test -n "$ac_tool_prefix"; then 1700 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 1701set dummy ${ac_tool_prefix}gcc; ac_word=$2 1702echo "$as_me:$LINENO: checking for $ac_word" >&5 1703echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1704if test "${ac_cv_prog_CC+set}" = set; then 1705 echo $ECHO_N "(cached) $ECHO_C" >&6 1706else 1707 if test -n "$CC"; then 1708 ac_cv_prog_CC="$CC" # Let the user override the test. 1709else 1710as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1711for as_dir in $PATH 1712do 1713 IFS=$as_save_IFS 1714 test -z "$as_dir" && as_dir=. 1715 for ac_exec_ext in '' $ac_executable_extensions; do 1716 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1717 ac_cv_prog_CC="${ac_tool_prefix}gcc" 1718 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1719 break 2 1720 fi 1721done 1722done 1723 1724fi 1725fi 1726CC=$ac_cv_prog_CC 1727if test -n "$CC"; then 1728 echo "$as_me:$LINENO: result: $CC" >&5 1729echo "${ECHO_T}$CC" >&6 1730else 1731 echo "$as_me:$LINENO: result: no" >&5 1732echo "${ECHO_T}no" >&6 1733fi 1734 1735fi 1736if test -z "$ac_cv_prog_CC"; then 1737 ac_ct_CC=$CC 1738 # Extract the first word of "gcc", so it can be a program name with args. 1739set dummy gcc; ac_word=$2 1740echo "$as_me:$LINENO: checking for $ac_word" >&5 1741echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1742if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1743 echo $ECHO_N "(cached) $ECHO_C" >&6 1744else 1745 if test -n "$ac_ct_CC"; then 1746 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1747else 1748as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1749for as_dir in $PATH 1750do 1751 IFS=$as_save_IFS 1752 test -z "$as_dir" && as_dir=. 1753 for ac_exec_ext in '' $ac_executable_extensions; do 1754 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1755 ac_cv_prog_ac_ct_CC="gcc" 1756 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1757 break 2 1758 fi 1759done 1760done 1761 1762fi 1763fi 1764ac_ct_CC=$ac_cv_prog_ac_ct_CC 1765if test -n "$ac_ct_CC"; then 1766 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1767echo "${ECHO_T}$ac_ct_CC" >&6 1768else 1769 echo "$as_me:$LINENO: result: no" >&5 1770echo "${ECHO_T}no" >&6 1771fi 1772 1773 CC=$ac_ct_CC 1774else 1775 CC="$ac_cv_prog_CC" 1776fi 1777 1778if test -z "$CC"; then 1779 if test -n "$ac_tool_prefix"; then 1780 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 1781set dummy ${ac_tool_prefix}cc; ac_word=$2 1782echo "$as_me:$LINENO: checking for $ac_word" >&5 1783echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1784if test "${ac_cv_prog_CC+set}" = set; then 1785 echo $ECHO_N "(cached) $ECHO_C" >&6 1786else 1787 if test -n "$CC"; then 1788 ac_cv_prog_CC="$CC" # Let the user override the test. 1789else 1790as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1791for as_dir in $PATH 1792do 1793 IFS=$as_save_IFS 1794 test -z "$as_dir" && as_dir=. 1795 for ac_exec_ext in '' $ac_executable_extensions; do 1796 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1797 ac_cv_prog_CC="${ac_tool_prefix}cc" 1798 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1799 break 2 1800 fi 1801done 1802done 1803 1804fi 1805fi 1806CC=$ac_cv_prog_CC 1807if test -n "$CC"; then 1808 echo "$as_me:$LINENO: result: $CC" >&5 1809echo "${ECHO_T}$CC" >&6 1810else 1811 echo "$as_me:$LINENO: result: no" >&5 1812echo "${ECHO_T}no" >&6 1813fi 1814 1815fi 1816if test -z "$ac_cv_prog_CC"; then 1817 ac_ct_CC=$CC 1818 # Extract the first word of "cc", so it can be a program name with args. 1819set dummy cc; ac_word=$2 1820echo "$as_me:$LINENO: checking for $ac_word" >&5 1821echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1822if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1823 echo $ECHO_N "(cached) $ECHO_C" >&6 1824else 1825 if test -n "$ac_ct_CC"; then 1826 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1827else 1828as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1829for as_dir in $PATH 1830do 1831 IFS=$as_save_IFS 1832 test -z "$as_dir" && as_dir=. 1833 for ac_exec_ext in '' $ac_executable_extensions; do 1834 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1835 ac_cv_prog_ac_ct_CC="cc" 1836 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1837 break 2 1838 fi 1839done 1840done 1841 1842fi 1843fi 1844ac_ct_CC=$ac_cv_prog_ac_ct_CC 1845if test -n "$ac_ct_CC"; then 1846 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1847echo "${ECHO_T}$ac_ct_CC" >&6 1848else 1849 echo "$as_me:$LINENO: result: no" >&5 1850echo "${ECHO_T}no" >&6 1851fi 1852 1853 CC=$ac_ct_CC 1854else 1855 CC="$ac_cv_prog_CC" 1856fi 1857 1858fi 1859if test -z "$CC"; then 1860 # Extract the first word of "cc", so it can be a program name with args. 1861set dummy cc; ac_word=$2 1862echo "$as_me:$LINENO: checking for $ac_word" >&5 1863echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1864if test "${ac_cv_prog_CC+set}" = set; then 1865 echo $ECHO_N "(cached) $ECHO_C" >&6 1866else 1867 if test -n "$CC"; then 1868 ac_cv_prog_CC="$CC" # Let the user override the test. 1869else 1870 ac_prog_rejected=no 1871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1872for as_dir in $PATH 1873do 1874 IFS=$as_save_IFS 1875 test -z "$as_dir" && as_dir=. 1876 for ac_exec_ext in '' $ac_executable_extensions; do 1877 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1878 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 1879 ac_prog_rejected=yes 1880 continue 1881 fi 1882 ac_cv_prog_CC="cc" 1883 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1884 break 2 1885 fi 1886done 1887done 1888 1889if test $ac_prog_rejected = yes; then 1890 # We found a bogon in the path, so make sure we never use it. 1891 set dummy $ac_cv_prog_CC 1892 shift 1893 if test $@%:@ != 0; then 1894 # We chose a different compiler from the bogus one. 1895 # However, it has the same basename, so the bogon will be chosen 1896 # first if we set CC to just the basename; use the full file name. 1897 shift 1898 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 1899 fi 1900fi 1901fi 1902fi 1903CC=$ac_cv_prog_CC 1904if test -n "$CC"; then 1905 echo "$as_me:$LINENO: result: $CC" >&5 1906echo "${ECHO_T}$CC" >&6 1907else 1908 echo "$as_me:$LINENO: result: no" >&5 1909echo "${ECHO_T}no" >&6 1910fi 1911 1912fi 1913if test -z "$CC"; then 1914 if test -n "$ac_tool_prefix"; then 1915 for ac_prog in cl 1916 do 1917 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 1918set dummy $ac_tool_prefix$ac_prog; ac_word=$2 1919echo "$as_me:$LINENO: checking for $ac_word" >&5 1920echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1921if test "${ac_cv_prog_CC+set}" = set; then 1922 echo $ECHO_N "(cached) $ECHO_C" >&6 1923else 1924 if test -n "$CC"; then 1925 ac_cv_prog_CC="$CC" # Let the user override the test. 1926else 1927as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1928for as_dir in $PATH 1929do 1930 IFS=$as_save_IFS 1931 test -z "$as_dir" && as_dir=. 1932 for ac_exec_ext in '' $ac_executable_extensions; do 1933 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1934 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 1935 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1936 break 2 1937 fi 1938done 1939done 1940 1941fi 1942fi 1943CC=$ac_cv_prog_CC 1944if test -n "$CC"; then 1945 echo "$as_me:$LINENO: result: $CC" >&5 1946echo "${ECHO_T}$CC" >&6 1947else 1948 echo "$as_me:$LINENO: result: no" >&5 1949echo "${ECHO_T}no" >&6 1950fi 1951 1952 test -n "$CC" && break 1953 done 1954fi 1955if test -z "$CC"; then 1956 ac_ct_CC=$CC 1957 for ac_prog in cl 1958do 1959 # Extract the first word of "$ac_prog", so it can be a program name with args. 1960set dummy $ac_prog; ac_word=$2 1961echo "$as_me:$LINENO: checking for $ac_word" >&5 1962echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1963if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 1964 echo $ECHO_N "(cached) $ECHO_C" >&6 1965else 1966 if test -n "$ac_ct_CC"; then 1967 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 1968else 1969as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1970for as_dir in $PATH 1971do 1972 IFS=$as_save_IFS 1973 test -z "$as_dir" && as_dir=. 1974 for ac_exec_ext in '' $ac_executable_extensions; do 1975 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1976 ac_cv_prog_ac_ct_CC="$ac_prog" 1977 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1978 break 2 1979 fi 1980done 1981done 1982 1983fi 1984fi 1985ac_ct_CC=$ac_cv_prog_ac_ct_CC 1986if test -n "$ac_ct_CC"; then 1987 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 1988echo "${ECHO_T}$ac_ct_CC" >&6 1989else 1990 echo "$as_me:$LINENO: result: no" >&5 1991echo "${ECHO_T}no" >&6 1992fi 1993 1994 test -n "$ac_ct_CC" && break 1995done 1996 1997 CC=$ac_ct_CC 1998fi 1999 2000fi 2001 2002 2003test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2004See \`config.log' for more details." >&5 2005echo "$as_me: error: no acceptable C compiler found in \$PATH 2006See \`config.log' for more details." >&2;} 2007 { (exit 1); exit 1; }; } 2008 2009# Provide some information about the compiler. 2010echo "$as_me:$LINENO:" \ 2011 "checking for C compiler version" >&5 2012ac_compiler=`set X $ac_compile; echo $2` 2013{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2014 (eval $ac_compiler --version </dev/null >&5) 2>&5 2015 ac_status=$? 2016 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2017 (exit $ac_status); } 2018{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2019 (eval $ac_compiler -v </dev/null >&5) 2>&5 2020 ac_status=$? 2021 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2022 (exit $ac_status); } 2023{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2024 (eval $ac_compiler -V </dev/null >&5) 2>&5 2025 ac_status=$? 2026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2027 (exit $ac_status); } 2028 2029cat >conftest.$ac_ext <<_ACEOF 2030/* confdefs.h. */ 2031_ACEOF 2032cat confdefs.h >>conftest.$ac_ext 2033cat >>conftest.$ac_ext <<_ACEOF 2034/* end confdefs.h. */ 2035 2036int 2037main () 2038{ 2039 2040 ; 2041 return 0; 2042} 2043_ACEOF 2044ac_clean_files_save=$ac_clean_files 2045ac_clean_files="$ac_clean_files a.out a.exe b.out" 2046# Try to create an executable without -o first, disregard a.out. 2047# It will help us diagnose broken compilers, and finding out an intuition 2048# of exeext. 2049echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2050echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2051ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2052if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2053 (eval $ac_link_default) 2>&5 2054 ac_status=$? 2055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2056 (exit $ac_status); }; then 2057 # Find the output, starting from the most likely. This scheme is 2058# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2059# resort. 2060 2061# Be careful to initialize this variable, since it used to be cached. 2062# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2063ac_cv_exeext= 2064# b.out is created by i960 compilers. 2065for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2066do 2067 test -f "$ac_file" || continue 2068 case $ac_file in 2069 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2070 ;; 2071 conftest.$ac_ext ) 2072 # This is the source file. 2073 ;; 2074 [ab].out ) 2075 # We found the default executable, but exeext='' is most 2076 # certainly right. 2077 break;; 2078 *.* ) 2079 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2080 # FIXME: I believe we export ac_cv_exeext for Libtool, 2081 # but it would be cool to find out if it's true. Does anybody 2082 # maintain Libtool? --akim. 2083 export ac_cv_exeext 2084 break;; 2085 * ) 2086 break;; 2087 esac 2088done 2089else 2090 echo "$as_me: failed program was:" >&5 2091sed 's/^/| /' conftest.$ac_ext >&5 2092 2093{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2094See \`config.log' for more details." >&5 2095echo "$as_me: error: C compiler cannot create executables 2096See \`config.log' for more details." >&2;} 2097 { (exit 77); exit 77; }; } 2098fi 2099 2100ac_exeext=$ac_cv_exeext 2101echo "$as_me:$LINENO: result: $ac_file" >&5 2102echo "${ECHO_T}$ac_file" >&6 2103 2104# Check the compiler produces executables we can run. If not, either 2105# the compiler is broken, or we cross compile. 2106echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2107echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2108# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2109# If not cross compiling, check that we can run a simple program. 2110if test "$cross_compiling" != yes; then 2111 if { ac_try='./$ac_file' 2112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2113 (eval $ac_try) 2>&5 2114 ac_status=$? 2115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2116 (exit $ac_status); }; }; then 2117 cross_compiling=no 2118 else 2119 if test "$cross_compiling" = maybe; then 2120 cross_compiling=yes 2121 else 2122 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2123If you meant to cross compile, use \`--host'. 2124See \`config.log' for more details." >&5 2125echo "$as_me: error: cannot run C compiled programs. 2126If you meant to cross compile, use \`--host'. 2127See \`config.log' for more details." >&2;} 2128 { (exit 1); exit 1; }; } 2129 fi 2130 fi 2131fi 2132echo "$as_me:$LINENO: result: yes" >&5 2133echo "${ECHO_T}yes" >&6 2134 2135rm -f a.out a.exe conftest$ac_cv_exeext b.out 2136ac_clean_files=$ac_clean_files_save 2137# Check the compiler produces executables we can run. If not, either 2138# the compiler is broken, or we cross compile. 2139echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2140echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2141echo "$as_me:$LINENO: result: $cross_compiling" >&5 2142echo "${ECHO_T}$cross_compiling" >&6 2143 2144echo "$as_me:$LINENO: checking for suffix of executables" >&5 2145echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2146if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2147 (eval $ac_link) 2>&5 2148 ac_status=$? 2149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2150 (exit $ac_status); }; then 2151 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2152# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2153# work properly (i.e., refer to `conftest.exe'), while it won't with 2154# `rm'. 2155for ac_file in conftest.exe conftest conftest.*; do 2156 test -f "$ac_file" || continue 2157 case $ac_file in 2158 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2159 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2160 export ac_cv_exeext 2161 break;; 2162 * ) break;; 2163 esac 2164done 2165else 2166 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2167See \`config.log' for more details." >&5 2168echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2169See \`config.log' for more details." >&2;} 2170 { (exit 1); exit 1; }; } 2171fi 2172 2173rm -f conftest$ac_cv_exeext 2174echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2175echo "${ECHO_T}$ac_cv_exeext" >&6 2176 2177rm -f conftest.$ac_ext 2178EXEEXT=$ac_cv_exeext 2179ac_exeext=$EXEEXT 2180echo "$as_me:$LINENO: checking for suffix of object files" >&5 2181echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2182if test "${ac_cv_objext+set}" = set; then 2183 echo $ECHO_N "(cached) $ECHO_C" >&6 2184else 2185 cat >conftest.$ac_ext <<_ACEOF 2186/* confdefs.h. */ 2187_ACEOF 2188cat confdefs.h >>conftest.$ac_ext 2189cat >>conftest.$ac_ext <<_ACEOF 2190/* end confdefs.h. */ 2191 2192int 2193main () 2194{ 2195 2196 ; 2197 return 0; 2198} 2199_ACEOF 2200rm -f conftest.o conftest.obj 2201if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2202 (eval $ac_compile) 2>&5 2203 ac_status=$? 2204 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2205 (exit $ac_status); }; then 2206 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2207 case $ac_file in 2208 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2209 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2210 break;; 2211 esac 2212done 2213else 2214 echo "$as_me: failed program was:" >&5 2215sed 's/^/| /' conftest.$ac_ext >&5 2216 2217{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2218See \`config.log' for more details." >&5 2219echo "$as_me: error: cannot compute suffix of object files: cannot compile 2220See \`config.log' for more details." >&2;} 2221 { (exit 1); exit 1; }; } 2222fi 2223 2224rm -f conftest.$ac_cv_objext conftest.$ac_ext 2225fi 2226echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2227echo "${ECHO_T}$ac_cv_objext" >&6 2228OBJEXT=$ac_cv_objext 2229ac_objext=$OBJEXT 2230echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2231echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2232if test "${ac_cv_c_compiler_gnu+set}" = set; then 2233 echo $ECHO_N "(cached) $ECHO_C" >&6 2234else 2235 cat >conftest.$ac_ext <<_ACEOF 2236/* confdefs.h. */ 2237_ACEOF 2238cat confdefs.h >>conftest.$ac_ext 2239cat >>conftest.$ac_ext <<_ACEOF 2240/* end confdefs.h. */ 2241 2242int 2243main () 2244{ 2245#ifndef __GNUC__ 2246 choke me 2247#endif 2248 2249 ; 2250 return 0; 2251} 2252_ACEOF 2253rm -f conftest.$ac_objext 2254if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2255 (eval $ac_compile) 2>conftest.er1 2256 ac_status=$? 2257 grep -v '^ *+' conftest.er1 >conftest.err 2258 rm -f conftest.er1 2259 cat conftest.err >&5 2260 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2261 (exit $ac_status); } && 2262 { ac_try='test -z "$ac_c_werror_flag" 2263 || test ! -s conftest.err' 2264 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2265 (eval $ac_try) 2>&5 2266 ac_status=$? 2267 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2268 (exit $ac_status); }; } && 2269 { ac_try='test -s conftest.$ac_objext' 2270 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2271 (eval $ac_try) 2>&5 2272 ac_status=$? 2273 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2274 (exit $ac_status); }; }; then 2275 ac_compiler_gnu=yes 2276else 2277 echo "$as_me: failed program was:" >&5 2278sed 's/^/| /' conftest.$ac_ext >&5 2279 2280ac_compiler_gnu=no 2281fi 2282rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2283ac_cv_c_compiler_gnu=$ac_compiler_gnu 2284 2285fi 2286echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2287echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2288GCC=`test $ac_compiler_gnu = yes && echo yes` 2289ac_test_CFLAGS=${CFLAGS+set} 2290ac_save_CFLAGS=$CFLAGS 2291CFLAGS="-g" 2292echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2293echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2294if test "${ac_cv_prog_cc_g+set}" = set; then 2295 echo $ECHO_N "(cached) $ECHO_C" >&6 2296else 2297 cat >conftest.$ac_ext <<_ACEOF 2298/* confdefs.h. */ 2299_ACEOF 2300cat confdefs.h >>conftest.$ac_ext 2301cat >>conftest.$ac_ext <<_ACEOF 2302/* end confdefs.h. */ 2303 2304int 2305main () 2306{ 2307 2308 ; 2309 return 0; 2310} 2311_ACEOF 2312rm -f conftest.$ac_objext 2313if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2314 (eval $ac_compile) 2>conftest.er1 2315 ac_status=$? 2316 grep -v '^ *+' conftest.er1 >conftest.err 2317 rm -f conftest.er1 2318 cat conftest.err >&5 2319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2320 (exit $ac_status); } && 2321 { ac_try='test -z "$ac_c_werror_flag" 2322 || test ! -s conftest.err' 2323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2324 (eval $ac_try) 2>&5 2325 ac_status=$? 2326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2327 (exit $ac_status); }; } && 2328 { ac_try='test -s conftest.$ac_objext' 2329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2330 (eval $ac_try) 2>&5 2331 ac_status=$? 2332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2333 (exit $ac_status); }; }; then 2334 ac_cv_prog_cc_g=yes 2335else 2336 echo "$as_me: failed program was:" >&5 2337sed 's/^/| /' conftest.$ac_ext >&5 2338 2339ac_cv_prog_cc_g=no 2340fi 2341rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2342fi 2343echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2344echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2345if test "$ac_test_CFLAGS" = set; then 2346 CFLAGS=$ac_save_CFLAGS 2347elif test $ac_cv_prog_cc_g = yes; then 2348 if test "$GCC" = yes; then 2349 CFLAGS="-g -O2" 2350 else 2351 CFLAGS="-g" 2352 fi 2353else 2354 if test "$GCC" = yes; then 2355 CFLAGS="-O2" 2356 else 2357 CFLAGS= 2358 fi 2359fi 2360echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2361echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2362if test "${ac_cv_prog_cc_stdc+set}" = set; then 2363 echo $ECHO_N "(cached) $ECHO_C" >&6 2364else 2365 ac_cv_prog_cc_stdc=no 2366ac_save_CC=$CC 2367cat >conftest.$ac_ext <<_ACEOF 2368/* confdefs.h. */ 2369_ACEOF 2370cat confdefs.h >>conftest.$ac_ext 2371cat >>conftest.$ac_ext <<_ACEOF 2372/* end confdefs.h. */ 2373#include <stdarg.h> 2374#include <stdio.h> 2375#include <sys/types.h> 2376#include <sys/stat.h> 2377/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2378struct buf { int x; }; 2379FILE * (*rcsopen) (struct buf *, struct stat *, int); 2380static char *e (p, i) 2381 char **p; 2382 int i; 2383{ 2384 return p[i]; 2385} 2386static char *f (char * (*g) (char **, int), char **p, ...) 2387{ 2388 char *s; 2389 va_list v; 2390 va_start (v,p); 2391 s = g (p, va_arg (v,int)); 2392 va_end (v); 2393 return s; 2394} 2395 2396/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2397 function prototypes and stuff, but not '\xHH' hex character constants. 2398 These don't provoke an error unfortunately, instead are silently treated 2399 as 'x'. The following induces an error, until -std1 is added to get 2400 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2401 array size at least. It's necessary to write '\x00'==0 to get something 2402 that's true only with -std1. */ 2403int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2404 2405int test (int i, double x); 2406struct s1 {int (*f) (int a);}; 2407struct s2 {int (*f) (double a);}; 2408int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2409int argc; 2410char **argv; 2411int 2412main () 2413{ 2414return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2415 ; 2416 return 0; 2417} 2418_ACEOF 2419# Don't try gcc -ansi; that turns off useful extensions and 2420# breaks some systems' header files. 2421# AIX -qlanglvl=ansi 2422# Ultrix and OSF/1 -std1 2423# HP-UX 10.20 and later -Ae 2424# HP-UX older versions -Aa -D_HPUX_SOURCE 2425# SVR4 -Xc -D__EXTENSIONS__ 2426for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2427do 2428 CC="$ac_save_CC $ac_arg" 2429 rm -f conftest.$ac_objext 2430if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2431 (eval $ac_compile) 2>conftest.er1 2432 ac_status=$? 2433 grep -v '^ *+' conftest.er1 >conftest.err 2434 rm -f conftest.er1 2435 cat conftest.err >&5 2436 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2437 (exit $ac_status); } && 2438 { ac_try='test -z "$ac_c_werror_flag" 2439 || test ! -s conftest.err' 2440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2441 (eval $ac_try) 2>&5 2442 ac_status=$? 2443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2444 (exit $ac_status); }; } && 2445 { ac_try='test -s conftest.$ac_objext' 2446 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2447 (eval $ac_try) 2>&5 2448 ac_status=$? 2449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2450 (exit $ac_status); }; }; then 2451 ac_cv_prog_cc_stdc=$ac_arg 2452break 2453else 2454 echo "$as_me: failed program was:" >&5 2455sed 's/^/| /' conftest.$ac_ext >&5 2456 2457fi 2458rm -f conftest.err conftest.$ac_objext 2459done 2460rm -f conftest.$ac_ext conftest.$ac_objext 2461CC=$ac_save_CC 2462 2463fi 2464 2465case "x$ac_cv_prog_cc_stdc" in 2466 x|xno) 2467 echo "$as_me:$LINENO: result: none needed" >&5 2468echo "${ECHO_T}none needed" >&6 ;; 2469 *) 2470 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2471echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2472 CC="$CC $ac_cv_prog_cc_stdc" ;; 2473esac 2474 2475# Some people use a C++ compiler to compile C. Since we use `exit', 2476# in C++ we need to declare it. In case someone uses the same compiler 2477# for both compiling C and C++ we need to have the C++ compiler decide 2478# the declaration of exit, since it's the most demanding environment. 2479cat >conftest.$ac_ext <<_ACEOF 2480@%:@ifndef __cplusplus 2481 choke me 2482@%:@endif 2483_ACEOF 2484rm -f conftest.$ac_objext 2485if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2486 (eval $ac_compile) 2>conftest.er1 2487 ac_status=$? 2488 grep -v '^ *+' conftest.er1 >conftest.err 2489 rm -f conftest.er1 2490 cat conftest.err >&5 2491 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2492 (exit $ac_status); } && 2493 { ac_try='test -z "$ac_c_werror_flag" 2494 || test ! -s conftest.err' 2495 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2496 (eval $ac_try) 2>&5 2497 ac_status=$? 2498 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2499 (exit $ac_status); }; } && 2500 { ac_try='test -s conftest.$ac_objext' 2501 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2502 (eval $ac_try) 2>&5 2503 ac_status=$? 2504 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2505 (exit $ac_status); }; }; then 2506 for ac_declaration in \ 2507 '' \ 2508 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2509 'extern "C" void std::exit (int); using std::exit;' \ 2510 'extern "C" void exit (int) throw ();' \ 2511 'extern "C" void exit (int);' \ 2512 'void exit (int);' 2513do 2514 cat >conftest.$ac_ext <<_ACEOF 2515/* confdefs.h. */ 2516_ACEOF 2517cat confdefs.h >>conftest.$ac_ext 2518cat >>conftest.$ac_ext <<_ACEOF 2519/* end confdefs.h. */ 2520$ac_declaration 2521@%:@include <stdlib.h> 2522int 2523main () 2524{ 2525exit (42); 2526 ; 2527 return 0; 2528} 2529_ACEOF 2530rm -f conftest.$ac_objext 2531if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2532 (eval $ac_compile) 2>conftest.er1 2533 ac_status=$? 2534 grep -v '^ *+' conftest.er1 >conftest.err 2535 rm -f conftest.er1 2536 cat conftest.err >&5 2537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2538 (exit $ac_status); } && 2539 { ac_try='test -z "$ac_c_werror_flag" 2540 || test ! -s conftest.err' 2541 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2542 (eval $ac_try) 2>&5 2543 ac_status=$? 2544 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2545 (exit $ac_status); }; } && 2546 { ac_try='test -s conftest.$ac_objext' 2547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2548 (eval $ac_try) 2>&5 2549 ac_status=$? 2550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2551 (exit $ac_status); }; }; then 2552 : 2553else 2554 echo "$as_me: failed program was:" >&5 2555sed 's/^/| /' conftest.$ac_ext >&5 2556 2557continue 2558fi 2559rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2560 cat >conftest.$ac_ext <<_ACEOF 2561/* confdefs.h. */ 2562_ACEOF 2563cat confdefs.h >>conftest.$ac_ext 2564cat >>conftest.$ac_ext <<_ACEOF 2565/* end confdefs.h. */ 2566$ac_declaration 2567int 2568main () 2569{ 2570exit (42); 2571 ; 2572 return 0; 2573} 2574_ACEOF 2575rm -f conftest.$ac_objext 2576if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2577 (eval $ac_compile) 2>conftest.er1 2578 ac_status=$? 2579 grep -v '^ *+' conftest.er1 >conftest.err 2580 rm -f conftest.er1 2581 cat conftest.err >&5 2582 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2583 (exit $ac_status); } && 2584 { ac_try='test -z "$ac_c_werror_flag" 2585 || test ! -s conftest.err' 2586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2587 (eval $ac_try) 2>&5 2588 ac_status=$? 2589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2590 (exit $ac_status); }; } && 2591 { ac_try='test -s conftest.$ac_objext' 2592 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2593 (eval $ac_try) 2>&5 2594 ac_status=$? 2595 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2596 (exit $ac_status); }; }; then 2597 break 2598else 2599 echo "$as_me: failed program was:" >&5 2600sed 's/^/| /' conftest.$ac_ext >&5 2601 2602fi 2603rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2604done 2605rm -f conftest* 2606if test -n "$ac_declaration"; then 2607 echo '#ifdef __cplusplus' >>confdefs.h 2608 echo $ac_declaration >>confdefs.h 2609 echo '#endif' >>confdefs.h 2610fi 2611 2612else 2613 echo "$as_me: failed program was:" >&5 2614sed 's/^/| /' conftest.$ac_ext >&5 2615 2616fi 2617rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2618ac_ext=c 2619ac_cpp='$CPP $CPPFLAGS' 2620ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2621ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2622ac_compiler_gnu=$ac_cv_c_compiler_gnu 2623 2624ac_ext=cc 2625ac_cpp='$CXXCPP $CPPFLAGS' 2626ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2627ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2628ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 2629if test -n "$ac_tool_prefix"; then 2630 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2631 do 2632 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2633set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2634echo "$as_me:$LINENO: checking for $ac_word" >&5 2635echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2636if test "${ac_cv_prog_CXX+set}" = set; then 2637 echo $ECHO_N "(cached) $ECHO_C" >&6 2638else 2639 if test -n "$CXX"; then 2640 ac_cv_prog_CXX="$CXX" # Let the user override the test. 2641else 2642as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2643for as_dir in $PATH 2644do 2645 IFS=$as_save_IFS 2646 test -z "$as_dir" && as_dir=. 2647 for ac_exec_ext in '' $ac_executable_extensions; do 2648 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2649 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 2650 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2651 break 2 2652 fi 2653done 2654done 2655 2656fi 2657fi 2658CXX=$ac_cv_prog_CXX 2659if test -n "$CXX"; then 2660 echo "$as_me:$LINENO: result: $CXX" >&5 2661echo "${ECHO_T}$CXX" >&6 2662else 2663 echo "$as_me:$LINENO: result: no" >&5 2664echo "${ECHO_T}no" >&6 2665fi 2666 2667 test -n "$CXX" && break 2668 done 2669fi 2670if test -z "$CXX"; then 2671 ac_ct_CXX=$CXX 2672 for ac_prog in $CCC g++ c++ gpp aCC CC cxx cc++ cl FCC KCC RCC xlC_r xlC 2673do 2674 # Extract the first word of "$ac_prog", so it can be a program name with args. 2675set dummy $ac_prog; ac_word=$2 2676echo "$as_me:$LINENO: checking for $ac_word" >&5 2677echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2678if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then 2679 echo $ECHO_N "(cached) $ECHO_C" >&6 2680else 2681 if test -n "$ac_ct_CXX"; then 2682 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 2683else 2684as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2685for as_dir in $PATH 2686do 2687 IFS=$as_save_IFS 2688 test -z "$as_dir" && as_dir=. 2689 for ac_exec_ext in '' $ac_executable_extensions; do 2690 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2691 ac_cv_prog_ac_ct_CXX="$ac_prog" 2692 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2693 break 2 2694 fi 2695done 2696done 2697 2698fi 2699fi 2700ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 2701if test -n "$ac_ct_CXX"; then 2702 echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5 2703echo "${ECHO_T}$ac_ct_CXX" >&6 2704else 2705 echo "$as_me:$LINENO: result: no" >&5 2706echo "${ECHO_T}no" >&6 2707fi 2708 2709 test -n "$ac_ct_CXX" && break 2710done 2711test -n "$ac_ct_CXX" || ac_ct_CXX="g++" 2712 2713 CXX=$ac_ct_CXX 2714fi 2715 2716 2717# Provide some information about the compiler. 2718echo "$as_me:$LINENO:" \ 2719 "checking for C++ compiler version" >&5 2720ac_compiler=`set X $ac_compile; echo $2` 2721{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2722 (eval $ac_compiler --version </dev/null >&5) 2>&5 2723 ac_status=$? 2724 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2725 (exit $ac_status); } 2726{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2727 (eval $ac_compiler -v </dev/null >&5) 2>&5 2728 ac_status=$? 2729 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2730 (exit $ac_status); } 2731{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2732 (eval $ac_compiler -V </dev/null >&5) 2>&5 2733 ac_status=$? 2734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2735 (exit $ac_status); } 2736 2737echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5 2738echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6 2739if test "${ac_cv_cxx_compiler_gnu+set}" = set; then 2740 echo $ECHO_N "(cached) $ECHO_C" >&6 2741else 2742 cat >conftest.$ac_ext <<_ACEOF 2743/* confdefs.h. */ 2744_ACEOF 2745cat confdefs.h >>conftest.$ac_ext 2746cat >>conftest.$ac_ext <<_ACEOF 2747/* end confdefs.h. */ 2748 2749int 2750main () 2751{ 2752#ifndef __GNUC__ 2753 choke me 2754#endif 2755 2756 ; 2757 return 0; 2758} 2759_ACEOF 2760rm -f conftest.$ac_objext 2761if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2762 (eval $ac_compile) 2>conftest.er1 2763 ac_status=$? 2764 grep -v '^ *+' conftest.er1 >conftest.err 2765 rm -f conftest.er1 2766 cat conftest.err >&5 2767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2768 (exit $ac_status); } && 2769 { ac_try='test -z "$ac_cxx_werror_flag" 2770 || test ! -s conftest.err' 2771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2772 (eval $ac_try) 2>&5 2773 ac_status=$? 2774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2775 (exit $ac_status); }; } && 2776 { ac_try='test -s conftest.$ac_objext' 2777 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2778 (eval $ac_try) 2>&5 2779 ac_status=$? 2780 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2781 (exit $ac_status); }; }; then 2782 ac_compiler_gnu=yes 2783else 2784 echo "$as_me: failed program was:" >&5 2785sed 's/^/| /' conftest.$ac_ext >&5 2786 2787ac_compiler_gnu=no 2788fi 2789rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2790ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 2791 2792fi 2793echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5 2794echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6 2795GXX=`test $ac_compiler_gnu = yes && echo yes` 2796ac_test_CXXFLAGS=${CXXFLAGS+set} 2797ac_save_CXXFLAGS=$CXXFLAGS 2798CXXFLAGS="-g" 2799echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5 2800echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6 2801if test "${ac_cv_prog_cxx_g+set}" = set; then 2802 echo $ECHO_N "(cached) $ECHO_C" >&6 2803else 2804 cat >conftest.$ac_ext <<_ACEOF 2805/* confdefs.h. */ 2806_ACEOF 2807cat confdefs.h >>conftest.$ac_ext 2808cat >>conftest.$ac_ext <<_ACEOF 2809/* end confdefs.h. */ 2810 2811int 2812main () 2813{ 2814 2815 ; 2816 return 0; 2817} 2818_ACEOF 2819rm -f conftest.$ac_objext 2820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2821 (eval $ac_compile) 2>conftest.er1 2822 ac_status=$? 2823 grep -v '^ *+' conftest.er1 >conftest.err 2824 rm -f conftest.er1 2825 cat conftest.err >&5 2826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2827 (exit $ac_status); } && 2828 { ac_try='test -z "$ac_cxx_werror_flag" 2829 || test ! -s conftest.err' 2830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2831 (eval $ac_try) 2>&5 2832 ac_status=$? 2833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2834 (exit $ac_status); }; } && 2835 { ac_try='test -s conftest.$ac_objext' 2836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2837 (eval $ac_try) 2>&5 2838 ac_status=$? 2839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2840 (exit $ac_status); }; }; then 2841 ac_cv_prog_cxx_g=yes 2842else 2843 echo "$as_me: failed program was:" >&5 2844sed 's/^/| /' conftest.$ac_ext >&5 2845 2846ac_cv_prog_cxx_g=no 2847fi 2848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2849fi 2850echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5 2851echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6 2852if test "$ac_test_CXXFLAGS" = set; then 2853 CXXFLAGS=$ac_save_CXXFLAGS 2854elif test $ac_cv_prog_cxx_g = yes; then 2855 if test "$GXX" = yes; then 2856 CXXFLAGS="-g -O2" 2857 else 2858 CXXFLAGS="-g" 2859 fi 2860else 2861 if test "$GXX" = yes; then 2862 CXXFLAGS="-O2" 2863 else 2864 CXXFLAGS= 2865 fi 2866fi 2867for ac_declaration in \ 2868 '' \ 2869 'extern "C" void std::exit (int) throw (); using std::exit;' \ 2870 'extern "C" void std::exit (int); using std::exit;' \ 2871 'extern "C" void exit (int) throw ();' \ 2872 'extern "C" void exit (int);' \ 2873 'void exit (int);' 2874do 2875 cat >conftest.$ac_ext <<_ACEOF 2876/* confdefs.h. */ 2877_ACEOF 2878cat confdefs.h >>conftest.$ac_ext 2879cat >>conftest.$ac_ext <<_ACEOF 2880/* end confdefs.h. */ 2881$ac_declaration 2882@%:@include <stdlib.h> 2883int 2884main () 2885{ 2886exit (42); 2887 ; 2888 return 0; 2889} 2890_ACEOF 2891rm -f conftest.$ac_objext 2892if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2893 (eval $ac_compile) 2>conftest.er1 2894 ac_status=$? 2895 grep -v '^ *+' conftest.er1 >conftest.err 2896 rm -f conftest.er1 2897 cat conftest.err >&5 2898 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2899 (exit $ac_status); } && 2900 { ac_try='test -z "$ac_cxx_werror_flag" 2901 || test ! -s conftest.err' 2902 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2903 (eval $ac_try) 2>&5 2904 ac_status=$? 2905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2906 (exit $ac_status); }; } && 2907 { ac_try='test -s conftest.$ac_objext' 2908 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2909 (eval $ac_try) 2>&5 2910 ac_status=$? 2911 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2912 (exit $ac_status); }; }; then 2913 : 2914else 2915 echo "$as_me: failed program was:" >&5 2916sed 's/^/| /' conftest.$ac_ext >&5 2917 2918continue 2919fi 2920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2921 cat >conftest.$ac_ext <<_ACEOF 2922/* confdefs.h. */ 2923_ACEOF 2924cat confdefs.h >>conftest.$ac_ext 2925cat >>conftest.$ac_ext <<_ACEOF 2926/* end confdefs.h. */ 2927$ac_declaration 2928int 2929main () 2930{ 2931exit (42); 2932 ; 2933 return 0; 2934} 2935_ACEOF 2936rm -f conftest.$ac_objext 2937if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2938 (eval $ac_compile) 2>conftest.er1 2939 ac_status=$? 2940 grep -v '^ *+' conftest.er1 >conftest.err 2941 rm -f conftest.er1 2942 cat conftest.err >&5 2943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2944 (exit $ac_status); } && 2945 { ac_try='test -z "$ac_cxx_werror_flag" 2946 || test ! -s conftest.err' 2947 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2948 (eval $ac_try) 2>&5 2949 ac_status=$? 2950 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2951 (exit $ac_status); }; } && 2952 { ac_try='test -s conftest.$ac_objext' 2953 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2954 (eval $ac_try) 2>&5 2955 ac_status=$? 2956 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2957 (exit $ac_status); }; }; then 2958 break 2959else 2960 echo "$as_me: failed program was:" >&5 2961sed 's/^/| /' conftest.$ac_ext >&5 2962 2963fi 2964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2965done 2966rm -f conftest* 2967if test -n "$ac_declaration"; then 2968 echo '#ifdef __cplusplus' >>confdefs.h 2969 echo $ac_declaration >>confdefs.h 2970 echo '#endif' >>confdefs.h 2971fi 2972 2973ac_ext=c 2974ac_cpp='$CPP $CPPFLAGS' 2975ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2976ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2977ac_compiler_gnu=$ac_cv_c_compiler_gnu 2978 2979echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 2980echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 2981if test "${lt_cv_path_SED+set}" = set; then 2982 echo $ECHO_N "(cached) $ECHO_C" >&6 2983else 2984 # Loop through the user's path and test for sed and gsed. 2985# Then use that list of sed's as ones to test for truncation. 2986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2987for as_dir in $PATH 2988do 2989 IFS=$as_save_IFS 2990 test -z "$as_dir" && as_dir=. 2991 for lt_ac_prog in sed gsed; do 2992 for ac_exec_ext in '' $ac_executable_extensions; do 2993 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 2994 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 2995 fi 2996 done 2997 done 2998done 2999lt_ac_max=0 3000lt_ac_count=0 3001# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3002# along with /bin/sed that truncates output. 3003for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3004 test ! -f $lt_ac_sed && break 3005 cat /dev/null > conftest.in 3006 lt_ac_count=0 3007 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3008 # Check for GNU sed and select it if it is found. 3009 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3010 lt_cv_path_SED=$lt_ac_sed 3011 break 3012 fi 3013 while true; do 3014 cat conftest.in conftest.in >conftest.tmp 3015 mv conftest.tmp conftest.in 3016 cp conftest.in conftest.nl 3017 echo >>conftest.nl 3018 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3019 cmp -s conftest.out conftest.nl || break 3020 # 10000 chars as input seems more than enough 3021 test $lt_ac_count -gt 10 && break 3022 lt_ac_count=`expr $lt_ac_count + 1` 3023 if test $lt_ac_count -gt $lt_ac_max; then 3024 lt_ac_max=$lt_ac_count 3025 lt_cv_path_SED=$lt_ac_sed 3026 fi 3027 done 3028done 3029SED=$lt_cv_path_SED 3030 3031fi 3032 3033echo "$as_me:$LINENO: result: $SED" >&5 3034echo "${ECHO_T}$SED" >&6 3035 3036echo "$as_me:$LINENO: checking for egrep" >&5 3037echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3038if test "${ac_cv_prog_egrep+set}" = set; then 3039 echo $ECHO_N "(cached) $ECHO_C" >&6 3040else 3041 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3042 then ac_cv_prog_egrep='grep -E' 3043 else ac_cv_prog_egrep='egrep' 3044 fi 3045fi 3046echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3047echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3048 EGREP=$ac_cv_prog_egrep 3049 3050 3051 3052# Check whether --with-gnu-ld or --without-gnu-ld was given. 3053if test "${with_gnu_ld+set}" = set; then 3054 withval="$with_gnu_ld" 3055 test "$withval" = no || with_gnu_ld=yes 3056else 3057 with_gnu_ld=no 3058fi; 3059ac_prog=ld 3060if test "$GCC" = yes; then 3061 # Check if gcc -print-prog-name=ld gives a path. 3062 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3063echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3064 case $host in 3065 *-*-mingw*) 3066 # gcc leaves a trailing carriage return which upsets mingw 3067 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3068 *) 3069 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3070 esac 3071 case $ac_prog in 3072 # Accept absolute paths. 3073 [\\/]* | ?:[\\/]*) 3074 re_direlt='/[^/][^/]*/\.\./' 3075 # Canonicalize the pathname of ld 3076 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 3077 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 3078 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 3079 done 3080 test -z "$LD" && LD="$ac_prog" 3081 ;; 3082 "") 3083 # If it fails, then pretend we aren't using GCC. 3084 ac_prog=ld 3085 ;; 3086 *) 3087 # If it is relative, then search for the first ld in PATH. 3088 with_gnu_ld=unknown 3089 ;; 3090 esac 3091elif test "$with_gnu_ld" = yes; then 3092 echo "$as_me:$LINENO: checking for GNU ld" >&5 3093echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3094else 3095 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3096echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3097fi 3098if test "${lt_cv_path_LD+set}" = set; then 3099 echo $ECHO_N "(cached) $ECHO_C" >&6 3100else 3101 if test -z "$LD"; then 3102 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3103 for ac_dir in $PATH; do 3104 IFS="$lt_save_ifs" 3105 test -z "$ac_dir" && ac_dir=. 3106 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3107 lt_cv_path_LD="$ac_dir/$ac_prog" 3108 # Check to see if the program is GNU ld. I'd rather use --version, 3109 # but apparently some GNU ld's only accept -v. 3110 # Break only if it was the GNU/non-GNU ld that we prefer. 3111 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3112 *GNU* | *'with BFD'*) 3113 test "$with_gnu_ld" != no && break 3114 ;; 3115 *) 3116 test "$with_gnu_ld" != yes && break 3117 ;; 3118 esac 3119 fi 3120 done 3121 IFS="$lt_save_ifs" 3122else 3123 lt_cv_path_LD="$LD" # Let the user override the test with a path. 3124fi 3125fi 3126 3127LD="$lt_cv_path_LD" 3128if test -n "$LD"; then 3129 echo "$as_me:$LINENO: result: $LD" >&5 3130echo "${ECHO_T}$LD" >&6 3131else 3132 echo "$as_me:$LINENO: result: no" >&5 3133echo "${ECHO_T}no" >&6 3134fi 3135test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 3136echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 3137 { (exit 1); exit 1; }; } 3138echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 3139echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 3140if test "${lt_cv_prog_gnu_ld+set}" = set; then 3141 echo $ECHO_N "(cached) $ECHO_C" >&6 3142else 3143 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 3144case `$LD -v 2>&1 </dev/null` in 3145*GNU* | *'with BFD'*) 3146 lt_cv_prog_gnu_ld=yes 3147 ;; 3148*) 3149 lt_cv_prog_gnu_ld=no 3150 ;; 3151esac 3152fi 3153echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 3154echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 3155with_gnu_ld=$lt_cv_prog_gnu_ld 3156 3157 3158 3159 test -n "$INSTALL" && vigra_save_INSTALL_given=$INSTALL 3160 # Find a good install program. We prefer a C program (faster), 3161# so one script is as good as another. But avoid the broken or 3162# incompatible versions: 3163# SysV /etc/install, /usr/sbin/install 3164# SunOS /usr/etc/install 3165# IRIX /sbin/install 3166# AIX /bin/install 3167# AmigaOS /C/install, which installs bootblocks on floppy discs 3168# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3169# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3170# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3171# OS/2's system install, which has a completely different semantic 3172# ./install, which can be erroneously created by make from ./install.sh. 3173echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3174echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3175if test -z "$INSTALL"; then 3176if test "${ac_cv_path_install+set}" = set; then 3177 echo $ECHO_N "(cached) $ECHO_C" >&6 3178else 3179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 # Account for people who put trailing slashes in PATH elements. 3185case $as_dir/ in 3186 ./ | .// | /cC/* | \ 3187 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3188 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3189 /usr/ucb/* ) ;; 3190 *) 3191 # OSF1 and SCO ODT 3.0 have their own names for install. 3192 # Don't use installbsd from OSF since it installs stuff as root 3193 # by default. 3194 for ac_prog in ginstall scoinst install; do 3195 for ac_exec_ext in '' $ac_executable_extensions; do 3196 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3197 if test $ac_prog = install && 3198 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3199 # AIX install. It has an incompatible calling convention. 3200 : 3201 elif test $ac_prog = install && 3202 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3203 # program-specific install script used by HP pwplus--don't use. 3204 : 3205 else 3206 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3207 break 3 3208 fi 3209 fi 3210 done 3211 done 3212 ;; 3213esac 3214done 3215 3216 3217fi 3218 if test "${ac_cv_path_install+set}" = set; then 3219 INSTALL=$ac_cv_path_install 3220 else 3221 # As a last resort, use the slow shell script. We don't cache a 3222 # path for INSTALL within a source directory, because that will 3223 # break other packages using the cache if that directory is 3224 # removed, or if the path is relative. 3225 INSTALL=$ac_install_sh 3226 fi 3227fi 3228echo "$as_me:$LINENO: result: $INSTALL" >&5 3229echo "${ECHO_T}$INSTALL" >&6 3230 3231# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3232# It thinks the first close brace ends the variable substitution. 3233test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3234 3235test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3236 3237test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3238 3239 3240 if test -z "$vigra_save_INSTALL_given" ; then 3241 # user hasn't overwritten INSTALL, autoconf found one for us 3242 # now we'll test if it supports the -p flag 3243 echo "$as_me:$LINENO: checking for -p flag to install" >&5 3244echo $ECHO_N "checking for -p flag to install... $ECHO_C" >&6 3245 rm -f confinst.$$.* > /dev/null 2>&1 3246 echo "Testtest" > confinst.$$.orig 3247 ac_res=no 3248 if ${INSTALL} -p confinst.$$.orig confinst.$$.new > /dev/null 2>&1 ; then 3249 if test -f confinst.$$.new ; then 3250 # OK, -p seems to do no harm to install 3251 INSTALL="${INSTALL} -p" 3252 ac_res=yes 3253 fi 3254 fi 3255 rm -f confinst.$$.* 3256 echo "$as_me:$LINENO: result: $ac_res" >&5 3257echo "${ECHO_T}$ac_res" >&6 3258 fi 3259 3260 3261 3262# Check whether --enable-shared or --disable-shared was given. 3263if test "${enable_shared+set}" = set; then 3264 enableval="$enable_shared" 3265 p=${PACKAGE-default} 3266 case $enableval in 3267 yes) enable_shared=yes ;; 3268 no) enable_shared=no ;; 3269 *) 3270 enable_shared=no 3271 # Look at the argument we got. We use all the common list separators. 3272 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3273 for pkg in $enableval; do 3274 IFS="$lt_save_ifs" 3275 if test "X$pkg" = "X$p"; then 3276 enable_shared=yes 3277 fi 3278 done 3279 IFS="$lt_save_ifs" 3280 ;; 3281 esac 3282else 3283 enable_shared=yes 3284fi; 3285 3286# Check whether --enable-static or --disable-static was given. 3287if test "${enable_static+set}" = set; then 3288 enableval="$enable_static" 3289 p=${PACKAGE-default} 3290 case $enableval in 3291 yes) enable_static=yes ;; 3292 no) enable_static=no ;; 3293 *) 3294 enable_static=no 3295 # Look at the argument we got. We use all the common list separators. 3296 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3297 for pkg in $enableval; do 3298 IFS="$lt_save_ifs" 3299 if test "X$pkg" = "X$p"; then 3300 enable_static=yes 3301 fi 3302 done 3303 IFS="$lt_save_ifs" 3304 ;; 3305 esac 3306else 3307 enable_static=yes 3308fi; 3309 3310# Check whether --enable-fast-install or --disable-fast-install was given. 3311if test "${enable_fast_install+set}" = set; then 3312 enableval="$enable_fast_install" 3313 p=${PACKAGE-default} 3314 case $enableval in 3315 yes) enable_fast_install=yes ;; 3316 no) enable_fast_install=no ;; 3317 *) 3318 enable_fast_install=no 3319 # Look at the argument we got. We use all the common list separators. 3320 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3321 for pkg in $enableval; do 3322 IFS="$lt_save_ifs" 3323 if test "X$pkg" = "X$p"; then 3324 enable_fast_install=yes 3325 fi 3326 done 3327 IFS="$lt_save_ifs" 3328 ;; 3329 esac 3330else 3331 enable_fast_install=yes 3332fi; 3333 3334echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 3335echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 3336if test "${lt_cv_ld_reload_flag+set}" = set; then 3337 echo $ECHO_N "(cached) $ECHO_C" >&6 3338else 3339 lt_cv_ld_reload_flag='-r' 3340fi 3341echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 3342echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 3343reload_flag=$lt_cv_ld_reload_flag 3344case $reload_flag in 3345"" | " "*) ;; 3346*) reload_flag=" $reload_flag" ;; 3347esac 3348reload_cmds='$LD$reload_flag -o $output$reload_objs' 3349 3350echo "$as_me:$LINENO: checking for BSD-compatible nm" >&5 3351echo $ECHO_N "checking for BSD-compatible nm... $ECHO_C" >&6 3352if test "${lt_cv_path_NM+set}" = set; then 3353 echo $ECHO_N "(cached) $ECHO_C" >&6 3354else 3355 if test -n "$NM"; then 3356 # Let the user override the test. 3357 lt_cv_path_NM="$NM" 3358else 3359 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3360 for ac_dir in $PATH /usr/ccs/bin /usr/ucb /bin; do 3361 IFS="$lt_save_ifs" 3362 test -z "$ac_dir" && ac_dir=. 3363 tmp_nm="$ac_dir/${ac_tool_prefix}nm" 3364 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 3365 # Check to see if the nm accepts a BSD-compat flag. 3366 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 3367 # nm: unknown option "B" ignored 3368 # Tru64's nm complains that /dev/null is an invalid object file 3369 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 3370 */dev/null* | *'Invalid file or object type'*) 3371 lt_cv_path_NM="$tmp_nm -B" 3372 break 3373 ;; 3374 *) 3375 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3376 */dev/null*) 3377 lt_cv_path_NM="$tmp_nm -p" 3378 break 3379 ;; 3380 *) 3381 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3382 continue # so that we can try to find one that supports BSD flags 3383 ;; 3384 esac 3385 esac 3386 fi 3387 done 3388 IFS="$lt_save_ifs" 3389 test -z "$lt_cv_path_NM" && lt_cv_path_NM=nm 3390fi 3391fi 3392echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 3393echo "${ECHO_T}$lt_cv_path_NM" >&6 3394NM="$lt_cv_path_NM" 3395 3396echo "$as_me:$LINENO: checking whether ln -s works" >&5 3397echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 3398LN_S=$as_ln_s 3399if test "$LN_S" = "ln -s"; then 3400 echo "$as_me:$LINENO: result: yes" >&5 3401echo "${ECHO_T}yes" >&6 3402else 3403 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 3404echo "${ECHO_T}no, using $LN_S" >&6 3405fi 3406 3407echo "$as_me:$LINENO: checking how to recognise dependent libraries" >&5 3408echo $ECHO_N "checking how to recognise dependent libraries... $ECHO_C" >&6 3409if test "${lt_cv_deplibs_check_method+set}" = set; then 3410 echo $ECHO_N "(cached) $ECHO_C" >&6 3411else 3412 lt_cv_file_magic_cmd='$MAGIC_CMD' 3413lt_cv_file_magic_test_file= 3414lt_cv_deplibs_check_method='unknown' 3415# Need to set the preceding variable on all platforms that support 3416# interlibrary dependencies. 3417# 'none' -- dependencies not supported. 3418# `unknown' -- same as none, but documents that we really don't know. 3419# 'pass_all' -- all dependencies passed with no checks. 3420# 'test_compile' -- check by making test program. 3421# 'file_magic [[regex]]' -- check by looking for files in library path 3422# which responds to the $file_magic_cmd with a given extended regex. 3423# If you have `file' or equivalent on your system and you're not sure 3424# whether `pass_all' will *always* work, you probably want this one. 3425 3426case $host_os in 3427aix4* | aix5*) 3428 lt_cv_deplibs_check_method=pass_all 3429 ;; 3430 3431beos*) 3432 lt_cv_deplibs_check_method=pass_all 3433 ;; 3434 3435bsdi4*) 3436 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 3437 lt_cv_file_magic_cmd='/usr/bin/file -L' 3438 lt_cv_file_magic_test_file=/shlib/libc.so 3439 ;; 3440 3441cygwin*) 3442 # func_win32_libid is a shell function defined in ltmain.sh 3443 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 3444 lt_cv_file_magic_cmd='func_win32_libid' 3445 ;; 3446 3447mingw* | pw32*) 3448 # Base MSYS/MinGW do not provide the 'file' command needed by 3449 # func_win32_libid shell function, so use a weaker test based on 'objdump'. 3450 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 3451 lt_cv_file_magic_cmd='$OBJDUMP -f' 3452 ;; 3453 3454darwin* | rhapsody*) 3455 lt_cv_deplibs_check_method=pass_all 3456 ;; 3457 3458freebsd* | kfreebsd*-gnu) 3459 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3460 case $host_cpu in 3461 i*86 ) 3462 # Not sure whether the presence of OpenBSD here was a mistake. 3463 # Let's accept both of them until this is cleared up. 3464 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD)/i[3-9]86 (compact )?demand paged shared library' 3465 lt_cv_file_magic_cmd=/usr/bin/file 3466 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3467 ;; 3468 esac 3469 else 3470 lt_cv_deplibs_check_method=pass_all 3471 fi 3472 ;; 3473 3474gnu*) 3475 lt_cv_deplibs_check_method=pass_all 3476 ;; 3477 3478hpux10.20* | hpux11*) 3479 lt_cv_file_magic_cmd=/usr/bin/file 3480 case "$host_cpu" in 3481 ia64*) 3482 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 3483 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 3484 ;; 3485 hppa*64*) 3486 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - PA-RISC [0-9].[0-9]' 3487 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 3488 ;; 3489 *) 3490 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 3491 lt_cv_file_magic_test_file=/usr/lib/libc.sl 3492 ;; 3493 esac 3494 ;; 3495 3496irix5* | irix6* | nonstopux*) 3497 case $LD in 3498 *-32|*"-32 ") libmagic=32-bit;; 3499 *-n32|*"-n32 ") libmagic=N32;; 3500 *-64|*"-64 ") libmagic=64-bit;; 3501 *) libmagic=never-match;; 3502 esac 3503 lt_cv_deplibs_check_method=pass_all 3504 ;; 3505 3506# This must be Linux ELF. 3507linux*) 3508 case $host_cpu in 3509 alpha*|hppa*|i*86|ia64*|m68*|mips*|powerpc*|sparc*|s390*|sh*) 3510 lt_cv_deplibs_check_method=pass_all ;; 3511 *) 3512 # glibc up to 2.1.1 does not perform some relocations on ARM 3513 # this will be overridden with pass_all, but let us keep it just in case 3514 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' ;; 3515 esac 3516 lt_cv_file_magic_test_file=`echo /lib/libc.so* /lib/libc-*.so` 3517 lt_cv_deplibs_check_method=pass_all 3518 ;; 3519 3520netbsd*) 3521 if echo __ELF__ | $CC -E - | grep __ELF__ > /dev/null; then 3522 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 3523 else 3524 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 3525 fi 3526 ;; 3527 3528newos6*) 3529 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 3530 lt_cv_file_magic_cmd=/usr/bin/file 3531 lt_cv_file_magic_test_file=/usr/lib/libnls.so 3532 ;; 3533 3534nto-qnx*) 3535 lt_cv_deplibs_check_method=unknown 3536 ;; 3537 3538openbsd*) 3539 lt_cv_file_magic_cmd=/usr/bin/file 3540 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 3541 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 3542 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB shared object' 3543 else 3544 lt_cv_deplibs_check_method='file_magic OpenBSD.* shared library' 3545 fi 3546 ;; 3547 3548osf3* | osf4* | osf5*) 3549 lt_cv_deplibs_check_method=pass_all 3550 ;; 3551 3552sco3.2v5*) 3553 lt_cv_deplibs_check_method=pass_all 3554 ;; 3555 3556solaris*) 3557 lt_cv_deplibs_check_method=pass_all 3558 ;; 3559 3560sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 3561 case $host_vendor in 3562 motorola) 3563 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]' 3564 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 3565 ;; 3566 ncr) 3567 lt_cv_deplibs_check_method=pass_all 3568 ;; 3569 sequent) 3570 lt_cv_file_magic_cmd='/bin/file' 3571 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 3572 ;; 3573 sni) 3574 lt_cv_file_magic_cmd='/bin/file' 3575 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 3576 lt_cv_file_magic_test_file=/lib/libc.so 3577 ;; 3578 siemens) 3579 lt_cv_deplibs_check_method=pass_all 3580 ;; 3581 esac 3582 ;; 3583 3584sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7* | sysv4*uw2*) 3585 lt_cv_deplibs_check_method=pass_all 3586 ;; 3587esac 3588 3589fi 3590echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 3591echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 3592file_magic_cmd=$lt_cv_file_magic_cmd 3593deplibs_check_method=$lt_cv_deplibs_check_method 3594test -z "$deplibs_check_method" && deplibs_check_method=unknown 3595 3596 3597 3598 3599# If no C compiler was specified, use CC. 3600LTCC=${LTCC-"$CC"} 3601 3602# Allow CC to be a program name with arguments. 3603compiler=$CC 3604 3605 3606# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 3607if test "${enable_libtool_lock+set}" = set; then 3608 enableval="$enable_libtool_lock" 3609 3610fi; 3611test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 3612 3613# Some flags need to be propagated to the compiler or linker for good 3614# libtool support. 3615case $host in 3616ia64-*-hpux*) 3617 # Find out which ABI we are using. 3618 echo 'int i;' > conftest.$ac_ext 3619 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3620 (eval $ac_compile) 2>&5 3621 ac_status=$? 3622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3623 (exit $ac_status); }; then 3624 case `/usr/bin/file conftest.$ac_objext` in 3625 *ELF-32*) 3626 HPUX_IA64_MODE="32" 3627 ;; 3628 *ELF-64*) 3629 HPUX_IA64_MODE="64" 3630 ;; 3631 esac 3632 fi 3633 rm -rf conftest* 3634 ;; 3635*-*-irix6*) 3636 # Find out which ABI we are using. 3637 echo '#line __oline__ "configure"' > conftest.$ac_ext 3638 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3639 (eval $ac_compile) 2>&5 3640 ac_status=$? 3641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3642 (exit $ac_status); }; then 3643 if test "$lt_cv_prog_gnu_ld" = yes; then 3644 case `/usr/bin/file conftest.$ac_objext` in 3645 *32-bit*) 3646 LD="${LD-ld} -melf32bsmip" 3647 ;; 3648 *N32*) 3649 LD="${LD-ld} -melf32bmipn32" 3650 ;; 3651 *64-bit*) 3652 LD="${LD-ld} -melf64bmip" 3653 ;; 3654 esac 3655 else 3656 case `/usr/bin/file conftest.$ac_objext` in 3657 *32-bit*) 3658 LD="${LD-ld} -32" 3659 ;; 3660 *N32*) 3661 LD="${LD-ld} -n32" 3662 ;; 3663 *64-bit*) 3664 LD="${LD-ld} -64" 3665 ;; 3666 esac 3667 fi 3668 fi 3669 rm -rf conftest* 3670 ;; 3671 3672x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*|s390*-*linux*|sparc*-*linux*) 3673 # Find out which ABI we are using. 3674 echo 'int i;' > conftest.$ac_ext 3675 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3676 (eval $ac_compile) 2>&5 3677 ac_status=$? 3678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3679 (exit $ac_status); }; then 3680 case "`/usr/bin/file conftest.o`" in 3681 *32-bit*) 3682 case $host in 3683 x86_64-*linux*) 3684 LD="${LD-ld} -m elf_i386" 3685 ;; 3686 ppc64-*linux*|powerpc64-*linux*) 3687 LD="${LD-ld} -m elf32ppclinux" 3688 ;; 3689 s390x-*linux*) 3690 LD="${LD-ld} -m elf_s390" 3691 ;; 3692 sparc64-*linux*) 3693 LD="${LD-ld} -m elf32_sparc" 3694 ;; 3695 esac 3696 ;; 3697 *64-bit*) 3698 case $host in 3699 x86_64-*linux*) 3700 LD="${LD-ld} -m elf_x86_64" 3701 ;; 3702 ppc*-*linux*|powerpc*-*linux*) 3703 LD="${LD-ld} -m elf64ppc" 3704 ;; 3705 s390*-*linux*) 3706 LD="${LD-ld} -m elf64_s390" 3707 ;; 3708 sparc*-*linux*) 3709 LD="${LD-ld} -m elf64_sparc" 3710 ;; 3711 esac 3712 ;; 3713 esac 3714 fi 3715 rm -rf conftest* 3716 ;; 3717 3718*-*-sco3.2v5*) 3719 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 3720 SAVE_CFLAGS="$CFLAGS" 3721 CFLAGS="$CFLAGS -belf" 3722 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 3723echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 3724if test "${lt_cv_cc_needs_belf+set}" = set; then 3725 echo $ECHO_N "(cached) $ECHO_C" >&6 3726else 3727 ac_ext=c 3728ac_cpp='$CPP $CPPFLAGS' 3729ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3730ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3731ac_compiler_gnu=$ac_cv_c_compiler_gnu 3732 3733 cat >conftest.$ac_ext <<_ACEOF 3734/* confdefs.h. */ 3735_ACEOF 3736cat confdefs.h >>conftest.$ac_ext 3737cat >>conftest.$ac_ext <<_ACEOF 3738/* end confdefs.h. */ 3739 3740int 3741main () 3742{ 3743 3744 ; 3745 return 0; 3746} 3747_ACEOF 3748rm -f conftest.$ac_objext conftest$ac_exeext 3749if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 3750 (eval $ac_link) 2>conftest.er1 3751 ac_status=$? 3752 grep -v '^ *+' conftest.er1 >conftest.err 3753 rm -f conftest.er1 3754 cat conftest.err >&5 3755 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3756 (exit $ac_status); } && 3757 { ac_try='test -z "$ac_c_werror_flag" 3758 || test ! -s conftest.err' 3759 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3760 (eval $ac_try) 2>&5 3761 ac_status=$? 3762 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3763 (exit $ac_status); }; } && 3764 { ac_try='test -s conftest$ac_exeext' 3765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3766 (eval $ac_try) 2>&5 3767 ac_status=$? 3768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3769 (exit $ac_status); }; }; then 3770 lt_cv_cc_needs_belf=yes 3771else 3772 echo "$as_me: failed program was:" >&5 3773sed 's/^/| /' conftest.$ac_ext >&5 3774 3775lt_cv_cc_needs_belf=no 3776fi 3777rm -f conftest.err conftest.$ac_objext \ 3778 conftest$ac_exeext conftest.$ac_ext 3779 ac_ext=c 3780ac_cpp='$CPP $CPPFLAGS' 3781ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3782ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3783ac_compiler_gnu=$ac_cv_c_compiler_gnu 3784 3785fi 3786echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 3787echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 3788 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 3789 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 3790 CFLAGS="$SAVE_CFLAGS" 3791 fi 3792 ;; 3793 3794esac 3795 3796need_locks="$enable_libtool_lock" 3797 3798 3799ac_ext=c 3800ac_cpp='$CPP $CPPFLAGS' 3801ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3802ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3803ac_compiler_gnu=$ac_cv_c_compiler_gnu 3804echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 3805echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 3806# On Suns, sometimes $CPP names a directory. 3807if test -n "$CPP" && test -d "$CPP"; then 3808 CPP= 3809fi 3810if test -z "$CPP"; then 3811 if test "${ac_cv_prog_CPP+set}" = set; then 3812 echo $ECHO_N "(cached) $ECHO_C" >&6 3813else 3814 # Double quotes because CPP needs to be expanded 3815 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3816 do 3817 ac_preproc_ok=false 3818for ac_c_preproc_warn_flag in '' yes 3819do 3820 # Use a header file that comes with gcc, so configuring glibc 3821 # with a fresh cross-compiler works. 3822 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3823 # <limits.h> exists even on freestanding compilers. 3824 # On the NeXT, cc -E runs the code through the compiler's parser, 3825 # not just through cpp. "Syntax error" is here to catch this case. 3826 cat >conftest.$ac_ext <<_ACEOF 3827/* confdefs.h. */ 3828_ACEOF 3829cat confdefs.h >>conftest.$ac_ext 3830cat >>conftest.$ac_ext <<_ACEOF 3831/* end confdefs.h. */ 3832@%:@ifdef __STDC__ 3833@%:@ include <limits.h> 3834@%:@else 3835@%:@ include <assert.h> 3836@%:@endif 3837 Syntax error 3838_ACEOF 3839if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3840 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3841 ac_status=$? 3842 grep -v '^ *+' conftest.er1 >conftest.err 3843 rm -f conftest.er1 3844 cat conftest.err >&5 3845 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3846 (exit $ac_status); } >/dev/null; then 3847 if test -s conftest.err; then 3848 ac_cpp_err=$ac_c_preproc_warn_flag 3849 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3850 else 3851 ac_cpp_err= 3852 fi 3853else 3854 ac_cpp_err=yes 3855fi 3856if test -z "$ac_cpp_err"; then 3857 : 3858else 3859 echo "$as_me: failed program was:" >&5 3860sed 's/^/| /' conftest.$ac_ext >&5 3861 3862 # Broken: fails on valid input. 3863continue 3864fi 3865rm -f conftest.err conftest.$ac_ext 3866 3867 # OK, works on sane cases. Now check whether non-existent headers 3868 # can be detected and how. 3869 cat >conftest.$ac_ext <<_ACEOF 3870/* confdefs.h. */ 3871_ACEOF 3872cat confdefs.h >>conftest.$ac_ext 3873cat >>conftest.$ac_ext <<_ACEOF 3874/* end confdefs.h. */ 3875@%:@include <ac_nonexistent.h> 3876_ACEOF 3877if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3878 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3879 ac_status=$? 3880 grep -v '^ *+' conftest.er1 >conftest.err 3881 rm -f conftest.er1 3882 cat conftest.err >&5 3883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3884 (exit $ac_status); } >/dev/null; then 3885 if test -s conftest.err; then 3886 ac_cpp_err=$ac_c_preproc_warn_flag 3887 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3888 else 3889 ac_cpp_err= 3890 fi 3891else 3892 ac_cpp_err=yes 3893fi 3894if test -z "$ac_cpp_err"; then 3895 # Broken: success on invalid input. 3896continue 3897else 3898 echo "$as_me: failed program was:" >&5 3899sed 's/^/| /' conftest.$ac_ext >&5 3900 3901 # Passes both tests. 3902ac_preproc_ok=: 3903break 3904fi 3905rm -f conftest.err conftest.$ac_ext 3906 3907done 3908# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3909rm -f conftest.err conftest.$ac_ext 3910if $ac_preproc_ok; then 3911 break 3912fi 3913 3914 done 3915 ac_cv_prog_CPP=$CPP 3916 3917fi 3918 CPP=$ac_cv_prog_CPP 3919else 3920 ac_cv_prog_CPP=$CPP 3921fi 3922echo "$as_me:$LINENO: result: $CPP" >&5 3923echo "${ECHO_T}$CPP" >&6 3924ac_preproc_ok=false 3925for ac_c_preproc_warn_flag in '' yes 3926do 3927 # Use a header file that comes with gcc, so configuring glibc 3928 # with a fresh cross-compiler works. 3929 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3930 # <limits.h> exists even on freestanding compilers. 3931 # On the NeXT, cc -E runs the code through the compiler's parser, 3932 # not just through cpp. "Syntax error" is here to catch this case. 3933 cat >conftest.$ac_ext <<_ACEOF 3934/* confdefs.h. */ 3935_ACEOF 3936cat confdefs.h >>conftest.$ac_ext 3937cat >>conftest.$ac_ext <<_ACEOF 3938/* end confdefs.h. */ 3939@%:@ifdef __STDC__ 3940@%:@ include <limits.h> 3941@%:@else 3942@%:@ include <assert.h> 3943@%:@endif 3944 Syntax error 3945_ACEOF 3946if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3947 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3948 ac_status=$? 3949 grep -v '^ *+' conftest.er1 >conftest.err 3950 rm -f conftest.er1 3951 cat conftest.err >&5 3952 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3953 (exit $ac_status); } >/dev/null; then 3954 if test -s conftest.err; then 3955 ac_cpp_err=$ac_c_preproc_warn_flag 3956 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3957 else 3958 ac_cpp_err= 3959 fi 3960else 3961 ac_cpp_err=yes 3962fi 3963if test -z "$ac_cpp_err"; then 3964 : 3965else 3966 echo "$as_me: failed program was:" >&5 3967sed 's/^/| /' conftest.$ac_ext >&5 3968 3969 # Broken: fails on valid input. 3970continue 3971fi 3972rm -f conftest.err conftest.$ac_ext 3973 3974 # OK, works on sane cases. Now check whether non-existent headers 3975 # can be detected and how. 3976 cat >conftest.$ac_ext <<_ACEOF 3977/* confdefs.h. */ 3978_ACEOF 3979cat confdefs.h >>conftest.$ac_ext 3980cat >>conftest.$ac_ext <<_ACEOF 3981/* end confdefs.h. */ 3982@%:@include <ac_nonexistent.h> 3983_ACEOF 3984if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 3985 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 3986 ac_status=$? 3987 grep -v '^ *+' conftest.er1 >conftest.err 3988 rm -f conftest.er1 3989 cat conftest.err >&5 3990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3991 (exit $ac_status); } >/dev/null; then 3992 if test -s conftest.err; then 3993 ac_cpp_err=$ac_c_preproc_warn_flag 3994 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 3995 else 3996 ac_cpp_err= 3997 fi 3998else 3999 ac_cpp_err=yes 4000fi 4001if test -z "$ac_cpp_err"; then 4002 # Broken: success on invalid input. 4003continue 4004else 4005 echo "$as_me: failed program was:" >&5 4006sed 's/^/| /' conftest.$ac_ext >&5 4007 4008 # Passes both tests. 4009ac_preproc_ok=: 4010break 4011fi 4012rm -f conftest.err conftest.$ac_ext 4013 4014done 4015# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4016rm -f conftest.err conftest.$ac_ext 4017if $ac_preproc_ok; then 4018 : 4019else 4020 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 4021See \`config.log' for more details." >&5 4022echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 4023See \`config.log' for more details." >&2;} 4024 { (exit 1); exit 1; }; } 4025fi 4026 4027ac_ext=c 4028ac_cpp='$CPP $CPPFLAGS' 4029ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4030ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4031ac_compiler_gnu=$ac_cv_c_compiler_gnu 4032 4033 4034echo "$as_me:$LINENO: checking for ANSI C header files" >&5 4035echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 4036if test "${ac_cv_header_stdc+set}" = set; then 4037 echo $ECHO_N "(cached) $ECHO_C" >&6 4038else 4039 cat >conftest.$ac_ext <<_ACEOF 4040/* confdefs.h. */ 4041_ACEOF 4042cat confdefs.h >>conftest.$ac_ext 4043cat >>conftest.$ac_ext <<_ACEOF 4044/* end confdefs.h. */ 4045#include <stdlib.h> 4046#include <stdarg.h> 4047#include <string.h> 4048#include <float.h> 4049 4050int 4051main () 4052{ 4053 4054 ; 4055 return 0; 4056} 4057_ACEOF 4058rm -f conftest.$ac_objext 4059if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4060 (eval $ac_compile) 2>conftest.er1 4061 ac_status=$? 4062 grep -v '^ *+' conftest.er1 >conftest.err 4063 rm -f conftest.er1 4064 cat conftest.err >&5 4065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4066 (exit $ac_status); } && 4067 { ac_try='test -z "$ac_c_werror_flag" 4068 || test ! -s conftest.err' 4069 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4070 (eval $ac_try) 2>&5 4071 ac_status=$? 4072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4073 (exit $ac_status); }; } && 4074 { ac_try='test -s conftest.$ac_objext' 4075 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4076 (eval $ac_try) 2>&5 4077 ac_status=$? 4078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4079 (exit $ac_status); }; }; then 4080 ac_cv_header_stdc=yes 4081else 4082 echo "$as_me: failed program was:" >&5 4083sed 's/^/| /' conftest.$ac_ext >&5 4084 4085ac_cv_header_stdc=no 4086fi 4087rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4088 4089if test $ac_cv_header_stdc = yes; then 4090 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4091 cat >conftest.$ac_ext <<_ACEOF 4092/* confdefs.h. */ 4093_ACEOF 4094cat confdefs.h >>conftest.$ac_ext 4095cat >>conftest.$ac_ext <<_ACEOF 4096/* end confdefs.h. */ 4097#include <string.h> 4098 4099_ACEOF 4100if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4101 $EGREP "memchr" >/dev/null 2>&1; then 4102 : 4103else 4104 ac_cv_header_stdc=no 4105fi 4106rm -f conftest* 4107 4108fi 4109 4110if test $ac_cv_header_stdc = yes; then 4111 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4112 cat >conftest.$ac_ext <<_ACEOF 4113/* confdefs.h. */ 4114_ACEOF 4115cat confdefs.h >>conftest.$ac_ext 4116cat >>conftest.$ac_ext <<_ACEOF 4117/* end confdefs.h. */ 4118#include <stdlib.h> 4119 4120_ACEOF 4121if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4122 $EGREP "free" >/dev/null 2>&1; then 4123 : 4124else 4125 ac_cv_header_stdc=no 4126fi 4127rm -f conftest* 4128 4129fi 4130 4131if test $ac_cv_header_stdc = yes; then 4132 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4133 if test "$cross_compiling" = yes; then 4134 : 4135else 4136 cat >conftest.$ac_ext <<_ACEOF 4137/* confdefs.h. */ 4138_ACEOF 4139cat confdefs.h >>conftest.$ac_ext 4140cat >>conftest.$ac_ext <<_ACEOF 4141/* end confdefs.h. */ 4142#include <ctype.h> 4143#if ((' ' & 0x0FF) == 0x020) 4144# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4145# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4146#else 4147# define ISLOWER(c) \ 4148 (('a' <= (c) && (c) <= 'i') \ 4149 || ('j' <= (c) && (c) <= 'r') \ 4150 || ('s' <= (c) && (c) <= 'z')) 4151# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4152#endif 4153 4154#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4155int 4156main () 4157{ 4158 int i; 4159 for (i = 0; i < 256; i++) 4160 if (XOR (islower (i), ISLOWER (i)) 4161 || toupper (i) != TOUPPER (i)) 4162 exit(2); 4163 exit (0); 4164} 4165_ACEOF 4166rm -f conftest$ac_exeext 4167if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 4168 (eval $ac_link) 2>&5 4169 ac_status=$? 4170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4171 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 4172 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4173 (eval $ac_try) 2>&5 4174 ac_status=$? 4175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4176 (exit $ac_status); }; }; then 4177 : 4178else 4179 echo "$as_me: program exited with status $ac_status" >&5 4180echo "$as_me: failed program was:" >&5 4181sed 's/^/| /' conftest.$ac_ext >&5 4182 4183( exit $ac_status ) 4184ac_cv_header_stdc=no 4185fi 4186rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 4187fi 4188fi 4189fi 4190echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 4191echo "${ECHO_T}$ac_cv_header_stdc" >&6 4192if test $ac_cv_header_stdc = yes; then 4193 4194cat >>confdefs.h <<\_ACEOF 4195@%:@define STDC_HEADERS 1 4196_ACEOF 4197 4198fi 4199 4200# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4211 inttypes.h stdint.h unistd.h 4212do 4213as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4214echo "$as_me:$LINENO: checking for $ac_header" >&5 4215echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4216if eval "test \"\${$as_ac_Header+set}\" = set"; then 4217 echo $ECHO_N "(cached) $ECHO_C" >&6 4218else 4219 cat >conftest.$ac_ext <<_ACEOF 4220/* confdefs.h. */ 4221_ACEOF 4222cat confdefs.h >>conftest.$ac_ext 4223cat >>conftest.$ac_ext <<_ACEOF 4224/* end confdefs.h. */ 4225$ac_includes_default 4226 4227@%:@include <$ac_header> 4228_ACEOF 4229rm -f conftest.$ac_objext 4230if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4231 (eval $ac_compile) 2>conftest.er1 4232 ac_status=$? 4233 grep -v '^ *+' conftest.er1 >conftest.err 4234 rm -f conftest.er1 4235 cat conftest.err >&5 4236 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4237 (exit $ac_status); } && 4238 { ac_try='test -z "$ac_c_werror_flag" 4239 || test ! -s conftest.err' 4240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4241 (eval $ac_try) 2>&5 4242 ac_status=$? 4243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4244 (exit $ac_status); }; } && 4245 { ac_try='test -s conftest.$ac_objext' 4246 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4247 (eval $ac_try) 2>&5 4248 ac_status=$? 4249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4250 (exit $ac_status); }; }; then 4251 eval "$as_ac_Header=yes" 4252else 4253 echo "$as_me: failed program was:" >&5 4254sed 's/^/| /' conftest.$ac_ext >&5 4255 4256eval "$as_ac_Header=no" 4257fi 4258rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4259fi 4260echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4261echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4262if test `eval echo '${'$as_ac_Header'}'` = yes; then 4263 cat >>confdefs.h <<_ACEOF 4264@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4265_ACEOF 4266 4267fi 4268 4269done 4270 4271 4272 4273for ac_header in dlfcn.h 4274do 4275as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 4276if eval "test \"\${$as_ac_Header+set}\" = set"; then 4277 echo "$as_me:$LINENO: checking for $ac_header" >&5 4278echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4279if eval "test \"\${$as_ac_Header+set}\" = set"; then 4280 echo $ECHO_N "(cached) $ECHO_C" >&6 4281fi 4282echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4283echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4284else 4285 # Is the header compilable? 4286echo "$as_me:$LINENO: checking $ac_header usability" >&5 4287echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 4288cat >conftest.$ac_ext <<_ACEOF 4289/* confdefs.h. */ 4290_ACEOF 4291cat confdefs.h >>conftest.$ac_ext 4292cat >>conftest.$ac_ext <<_ACEOF 4293/* end confdefs.h. */ 4294$ac_includes_default 4295@%:@include <$ac_header> 4296_ACEOF 4297rm -f conftest.$ac_objext 4298if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4299 (eval $ac_compile) 2>conftest.er1 4300 ac_status=$? 4301 grep -v '^ *+' conftest.er1 >conftest.err 4302 rm -f conftest.er1 4303 cat conftest.err >&5 4304 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4305 (exit $ac_status); } && 4306 { ac_try='test -z "$ac_c_werror_flag" 4307 || test ! -s conftest.err' 4308 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4309 (eval $ac_try) 2>&5 4310 ac_status=$? 4311 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4312 (exit $ac_status); }; } && 4313 { ac_try='test -s conftest.$ac_objext' 4314 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4315 (eval $ac_try) 2>&5 4316 ac_status=$? 4317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4318 (exit $ac_status); }; }; then 4319 ac_header_compiler=yes 4320else 4321 echo "$as_me: failed program was:" >&5 4322sed 's/^/| /' conftest.$ac_ext >&5 4323 4324ac_header_compiler=no 4325fi 4326rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4327echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 4328echo "${ECHO_T}$ac_header_compiler" >&6 4329 4330# Is the header present? 4331echo "$as_me:$LINENO: checking $ac_header presence" >&5 4332echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 4333cat >conftest.$ac_ext <<_ACEOF 4334/* confdefs.h. */ 4335_ACEOF 4336cat confdefs.h >>conftest.$ac_ext 4337cat >>conftest.$ac_ext <<_ACEOF 4338/* end confdefs.h. */ 4339@%:@include <$ac_header> 4340_ACEOF 4341if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4342 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4343 ac_status=$? 4344 grep -v '^ *+' conftest.er1 >conftest.err 4345 rm -f conftest.er1 4346 cat conftest.err >&5 4347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4348 (exit $ac_status); } >/dev/null; then 4349 if test -s conftest.err; then 4350 ac_cpp_err=$ac_c_preproc_warn_flag 4351 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 4352 else 4353 ac_cpp_err= 4354 fi 4355else 4356 ac_cpp_err=yes 4357fi 4358if test -z "$ac_cpp_err"; then 4359 ac_header_preproc=yes 4360else 4361 echo "$as_me: failed program was:" >&5 4362sed 's/^/| /' conftest.$ac_ext >&5 4363 4364 ac_header_preproc=no 4365fi 4366rm -f conftest.err conftest.$ac_ext 4367echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 4368echo "${ECHO_T}$ac_header_preproc" >&6 4369 4370# So? What about this header? 4371case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 4372 yes:no: ) 4373 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 4374echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 4375 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 4376echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 4377 ac_header_preproc=yes 4378 ;; 4379 no:yes:* ) 4380 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 4381echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 4382 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 4383echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 4384 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 4385echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 4386 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 4387echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 4388 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 4389echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 4390 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 4391echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 4392 ( 4393 cat <<\_ASBOX 4394@%:@@%:@ -------------------------------- @%:@@%:@ 4395@%:@@%:@ Report this to the vigra lists. @%:@@%:@ 4396@%:@@%:@ -------------------------------- @%:@@%:@ 4397_ASBOX 4398 ) | 4399 sed "s/^/$as_me: WARNING: /" >&2 4400 ;; 4401esac 4402echo "$as_me:$LINENO: checking for $ac_header" >&5 4403echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 4404if eval "test \"\${$as_ac_Header+set}\" = set"; then 4405 echo $ECHO_N "(cached) $ECHO_C" >&6 4406else 4407 eval "$as_ac_Header=\$ac_header_preproc" 4408fi 4409echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 4410echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 4411 4412fi 4413if test `eval echo '${'$as_ac_Header'}'` = yes; then 4414 cat >>confdefs.h <<_ACEOF 4415@%:@define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 4416_ACEOF 4417 4418fi 4419 4420done 4421 4422ac_ext=cc 4423ac_cpp='$CXXCPP $CPPFLAGS' 4424ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4425ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4426ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4427echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5 4428echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6 4429if test -z "$CXXCPP"; then 4430 if test "${ac_cv_prog_CXXCPP+set}" = set; then 4431 echo $ECHO_N "(cached) $ECHO_C" >&6 4432else 4433 # Double quotes because CXXCPP needs to be expanded 4434 for CXXCPP in "$CXX -E" "/lib/cpp" 4435 do 4436 ac_preproc_ok=false 4437for ac_cxx_preproc_warn_flag in '' yes 4438do 4439 # Use a header file that comes with gcc, so configuring glibc 4440 # with a fresh cross-compiler works. 4441 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4442 # <limits.h> exists even on freestanding compilers. 4443 # On the NeXT, cc -E runs the code through the compiler's parser, 4444 # not just through cpp. "Syntax error" is here to catch this case. 4445 cat >conftest.$ac_ext <<_ACEOF 4446/* confdefs.h. */ 4447_ACEOF 4448cat confdefs.h >>conftest.$ac_ext 4449cat >>conftest.$ac_ext <<_ACEOF 4450/* end confdefs.h. */ 4451@%:@ifdef __STDC__ 4452@%:@ include <limits.h> 4453@%:@else 4454@%:@ include <assert.h> 4455@%:@endif 4456 Syntax error 4457_ACEOF 4458if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4459 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4460 ac_status=$? 4461 grep -v '^ *+' conftest.er1 >conftest.err 4462 rm -f conftest.er1 4463 cat conftest.err >&5 4464 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4465 (exit $ac_status); } >/dev/null; then 4466 if test -s conftest.err; then 4467 ac_cpp_err=$ac_cxx_preproc_warn_flag 4468 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4469 else 4470 ac_cpp_err= 4471 fi 4472else 4473 ac_cpp_err=yes 4474fi 4475if test -z "$ac_cpp_err"; then 4476 : 4477else 4478 echo "$as_me: failed program was:" >&5 4479sed 's/^/| /' conftest.$ac_ext >&5 4480 4481 # Broken: fails on valid input. 4482continue 4483fi 4484rm -f conftest.err conftest.$ac_ext 4485 4486 # OK, works on sane cases. Now check whether non-existent headers 4487 # can be detected and how. 4488 cat >conftest.$ac_ext <<_ACEOF 4489/* confdefs.h. */ 4490_ACEOF 4491cat confdefs.h >>conftest.$ac_ext 4492cat >>conftest.$ac_ext <<_ACEOF 4493/* end confdefs.h. */ 4494@%:@include <ac_nonexistent.h> 4495_ACEOF 4496if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4497 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4498 ac_status=$? 4499 grep -v '^ *+' conftest.er1 >conftest.err 4500 rm -f conftest.er1 4501 cat conftest.err >&5 4502 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4503 (exit $ac_status); } >/dev/null; then 4504 if test -s conftest.err; then 4505 ac_cpp_err=$ac_cxx_preproc_warn_flag 4506 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4507 else 4508 ac_cpp_err= 4509 fi 4510else 4511 ac_cpp_err=yes 4512fi 4513if test -z "$ac_cpp_err"; then 4514 # Broken: success on invalid input. 4515continue 4516else 4517 echo "$as_me: failed program was:" >&5 4518sed 's/^/| /' conftest.$ac_ext >&5 4519 4520 # Passes both tests. 4521ac_preproc_ok=: 4522break 4523fi 4524rm -f conftest.err conftest.$ac_ext 4525 4526done 4527# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4528rm -f conftest.err conftest.$ac_ext 4529if $ac_preproc_ok; then 4530 break 4531fi 4532 4533 done 4534 ac_cv_prog_CXXCPP=$CXXCPP 4535 4536fi 4537 CXXCPP=$ac_cv_prog_CXXCPP 4538else 4539 ac_cv_prog_CXXCPP=$CXXCPP 4540fi 4541echo "$as_me:$LINENO: result: $CXXCPP" >&5 4542echo "${ECHO_T}$CXXCPP" >&6 4543ac_preproc_ok=false 4544for ac_cxx_preproc_warn_flag in '' yes 4545do 4546 # Use a header file that comes with gcc, so configuring glibc 4547 # with a fresh cross-compiler works. 4548 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4549 # <limits.h> exists even on freestanding compilers. 4550 # On the NeXT, cc -E runs the code through the compiler's parser, 4551 # not just through cpp. "Syntax error" is here to catch this case. 4552 cat >conftest.$ac_ext <<_ACEOF 4553/* confdefs.h. */ 4554_ACEOF 4555cat confdefs.h >>conftest.$ac_ext 4556cat >>conftest.$ac_ext <<_ACEOF 4557/* end confdefs.h. */ 4558@%:@ifdef __STDC__ 4559@%:@ include <limits.h> 4560@%:@else 4561@%:@ include <assert.h> 4562@%:@endif 4563 Syntax error 4564_ACEOF 4565if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4566 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4567 ac_status=$? 4568 grep -v '^ *+' conftest.er1 >conftest.err 4569 rm -f conftest.er1 4570 cat conftest.err >&5 4571 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4572 (exit $ac_status); } >/dev/null; then 4573 if test -s conftest.err; then 4574 ac_cpp_err=$ac_cxx_preproc_warn_flag 4575 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4576 else 4577 ac_cpp_err= 4578 fi 4579else 4580 ac_cpp_err=yes 4581fi 4582if test -z "$ac_cpp_err"; then 4583 : 4584else 4585 echo "$as_me: failed program was:" >&5 4586sed 's/^/| /' conftest.$ac_ext >&5 4587 4588 # Broken: fails on valid input. 4589continue 4590fi 4591rm -f conftest.err conftest.$ac_ext 4592 4593 # OK, works on sane cases. Now check whether non-existent headers 4594 # can be detected and how. 4595 cat >conftest.$ac_ext <<_ACEOF 4596/* confdefs.h. */ 4597_ACEOF 4598cat confdefs.h >>conftest.$ac_ext 4599cat >>conftest.$ac_ext <<_ACEOF 4600/* end confdefs.h. */ 4601@%:@include <ac_nonexistent.h> 4602_ACEOF 4603if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 4604 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 4605 ac_status=$? 4606 grep -v '^ *+' conftest.er1 >conftest.err 4607 rm -f conftest.er1 4608 cat conftest.err >&5 4609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4610 (exit $ac_status); } >/dev/null; then 4611 if test -s conftest.err; then 4612 ac_cpp_err=$ac_cxx_preproc_warn_flag 4613 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag 4614 else 4615 ac_cpp_err= 4616 fi 4617else 4618 ac_cpp_err=yes 4619fi 4620if test -z "$ac_cpp_err"; then 4621 # Broken: success on invalid input. 4622continue 4623else 4624 echo "$as_me: failed program was:" >&5 4625sed 's/^/| /' conftest.$ac_ext >&5 4626 4627 # Passes both tests. 4628ac_preproc_ok=: 4629break 4630fi 4631rm -f conftest.err conftest.$ac_ext 4632 4633done 4634# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4635rm -f conftest.err conftest.$ac_ext 4636if $ac_preproc_ok; then 4637 : 4638else 4639 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4640See \`config.log' for more details." >&5 4641echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check 4642See \`config.log' for more details." >&2;} 4643 { (exit 1); exit 1; }; } 4644fi 4645 4646ac_ext=cc 4647ac_cpp='$CXXCPP $CPPFLAGS' 4648ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4649ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4650ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4651 4652 4653ac_ext=f 4654ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 4655ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4656ac_compiler_gnu=$ac_cv_f77_compiler_gnu 4657if test -n "$ac_tool_prefix"; then 4658 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4659 do 4660 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4661set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4662echo "$as_me:$LINENO: checking for $ac_word" >&5 4663echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4664if test "${ac_cv_prog_F77+set}" = set; then 4665 echo $ECHO_N "(cached) $ECHO_C" >&6 4666else 4667 if test -n "$F77"; then 4668 ac_cv_prog_F77="$F77" # Let the user override the test. 4669else 4670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4671for as_dir in $PATH 4672do 4673 IFS=$as_save_IFS 4674 test -z "$as_dir" && as_dir=. 4675 for ac_exec_ext in '' $ac_executable_extensions; do 4676 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4677 ac_cv_prog_F77="$ac_tool_prefix$ac_prog" 4678 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4679 break 2 4680 fi 4681done 4682done 4683 4684fi 4685fi 4686F77=$ac_cv_prog_F77 4687if test -n "$F77"; then 4688 echo "$as_me:$LINENO: result: $F77" >&5 4689echo "${ECHO_T}$F77" >&6 4690else 4691 echo "$as_me:$LINENO: result: no" >&5 4692echo "${ECHO_T}no" >&6 4693fi 4694 4695 test -n "$F77" && break 4696 done 4697fi 4698if test -z "$F77"; then 4699 ac_ct_F77=$F77 4700 for ac_prog in g77 f77 xlf frt pgf77 fort77 fl32 af77 f90 xlf90 pgf90 epcf90 f95 fort xlf95 ifc efc pgf95 lf95 gfortran 4701do 4702 # Extract the first word of "$ac_prog", so it can be a program name with args. 4703set dummy $ac_prog; ac_word=$2 4704echo "$as_me:$LINENO: checking for $ac_word" >&5 4705echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4706if test "${ac_cv_prog_ac_ct_F77+set}" = set; then 4707 echo $ECHO_N "(cached) $ECHO_C" >&6 4708else 4709 if test -n "$ac_ct_F77"; then 4710 ac_cv_prog_ac_ct_F77="$ac_ct_F77" # Let the user override the test. 4711else 4712as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4713for as_dir in $PATH 4714do 4715 IFS=$as_save_IFS 4716 test -z "$as_dir" && as_dir=. 4717 for ac_exec_ext in '' $ac_executable_extensions; do 4718 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4719 ac_cv_prog_ac_ct_F77="$ac_prog" 4720 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4721 break 2 4722 fi 4723done 4724done 4725 4726fi 4727fi 4728ac_ct_F77=$ac_cv_prog_ac_ct_F77 4729if test -n "$ac_ct_F77"; then 4730 echo "$as_me:$LINENO: result: $ac_ct_F77" >&5 4731echo "${ECHO_T}$ac_ct_F77" >&6 4732else 4733 echo "$as_me:$LINENO: result: no" >&5 4734echo "${ECHO_T}no" >&6 4735fi 4736 4737 test -n "$ac_ct_F77" && break 4738done 4739 4740 F77=$ac_ct_F77 4741fi 4742 4743 4744# Provide some information about the compiler. 4745echo "$as_me:__oline__:" \ 4746 "checking for Fortran 77 compiler version" >&5 4747ac_compiler=`set X $ac_compile; echo $2` 4748{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 4749 (eval $ac_compiler --version </dev/null >&5) 2>&5 4750 ac_status=$? 4751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4752 (exit $ac_status); } 4753{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 4754 (eval $ac_compiler -v </dev/null >&5) 2>&5 4755 ac_status=$? 4756 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4757 (exit $ac_status); } 4758{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 4759 (eval $ac_compiler -V </dev/null >&5) 2>&5 4760 ac_status=$? 4761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4762 (exit $ac_status); } 4763rm -f a.out 4764 4765# If we don't use `.F' as extension, the preprocessor is not run on the 4766# input file. (Note that this only needs to work for GNU compilers.) 4767ac_save_ext=$ac_ext 4768ac_ext=F 4769echo "$as_me:$LINENO: checking whether we are using the GNU Fortran 77 compiler" >&5 4770echo $ECHO_N "checking whether we are using the GNU Fortran 77 compiler... $ECHO_C" >&6 4771if test "${ac_cv_f77_compiler_gnu+set}" = set; then 4772 echo $ECHO_N "(cached) $ECHO_C" >&6 4773else 4774 cat >conftest.$ac_ext <<_ACEOF 4775 program main 4776#ifndef __GNUC__ 4777 choke me 4778#endif 4779 4780 end 4781_ACEOF 4782rm -f conftest.$ac_objext 4783if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4784 (eval $ac_compile) 2>conftest.er1 4785 ac_status=$? 4786 grep -v '^ *+' conftest.er1 >conftest.err 4787 rm -f conftest.er1 4788 cat conftest.err >&5 4789 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4790 (exit $ac_status); } && 4791 { ac_try='test -z "$ac_f77_werror_flag" 4792 || test ! -s conftest.err' 4793 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4794 (eval $ac_try) 2>&5 4795 ac_status=$? 4796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4797 (exit $ac_status); }; } && 4798 { ac_try='test -s conftest.$ac_objext' 4799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4800 (eval $ac_try) 2>&5 4801 ac_status=$? 4802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4803 (exit $ac_status); }; }; then 4804 ac_compiler_gnu=yes 4805else 4806 echo "$as_me: failed program was:" >&5 4807sed 's/^/| /' conftest.$ac_ext >&5 4808 4809ac_compiler_gnu=no 4810fi 4811rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4812ac_cv_f77_compiler_gnu=$ac_compiler_gnu 4813 4814fi 4815echo "$as_me:$LINENO: result: $ac_cv_f77_compiler_gnu" >&5 4816echo "${ECHO_T}$ac_cv_f77_compiler_gnu" >&6 4817ac_ext=$ac_save_ext 4818ac_test_FFLAGS=${FFLAGS+set} 4819ac_save_FFLAGS=$FFLAGS 4820FFLAGS= 4821echo "$as_me:$LINENO: checking whether $F77 accepts -g" >&5 4822echo $ECHO_N "checking whether $F77 accepts -g... $ECHO_C" >&6 4823if test "${ac_cv_prog_f77_g+set}" = set; then 4824 echo $ECHO_N "(cached) $ECHO_C" >&6 4825else 4826 FFLAGS=-g 4827cat >conftest.$ac_ext <<_ACEOF 4828 program main 4829 4830 end 4831_ACEOF 4832rm -f conftest.$ac_objext 4833if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 4834 (eval $ac_compile) 2>conftest.er1 4835 ac_status=$? 4836 grep -v '^ *+' conftest.er1 >conftest.err 4837 rm -f conftest.er1 4838 cat conftest.err >&5 4839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4840 (exit $ac_status); } && 4841 { ac_try='test -z "$ac_f77_werror_flag" 4842 || test ! -s conftest.err' 4843 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4844 (eval $ac_try) 2>&5 4845 ac_status=$? 4846 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4847 (exit $ac_status); }; } && 4848 { ac_try='test -s conftest.$ac_objext' 4849 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 4850 (eval $ac_try) 2>&5 4851 ac_status=$? 4852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4853 (exit $ac_status); }; }; then 4854 ac_cv_prog_f77_g=yes 4855else 4856 echo "$as_me: failed program was:" >&5 4857sed 's/^/| /' conftest.$ac_ext >&5 4858 4859ac_cv_prog_f77_g=no 4860fi 4861rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 4862 4863fi 4864echo "$as_me:$LINENO: result: $ac_cv_prog_f77_g" >&5 4865echo "${ECHO_T}$ac_cv_prog_f77_g" >&6 4866if test "$ac_test_FFLAGS" = set; then 4867 FFLAGS=$ac_save_FFLAGS 4868elif test $ac_cv_prog_f77_g = yes; then 4869 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4870 FFLAGS="-g -O2" 4871 else 4872 FFLAGS="-g" 4873 fi 4874else 4875 if test "x$ac_cv_f77_compiler_gnu" = xyes; then 4876 FFLAGS="-O2" 4877 else 4878 FFLAGS= 4879 fi 4880fi 4881 4882G77=`test $ac_compiler_gnu = yes && echo yes` 4883ac_ext=c 4884ac_cpp='$CPP $CPPFLAGS' 4885ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4886ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4887ac_compiler_gnu=$ac_cv_c_compiler_gnu 4888 4889 4890 4891# Autoconf 2.13's AC_OBJEXT and AC_EXEEXT macros only works for C compilers! 4892 4893# find the maximum length of command line arguments 4894echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4895echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 4896if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4897 echo $ECHO_N "(cached) $ECHO_C" >&6 4898else 4899 i=0 4900 teststring="ABCD" 4901 4902 case $build_os in 4903 msdosdjgpp*) 4904 # On DJGPP, this test can blow up pretty badly due to problems in libc 4905 # (any single argument exceeding 2000 bytes causes a buffer overrun 4906 # during glob expansion). Even if it were fixed, the result of this 4907 # check would be larger than it should be. 4908 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4909 ;; 4910 4911 gnu*) 4912 # Under GNU Hurd, this test is not required because there is 4913 # no limit to the length of command line arguments. 4914 # Libtool will interpret -1 as no limit whatsoever 4915 lt_cv_sys_max_cmd_len=-1; 4916 ;; 4917 4918 cygwin* | mingw*) 4919 # On Win9x/ME, this test blows up -- it succeeds, but takes 4920 # about 5 minutes as the teststring grows exponentially. 4921 # Worse, since 9x/ME are not pre-emptively multitasking, 4922 # you end up with a "frozen" computer, even though with patience 4923 # the test eventually succeeds (with a max line length of 256k). 4924 # Instead, let's just punt: use the minimum linelength reported by 4925 # all of the supported platforms: 8192 (on NT/2K/XP). 4926 lt_cv_sys_max_cmd_len=8192; 4927 ;; 4928 4929 amigaos*) 4930 # On AmigaOS with pdksh, this test takes hours, literally. 4931 # So we just punt and use a minimum line length of 8192. 4932 lt_cv_sys_max_cmd_len=8192; 4933 ;; 4934 4935 *) 4936 # If test is not a shell built-in, we'll probably end up computing a 4937 # maximum length that is only half of the actual maximum length, but 4938 # we can't tell. 4939 while (test "X"`$CONFIG_SHELL $0 --fallback-echo "X$teststring" 2>/dev/null` \ 4940 = "XX$teststring") >/dev/null 2>&1 && 4941 new_result=`expr "X$teststring" : ".*" 2>&1` && 4942 lt_cv_sys_max_cmd_len=$new_result && 4943 test $i != 17 # 1/2 MB should be enough 4944 do 4945 i=`expr $i + 1` 4946 teststring=$teststring$teststring 4947 done 4948 teststring= 4949 # Add a significant safety factor because C++ compilers can tack on massive 4950 # amounts of additional arguments before passing them to the linker. 4951 # It appears as though 1/2 is a usable value. 4952 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4953 ;; 4954 esac 4955 4956fi 4957 4958if test -n $lt_cv_sys_max_cmd_len ; then 4959 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4960echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 4961else 4962 echo "$as_me:$LINENO: result: none" >&5 4963echo "${ECHO_T}none" >&6 4964fi 4965 4966 4967 4968 4969# Check for command to grab the raw symbol name followed by C symbol from nm. 4970echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 4971echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 4972if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 4973 echo $ECHO_N "(cached) $ECHO_C" >&6 4974else 4975 4976# These are sane defaults that work on at least a few old systems. 4977# [They come from Ultrix. What could be older than Ultrix?!! ;)] 4978 4979# Character class describing NM global symbol codes. 4980symcode='[BCDEGRST]' 4981 4982# Regexp to match symbols that can be accessed directly from C. 4983sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 4984 4985# Transform the above into a raw symbol and a C symbol. 4986symxfrm='\1 \2\3 \3' 4987 4988# Transform an extracted symbol line into a proper C declaration 4989lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^. .* \(.*\)$/extern int \1;/p'" 4990 4991# Transform an extracted symbol line into symbol name and symbol address 4992lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 4993 4994# Define system-specific variables. 4995case $host_os in 4996aix*) 4997 symcode='[BCDT]' 4998 ;; 4999cygwin* | mingw* | pw32*) 5000 symcode='[ABCDGISTW]' 5001 ;; 5002hpux*) # Its linker distinguishes data from code symbols 5003 if test "$host_cpu" = ia64; then 5004 symcode='[ABCDEGRST]' 5005 fi 5006 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5007 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (lt_ptr) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (lt_ptr) \&\2},/p'" 5008 ;; 5009irix* | nonstopux*) 5010 symcode='[BCDEGRST]' 5011 ;; 5012osf*) 5013 symcode='[BCDEGQRST]' 5014 ;; 5015solaris* | sysv5*) 5016 symcode='[BDRT]' 5017 ;; 5018sysv4) 5019 symcode='[DFNSTU]' 5020 ;; 5021esac 5022 5023# Handle CRLF in mingw tool chain 5024opt_cr= 5025case $build_os in 5026mingw*) 5027 opt_cr=`echo 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5028 ;; 5029esac 5030 5031# If we're using GNU nm, then use its standard symbol codes. 5032case `$NM -V 2>&1` in 5033*GNU* | *'with BFD'*) 5034 symcode='[ABCDGIRSTW]' ;; 5035esac 5036 5037# Try without a prefix undercore, then with it. 5038for ac_symprfx in "" "_"; do 5039 5040 # Write the raw and C identifiers. 5041 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*\($ac_symprfx\)$sympat$opt_cr$/$symxfrm/p'" 5042 5043 # Check to see that the pipe works correctly. 5044 pipe_works=no 5045 5046 rm -f conftest* 5047 cat > conftest.$ac_ext <<EOF 5048#ifdef __cplusplus 5049extern "C" { 5050#endif 5051char nm_test_var; 5052void nm_test_func(){} 5053#ifdef __cplusplus 5054} 5055#endif 5056int main(){nm_test_var='a';nm_test_func();return(0);} 5057EOF 5058 5059 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5060 (eval $ac_compile) 2>&5 5061 ac_status=$? 5062 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5063 (exit $ac_status); }; then 5064 # Now try to grab the symbols. 5065 nlist=conftest.nm 5066 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5067 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5068 ac_status=$? 5069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5070 (exit $ac_status); } && test -s "$nlist"; then 5071 # Try sorting and uniquifying the output. 5072 if sort "$nlist" | uniq > "$nlist"T; then 5073 mv -f "$nlist"T "$nlist" 5074 else 5075 rm -f "$nlist"T 5076 fi 5077 5078 # Make sure that we snagged all the symbols we need. 5079 if grep ' nm_test_var$' "$nlist" >/dev/null; then 5080 if grep ' nm_test_func$' "$nlist" >/dev/null; then 5081 cat <<EOF > conftest.$ac_ext 5082#ifdef __cplusplus 5083extern "C" { 5084#endif 5085 5086EOF 5087 # Now generate the symbol file. 5088 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | grep -v main >> conftest.$ac_ext' 5089 5090 cat <<EOF >> conftest.$ac_ext 5091#if defined (__STDC__) && __STDC__ 5092# define lt_ptr_t void * 5093#else 5094# define lt_ptr_t char * 5095# define const 5096#endif 5097 5098/* The mapping between symbol names and symbols. */ 5099const struct { 5100 const char *name; 5101 lt_ptr_t address; 5102} 5103lt_preloaded_symbols[] = 5104{ 5105EOF 5106 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (lt_ptr_t) \&\2},/" < "$nlist" | grep -v main >> conftest.$ac_ext 5107 cat <<\EOF >> conftest.$ac_ext 5108 {0, (lt_ptr_t) 0} 5109}; 5110 5111#ifdef __cplusplus 5112} 5113#endif 5114EOF 5115 # Now try linking the two files. 5116 mv conftest.$ac_objext conftstm.$ac_objext 5117 lt_save_LIBS="$LIBS" 5118 lt_save_CFLAGS="$CFLAGS" 5119 LIBS="conftstm.$ac_objext" 5120 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5122 (eval $ac_link) 2>&5 5123 ac_status=$? 5124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5125 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5126 pipe_works=yes 5127 fi 5128 LIBS="$lt_save_LIBS" 5129 CFLAGS="$lt_save_CFLAGS" 5130 else 5131 echo "cannot find nm_test_func in $nlist" >&5 5132 fi 5133 else 5134 echo "cannot find nm_test_var in $nlist" >&5 5135 fi 5136 else 5137 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5138 fi 5139 else 5140 echo "$progname: failed program was:" >&5 5141 cat conftest.$ac_ext >&5 5142 fi 5143 rm -f conftest* conftst* 5144 5145 # Do not use the global_symbol_pipe unless it works. 5146 if test "$pipe_works" = yes; then 5147 break 5148 else 5149 lt_cv_sys_global_symbol_pipe= 5150 fi 5151done 5152 5153fi 5154 5155if test -z "$lt_cv_sys_global_symbol_pipe"; then 5156 lt_cv_sys_global_symbol_to_cdecl= 5157fi 5158if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5159 echo "$as_me:$LINENO: result: failed" >&5 5160echo "${ECHO_T}failed" >&6 5161else 5162 echo "$as_me:$LINENO: result: ok" >&5 5163echo "${ECHO_T}ok" >&6 5164fi 5165 5166echo "$as_me:$LINENO: checking for objdir" >&5 5167echo $ECHO_N "checking for objdir... $ECHO_C" >&6 5168if test "${lt_cv_objdir+set}" = set; then 5169 echo $ECHO_N "(cached) $ECHO_C" >&6 5170else 5171 rm -f .libs 2>/dev/null 5172mkdir .libs 2>/dev/null 5173if test -d .libs; then 5174 lt_cv_objdir=.libs 5175else 5176 # MS-DOS does not allow filenames that begin with a dot. 5177 lt_cv_objdir=_libs 5178fi 5179rmdir .libs 2>/dev/null 5180fi 5181echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 5182echo "${ECHO_T}$lt_cv_objdir" >&6 5183objdir=$lt_cv_objdir 5184 5185 5186 5187 5188 5189case $host_os in 5190aix3*) 5191 # AIX sometimes has problems with the GCC collect2 program. For some 5192 # reason, if we set the COLLECT_NAMES environment variable, the problems 5193 # vanish in a puff of smoke. 5194 if test "X${COLLECT_NAMES+set}" != Xset; then 5195 COLLECT_NAMES= 5196 export COLLECT_NAMES 5197 fi 5198 ;; 5199esac 5200 5201# Sed substitution that helps us do robust quoting. It backslashifies 5202# metacharacters that are still active within double-quoted strings. 5203Xsed='sed -e s/^X//' 5204sed_quote_subst='s/\([\\"\\`$\\\\]\)/\\\1/g' 5205 5206# Same as above, but do not quote variable references. 5207double_quote_subst='s/\([\\"\\`\\\\]\)/\\\1/g' 5208 5209# Sed substitution to delay expansion of an escaped shell variable in a 5210# double_quote_subst'ed string. 5211delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5212 5213# Sed substitution to avoid accidental globbing in evaled expressions 5214no_glob_subst='s/\*/\\\*/g' 5215 5216# Constants: 5217rm="rm -f" 5218 5219# Global variables: 5220default_ofile=libtool 5221can_build_shared=yes 5222 5223# All known linkers require a `.a' archive for static linking (except M$VC, 5224# which needs '.lib'). 5225libext=a 5226ltmain="$ac_aux_dir/ltmain.sh" 5227ofile="$default_ofile" 5228with_gnu_ld="$lt_cv_prog_gnu_ld" 5229 5230if test -n "$ac_tool_prefix"; then 5231 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 5232set dummy ${ac_tool_prefix}ar; ac_word=$2 5233echo "$as_me:$LINENO: checking for $ac_word" >&5 5234echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5235if test "${ac_cv_prog_AR+set}" = set; then 5236 echo $ECHO_N "(cached) $ECHO_C" >&6 5237else 5238 if test -n "$AR"; then 5239 ac_cv_prog_AR="$AR" # Let the user override the test. 5240else 5241as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5242for as_dir in $PATH 5243do 5244 IFS=$as_save_IFS 5245 test -z "$as_dir" && as_dir=. 5246 for ac_exec_ext in '' $ac_executable_extensions; do 5247 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5248 ac_cv_prog_AR="${ac_tool_prefix}ar" 5249 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5250 break 2 5251 fi 5252done 5253done 5254 5255fi 5256fi 5257AR=$ac_cv_prog_AR 5258if test -n "$AR"; then 5259 echo "$as_me:$LINENO: result: $AR" >&5 5260echo "${ECHO_T}$AR" >&6 5261else 5262 echo "$as_me:$LINENO: result: no" >&5 5263echo "${ECHO_T}no" >&6 5264fi 5265 5266fi 5267if test -z "$ac_cv_prog_AR"; then 5268 ac_ct_AR=$AR 5269 # Extract the first word of "ar", so it can be a program name with args. 5270set dummy ar; ac_word=$2 5271echo "$as_me:$LINENO: checking for $ac_word" >&5 5272echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5273if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 5274 echo $ECHO_N "(cached) $ECHO_C" >&6 5275else 5276 if test -n "$ac_ct_AR"; then 5277 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5278else 5279as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5280for as_dir in $PATH 5281do 5282 IFS=$as_save_IFS 5283 test -z "$as_dir" && as_dir=. 5284 for ac_exec_ext in '' $ac_executable_extensions; do 5285 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5286 ac_cv_prog_ac_ct_AR="ar" 5287 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5288 break 2 5289 fi 5290done 5291done 5292 5293 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 5294fi 5295fi 5296ac_ct_AR=$ac_cv_prog_ac_ct_AR 5297if test -n "$ac_ct_AR"; then 5298 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 5299echo "${ECHO_T}$ac_ct_AR" >&6 5300else 5301 echo "$as_me:$LINENO: result: no" >&5 5302echo "${ECHO_T}no" >&6 5303fi 5304 5305 AR=$ac_ct_AR 5306else 5307 AR="$ac_cv_prog_AR" 5308fi 5309 5310if test -n "$ac_tool_prefix"; then 5311 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5312set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5313echo "$as_me:$LINENO: checking for $ac_word" >&5 5314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5315if test "${ac_cv_prog_RANLIB+set}" = set; then 5316 echo $ECHO_N "(cached) $ECHO_C" >&6 5317else 5318 if test -n "$RANLIB"; then 5319 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5320else 5321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5322for as_dir in $PATH 5323do 5324 IFS=$as_save_IFS 5325 test -z "$as_dir" && as_dir=. 5326 for ac_exec_ext in '' $ac_executable_extensions; do 5327 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5328 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5329 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5330 break 2 5331 fi 5332done 5333done 5334 5335fi 5336fi 5337RANLIB=$ac_cv_prog_RANLIB 5338if test -n "$RANLIB"; then 5339 echo "$as_me:$LINENO: result: $RANLIB" >&5 5340echo "${ECHO_T}$RANLIB" >&6 5341else 5342 echo "$as_me:$LINENO: result: no" >&5 5343echo "${ECHO_T}no" >&6 5344fi 5345 5346fi 5347if test -z "$ac_cv_prog_RANLIB"; then 5348 ac_ct_RANLIB=$RANLIB 5349 # Extract the first word of "ranlib", so it can be a program name with args. 5350set dummy ranlib; ac_word=$2 5351echo "$as_me:$LINENO: checking for $ac_word" >&5 5352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5353if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 5354 echo $ECHO_N "(cached) $ECHO_C" >&6 5355else 5356 if test -n "$ac_ct_RANLIB"; then 5357 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5358else 5359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5360for as_dir in $PATH 5361do 5362 IFS=$as_save_IFS 5363 test -z "$as_dir" && as_dir=. 5364 for ac_exec_ext in '' $ac_executable_extensions; do 5365 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5366 ac_cv_prog_ac_ct_RANLIB="ranlib" 5367 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5368 break 2 5369 fi 5370done 5371done 5372 5373 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 5374fi 5375fi 5376ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5377if test -n "$ac_ct_RANLIB"; then 5378 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 5379echo "${ECHO_T}$ac_ct_RANLIB" >&6 5380else 5381 echo "$as_me:$LINENO: result: no" >&5 5382echo "${ECHO_T}no" >&6 5383fi 5384 5385 RANLIB=$ac_ct_RANLIB 5386else 5387 RANLIB="$ac_cv_prog_RANLIB" 5388fi 5389 5390if test -n "$ac_tool_prefix"; then 5391 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5392set dummy ${ac_tool_prefix}strip; ac_word=$2 5393echo "$as_me:$LINENO: checking for $ac_word" >&5 5394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5395if test "${ac_cv_prog_STRIP+set}" = set; then 5396 echo $ECHO_N "(cached) $ECHO_C" >&6 5397else 5398 if test -n "$STRIP"; then 5399 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5400else 5401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5402for as_dir in $PATH 5403do 5404 IFS=$as_save_IFS 5405 test -z "$as_dir" && as_dir=. 5406 for ac_exec_ext in '' $ac_executable_extensions; do 5407 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5408 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5409 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5410 break 2 5411 fi 5412done 5413done 5414 5415fi 5416fi 5417STRIP=$ac_cv_prog_STRIP 5418if test -n "$STRIP"; then 5419 echo "$as_me:$LINENO: result: $STRIP" >&5 5420echo "${ECHO_T}$STRIP" >&6 5421else 5422 echo "$as_me:$LINENO: result: no" >&5 5423echo "${ECHO_T}no" >&6 5424fi 5425 5426fi 5427if test -z "$ac_cv_prog_STRIP"; then 5428 ac_ct_STRIP=$STRIP 5429 # Extract the first word of "strip", so it can be a program name with args. 5430set dummy strip; ac_word=$2 5431echo "$as_me:$LINENO: checking for $ac_word" >&5 5432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 5433if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 5434 echo $ECHO_N "(cached) $ECHO_C" >&6 5435else 5436 if test -n "$ac_ct_STRIP"; then 5437 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5438else 5439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5440for as_dir in $PATH 5441do 5442 IFS=$as_save_IFS 5443 test -z "$as_dir" && as_dir=. 5444 for ac_exec_ext in '' $ac_executable_extensions; do 5445 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5446 ac_cv_prog_ac_ct_STRIP="strip" 5447 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 5448 break 2 5449 fi 5450done 5451done 5452 5453 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 5454fi 5455fi 5456ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5457if test -n "$ac_ct_STRIP"; then 5458 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 5459echo "${ECHO_T}$ac_ct_STRIP" >&6 5460else 5461 echo "$as_me:$LINENO: result: no" >&5 5462echo "${ECHO_T}no" >&6 5463fi 5464 5465 STRIP=$ac_ct_STRIP 5466else 5467 STRIP="$ac_cv_prog_STRIP" 5468fi 5469 5470 5471old_CC="$CC" 5472old_CFLAGS="$CFLAGS" 5473 5474# Set sane defaults for various variables 5475test -z "$AR" && AR=ar 5476test -z "$AR_FLAGS" && AR_FLAGS=cru 5477test -z "$AS" && AS=as 5478test -z "$CC" && CC=cc 5479test -z "$LTCC" && LTCC=$CC 5480test -z "$DLLTOOL" && DLLTOOL=dlltool 5481test -z "$LD" && LD=ld 5482test -z "$LN_S" && LN_S="ln -s" 5483test -z "$MAGIC_CMD" && MAGIC_CMD=file 5484test -z "$NM" && NM=nm 5485test -z "$SED" && SED=sed 5486test -z "$OBJDUMP" && OBJDUMP=objdump 5487test -z "$RANLIB" && RANLIB=: 5488test -z "$STRIP" && STRIP=: 5489test -z "$ac_objext" && ac_objext=o 5490 5491# Determine commands to create old-style static archives. 5492old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 5493old_postinstall_cmds='chmod 644 $oldlib' 5494old_postuninstall_cmds= 5495 5496if test -n "$RANLIB"; then 5497 case $host_os in 5498 openbsd*) 5499 old_postinstall_cmds="\$RANLIB -t \$oldlib~$old_postinstall_cmds" 5500 ;; 5501 *) 5502 old_postinstall_cmds="\$RANLIB \$oldlib~$old_postinstall_cmds" 5503 ;; 5504 esac 5505 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 5506fi 5507 5508# Only perform the check for file, if the check method requires it 5509case $deplibs_check_method in 5510file_magic*) 5511 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 5512 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 5513echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 5514if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5515 echo $ECHO_N "(cached) $ECHO_C" >&6 5516else 5517 case $MAGIC_CMD in 5518[\\/*] | ?:[\\/]*) 5519 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5520 ;; 5521*) 5522 lt_save_MAGIC_CMD="$MAGIC_CMD" 5523 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5524 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5525 for ac_dir in $ac_dummy; do 5526 IFS="$lt_save_ifs" 5527 test -z "$ac_dir" && ac_dir=. 5528 if test -f $ac_dir/${ac_tool_prefix}file; then 5529 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 5530 if test -n "$file_magic_test_file"; then 5531 case $deplibs_check_method in 5532 "file_magic "*) 5533 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5534 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5535 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5536 $EGREP "$file_magic_regex" > /dev/null; then 5537 : 5538 else 5539 cat <<EOF 1>&2 5540 5541*** Warning: the command libtool uses to detect shared libraries, 5542*** $file_magic_cmd, produces output that libtool cannot recognize. 5543*** The result is that libtool may fail to recognize shared libraries 5544*** as such. This will affect the creation of libtool libraries that 5545*** depend on shared libraries, but programs linked with such libtool 5546*** libraries will work regardless of this problem. Nevertheless, you 5547*** may want to report the problem to your system manager and/or to 5548*** bug-libtool@gnu.org 5549 5550EOF 5551 fi ;; 5552 esac 5553 fi 5554 break 5555 fi 5556 done 5557 IFS="$lt_save_ifs" 5558 MAGIC_CMD="$lt_save_MAGIC_CMD" 5559 ;; 5560esac 5561fi 5562 5563MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5564if test -n "$MAGIC_CMD"; then 5565 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5566echo "${ECHO_T}$MAGIC_CMD" >&6 5567else 5568 echo "$as_me:$LINENO: result: no" >&5 5569echo "${ECHO_T}no" >&6 5570fi 5571 5572if test -z "$lt_cv_path_MAGIC_CMD"; then 5573 if test -n "$ac_tool_prefix"; then 5574 echo "$as_me:$LINENO: checking for file" >&5 5575echo $ECHO_N "checking for file... $ECHO_C" >&6 5576if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 5577 echo $ECHO_N "(cached) $ECHO_C" >&6 5578else 5579 case $MAGIC_CMD in 5580[\\/*] | ?:[\\/]*) 5581 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 5582 ;; 5583*) 5584 lt_save_MAGIC_CMD="$MAGIC_CMD" 5585 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5586 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 5587 for ac_dir in $ac_dummy; do 5588 IFS="$lt_save_ifs" 5589 test -z "$ac_dir" && ac_dir=. 5590 if test -f $ac_dir/file; then 5591 lt_cv_path_MAGIC_CMD="$ac_dir/file" 5592 if test -n "$file_magic_test_file"; then 5593 case $deplibs_check_method in 5594 "file_magic "*) 5595 file_magic_regex="`expr \"$deplibs_check_method\" : \"file_magic \(.*\)\"`" 5596 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5597 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 5598 $EGREP "$file_magic_regex" > /dev/null; then 5599 : 5600 else 5601 cat <<EOF 1>&2 5602 5603*** Warning: the command libtool uses to detect shared libraries, 5604*** $file_magic_cmd, produces output that libtool cannot recognize. 5605*** The result is that libtool may fail to recognize shared libraries 5606*** as such. This will affect the creation of libtool libraries that 5607*** depend on shared libraries, but programs linked with such libtool 5608*** libraries will work regardless of this problem. Nevertheless, you 5609*** may want to report the problem to your system manager and/or to 5610*** bug-libtool@gnu.org 5611 5612EOF 5613 fi ;; 5614 esac 5615 fi 5616 break 5617 fi 5618 done 5619 IFS="$lt_save_ifs" 5620 MAGIC_CMD="$lt_save_MAGIC_CMD" 5621 ;; 5622esac 5623fi 5624 5625MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 5626if test -n "$MAGIC_CMD"; then 5627 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 5628echo "${ECHO_T}$MAGIC_CMD" >&6 5629else 5630 echo "$as_me:$LINENO: result: no" >&5 5631echo "${ECHO_T}no" >&6 5632fi 5633 5634 else 5635 MAGIC_CMD=: 5636 fi 5637fi 5638 5639 fi 5640 ;; 5641esac 5642 5643enable_dlopen=no 5644enable_win32_dll=no 5645 5646# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5647if test "${enable_libtool_lock+set}" = set; then 5648 enableval="$enable_libtool_lock" 5649 5650fi; 5651test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5652 5653 5654# Check whether --with-pic or --without-pic was given. 5655if test "${with_pic+set}" = set; then 5656 withval="$with_pic" 5657 pic_mode="$withval" 5658else 5659 pic_mode=default 5660fi; 5661test -z "$pic_mode" && pic_mode=default 5662 5663# Use C for the default configuration in the libtool script 5664tagname= 5665lt_save_CC="$CC" 5666ac_ext=c 5667ac_cpp='$CPP $CPPFLAGS' 5668ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5669ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5670ac_compiler_gnu=$ac_cv_c_compiler_gnu 5671 5672 5673# Source file extension for C test sources. 5674ac_ext=c 5675 5676# Object file extension for compiled C test sources. 5677objext=o 5678objext=$objext 5679 5680# Code to be used in simple compile tests 5681lt_simple_compile_test_code="int some_variable = 0;\n" 5682 5683# Code to be used in simple link tests 5684lt_simple_link_test_code='int main(){return(0);}\n' 5685 5686 5687# If no C compiler was specified, use CC. 5688LTCC=${LTCC-"$CC"} 5689 5690# Allow CC to be a program name with arguments. 5691compiler=$CC 5692 5693 5694# 5695# Check for any special shared library compilation flags. 5696# 5697lt_prog_cc_shlib= 5698if test "$GCC" = no; then 5699 case $host_os in 5700 sco3.2v5*) 5701 lt_prog_cc_shlib='-belf' 5702 ;; 5703 esac 5704fi 5705if test -n "$lt_prog_cc_shlib"; then 5706 { echo "$as_me:$LINENO: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&5 5707echo "$as_me: WARNING: \`$CC' requires \`$lt_prog_cc_shlib' to build shared libraries" >&2;} 5708 if echo "$old_CC $old_CFLAGS " | grep "[ ]$lt_prog_cc_shlib[ ]" >/dev/null; then : 5709 else 5710 { echo "$as_me:$LINENO: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&5 5711echo "$as_me: WARNING: add \`$lt_prog_cc_shlib' to the CC or CFLAGS env variable and reconfigure" >&2;} 5712 lt_cv_prog_cc_can_build_shared=no 5713 fi 5714fi 5715 5716 5717# 5718# Check to make sure the static flag actually works. 5719# 5720echo "$as_me:$LINENO: checking if $compiler static flag $lt_prog_compiler_static works" >&5 5721echo $ECHO_N "checking if $compiler static flag $lt_prog_compiler_static works... $ECHO_C" >&6 5722if test "${lt_prog_compiler_static_works+set}" = set; then 5723 echo $ECHO_N "(cached) $ECHO_C" >&6 5724else 5725 lt_prog_compiler_static_works=no 5726 save_LDFLAGS="$LDFLAGS" 5727 LDFLAGS="$LDFLAGS $lt_prog_compiler_static" 5728 printf "$lt_simple_link_test_code" > conftest.$ac_ext 5729 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 5730 # The compiler can only warn and ignore the option if not recognized 5731 # So say no if there are warnings 5732 if test -s conftest.err; then 5733 # Append any errors to the config.log. 5734 cat conftest.err 1>&5 5735 else 5736 lt_prog_compiler_static_works=yes 5737 fi 5738 fi 5739 $rm conftest* 5740 LDFLAGS="$save_LDFLAGS" 5741 5742fi 5743echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 5744echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 5745 5746if test x"$lt_prog_compiler_static_works" = xyes; then 5747 : 5748else 5749 lt_prog_compiler_static= 5750fi 5751 5752 5753 5754## CAVEAT EMPTOR: 5755## There is no encapsulation within the following macros, do not change 5756## the running order or otherwise move them around unless you know exactly 5757## what you are doing... 5758 5759lt_prog_compiler_no_builtin_flag= 5760 5761if test "$GCC" = yes; then 5762 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 5763 5764 5765echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 5766echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 5767if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 5768 echo $ECHO_N "(cached) $ECHO_C" >&6 5769else 5770 lt_cv_prog_compiler_rtti_exceptions=no 5771 ac_outfile=conftest.$ac_objext 5772 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 5773 lt_compiler_flag="-fno-rtti -fno-exceptions" 5774 # Insert the option either (1) after the last *FLAGS variable, or 5775 # (2) before a word containing "conftest.", or (3) at the end. 5776 # Note that $ac_compile itself does not contain backslashes and begins 5777 # with a dollar sign (not a hyphen), so the echo should work correctly. 5778 # The option is referenced via a variable to avoid confusing sed. 5779 lt_compile=`echo "$ac_compile" | $SED \ 5780 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 5781 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 5782 -e 's:$: $lt_compiler_flag:'` 5783 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 5784 (eval "$lt_compile" 2>conftest.err) 5785 ac_status=$? 5786 cat conftest.err >&5 5787 echo "$as_me:__oline__: \$? = $ac_status" >&5 5788 if (exit $ac_status) && test -s "$ac_outfile"; then 5789 # The compiler can only warn and ignore the option if not recognized 5790 # So say no if there are warnings 5791 if test ! -s conftest.err; then 5792 lt_cv_prog_compiler_rtti_exceptions=yes 5793 fi 5794 fi 5795 $rm conftest* 5796 5797fi 5798echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 5799echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 5800 5801if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 5802 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 5803else 5804 : 5805fi 5806 5807fi 5808 5809lt_prog_compiler_wl= 5810lt_prog_compiler_pic= 5811lt_prog_compiler_static= 5812 5813echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 5814echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 5815 5816 if test "$GCC" = yes; then 5817 lt_prog_compiler_wl='-Wl,' 5818 lt_prog_compiler_static='-static' 5819 5820 case $host_os in 5821 aix*) 5822 # All AIX code is PIC. 5823 if test "$host_cpu" = ia64; then 5824 # AIX 5 now supports IA64 processor 5825 lt_prog_compiler_static='-Bstatic' 5826 fi 5827 ;; 5828 5829 amigaos*) 5830 # FIXME: we need at least 68020 code to build shared libraries, but 5831 # adding the `-m68020' flag to GCC prevents building anything better, 5832 # like `-m68040'. 5833 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 5834 ;; 5835 5836 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 5837 # PIC is the default for these OSes. 5838 ;; 5839 5840 mingw* | pw32* | os2*) 5841 # This hack is so that the source file can tell whether it is being 5842 # built for inclusion in a dll (and should export symbols for example). 5843 lt_prog_compiler_pic='-DDLL_EXPORT' 5844 ;; 5845 5846 darwin* | rhapsody*) 5847 # PIC is the default on this platform 5848 # Common symbols not allowed in MH_DYLIB files 5849 lt_prog_compiler_pic='-fno-common' 5850 ;; 5851 5852 msdosdjgpp*) 5853 # Just because we use GCC doesn't mean we suddenly get shared libraries 5854 # on systems that don't support them. 5855 lt_prog_compiler_can_build_shared=no 5856 enable_shared=no 5857 ;; 5858 5859 sysv4*MP*) 5860 if test -d /usr/nec; then 5861 lt_prog_compiler_pic=-Kconform_pic 5862 fi 5863 ;; 5864 5865 hpux*) 5866 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5867 # not for PA HP-UX. 5868 case "$host_cpu" in 5869 hppa*64*|ia64*) 5870 # +Z the default 5871 ;; 5872 *) 5873 lt_prog_compiler_pic='-fPIC' 5874 ;; 5875 esac 5876 ;; 5877 5878 *) 5879 lt_prog_compiler_pic='-fPIC' 5880 ;; 5881 esac 5882 else 5883 # PORTME Check for flag to pass linker flags through the system compiler. 5884 case $host_os in 5885 aix*) 5886 lt_prog_compiler_wl='-Wl,' 5887 if test "$host_cpu" = ia64; then 5888 # AIX 5 now supports IA64 processor 5889 lt_prog_compiler_static='-Bstatic' 5890 else 5891 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 5892 fi 5893 ;; 5894 5895 mingw* | pw32* | os2*) 5896 # This hack is so that the source file can tell whether it is being 5897 # built for inclusion in a dll (and should export symbols for example). 5898 lt_prog_compiler_pic='-DDLL_EXPORT' 5899 ;; 5900 5901 hpux9* | hpux10* | hpux11*) 5902 lt_prog_compiler_wl='-Wl,' 5903 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 5904 # not for PA HP-UX. 5905 case "$host_cpu" in 5906 hppa*64*|ia64*) 5907 # +Z the default 5908 ;; 5909 *) 5910 lt_prog_compiler_pic='+Z' 5911 ;; 5912 esac 5913 # Is there a better lt_prog_compiler_static that works with the bundled CC? 5914 lt_prog_compiler_static='${wl}-a ${wl}archive' 5915 ;; 5916 5917 irix5* | irix6* | nonstopux*) 5918 lt_prog_compiler_wl='-Wl,' 5919 # PIC (with -KPIC) is the default. 5920 lt_prog_compiler_static='-non_shared' 5921 ;; 5922 5923 newsos6) 5924 lt_prog_compiler_pic='-KPIC' 5925 lt_prog_compiler_static='-Bstatic' 5926 ;; 5927 5928 linux*) 5929 case $CC in 5930 icc* | ecc*) 5931 lt_prog_compiler_wl='-Wl,' 5932 lt_prog_compiler_pic='-KPIC' 5933 lt_prog_compiler_static='-static' 5934 ;; 5935 ccc*) 5936 lt_prog_compiler_wl='-Wl,' 5937 # All Alpha code is PIC. 5938 lt_prog_compiler_static='-non_shared' 5939 ;; 5940 esac 5941 ;; 5942 5943 osf3* | osf4* | osf5*) 5944 lt_prog_compiler_wl='-Wl,' 5945 # All OSF/1 code is PIC. 5946 lt_prog_compiler_static='-non_shared' 5947 ;; 5948 5949 sco3.2v5*) 5950 lt_prog_compiler_pic='-Kpic' 5951 lt_prog_compiler_static='-dn' 5952 ;; 5953 5954 solaris*) 5955 lt_prog_compiler_wl='-Wl,' 5956 lt_prog_compiler_pic='-KPIC' 5957 lt_prog_compiler_static='-Bstatic' 5958 ;; 5959 5960 sunos4*) 5961 lt_prog_compiler_wl='-Qoption ld ' 5962 lt_prog_compiler_pic='-PIC' 5963 lt_prog_compiler_static='-Bstatic' 5964 ;; 5965 5966 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 5967 lt_prog_compiler_wl='-Wl,' 5968 lt_prog_compiler_pic='-KPIC' 5969 lt_prog_compiler_static='-Bstatic' 5970 ;; 5971 5972 sysv4*MP*) 5973 if test -d /usr/nec ;then 5974 lt_prog_compiler_pic='-Kconform_pic' 5975 lt_prog_compiler_static='-Bstatic' 5976 fi 5977 ;; 5978 5979 uts4*) 5980 lt_prog_compiler_pic='-pic' 5981 lt_prog_compiler_static='-Bstatic' 5982 ;; 5983 5984 *) 5985 lt_prog_compiler_can_build_shared=no 5986 ;; 5987 esac 5988 fi 5989 5990echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 5991echo "${ECHO_T}$lt_prog_compiler_pic" >&6 5992 5993# 5994# Check to make sure the PIC flag actually works. 5995# 5996if test -n "$lt_prog_compiler_pic"; then 5997 5998echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 5999echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6000if test "${lt_prog_compiler_pic_works+set}" = set; then 6001 echo $ECHO_N "(cached) $ECHO_C" >&6 6002else 6003 lt_prog_compiler_pic_works=no 6004 ac_outfile=conftest.$ac_objext 6005 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6006 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6007 # Insert the option either (1) after the last *FLAGS variable, or 6008 # (2) before a word containing "conftest.", or (3) at the end. 6009 # Note that $ac_compile itself does not contain backslashes and begins 6010 # with a dollar sign (not a hyphen), so the echo should work correctly. 6011 # The option is referenced via a variable to avoid confusing sed. 6012 lt_compile=`echo "$ac_compile" | $SED \ 6013 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6014 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6015 -e 's:$: $lt_compiler_flag:'` 6016 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 6017 (eval "$lt_compile" 2>conftest.err) 6018 ac_status=$? 6019 cat conftest.err >&5 6020 echo "$as_me:__oline__: \$? = $ac_status" >&5 6021 if (exit $ac_status) && test -s "$ac_outfile"; then 6022 # The compiler can only warn and ignore the option if not recognized 6023 # So say no if there are warnings 6024 if test ! -s conftest.err; then 6025 lt_prog_compiler_pic_works=yes 6026 fi 6027 fi 6028 $rm conftest* 6029 6030fi 6031echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6032echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6033 6034if test x"$lt_prog_compiler_pic_works" = xyes; then 6035 case $lt_prog_compiler_pic in 6036 "" | " "*) ;; 6037 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6038 esac 6039else 6040 lt_prog_compiler_pic= 6041 lt_prog_compiler_can_build_shared=no 6042fi 6043 6044fi 6045case "$host_os" in 6046 # For platforms which do not support PIC, -DPIC is meaningless: 6047 *djgpp*) 6048 lt_prog_compiler_pic= 6049 ;; 6050 *) 6051 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6052 ;; 6053esac 6054 6055echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6056echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6057if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6058 echo $ECHO_N "(cached) $ECHO_C" >&6 6059else 6060 lt_cv_prog_compiler_c_o=no 6061 $rm -r conftest 2>/dev/null 6062 mkdir conftest 6063 cd conftest 6064 mkdir out 6065 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 6066 6067 lt_compiler_flag="-o out/conftest2.$ac_objext" 6068 # Insert the option either (1) after the last *FLAGS variable, or 6069 # (2) before a word containing "conftest.", or (3) at the end. 6070 # Note that $ac_compile itself does not contain backslashes and begins 6071 # with a dollar sign (not a hyphen), so the echo should work correctly. 6072 lt_compile=`echo "$ac_compile" | $SED \ 6073 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 6074 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6075 -e 's:$: $lt_compiler_flag:'` 6076 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 6077 (eval "$lt_compile" 2>out/conftest.err) 6078 ac_status=$? 6079 cat out/conftest.err >&5 6080 echo "$as_me:__oline__: \$? = $ac_status" >&5 6081 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6082 then 6083 # The compiler can only warn and ignore the option if not recognized 6084 # So say no if there are warnings 6085 if test ! -s out/conftest.err; then 6086 lt_cv_prog_compiler_c_o=yes 6087 fi 6088 fi 6089 chmod u+w . 6090 $rm conftest* 6091 # SGI C++ compiler will create directory out/ii_files/ for 6092 # template instantiation 6093 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 6094 $rm out/* && rmdir out 6095 cd .. 6096 rmdir conftest 6097 $rm conftest* 6098 6099fi 6100echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6101echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6102 6103 6104hard_links="nottested" 6105if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6106 # do not overwrite the value of need_locks provided by the user 6107 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6108echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6109 hard_links=yes 6110 $rm conftest* 6111 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6112 touch conftest.a 6113 ln conftest.a conftest.b 2>&5 || hard_links=no 6114 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6115 echo "$as_me:$LINENO: result: $hard_links" >&5 6116echo "${ECHO_T}$hard_links" >&6 6117 if test "$hard_links" = no; then 6118 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6119echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6120 need_locks=warn 6121 fi 6122else 6123 need_locks=no 6124fi 6125 6126echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6127echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6128 6129 runpath_var= 6130 allow_undefined_flag= 6131 enable_shared_with_static_runtimes=no 6132 archive_cmds= 6133 archive_expsym_cmds= 6134 old_archive_From_new_cmds= 6135 old_archive_from_expsyms_cmds= 6136 export_dynamic_flag_spec= 6137 whole_archive_flag_spec= 6138 thread_safe_flag_spec= 6139 hardcode_libdir_flag_spec= 6140 hardcode_libdir_flag_spec_ld= 6141 hardcode_libdir_separator= 6142 hardcode_direct=no 6143 hardcode_minus_L=no 6144 hardcode_shlibpath_var=unsupported 6145 link_all_deplibs=unknown 6146 hardcode_automatic=no 6147 module_cmds= 6148 module_expsym_cmds= 6149 always_export_symbols=no 6150 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6151 # include_expsyms should be a list of space-separated symbols to be *always* 6152 # included in the symbol list 6153 include_expsyms= 6154 # exclude_expsyms can be an extended regexp of symbols to exclude 6155 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6156 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6157 # as well as any symbol that contains `d'. 6158 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6159 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6160 # platforms (ab)use it in PIC code, but their linkers get confused if 6161 # the symbol is explicitly referenced. Since portable code cannot 6162 # rely on this symbol name, it's probably fine to never include it in 6163 # preloaded symbol tables. 6164 extract_expsyms_cmds= 6165 6166 case $host_os in 6167 cygwin* | mingw* | pw32*) 6168 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6169 # When not using gcc, we currently assume that we are using 6170 # Microsoft Visual C++. 6171 if test "$GCC" != yes; then 6172 with_gnu_ld=no 6173 fi 6174 ;; 6175 openbsd*) 6176 with_gnu_ld=no 6177 ;; 6178 esac 6179 6180 ld_shlibs=yes 6181 if test "$with_gnu_ld" = yes; then 6182 # If archive_cmds runs LD, not CC, wlarc should be empty 6183 wlarc='${wl}' 6184 6185 # See if GNU ld supports shared libraries. 6186 case $host_os in 6187 aix3* | aix4* | aix5*) 6188 # On AIX/PPC, the GNU linker is very broken 6189 if test "$host_cpu" != ia64; then 6190 ld_shlibs=no 6191 cat <<EOF 1>&2 6192 6193*** Warning: the GNU linker, at least up to release 2.9.1, is reported 6194*** to be unable to reliably create shared libraries on AIX. 6195*** Therefore, libtool is disabling shared libraries support. If you 6196*** really care for shared libraries, you may want to modify your PATH 6197*** so that a non-GNU linker is found, and then restart. 6198 6199EOF 6200 fi 6201 ;; 6202 6203 amigaos*) 6204 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)' 6205 hardcode_libdir_flag_spec='-L$libdir' 6206 hardcode_minus_L=yes 6207 6208 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 6209 # that the semantics of dynamic libraries on AmigaOS, at least up 6210 # to version 4, is to share data among multiple programs linked 6211 # with the same dynamic library. Since this doesn't match the 6212 # behavior of shared libraries on other platforms, we can't use 6213 # them. 6214 ld_shlibs=no 6215 ;; 6216 6217 beos*) 6218 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6219 allow_undefined_flag=unsupported 6220 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 6221 # support --undefined. This deserves some investigation. FIXME 6222 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6223 else 6224 ld_shlibs=no 6225 fi 6226 ;; 6227 6228 cygwin* | mingw* | pw32*) 6229 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 6230 # as there is no search path for DLLs. 6231 hardcode_libdir_flag_spec='-L$libdir' 6232 allow_undefined_flag=unsupported 6233 always_export_symbols=no 6234 enable_shared_with_static_runtimes=yes 6235 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 6236 6237 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 6238 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6239 # If the export-symbols file already is a .def file (1st line 6240 # is EXPORTS), use it as is; otherwise, prepend... 6241 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 6242 cp $export_symbols $output_objdir/$soname.def; 6243 else 6244 echo EXPORTS > $output_objdir/$soname.def; 6245 cat $export_symbols >> $output_objdir/$soname.def; 6246 fi~ 6247 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 6248 else 6249 ld_shlibs=no 6250 fi 6251 ;; 6252 6253 netbsd*) 6254 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6255 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 6256 wlarc= 6257 else 6258 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6259 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6260 fi 6261 ;; 6262 6263 solaris* | sysv5*) 6264 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 6265 ld_shlibs=no 6266 cat <<EOF 1>&2 6267 6268*** Warning: The releases 2.8.* of the GNU linker cannot reliably 6269*** create shared libraries on Solaris systems. Therefore, libtool 6270*** is disabling shared libraries support. We urge you to upgrade GNU 6271*** binutils to release 2.9.1 or newer. Another option is to modify 6272*** your PATH or compiler configuration so that the native linker is 6273*** used, and then restart. 6274 6275EOF 6276 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6277 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6278 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6279 else 6280 ld_shlibs=no 6281 fi 6282 ;; 6283 6284 sunos4*) 6285 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6286 wlarc= 6287 hardcode_direct=yes 6288 hardcode_shlibpath_var=no 6289 ;; 6290 6291 linux*) 6292 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6293 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6294 archive_cmds="$tmp_archive_cmds" 6295 supports_anon_versioning=no 6296 case `$LD -v 2>/dev/null` in 6297 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 6298 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 6299 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 6300 *\ 2.11.*) ;; # other 2.11 versions 6301 *) supports_anon_versioning=yes ;; 6302 esac 6303 if test $supports_anon_versioning = yes; then 6304 archive_expsym_cmds='$echo "{ global:" > $output_objdir/$libname.ver~ 6305cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 6306$echo "local: *; };" >> $output_objdir/$libname.ver~ 6307 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 6308 else 6309 archive_expsym_cmds="$tmp_archive_cmds" 6310 fi 6311 else 6312 ld_shlibs=no 6313 fi 6314 ;; 6315 6316 *) 6317 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 6318 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 6319 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 6320 else 6321 ld_shlibs=no 6322 fi 6323 ;; 6324 esac 6325 6326 if test "$ld_shlibs" = yes; then 6327 runpath_var=LD_RUN_PATH 6328 hardcode_libdir_flag_spec='${wl}--rpath ${wl}$libdir' 6329 export_dynamic_flag_spec='${wl}--export-dynamic' 6330 # ancient GNU ld didn't support --whole-archive et. al. 6331 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 6332 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 6333 else 6334 whole_archive_flag_spec= 6335 fi 6336 fi 6337 else 6338 # PORTME fill in a description of your system's linker (not GNU ld) 6339 case $host_os in 6340 aix3*) 6341 allow_undefined_flag=unsupported 6342 always_export_symbols=yes 6343 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' 6344 # Note: this linker hardcodes the directories in LIBPATH if there 6345 # are no directories specified by -L. 6346 hardcode_minus_L=yes 6347 if test "$GCC" = yes && test -z "$link_static_flag"; then 6348 # Neither direct hardcoding nor static linking is supported with a 6349 # broken collect2. 6350 hardcode_direct=unsupported 6351 fi 6352 ;; 6353 6354 aix4* | aix5*) 6355 if test "$host_cpu" = ia64; then 6356 # On IA64, the linker does run time linking by default, so we don't 6357 # have to do anything special. 6358 aix_use_runtimelinking=no 6359 exp_sym_flag='-Bexport' 6360 no_entry_flag="" 6361 else 6362 # If we're using GNU nm, then we don't want the "-C" option. 6363 # -C means demangle to AIX nm, but means don't demangle with GNU nm 6364 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 6365 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 6366 else 6367 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' 6368 fi 6369 aix_use_runtimelinking=no 6370 6371 # Test if we are trying to use run time linking or normal 6372 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 6373 # need to do runtime linking. 6374 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 6375 for ld_flag in $LDFLAGS; do 6376 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 6377 aix_use_runtimelinking=yes 6378 break 6379 fi 6380 done 6381 esac 6382 6383 exp_sym_flag='-bexport' 6384 no_entry_flag='-bnoentry' 6385 fi 6386 6387 # When large executables or shared objects are built, AIX ld can 6388 # have problems creating the table of contents. If linking a library 6389 # or program results in "error TOC overflow" add -mminimal-toc to 6390 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 6391 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 6392 6393 archive_cmds='' 6394 hardcode_direct=yes 6395 hardcode_libdir_separator=':' 6396 link_all_deplibs=yes 6397 6398 if test "$GCC" = yes; then 6399 case $host_os in aix4.012|aix4.012.*) 6400 # We only want to do this on AIX 4.2 and lower, the check 6401 # below for broken collect2 doesn't work under 4.3+ 6402 collect2name=`${CC} -print-prog-name=collect2` 6403 if test -f "$collect2name" && \ 6404 strings "$collect2name" | grep resolve_lib_name >/dev/null 6405 then 6406 # We have reworked collect2 6407 hardcode_direct=yes 6408 else 6409 # We have old collect2 6410 hardcode_direct=unsupported 6411 # It fails to find uninstalled libraries when the uninstalled 6412 # path is not listed in the libpath. Setting hardcode_minus_L 6413 # to unsupported forces relinking 6414 hardcode_minus_L=yes 6415 hardcode_libdir_flag_spec='-L$libdir' 6416 hardcode_libdir_separator= 6417 fi 6418 esac 6419 shared_flag='-shared' 6420 else 6421 # not using gcc 6422 if test "$host_cpu" = ia64; then 6423 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 6424 # chokes on -Wl,-G. The following line is correct: 6425 shared_flag='-G' 6426 else 6427 if test "$aix_use_runtimelinking" = yes; then 6428 shared_flag='${wl}-G' 6429 else 6430 shared_flag='${wl}-bM:SRE' 6431 fi 6432 fi 6433 fi 6434 6435 # It seems that -bexpall does not export symbols beginning with 6436 # underscore (_), so it is better to generate a list of symbols to export. 6437 always_export_symbols=yes 6438 if test "$aix_use_runtimelinking" = yes; then 6439 # Warning - without using the other runtime loading flags (-brtl), 6440 # -berok will link without error, but may produce a broken library. 6441 allow_undefined_flag='-berok' 6442 # Determine the default libpath from the value encoded in an empty executable. 6443 cat >conftest.$ac_ext <<_ACEOF 6444/* confdefs.h. */ 6445_ACEOF 6446cat confdefs.h >>conftest.$ac_ext 6447cat >>conftest.$ac_ext <<_ACEOF 6448/* end confdefs.h. */ 6449 6450int 6451main () 6452{ 6453 6454 ; 6455 return 0; 6456} 6457_ACEOF 6458rm -f conftest.$ac_objext conftest$ac_exeext 6459if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6460 (eval $ac_link) 2>conftest.er1 6461 ac_status=$? 6462 grep -v '^ *+' conftest.er1 >conftest.err 6463 rm -f conftest.er1 6464 cat conftest.err >&5 6465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6466 (exit $ac_status); } && 6467 { ac_try='test -z "$ac_c_werror_flag" 6468 || test ! -s conftest.err' 6469 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6470 (eval $ac_try) 2>&5 6471 ac_status=$? 6472 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6473 (exit $ac_status); }; } && 6474 { ac_try='test -s conftest$ac_exeext' 6475 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6476 (eval $ac_try) 2>&5 6477 ac_status=$? 6478 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6479 (exit $ac_status); }; }; then 6480 6481aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6482}'` 6483# Check for a 64-bit object if we didn't find anything. 6484if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6485}'`; fi 6486else 6487 echo "$as_me: failed program was:" >&5 6488sed 's/^/| /' conftest.$ac_ext >&5 6489 6490fi 6491rm -f conftest.err conftest.$ac_objext \ 6492 conftest$ac_exeext conftest.$ac_ext 6493if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6494 6495 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6496 archive_expsym_cmds="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 6497 else 6498 if test "$host_cpu" = ia64; then 6499 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 6500 allow_undefined_flag="-z nodefs" 6501 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 6502 else 6503 # Determine the default libpath from the value encoded in an empty executable. 6504 cat >conftest.$ac_ext <<_ACEOF 6505/* confdefs.h. */ 6506_ACEOF 6507cat confdefs.h >>conftest.$ac_ext 6508cat >>conftest.$ac_ext <<_ACEOF 6509/* end confdefs.h. */ 6510 6511int 6512main () 6513{ 6514 6515 ; 6516 return 0; 6517} 6518_ACEOF 6519rm -f conftest.$ac_objext conftest$ac_exeext 6520if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 6521 (eval $ac_link) 2>conftest.er1 6522 ac_status=$? 6523 grep -v '^ *+' conftest.er1 >conftest.err 6524 rm -f conftest.er1 6525 cat conftest.err >&5 6526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6527 (exit $ac_status); } && 6528 { ac_try='test -z "$ac_c_werror_flag" 6529 || test ! -s conftest.err' 6530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6531 (eval $ac_try) 2>&5 6532 ac_status=$? 6533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6534 (exit $ac_status); }; } && 6535 { ac_try='test -s conftest$ac_exeext' 6536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 6537 (eval $ac_try) 2>&5 6538 ac_status=$? 6539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 6540 (exit $ac_status); }; }; then 6541 6542aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6543}'` 6544# Check for a 64-bit object if we didn't find anything. 6545if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 6546}'`; fi 6547else 6548 echo "$as_me: failed program was:" >&5 6549sed 's/^/| /' conftest.$ac_ext >&5 6550 6551fi 6552rm -f conftest.err conftest.$ac_objext \ 6553 conftest$ac_exeext conftest.$ac_ext 6554if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 6555 6556 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 6557 # Warning - without using the other run time loading flags, 6558 # -berok will link without error, but may produce a broken library. 6559 no_undefined_flag=' ${wl}-bernotok' 6560 allow_undefined_flag=' ${wl}-berok' 6561 # -bexpall does not export symbols beginning with underscore (_) 6562 always_export_symbols=yes 6563 # Exported symbols can be pulled into shared objects from archives 6564 whole_archive_flag_spec=' ' 6565 archive_cmds_need_lc=yes 6566 # This is similar to how AIX traditionally builds it's shared libraries. 6567 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 6568 fi 6569 fi 6570 ;; 6571 6572 amigaos*) 6573 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)' 6574 hardcode_libdir_flag_spec='-L$libdir' 6575 hardcode_minus_L=yes 6576 # see comment about different semantics on the GNU ld section 6577 ld_shlibs=no 6578 ;; 6579 6580 bsdi4*) 6581 export_dynamic_flag_spec=-rdynamic 6582 ;; 6583 6584 cygwin* | mingw* | pw32*) 6585 # When not using gcc, we currently assume that we are using 6586 # Microsoft Visual C++. 6587 # hardcode_libdir_flag_spec is actually meaningless, as there is 6588 # no search path for DLLs. 6589 hardcode_libdir_flag_spec=' ' 6590 allow_undefined_flag=unsupported 6591 # Tell ltmain to make .lib files, not .a files. 6592 libext=lib 6593 # Tell ltmain to make .dll files, not .so files. 6594 shrext_cmds=".dll" 6595 # FIXME: Setting linknames here is a bad hack. 6596 archive_cmds='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 6597 # The linker will automatically build a .lib file if we build a DLL. 6598 old_archive_From_new_cmds='true' 6599 # FIXME: Should let the user specify the lib program. 6600 old_archive_cmds='lib /OUT:$oldlib$oldobjs$old_deplibs' 6601 fix_srcfile_path='`cygpath -w "$srcfile"`' 6602 enable_shared_with_static_runtimes=yes 6603 ;; 6604 6605 darwin* | rhapsody*) 6606 if test "$GXX" = yes ; then 6607 archive_cmds_need_lc=no 6608 case "$host_os" in 6609 rhapsody* | darwin1.[012]) 6610 allow_undefined_flag='-undefined suppress' 6611 ;; 6612 *) # Darwin 1.3 on 6613 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 6614 allow_undefined_flag='-flat_namespace -undefined suppress' 6615 else 6616 case ${MACOSX_DEPLOYMENT_TARGET} in 6617 10.[012]) 6618 allow_undefined_flag='-flat_namespace -undefined suppress' 6619 ;; 6620 10.*) 6621 allow_undefined_flag='-undefined dynamic_lookup' 6622 ;; 6623 esac 6624 fi 6625 ;; 6626 esac 6627 lt_int_apple_cc_single_mod=no 6628 output_verbose_link_cmd='echo' 6629 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 6630 lt_int_apple_cc_single_mod=yes 6631 fi 6632 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6633 archive_cmds='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6634 else 6635 archive_cmds='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 6636 fi 6637 module_cmds='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 6638 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 6639 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 6640 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6641 else 6642 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6643 fi 6644 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 6645 hardcode_direct=no 6646 hardcode_automatic=yes 6647 hardcode_shlibpath_var=unsupported 6648 whole_archive_flag_spec='-all_load $convenience' 6649 link_all_deplibs=yes 6650 else 6651 ld_shlibs=no 6652 fi 6653 ;; 6654 6655 dgux*) 6656 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6657 hardcode_libdir_flag_spec='-L$libdir' 6658 hardcode_shlibpath_var=no 6659 ;; 6660 6661 freebsd1*) 6662 ld_shlibs=no 6663 ;; 6664 6665 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 6666 # support. Future versions do this automatically, but an explicit c++rt0.o 6667 # does not break anything, and helps significantly (at the cost of a little 6668 # extra space). 6669 freebsd2.2*) 6670 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 6671 hardcode_libdir_flag_spec='-R$libdir' 6672 hardcode_direct=yes 6673 hardcode_shlibpath_var=no 6674 ;; 6675 6676 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 6677 freebsd2*) 6678 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6679 hardcode_direct=yes 6680 hardcode_minus_L=yes 6681 hardcode_shlibpath_var=no 6682 ;; 6683 6684 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 6685 freebsd* | kfreebsd*-gnu) 6686 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 6687 hardcode_libdir_flag_spec='-R$libdir' 6688 hardcode_direct=yes 6689 hardcode_shlibpath_var=no 6690 ;; 6691 6692 hpux9*) 6693 if test "$GCC" = yes; then 6694 archive_cmds='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 6695 else 6696 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' 6697 fi 6698 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6699 hardcode_libdir_separator=: 6700 hardcode_direct=yes 6701 6702 # hardcode_minus_L: Not really in the search PATH, 6703 # but as the default location of the library. 6704 hardcode_minus_L=yes 6705 export_dynamic_flag_spec='${wl}-E' 6706 ;; 6707 6708 hpux10* | hpux11*) 6709 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 6710 case "$host_cpu" in 6711 hppa*64*|ia64*) 6712 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6713 ;; 6714 *) 6715 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 6716 ;; 6717 esac 6718 else 6719 case "$host_cpu" in 6720 hppa*64*|ia64*) 6721 archive_cmds='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 6722 ;; 6723 *) 6724 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 6725 ;; 6726 esac 6727 fi 6728 if test "$with_gnu_ld" = no; then 6729 case "$host_cpu" in 6730 hppa*64*) 6731 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6732 hardcode_libdir_flag_spec_ld='+b $libdir' 6733 hardcode_libdir_separator=: 6734 hardcode_direct=no 6735 hardcode_shlibpath_var=no 6736 ;; 6737 ia64*) 6738 hardcode_libdir_flag_spec='-L$libdir' 6739 hardcode_direct=no 6740 hardcode_shlibpath_var=no 6741 6742 # hardcode_minus_L: Not really in the search PATH, 6743 # but as the default location of the library. 6744 hardcode_minus_L=yes 6745 ;; 6746 *) 6747 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 6748 hardcode_libdir_separator=: 6749 hardcode_direct=yes 6750 export_dynamic_flag_spec='${wl}-E' 6751 6752 # hardcode_minus_L: Not really in the search PATH, 6753 # but as the default location of the library. 6754 hardcode_minus_L=yes 6755 ;; 6756 esac 6757 fi 6758 ;; 6759 6760 irix5* | irix6* | nonstopux*) 6761 if test "$GCC" = yes; then 6762 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6763 else 6764 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6765 hardcode_libdir_flag_spec_ld='-rpath $libdir' 6766 fi 6767 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6768 hardcode_libdir_separator=: 6769 link_all_deplibs=yes 6770 ;; 6771 6772 netbsd*) 6773 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 6774 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 6775 else 6776 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 6777 fi 6778 hardcode_libdir_flag_spec='-R$libdir' 6779 hardcode_direct=yes 6780 hardcode_shlibpath_var=no 6781 ;; 6782 6783 newsos6) 6784 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6785 hardcode_direct=yes 6786 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6787 hardcode_libdir_separator=: 6788 hardcode_shlibpath_var=no 6789 ;; 6790 6791 openbsd*) 6792 hardcode_direct=yes 6793 hardcode_shlibpath_var=no 6794 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6795 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6797 export_dynamic_flag_spec='${wl}-E' 6798 else 6799 case $host_os in 6800 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 6801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 6802 hardcode_libdir_flag_spec='-R$libdir' 6803 ;; 6804 *) 6805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 6806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 6807 ;; 6808 esac 6809 fi 6810 ;; 6811 6812 os2*) 6813 hardcode_libdir_flag_spec='-L$libdir' 6814 hardcode_minus_L=yes 6815 allow_undefined_flag=unsupported 6816 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' 6817 old_archive_From_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 6818 ;; 6819 6820 osf3*) 6821 if test "$GCC" = yes; then 6822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6823 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6824 else 6825 allow_undefined_flag=' -expect_unresolved \*' 6826 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6827 fi 6828 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6829 hardcode_libdir_separator=: 6830 ;; 6831 6832 osf4* | osf5*) # as osf3* with the addition of -msym flag 6833 if test "$GCC" = yes; then 6834 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 6835 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 6836 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6837 else 6838 allow_undefined_flag=' -expect_unresolved \*' 6839 archive_cmds='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 6840 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 6841 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 6842 6843 # Both c and cxx compiler support -rpath directly 6844 hardcode_libdir_flag_spec='-rpath $libdir' 6845 fi 6846 hardcode_libdir_separator=: 6847 ;; 6848 6849 sco3.2v5*) 6850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6851 hardcode_shlibpath_var=no 6852 export_dynamic_flag_spec='${wl}-Bexport' 6853 runpath_var=LD_RUN_PATH 6854 hardcode_runpath_var=yes 6855 ;; 6856 6857 solaris*) 6858 no_undefined_flag=' -z text' 6859 if test "$GCC" = yes; then 6860 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6861 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6862 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 6863 else 6864 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6865 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6866 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6867 fi 6868 hardcode_libdir_flag_spec='-R$libdir' 6869 hardcode_shlibpath_var=no 6870 case $host_os in 6871 solaris2.[0-5] | solaris2.[0-5].*) ;; 6872 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 6873 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' ;; 6874 esac 6875 link_all_deplibs=yes 6876 ;; 6877 6878 sunos4*) 6879 if test "x$host_vendor" = xsequent; then 6880 # Use $CC to link under sequent, because it throws in some extra .o 6881 # files that make .init and .fini sections work. 6882 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 6883 else 6884 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 6885 fi 6886 hardcode_libdir_flag_spec='-L$libdir' 6887 hardcode_direct=yes 6888 hardcode_minus_L=yes 6889 hardcode_shlibpath_var=no 6890 ;; 6891 6892 sysv4) 6893 case $host_vendor in 6894 sni) 6895 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6896 hardcode_direct=yes # is this really true??? 6897 ;; 6898 siemens) 6899 ## LD is ld it makes a PLAMLIB 6900 ## CC just makes a GrossModule. 6901 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6902 reload_cmds='$CC -r -o $output$reload_objs' 6903 hardcode_direct=no 6904 ;; 6905 motorola) 6906 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6907 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 6908 ;; 6909 esac 6910 runpath_var='LD_RUN_PATH' 6911 hardcode_shlibpath_var=no 6912 ;; 6913 6914 sysv4.3*) 6915 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6916 hardcode_shlibpath_var=no 6917 export_dynamic_flag_spec='-Bexport' 6918 ;; 6919 6920 sysv4*MP*) 6921 if test -d /usr/nec; then 6922 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6923 hardcode_shlibpath_var=no 6924 runpath_var=LD_RUN_PATH 6925 hardcode_runpath_var=yes 6926 ld_shlibs=yes 6927 fi 6928 ;; 6929 6930 sysv4.2uw2*) 6931 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 6932 hardcode_direct=yes 6933 hardcode_minus_L=no 6934 hardcode_shlibpath_var=no 6935 hardcode_runpath_var=yes 6936 runpath_var=LD_RUN_PATH 6937 ;; 6938 6939 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 6940 no_undefined_flag='${wl}-z ${wl}text' 6941 if test "$GCC" = yes; then 6942 archive_cmds='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6943 else 6944 archive_cmds='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 6945 fi 6946 runpath_var='LD_RUN_PATH' 6947 hardcode_shlibpath_var=no 6948 ;; 6949 6950 sysv5*) 6951 no_undefined_flag=' -z text' 6952 # $CC -shared without GNU ld will not create a library from C++ 6953 # object files and a static libstdc++, better avoid it by now 6954 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 6955 archive_expsym_cmds='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 6956 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 6957 hardcode_libdir_flag_spec= 6958 hardcode_shlibpath_var=no 6959 runpath_var='LD_RUN_PATH' 6960 ;; 6961 6962 uts4*) 6963 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 6964 hardcode_libdir_flag_spec='-L$libdir' 6965 hardcode_shlibpath_var=no 6966 ;; 6967 6968 *) 6969 ld_shlibs=no 6970 ;; 6971 esac 6972 fi 6973 6974echo "$as_me:$LINENO: result: $ld_shlibs" >&5 6975echo "${ECHO_T}$ld_shlibs" >&6 6976test "$ld_shlibs" = no && can_build_shared=no 6977 6978variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 6979if test "$GCC" = yes; then 6980 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 6981fi 6982 6983# 6984# Do we need to explicitly link libc? 6985# 6986case "x$archive_cmds_need_lc" in 6987x|xyes) 6988 # Assume -lc should be added 6989 archive_cmds_need_lc=yes 6990 6991 if test "$enable_shared" = yes && test "$GCC" = yes; then 6992 case $archive_cmds in 6993 *'~'*) 6994 # FIXME: we may have to deal with multi-command sequences. 6995 ;; 6996 '$CC '*) 6997 # Test whether the compiler implicitly links with -lc since on some 6998 # systems, -lgcc has to come before -lc. If gcc already passes -lc 6999 # to ld, don't add -lc before -lgcc. 7000 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 7001echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 7002 $rm conftest* 7003 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 7004 7005 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 7006 (eval $ac_compile) 2>&5 7007 ac_status=$? 7008 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7009 (exit $ac_status); } 2>conftest.err; then 7010 soname=conftest 7011 lib=conftest 7012 libobjs=conftest.$ac_objext 7013 deplibs= 7014 wl=$lt_prog_compiler_wl 7015 compiler_flags=-v 7016 linker_flags=-v 7017 verstring= 7018 output_objdir=. 7019 libname=conftest 7020 lt_save_allow_undefined_flag=$allow_undefined_flag 7021 allow_undefined_flag= 7022 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 7023 (eval $archive_cmds 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 7024 ac_status=$? 7025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7026 (exit $ac_status); } 7027 then 7028 archive_cmds_need_lc=no 7029 else 7030 archive_cmds_need_lc=yes 7031 fi 7032 allow_undefined_flag=$lt_save_allow_undefined_flag 7033 else 7034 cat conftest.err 1>&5 7035 fi 7036 $rm conftest* 7037 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 7038echo "${ECHO_T}$archive_cmds_need_lc" >&6 7039 ;; 7040 esac 7041 fi 7042 ;; 7043esac 7044 7045echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 7046echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 7047library_names_spec= 7048libname_spec='lib$name' 7049soname_spec= 7050shrext_cmds=".so" 7051postinstall_cmds= 7052postuninstall_cmds= 7053finish_cmds= 7054finish_eval= 7055shlibpath_var= 7056shlibpath_overrides_runpath=unknown 7057version_type=none 7058dynamic_linker="$host_os ld.so" 7059sys_lib_dlsearch_path_spec="/lib /usr/lib" 7060if test "$GCC" = yes; then 7061 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7062 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 7063 # if the path contains ";" then we assume it to be the separator 7064 # otherwise default to the standard path separator (i.e. ":") - it is 7065 # assumed that no part of a normal pathname contains ";" but that should 7066 # okay in the real world where ";" in dirpaths is itself problematic. 7067 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7068 else 7069 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7070 fi 7071else 7072 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 7073fi 7074need_lib_prefix=unknown 7075hardcode_into_libs=no 7076 7077# when you set need_version to no, make sure it does not cause -set_version 7078# flags to be left without arguments 7079need_version=unknown 7080 7081case $host_os in 7082aix3*) 7083 version_type=linux 7084 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 7085 shlibpath_var=LIBPATH 7086 7087 # AIX 3 has no versioning support, so we append a major version to the name. 7088 soname_spec='${libname}${release}${shared_ext}$major' 7089 ;; 7090 7091aix4* | aix5*) 7092 version_type=linux 7093 need_lib_prefix=no 7094 need_version=no 7095 hardcode_into_libs=yes 7096 if test "$host_cpu" = ia64; then 7097 # AIX 5 supports IA64 7098 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 7099 shlibpath_var=LD_LIBRARY_PATH 7100 else 7101 # With GCC up to 2.95.x, collect2 would create an import file 7102 # for dependence libraries. The import file would start with 7103 # the line `#! .'. This would cause the generated library to 7104 # depend on `.', always an invalid library. This was fixed in 7105 # development snapshots of GCC prior to 3.0. 7106 case $host_os in 7107 aix4 | aix4.[01] | aix4.[01].*) 7108 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 7109 echo ' yes ' 7110 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 7111 : 7112 else 7113 can_build_shared=no 7114 fi 7115 ;; 7116 esac 7117 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 7118 # soname into executable. Probably we can add versioning support to 7119 # collect2, so additional links can be useful in future. 7120 if test "$aix_use_runtimelinking" = yes; then 7121 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 7122 # instead of lib<name>.a to let people know that these are not 7123 # typical AIX shared libraries. 7124 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7125 else 7126 # We preserve .a as extension for shared libraries through AIX4.2 7127 # and later when we are not doing run time linking. 7128 library_names_spec='${libname}${release}.a $libname.a' 7129 soname_spec='${libname}${release}${shared_ext}$major' 7130 fi 7131 shlibpath_var=LIBPATH 7132 fi 7133 ;; 7134 7135amigaos*) 7136 library_names_spec='$libname.ixlibrary $libname.a' 7137 # Create ${libname}_ixlibrary.a entries in /sys/libs. 7138 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 7139 ;; 7140 7141beos*) 7142 library_names_spec='${libname}${shared_ext}' 7143 dynamic_linker="$host_os ld.so" 7144 shlibpath_var=LIBRARY_PATH 7145 ;; 7146 7147bsdi4*) 7148 version_type=linux 7149 need_version=no 7150 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7151 soname_spec='${libname}${release}${shared_ext}$major' 7152 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 7153 shlibpath_var=LD_LIBRARY_PATH 7154 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 7155 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 7156 # the default ld.so.conf also contains /usr/contrib/lib and 7157 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 7158 # libtool to hard-code these into programs 7159 ;; 7160 7161cygwin* | mingw* | pw32*) 7162 version_type=windows 7163 shrext_cmds=".dll" 7164 need_version=no 7165 need_lib_prefix=no 7166 7167 case $GCC,$host_os in 7168 yes,cygwin* | yes,mingw* | yes,pw32*) 7169 library_names_spec='$libname.dll.a' 7170 # DLL is installed to $(libdir)/../bin by postinstall_cmds 7171 postinstall_cmds='base_file=`basename \${file}`~ 7172 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 7173 dldir=$destdir/`dirname \$dlpath`~ 7174 test -d \$dldir || mkdir -p \$dldir~ 7175 $install_prog $dir/$dlname \$dldir/$dlname' 7176 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 7177 dlpath=$dir/\$dldll~ 7178 $rm \$dlpath' 7179 shlibpath_overrides_runpath=yes 7180 7181 case $host_os in 7182 cygwin*) 7183 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 7184 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7185 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 7186 ;; 7187 mingw*) 7188 # MinGW DLLs use traditional 'lib' prefix 7189 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 7190 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 7191 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 7192 # It is most probably a Windows format PATH printed by 7193 # mingw gcc, but we are running on Cygwin. Gcc prints its search 7194 # path with ; separators, and with drive letters. We can handle the 7195 # drive letters (cygwin fileutils understands them), so leave them, 7196 # especially as we might pass files found there to a mingw objdump, 7197 # which wouldn't understand a cygwinified path. Ahh. 7198 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 7199 else 7200 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 7201 fi 7202 ;; 7203 pw32*) 7204 # pw32 DLLs use 'pw' prefix rather than 'lib' 7205 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 7206 ;; 7207 esac 7208 ;; 7209 7210 *) 7211 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 7212 ;; 7213 esac 7214 dynamic_linker='Win32 ld.exe' 7215 # FIXME: first we should search . and the directory the executable is in 7216 shlibpath_var=PATH 7217 ;; 7218 7219darwin* | rhapsody*) 7220 dynamic_linker="$host_os dyld" 7221 version_type=darwin 7222 need_lib_prefix=no 7223 need_version=no 7224 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 7225 soname_spec='${libname}${release}${major}$shared_ext' 7226 shlibpath_overrides_runpath=yes 7227 shlibpath_var=DYLD_LIBRARY_PATH 7228 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 7229 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 7230 if test "$GCC" = yes; then 7231 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 7232 else 7233 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 7234 fi 7235 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 7236 ;; 7237 7238dgux*) 7239 version_type=linux 7240 need_lib_prefix=no 7241 need_version=no 7242 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 7243 soname_spec='${libname}${release}${shared_ext}$major' 7244 shlibpath_var=LD_LIBRARY_PATH 7245 ;; 7246 7247freebsd1*) 7248 dynamic_linker=no 7249 ;; 7250 7251kfreebsd*-gnu) 7252 version_type=linux 7253 need_lib_prefix=no 7254 need_version=no 7255 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7256 soname_spec='${libname}${release}${shared_ext}$major' 7257 shlibpath_var=LD_LIBRARY_PATH 7258 shlibpath_overrides_runpath=no 7259 hardcode_into_libs=yes 7260 dynamic_linker='GNU ld.so' 7261 ;; 7262 7263freebsd*) 7264 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 7265 version_type=freebsd-$objformat 7266 case $version_type in 7267 freebsd-elf*) 7268 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 7269 need_version=no 7270 need_lib_prefix=no 7271 ;; 7272 freebsd-*) 7273 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 7274 need_version=yes 7275 ;; 7276 esac 7277 shlibpath_var=LD_LIBRARY_PATH 7278 case $host_os in 7279 freebsd2*) 7280 shlibpath_overrides_runpath=yes 7281 ;; 7282 freebsd3.01* | freebsdelf3.01*) 7283 shlibpath_overrides_runpath=yes 7284 hardcode_into_libs=yes 7285 ;; 7286 *) # from 3.2 on 7287 shlibpath_overrides_runpath=no 7288 hardcode_into_libs=yes 7289 ;; 7290 esac 7291 ;; 7292 7293gnu*) 7294 version_type=linux 7295 need_lib_prefix=no 7296 need_version=no 7297 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 7298 soname_spec='${libname}${release}${shared_ext}$major' 7299 shlibpath_var=LD_LIBRARY_PATH 7300 hardcode_into_libs=yes 7301 ;; 7302 7303hpux9* | hpux10* | hpux11*) 7304 # Give a soname corresponding to the major version so that dld.sl refuses to 7305 # link against other versions. 7306 version_type=sunos 7307 need_lib_prefix=no 7308 need_version=no 7309 case "$host_cpu" in 7310 ia64*) 7311 shrext_cmds='.so' 7312 hardcode_into_libs=yes 7313 dynamic_linker="$host_os dld.so" 7314 shlibpath_var=LD_LIBRARY_PATH 7315 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7316 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7317 soname_spec='${libname}${release}${shared_ext}$major' 7318 if test "X$HPUX_IA64_MODE" = X32; then 7319 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 7320 else 7321 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 7322 fi 7323 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7324 ;; 7325 hppa*64*) 7326 shrext_cmds='.sl' 7327 hardcode_into_libs=yes 7328 dynamic_linker="$host_os dld.sl" 7329 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 7330 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 7331 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7332 soname_spec='${libname}${release}${shared_ext}$major' 7333 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 7334 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 7335 ;; 7336 *) 7337 shrext_cmds='.sl' 7338 dynamic_linker="$host_os dld.sl" 7339 shlibpath_var=SHLIB_PATH 7340 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 7341 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7342 soname_spec='${libname}${release}${shared_ext}$major' 7343 ;; 7344 esac 7345 # HP-UX runs *really* slowly unless shared libraries are mode 555. 7346 postinstall_cmds='chmod 555 $lib' 7347 ;; 7348 7349irix5* | irix6* | nonstopux*) 7350 case $host_os in 7351 nonstopux*) version_type=nonstopux ;; 7352 *) 7353 if test "$lt_cv_prog_gnu_ld" = yes; then 7354 version_type=linux 7355 else 7356 version_type=irix 7357 fi ;; 7358 esac 7359 need_lib_prefix=no 7360 need_version=no 7361 soname_spec='${libname}${release}${shared_ext}$major' 7362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 7363 case $host_os in 7364 irix5* | nonstopux*) 7365 libsuff= shlibsuff= 7366 ;; 7367 *) 7368 case $LD in # libtool.m4 will add one of these switches to LD 7369 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 7370 libsuff= shlibsuff= libmagic=32-bit;; 7371 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 7372 libsuff=32 shlibsuff=N32 libmagic=N32;; 7373 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 7374 libsuff=64 shlibsuff=64 libmagic=64-bit;; 7375 *) libsuff= shlibsuff= libmagic=never-match;; 7376 esac 7377 ;; 7378 esac 7379 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 7380 shlibpath_overrides_runpath=no 7381 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 7382 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 7383 hardcode_into_libs=yes 7384 ;; 7385 7386# No shared lib support for Linux oldld, aout, or coff. 7387linux*oldld* | linux*aout* | linux*coff*) 7388 dynamic_linker=no 7389 ;; 7390 7391# This must be Linux ELF. 7392linux*) 7393 version_type=linux 7394 need_lib_prefix=no 7395 need_version=no 7396 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7397 soname_spec='${libname}${release}${shared_ext}$major' 7398 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 7399 shlibpath_var=LD_LIBRARY_PATH 7400 shlibpath_overrides_runpath=no 7401 # This implies no fast_install, which is unacceptable. 7402 # Some rework will be needed to allow for fast_install 7403 # before this can be enabled. 7404 hardcode_into_libs=yes 7405 7406 # Append ld.so.conf contents to the search path 7407 if test -f /etc/ld.so.conf; then 7408 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 7409 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 7410 fi 7411 7412 # We used to test for /lib/ld.so.1 and disable shared libraries on 7413 # powerpc, because MkLinux only supported shared libraries with the 7414 # GNU dynamic linker. Since this was broken with cross compilers, 7415 # most powerpc-linux boxes support dynamic linking these days and 7416 # people can always --disable-shared, the test was removed, and we 7417 # assume the GNU/Linux dynamic linker is in use. 7418 dynamic_linker='GNU/Linux ld.so' 7419 ;; 7420 7421knetbsd*-gnu) 7422 version_type=linux 7423 need_lib_prefix=no 7424 need_version=no 7425 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7426 soname_spec='${libname}${release}${shared_ext}$major' 7427 shlibpath_var=LD_LIBRARY_PATH 7428 shlibpath_overrides_runpath=no 7429 hardcode_into_libs=yes 7430 dynamic_linker='GNU ld.so' 7431 ;; 7432 7433netbsd*) 7434 version_type=sunos 7435 need_lib_prefix=no 7436 need_version=no 7437 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 7438 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7439 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7440 dynamic_linker='NetBSD (a.out) ld.so' 7441 else 7442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 7443 soname_spec='${libname}${release}${shared_ext}$major' 7444 dynamic_linker='NetBSD ld.elf_so' 7445 fi 7446 shlibpath_var=LD_LIBRARY_PATH 7447 shlibpath_overrides_runpath=yes 7448 hardcode_into_libs=yes 7449 ;; 7450 7451newsos6) 7452 version_type=linux 7453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7454 shlibpath_var=LD_LIBRARY_PATH 7455 shlibpath_overrides_runpath=yes 7456 ;; 7457 7458nto-qnx*) 7459 version_type=linux 7460 need_lib_prefix=no 7461 need_version=no 7462 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7463 soname_spec='${libname}${release}${shared_ext}$major' 7464 shlibpath_var=LD_LIBRARY_PATH 7465 shlibpath_overrides_runpath=yes 7466 ;; 7467 7468openbsd*) 7469 version_type=sunos 7470 need_lib_prefix=no 7471 need_version=yes 7472 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7473 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 7474 shlibpath_var=LD_LIBRARY_PATH 7475 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7476 case $host_os in 7477 openbsd2.[89] | openbsd2.[89].*) 7478 shlibpath_overrides_runpath=no 7479 ;; 7480 *) 7481 shlibpath_overrides_runpath=yes 7482 ;; 7483 esac 7484 else 7485 shlibpath_overrides_runpath=yes 7486 fi 7487 ;; 7488 7489os2*) 7490 libname_spec='$name' 7491 shrext_cmds=".dll" 7492 need_lib_prefix=no 7493 library_names_spec='$libname${shared_ext} $libname.a' 7494 dynamic_linker='OS/2 ld.exe' 7495 shlibpath_var=LIBPATH 7496 ;; 7497 7498osf3* | osf4* | osf5*) 7499 version_type=osf 7500 need_lib_prefix=no 7501 need_version=no 7502 soname_spec='${libname}${release}${shared_ext}$major' 7503 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7504 shlibpath_var=LD_LIBRARY_PATH 7505 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 7506 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 7507 ;; 7508 7509sco3.2v5*) 7510 version_type=osf 7511 soname_spec='${libname}${release}${shared_ext}$major' 7512 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7513 shlibpath_var=LD_LIBRARY_PATH 7514 ;; 7515 7516solaris*) 7517 version_type=linux 7518 need_lib_prefix=no 7519 need_version=no 7520 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7521 soname_spec='${libname}${release}${shared_ext}$major' 7522 shlibpath_var=LD_LIBRARY_PATH 7523 shlibpath_overrides_runpath=yes 7524 hardcode_into_libs=yes 7525 # ldd complains unless libraries are executable 7526 postinstall_cmds='chmod +x $lib' 7527 ;; 7528 7529sunos4*) 7530 version_type=sunos 7531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 7532 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 7533 shlibpath_var=LD_LIBRARY_PATH 7534 shlibpath_overrides_runpath=yes 7535 if test "$with_gnu_ld" = yes; then 7536 need_lib_prefix=no 7537 fi 7538 need_version=yes 7539 ;; 7540 7541sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 7542 version_type=linux 7543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7544 soname_spec='${libname}${release}${shared_ext}$major' 7545 shlibpath_var=LD_LIBRARY_PATH 7546 case $host_vendor in 7547 sni) 7548 shlibpath_overrides_runpath=no 7549 need_lib_prefix=no 7550 export_dynamic_flag_spec='${wl}-Blargedynsym' 7551 runpath_var=LD_RUN_PATH 7552 ;; 7553 siemens) 7554 need_lib_prefix=no 7555 ;; 7556 motorola) 7557 need_lib_prefix=no 7558 need_version=no 7559 shlibpath_overrides_runpath=no 7560 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 7561 ;; 7562 esac 7563 ;; 7564 7565sysv4*MP*) 7566 if test -d /usr/nec ;then 7567 version_type=linux 7568 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 7569 soname_spec='$libname${shared_ext}.$major' 7570 shlibpath_var=LD_LIBRARY_PATH 7571 fi 7572 ;; 7573 7574uts4*) 7575 version_type=linux 7576 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 7577 soname_spec='${libname}${release}${shared_ext}$major' 7578 shlibpath_var=LD_LIBRARY_PATH 7579 ;; 7580 7581*) 7582 dynamic_linker=no 7583 ;; 7584esac 7585echo "$as_me:$LINENO: result: $dynamic_linker" >&5 7586echo "${ECHO_T}$dynamic_linker" >&6 7587test "$dynamic_linker" = no && can_build_shared=no 7588 7589echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 7590echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 7591hardcode_action= 7592if test -n "$hardcode_libdir_flag_spec" || \ 7593 test -n "$runpath_var " || \ 7594 test "X$hardcode_automatic"="Xyes" ; then 7595 7596 # We can hardcode non-existant directories. 7597 if test "$hardcode_direct" != no && 7598 # If the only mechanism to avoid hardcoding is shlibpath_var, we 7599 # have to relink, otherwise we might link with an installed library 7600 # when we should be linking with a yet-to-be-installed one 7601 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, )" != no && 7602 test "$hardcode_minus_L" != no; then 7603 # Linking always hardcodes the temporary library directory. 7604 hardcode_action=relink 7605 else 7606 # We can link without hardcoding, and we can hardcode nonexisting dirs. 7607 hardcode_action=immediate 7608 fi 7609else 7610 # We cannot hardcode anything, or else we can only hardcode existing 7611 # directories. 7612 hardcode_action=unsupported 7613fi 7614echo "$as_me:$LINENO: result: $hardcode_action" >&5 7615echo "${ECHO_T}$hardcode_action" >&6 7616 7617if test "$hardcode_action" = relink; then 7618 # Fast installation is not supported 7619 enable_fast_install=no 7620elif test "$shlibpath_overrides_runpath" = yes || 7621 test "$enable_shared" = no; then 7622 # Fast installation is not necessary 7623 enable_fast_install=needless 7624fi 7625 7626striplib= 7627old_striplib= 7628echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 7629echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 7630if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 7631 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 7632 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 7633 echo "$as_me:$LINENO: result: yes" >&5 7634echo "${ECHO_T}yes" >&6 7635else 7636# FIXME - insert some real tests, host_os isn't really good enough 7637 case $host_os in 7638 darwin*) 7639 if test -n "$STRIP" ; then 7640 striplib="$STRIP -x" 7641 echo "$as_me:$LINENO: result: yes" >&5 7642echo "${ECHO_T}yes" >&6 7643 else 7644 echo "$as_me:$LINENO: result: no" >&5 7645echo "${ECHO_T}no" >&6 7646fi 7647 ;; 7648 *) 7649 echo "$as_me:$LINENO: result: no" >&5 7650echo "${ECHO_T}no" >&6 7651 ;; 7652 esac 7653fi 7654 7655if test "x$enable_dlopen" != xyes; then 7656 enable_dlopen=unknown 7657 enable_dlopen_self=unknown 7658 enable_dlopen_self_static=unknown 7659else 7660 lt_cv_dlopen=no 7661 lt_cv_dlopen_libs= 7662 7663 case $host_os in 7664 beos*) 7665 lt_cv_dlopen="load_add_on" 7666 lt_cv_dlopen_libs= 7667 lt_cv_dlopen_self=yes 7668 ;; 7669 7670 mingw* | pw32*) 7671 lt_cv_dlopen="LoadLibrary" 7672 lt_cv_dlopen_libs= 7673 ;; 7674 7675 cygwin*) 7676 lt_cv_dlopen="dlopen" 7677 lt_cv_dlopen_libs= 7678 ;; 7679 7680 darwin*) 7681 # if libdl is installed we need to link against it 7682 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 7683echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 7684if test "${ac_cv_lib_dl_dlopen+set}" = set; then 7685 echo $ECHO_N "(cached) $ECHO_C" >&6 7686else 7687 ac_check_lib_save_LIBS=$LIBS 7688LIBS="-ldl $LIBS" 7689cat >conftest.$ac_ext <<_ACEOF 7690/* confdefs.h. */ 7691_ACEOF 7692cat confdefs.h >>conftest.$ac_ext 7693cat >>conftest.$ac_ext <<_ACEOF 7694/* end confdefs.h. */ 7695 7696/* Override any gcc2 internal prototype to avoid an error. */ 7697#ifdef __cplusplus 7698extern "C" 7699#endif 7700/* We use char because int might match the return type of a gcc2 7701 builtin and then its argument prototype would still apply. */ 7702char dlopen (); 7703int 7704main () 7705{ 7706dlopen (); 7707 ; 7708 return 0; 7709} 7710_ACEOF 7711rm -f conftest.$ac_objext conftest$ac_exeext 7712if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7713 (eval $ac_link) 2>conftest.er1 7714 ac_status=$? 7715 grep -v '^ *+' conftest.er1 >conftest.err 7716 rm -f conftest.er1 7717 cat conftest.err >&5 7718 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7719 (exit $ac_status); } && 7720 { ac_try='test -z "$ac_c_werror_flag" 7721 || test ! -s conftest.err' 7722 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7723 (eval $ac_try) 2>&5 7724 ac_status=$? 7725 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7726 (exit $ac_status); }; } && 7727 { ac_try='test -s conftest$ac_exeext' 7728 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7729 (eval $ac_try) 2>&5 7730 ac_status=$? 7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7732 (exit $ac_status); }; }; then 7733 ac_cv_lib_dl_dlopen=yes 7734else 7735 echo "$as_me: failed program was:" >&5 7736sed 's/^/| /' conftest.$ac_ext >&5 7737 7738ac_cv_lib_dl_dlopen=no 7739fi 7740rm -f conftest.err conftest.$ac_objext \ 7741 conftest$ac_exeext conftest.$ac_ext 7742LIBS=$ac_check_lib_save_LIBS 7743fi 7744echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 7745echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 7746if test $ac_cv_lib_dl_dlopen = yes; then 7747 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 7748else 7749 7750 lt_cv_dlopen="dyld" 7751 lt_cv_dlopen_libs= 7752 lt_cv_dlopen_self=yes 7753 7754fi 7755 7756 ;; 7757 7758 *) 7759 echo "$as_me:$LINENO: checking for shl_load" >&5 7760echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 7761if test "${ac_cv_func_shl_load+set}" = set; then 7762 echo $ECHO_N "(cached) $ECHO_C" >&6 7763else 7764 cat >conftest.$ac_ext <<_ACEOF 7765/* confdefs.h. */ 7766_ACEOF 7767cat confdefs.h >>conftest.$ac_ext 7768cat >>conftest.$ac_ext <<_ACEOF 7769/* end confdefs.h. */ 7770/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 7771 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7772#define shl_load innocuous_shl_load 7773 7774/* System header to define __stub macros and hopefully few prototypes, 7775 which can conflict with char shl_load (); below. 7776 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7777 <limits.h> exists even on freestanding compilers. */ 7778 7779#ifdef __STDC__ 7780# include <limits.h> 7781#else 7782# include <assert.h> 7783#endif 7784 7785#undef shl_load 7786 7787/* Override any gcc2 internal prototype to avoid an error. */ 7788#ifdef __cplusplus 7789extern "C" 7790{ 7791#endif 7792/* We use char because int might match the return type of a gcc2 7793 builtin and then its argument prototype would still apply. */ 7794char shl_load (); 7795/* The GNU C library defines this for functions which it implements 7796 to always fail with ENOSYS. Some functions are actually named 7797 something starting with __ and the normal name is an alias. */ 7798#if defined (__stub_shl_load) || defined (__stub___shl_load) 7799choke me 7800#else 7801char (*f) () = shl_load; 7802#endif 7803#ifdef __cplusplus 7804} 7805#endif 7806 7807int 7808main () 7809{ 7810return f != shl_load; 7811 ; 7812 return 0; 7813} 7814_ACEOF 7815rm -f conftest.$ac_objext conftest$ac_exeext 7816if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7817 (eval $ac_link) 2>conftest.er1 7818 ac_status=$? 7819 grep -v '^ *+' conftest.er1 >conftest.err 7820 rm -f conftest.er1 7821 cat conftest.err >&5 7822 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7823 (exit $ac_status); } && 7824 { ac_try='test -z "$ac_c_werror_flag" 7825 || test ! -s conftest.err' 7826 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7827 (eval $ac_try) 2>&5 7828 ac_status=$? 7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7830 (exit $ac_status); }; } && 7831 { ac_try='test -s conftest$ac_exeext' 7832 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7833 (eval $ac_try) 2>&5 7834 ac_status=$? 7835 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7836 (exit $ac_status); }; }; then 7837 ac_cv_func_shl_load=yes 7838else 7839 echo "$as_me: failed program was:" >&5 7840sed 's/^/| /' conftest.$ac_ext >&5 7841 7842ac_cv_func_shl_load=no 7843fi 7844rm -f conftest.err conftest.$ac_objext \ 7845 conftest$ac_exeext conftest.$ac_ext 7846fi 7847echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 7848echo "${ECHO_T}$ac_cv_func_shl_load" >&6 7849if test $ac_cv_func_shl_load = yes; then 7850 lt_cv_dlopen="shl_load" 7851else 7852 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 7853echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 7854if test "${ac_cv_lib_dld_shl_load+set}" = set; then 7855 echo $ECHO_N "(cached) $ECHO_C" >&6 7856else 7857 ac_check_lib_save_LIBS=$LIBS 7858LIBS="-ldld $LIBS" 7859cat >conftest.$ac_ext <<_ACEOF 7860/* confdefs.h. */ 7861_ACEOF 7862cat confdefs.h >>conftest.$ac_ext 7863cat >>conftest.$ac_ext <<_ACEOF 7864/* end confdefs.h. */ 7865 7866/* Override any gcc2 internal prototype to avoid an error. */ 7867#ifdef __cplusplus 7868extern "C" 7869#endif 7870/* We use char because int might match the return type of a gcc2 7871 builtin and then its argument prototype would still apply. */ 7872char shl_load (); 7873int 7874main () 7875{ 7876shl_load (); 7877 ; 7878 return 0; 7879} 7880_ACEOF 7881rm -f conftest.$ac_objext conftest$ac_exeext 7882if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7883 (eval $ac_link) 2>conftest.er1 7884 ac_status=$? 7885 grep -v '^ *+' conftest.er1 >conftest.err 7886 rm -f conftest.er1 7887 cat conftest.err >&5 7888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7889 (exit $ac_status); } && 7890 { ac_try='test -z "$ac_c_werror_flag" 7891 || test ! -s conftest.err' 7892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7893 (eval $ac_try) 2>&5 7894 ac_status=$? 7895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7896 (exit $ac_status); }; } && 7897 { ac_try='test -s conftest$ac_exeext' 7898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7899 (eval $ac_try) 2>&5 7900 ac_status=$? 7901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7902 (exit $ac_status); }; }; then 7903 ac_cv_lib_dld_shl_load=yes 7904else 7905 echo "$as_me: failed program was:" >&5 7906sed 's/^/| /' conftest.$ac_ext >&5 7907 7908ac_cv_lib_dld_shl_load=no 7909fi 7910rm -f conftest.err conftest.$ac_objext \ 7911 conftest$ac_exeext conftest.$ac_ext 7912LIBS=$ac_check_lib_save_LIBS 7913fi 7914echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 7915echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 7916if test $ac_cv_lib_dld_shl_load = yes; then 7917 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 7918else 7919 echo "$as_me:$LINENO: checking for dlopen" >&5 7920echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 7921if test "${ac_cv_func_dlopen+set}" = set; then 7922 echo $ECHO_N "(cached) $ECHO_C" >&6 7923else 7924 cat >conftest.$ac_ext <<_ACEOF 7925/* confdefs.h. */ 7926_ACEOF 7927cat confdefs.h >>conftest.$ac_ext 7928cat >>conftest.$ac_ext <<_ACEOF 7929/* end confdefs.h. */ 7930/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 7931 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 7932#define dlopen innocuous_dlopen 7933 7934/* System header to define __stub macros and hopefully few prototypes, 7935 which can conflict with char dlopen (); below. 7936 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 7937 <limits.h> exists even on freestanding compilers. */ 7938 7939#ifdef __STDC__ 7940# include <limits.h> 7941#else 7942# include <assert.h> 7943#endif 7944 7945#undef dlopen 7946 7947/* Override any gcc2 internal prototype to avoid an error. */ 7948#ifdef __cplusplus 7949extern "C" 7950{ 7951#endif 7952/* We use char because int might match the return type of a gcc2 7953 builtin and then its argument prototype would still apply. */ 7954char dlopen (); 7955/* The GNU C library defines this for functions which it implements 7956 to always fail with ENOSYS. Some functions are actually named 7957 something starting with __ and the normal name is an alias. */ 7958#if defined (__stub_dlopen) || defined (__stub___dlopen) 7959choke me 7960#else 7961char (*f) () = dlopen; 7962#endif 7963#ifdef __cplusplus 7964} 7965#endif 7966 7967int 7968main () 7969{ 7970return f != dlopen; 7971 ; 7972 return 0; 7973} 7974_ACEOF 7975rm -f conftest.$ac_objext conftest$ac_exeext 7976if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7977 (eval $ac_link) 2>conftest.er1 7978 ac_status=$? 7979 grep -v '^ *+' conftest.er1 >conftest.err 7980 rm -f conftest.er1 7981 cat conftest.err >&5 7982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7983 (exit $ac_status); } && 7984 { ac_try='test -z "$ac_c_werror_flag" 7985 || test ! -s conftest.err' 7986 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7987 (eval $ac_try) 2>&5 7988 ac_status=$? 7989 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7990 (exit $ac_status); }; } && 7991 { ac_try='test -s conftest$ac_exeext' 7992 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7993 (eval $ac_try) 2>&5 7994 ac_status=$? 7995 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7996 (exit $ac_status); }; }; then 7997 ac_cv_func_dlopen=yes 7998else 7999 echo "$as_me: failed program was:" >&5 8000sed 's/^/| /' conftest.$ac_ext >&5 8001 8002ac_cv_func_dlopen=no 8003fi 8004rm -f conftest.err conftest.$ac_objext \ 8005 conftest$ac_exeext conftest.$ac_ext 8006fi 8007echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 8008echo "${ECHO_T}$ac_cv_func_dlopen" >&6 8009if test $ac_cv_func_dlopen = yes; then 8010 lt_cv_dlopen="dlopen" 8011else 8012 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 8013echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 8014if test "${ac_cv_lib_dl_dlopen+set}" = set; then 8015 echo $ECHO_N "(cached) $ECHO_C" >&6 8016else 8017 ac_check_lib_save_LIBS=$LIBS 8018LIBS="-ldl $LIBS" 8019cat >conftest.$ac_ext <<_ACEOF 8020/* confdefs.h. */ 8021_ACEOF 8022cat confdefs.h >>conftest.$ac_ext 8023cat >>conftest.$ac_ext <<_ACEOF 8024/* end confdefs.h. */ 8025 8026/* Override any gcc2 internal prototype to avoid an error. */ 8027#ifdef __cplusplus 8028extern "C" 8029#endif 8030/* We use char because int might match the return type of a gcc2 8031 builtin and then its argument prototype would still apply. */ 8032char dlopen (); 8033int 8034main () 8035{ 8036dlopen (); 8037 ; 8038 return 0; 8039} 8040_ACEOF 8041rm -f conftest.$ac_objext conftest$ac_exeext 8042if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8043 (eval $ac_link) 2>conftest.er1 8044 ac_status=$? 8045 grep -v '^ *+' conftest.er1 >conftest.err 8046 rm -f conftest.er1 8047 cat conftest.err >&5 8048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8049 (exit $ac_status); } && 8050 { ac_try='test -z "$ac_c_werror_flag" 8051 || test ! -s conftest.err' 8052 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8053 (eval $ac_try) 2>&5 8054 ac_status=$? 8055 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8056 (exit $ac_status); }; } && 8057 { ac_try='test -s conftest$ac_exeext' 8058 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8059 (eval $ac_try) 2>&5 8060 ac_status=$? 8061 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8062 (exit $ac_status); }; }; then 8063 ac_cv_lib_dl_dlopen=yes 8064else 8065 echo "$as_me: failed program was:" >&5 8066sed 's/^/| /' conftest.$ac_ext >&5 8067 8068ac_cv_lib_dl_dlopen=no 8069fi 8070rm -f conftest.err conftest.$ac_objext \ 8071 conftest$ac_exeext conftest.$ac_ext 8072LIBS=$ac_check_lib_save_LIBS 8073fi 8074echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 8075echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 8076if test $ac_cv_lib_dl_dlopen = yes; then 8077 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 8078else 8079 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 8080echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 8081if test "${ac_cv_lib_svld_dlopen+set}" = set; then 8082 echo $ECHO_N "(cached) $ECHO_C" >&6 8083else 8084 ac_check_lib_save_LIBS=$LIBS 8085LIBS="-lsvld $LIBS" 8086cat >conftest.$ac_ext <<_ACEOF 8087/* confdefs.h. */ 8088_ACEOF 8089cat confdefs.h >>conftest.$ac_ext 8090cat >>conftest.$ac_ext <<_ACEOF 8091/* end confdefs.h. */ 8092 8093/* Override any gcc2 internal prototype to avoid an error. */ 8094#ifdef __cplusplus 8095extern "C" 8096#endif 8097/* We use char because int might match the return type of a gcc2 8098 builtin and then its argument prototype would still apply. */ 8099char dlopen (); 8100int 8101main () 8102{ 8103dlopen (); 8104 ; 8105 return 0; 8106} 8107_ACEOF 8108rm -f conftest.$ac_objext conftest$ac_exeext 8109if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8110 (eval $ac_link) 2>conftest.er1 8111 ac_status=$? 8112 grep -v '^ *+' conftest.er1 >conftest.err 8113 rm -f conftest.er1 8114 cat conftest.err >&5 8115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8116 (exit $ac_status); } && 8117 { ac_try='test -z "$ac_c_werror_flag" 8118 || test ! -s conftest.err' 8119 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8120 (eval $ac_try) 2>&5 8121 ac_status=$? 8122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8123 (exit $ac_status); }; } && 8124 { ac_try='test -s conftest$ac_exeext' 8125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8126 (eval $ac_try) 2>&5 8127 ac_status=$? 8128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8129 (exit $ac_status); }; }; then 8130 ac_cv_lib_svld_dlopen=yes 8131else 8132 echo "$as_me: failed program was:" >&5 8133sed 's/^/| /' conftest.$ac_ext >&5 8134 8135ac_cv_lib_svld_dlopen=no 8136fi 8137rm -f conftest.err conftest.$ac_objext \ 8138 conftest$ac_exeext conftest.$ac_ext 8139LIBS=$ac_check_lib_save_LIBS 8140fi 8141echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 8142echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 8143if test $ac_cv_lib_svld_dlopen = yes; then 8144 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 8145else 8146 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 8147echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 8148if test "${ac_cv_lib_dld_dld_link+set}" = set; then 8149 echo $ECHO_N "(cached) $ECHO_C" >&6 8150else 8151 ac_check_lib_save_LIBS=$LIBS 8152LIBS="-ldld $LIBS" 8153cat >conftest.$ac_ext <<_ACEOF 8154/* confdefs.h. */ 8155_ACEOF 8156cat confdefs.h >>conftest.$ac_ext 8157cat >>conftest.$ac_ext <<_ACEOF 8158/* end confdefs.h. */ 8159 8160/* Override any gcc2 internal prototype to avoid an error. */ 8161#ifdef __cplusplus 8162extern "C" 8163#endif 8164/* We use char because int might match the return type of a gcc2 8165 builtin and then its argument prototype would still apply. */ 8166char dld_link (); 8167int 8168main () 8169{ 8170dld_link (); 8171 ; 8172 return 0; 8173} 8174_ACEOF 8175rm -f conftest.$ac_objext conftest$ac_exeext 8176if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8177 (eval $ac_link) 2>conftest.er1 8178 ac_status=$? 8179 grep -v '^ *+' conftest.er1 >conftest.err 8180 rm -f conftest.er1 8181 cat conftest.err >&5 8182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8183 (exit $ac_status); } && 8184 { ac_try='test -z "$ac_c_werror_flag" 8185 || test ! -s conftest.err' 8186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8187 (eval $ac_try) 2>&5 8188 ac_status=$? 8189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8190 (exit $ac_status); }; } && 8191 { ac_try='test -s conftest$ac_exeext' 8192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8193 (eval $ac_try) 2>&5 8194 ac_status=$? 8195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8196 (exit $ac_status); }; }; then 8197 ac_cv_lib_dld_dld_link=yes 8198else 8199 echo "$as_me: failed program was:" >&5 8200sed 's/^/| /' conftest.$ac_ext >&5 8201 8202ac_cv_lib_dld_dld_link=no 8203fi 8204rm -f conftest.err conftest.$ac_objext \ 8205 conftest$ac_exeext conftest.$ac_ext 8206LIBS=$ac_check_lib_save_LIBS 8207fi 8208echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 8209echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 8210if test $ac_cv_lib_dld_dld_link = yes; then 8211 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 8212fi 8213 8214 8215fi 8216 8217 8218fi 8219 8220 8221fi 8222 8223 8224fi 8225 8226 8227fi 8228 8229 ;; 8230 esac 8231 8232 if test "x$lt_cv_dlopen" != xno; then 8233 enable_dlopen=yes 8234 else 8235 enable_dlopen=no 8236 fi 8237 8238 case $lt_cv_dlopen in 8239 dlopen) 8240 save_CPPFLAGS="$CPPFLAGS" 8241 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 8242 8243 save_LDFLAGS="$LDFLAGS" 8244 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 8245 8246 save_LIBS="$LIBS" 8247 LIBS="$lt_cv_dlopen_libs $LIBS" 8248 8249 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 8250echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 8251if test "${lt_cv_dlopen_self+set}" = set; then 8252 echo $ECHO_N "(cached) $ECHO_C" >&6 8253else 8254 if test "$cross_compiling" = yes; then : 8255 lt_cv_dlopen_self=cross 8256else 8257 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8258 lt_status=$lt_dlunknown 8259 cat > conftest.$ac_ext <<EOF 8260#line __oline__ "configure" 8261#include "confdefs.h" 8262 8263#if HAVE_DLFCN_H 8264#include <dlfcn.h> 8265#endif 8266 8267#include <stdio.h> 8268 8269#ifdef RTLD_GLOBAL 8270# define LT_DLGLOBAL RTLD_GLOBAL 8271#else 8272# ifdef DL_GLOBAL 8273# define LT_DLGLOBAL DL_GLOBAL 8274# else 8275# define LT_DLGLOBAL 0 8276# endif 8277#endif 8278 8279/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8280 find out it does not work in some platform. */ 8281#ifndef LT_DLLAZY_OR_NOW 8282# ifdef RTLD_LAZY 8283# define LT_DLLAZY_OR_NOW RTLD_LAZY 8284# else 8285# ifdef DL_LAZY 8286# define LT_DLLAZY_OR_NOW DL_LAZY 8287# else 8288# ifdef RTLD_NOW 8289# define LT_DLLAZY_OR_NOW RTLD_NOW 8290# else 8291# ifdef DL_NOW 8292# define LT_DLLAZY_OR_NOW DL_NOW 8293# else 8294# define LT_DLLAZY_OR_NOW 0 8295# endif 8296# endif 8297# endif 8298# endif 8299#endif 8300 8301#ifdef __cplusplus 8302extern "C" void exit (int); 8303#endif 8304 8305void fnord() { int i=42;} 8306int main () 8307{ 8308 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8309 int status = $lt_dlunknown; 8310 8311 if (self) 8312 { 8313 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8314 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8315 /* dlclose (self); */ 8316 } 8317 8318 exit (status); 8319} 8320EOF 8321 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8322 (eval $ac_link) 2>&5 8323 ac_status=$? 8324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8325 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8326 (./conftest; exit; ) 2>/dev/null 8327 lt_status=$? 8328 case x$lt_status in 8329 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 8330 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 8331 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 8332 esac 8333 else : 8334 # compilation failed 8335 lt_cv_dlopen_self=no 8336 fi 8337fi 8338rm -fr conftest* 8339 8340 8341fi 8342echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 8343echo "${ECHO_T}$lt_cv_dlopen_self" >&6 8344 8345 if test "x$lt_cv_dlopen_self" = xyes; then 8346 LDFLAGS="$LDFLAGS $link_static_flag" 8347 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 8348echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 8349if test "${lt_cv_dlopen_self_static+set}" = set; then 8350 echo $ECHO_N "(cached) $ECHO_C" >&6 8351else 8352 if test "$cross_compiling" = yes; then : 8353 lt_cv_dlopen_self_static=cross 8354else 8355 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 8356 lt_status=$lt_dlunknown 8357 cat > conftest.$ac_ext <<EOF 8358#line __oline__ "configure" 8359#include "confdefs.h" 8360 8361#if HAVE_DLFCN_H 8362#include <dlfcn.h> 8363#endif 8364 8365#include <stdio.h> 8366 8367#ifdef RTLD_GLOBAL 8368# define LT_DLGLOBAL RTLD_GLOBAL 8369#else 8370# ifdef DL_GLOBAL 8371# define LT_DLGLOBAL DL_GLOBAL 8372# else 8373# define LT_DLGLOBAL 0 8374# endif 8375#endif 8376 8377/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 8378 find out it does not work in some platform. */ 8379#ifndef LT_DLLAZY_OR_NOW 8380# ifdef RTLD_LAZY 8381# define LT_DLLAZY_OR_NOW RTLD_LAZY 8382# else 8383# ifdef DL_LAZY 8384# define LT_DLLAZY_OR_NOW DL_LAZY 8385# else 8386# ifdef RTLD_NOW 8387# define LT_DLLAZY_OR_NOW RTLD_NOW 8388# else 8389# ifdef DL_NOW 8390# define LT_DLLAZY_OR_NOW DL_NOW 8391# else 8392# define LT_DLLAZY_OR_NOW 0 8393# endif 8394# endif 8395# endif 8396# endif 8397#endif 8398 8399#ifdef __cplusplus 8400extern "C" void exit (int); 8401#endif 8402 8403void fnord() { int i=42;} 8404int main () 8405{ 8406 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 8407 int status = $lt_dlunknown; 8408 8409 if (self) 8410 { 8411 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 8412 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 8413 /* dlclose (self); */ 8414 } 8415 8416 exit (status); 8417} 8418EOF 8419 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8420 (eval $ac_link) 2>&5 8421 ac_status=$? 8422 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8423 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 8424 (./conftest; exit; ) 2>/dev/null 8425 lt_status=$? 8426 case x$lt_status in 8427 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 8428 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 8429 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 8430 esac 8431 else : 8432 # compilation failed 8433 lt_cv_dlopen_self_static=no 8434 fi 8435fi 8436rm -fr conftest* 8437 8438 8439fi 8440echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 8441echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 8442 fi 8443 8444 CPPFLAGS="$save_CPPFLAGS" 8445 LDFLAGS="$save_LDFLAGS" 8446 LIBS="$save_LIBS" 8447 ;; 8448 esac 8449 8450 case $lt_cv_dlopen_self in 8451 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 8452 *) enable_dlopen_self=unknown ;; 8453 esac 8454 8455 case $lt_cv_dlopen_self_static in 8456 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 8457 *) enable_dlopen_self_static=unknown ;; 8458 esac 8459fi 8460 8461 8462# Report which librarie types wil actually be built 8463echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 8464echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 8465echo "$as_me:$LINENO: result: $can_build_shared" >&5 8466echo "${ECHO_T}$can_build_shared" >&6 8467 8468echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 8469echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 8470test "$can_build_shared" = "no" && enable_shared=no 8471 8472# On AIX, shared libraries and static libraries use the same namespace, and 8473# are all built from PIC. 8474case "$host_os" in 8475aix3*) 8476 test "$enable_shared" = yes && enable_static=no 8477 if test -n "$RANLIB"; then 8478 archive_cmds="$archive_cmds~\$RANLIB \$lib" 8479 postinstall_cmds='$RANLIB $lib' 8480 fi 8481 ;; 8482 8483aix4* | aix5*) 8484 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 8485 test "$enable_shared" = yes && enable_static=no 8486 fi 8487 ;; 8488 darwin* | rhapsody*) 8489 if test "$GCC" = yes; then 8490 archive_cmds_need_lc=no 8491 case "$host_os" in 8492 rhapsody* | darwin1.[012]) 8493 allow_undefined_flag='-undefined suppress' 8494 ;; 8495 *) # Darwin 1.3 on 8496 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 8497 allow_undefined_flag='-flat_namespace -undefined suppress' 8498 else 8499 case ${MACOSX_DEPLOYMENT_TARGET} in 8500 10.[012]) 8501 allow_undefined_flag='-flat_namespace -undefined suppress' 8502 ;; 8503 10.*) 8504 allow_undefined_flag='-undefined dynamic_lookup' 8505 ;; 8506 esac 8507 fi 8508 ;; 8509 esac 8510 output_verbose_link_cmd='echo' 8511 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring' 8512 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 8513 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 8514 archive_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs$compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8515 module_expsym_cmds='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 8516 hardcode_direct=no 8517 hardcode_automatic=yes 8518 hardcode_shlibpath_var=unsupported 8519 whole_archive_flag_spec='-all_load $convenience' 8520 link_all_deplibs=yes 8521 else 8522 ld_shlibs=no 8523 fi 8524 ;; 8525esac 8526echo "$as_me:$LINENO: result: $enable_shared" >&5 8527echo "${ECHO_T}$enable_shared" >&6 8528 8529echo "$as_me:$LINENO: checking whether to build static libraries" >&5 8530echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 8531# Make sure either enable_shared or enable_static is yes. 8532test "$enable_shared" = yes || enable_static=yes 8533echo "$as_me:$LINENO: result: $enable_static" >&5 8534echo "${ECHO_T}$enable_static" >&6 8535 8536# The else clause should only fire when bootstrapping the 8537# libtool distribution, otherwise you forgot to ship ltmain.sh 8538# with your package, and you will get complaints that there are 8539# no rules to generate ltmain.sh. 8540if test -f "$ltmain"; then 8541 # See if we are running on zsh, and set the options which allow our commands through 8542 # without removal of \ escapes. 8543 if test -n "${ZSH_VERSION+set}" ; then 8544 setopt NO_GLOB_SUBST 8545 fi 8546 # Now quote all the things that may contain metacharacters while being 8547 # careful not to overquote the AC_SUBSTed values. We take copies of the 8548 # variables and quote the copies for generation of the libtool script. 8549 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 8550 SED SHELL STRIP \ 8551 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 8552 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 8553 deplibs_check_method reload_flag reload_cmds need_locks \ 8554 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 8555 lt_cv_sys_global_symbol_to_c_name_address \ 8556 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 8557 old_postinstall_cmds old_postuninstall_cmds \ 8558 compiler \ 8559 CC \ 8560 LD \ 8561 lt_prog_compiler_wl \ 8562 lt_prog_compiler_pic \ 8563 lt_prog_compiler_static \ 8564 lt_prog_compiler_no_builtin_flag \ 8565 export_dynamic_flag_spec \ 8566 thread_safe_flag_spec \ 8567 whole_archive_flag_spec \ 8568 enable_shared_with_static_runtimes \ 8569 old_archive_cmds \ 8570 old_archive_from_new_cmds \ 8571 predep_objects \ 8572 postdep_objects \ 8573 predeps \ 8574 postdeps \ 8575 compiler_lib_search_path \ 8576 archive_cmds \ 8577 archive_expsym_cmds \ 8578 postinstall_cmds \ 8579 postuninstall_cmds \ 8580 old_archive_from_expsyms_cmds \ 8581 allow_undefined_flag \ 8582 no_undefined_flag \ 8583 export_symbols_cmds \ 8584 hardcode_libdir_flag_spec \ 8585 hardcode_libdir_flag_spec_ld \ 8586 hardcode_libdir_separator \ 8587 hardcode_automatic \ 8588 module_cmds \ 8589 module_expsym_cmds \ 8590 lt_cv_prog_compiler_c_o \ 8591 exclude_expsyms \ 8592 include_expsyms; do 8593 8594 case $var in 8595 old_archive_cmds | \ 8596 old_archive_from_new_cmds | \ 8597 archive_cmds | \ 8598 archive_expsym_cmds | \ 8599 module_cmds | \ 8600 module_expsym_cmds | \ 8601 old_archive_from_expsyms_cmds | \ 8602 export_symbols_cmds | \ 8603 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 8604 postinstall_cmds | postuninstall_cmds | \ 8605 old_postinstall_cmds | old_postuninstall_cmds | \ 8606 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 8607 # Double-quote double-evaled strings. 8608 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 8609 ;; 8610 *) 8611 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 8612 ;; 8613 esac 8614 done 8615 8616 case $lt_echo in 8617 *'\$0 --fallback-echo"') 8618 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 8619 ;; 8620 esac 8621 8622cfgfile="${ofile}T" 8623 trap "$rm \"$cfgfile\"; exit 1" 1 2 15 8624 $rm -f "$cfgfile" 8625 { echo "$as_me:$LINENO: creating $ofile" >&5 8626echo "$as_me: creating $ofile" >&6;} 8627 8628 cat <<__EOF__ >> "$cfgfile" 8629#! $SHELL 8630 8631# `$echo "$cfgfile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 8632# Generated automatically by $PROGRAM (GNU $PACKAGE $VERSION$TIMESTAMP) 8633# NOTE: Changes made to this file will be lost: look at ltmain.sh. 8634# 8635# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 8636# Free Software Foundation, Inc. 8637# 8638# This file is part of GNU Libtool: 8639# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 8640# 8641# This program is free software; you can redistribute it and/or modify 8642# it under the terms of the GNU General Public License as published by 8643# the Free Software Foundation; either version 2 of the License, or 8644# (at your option) any later version. 8645# 8646# This program is distributed in the hope that it will be useful, but 8647# WITHOUT ANY WARRANTY; without even the implied warranty of 8648# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 8649# General Public License for more details. 8650# 8651# You should have received a copy of the GNU General Public License 8652# along with this program; if not, write to the Free Software 8653# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 8654# 8655# As a special exception to the GNU General Public License, if you 8656# distribute this file as part of a program that contains a 8657# configuration script generated by Autoconf, you may include it under 8658# the same distribution terms that you use for the rest of that program. 8659 8660# A sed program that does not truncate output. 8661SED=$lt_SED 8662 8663# Sed that helps us avoid accidentally triggering echo(1) options like -n. 8664Xsed="$SED -e s/^X//" 8665 8666# The HP-UX ksh and POSIX shell print the target directory to stdout 8667# if CDPATH is set. 8668if test "X\${CDPATH+set}" = Xset; then CDPATH=:; export CDPATH; fi 8669 8670# The names of the tagged configurations supported by this script. 8671available_tags= 8672 8673# ### BEGIN LIBTOOL CONFIG 8674 8675# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 8676 8677# Shell to use when invoking shell scripts. 8678SHELL=$lt_SHELL 8679 8680# Whether or not to build shared libraries. 8681build_libtool_libs=$enable_shared 8682 8683# Whether or not to build static libraries. 8684build_old_libs=$enable_static 8685 8686# Whether or not to add -lc for building shared libraries. 8687build_libtool_need_lc=$archive_cmds_need_lc 8688 8689# Whether or not to disallow shared libs when runtime libs are static 8690allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 8691 8692# Whether or not to optimize for fast installation. 8693fast_install=$enable_fast_install 8694 8695# The host system. 8696host_alias=$host_alias 8697host=$host 8698 8699# An echo program that does not interpret backslashes. 8700echo=$lt_echo 8701 8702# The archiver. 8703AR=$lt_AR 8704AR_FLAGS=$lt_AR_FLAGS 8705 8706# A C compiler. 8707LTCC=$lt_LTCC 8708 8709# A language-specific compiler. 8710CC=$lt_compiler 8711 8712# Is the compiler the GNU C compiler? 8713with_gcc=$GCC 8714 8715# An ERE matcher. 8716EGREP=$lt_EGREP 8717 8718# The linker used to build libraries. 8719LD=$lt_LD 8720 8721# Whether we need hard or soft links. 8722LN_S=$lt_LN_S 8723 8724# A BSD-compatible nm program. 8725NM=$lt_NM 8726 8727# A symbol stripping program 8728STRIP=$lt_STRIP 8729 8730# Used to examine libraries when file_magic_cmd begins "file" 8731MAGIC_CMD=$MAGIC_CMD 8732 8733# Used on cygwin: DLL creation program. 8734DLLTOOL="$DLLTOOL" 8735 8736# Used on cygwin: object dumper. 8737OBJDUMP="$OBJDUMP" 8738 8739# Used on cygwin: assembler. 8740AS="$AS" 8741 8742# The name of the directory that contains temporary libtool files. 8743objdir=$objdir 8744 8745# How to create reloadable object files. 8746reload_flag=$lt_reload_flag 8747reload_cmds=$lt_reload_cmds 8748 8749# How to pass a linker flag through the compiler. 8750wl=$lt_lt_prog_compiler_wl 8751 8752# Object file suffix (normally "o"). 8753objext="$ac_objext" 8754 8755# Old archive suffix (normally "a"). 8756libext="$libext" 8757 8758# Shared library suffix (normally ".so"). 8759shrext_cmds='$shrext_cmds' 8760 8761# Executable file suffix (normally ""). 8762exeext="$exeext" 8763 8764# Additional compiler flags for building library objects. 8765pic_flag=$lt_lt_prog_compiler_pic 8766pic_mode=$pic_mode 8767 8768# What is the maximum length of a command? 8769max_cmd_len=$lt_cv_sys_max_cmd_len 8770 8771# Does compiler simultaneously support -c and -o options? 8772compiler_c_o=$lt_lt_cv_prog_compiler_c_o 8773 8774# Must we lock files when doing compilation ? 8775need_locks=$lt_need_locks 8776 8777# Do we need the lib prefix for modules? 8778need_lib_prefix=$need_lib_prefix 8779 8780# Do we need a version for libraries? 8781need_version=$need_version 8782 8783# Whether dlopen is supported. 8784dlopen_support=$enable_dlopen 8785 8786# Whether dlopen of programs is supported. 8787dlopen_self=$enable_dlopen_self 8788 8789# Whether dlopen of statically linked programs is supported. 8790dlopen_self_static=$enable_dlopen_self_static 8791 8792# Compiler flag to prevent dynamic linking. 8793link_static_flag=$lt_lt_prog_compiler_static 8794 8795# Compiler flag to turn off builtin functions. 8796no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 8797 8798# Compiler flag to allow reflexive dlopens. 8799export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 8800 8801# Compiler flag to generate shared objects directly from archives. 8802whole_archive_flag_spec=$lt_whole_archive_flag_spec 8803 8804# Compiler flag to generate thread-safe objects. 8805thread_safe_flag_spec=$lt_thread_safe_flag_spec 8806 8807# Library versioning type. 8808version_type=$version_type 8809 8810# Format of library name prefix. 8811libname_spec=$lt_libname_spec 8812 8813# List of archive names. First name is the real one, the rest are links. 8814# The last name is the one that the linker finds with -lNAME. 8815library_names_spec=$lt_library_names_spec 8816 8817# The coded name of the library, if different from the real name. 8818soname_spec=$lt_soname_spec 8819 8820# Commands used to build and install an old-style archive. 8821RANLIB=$lt_RANLIB 8822old_archive_cmds=$lt_old_archive_cmds 8823old_postinstall_cmds=$lt_old_postinstall_cmds 8824old_postuninstall_cmds=$lt_old_postuninstall_cmds 8825 8826# Create an old-style archive from a shared archive. 8827old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 8828 8829# Create a temporary old-style archive to link instead of a shared archive. 8830old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 8831 8832# Commands used to build and install a shared archive. 8833archive_cmds=$lt_archive_cmds 8834archive_expsym_cmds=$lt_archive_expsym_cmds 8835postinstall_cmds=$lt_postinstall_cmds 8836postuninstall_cmds=$lt_postuninstall_cmds 8837 8838# Commands used to build a loadable module (assumed same as above if empty) 8839module_cmds=$lt_module_cmds 8840module_expsym_cmds=$lt_module_expsym_cmds 8841 8842# Commands to strip libraries. 8843old_striplib=$lt_old_striplib 8844striplib=$lt_striplib 8845 8846# Dependencies to place before the objects being linked to create a 8847# shared library. 8848predep_objects=$lt_predep_objects 8849 8850# Dependencies to place after the objects being linked to create a 8851# shared library. 8852postdep_objects=$lt_postdep_objects 8853 8854# Dependencies to place before the objects being linked to create a 8855# shared library. 8856predeps=$lt_predeps 8857 8858# Dependencies to place after the objects being linked to create a 8859# shared library. 8860postdeps=$lt_postdeps 8861 8862# The library search path used internally by the compiler when linking 8863# a shared library. 8864compiler_lib_search_path=$lt_compiler_lib_search_path 8865 8866# Method to check whether dependent libraries are shared objects. 8867deplibs_check_method=$lt_deplibs_check_method 8868 8869# Command to use when deplibs_check_method == file_magic. 8870file_magic_cmd=$lt_file_magic_cmd 8871 8872# Flag that allows shared libraries with undefined symbols to be built. 8873allow_undefined_flag=$lt_allow_undefined_flag 8874 8875# Flag that forces no undefined symbols. 8876no_undefined_flag=$lt_no_undefined_flag 8877 8878# Commands used to finish a libtool library installation in a directory. 8879finish_cmds=$lt_finish_cmds 8880 8881# Same as above, but a single script fragment to be evaled but not shown. 8882finish_eval=$lt_finish_eval 8883 8884# Take the output of nm and produce a listing of raw symbols and C names. 8885global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 8886 8887# Transform the output of nm in a proper C declaration 8888global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 8889 8890# Transform the output of nm in a C name address pair 8891global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 8892 8893# This is the shared library runtime path variable. 8894runpath_var=$runpath_var 8895 8896# This is the shared library path variable. 8897shlibpath_var=$shlibpath_var 8898 8899# Is shlibpath searched before the hard-coded library search path? 8900shlibpath_overrides_runpath=$shlibpath_overrides_runpath 8901 8902# How to hardcode a shared library path into an executable. 8903hardcode_action=$hardcode_action 8904 8905# Whether we should hardcode library paths into libraries. 8906hardcode_into_libs=$hardcode_into_libs 8907 8908# Flag to hardcode \$libdir into a binary during linking. 8909# This must work even if \$libdir does not exist. 8910hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 8911 8912# If ld is used when linking, flag to hardcode \$libdir into 8913# a binary during linking. This must work even if \$libdir does 8914# not exist. 8915hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 8916 8917# Whether we need a single -rpath flag with a separated argument. 8918hardcode_libdir_separator=$lt_hardcode_libdir_separator 8919 8920# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 8921# resulting binary. 8922hardcode_direct=$hardcode_direct 8923 8924# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 8925# resulting binary. 8926hardcode_minus_L=$hardcode_minus_L 8927 8928# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 8929# the resulting binary. 8930hardcode_shlibpath_var=$hardcode_shlibpath_var 8931 8932# Set to yes if building a shared library automatically hardcodes DIR into the library 8933# and all subsequent libraries and executables linked against it. 8934hardcode_automatic=$hardcode_automatic 8935 8936# Variables whose values should be saved in libtool wrapper scripts and 8937# restored at relink time. 8938variables_saved_for_relink="$variables_saved_for_relink" 8939 8940# Whether libtool must link a program against all its dependency libraries. 8941link_all_deplibs=$link_all_deplibs 8942 8943# Compile-time system search path for libraries 8944sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 8945 8946# Run-time system search path for libraries 8947sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 8948 8949# Fix the shell variable \$srcfile for the compiler. 8950fix_srcfile_path="$fix_srcfile_path" 8951 8952# Set to yes if exported symbols are required. 8953always_export_symbols=$always_export_symbols 8954 8955# The commands to list exported symbols. 8956export_symbols_cmds=$lt_export_symbols_cmds 8957 8958# The commands to extract the exported symbol list from a shared archive. 8959extract_expsyms_cmds=$lt_extract_expsyms_cmds 8960 8961# Symbols that should not be listed in the preloaded symbols. 8962exclude_expsyms=$lt_exclude_expsyms 8963 8964# Symbols that must always be exported. 8965include_expsyms=$lt_include_expsyms 8966 8967# ### END LIBTOOL CONFIG 8968 8969__EOF__ 8970 8971 8972 case $host_os in 8973 aix3*) 8974 cat <<\EOF >> "$cfgfile" 8975 8976# AIX sometimes has problems with the GCC collect2 program. For some 8977# reason, if we set the COLLECT_NAMES environment variable, the problems 8978# vanish in a puff of smoke. 8979if test "X${COLLECT_NAMES+set}" != Xset; then 8980 COLLECT_NAMES= 8981 export COLLECT_NAMES 8982fi 8983EOF 8984 ;; 8985 esac 8986 8987 # We use sed instead of cat because bash on DJGPP gets confused if 8988 # if finds mixed CR/LF and LF-only lines. Since sed operates in 8989 # text mode, it properly converts lines to CR/LF. This bash problem 8990 # is reportedly fixed, but why not run on old versions too? 8991 sed '$q' "$ltmain" >> "$cfgfile" || (rm -f "$cfgfile"; exit 1) 8992 8993 mv -f "$cfgfile" "$ofile" || \ 8994 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 8995 chmod +x "$ofile" 8996 8997else 8998 # If there is no Makefile yet, we rely on a make rule to execute 8999 # `config.status --recheck' to rerun these tests and create the 9000 # libtool script then. 9001 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 9002 if test -f "$ltmain_in"; then 9003 test -f Makefile && make "$ltmain" 9004 fi 9005fi 9006 9007 9008ac_ext=c 9009ac_cpp='$CPP $CPPFLAGS' 9010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9012ac_compiler_gnu=$ac_cv_c_compiler_gnu 9013 9014CC="$lt_save_CC" 9015 9016 9017# Check whether --with-tags or --without-tags was given. 9018if test "${with_tags+set}" = set; then 9019 withval="$with_tags" 9020 tagnames="$withval" 9021fi; 9022 9023if test -f "$ltmain" && test -n "$tagnames"; then 9024 if test ! -f "${ofile}"; then 9025 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not exist" >&5 9026echo "$as_me: WARNING: output file \`$ofile' does not exist" >&2;} 9027 fi 9028 9029 if test -z "$LTCC"; then 9030 eval "`$SHELL ${ofile} --config | grep '^LTCC='`" 9031 if test -z "$LTCC"; then 9032 { echo "$as_me:$LINENO: WARNING: output file \`$ofile' does not look like a libtool script" >&5 9033echo "$as_me: WARNING: output file \`$ofile' does not look like a libtool script" >&2;} 9034 else 9035 { echo "$as_me:$LINENO: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&5 9036echo "$as_me: WARNING: using \`LTCC=$LTCC', extracted from \`$ofile'" >&2;} 9037 fi 9038 fi 9039 9040 # Extract list of available tagged configurations in $ofile. 9041 # Note that this assumes the entire list is on one line. 9042 available_tags=`grep "^available_tags=" "${ofile}" | $SED -e 's/available_tags=\(.*$\)/\1/' -e 's/\"//g'` 9043 9044 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 9045 for tagname in $tagnames; do 9046 IFS="$lt_save_ifs" 9047 # Check whether tagname contains only valid characters 9048 case `$echo "X$tagname" | $Xsed -e 's:[-_ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz1234567890,/]::g'` in 9049 "") ;; 9050 *) { { echo "$as_me:$LINENO: error: invalid tag name: $tagname" >&5 9051echo "$as_me: error: invalid tag name: $tagname" >&2;} 9052 { (exit 1); exit 1; }; } 9053 ;; 9054 esac 9055 9056 if grep "^# ### BEGIN LIBTOOL TAG CONFIG: $tagname$" < "${ofile}" > /dev/null 9057 then 9058 { { echo "$as_me:$LINENO: error: tag name \"$tagname\" already exists" >&5 9059echo "$as_me: error: tag name \"$tagname\" already exists" >&2;} 9060 { (exit 1); exit 1; }; } 9061 fi 9062 9063 # Update the list of available tags. 9064 if test -n "$tagname"; then 9065 echo appending configuration tag \"$tagname\" to $ofile 9066 9067 case $tagname in 9068 CXX) 9069 if test -n "$CXX" && test "X$CXX" != "Xno"; then 9070 ac_ext=cc 9071ac_cpp='$CXXCPP $CPPFLAGS' 9072ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9073ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9074ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 9075 9076 9077 9078 9079archive_cmds_need_lc_CXX=no 9080allow_undefined_flag_CXX= 9081always_export_symbols_CXX=no 9082archive_expsym_cmds_CXX= 9083export_dynamic_flag_spec_CXX= 9084hardcode_direct_CXX=no 9085hardcode_libdir_flag_spec_CXX= 9086hardcode_libdir_flag_spec_ld_CXX= 9087hardcode_libdir_separator_CXX= 9088hardcode_minus_L_CXX=no 9089hardcode_automatic_CXX=no 9090module_cmds_CXX= 9091module_expsym_cmds_CXX= 9092link_all_deplibs_CXX=unknown 9093old_archive_cmds_CXX=$old_archive_cmds 9094no_undefined_flag_CXX= 9095whole_archive_flag_spec_CXX= 9096enable_shared_with_static_runtimes_CXX=no 9097 9098# Dependencies to place before and after the object being linked: 9099predep_objects_CXX= 9100postdep_objects_CXX= 9101predeps_CXX= 9102postdeps_CXX= 9103compiler_lib_search_path_CXX= 9104 9105# Source file extension for C++ test sources. 9106ac_ext=cc 9107 9108# Object file extension for compiled C++ test sources. 9109objext=o 9110objext_CXX=$objext 9111 9112# Code to be used in simple compile tests 9113lt_simple_compile_test_code="int some_variable = 0;\n" 9114 9115# Code to be used in simple link tests 9116lt_simple_link_test_code='int main(int, char *) { return(0); }\n' 9117 9118# ltmain only uses $CC for tagged configurations so make sure $CC is set. 9119 9120# If no C compiler was specified, use CC. 9121LTCC=${LTCC-"$CC"} 9122 9123# Allow CC to be a program name with arguments. 9124compiler=$CC 9125 9126 9127# Allow CC to be a program name with arguments. 9128lt_save_CC=$CC 9129lt_save_LD=$LD 9130lt_save_GCC=$GCC 9131GCC=$GXX 9132lt_save_with_gnu_ld=$with_gnu_ld 9133lt_save_path_LD=$lt_cv_path_LD 9134if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 9135 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 9136else 9137 unset lt_cv_prog_gnu_ld 9138fi 9139if test -n "${lt_cv_path_LDCXX+set}"; then 9140 lt_cv_path_LD=$lt_cv_path_LDCXX 9141else 9142 unset lt_cv_path_LD 9143fi 9144test -z "${LDCXX+set}" || LD=$LDCXX 9145CC=${CXX-"c++"} 9146compiler=$CC 9147compiler_CXX=$CC 9148cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 9149 9150# We don't want -fno-exception wen compiling C++ code, so set the 9151# no_builtin_flag separately 9152if test "$GXX" = yes; then 9153 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 9154else 9155 lt_prog_compiler_no_builtin_flag_CXX= 9156fi 9157 9158if test "$GXX" = yes; then 9159 # Set up default GNU C++ configuration 9160 9161 9162# Check whether --with-gnu-ld or --without-gnu-ld was given. 9163if test "${with_gnu_ld+set}" = set; then 9164 withval="$with_gnu_ld" 9165 test "$withval" = no || with_gnu_ld=yes 9166else 9167 with_gnu_ld=no 9168fi; 9169ac_prog=ld 9170if test "$GCC" = yes; then 9171 # Check if gcc -print-prog-name=ld gives a path. 9172 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 9173echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 9174 case $host in 9175 *-*-mingw*) 9176 # gcc leaves a trailing carriage return which upsets mingw 9177 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 9178 *) 9179 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 9180 esac 9181 case $ac_prog in 9182 # Accept absolute paths. 9183 [\\/]* | ?:[\\/]*) 9184 re_direlt='/[^/][^/]*/\.\./' 9185 # Canonicalize the pathname of ld 9186 ac_prog=`echo $ac_prog| $SED 's%\\\\%/%g'` 9187 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 9188 ac_prog=`echo $ac_prog| $SED "s%$re_direlt%/%"` 9189 done 9190 test -z "$LD" && LD="$ac_prog" 9191 ;; 9192 "") 9193 # If it fails, then pretend we aren't using GCC. 9194 ac_prog=ld 9195 ;; 9196 *) 9197 # If it is relative, then search for the first ld in PATH. 9198 with_gnu_ld=unknown 9199 ;; 9200 esac 9201elif test "$with_gnu_ld" = yes; then 9202 echo "$as_me:$LINENO: checking for GNU ld" >&5 9203echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 9204else 9205 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 9206echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 9207fi 9208if test "${lt_cv_path_LD+set}" = set; then 9209 echo $ECHO_N "(cached) $ECHO_C" >&6 9210else 9211 if test -z "$LD"; then 9212 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 9213 for ac_dir in $PATH; do 9214 IFS="$lt_save_ifs" 9215 test -z "$ac_dir" && ac_dir=. 9216 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 9217 lt_cv_path_LD="$ac_dir/$ac_prog" 9218 # Check to see if the program is GNU ld. I'd rather use --version, 9219 # but apparently some GNU ld's only accept -v. 9220 # Break only if it was the GNU/non-GNU ld that we prefer. 9221 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 9222 *GNU* | *'with BFD'*) 9223 test "$with_gnu_ld" != no && break 9224 ;; 9225 *) 9226 test "$with_gnu_ld" != yes && break 9227 ;; 9228 esac 9229 fi 9230 done 9231 IFS="$lt_save_ifs" 9232else 9233 lt_cv_path_LD="$LD" # Let the user override the test with a path. 9234fi 9235fi 9236 9237LD="$lt_cv_path_LD" 9238if test -n "$LD"; then 9239 echo "$as_me:$LINENO: result: $LD" >&5 9240echo "${ECHO_T}$LD" >&6 9241else 9242 echo "$as_me:$LINENO: result: no" >&5 9243echo "${ECHO_T}no" >&6 9244fi 9245test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 9246echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 9247 { (exit 1); exit 1; }; } 9248echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 9249echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 9250if test "${lt_cv_prog_gnu_ld+set}" = set; then 9251 echo $ECHO_N "(cached) $ECHO_C" >&6 9252else 9253 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 9254case `$LD -v 2>&1 </dev/null` in 9255*GNU* | *'with BFD'*) 9256 lt_cv_prog_gnu_ld=yes 9257 ;; 9258*) 9259 lt_cv_prog_gnu_ld=no 9260 ;; 9261esac 9262fi 9263echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 9264echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 9265with_gnu_ld=$lt_cv_prog_gnu_ld 9266 9267 9268 9269 # Check if GNU C++ uses GNU ld as the underlying linker, since the 9270 # archiving commands below assume that GNU ld is being used. 9271 if test "$with_gnu_ld" = yes; then 9272 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9273 archive_expsym_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9274 9275 hardcode_libdir_flag_spec_CXX='${wl}--rpath ${wl}$libdir' 9276 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9277 9278 # If archive_cmds runs LD, not CC, wlarc should be empty 9279 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 9280 # investigate it a little bit more. (MM) 9281 wlarc='${wl}' 9282 9283 # ancient GNU ld didn't support --whole-archive et. al. 9284 if eval "`$CC -print-prog-name=ld` --help 2>&1" | \ 9285 grep 'no-whole-archive' > /dev/null; then 9286 whole_archive_flag_spec_CXX="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 9287 else 9288 whole_archive_flag_spec_CXX= 9289 fi 9290 else 9291 with_gnu_ld=no 9292 wlarc= 9293 9294 # A generic and very simple default shared library creation 9295 # command for GNU C++ for the case where it uses the native 9296 # linker, instead of GNU ld. If possible, this setting should 9297 # overridden to take advantage of the native linker features on 9298 # the platform it is being used on. 9299 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 9300 fi 9301 9302 # Commands to make compiler produce verbose output that lists 9303 # what "hidden" libraries, object files and flags are used when 9304 # linking a shared library. 9305 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9306 9307else 9308 GXX=no 9309 with_gnu_ld=no 9310 wlarc= 9311fi 9312 9313# PORTME: fill in a description of your system's C++ link characteristics 9314echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 9315echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 9316ld_shlibs_CXX=yes 9317case $host_os in 9318 aix3*) 9319 # FIXME: insert proper C++ library support 9320 ld_shlibs_CXX=no 9321 ;; 9322 aix4* | aix5*) 9323 if test "$host_cpu" = ia64; then 9324 # On IA64, the linker does run time linking by default, so we don't 9325 # have to do anything special. 9326 aix_use_runtimelinking=no 9327 exp_sym_flag='-Bexport' 9328 no_entry_flag="" 9329 else 9330 aix_use_runtimelinking=no 9331 9332 # Test if we are trying to use run time linking or normal 9333 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9334 # need to do runtime linking. 9335 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 9336 for ld_flag in $LDFLAGS; do 9337 case $ld_flag in 9338 *-brtl*) 9339 aix_use_runtimelinking=yes 9340 break 9341 ;; 9342 esac 9343 done 9344 esac 9345 9346 exp_sym_flag='-bexport' 9347 no_entry_flag='-bnoentry' 9348 fi 9349 9350 # When large executables or shared objects are built, AIX ld can 9351 # have problems creating the table of contents. If linking a library 9352 # or program results in "error TOC overflow" add -mminimal-toc to 9353 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9354 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9355 9356 archive_cmds_CXX='' 9357 hardcode_direct_CXX=yes 9358 hardcode_libdir_separator_CXX=':' 9359 link_all_deplibs_CXX=yes 9360 9361 if test "$GXX" = yes; then 9362 case $host_os in aix4.012|aix4.012.*) 9363 # We only want to do this on AIX 4.2 and lower, the check 9364 # below for broken collect2 doesn't work under 4.3+ 9365 collect2name=`${CC} -print-prog-name=collect2` 9366 if test -f "$collect2name" && \ 9367 strings "$collect2name" | grep resolve_lib_name >/dev/null 9368 then 9369 # We have reworked collect2 9370 hardcode_direct_CXX=yes 9371 else 9372 # We have old collect2 9373 hardcode_direct_CXX=unsupported 9374 # It fails to find uninstalled libraries when the uninstalled 9375 # path is not listed in the libpath. Setting hardcode_minus_L 9376 # to unsupported forces relinking 9377 hardcode_minus_L_CXX=yes 9378 hardcode_libdir_flag_spec_CXX='-L$libdir' 9379 hardcode_libdir_separator_CXX= 9380 fi 9381 esac 9382 shared_flag='-shared' 9383 else 9384 # not using gcc 9385 if test "$host_cpu" = ia64; then 9386 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9387 # chokes on -Wl,-G. The following line is correct: 9388 shared_flag='-G' 9389 else 9390 if test "$aix_use_runtimelinking" = yes; then 9391 shared_flag='${wl}-G' 9392 else 9393 shared_flag='${wl}-bM:SRE' 9394 fi 9395 fi 9396 fi 9397 9398 # It seems that -bexpall does not export symbols beginning with 9399 # underscore (_), so it is better to generate a list of symbols to export. 9400 always_export_symbols_CXX=yes 9401 if test "$aix_use_runtimelinking" = yes; then 9402 # Warning - without using the other runtime loading flags (-brtl), 9403 # -berok will link without error, but may produce a broken library. 9404 allow_undefined_flag_CXX='-berok' 9405 # Determine the default libpath from the value encoded in an empty executable. 9406 cat >conftest.$ac_ext <<_ACEOF 9407/* confdefs.h. */ 9408_ACEOF 9409cat confdefs.h >>conftest.$ac_ext 9410cat >>conftest.$ac_ext <<_ACEOF 9411/* end confdefs.h. */ 9412 9413int 9414main () 9415{ 9416 9417 ; 9418 return 0; 9419} 9420_ACEOF 9421rm -f conftest.$ac_objext conftest$ac_exeext 9422if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9423 (eval $ac_link) 2>conftest.er1 9424 ac_status=$? 9425 grep -v '^ *+' conftest.er1 >conftest.err 9426 rm -f conftest.er1 9427 cat conftest.err >&5 9428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9429 (exit $ac_status); } && 9430 { ac_try='test -z "$ac_cxx_werror_flag" 9431 || test ! -s conftest.err' 9432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9433 (eval $ac_try) 2>&5 9434 ac_status=$? 9435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9436 (exit $ac_status); }; } && 9437 { ac_try='test -s conftest$ac_exeext' 9438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9439 (eval $ac_try) 2>&5 9440 ac_status=$? 9441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9442 (exit $ac_status); }; }; then 9443 9444aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9445}'` 9446# Check for a 64-bit object if we didn't find anything. 9447if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9448}'`; fi 9449else 9450 echo "$as_me: failed program was:" >&5 9451sed 's/^/| /' conftest.$ac_ext >&5 9452 9453fi 9454rm -f conftest.err conftest.$ac_objext \ 9455 conftest$ac_exeext conftest.$ac_ext 9456if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9457 9458 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9459 9460 archive_expsym_cmds_CXX="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9461 else 9462 if test "$host_cpu" = ia64; then 9463 hardcode_libdir_flag_spec_CXX='${wl}-R $libdir:/usr/lib:/lib' 9464 allow_undefined_flag_CXX="-z nodefs" 9465 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 9466 else 9467 # Determine the default libpath from the value encoded in an empty executable. 9468 cat >conftest.$ac_ext <<_ACEOF 9469/* confdefs.h. */ 9470_ACEOF 9471cat confdefs.h >>conftest.$ac_ext 9472cat >>conftest.$ac_ext <<_ACEOF 9473/* end confdefs.h. */ 9474 9475int 9476main () 9477{ 9478 9479 ; 9480 return 0; 9481} 9482_ACEOF 9483rm -f conftest.$ac_objext conftest$ac_exeext 9484if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9485 (eval $ac_link) 2>conftest.er1 9486 ac_status=$? 9487 grep -v '^ *+' conftest.er1 >conftest.err 9488 rm -f conftest.er1 9489 cat conftest.err >&5 9490 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9491 (exit $ac_status); } && 9492 { ac_try='test -z "$ac_cxx_werror_flag" 9493 || test ! -s conftest.err' 9494 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9495 (eval $ac_try) 2>&5 9496 ac_status=$? 9497 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9498 (exit $ac_status); }; } && 9499 { ac_try='test -s conftest$ac_exeext' 9500 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9501 (eval $ac_try) 2>&5 9502 ac_status=$? 9503 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9504 (exit $ac_status); }; }; then 9505 9506aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9507}'` 9508# Check for a 64-bit object if we didn't find anything. 9509if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 9510}'`; fi 9511else 9512 echo "$as_me: failed program was:" >&5 9513sed 's/^/| /' conftest.$ac_ext >&5 9514 9515fi 9516rm -f conftest.err conftest.$ac_objext \ 9517 conftest$ac_exeext conftest.$ac_ext 9518if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9519 9520 hardcode_libdir_flag_spec_CXX='${wl}-blibpath:$libdir:'"$aix_libpath" 9521 # Warning - without using the other run time loading flags, 9522 # -berok will link without error, but may produce a broken library. 9523 no_undefined_flag_CXX=' ${wl}-bernotok' 9524 allow_undefined_flag_CXX=' ${wl}-berok' 9525 # -bexpall does not export symbols beginning with underscore (_) 9526 always_export_symbols_CXX=yes 9527 # Exported symbols can be pulled into shared objects from archives 9528 whole_archive_flag_spec_CXX=' ' 9529 archive_cmds_need_lc_CXX=yes 9530 # This is similar to how AIX traditionally builds it's shared libraries. 9531 archive_expsym_cmds_CXX="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 9532 fi 9533 fi 9534 ;; 9535 chorus*) 9536 case $cc_basename in 9537 *) 9538 # FIXME: insert proper C++ library support 9539 ld_shlibs_CXX=no 9540 ;; 9541 esac 9542 ;; 9543 9544 cygwin* | mingw* | pw32*) 9545 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 9546 # as there is no search path for DLLs. 9547 hardcode_libdir_flag_spec_CXX='-L$libdir' 9548 allow_undefined_flag_CXX=unsupported 9549 always_export_symbols_CXX=no 9550 enable_shared_with_static_runtimes_CXX=yes 9551 9552 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 9553 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9554 # If the export-symbols file already is a .def file (1st line 9555 # is EXPORTS), use it as is; otherwise, prepend... 9556 archive_expsym_cmds_CXX='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9557 cp $export_symbols $output_objdir/$soname.def; 9558 else 9559 echo EXPORTS > $output_objdir/$soname.def; 9560 cat $export_symbols >> $output_objdir/$soname.def; 9561 fi~ 9562 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 9563 else 9564 ld_shlibs_CXX=no 9565 fi 9566 ;; 9567 9568 darwin* | rhapsody*) 9569 if test "$GXX" = yes; then 9570 archive_cmds_need_lc_CXX=no 9571 case "$host_os" in 9572 rhapsody* | darwin1.[012]) 9573 allow_undefined_flag_CXX='-undefined suppress' 9574 ;; 9575 *) # Darwin 1.3 on 9576 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 9577 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9578 else 9579 case ${MACOSX_DEPLOYMENT_TARGET} in 9580 10.[012]) 9581 allow_undefined_flag_CXX='-flat_namespace -undefined suppress' 9582 ;; 9583 10.*) 9584 allow_undefined_flag_CXX='-undefined dynamic_lookup' 9585 ;; 9586 esac 9587 fi 9588 ;; 9589 esac 9590 lt_int_apple_cc_single_mod=no 9591 output_verbose_link_cmd='echo' 9592 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 9593 lt_int_apple_cc_single_mod=yes 9594 fi 9595 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9596 archive_cmds_CXX='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9597 else 9598 archive_cmds_CXX='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 9599 fi 9600 module_cmds_CXX='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 9601 9602 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 9603 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 9604 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9605 else 9606 archive_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9607 fi 9608 module_expsym_cmds_CXX='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 9609 hardcode_direct_CXX=no 9610 hardcode_automatic_CXX=yes 9611 hardcode_shlibpath_var_CXX=unsupported 9612 whole_archive_flag_spec_CXX='-all_load $convenience' 9613 link_all_deplibs_CXX=yes 9614 else 9615 ld_shlibs_CXX=no 9616 fi 9617 ;; 9618 9619 dgux*) 9620 case $cc_basename in 9621 ec++) 9622 # FIXME: insert proper C++ library support 9623 ld_shlibs_CXX=no 9624 ;; 9625 ghcx) 9626 # Green Hills C++ Compiler 9627 # FIXME: insert proper C++ library support 9628 ld_shlibs_CXX=no 9629 ;; 9630 *) 9631 # FIXME: insert proper C++ library support 9632 ld_shlibs_CXX=no 9633 ;; 9634 esac 9635 ;; 9636 freebsd12*) 9637 # C++ shared libraries reported to be fairly broken before switch to ELF 9638 ld_shlibs_CXX=no 9639 ;; 9640 freebsd-elf*) 9641 archive_cmds_need_lc_CXX=no 9642 ;; 9643 freebsd* | kfreebsd*-gnu) 9644 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 9645 # conventions 9646 ld_shlibs_CXX=yes 9647 ;; 9648 gnu*) 9649 ;; 9650 hpux9*) 9651 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9652 hardcode_libdir_separator_CXX=: 9653 export_dynamic_flag_spec_CXX='${wl}-E' 9654 hardcode_direct_CXX=yes 9655 hardcode_minus_L_CXX=yes # Not in the search PATH, 9656 # but as the default 9657 # location of the library. 9658 9659 case $cc_basename in 9660 CC) 9661 # FIXME: insert proper C++ library support 9662 ld_shlibs_CXX=no 9663 ;; 9664 aCC) 9665 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -b ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9666 # Commands to make compiler produce verbose output that lists 9667 # what "hidden" libraries, object files and flags are used when 9668 # linking a shared library. 9669 # 9670 # There doesn't appear to be a way to prevent this compiler from 9671 # explicitly linking system object files so we need to strip them 9672 # from the output so that they don't get included in the library 9673 # dependencies. 9674 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9675 ;; 9676 *) 9677 if test "$GXX" = yes; then 9678 archive_cmds_CXX='$rm $output_objdir/$soname~$CC -shared -nostdlib -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 9679 else 9680 # FIXME: insert proper C++ library support 9681 ld_shlibs_CXX=no 9682 fi 9683 ;; 9684 esac 9685 ;; 9686 hpux10*|hpux11*) 9687 if test $with_gnu_ld = no; then 9688 case "$host_cpu" in 9689 hppa*64*) 9690 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9691 hardcode_libdir_flag_spec_ld_CXX='+b $libdir' 9692 hardcode_libdir_separator_CXX=: 9693 ;; 9694 ia64*) 9695 hardcode_libdir_flag_spec_CXX='-L$libdir' 9696 ;; 9697 *) 9698 hardcode_libdir_flag_spec_CXX='${wl}+b ${wl}$libdir' 9699 hardcode_libdir_separator_CXX=: 9700 export_dynamic_flag_spec_CXX='${wl}-E' 9701 ;; 9702 esac 9703 fi 9704 case "$host_cpu" in 9705 hppa*64*) 9706 hardcode_direct_CXX=no 9707 hardcode_shlibpath_var_CXX=no 9708 ;; 9709 ia64*) 9710 hardcode_direct_CXX=no 9711 hardcode_shlibpath_var_CXX=no 9712 hardcode_minus_L_CXX=yes # Not in the search PATH, 9713 # but as the default 9714 # location of the library. 9715 ;; 9716 *) 9717 hardcode_direct_CXX=yes 9718 hardcode_minus_L_CXX=yes # Not in the search PATH, 9719 # but as the default 9720 # location of the library. 9721 ;; 9722 esac 9723 9724 case $cc_basename in 9725 CC) 9726 # FIXME: insert proper C++ library support 9727 ld_shlibs_CXX=no 9728 ;; 9729 aCC) 9730 case "$host_cpu" in 9731 hppa*64*|ia64*) 9732 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9733 ;; 9734 *) 9735 archive_cmds_CXX='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9736 ;; 9737 esac 9738 # Commands to make compiler produce verbose output that lists 9739 # what "hidden" libraries, object files and flags are used when 9740 # linking a shared library. 9741 # 9742 # There doesn't appear to be a way to prevent this compiler from 9743 # explicitly linking system object files so we need to strip them 9744 # from the output so that they don't get included in the library 9745 # dependencies. 9746 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | grep "\-L"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9747 ;; 9748 *) 9749 if test "$GXX" = yes; then 9750 if test $with_gnu_ld = no; then 9751 case "$host_cpu" in 9752 ia64*|hppa*64*) 9753 archive_cmds_CXX='$LD -b +h $soname -o $lib $linker_flags $libobjs $deplibs' 9754 ;; 9755 *) 9756 archive_cmds_CXX='$CC -shared -nostdlib -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 9757 ;; 9758 esac 9759 fi 9760 else 9761 # FIXME: insert proper C++ library support 9762 ld_shlibs_CXX=no 9763 fi 9764 ;; 9765 esac 9766 ;; 9767 irix5* | irix6*) 9768 case $cc_basename in 9769 CC) 9770 # SGI C++ 9771 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 9772 9773 # Archives containing C++ object files must be created using 9774 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 9775 # necessary to make sure instantiated templates are included 9776 # in the archive. 9777 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 9778 ;; 9779 *) 9780 if test "$GXX" = yes; then 9781 if test "$with_gnu_ld" = no; then 9782 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 9783 else 9784 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` -o $lib' 9785 fi 9786 fi 9787 link_all_deplibs_CXX=yes 9788 ;; 9789 esac 9790 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9791 hardcode_libdir_separator_CXX=: 9792 ;; 9793 linux*) 9794 case $cc_basename in 9795 KCC) 9796 # Kuck and Associates, Inc. (KAI) C++ Compiler 9797 9798 # KCC will only create a shared library if the output file 9799 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9800 # to its proper name (with version) after linking. 9801 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9802 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib ${wl}-retain-symbols-file,$export_symbols; mv \$templib $lib' 9803 # Commands to make compiler produce verbose output that lists 9804 # what "hidden" libraries, object files and flags are used when 9805 # linking a shared library. 9806 # 9807 # There doesn't appear to be a way to prevent this compiler from 9808 # explicitly linking system object files so we need to strip them 9809 # from the output so that they don't get included in the library 9810 # dependencies. 9811 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | grep "ld"`; rm -f libconftest$shared_ext; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9812 9813 hardcode_libdir_flag_spec_CXX='${wl}--rpath,$libdir' 9814 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9815 9816 # Archives containing C++ object files must be created using 9817 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9818 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9819 ;; 9820 icpc) 9821 # Intel C++ 9822 with_gnu_ld=yes 9823 archive_cmds_need_lc_CXX=no 9824 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9825 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9826 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9827 export_dynamic_flag_spec_CXX='${wl}--export-dynamic' 9828 whole_archive_flag_spec_CXX='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9829 ;; 9830 cxx) 9831 # Compaq C++ 9832 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib' 9833 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $wl$soname -o $lib ${wl}-retain-symbols-file $wl$export_symbols' 9834 9835 runpath_var=LD_RUN_PATH 9836 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9837 hardcode_libdir_separator_CXX=: 9838 9839 # Commands to make compiler produce verbose output that lists 9840 # what "hidden" libraries, object files and flags are used when 9841 # linking a shared library. 9842 # 9843 # There doesn't appear to be a way to prevent this compiler from 9844 # explicitly linking system object files so we need to strip them 9845 # from the output so that they don't get included in the library 9846 # dependencies. 9847 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9848 ;; 9849 esac 9850 ;; 9851 lynxos*) 9852 # FIXME: insert proper C++ library support 9853 ld_shlibs_CXX=no 9854 ;; 9855 m88k*) 9856 # FIXME: insert proper C++ library support 9857 ld_shlibs_CXX=no 9858 ;; 9859 mvs*) 9860 case $cc_basename in 9861 cxx) 9862 # FIXME: insert proper C++ library support 9863 ld_shlibs_CXX=no 9864 ;; 9865 *) 9866 # FIXME: insert proper C++ library support 9867 ld_shlibs_CXX=no 9868 ;; 9869 esac 9870 ;; 9871 netbsd*) 9872 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 9873 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 9874 wlarc= 9875 hardcode_libdir_flag_spec_CXX='-R$libdir' 9876 hardcode_direct_CXX=yes 9877 hardcode_shlibpath_var_CXX=no 9878 fi 9879 # Workaround some broken pre-1.5 toolchains 9880 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 9881 ;; 9882 osf3*) 9883 case $cc_basename in 9884 KCC) 9885 # Kuck and Associates, Inc. (KAI) C++ Compiler 9886 9887 # KCC will only create a shared library if the output file 9888 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9889 # to its proper name (with version) after linking. 9890 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9891 9892 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9893 hardcode_libdir_separator_CXX=: 9894 9895 # Archives containing C++ object files must be created using 9896 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 9897 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 9898 9899 ;; 9900 RCC) 9901 # Rational C++ 2.4.1 9902 # FIXME: insert proper C++ library support 9903 ld_shlibs_CXX=no 9904 ;; 9905 cxx) 9906 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9907 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname $soname `test -n "$verstring" && echo ${wl}-set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 9908 9909 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9910 hardcode_libdir_separator_CXX=: 9911 9912 # Commands to make compiler produce verbose output that lists 9913 # what "hidden" libraries, object files and flags are used when 9914 # linking a shared library. 9915 # 9916 # There doesn't appear to be a way to prevent this compiler from 9917 # explicitly linking system object files so we need to strip them 9918 # from the output so that they don't get included in the library 9919 # dependencies. 9920 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9921 ;; 9922 *) 9923 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9924 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9925 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 9926 9927 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9928 hardcode_libdir_separator_CXX=: 9929 9930 # Commands to make compiler produce verbose output that lists 9931 # what "hidden" libraries, object files and flags are used when 9932 # linking a shared library. 9933 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9934 9935 else 9936 # FIXME: insert proper C++ library support 9937 ld_shlibs_CXX=no 9938 fi 9939 ;; 9940 esac 9941 ;; 9942 osf4* | osf5*) 9943 case $cc_basename in 9944 KCC) 9945 # Kuck and Associates, Inc. (KAI) C++ Compiler 9946 9947 # KCC will only create a shared library if the output file 9948 # ends with ".so" (or ".sl" for HP-UX), so rename the library 9949 # to its proper name (with version) after linking. 9950 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\${tempext}\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 9951 9952 hardcode_libdir_flag_spec_CXX='${wl}-rpath,$libdir' 9953 hardcode_libdir_separator_CXX=: 9954 9955 # Archives containing C++ object files must be created using 9956 # the KAI C++ compiler. 9957 old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' 9958 ;; 9959 RCC) 9960 # Rational C++ 2.4.1 9961 # FIXME: insert proper C++ library support 9962 ld_shlibs_CXX=no 9963 ;; 9964 cxx) 9965 allow_undefined_flag_CXX=' -expect_unresolved \*' 9966 archive_cmds_CXX='$CC -shared${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib' 9967 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 9968 echo "-hidden">> $lib.exp~ 9969 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname -Wl,-input -Wl,$lib.exp `test -n "$verstring" && echo -set_version $verstring` -update_registry $objdir/so_locations -o $lib~ 9970 $rm $lib.exp' 9971 9972 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 9973 hardcode_libdir_separator_CXX=: 9974 9975 # Commands to make compiler produce verbose output that lists 9976 # what "hidden" libraries, object files and flags are used when 9977 # linking a shared library. 9978 # 9979 # There doesn't appear to be a way to prevent this compiler from 9980 # explicitly linking system object files so we need to strip them 9981 # from the output so that they don't get included in the library 9982 # dependencies. 9983 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "ld" | grep -v "ld:"`; templist=`echo $templist | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 9984 ;; 9985 *) 9986 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 9987 allow_undefined_flag_CXX=' ${wl}-expect_unresolved ${wl}\*' 9988 archive_cmds_CXX='$CC -shared -nostdlib ${allow_undefined_flag} $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${objdir}/so_locations -o $lib' 9989 9990 hardcode_libdir_flag_spec_CXX='${wl}-rpath ${wl}$libdir' 9991 hardcode_libdir_separator_CXX=: 9992 9993 # Commands to make compiler produce verbose output that lists 9994 # what "hidden" libraries, object files and flags are used when 9995 # linking a shared library. 9996 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep "\-L"' 9997 9998 else 9999 # FIXME: insert proper C++ library support 10000 ld_shlibs_CXX=no 10001 fi 10002 ;; 10003 esac 10004 ;; 10005 psos*) 10006 # FIXME: insert proper C++ library support 10007 ld_shlibs_CXX=no 10008 ;; 10009 sco*) 10010 archive_cmds_need_lc_CXX=no 10011 case $cc_basename in 10012 CC) 10013 # FIXME: insert proper C++ library support 10014 ld_shlibs_CXX=no 10015 ;; 10016 *) 10017 # FIXME: insert proper C++ library support 10018 ld_shlibs_CXX=no 10019 ;; 10020 esac 10021 ;; 10022 sunos4*) 10023 case $cc_basename in 10024 CC) 10025 # Sun C++ 4.x 10026 # FIXME: insert proper C++ library support 10027 ld_shlibs_CXX=no 10028 ;; 10029 lcc) 10030 # Lucid 10031 # FIXME: insert proper C++ library support 10032 ld_shlibs_CXX=no 10033 ;; 10034 *) 10035 # FIXME: insert proper C++ library support 10036 ld_shlibs_CXX=no 10037 ;; 10038 esac 10039 ;; 10040 solaris*) 10041 case $cc_basename in 10042 CC) 10043 # Sun C++ 4.2, 5.x and Centerline C++ 10044 no_undefined_flag_CXX=' -zdefs' 10045 archive_cmds_CXX='$CC -G${allow_undefined_flag} -nolib -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 10046 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10047 $CC -G${allow_undefined_flag} -nolib ${wl}-M ${wl}$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10048 10049 hardcode_libdir_flag_spec_CXX='-R$libdir' 10050 hardcode_shlibpath_var_CXX=no 10051 case $host_os in 10052 solaris2.0-5 | solaris2.0-5.*) ;; 10053 *) 10054 # The C++ compiler is used as linker so we must use $wl 10055 # flag to pass the commands to the underlying system 10056 # linker. 10057 # Supported since Solaris 2.6 (maybe 2.5.1?) 10058 whole_archive_flag_spec_CXX='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 10059 ;; 10060 esac 10061 link_all_deplibs_CXX=yes 10062 10063 # Commands to make compiler produce verbose output that lists 10064 # what "hidden" libraries, object files and flags are used when 10065 # linking a shared library. 10066 # 10067 # There doesn't appear to be a way to prevent this compiler from 10068 # explicitly linking system object files so we need to strip them 10069 # from the output so that they don't get included in the library 10070 # dependencies. 10071 output_verbose_link_cmd='templist=`$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep "\-[LR]"`; list=""; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; echo $list' 10072 10073 # Archives containing C++ object files must be created using 10074 # "CC -xar", where "CC" is the Sun C++ compiler. This is 10075 # necessary to make sure instantiated templates are included 10076 # in the archive. 10077 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 10078 ;; 10079 gcx) 10080 # Green Hills C++ Compiler 10081 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10082 10083 # The C++ compiler must be used to create the archive. 10084 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 10085 ;; 10086 *) 10087 # GNU C++ compiler with Solaris linker 10088 if test "$GXX" = yes && test "$with_gnu_ld" = no; then 10089 no_undefined_flag_CXX=' ${wl}-z ${wl}defs' 10090 if $CC --version | grep -v '^2\.7' > /dev/null; then 10091 archive_cmds_CXX='$CC -shared -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10092 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10093 $CC -shared -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10094 10095 # Commands to make compiler produce verbose output that lists 10096 # what "hidden" libraries, object files and flags are used when 10097 # linking a shared library. 10098 output_verbose_link_cmd="$CC -shared $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10099 else 10100 # g++ 2.7 appears to require `-G' NOT `-shared' on this 10101 # platform. 10102 archive_cmds_CXX='$CC -G -nostdlib $LDFLAGS $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags ${wl}-h $wl$soname -o $lib' 10103 archive_expsym_cmds_CXX='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 10104 $CC -G -nostdlib ${wl}-M $wl$lib.exp -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$rm $lib.exp' 10105 10106 # Commands to make compiler produce verbose output that lists 10107 # what "hidden" libraries, object files and flags are used when 10108 # linking a shared library. 10109 output_verbose_link_cmd="$CC -G $CFLAGS -v conftest.$objext 2>&1 | grep \"\-L\"" 10110 fi 10111 10112 hardcode_libdir_flag_spec_CXX='${wl}-R $wl$libdir' 10113 fi 10114 ;; 10115 esac 10116 ;; 10117 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 10118 archive_cmds_need_lc_CXX=no 10119 ;; 10120 tandem*) 10121 case $cc_basename in 10122 NCC) 10123 # NonStop-UX NCC 3.20 10124 # FIXME: insert proper C++ library support 10125 ld_shlibs_CXX=no 10126 ;; 10127 *) 10128 # FIXME: insert proper C++ library support 10129 ld_shlibs_CXX=no 10130 ;; 10131 esac 10132 ;; 10133 vxworks*) 10134 # FIXME: insert proper C++ library support 10135 ld_shlibs_CXX=no 10136 ;; 10137 *) 10138 # FIXME: insert proper C++ library support 10139 ld_shlibs_CXX=no 10140 ;; 10141esac 10142echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10143echo "${ECHO_T}$ld_shlibs_CXX" >&6 10144test "$ld_shlibs_CXX" = no && can_build_shared=no 10145 10146GCC_CXX="$GXX" 10147LD_CXX="$LD" 10148 10149## CAVEAT EMPTOR: 10150## There is no encapsulation within the following macros, do not change 10151## the running order or otherwise move them around unless you know exactly 10152## what you are doing... 10153 10154cat > conftest.$ac_ext <<EOF 10155class Foo 10156{ 10157public: 10158 Foo (void) { a = 0; } 10159private: 10160 int a; 10161}; 10162EOF 10163 10164if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10165 (eval $ac_compile) 2>&5 10166 ac_status=$? 10167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10168 (exit $ac_status); }; then 10169 # Parse the compiler output and extract the necessary 10170 # objects, libraries and library flags. 10171 10172 # Sentinel used to keep track of whether or not we are before 10173 # the conftest object file. 10174 pre_test_object_deps_done=no 10175 10176 # The `*' in the case matches for architectures that use `case' in 10177 # $output_verbose_cmd can trigger glob expansion during the loop 10178 # eval without this substitution. 10179 output_verbose_link_cmd="`$echo \"X$output_verbose_link_cmd\" | $Xsed -e \"$no_glob_subst\"`" 10180 10181 for p in `eval $output_verbose_link_cmd`; do 10182 case $p in 10183 10184 -L* | -R* | -l*) 10185 # Some compilers place space between "-{L,R}" and the path. 10186 # Remove the space. 10187 if test $p = "-L" \ 10188 || test $p = "-R"; then 10189 prev=$p 10190 continue 10191 else 10192 prev= 10193 fi 10194 10195 if test "$pre_test_object_deps_done" = no; then 10196 case $p in 10197 -L* | -R*) 10198 # Internal compiler library paths should come after those 10199 # provided the user. The postdeps already come after the 10200 # user supplied libs so there is no need to process them. 10201 if test -z "$compiler_lib_search_path_CXX"; then 10202 compiler_lib_search_path_CXX="${prev}${p}" 10203 else 10204 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} ${prev}${p}" 10205 fi 10206 ;; 10207 # The "-l" case would never come before the object being 10208 # linked, so don't bother handling this case. 10209 esac 10210 else 10211 if test -z "$postdeps_CXX"; then 10212 postdeps_CXX="${prev}${p}" 10213 else 10214 postdeps_CXX="${postdeps_CXX} ${prev}${p}" 10215 fi 10216 fi 10217 ;; 10218 10219 *.$objext) 10220 # This assumes that the test object file only shows up 10221 # once in the compiler output. 10222 if test "$p" = "conftest.$objext"; then 10223 pre_test_object_deps_done=yes 10224 continue 10225 fi 10226 10227 if test "$pre_test_object_deps_done" = no; then 10228 if test -z "$predep_objects_CXX"; then 10229 predep_objects_CXX="$p" 10230 else 10231 predep_objects_CXX="$predep_objects_CXX $p" 10232 fi 10233 else 10234 if test -z "$postdep_objects_CXX"; then 10235 postdep_objects_CXX="$p" 10236 else 10237 postdep_objects_CXX="$postdep_objects_CXX $p" 10238 fi 10239 fi 10240 ;; 10241 10242 *) ;; # Ignore the rest. 10243 10244 esac 10245 done 10246 10247 # Clean up. 10248 rm -f a.out a.exe 10249else 10250 echo "libtool.m4: error: problem compiling CXX test program" 10251fi 10252 10253$rm -f confest.$objext 10254 10255case " $postdeps_CXX " in 10256*" -lc "*) archive_cmds_need_lc_CXX=no ;; 10257esac 10258 10259lt_prog_compiler_wl_CXX= 10260lt_prog_compiler_pic_CXX= 10261lt_prog_compiler_static_CXX= 10262 10263echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10264echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10265 10266 # C++ specific cases for pic, static, wl, etc. 10267 if test "$GXX" = yes; then 10268 lt_prog_compiler_wl_CXX='-Wl,' 10269 lt_prog_compiler_static_CXX='-static' 10270 10271 case $host_os in 10272 aix*) 10273 # All AIX code is PIC. 10274 if test "$host_cpu" = ia64; then 10275 # AIX 5 now supports IA64 processor 10276 lt_prog_compiler_static_CXX='-Bstatic' 10277 fi 10278 ;; 10279 amigaos*) 10280 # FIXME: we need at least 68020 code to build shared libraries, but 10281 # adding the `-m68020' flag to GCC prevents building anything better, 10282 # like `-m68040'. 10283 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 10284 ;; 10285 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10286 # PIC is the default for these OSes. 10287 ;; 10288 mingw* | os2* | pw32*) 10289 # This hack is so that the source file can tell whether it is being 10290 # built for inclusion in a dll (and should export symbols for example). 10291 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 10292 ;; 10293 darwin* | rhapsody*) 10294 # PIC is the default on this platform 10295 # Common symbols not allowed in MH_DYLIB files 10296 lt_prog_compiler_pic_CXX='-fno-common' 10297 ;; 10298 *djgpp*) 10299 # DJGPP does not support shared libraries at all 10300 lt_prog_compiler_pic_CXX= 10301 ;; 10302 sysv4*MP*) 10303 if test -d /usr/nec; then 10304 lt_prog_compiler_pic_CXX=-Kconform_pic 10305 fi 10306 ;; 10307 hpux*) 10308 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10309 # not for PA HP-UX. 10310 case "$host_cpu" in 10311 hppa*64*|ia64*) 10312 ;; 10313 *) 10314 lt_prog_compiler_pic_CXX='-fPIC' 10315 ;; 10316 esac 10317 ;; 10318 *) 10319 lt_prog_compiler_pic_CXX='-fPIC' 10320 ;; 10321 esac 10322 else 10323 case $host_os in 10324 aix4* | aix5*) 10325 # All AIX code is PIC. 10326 if test "$host_cpu" = ia64; then 10327 # AIX 5 now supports IA64 processor 10328 lt_prog_compiler_static_CXX='-Bstatic' 10329 else 10330 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 10331 fi 10332 ;; 10333 chorus*) 10334 case $cc_basename in 10335 cxch68) 10336 # Green Hills C++ Compiler 10337 # _LT_AC_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 10338 ;; 10339 esac 10340 ;; 10341 dgux*) 10342 case $cc_basename in 10343 ec++) 10344 lt_prog_compiler_pic_CXX='-KPIC' 10345 ;; 10346 ghcx) 10347 # Green Hills C++ Compiler 10348 lt_prog_compiler_pic_CXX='-pic' 10349 ;; 10350 *) 10351 ;; 10352 esac 10353 ;; 10354 freebsd* | kfreebsd*-gnu) 10355 # FreeBSD uses GNU C++ 10356 ;; 10357 hpux9* | hpux10* | hpux11*) 10358 case $cc_basename in 10359 CC) 10360 lt_prog_compiler_wl_CXX='-Wl,' 10361 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10362 if test "$host_cpu" != ia64; then 10363 lt_prog_compiler_pic_CXX='+Z' 10364 fi 10365 ;; 10366 aCC) 10367 lt_prog_compiler_wl_CXX='-Wl,' 10368 lt_prog_compiler_static_CXX="${ac_cv_prog_cc_wl}-a ${ac_cv_prog_cc_wl}archive" 10369 case "$host_cpu" in 10370 hppa*64*|ia64*) 10371 # +Z the default 10372 ;; 10373 *) 10374 lt_prog_compiler_pic_CXX='+Z' 10375 ;; 10376 esac 10377 ;; 10378 *) 10379 ;; 10380 esac 10381 ;; 10382 irix5* | irix6* | nonstopux*) 10383 case $cc_basename in 10384 CC) 10385 lt_prog_compiler_wl_CXX='-Wl,' 10386 lt_prog_compiler_static_CXX='-non_shared' 10387 # CC pic flag -KPIC is the default. 10388 ;; 10389 *) 10390 ;; 10391 esac 10392 ;; 10393 linux*) 10394 case $cc_basename in 10395 KCC) 10396 # KAI C++ Compiler 10397 lt_prog_compiler_wl_CXX='--backend -Wl,' 10398 lt_prog_compiler_pic_CXX='-fPIC' 10399 ;; 10400 icpc) 10401 # Intel C++ 10402 lt_prog_compiler_wl_CXX='-Wl,' 10403 lt_prog_compiler_pic_CXX='-KPIC' 10404 lt_prog_compiler_static_CXX='-static' 10405 ;; 10406 cxx) 10407 # Compaq C++ 10408 # Make sure the PIC flag is empty. It appears that all Alpha 10409 # Linux and Compaq Tru64 Unix objects are PIC. 10410 lt_prog_compiler_pic_CXX= 10411 lt_prog_compiler_static_CXX='-non_shared' 10412 ;; 10413 *) 10414 ;; 10415 esac 10416 ;; 10417 lynxos*) 10418 ;; 10419 m88k*) 10420 ;; 10421 mvs*) 10422 case $cc_basename in 10423 cxx) 10424 lt_prog_compiler_pic_CXX='-W c,exportall' 10425 ;; 10426 *) 10427 ;; 10428 esac 10429 ;; 10430 netbsd*) 10431 ;; 10432 osf3* | osf4* | osf5*) 10433 case $cc_basename in 10434 KCC) 10435 lt_prog_compiler_wl_CXX='--backend -Wl,' 10436 ;; 10437 RCC) 10438 # Rational C++ 2.4.1 10439 lt_prog_compiler_pic_CXX='-pic' 10440 ;; 10441 cxx) 10442 # Digital/Compaq C++ 10443 lt_prog_compiler_wl_CXX='-Wl,' 10444 # Make sure the PIC flag is empty. It appears that all Alpha 10445 # Linux and Compaq Tru64 Unix objects are PIC. 10446 lt_prog_compiler_pic_CXX= 10447 lt_prog_compiler_static_CXX='-non_shared' 10448 ;; 10449 *) 10450 ;; 10451 esac 10452 ;; 10453 psos*) 10454 ;; 10455 sco*) 10456 case $cc_basename in 10457 CC) 10458 lt_prog_compiler_pic_CXX='-fPIC' 10459 ;; 10460 *) 10461 ;; 10462 esac 10463 ;; 10464 solaris*) 10465 case $cc_basename in 10466 CC) 10467 # Sun C++ 4.2, 5.x and Centerline C++ 10468 lt_prog_compiler_pic_CXX='-KPIC' 10469 lt_prog_compiler_static_CXX='-Bstatic' 10470 lt_prog_compiler_wl_CXX='-Qoption ld ' 10471 ;; 10472 gcx) 10473 # Green Hills C++ Compiler 10474 lt_prog_compiler_pic_CXX='-PIC' 10475 ;; 10476 *) 10477 ;; 10478 esac 10479 ;; 10480 sunos4*) 10481 case $cc_basename in 10482 CC) 10483 # Sun C++ 4.x 10484 lt_prog_compiler_pic_CXX='-pic' 10485 lt_prog_compiler_static_CXX='-Bstatic' 10486 ;; 10487 lcc) 10488 # Lucid 10489 lt_prog_compiler_pic_CXX='-pic' 10490 ;; 10491 *) 10492 ;; 10493 esac 10494 ;; 10495 tandem*) 10496 case $cc_basename in 10497 NCC) 10498 # NonStop-UX NCC 3.20 10499 lt_prog_compiler_pic_CXX='-KPIC' 10500 ;; 10501 *) 10502 ;; 10503 esac 10504 ;; 10505 unixware*) 10506 ;; 10507 vxworks*) 10508 ;; 10509 *) 10510 lt_prog_compiler_can_build_shared_CXX=no 10511 ;; 10512 esac 10513 fi 10514 10515echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_CXX" >&5 10516echo "${ECHO_T}$lt_prog_compiler_pic_CXX" >&6 10517 10518# 10519# Check to make sure the PIC flag actually works. 10520# 10521if test -n "$lt_prog_compiler_pic_CXX"; then 10522 10523echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 10524echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... $ECHO_C" >&6 10525if test "${lt_prog_compiler_pic_works_CXX+set}" = set; then 10526 echo $ECHO_N "(cached) $ECHO_C" >&6 10527else 10528 lt_prog_compiler_pic_works_CXX=no 10529 ac_outfile=conftest.$ac_objext 10530 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10531 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" 10532 # Insert the option either (1) after the last *FLAGS variable, or 10533 # (2) before a word containing "conftest.", or (3) at the end. 10534 # Note that $ac_compile itself does not contain backslashes and begins 10535 # with a dollar sign (not a hyphen), so the echo should work correctly. 10536 # The option is referenced via a variable to avoid confusing sed. 10537 lt_compile=`echo "$ac_compile" | $SED \ 10538 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10539 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10540 -e 's:$: $lt_compiler_flag:'` 10541 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 10542 (eval "$lt_compile" 2>conftest.err) 10543 ac_status=$? 10544 cat conftest.err >&5 10545 echo "$as_me:__oline__: \$? = $ac_status" >&5 10546 if (exit $ac_status) && test -s "$ac_outfile"; then 10547 # The compiler can only warn and ignore the option if not recognized 10548 # So say no if there are warnings 10549 if test ! -s conftest.err; then 10550 lt_prog_compiler_pic_works_CXX=yes 10551 fi 10552 fi 10553 $rm conftest* 10554 10555fi 10556echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_CXX" >&5 10557echo "${ECHO_T}$lt_prog_compiler_pic_works_CXX" >&6 10558 10559if test x"$lt_prog_compiler_pic_works_CXX" = xyes; then 10560 case $lt_prog_compiler_pic_CXX in 10561 "" | " "*) ;; 10562 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 10563 esac 10564else 10565 lt_prog_compiler_pic_CXX= 10566 lt_prog_compiler_can_build_shared_CXX=no 10567fi 10568 10569fi 10570case "$host_os" in 10571 # For platforms which do not support PIC, -DPIC is meaningless: 10572 *djgpp*) 10573 lt_prog_compiler_pic_CXX= 10574 ;; 10575 *) 10576 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 10577 ;; 10578esac 10579 10580echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 10581echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 10582if test "${lt_cv_prog_compiler_c_o_CXX+set}" = set; then 10583 echo $ECHO_N "(cached) $ECHO_C" >&6 10584else 10585 lt_cv_prog_compiler_c_o_CXX=no 10586 $rm -r conftest 2>/dev/null 10587 mkdir conftest 10588 cd conftest 10589 mkdir out 10590 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10591 10592 lt_compiler_flag="-o out/conftest2.$ac_objext" 10593 # Insert the option either (1) after the last *FLAGS variable, or 10594 # (2) before a word containing "conftest.", or (3) at the end. 10595 # Note that $ac_compile itself does not contain backslashes and begins 10596 # with a dollar sign (not a hyphen), so the echo should work correctly. 10597 lt_compile=`echo "$ac_compile" | $SED \ 10598 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 10599 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10600 -e 's:$: $lt_compiler_flag:'` 10601 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 10602 (eval "$lt_compile" 2>out/conftest.err) 10603 ac_status=$? 10604 cat out/conftest.err >&5 10605 echo "$as_me:__oline__: \$? = $ac_status" >&5 10606 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10607 then 10608 # The compiler can only warn and ignore the option if not recognized 10609 # So say no if there are warnings 10610 if test ! -s out/conftest.err; then 10611 lt_cv_prog_compiler_c_o_CXX=yes 10612 fi 10613 fi 10614 chmod u+w . 10615 $rm conftest* 10616 # SGI C++ compiler will create directory out/ii_files/ for 10617 # template instantiation 10618 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 10619 $rm out/* && rmdir out 10620 cd .. 10621 rmdir conftest 10622 $rm conftest* 10623 10624fi 10625echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_CXX" >&5 10626echo "${ECHO_T}$lt_cv_prog_compiler_c_o_CXX" >&6 10627 10628 10629hard_links="nottested" 10630if test "$lt_cv_prog_compiler_c_o_CXX" = no && test "$need_locks" != no; then 10631 # do not overwrite the value of need_locks provided by the user 10632 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 10633echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 10634 hard_links=yes 10635 $rm conftest* 10636 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10637 touch conftest.a 10638 ln conftest.a conftest.b 2>&5 || hard_links=no 10639 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10640 echo "$as_me:$LINENO: result: $hard_links" >&5 10641echo "${ECHO_T}$hard_links" >&6 10642 if test "$hard_links" = no; then 10643 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 10644echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 10645 need_locks=warn 10646 fi 10647else 10648 need_locks=no 10649fi 10650 10651echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10652echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 10653 10654 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10655 case $host_os in 10656 aix4* | aix5*) 10657 # If we're using GNU nm, then we don't want the "-C" option. 10658 # -C means demangle to AIX nm, but means don't demangle with GNU nm 10659 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 10660 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 10661 else 10662 export_symbols_cmds_CXX='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 10663 fi 10664 ;; 10665 pw32*) 10666 export_symbols_cmds_CXX="$ltdll_cmds" 10667 ;; 10668 cygwin* | mingw*) 10669 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 10670 ;; 10671 *) 10672 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10673 ;; 10674 esac 10675 10676echo "$as_me:$LINENO: result: $ld_shlibs_CXX" >&5 10677echo "${ECHO_T}$ld_shlibs_CXX" >&6 10678test "$ld_shlibs_CXX" = no && can_build_shared=no 10679 10680variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10681if test "$GCC" = yes; then 10682 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10683fi 10684 10685# 10686# Do we need to explicitly link libc? 10687# 10688case "x$archive_cmds_need_lc_CXX" in 10689x|xyes) 10690 # Assume -lc should be added 10691 archive_cmds_need_lc_CXX=yes 10692 10693 if test "$enable_shared" = yes && test "$GCC" = yes; then 10694 case $archive_cmds_CXX in 10695 *'~'*) 10696 # FIXME: we may have to deal with multi-command sequences. 10697 ;; 10698 '$CC '*) 10699 # Test whether the compiler implicitly links with -lc since on some 10700 # systems, -lgcc has to come before -lc. If gcc already passes -lc 10701 # to ld, don't add -lc before -lgcc. 10702 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 10703echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 10704 $rm conftest* 10705 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 10706 10707 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10708 (eval $ac_compile) 2>&5 10709 ac_status=$? 10710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10711 (exit $ac_status); } 2>conftest.err; then 10712 soname=conftest 10713 lib=conftest 10714 libobjs=conftest.$ac_objext 10715 deplibs= 10716 wl=$lt_prog_compiler_wl_CXX 10717 compiler_flags=-v 10718 linker_flags=-v 10719 verstring= 10720 output_objdir=. 10721 libname=conftest 10722 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 10723 allow_undefined_flag_CXX= 10724 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 10725 (eval $archive_cmds_CXX 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 10726 ac_status=$? 10727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10728 (exit $ac_status); } 10729 then 10730 archive_cmds_need_lc_CXX=no 10731 else 10732 archive_cmds_need_lc_CXX=yes 10733 fi 10734 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 10735 else 10736 cat conftest.err 1>&5 10737 fi 10738 $rm conftest* 10739 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_CXX" >&5 10740echo "${ECHO_T}$archive_cmds_need_lc_CXX" >&6 10741 ;; 10742 esac 10743 fi 10744 ;; 10745esac 10746 10747echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 10748echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 10749library_names_spec= 10750libname_spec='lib$name' 10751soname_spec= 10752shrext_cmds=".so" 10753postinstall_cmds= 10754postuninstall_cmds= 10755finish_cmds= 10756finish_eval= 10757shlibpath_var= 10758shlibpath_overrides_runpath=unknown 10759version_type=none 10760dynamic_linker="$host_os ld.so" 10761sys_lib_dlsearch_path_spec="/lib /usr/lib" 10762if test "$GCC" = yes; then 10763 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10764 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 10765 # if the path contains ";" then we assume it to be the separator 10766 # otherwise default to the standard path separator (i.e. ":") - it is 10767 # assumed that no part of a normal pathname contains ";" but that should 10768 # okay in the real world where ";" in dirpaths is itself problematic. 10769 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10770 else 10771 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10772 fi 10773else 10774 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10775fi 10776need_lib_prefix=unknown 10777hardcode_into_libs=no 10778 10779# when you set need_version to no, make sure it does not cause -set_version 10780# flags to be left without arguments 10781need_version=unknown 10782 10783case $host_os in 10784aix3*) 10785 version_type=linux 10786 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10787 shlibpath_var=LIBPATH 10788 10789 # AIX 3 has no versioning support, so we append a major version to the name. 10790 soname_spec='${libname}${release}${shared_ext}$major' 10791 ;; 10792 10793aix4* | aix5*) 10794 version_type=linux 10795 need_lib_prefix=no 10796 need_version=no 10797 hardcode_into_libs=yes 10798 if test "$host_cpu" = ia64; then 10799 # AIX 5 supports IA64 10800 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10801 shlibpath_var=LD_LIBRARY_PATH 10802 else 10803 # With GCC up to 2.95.x, collect2 would create an import file 10804 # for dependence libraries. The import file would start with 10805 # the line `#! .'. This would cause the generated library to 10806 # depend on `.', always an invalid library. This was fixed in 10807 # development snapshots of GCC prior to 3.0. 10808 case $host_os in 10809 aix4 | aix4.[01] | aix4.[01].*) 10810 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10811 echo ' yes ' 10812 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 10813 : 10814 else 10815 can_build_shared=no 10816 fi 10817 ;; 10818 esac 10819 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10820 # soname into executable. Probably we can add versioning support to 10821 # collect2, so additional links can be useful in future. 10822 if test "$aix_use_runtimelinking" = yes; then 10823 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10824 # instead of lib<name>.a to let people know that these are not 10825 # typical AIX shared libraries. 10826 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10827 else 10828 # We preserve .a as extension for shared libraries through AIX4.2 10829 # and later when we are not doing run time linking. 10830 library_names_spec='${libname}${release}.a $libname.a' 10831 soname_spec='${libname}${release}${shared_ext}$major' 10832 fi 10833 shlibpath_var=LIBPATH 10834 fi 10835 ;; 10836 10837amigaos*) 10838 library_names_spec='$libname.ixlibrary $libname.a' 10839 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10840 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 10841 ;; 10842 10843beos*) 10844 library_names_spec='${libname}${shared_ext}' 10845 dynamic_linker="$host_os ld.so" 10846 shlibpath_var=LIBRARY_PATH 10847 ;; 10848 10849bsdi4*) 10850 version_type=linux 10851 need_version=no 10852 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10853 soname_spec='${libname}${release}${shared_ext}$major' 10854 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10855 shlibpath_var=LD_LIBRARY_PATH 10856 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10857 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10858 # the default ld.so.conf also contains /usr/contrib/lib and 10859 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10860 # libtool to hard-code these into programs 10861 ;; 10862 10863cygwin* | mingw* | pw32*) 10864 version_type=windows 10865 shrext_cmds=".dll" 10866 need_version=no 10867 need_lib_prefix=no 10868 10869 case $GCC,$host_os in 10870 yes,cygwin* | yes,mingw* | yes,pw32*) 10871 library_names_spec='$libname.dll.a' 10872 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10873 postinstall_cmds='base_file=`basename \${file}`~ 10874 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 10875 dldir=$destdir/`dirname \$dlpath`~ 10876 test -d \$dldir || mkdir -p \$dldir~ 10877 $install_prog $dir/$dlname \$dldir/$dlname' 10878 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10879 dlpath=$dir/\$dldll~ 10880 $rm \$dlpath' 10881 shlibpath_overrides_runpath=yes 10882 10883 case $host_os in 10884 cygwin*) 10885 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10886 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10887 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 10888 ;; 10889 mingw*) 10890 # MinGW DLLs use traditional 'lib' prefix 10891 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10892 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 10893 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 10894 # It is most probably a Windows format PATH printed by 10895 # mingw gcc, but we are running on Cygwin. Gcc prints its search 10896 # path with ; separators, and with drive letters. We can handle the 10897 # drive letters (cygwin fileutils understands them), so leave them, 10898 # especially as we might pass files found there to a mingw objdump, 10899 # which wouldn't understand a cygwinified path. Ahh. 10900 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10901 else 10902 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10903 fi 10904 ;; 10905 pw32*) 10906 # pw32 DLLs use 'pw' prefix rather than 'lib' 10907 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 10908 ;; 10909 esac 10910 ;; 10911 10912 *) 10913 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10914 ;; 10915 esac 10916 dynamic_linker='Win32 ld.exe' 10917 # FIXME: first we should search . and the directory the executable is in 10918 shlibpath_var=PATH 10919 ;; 10920 10921darwin* | rhapsody*) 10922 dynamic_linker="$host_os dyld" 10923 version_type=darwin 10924 need_lib_prefix=no 10925 need_version=no 10926 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10927 soname_spec='${libname}${release}${major}$shared_ext' 10928 shlibpath_overrides_runpath=yes 10929 shlibpath_var=DYLD_LIBRARY_PATH 10930 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 10931 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 10932 if test "$GCC" = yes; then 10933 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 10934 else 10935 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 10936 fi 10937 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10938 ;; 10939 10940dgux*) 10941 version_type=linux 10942 need_lib_prefix=no 10943 need_version=no 10944 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10945 soname_spec='${libname}${release}${shared_ext}$major' 10946 shlibpath_var=LD_LIBRARY_PATH 10947 ;; 10948 10949freebsd1*) 10950 dynamic_linker=no 10951 ;; 10952 10953kfreebsd*-gnu) 10954 version_type=linux 10955 need_lib_prefix=no 10956 need_version=no 10957 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10958 soname_spec='${libname}${release}${shared_ext}$major' 10959 shlibpath_var=LD_LIBRARY_PATH 10960 shlibpath_overrides_runpath=no 10961 hardcode_into_libs=yes 10962 dynamic_linker='GNU ld.so' 10963 ;; 10964 10965freebsd*) 10966 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 10967 version_type=freebsd-$objformat 10968 case $version_type in 10969 freebsd-elf*) 10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10971 need_version=no 10972 need_lib_prefix=no 10973 ;; 10974 freebsd-*) 10975 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10976 need_version=yes 10977 ;; 10978 esac 10979 shlibpath_var=LD_LIBRARY_PATH 10980 case $host_os in 10981 freebsd2*) 10982 shlibpath_overrides_runpath=yes 10983 ;; 10984 freebsd3.01* | freebsdelf3.01*) 10985 shlibpath_overrides_runpath=yes 10986 hardcode_into_libs=yes 10987 ;; 10988 *) # from 3.2 on 10989 shlibpath_overrides_runpath=no 10990 hardcode_into_libs=yes 10991 ;; 10992 esac 10993 ;; 10994 10995gnu*) 10996 version_type=linux 10997 need_lib_prefix=no 10998 need_version=no 10999 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 11000 soname_spec='${libname}${release}${shared_ext}$major' 11001 shlibpath_var=LD_LIBRARY_PATH 11002 hardcode_into_libs=yes 11003 ;; 11004 11005hpux9* | hpux10* | hpux11*) 11006 # Give a soname corresponding to the major version so that dld.sl refuses to 11007 # link against other versions. 11008 version_type=sunos 11009 need_lib_prefix=no 11010 need_version=no 11011 case "$host_cpu" in 11012 ia64*) 11013 shrext_cmds='.so' 11014 hardcode_into_libs=yes 11015 dynamic_linker="$host_os dld.so" 11016 shlibpath_var=LD_LIBRARY_PATH 11017 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11018 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11019 soname_spec='${libname}${release}${shared_ext}$major' 11020 if test "X$HPUX_IA64_MODE" = X32; then 11021 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 11022 else 11023 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 11024 fi 11025 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11026 ;; 11027 hppa*64*) 11028 shrext_cmds='.sl' 11029 hardcode_into_libs=yes 11030 dynamic_linker="$host_os dld.sl" 11031 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 11032 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 11033 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11034 soname_spec='${libname}${release}${shared_ext}$major' 11035 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 11036 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 11037 ;; 11038 *) 11039 shrext_cmds='.sl' 11040 dynamic_linker="$host_os dld.sl" 11041 shlibpath_var=SHLIB_PATH 11042 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 11043 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11044 soname_spec='${libname}${release}${shared_ext}$major' 11045 ;; 11046 esac 11047 # HP-UX runs *really* slowly unless shared libraries are mode 555. 11048 postinstall_cmds='chmod 555 $lib' 11049 ;; 11050 11051irix5* | irix6* | nonstopux*) 11052 case $host_os in 11053 nonstopux*) version_type=nonstopux ;; 11054 *) 11055 if test "$lt_cv_prog_gnu_ld" = yes; then 11056 version_type=linux 11057 else 11058 version_type=irix 11059 fi ;; 11060 esac 11061 need_lib_prefix=no 11062 need_version=no 11063 soname_spec='${libname}${release}${shared_ext}$major' 11064 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 11065 case $host_os in 11066 irix5* | nonstopux*) 11067 libsuff= shlibsuff= 11068 ;; 11069 *) 11070 case $LD in # libtool.m4 will add one of these switches to LD 11071 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 11072 libsuff= shlibsuff= libmagic=32-bit;; 11073 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 11074 libsuff=32 shlibsuff=N32 libmagic=N32;; 11075 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 11076 libsuff=64 shlibsuff=64 libmagic=64-bit;; 11077 *) libsuff= shlibsuff= libmagic=never-match;; 11078 esac 11079 ;; 11080 esac 11081 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 11082 shlibpath_overrides_runpath=no 11083 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 11084 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 11085 hardcode_into_libs=yes 11086 ;; 11087 11088# No shared lib support for Linux oldld, aout, or coff. 11089linux*oldld* | linux*aout* | linux*coff*) 11090 dynamic_linker=no 11091 ;; 11092 11093# This must be Linux ELF. 11094linux*) 11095 version_type=linux 11096 need_lib_prefix=no 11097 need_version=no 11098 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11099 soname_spec='${libname}${release}${shared_ext}$major' 11100 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 11101 shlibpath_var=LD_LIBRARY_PATH 11102 shlibpath_overrides_runpath=no 11103 # This implies no fast_install, which is unacceptable. 11104 # Some rework will be needed to allow for fast_install 11105 # before this can be enabled. 11106 hardcode_into_libs=yes 11107 11108 # Append ld.so.conf contents to the search path 11109 if test -f /etc/ld.so.conf; then 11110 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 11111 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 11112 fi 11113 11114 # We used to test for /lib/ld.so.1 and disable shared libraries on 11115 # powerpc, because MkLinux only supported shared libraries with the 11116 # GNU dynamic linker. Since this was broken with cross compilers, 11117 # most powerpc-linux boxes support dynamic linking these days and 11118 # people can always --disable-shared, the test was removed, and we 11119 # assume the GNU/Linux dynamic linker is in use. 11120 dynamic_linker='GNU/Linux ld.so' 11121 ;; 11122 11123knetbsd*-gnu) 11124 version_type=linux 11125 need_lib_prefix=no 11126 need_version=no 11127 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11128 soname_spec='${libname}${release}${shared_ext}$major' 11129 shlibpath_var=LD_LIBRARY_PATH 11130 shlibpath_overrides_runpath=no 11131 hardcode_into_libs=yes 11132 dynamic_linker='GNU ld.so' 11133 ;; 11134 11135netbsd*) 11136 version_type=sunos 11137 need_lib_prefix=no 11138 need_version=no 11139 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 11140 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11141 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11142 dynamic_linker='NetBSD (a.out) ld.so' 11143 else 11144 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 11145 soname_spec='${libname}${release}${shared_ext}$major' 11146 dynamic_linker='NetBSD ld.elf_so' 11147 fi 11148 shlibpath_var=LD_LIBRARY_PATH 11149 shlibpath_overrides_runpath=yes 11150 hardcode_into_libs=yes 11151 ;; 11152 11153newsos6) 11154 version_type=linux 11155 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11156 shlibpath_var=LD_LIBRARY_PATH 11157 shlibpath_overrides_runpath=yes 11158 ;; 11159 11160nto-qnx*) 11161 version_type=linux 11162 need_lib_prefix=no 11163 need_version=no 11164 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11165 soname_spec='${libname}${release}${shared_ext}$major' 11166 shlibpath_var=LD_LIBRARY_PATH 11167 shlibpath_overrides_runpath=yes 11168 ;; 11169 11170openbsd*) 11171 version_type=sunos 11172 need_lib_prefix=no 11173 need_version=yes 11174 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11175 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 11176 shlibpath_var=LD_LIBRARY_PATH 11177 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 11178 case $host_os in 11179 openbsd2.[89] | openbsd2.[89].*) 11180 shlibpath_overrides_runpath=no 11181 ;; 11182 *) 11183 shlibpath_overrides_runpath=yes 11184 ;; 11185 esac 11186 else 11187 shlibpath_overrides_runpath=yes 11188 fi 11189 ;; 11190 11191os2*) 11192 libname_spec='$name' 11193 shrext_cmds=".dll" 11194 need_lib_prefix=no 11195 library_names_spec='$libname${shared_ext} $libname.a' 11196 dynamic_linker='OS/2 ld.exe' 11197 shlibpath_var=LIBPATH 11198 ;; 11199 11200osf3* | osf4* | osf5*) 11201 version_type=osf 11202 need_lib_prefix=no 11203 need_version=no 11204 soname_spec='${libname}${release}${shared_ext}$major' 11205 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11206 shlibpath_var=LD_LIBRARY_PATH 11207 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 11208 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 11209 ;; 11210 11211sco3.2v5*) 11212 version_type=osf 11213 soname_spec='${libname}${release}${shared_ext}$major' 11214 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11215 shlibpath_var=LD_LIBRARY_PATH 11216 ;; 11217 11218solaris*) 11219 version_type=linux 11220 need_lib_prefix=no 11221 need_version=no 11222 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11223 soname_spec='${libname}${release}${shared_ext}$major' 11224 shlibpath_var=LD_LIBRARY_PATH 11225 shlibpath_overrides_runpath=yes 11226 hardcode_into_libs=yes 11227 # ldd complains unless libraries are executable 11228 postinstall_cmds='chmod +x $lib' 11229 ;; 11230 11231sunos4*) 11232 version_type=sunos 11233 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 11234 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 11235 shlibpath_var=LD_LIBRARY_PATH 11236 shlibpath_overrides_runpath=yes 11237 if test "$with_gnu_ld" = yes; then 11238 need_lib_prefix=no 11239 fi 11240 need_version=yes 11241 ;; 11242 11243sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11244 version_type=linux 11245 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11246 soname_spec='${libname}${release}${shared_ext}$major' 11247 shlibpath_var=LD_LIBRARY_PATH 11248 case $host_vendor in 11249 sni) 11250 shlibpath_overrides_runpath=no 11251 need_lib_prefix=no 11252 export_dynamic_flag_spec='${wl}-Blargedynsym' 11253 runpath_var=LD_RUN_PATH 11254 ;; 11255 siemens) 11256 need_lib_prefix=no 11257 ;; 11258 motorola) 11259 need_lib_prefix=no 11260 need_version=no 11261 shlibpath_overrides_runpath=no 11262 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 11263 ;; 11264 esac 11265 ;; 11266 11267sysv4*MP*) 11268 if test -d /usr/nec ;then 11269 version_type=linux 11270 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 11271 soname_spec='$libname${shared_ext}.$major' 11272 shlibpath_var=LD_LIBRARY_PATH 11273 fi 11274 ;; 11275 11276uts4*) 11277 version_type=linux 11278 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 11279 soname_spec='${libname}${release}${shared_ext}$major' 11280 shlibpath_var=LD_LIBRARY_PATH 11281 ;; 11282 11283*) 11284 dynamic_linker=no 11285 ;; 11286esac 11287echo "$as_me:$LINENO: result: $dynamic_linker" >&5 11288echo "${ECHO_T}$dynamic_linker" >&6 11289test "$dynamic_linker" = no && can_build_shared=no 11290 11291echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 11292echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 11293hardcode_action_CXX= 11294if test -n "$hardcode_libdir_flag_spec_CXX" || \ 11295 test -n "$runpath_var CXX" || \ 11296 test "X$hardcode_automatic_CXX"="Xyes" ; then 11297 11298 # We can hardcode non-existant directories. 11299 if test "$hardcode_direct_CXX" != no && 11300 # If the only mechanism to avoid hardcoding is shlibpath_var, we 11301 # have to relink, otherwise we might link with an installed library 11302 # when we should be linking with a yet-to-be-installed one 11303 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, CXX)" != no && 11304 test "$hardcode_minus_L_CXX" != no; then 11305 # Linking always hardcodes the temporary library directory. 11306 hardcode_action_CXX=relink 11307 else 11308 # We can link without hardcoding, and we can hardcode nonexisting dirs. 11309 hardcode_action_CXX=immediate 11310 fi 11311else 11312 # We cannot hardcode anything, or else we can only hardcode existing 11313 # directories. 11314 hardcode_action_CXX=unsupported 11315fi 11316echo "$as_me:$LINENO: result: $hardcode_action_CXX" >&5 11317echo "${ECHO_T}$hardcode_action_CXX" >&6 11318 11319if test "$hardcode_action_CXX" = relink; then 11320 # Fast installation is not supported 11321 enable_fast_install=no 11322elif test "$shlibpath_overrides_runpath" = yes || 11323 test "$enable_shared" = no; then 11324 # Fast installation is not necessary 11325 enable_fast_install=needless 11326fi 11327 11328striplib= 11329old_striplib= 11330echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 11331echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 11332if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 11333 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11334 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11335 echo "$as_me:$LINENO: result: yes" >&5 11336echo "${ECHO_T}yes" >&6 11337else 11338# FIXME - insert some real tests, host_os isn't really good enough 11339 case $host_os in 11340 darwin*) 11341 if test -n "$STRIP" ; then 11342 striplib="$STRIP -x" 11343 echo "$as_me:$LINENO: result: yes" >&5 11344echo "${ECHO_T}yes" >&6 11345 else 11346 echo "$as_me:$LINENO: result: no" >&5 11347echo "${ECHO_T}no" >&6 11348fi 11349 ;; 11350 *) 11351 echo "$as_me:$LINENO: result: no" >&5 11352echo "${ECHO_T}no" >&6 11353 ;; 11354 esac 11355fi 11356 11357if test "x$enable_dlopen" != xyes; then 11358 enable_dlopen=unknown 11359 enable_dlopen_self=unknown 11360 enable_dlopen_self_static=unknown 11361else 11362 lt_cv_dlopen=no 11363 lt_cv_dlopen_libs= 11364 11365 case $host_os in 11366 beos*) 11367 lt_cv_dlopen="load_add_on" 11368 lt_cv_dlopen_libs= 11369 lt_cv_dlopen_self=yes 11370 ;; 11371 11372 mingw* | pw32*) 11373 lt_cv_dlopen="LoadLibrary" 11374 lt_cv_dlopen_libs= 11375 ;; 11376 11377 cygwin*) 11378 lt_cv_dlopen="dlopen" 11379 lt_cv_dlopen_libs= 11380 ;; 11381 11382 darwin*) 11383 # if libdl is installed we need to link against it 11384 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11385echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11386if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11387 echo $ECHO_N "(cached) $ECHO_C" >&6 11388else 11389 ac_check_lib_save_LIBS=$LIBS 11390LIBS="-ldl $LIBS" 11391cat >conftest.$ac_ext <<_ACEOF 11392/* confdefs.h. */ 11393_ACEOF 11394cat confdefs.h >>conftest.$ac_ext 11395cat >>conftest.$ac_ext <<_ACEOF 11396/* end confdefs.h. */ 11397 11398/* Override any gcc2 internal prototype to avoid an error. */ 11399#ifdef __cplusplus 11400extern "C" 11401#endif 11402/* We use char because int might match the return type of a gcc2 11403 builtin and then its argument prototype would still apply. */ 11404char dlopen (); 11405int 11406main () 11407{ 11408dlopen (); 11409 ; 11410 return 0; 11411} 11412_ACEOF 11413rm -f conftest.$ac_objext conftest$ac_exeext 11414if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11415 (eval $ac_link) 2>conftest.er1 11416 ac_status=$? 11417 grep -v '^ *+' conftest.er1 >conftest.err 11418 rm -f conftest.er1 11419 cat conftest.err >&5 11420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11421 (exit $ac_status); } && 11422 { ac_try='test -z "$ac_cxx_werror_flag" 11423 || test ! -s conftest.err' 11424 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11425 (eval $ac_try) 2>&5 11426 ac_status=$? 11427 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11428 (exit $ac_status); }; } && 11429 { ac_try='test -s conftest$ac_exeext' 11430 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11431 (eval $ac_try) 2>&5 11432 ac_status=$? 11433 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11434 (exit $ac_status); }; }; then 11435 ac_cv_lib_dl_dlopen=yes 11436else 11437 echo "$as_me: failed program was:" >&5 11438sed 's/^/| /' conftest.$ac_ext >&5 11439 11440ac_cv_lib_dl_dlopen=no 11441fi 11442rm -f conftest.err conftest.$ac_objext \ 11443 conftest$ac_exeext conftest.$ac_ext 11444LIBS=$ac_check_lib_save_LIBS 11445fi 11446echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11447echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11448if test $ac_cv_lib_dl_dlopen = yes; then 11449 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11450else 11451 11452 lt_cv_dlopen="dyld" 11453 lt_cv_dlopen_libs= 11454 lt_cv_dlopen_self=yes 11455 11456fi 11457 11458 ;; 11459 11460 *) 11461 echo "$as_me:$LINENO: checking for shl_load" >&5 11462echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 11463if test "${ac_cv_func_shl_load+set}" = set; then 11464 echo $ECHO_N "(cached) $ECHO_C" >&6 11465else 11466 cat >conftest.$ac_ext <<_ACEOF 11467/* confdefs.h. */ 11468_ACEOF 11469cat confdefs.h >>conftest.$ac_ext 11470cat >>conftest.$ac_ext <<_ACEOF 11471/* end confdefs.h. */ 11472/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 11473 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11474#define shl_load innocuous_shl_load 11475 11476/* System header to define __stub macros and hopefully few prototypes, 11477 which can conflict with char shl_load (); below. 11478 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11479 <limits.h> exists even on freestanding compilers. */ 11480 11481#ifdef __STDC__ 11482# include <limits.h> 11483#else 11484# include <assert.h> 11485#endif 11486 11487#undef shl_load 11488 11489/* Override any gcc2 internal prototype to avoid an error. */ 11490#ifdef __cplusplus 11491extern "C" 11492{ 11493#endif 11494/* We use char because int might match the return type of a gcc2 11495 builtin and then its argument prototype would still apply. */ 11496char shl_load (); 11497/* The GNU C library defines this for functions which it implements 11498 to always fail with ENOSYS. Some functions are actually named 11499 something starting with __ and the normal name is an alias. */ 11500#if defined (__stub_shl_load) || defined (__stub___shl_load) 11501choke me 11502#else 11503char (*f) () = shl_load; 11504#endif 11505#ifdef __cplusplus 11506} 11507#endif 11508 11509int 11510main () 11511{ 11512return f != shl_load; 11513 ; 11514 return 0; 11515} 11516_ACEOF 11517rm -f conftest.$ac_objext conftest$ac_exeext 11518if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11519 (eval $ac_link) 2>conftest.er1 11520 ac_status=$? 11521 grep -v '^ *+' conftest.er1 >conftest.err 11522 rm -f conftest.er1 11523 cat conftest.err >&5 11524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11525 (exit $ac_status); } && 11526 { ac_try='test -z "$ac_cxx_werror_flag" 11527 || test ! -s conftest.err' 11528 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11529 (eval $ac_try) 2>&5 11530 ac_status=$? 11531 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11532 (exit $ac_status); }; } && 11533 { ac_try='test -s conftest$ac_exeext' 11534 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11535 (eval $ac_try) 2>&5 11536 ac_status=$? 11537 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11538 (exit $ac_status); }; }; then 11539 ac_cv_func_shl_load=yes 11540else 11541 echo "$as_me: failed program was:" >&5 11542sed 's/^/| /' conftest.$ac_ext >&5 11543 11544ac_cv_func_shl_load=no 11545fi 11546rm -f conftest.err conftest.$ac_objext \ 11547 conftest$ac_exeext conftest.$ac_ext 11548fi 11549echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 11550echo "${ECHO_T}$ac_cv_func_shl_load" >&6 11551if test $ac_cv_func_shl_load = yes; then 11552 lt_cv_dlopen="shl_load" 11553else 11554 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 11555echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 11556if test "${ac_cv_lib_dld_shl_load+set}" = set; then 11557 echo $ECHO_N "(cached) $ECHO_C" >&6 11558else 11559 ac_check_lib_save_LIBS=$LIBS 11560LIBS="-ldld $LIBS" 11561cat >conftest.$ac_ext <<_ACEOF 11562/* confdefs.h. */ 11563_ACEOF 11564cat confdefs.h >>conftest.$ac_ext 11565cat >>conftest.$ac_ext <<_ACEOF 11566/* end confdefs.h. */ 11567 11568/* Override any gcc2 internal prototype to avoid an error. */ 11569#ifdef __cplusplus 11570extern "C" 11571#endif 11572/* We use char because int might match the return type of a gcc2 11573 builtin and then its argument prototype would still apply. */ 11574char shl_load (); 11575int 11576main () 11577{ 11578shl_load (); 11579 ; 11580 return 0; 11581} 11582_ACEOF 11583rm -f conftest.$ac_objext conftest$ac_exeext 11584if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11585 (eval $ac_link) 2>conftest.er1 11586 ac_status=$? 11587 grep -v '^ *+' conftest.er1 >conftest.err 11588 rm -f conftest.er1 11589 cat conftest.err >&5 11590 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11591 (exit $ac_status); } && 11592 { ac_try='test -z "$ac_cxx_werror_flag" 11593 || test ! -s conftest.err' 11594 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11595 (eval $ac_try) 2>&5 11596 ac_status=$? 11597 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11598 (exit $ac_status); }; } && 11599 { ac_try='test -s conftest$ac_exeext' 11600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11601 (eval $ac_try) 2>&5 11602 ac_status=$? 11603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11604 (exit $ac_status); }; }; then 11605 ac_cv_lib_dld_shl_load=yes 11606else 11607 echo "$as_me: failed program was:" >&5 11608sed 's/^/| /' conftest.$ac_ext >&5 11609 11610ac_cv_lib_dld_shl_load=no 11611fi 11612rm -f conftest.err conftest.$ac_objext \ 11613 conftest$ac_exeext conftest.$ac_ext 11614LIBS=$ac_check_lib_save_LIBS 11615fi 11616echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 11617echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 11618if test $ac_cv_lib_dld_shl_load = yes; then 11619 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 11620else 11621 echo "$as_me:$LINENO: checking for dlopen" >&5 11622echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 11623if test "${ac_cv_func_dlopen+set}" = set; then 11624 echo $ECHO_N "(cached) $ECHO_C" >&6 11625else 11626 cat >conftest.$ac_ext <<_ACEOF 11627/* confdefs.h. */ 11628_ACEOF 11629cat confdefs.h >>conftest.$ac_ext 11630cat >>conftest.$ac_ext <<_ACEOF 11631/* end confdefs.h. */ 11632/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 11633 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 11634#define dlopen innocuous_dlopen 11635 11636/* System header to define __stub macros and hopefully few prototypes, 11637 which can conflict with char dlopen (); below. 11638 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 11639 <limits.h> exists even on freestanding compilers. */ 11640 11641#ifdef __STDC__ 11642# include <limits.h> 11643#else 11644# include <assert.h> 11645#endif 11646 11647#undef dlopen 11648 11649/* Override any gcc2 internal prototype to avoid an error. */ 11650#ifdef __cplusplus 11651extern "C" 11652{ 11653#endif 11654/* We use char because int might match the return type of a gcc2 11655 builtin and then its argument prototype would still apply. */ 11656char dlopen (); 11657/* The GNU C library defines this for functions which it implements 11658 to always fail with ENOSYS. Some functions are actually named 11659 something starting with __ and the normal name is an alias. */ 11660#if defined (__stub_dlopen) || defined (__stub___dlopen) 11661choke me 11662#else 11663char (*f) () = dlopen; 11664#endif 11665#ifdef __cplusplus 11666} 11667#endif 11668 11669int 11670main () 11671{ 11672return f != dlopen; 11673 ; 11674 return 0; 11675} 11676_ACEOF 11677rm -f conftest.$ac_objext conftest$ac_exeext 11678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11679 (eval $ac_link) 2>conftest.er1 11680 ac_status=$? 11681 grep -v '^ *+' conftest.er1 >conftest.err 11682 rm -f conftest.er1 11683 cat conftest.err >&5 11684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11685 (exit $ac_status); } && 11686 { ac_try='test -z "$ac_cxx_werror_flag" 11687 || test ! -s conftest.err' 11688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11689 (eval $ac_try) 2>&5 11690 ac_status=$? 11691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11692 (exit $ac_status); }; } && 11693 { ac_try='test -s conftest$ac_exeext' 11694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11695 (eval $ac_try) 2>&5 11696 ac_status=$? 11697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11698 (exit $ac_status); }; }; then 11699 ac_cv_func_dlopen=yes 11700else 11701 echo "$as_me: failed program was:" >&5 11702sed 's/^/| /' conftest.$ac_ext >&5 11703 11704ac_cv_func_dlopen=no 11705fi 11706rm -f conftest.err conftest.$ac_objext \ 11707 conftest$ac_exeext conftest.$ac_ext 11708fi 11709echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 11710echo "${ECHO_T}$ac_cv_func_dlopen" >&6 11711if test $ac_cv_func_dlopen = yes; then 11712 lt_cv_dlopen="dlopen" 11713else 11714 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 11715echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 11716if test "${ac_cv_lib_dl_dlopen+set}" = set; then 11717 echo $ECHO_N "(cached) $ECHO_C" >&6 11718else 11719 ac_check_lib_save_LIBS=$LIBS 11720LIBS="-ldl $LIBS" 11721cat >conftest.$ac_ext <<_ACEOF 11722/* confdefs.h. */ 11723_ACEOF 11724cat confdefs.h >>conftest.$ac_ext 11725cat >>conftest.$ac_ext <<_ACEOF 11726/* end confdefs.h. */ 11727 11728/* Override any gcc2 internal prototype to avoid an error. */ 11729#ifdef __cplusplus 11730extern "C" 11731#endif 11732/* We use char because int might match the return type of a gcc2 11733 builtin and then its argument prototype would still apply. */ 11734char dlopen (); 11735int 11736main () 11737{ 11738dlopen (); 11739 ; 11740 return 0; 11741} 11742_ACEOF 11743rm -f conftest.$ac_objext conftest$ac_exeext 11744if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11745 (eval $ac_link) 2>conftest.er1 11746 ac_status=$? 11747 grep -v '^ *+' conftest.er1 >conftest.err 11748 rm -f conftest.er1 11749 cat conftest.err >&5 11750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11751 (exit $ac_status); } && 11752 { ac_try='test -z "$ac_cxx_werror_flag" 11753 || test ! -s conftest.err' 11754 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11755 (eval $ac_try) 2>&5 11756 ac_status=$? 11757 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11758 (exit $ac_status); }; } && 11759 { ac_try='test -s conftest$ac_exeext' 11760 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11761 (eval $ac_try) 2>&5 11762 ac_status=$? 11763 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11764 (exit $ac_status); }; }; then 11765 ac_cv_lib_dl_dlopen=yes 11766else 11767 echo "$as_me: failed program was:" >&5 11768sed 's/^/| /' conftest.$ac_ext >&5 11769 11770ac_cv_lib_dl_dlopen=no 11771fi 11772rm -f conftest.err conftest.$ac_objext \ 11773 conftest$ac_exeext conftest.$ac_ext 11774LIBS=$ac_check_lib_save_LIBS 11775fi 11776echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 11777echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 11778if test $ac_cv_lib_dl_dlopen = yes; then 11779 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11780else 11781 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 11782echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 11783if test "${ac_cv_lib_svld_dlopen+set}" = set; then 11784 echo $ECHO_N "(cached) $ECHO_C" >&6 11785else 11786 ac_check_lib_save_LIBS=$LIBS 11787LIBS="-lsvld $LIBS" 11788cat >conftest.$ac_ext <<_ACEOF 11789/* confdefs.h. */ 11790_ACEOF 11791cat confdefs.h >>conftest.$ac_ext 11792cat >>conftest.$ac_ext <<_ACEOF 11793/* end confdefs.h. */ 11794 11795/* Override any gcc2 internal prototype to avoid an error. */ 11796#ifdef __cplusplus 11797extern "C" 11798#endif 11799/* We use char because int might match the return type of a gcc2 11800 builtin and then its argument prototype would still apply. */ 11801char dlopen (); 11802int 11803main () 11804{ 11805dlopen (); 11806 ; 11807 return 0; 11808} 11809_ACEOF 11810rm -f conftest.$ac_objext conftest$ac_exeext 11811if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11812 (eval $ac_link) 2>conftest.er1 11813 ac_status=$? 11814 grep -v '^ *+' conftest.er1 >conftest.err 11815 rm -f conftest.er1 11816 cat conftest.err >&5 11817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11818 (exit $ac_status); } && 11819 { ac_try='test -z "$ac_cxx_werror_flag" 11820 || test ! -s conftest.err' 11821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11822 (eval $ac_try) 2>&5 11823 ac_status=$? 11824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11825 (exit $ac_status); }; } && 11826 { ac_try='test -s conftest$ac_exeext' 11827 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11828 (eval $ac_try) 2>&5 11829 ac_status=$? 11830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11831 (exit $ac_status); }; }; then 11832 ac_cv_lib_svld_dlopen=yes 11833else 11834 echo "$as_me: failed program was:" >&5 11835sed 's/^/| /' conftest.$ac_ext >&5 11836 11837ac_cv_lib_svld_dlopen=no 11838fi 11839rm -f conftest.err conftest.$ac_objext \ 11840 conftest$ac_exeext conftest.$ac_ext 11841LIBS=$ac_check_lib_save_LIBS 11842fi 11843echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 11844echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 11845if test $ac_cv_lib_svld_dlopen = yes; then 11846 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11847else 11848 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 11849echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 11850if test "${ac_cv_lib_dld_dld_link+set}" = set; then 11851 echo $ECHO_N "(cached) $ECHO_C" >&6 11852else 11853 ac_check_lib_save_LIBS=$LIBS 11854LIBS="-ldld $LIBS" 11855cat >conftest.$ac_ext <<_ACEOF 11856/* confdefs.h. */ 11857_ACEOF 11858cat confdefs.h >>conftest.$ac_ext 11859cat >>conftest.$ac_ext <<_ACEOF 11860/* end confdefs.h. */ 11861 11862/* Override any gcc2 internal prototype to avoid an error. */ 11863#ifdef __cplusplus 11864extern "C" 11865#endif 11866/* We use char because int might match the return type of a gcc2 11867 builtin and then its argument prototype would still apply. */ 11868char dld_link (); 11869int 11870main () 11871{ 11872dld_link (); 11873 ; 11874 return 0; 11875} 11876_ACEOF 11877rm -f conftest.$ac_objext conftest$ac_exeext 11878if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11879 (eval $ac_link) 2>conftest.er1 11880 ac_status=$? 11881 grep -v '^ *+' conftest.er1 >conftest.err 11882 rm -f conftest.er1 11883 cat conftest.err >&5 11884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11885 (exit $ac_status); } && 11886 { ac_try='test -z "$ac_cxx_werror_flag" 11887 || test ! -s conftest.err' 11888 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11889 (eval $ac_try) 2>&5 11890 ac_status=$? 11891 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11892 (exit $ac_status); }; } && 11893 { ac_try='test -s conftest$ac_exeext' 11894 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11895 (eval $ac_try) 2>&5 11896 ac_status=$? 11897 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11898 (exit $ac_status); }; }; then 11899 ac_cv_lib_dld_dld_link=yes 11900else 11901 echo "$as_me: failed program was:" >&5 11902sed 's/^/| /' conftest.$ac_ext >&5 11903 11904ac_cv_lib_dld_dld_link=no 11905fi 11906rm -f conftest.err conftest.$ac_objext \ 11907 conftest$ac_exeext conftest.$ac_ext 11908LIBS=$ac_check_lib_save_LIBS 11909fi 11910echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 11911echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 11912if test $ac_cv_lib_dld_dld_link = yes; then 11913 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 11914fi 11915 11916 11917fi 11918 11919 11920fi 11921 11922 11923fi 11924 11925 11926fi 11927 11928 11929fi 11930 11931 ;; 11932 esac 11933 11934 if test "x$lt_cv_dlopen" != xno; then 11935 enable_dlopen=yes 11936 else 11937 enable_dlopen=no 11938 fi 11939 11940 case $lt_cv_dlopen in 11941 dlopen) 11942 save_CPPFLAGS="$CPPFLAGS" 11943 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11944 11945 save_LDFLAGS="$LDFLAGS" 11946 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11947 11948 save_LIBS="$LIBS" 11949 LIBS="$lt_cv_dlopen_libs $LIBS" 11950 11951 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 11952echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 11953if test "${lt_cv_dlopen_self+set}" = set; then 11954 echo $ECHO_N "(cached) $ECHO_C" >&6 11955else 11956 if test "$cross_compiling" = yes; then : 11957 lt_cv_dlopen_self=cross 11958else 11959 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11960 lt_status=$lt_dlunknown 11961 cat > conftest.$ac_ext <<EOF 11962#line __oline__ "configure" 11963#include "confdefs.h" 11964 11965#if HAVE_DLFCN_H 11966#include <dlfcn.h> 11967#endif 11968 11969#include <stdio.h> 11970 11971#ifdef RTLD_GLOBAL 11972# define LT_DLGLOBAL RTLD_GLOBAL 11973#else 11974# ifdef DL_GLOBAL 11975# define LT_DLGLOBAL DL_GLOBAL 11976# else 11977# define LT_DLGLOBAL 0 11978# endif 11979#endif 11980 11981/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11982 find out it does not work in some platform. */ 11983#ifndef LT_DLLAZY_OR_NOW 11984# ifdef RTLD_LAZY 11985# define LT_DLLAZY_OR_NOW RTLD_LAZY 11986# else 11987# ifdef DL_LAZY 11988# define LT_DLLAZY_OR_NOW DL_LAZY 11989# else 11990# ifdef RTLD_NOW 11991# define LT_DLLAZY_OR_NOW RTLD_NOW 11992# else 11993# ifdef DL_NOW 11994# define LT_DLLAZY_OR_NOW DL_NOW 11995# else 11996# define LT_DLLAZY_OR_NOW 0 11997# endif 11998# endif 11999# endif 12000# endif 12001#endif 12002 12003#ifdef __cplusplus 12004extern "C" void exit (int); 12005#endif 12006 12007void fnord() { int i=42;} 12008int main () 12009{ 12010 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12011 int status = $lt_dlunknown; 12012 12013 if (self) 12014 { 12015 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12016 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12017 /* dlclose (self); */ 12018 } 12019 12020 exit (status); 12021} 12022EOF 12023 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12024 (eval $ac_link) 2>&5 12025 ac_status=$? 12026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12027 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12028 (./conftest; exit; ) 2>/dev/null 12029 lt_status=$? 12030 case x$lt_status in 12031 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 12032 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 12033 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 12034 esac 12035 else : 12036 # compilation failed 12037 lt_cv_dlopen_self=no 12038 fi 12039fi 12040rm -fr conftest* 12041 12042 12043fi 12044echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 12045echo "${ECHO_T}$lt_cv_dlopen_self" >&6 12046 12047 if test "x$lt_cv_dlopen_self" = xyes; then 12048 LDFLAGS="$LDFLAGS $link_static_flag" 12049 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 12050echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 12051if test "${lt_cv_dlopen_self_static+set}" = set; then 12052 echo $ECHO_N "(cached) $ECHO_C" >&6 12053else 12054 if test "$cross_compiling" = yes; then : 12055 lt_cv_dlopen_self_static=cross 12056else 12057 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 12058 lt_status=$lt_dlunknown 12059 cat > conftest.$ac_ext <<EOF 12060#line __oline__ "configure" 12061#include "confdefs.h" 12062 12063#if HAVE_DLFCN_H 12064#include <dlfcn.h> 12065#endif 12066 12067#include <stdio.h> 12068 12069#ifdef RTLD_GLOBAL 12070# define LT_DLGLOBAL RTLD_GLOBAL 12071#else 12072# ifdef DL_GLOBAL 12073# define LT_DLGLOBAL DL_GLOBAL 12074# else 12075# define LT_DLGLOBAL 0 12076# endif 12077#endif 12078 12079/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 12080 find out it does not work in some platform. */ 12081#ifndef LT_DLLAZY_OR_NOW 12082# ifdef RTLD_LAZY 12083# define LT_DLLAZY_OR_NOW RTLD_LAZY 12084# else 12085# ifdef DL_LAZY 12086# define LT_DLLAZY_OR_NOW DL_LAZY 12087# else 12088# ifdef RTLD_NOW 12089# define LT_DLLAZY_OR_NOW RTLD_NOW 12090# else 12091# ifdef DL_NOW 12092# define LT_DLLAZY_OR_NOW DL_NOW 12093# else 12094# define LT_DLLAZY_OR_NOW 0 12095# endif 12096# endif 12097# endif 12098# endif 12099#endif 12100 12101#ifdef __cplusplus 12102extern "C" void exit (int); 12103#endif 12104 12105void fnord() { int i=42;} 12106int main () 12107{ 12108 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 12109 int status = $lt_dlunknown; 12110 12111 if (self) 12112 { 12113 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 12114 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 12115 /* dlclose (self); */ 12116 } 12117 12118 exit (status); 12119} 12120EOF 12121 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12122 (eval $ac_link) 2>&5 12123 ac_status=$? 12124 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12125 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 12126 (./conftest; exit; ) 2>/dev/null 12127 lt_status=$? 12128 case x$lt_status in 12129 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 12130 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 12131 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 12132 esac 12133 else : 12134 # compilation failed 12135 lt_cv_dlopen_self_static=no 12136 fi 12137fi 12138rm -fr conftest* 12139 12140 12141fi 12142echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 12143echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 12144 fi 12145 12146 CPPFLAGS="$save_CPPFLAGS" 12147 LDFLAGS="$save_LDFLAGS" 12148 LIBS="$save_LIBS" 12149 ;; 12150 esac 12151 12152 case $lt_cv_dlopen_self in 12153 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 12154 *) enable_dlopen_self=unknown ;; 12155 esac 12156 12157 case $lt_cv_dlopen_self_static in 12158 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 12159 *) enable_dlopen_self_static=unknown ;; 12160 esac 12161fi 12162 12163 12164# The else clause should only fire when bootstrapping the 12165# libtool distribution, otherwise you forgot to ship ltmain.sh 12166# with your package, and you will get complaints that there are 12167# no rules to generate ltmain.sh. 12168if test -f "$ltmain"; then 12169 # See if we are running on zsh, and set the options which allow our commands through 12170 # without removal of \ escapes. 12171 if test -n "${ZSH_VERSION+set}" ; then 12172 setopt NO_GLOB_SUBST 12173 fi 12174 # Now quote all the things that may contain metacharacters while being 12175 # careful not to overquote the AC_SUBSTed values. We take copies of the 12176 # variables and quote the copies for generation of the libtool script. 12177 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 12178 SED SHELL STRIP \ 12179 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 12180 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 12181 deplibs_check_method reload_flag reload_cmds need_locks \ 12182 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 12183 lt_cv_sys_global_symbol_to_c_name_address \ 12184 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 12185 old_postinstall_cmds old_postuninstall_cmds \ 12186 compiler_CXX \ 12187 CC_CXX \ 12188 LD_CXX \ 12189 lt_prog_compiler_wl_CXX \ 12190 lt_prog_compiler_pic_CXX \ 12191 lt_prog_compiler_static_CXX \ 12192 lt_prog_compiler_no_builtin_flag_CXX \ 12193 export_dynamic_flag_spec_CXX \ 12194 thread_safe_flag_spec_CXX \ 12195 whole_archive_flag_spec_CXX \ 12196 enable_shared_with_static_runtimes_CXX \ 12197 old_archive_cmds_CXX \ 12198 old_archive_from_new_cmds_CXX \ 12199 predep_objects_CXX \ 12200 postdep_objects_CXX \ 12201 predeps_CXX \ 12202 postdeps_CXX \ 12203 compiler_lib_search_path_CXX \ 12204 archive_cmds_CXX \ 12205 archive_expsym_cmds_CXX \ 12206 postinstall_cmds_CXX \ 12207 postuninstall_cmds_CXX \ 12208 old_archive_from_expsyms_cmds_CXX \ 12209 allow_undefined_flag_CXX \ 12210 no_undefined_flag_CXX \ 12211 export_symbols_cmds_CXX \ 12212 hardcode_libdir_flag_spec_CXX \ 12213 hardcode_libdir_flag_spec_ld_CXX \ 12214 hardcode_libdir_separator_CXX \ 12215 hardcode_automatic_CXX \ 12216 module_cmds_CXX \ 12217 module_expsym_cmds_CXX \ 12218 lt_cv_prog_compiler_c_o_CXX \ 12219 exclude_expsyms_CXX \ 12220 include_expsyms_CXX; do 12221 12222 case $var in 12223 old_archive_cmds_CXX | \ 12224 old_archive_from_new_cmds_CXX | \ 12225 archive_cmds_CXX | \ 12226 archive_expsym_cmds_CXX | \ 12227 module_cmds_CXX | \ 12228 module_expsym_cmds_CXX | \ 12229 old_archive_from_expsyms_cmds_CXX | \ 12230 export_symbols_cmds_CXX | \ 12231 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 12232 postinstall_cmds | postuninstall_cmds | \ 12233 old_postinstall_cmds | old_postuninstall_cmds | \ 12234 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 12235 # Double-quote double-evaled strings. 12236 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 12237 ;; 12238 *) 12239 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 12240 ;; 12241 esac 12242 done 12243 12244 case $lt_echo in 12245 *'\$0 --fallback-echo"') 12246 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 12247 ;; 12248 esac 12249 12250cfgfile="$ofile" 12251 12252 cat <<__EOF__ >> "$cfgfile" 12253# ### BEGIN LIBTOOL TAG CONFIG: $tagname 12254 12255# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 12256 12257# Shell to use when invoking shell scripts. 12258SHELL=$lt_SHELL 12259 12260# Whether or not to build shared libraries. 12261build_libtool_libs=$enable_shared 12262 12263# Whether or not to build static libraries. 12264build_old_libs=$enable_static 12265 12266# Whether or not to add -lc for building shared libraries. 12267build_libtool_need_lc=$archive_cmds_need_lc_CXX 12268 12269# Whether or not to disallow shared libs when runtime libs are static 12270allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 12271 12272# Whether or not to optimize for fast installation. 12273fast_install=$enable_fast_install 12274 12275# The host system. 12276host_alias=$host_alias 12277host=$host 12278 12279# An echo program that does not interpret backslashes. 12280echo=$lt_echo 12281 12282# The archiver. 12283AR=$lt_AR 12284AR_FLAGS=$lt_AR_FLAGS 12285 12286# A C compiler. 12287LTCC=$lt_LTCC 12288 12289# A language-specific compiler. 12290CC=$lt_compiler_CXX 12291 12292# Is the compiler the GNU C compiler? 12293with_gcc=$GCC_CXX 12294 12295# An ERE matcher. 12296EGREP=$lt_EGREP 12297 12298# The linker used to build libraries. 12299LD=$lt_LD_CXX 12300 12301# Whether we need hard or soft links. 12302LN_S=$lt_LN_S 12303 12304# A BSD-compatible nm program. 12305NM=$lt_NM 12306 12307# A symbol stripping program 12308STRIP=$lt_STRIP 12309 12310# Used to examine libraries when file_magic_cmd begins "file" 12311MAGIC_CMD=$MAGIC_CMD 12312 12313# Used on cygwin: DLL creation program. 12314DLLTOOL="$DLLTOOL" 12315 12316# Used on cygwin: object dumper. 12317OBJDUMP="$OBJDUMP" 12318 12319# Used on cygwin: assembler. 12320AS="$AS" 12321 12322# The name of the directory that contains temporary libtool files. 12323objdir=$objdir 12324 12325# How to create reloadable object files. 12326reload_flag=$lt_reload_flag 12327reload_cmds=$lt_reload_cmds 12328 12329# How to pass a linker flag through the compiler. 12330wl=$lt_lt_prog_compiler_wl_CXX 12331 12332# Object file suffix (normally "o"). 12333objext="$ac_objext" 12334 12335# Old archive suffix (normally "a"). 12336libext="$libext" 12337 12338# Shared library suffix (normally ".so"). 12339shrext_cmds='$shrext_cmds' 12340 12341# Executable file suffix (normally ""). 12342exeext="$exeext" 12343 12344# Additional compiler flags for building library objects. 12345pic_flag=$lt_lt_prog_compiler_pic_CXX 12346pic_mode=$pic_mode 12347 12348# What is the maximum length of a command? 12349max_cmd_len=$lt_cv_sys_max_cmd_len 12350 12351# Does compiler simultaneously support -c and -o options? 12352compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 12353 12354# Must we lock files when doing compilation ? 12355need_locks=$lt_need_locks 12356 12357# Do we need the lib prefix for modules? 12358need_lib_prefix=$need_lib_prefix 12359 12360# Do we need a version for libraries? 12361need_version=$need_version 12362 12363# Whether dlopen is supported. 12364dlopen_support=$enable_dlopen 12365 12366# Whether dlopen of programs is supported. 12367dlopen_self=$enable_dlopen_self 12368 12369# Whether dlopen of statically linked programs is supported. 12370dlopen_self_static=$enable_dlopen_self_static 12371 12372# Compiler flag to prevent dynamic linking. 12373link_static_flag=$lt_lt_prog_compiler_static_CXX 12374 12375# Compiler flag to turn off builtin functions. 12376no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 12377 12378# Compiler flag to allow reflexive dlopens. 12379export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 12380 12381# Compiler flag to generate shared objects directly from archives. 12382whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 12383 12384# Compiler flag to generate thread-safe objects. 12385thread_safe_flag_spec=$lt_thread_safe_flag_spec_CXX 12386 12387# Library versioning type. 12388version_type=$version_type 12389 12390# Format of library name prefix. 12391libname_spec=$lt_libname_spec 12392 12393# List of archive names. First name is the real one, the rest are links. 12394# The last name is the one that the linker finds with -lNAME. 12395library_names_spec=$lt_library_names_spec 12396 12397# The coded name of the library, if different from the real name. 12398soname_spec=$lt_soname_spec 12399 12400# Commands used to build and install an old-style archive. 12401RANLIB=$lt_RANLIB 12402old_archive_cmds=$lt_old_archive_cmds_CXX 12403old_postinstall_cmds=$lt_old_postinstall_cmds 12404old_postuninstall_cmds=$lt_old_postuninstall_cmds 12405 12406# Create an old-style archive from a shared archive. 12407old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 12408 12409# Create a temporary old-style archive to link instead of a shared archive. 12410old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 12411 12412# Commands used to build and install a shared archive. 12413archive_cmds=$lt_archive_cmds_CXX 12414archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 12415postinstall_cmds=$lt_postinstall_cmds 12416postuninstall_cmds=$lt_postuninstall_cmds 12417 12418# Commands used to build a loadable module (assumed same as above if empty) 12419module_cmds=$lt_module_cmds_CXX 12420module_expsym_cmds=$lt_module_expsym_cmds_CXX 12421 12422# Commands to strip libraries. 12423old_striplib=$lt_old_striplib 12424striplib=$lt_striplib 12425 12426# Dependencies to place before the objects being linked to create a 12427# shared library. 12428predep_objects=$lt_predep_objects_CXX 12429 12430# Dependencies to place after the objects being linked to create a 12431# shared library. 12432postdep_objects=$lt_postdep_objects_CXX 12433 12434# Dependencies to place before the objects being linked to create a 12435# shared library. 12436predeps=$lt_predeps_CXX 12437 12438# Dependencies to place after the objects being linked to create a 12439# shared library. 12440postdeps=$lt_postdeps_CXX 12441 12442# The library search path used internally by the compiler when linking 12443# a shared library. 12444compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 12445 12446# Method to check whether dependent libraries are shared objects. 12447deplibs_check_method=$lt_deplibs_check_method 12448 12449# Command to use when deplibs_check_method == file_magic. 12450file_magic_cmd=$lt_file_magic_cmd 12451 12452# Flag that allows shared libraries with undefined symbols to be built. 12453allow_undefined_flag=$lt_allow_undefined_flag_CXX 12454 12455# Flag that forces no undefined symbols. 12456no_undefined_flag=$lt_no_undefined_flag_CXX 12457 12458# Commands used to finish a libtool library installation in a directory. 12459finish_cmds=$lt_finish_cmds 12460 12461# Same as above, but a single script fragment to be evaled but not shown. 12462finish_eval=$lt_finish_eval 12463 12464# Take the output of nm and produce a listing of raw symbols and C names. 12465global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 12466 12467# Transform the output of nm in a proper C declaration 12468global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 12469 12470# Transform the output of nm in a C name address pair 12471global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 12472 12473# This is the shared library runtime path variable. 12474runpath_var=$runpath_var 12475 12476# This is the shared library path variable. 12477shlibpath_var=$shlibpath_var 12478 12479# Is shlibpath searched before the hard-coded library search path? 12480shlibpath_overrides_runpath=$shlibpath_overrides_runpath 12481 12482# How to hardcode a shared library path into an executable. 12483hardcode_action=$hardcode_action_CXX 12484 12485# Whether we should hardcode library paths into libraries. 12486hardcode_into_libs=$hardcode_into_libs 12487 12488# Flag to hardcode \$libdir into a binary during linking. 12489# This must work even if \$libdir does not exist. 12490hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 12491 12492# If ld is used when linking, flag to hardcode \$libdir into 12493# a binary during linking. This must work even if \$libdir does 12494# not exist. 12495hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_CXX 12496 12497# Whether we need a single -rpath flag with a separated argument. 12498hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 12499 12500# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 12501# resulting binary. 12502hardcode_direct=$hardcode_direct_CXX 12503 12504# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 12505# resulting binary. 12506hardcode_minus_L=$hardcode_minus_L_CXX 12507 12508# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 12509# the resulting binary. 12510hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 12511 12512# Set to yes if building a shared library automatically hardcodes DIR into the library 12513# and all subsequent libraries and executables linked against it. 12514hardcode_automatic=$hardcode_automatic_CXX 12515 12516# Variables whose values should be saved in libtool wrapper scripts and 12517# restored at relink time. 12518variables_saved_for_relink="$variables_saved_for_relink" 12519 12520# Whether libtool must link a program against all its dependency libraries. 12521link_all_deplibs=$link_all_deplibs_CXX 12522 12523# Compile-time system search path for libraries 12524sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 12525 12526# Run-time system search path for libraries 12527sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 12528 12529# Fix the shell variable \$srcfile for the compiler. 12530fix_srcfile_path="$fix_srcfile_path_CXX" 12531 12532# Set to yes if exported symbols are required. 12533always_export_symbols=$always_export_symbols_CXX 12534 12535# The commands to list exported symbols. 12536export_symbols_cmds=$lt_export_symbols_cmds_CXX 12537 12538# The commands to extract the exported symbol list from a shared archive. 12539extract_expsyms_cmds=$lt_extract_expsyms_cmds 12540 12541# Symbols that should not be listed in the preloaded symbols. 12542exclude_expsyms=$lt_exclude_expsyms_CXX 12543 12544# Symbols that must always be exported. 12545include_expsyms=$lt_include_expsyms_CXX 12546 12547# ### END LIBTOOL TAG CONFIG: $tagname 12548 12549__EOF__ 12550 12551 12552else 12553 # If there is no Makefile yet, we rely on a make rule to execute 12554 # `config.status --recheck' to rerun these tests and create the 12555 # libtool script then. 12556 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 12557 if test -f "$ltmain_in"; then 12558 test -f Makefile && make "$ltmain" 12559 fi 12560fi 12561 12562 12563ac_ext=c 12564ac_cpp='$CPP $CPPFLAGS' 12565ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 12566ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12567ac_compiler_gnu=$ac_cv_c_compiler_gnu 12568 12569CC=$lt_save_CC 12570LDCXX=$LD 12571LD=$lt_save_LD 12572GCC=$lt_save_GCC 12573with_gnu_ldcxx=$with_gnu_ld 12574with_gnu_ld=$lt_save_with_gnu_ld 12575lt_cv_path_LDCXX=$lt_cv_path_LD 12576lt_cv_path_LD=$lt_save_path_LD 12577lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 12578lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 12579 12580 else 12581 tagname="" 12582 fi 12583 ;; 12584 12585 F77) 12586 if test -n "$F77" && test "X$F77" != "Xno"; then 12587 12588ac_ext=f 12589ac_compile='$F77 -c $FFLAGS conftest.$ac_ext >&5' 12590ac_link='$F77 -o conftest$ac_exeext $FFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 12591ac_compiler_gnu=$ac_cv_f77_compiler_gnu 12592 12593 12594archive_cmds_need_lc_F77=no 12595allow_undefined_flag_F77= 12596always_export_symbols_F77=no 12597archive_expsym_cmds_F77= 12598export_dynamic_flag_spec_F77= 12599hardcode_direct_F77=no 12600hardcode_libdir_flag_spec_F77= 12601hardcode_libdir_flag_spec_ld_F77= 12602hardcode_libdir_separator_F77= 12603hardcode_minus_L_F77=no 12604hardcode_automatic_F77=no 12605module_cmds_F77= 12606module_expsym_cmds_F77= 12607link_all_deplibs_F77=unknown 12608old_archive_cmds_F77=$old_archive_cmds 12609no_undefined_flag_F77= 12610whole_archive_flag_spec_F77= 12611enable_shared_with_static_runtimes_F77=no 12612 12613# Source file extension for f77 test sources. 12614ac_ext=f 12615 12616# Object file extension for compiled f77 test sources. 12617objext=o 12618objext_F77=$objext 12619 12620# Code to be used in simple compile tests 12621lt_simple_compile_test_code=" subroutine t\n return\n end\n" 12622 12623# Code to be used in simple link tests 12624lt_simple_link_test_code=" program t\n end\n" 12625 12626# ltmain only uses $CC for tagged configurations so make sure $CC is set. 12627 12628# If no C compiler was specified, use CC. 12629LTCC=${LTCC-"$CC"} 12630 12631# Allow CC to be a program name with arguments. 12632compiler=$CC 12633 12634 12635# Allow CC to be a program name with arguments. 12636lt_save_CC="$CC" 12637CC=${F77-"f77"} 12638compiler=$CC 12639compiler_F77=$CC 12640cc_basename=`$echo X"$compiler" | $Xsed -e 's%^.*/%%'` 12641 12642echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 12643echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 12644echo "$as_me:$LINENO: result: $can_build_shared" >&5 12645echo "${ECHO_T}$can_build_shared" >&6 12646 12647echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 12648echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 12649test "$can_build_shared" = "no" && enable_shared=no 12650 12651# On AIX, shared libraries and static libraries use the same namespace, and 12652# are all built from PIC. 12653case "$host_os" in 12654aix3*) 12655 test "$enable_shared" = yes && enable_static=no 12656 if test -n "$RANLIB"; then 12657 archive_cmds="$archive_cmds~\$RANLIB \$lib" 12658 postinstall_cmds='$RANLIB $lib' 12659 fi 12660 ;; 12661aix4* | aix5*) 12662 test "$enable_shared" = yes && enable_static=no 12663 ;; 12664esac 12665echo "$as_me:$LINENO: result: $enable_shared" >&5 12666echo "${ECHO_T}$enable_shared" >&6 12667 12668echo "$as_me:$LINENO: checking whether to build static libraries" >&5 12669echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 12670# Make sure either enable_shared or enable_static is yes. 12671test "$enable_shared" = yes || enable_static=yes 12672echo "$as_me:$LINENO: result: $enable_static" >&5 12673echo "${ECHO_T}$enable_static" >&6 12674 12675test "$ld_shlibs_F77" = no && can_build_shared=no 12676 12677GCC_F77="$G77" 12678LD_F77="$LD" 12679 12680lt_prog_compiler_wl_F77= 12681lt_prog_compiler_pic_F77= 12682lt_prog_compiler_static_F77= 12683 12684echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 12685echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 12686 12687 if test "$GCC" = yes; then 12688 lt_prog_compiler_wl_F77='-Wl,' 12689 lt_prog_compiler_static_F77='-static' 12690 12691 case $host_os in 12692 aix*) 12693 # All AIX code is PIC. 12694 if test "$host_cpu" = ia64; then 12695 # AIX 5 now supports IA64 processor 12696 lt_prog_compiler_static_F77='-Bstatic' 12697 fi 12698 ;; 12699 12700 amigaos*) 12701 # FIXME: we need at least 68020 code to build shared libraries, but 12702 # adding the `-m68020' flag to GCC prevents building anything better, 12703 # like `-m68040'. 12704 lt_prog_compiler_pic_F77='-m68020 -resident32 -malways-restore-a4' 12705 ;; 12706 12707 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 12708 # PIC is the default for these OSes. 12709 ;; 12710 12711 mingw* | pw32* | os2*) 12712 # This hack is so that the source file can tell whether it is being 12713 # built for inclusion in a dll (and should export symbols for example). 12714 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12715 ;; 12716 12717 darwin* | rhapsody*) 12718 # PIC is the default on this platform 12719 # Common symbols not allowed in MH_DYLIB files 12720 lt_prog_compiler_pic_F77='-fno-common' 12721 ;; 12722 12723 msdosdjgpp*) 12724 # Just because we use GCC doesn't mean we suddenly get shared libraries 12725 # on systems that don't support them. 12726 lt_prog_compiler_can_build_shared_F77=no 12727 enable_shared=no 12728 ;; 12729 12730 sysv4*MP*) 12731 if test -d /usr/nec; then 12732 lt_prog_compiler_pic_F77=-Kconform_pic 12733 fi 12734 ;; 12735 12736 hpux*) 12737 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12738 # not for PA HP-UX. 12739 case "$host_cpu" in 12740 hppa*64*|ia64*) 12741 # +Z the default 12742 ;; 12743 *) 12744 lt_prog_compiler_pic_F77='-fPIC' 12745 ;; 12746 esac 12747 ;; 12748 12749 *) 12750 lt_prog_compiler_pic_F77='-fPIC' 12751 ;; 12752 esac 12753 else 12754 # PORTME Check for flag to pass linker flags through the system compiler. 12755 case $host_os in 12756 aix*) 12757 lt_prog_compiler_wl_F77='-Wl,' 12758 if test "$host_cpu" = ia64; then 12759 # AIX 5 now supports IA64 processor 12760 lt_prog_compiler_static_F77='-Bstatic' 12761 else 12762 lt_prog_compiler_static_F77='-bnso -bI:/lib/syscalls.exp' 12763 fi 12764 ;; 12765 12766 mingw* | pw32* | os2*) 12767 # This hack is so that the source file can tell whether it is being 12768 # built for inclusion in a dll (and should export symbols for example). 12769 lt_prog_compiler_pic_F77='-DDLL_EXPORT' 12770 ;; 12771 12772 hpux9* | hpux10* | hpux11*) 12773 lt_prog_compiler_wl_F77='-Wl,' 12774 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 12775 # not for PA HP-UX. 12776 case "$host_cpu" in 12777 hppa*64*|ia64*) 12778 # +Z the default 12779 ;; 12780 *) 12781 lt_prog_compiler_pic_F77='+Z' 12782 ;; 12783 esac 12784 # Is there a better lt_prog_compiler_static that works with the bundled CC? 12785 lt_prog_compiler_static_F77='${wl}-a ${wl}archive' 12786 ;; 12787 12788 irix5* | irix6* | nonstopux*) 12789 lt_prog_compiler_wl_F77='-Wl,' 12790 # PIC (with -KPIC) is the default. 12791 lt_prog_compiler_static_F77='-non_shared' 12792 ;; 12793 12794 newsos6) 12795 lt_prog_compiler_pic_F77='-KPIC' 12796 lt_prog_compiler_static_F77='-Bstatic' 12797 ;; 12798 12799 linux*) 12800 case $CC in 12801 icc* | ecc*) 12802 lt_prog_compiler_wl_F77='-Wl,' 12803 lt_prog_compiler_pic_F77='-KPIC' 12804 lt_prog_compiler_static_F77='-static' 12805 ;; 12806 ccc*) 12807 lt_prog_compiler_wl_F77='-Wl,' 12808 # All Alpha code is PIC. 12809 lt_prog_compiler_static_F77='-non_shared' 12810 ;; 12811 esac 12812 ;; 12813 12814 osf3* | osf4* | osf5*) 12815 lt_prog_compiler_wl_F77='-Wl,' 12816 # All OSF/1 code is PIC. 12817 lt_prog_compiler_static_F77='-non_shared' 12818 ;; 12819 12820 sco3.2v5*) 12821 lt_prog_compiler_pic_F77='-Kpic' 12822 lt_prog_compiler_static_F77='-dn' 12823 ;; 12824 12825 solaris*) 12826 lt_prog_compiler_wl_F77='-Wl,' 12827 lt_prog_compiler_pic_F77='-KPIC' 12828 lt_prog_compiler_static_F77='-Bstatic' 12829 ;; 12830 12831 sunos4*) 12832 lt_prog_compiler_wl_F77='-Qoption ld ' 12833 lt_prog_compiler_pic_F77='-PIC' 12834 lt_prog_compiler_static_F77='-Bstatic' 12835 ;; 12836 12837 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12838 lt_prog_compiler_wl_F77='-Wl,' 12839 lt_prog_compiler_pic_F77='-KPIC' 12840 lt_prog_compiler_static_F77='-Bstatic' 12841 ;; 12842 12843 sysv4*MP*) 12844 if test -d /usr/nec ;then 12845 lt_prog_compiler_pic_F77='-Kconform_pic' 12846 lt_prog_compiler_static_F77='-Bstatic' 12847 fi 12848 ;; 12849 12850 uts4*) 12851 lt_prog_compiler_pic_F77='-pic' 12852 lt_prog_compiler_static_F77='-Bstatic' 12853 ;; 12854 12855 *) 12856 lt_prog_compiler_can_build_shared_F77=no 12857 ;; 12858 esac 12859 fi 12860 12861echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_F77" >&5 12862echo "${ECHO_T}$lt_prog_compiler_pic_F77" >&6 12863 12864# 12865# Check to make sure the PIC flag actually works. 12866# 12867if test -n "$lt_prog_compiler_pic_F77"; then 12868 12869echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works" >&5 12870echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_F77 works... $ECHO_C" >&6 12871if test "${lt_prog_compiler_pic_works_F77+set}" = set; then 12872 echo $ECHO_N "(cached) $ECHO_C" >&6 12873else 12874 lt_prog_compiler_pic_works_F77=no 12875 ac_outfile=conftest.$ac_objext 12876 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12877 lt_compiler_flag="$lt_prog_compiler_pic_F77" 12878 # Insert the option either (1) after the last *FLAGS variable, or 12879 # (2) before a word containing "conftest.", or (3) at the end. 12880 # Note that $ac_compile itself does not contain backslashes and begins 12881 # with a dollar sign (not a hyphen), so the echo should work correctly. 12882 # The option is referenced via a variable to avoid confusing sed. 12883 lt_compile=`echo "$ac_compile" | $SED \ 12884 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12885 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12886 -e 's:$: $lt_compiler_flag:'` 12887 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12888 (eval "$lt_compile" 2>conftest.err) 12889 ac_status=$? 12890 cat conftest.err >&5 12891 echo "$as_me:__oline__: \$? = $ac_status" >&5 12892 if (exit $ac_status) && test -s "$ac_outfile"; then 12893 # The compiler can only warn and ignore the option if not recognized 12894 # So say no if there are warnings 12895 if test ! -s conftest.err; then 12896 lt_prog_compiler_pic_works_F77=yes 12897 fi 12898 fi 12899 $rm conftest* 12900 12901fi 12902echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_F77" >&5 12903echo "${ECHO_T}$lt_prog_compiler_pic_works_F77" >&6 12904 12905if test x"$lt_prog_compiler_pic_works_F77" = xyes; then 12906 case $lt_prog_compiler_pic_F77 in 12907 "" | " "*) ;; 12908 *) lt_prog_compiler_pic_F77=" $lt_prog_compiler_pic_F77" ;; 12909 esac 12910else 12911 lt_prog_compiler_pic_F77= 12912 lt_prog_compiler_can_build_shared_F77=no 12913fi 12914 12915fi 12916case "$host_os" in 12917 # For platforms which do not support PIC, -DPIC is meaningless: 12918 *djgpp*) 12919 lt_prog_compiler_pic_F77= 12920 ;; 12921 *) 12922 lt_prog_compiler_pic_F77="$lt_prog_compiler_pic_F77" 12923 ;; 12924esac 12925 12926echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 12927echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 12928if test "${lt_cv_prog_compiler_c_o_F77+set}" = set; then 12929 echo $ECHO_N "(cached) $ECHO_C" >&6 12930else 12931 lt_cv_prog_compiler_c_o_F77=no 12932 $rm -r conftest 2>/dev/null 12933 mkdir conftest 12934 cd conftest 12935 mkdir out 12936 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 12937 12938 lt_compiler_flag="-o out/conftest2.$ac_objext" 12939 # Insert the option either (1) after the last *FLAGS variable, or 12940 # (2) before a word containing "conftest.", or (3) at the end. 12941 # Note that $ac_compile itself does not contain backslashes and begins 12942 # with a dollar sign (not a hyphen), so the echo should work correctly. 12943 lt_compile=`echo "$ac_compile" | $SED \ 12944 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 12945 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 12946 -e 's:$: $lt_compiler_flag:'` 12947 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 12948 (eval "$lt_compile" 2>out/conftest.err) 12949 ac_status=$? 12950 cat out/conftest.err >&5 12951 echo "$as_me:__oline__: \$? = $ac_status" >&5 12952 if (exit $ac_status) && test -s out/conftest2.$ac_objext 12953 then 12954 # The compiler can only warn and ignore the option if not recognized 12955 # So say no if there are warnings 12956 if test ! -s out/conftest.err; then 12957 lt_cv_prog_compiler_c_o_F77=yes 12958 fi 12959 fi 12960 chmod u+w . 12961 $rm conftest* 12962 # SGI C++ compiler will create directory out/ii_files/ for 12963 # template instantiation 12964 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 12965 $rm out/* && rmdir out 12966 cd .. 12967 rmdir conftest 12968 $rm conftest* 12969 12970fi 12971echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_F77" >&5 12972echo "${ECHO_T}$lt_cv_prog_compiler_c_o_F77" >&6 12973 12974 12975hard_links="nottested" 12976if test "$lt_cv_prog_compiler_c_o_F77" = no && test "$need_locks" != no; then 12977 # do not overwrite the value of need_locks provided by the user 12978 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 12979echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 12980 hard_links=yes 12981 $rm conftest* 12982 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12983 touch conftest.a 12984 ln conftest.a conftest.b 2>&5 || hard_links=no 12985 ln conftest.a conftest.b 2>/dev/null && hard_links=no 12986 echo "$as_me:$LINENO: result: $hard_links" >&5 12987echo "${ECHO_T}$hard_links" >&6 12988 if test "$hard_links" = no; then 12989 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 12990echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 12991 need_locks=warn 12992 fi 12993else 12994 need_locks=no 12995fi 12996 12997echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 12998echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 12999 13000 runpath_var= 13001 allow_undefined_flag_F77= 13002 enable_shared_with_static_runtimes_F77=no 13003 archive_cmds_F77= 13004 archive_expsym_cmds_F77= 13005 old_archive_From_new_cmds_F77= 13006 old_archive_from_expsyms_cmds_F77= 13007 export_dynamic_flag_spec_F77= 13008 whole_archive_flag_spec_F77= 13009 thread_safe_flag_spec_F77= 13010 hardcode_libdir_flag_spec_F77= 13011 hardcode_libdir_flag_spec_ld_F77= 13012 hardcode_libdir_separator_F77= 13013 hardcode_direct_F77=no 13014 hardcode_minus_L_F77=no 13015 hardcode_shlibpath_var_F77=unsupported 13016 link_all_deplibs_F77=unknown 13017 hardcode_automatic_F77=no 13018 module_cmds_F77= 13019 module_expsym_cmds_F77= 13020 always_export_symbols_F77=no 13021 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 13022 # include_expsyms should be a list of space-separated symbols to be *always* 13023 # included in the symbol list 13024 include_expsyms_F77= 13025 # exclude_expsyms can be an extended regexp of symbols to exclude 13026 # it will be wrapped by ` (' and `)$', so one must not match beginning or 13027 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 13028 # as well as any symbol that contains `d'. 13029 exclude_expsyms_F77="_GLOBAL_OFFSET_TABLE_" 13030 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 13031 # platforms (ab)use it in PIC code, but their linkers get confused if 13032 # the symbol is explicitly referenced. Since portable code cannot 13033 # rely on this symbol name, it's probably fine to never include it in 13034 # preloaded symbol tables. 13035 extract_expsyms_cmds= 13036 13037 case $host_os in 13038 cygwin* | mingw* | pw32*) 13039 # FIXME: the MSVC++ port hasn't been tested in a loooong time 13040 # When not using gcc, we currently assume that we are using 13041 # Microsoft Visual C++. 13042 if test "$GCC" != yes; then 13043 with_gnu_ld=no 13044 fi 13045 ;; 13046 openbsd*) 13047 with_gnu_ld=no 13048 ;; 13049 esac 13050 13051 ld_shlibs_F77=yes 13052 if test "$with_gnu_ld" = yes; then 13053 # If archive_cmds runs LD, not CC, wlarc should be empty 13054 wlarc='${wl}' 13055 13056 # See if GNU ld supports shared libraries. 13057 case $host_os in 13058 aix3* | aix4* | aix5*) 13059 # On AIX/PPC, the GNU linker is very broken 13060 if test "$host_cpu" != ia64; then 13061 ld_shlibs_F77=no 13062 cat <<EOF 1>&2 13063 13064*** Warning: the GNU linker, at least up to release 2.9.1, is reported 13065*** to be unable to reliably create shared libraries on AIX. 13066*** Therefore, libtool is disabling shared libraries support. If you 13067*** really care for shared libraries, you may want to modify your PATH 13068*** so that a non-GNU linker is found, and then restart. 13069 13070EOF 13071 fi 13072 ;; 13073 13074 amigaos*) 13075 archive_cmds_F77='$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)' 13076 hardcode_libdir_flag_spec_F77='-L$libdir' 13077 hardcode_minus_L_F77=yes 13078 13079 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 13080 # that the semantics of dynamic libraries on AmigaOS, at least up 13081 # to version 4, is to share data among multiple programs linked 13082 # with the same dynamic library. Since this doesn't match the 13083 # behavior of shared libraries on other platforms, we can't use 13084 # them. 13085 ld_shlibs_F77=no 13086 ;; 13087 13088 beos*) 13089 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13090 allow_undefined_flag_F77=unsupported 13091 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 13092 # support --undefined. This deserves some investigation. FIXME 13093 archive_cmds_F77='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13094 else 13095 ld_shlibs_F77=no 13096 fi 13097 ;; 13098 13099 cygwin* | mingw* | pw32*) 13100 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, F77) is actually meaningless, 13101 # as there is no search path for DLLs. 13102 hardcode_libdir_flag_spec_F77='-L$libdir' 13103 allow_undefined_flag_F77=unsupported 13104 always_export_symbols_F77=no 13105 enable_shared_with_static_runtimes_F77=yes 13106 export_symbols_cmds_F77='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 13107 13108 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 13109 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13110 # If the export-symbols file already is a .def file (1st line 13111 # is EXPORTS), use it as is; otherwise, prepend... 13112 archive_expsym_cmds_F77='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 13113 cp $export_symbols $output_objdir/$soname.def; 13114 else 13115 echo EXPORTS > $output_objdir/$soname.def; 13116 cat $export_symbols >> $output_objdir/$soname.def; 13117 fi~ 13118 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 13119 else 13120 ld_shlibs=no 13121 fi 13122 ;; 13123 13124 netbsd*) 13125 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13126 archive_cmds_F77='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 13127 wlarc= 13128 else 13129 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13130 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13131 fi 13132 ;; 13133 13134 solaris* | sysv5*) 13135 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 13136 ld_shlibs_F77=no 13137 cat <<EOF 1>&2 13138 13139*** Warning: The releases 2.8.* of the GNU linker cannot reliably 13140*** create shared libraries on Solaris systems. Therefore, libtool 13141*** is disabling shared libraries support. We urge you to upgrade GNU 13142*** binutils to release 2.9.1 or newer. Another option is to modify 13143*** your PATH or compiler configuration so that the native linker is 13144*** used, and then restart. 13145 13146EOF 13147 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13148 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13149 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13150 else 13151 ld_shlibs_F77=no 13152 fi 13153 ;; 13154 13155 sunos4*) 13156 archive_cmds_F77='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13157 wlarc= 13158 hardcode_direct_F77=yes 13159 hardcode_shlibpath_var_F77=no 13160 ;; 13161 13162 linux*) 13163 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13164 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13165 archive_cmds_F77="$tmp_archive_cmds" 13166 supports_anon_versioning=no 13167 case `$LD -v 2>/dev/null` in 13168 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 13169 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 13170 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 13171 *\ 2.11.*) ;; # other 2.11 versions 13172 *) supports_anon_versioning=yes ;; 13173 esac 13174 if test $supports_anon_versioning = yes; then 13175 archive_expsym_cmds_F77='$echo "{ global:" > $output_objdir/$libname.ver~ 13176cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 13177$echo "local: *; };" >> $output_objdir/$libname.ver~ 13178 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 13179 else 13180 archive_expsym_cmds_F77="$tmp_archive_cmds" 13181 fi 13182 else 13183 ld_shlibs_F77=no 13184 fi 13185 ;; 13186 13187 *) 13188 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 13189 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 13190 archive_expsym_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 13191 else 13192 ld_shlibs_F77=no 13193 fi 13194 ;; 13195 esac 13196 13197 if test "$ld_shlibs_F77" = yes; then 13198 runpath_var=LD_RUN_PATH 13199 hardcode_libdir_flag_spec_F77='${wl}--rpath ${wl}$libdir' 13200 export_dynamic_flag_spec_F77='${wl}--export-dynamic' 13201 # ancient GNU ld didn't support --whole-archive et. al. 13202 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 13203 whole_archive_flag_spec_F77="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 13204 else 13205 whole_archive_flag_spec_F77= 13206 fi 13207 fi 13208 else 13209 # PORTME fill in a description of your system's linker (not GNU ld) 13210 case $host_os in 13211 aix3*) 13212 allow_undefined_flag_F77=unsupported 13213 always_export_symbols_F77=yes 13214 archive_expsym_cmds_F77='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 13215 # Note: this linker hardcodes the directories in LIBPATH if there 13216 # are no directories specified by -L. 13217 hardcode_minus_L_F77=yes 13218 if test "$GCC" = yes && test -z "$link_static_flag"; then 13219 # Neither direct hardcoding nor static linking is supported with a 13220 # broken collect2. 13221 hardcode_direct_F77=unsupported 13222 fi 13223 ;; 13224 13225 aix4* | aix5*) 13226 if test "$host_cpu" = ia64; then 13227 # On IA64, the linker does run time linking by default, so we don't 13228 # have to do anything special. 13229 aix_use_runtimelinking=no 13230 exp_sym_flag='-Bexport' 13231 no_entry_flag="" 13232 else 13233 # If we're using GNU nm, then we don't want the "-C" option. 13234 # -C means demangle to AIX nm, but means don't demangle with GNU nm 13235 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 13236 export_symbols_cmds_F77='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13237 else 13238 export_symbols_cmds_F77='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 13239 fi 13240 aix_use_runtimelinking=no 13241 13242 # Test if we are trying to use run time linking or normal 13243 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13244 # need to do runtime linking. 13245 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 13246 for ld_flag in $LDFLAGS; do 13247 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 13248 aix_use_runtimelinking=yes 13249 break 13250 fi 13251 done 13252 esac 13253 13254 exp_sym_flag='-bexport' 13255 no_entry_flag='-bnoentry' 13256 fi 13257 13258 # When large executables or shared objects are built, AIX ld can 13259 # have problems creating the table of contents. If linking a library 13260 # or program results in "error TOC overflow" add -mminimal-toc to 13261 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 13262 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 13263 13264 archive_cmds_F77='' 13265 hardcode_direct_F77=yes 13266 hardcode_libdir_separator_F77=':' 13267 link_all_deplibs_F77=yes 13268 13269 if test "$GCC" = yes; then 13270 case $host_os in aix4.012|aix4.012.*) 13271 # We only want to do this on AIX 4.2 and lower, the check 13272 # below for broken collect2 doesn't work under 4.3+ 13273 collect2name=`${CC} -print-prog-name=collect2` 13274 if test -f "$collect2name" && \ 13275 strings "$collect2name" | grep resolve_lib_name >/dev/null 13276 then 13277 # We have reworked collect2 13278 hardcode_direct_F77=yes 13279 else 13280 # We have old collect2 13281 hardcode_direct_F77=unsupported 13282 # It fails to find uninstalled libraries when the uninstalled 13283 # path is not listed in the libpath. Setting hardcode_minus_L 13284 # to unsupported forces relinking 13285 hardcode_minus_L_F77=yes 13286 hardcode_libdir_flag_spec_F77='-L$libdir' 13287 hardcode_libdir_separator_F77= 13288 fi 13289 esac 13290 shared_flag='-shared' 13291 else 13292 # not using gcc 13293 if test "$host_cpu" = ia64; then 13294 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 13295 # chokes on -Wl,-G. The following line is correct: 13296 shared_flag='-G' 13297 else 13298 if test "$aix_use_runtimelinking" = yes; then 13299 shared_flag='${wl}-G' 13300 else 13301 shared_flag='${wl}-bM:SRE' 13302 fi 13303 fi 13304 fi 13305 13306 # It seems that -bexpall does not export symbols beginning with 13307 # underscore (_), so it is better to generate a list of symbols to export. 13308 always_export_symbols_F77=yes 13309 if test "$aix_use_runtimelinking" = yes; then 13310 # Warning - without using the other runtime loading flags (-brtl), 13311 # -berok will link without error, but may produce a broken library. 13312 allow_undefined_flag_F77='-berok' 13313 # Determine the default libpath from the value encoded in an empty executable. 13314 cat >conftest.$ac_ext <<_ACEOF 13315 program main 13316 13317 end 13318_ACEOF 13319rm -f conftest.$ac_objext conftest$ac_exeext 13320if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13321 (eval $ac_link) 2>conftest.er1 13322 ac_status=$? 13323 grep -v '^ *+' conftest.er1 >conftest.err 13324 rm -f conftest.er1 13325 cat conftest.err >&5 13326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13327 (exit $ac_status); } && 13328 { ac_try='test -z "$ac_f77_werror_flag" 13329 || test ! -s conftest.err' 13330 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13331 (eval $ac_try) 2>&5 13332 ac_status=$? 13333 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13334 (exit $ac_status); }; } && 13335 { ac_try='test -s conftest$ac_exeext' 13336 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13337 (eval $ac_try) 2>&5 13338 ac_status=$? 13339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13340 (exit $ac_status); }; }; then 13341 13342aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13343}'` 13344# Check for a 64-bit object if we didn't find anything. 13345if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13346}'`; fi 13347else 13348 echo "$as_me: failed program was:" >&5 13349sed 's/^/| /' conftest.$ac_ext >&5 13350 13351fi 13352rm -f conftest.err conftest.$ac_objext \ 13353 conftest$ac_exeext conftest.$ac_ext 13354if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13355 13356 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13357 archive_expsym_cmds_F77="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 13358 else 13359 if test "$host_cpu" = ia64; then 13360 hardcode_libdir_flag_spec_F77='${wl}-R $libdir:/usr/lib:/lib' 13361 allow_undefined_flag_F77="-z nodefs" 13362 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 13363 else 13364 # Determine the default libpath from the value encoded in an empty executable. 13365 cat >conftest.$ac_ext <<_ACEOF 13366 program main 13367 13368 end 13369_ACEOF 13370rm -f conftest.$ac_objext conftest$ac_exeext 13371if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13372 (eval $ac_link) 2>conftest.er1 13373 ac_status=$? 13374 grep -v '^ *+' conftest.er1 >conftest.err 13375 rm -f conftest.er1 13376 cat conftest.err >&5 13377 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13378 (exit $ac_status); } && 13379 { ac_try='test -z "$ac_f77_werror_flag" 13380 || test ! -s conftest.err' 13381 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13382 (eval $ac_try) 2>&5 13383 ac_status=$? 13384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13385 (exit $ac_status); }; } && 13386 { ac_try='test -s conftest$ac_exeext' 13387 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13388 (eval $ac_try) 2>&5 13389 ac_status=$? 13390 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13391 (exit $ac_status); }; }; then 13392 13393aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13394}'` 13395# Check for a 64-bit object if we didn't find anything. 13396if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 13397}'`; fi 13398else 13399 echo "$as_me: failed program was:" >&5 13400sed 's/^/| /' conftest.$ac_ext >&5 13401 13402fi 13403rm -f conftest.err conftest.$ac_objext \ 13404 conftest$ac_exeext conftest.$ac_ext 13405if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 13406 13407 hardcode_libdir_flag_spec_F77='${wl}-blibpath:$libdir:'"$aix_libpath" 13408 # Warning - without using the other run time loading flags, 13409 # -berok will link without error, but may produce a broken library. 13410 no_undefined_flag_F77=' ${wl}-bernotok' 13411 allow_undefined_flag_F77=' ${wl}-berok' 13412 # -bexpall does not export symbols beginning with underscore (_) 13413 always_export_symbols_F77=yes 13414 # Exported symbols can be pulled into shared objects from archives 13415 whole_archive_flag_spec_F77=' ' 13416 archive_cmds_need_lc_F77=yes 13417 # This is similar to how AIX traditionally builds it's shared libraries. 13418 archive_expsym_cmds_F77="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 13419 fi 13420 fi 13421 ;; 13422 13423 amigaos*) 13424 archive_cmds_F77='$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)' 13425 hardcode_libdir_flag_spec_F77='-L$libdir' 13426 hardcode_minus_L_F77=yes 13427 # see comment about different semantics on the GNU ld section 13428 ld_shlibs_F77=no 13429 ;; 13430 13431 bsdi4*) 13432 export_dynamic_flag_spec_F77=-rdynamic 13433 ;; 13434 13435 cygwin* | mingw* | pw32*) 13436 # When not using gcc, we currently assume that we are using 13437 # Microsoft Visual C++. 13438 # hardcode_libdir_flag_spec is actually meaningless, as there is 13439 # no search path for DLLs. 13440 hardcode_libdir_flag_spec_F77=' ' 13441 allow_undefined_flag_F77=unsupported 13442 # Tell ltmain to make .lib files, not .a files. 13443 libext=lib 13444 # Tell ltmain to make .dll files, not .so files. 13445 shrext_cmds=".dll" 13446 # FIXME: Setting linknames here is a bad hack. 13447 archive_cmds_F77='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 13448 # The linker will automatically build a .lib file if we build a DLL. 13449 old_archive_From_new_cmds_F77='true' 13450 # FIXME: Should let the user specify the lib program. 13451 old_archive_cmds_F77='lib /OUT:$oldlib$oldobjs$old_deplibs' 13452 fix_srcfile_path='`cygpath -w "$srcfile"`' 13453 enable_shared_with_static_runtimes_F77=yes 13454 ;; 13455 13456 darwin* | rhapsody*) 13457 if test "$GXX" = yes ; then 13458 archive_cmds_need_lc_F77=no 13459 case "$host_os" in 13460 rhapsody* | darwin1.[012]) 13461 allow_undefined_flag_F77='-undefined suppress' 13462 ;; 13463 *) # Darwin 1.3 on 13464 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 13465 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13466 else 13467 case ${MACOSX_DEPLOYMENT_TARGET} in 13468 10.[012]) 13469 allow_undefined_flag_F77='-flat_namespace -undefined suppress' 13470 ;; 13471 10.*) 13472 allow_undefined_flag_F77='-undefined dynamic_lookup' 13473 ;; 13474 esac 13475 fi 13476 ;; 13477 esac 13478 lt_int_apple_cc_single_mod=no 13479 output_verbose_link_cmd='echo' 13480 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 13481 lt_int_apple_cc_single_mod=yes 13482 fi 13483 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13484 archive_cmds_F77='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13485 else 13486 archive_cmds_F77='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 13487 fi 13488 module_cmds_F77='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 13489 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 13490 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 13491 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13492 else 13493 archive_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13494 fi 13495 module_expsym_cmds_F77='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 13496 hardcode_direct_F77=no 13497 hardcode_automatic_F77=yes 13498 hardcode_shlibpath_var_F77=unsupported 13499 whole_archive_flag_spec_F77='-all_load $convenience' 13500 link_all_deplibs_F77=yes 13501 else 13502 ld_shlibs_F77=no 13503 fi 13504 ;; 13505 13506 dgux*) 13507 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13508 hardcode_libdir_flag_spec_F77='-L$libdir' 13509 hardcode_shlibpath_var_F77=no 13510 ;; 13511 13512 freebsd1*) 13513 ld_shlibs_F77=no 13514 ;; 13515 13516 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 13517 # support. Future versions do this automatically, but an explicit c++rt0.o 13518 # does not break anything, and helps significantly (at the cost of a little 13519 # extra space). 13520 freebsd2.2*) 13521 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 13522 hardcode_libdir_flag_spec_F77='-R$libdir' 13523 hardcode_direct_F77=yes 13524 hardcode_shlibpath_var_F77=no 13525 ;; 13526 13527 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 13528 freebsd2*) 13529 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13530 hardcode_direct_F77=yes 13531 hardcode_minus_L_F77=yes 13532 hardcode_shlibpath_var_F77=no 13533 ;; 13534 13535 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 13536 freebsd* | kfreebsd*-gnu) 13537 archive_cmds_F77='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 13538 hardcode_libdir_flag_spec_F77='-R$libdir' 13539 hardcode_direct_F77=yes 13540 hardcode_shlibpath_var_F77=no 13541 ;; 13542 13543 hpux9*) 13544 if test "$GCC" = yes; then 13545 archive_cmds_F77='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 13546 else 13547 archive_cmds_F77='$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' 13548 fi 13549 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13550 hardcode_libdir_separator_F77=: 13551 hardcode_direct_F77=yes 13552 13553 # hardcode_minus_L: Not really in the search PATH, 13554 # but as the default location of the library. 13555 hardcode_minus_L_F77=yes 13556 export_dynamic_flag_spec_F77='${wl}-E' 13557 ;; 13558 13559 hpux10* | hpux11*) 13560 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 13561 case "$host_cpu" in 13562 hppa*64*|ia64*) 13563 archive_cmds_F77='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13564 ;; 13565 *) 13566 archive_cmds_F77='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 13567 ;; 13568 esac 13569 else 13570 case "$host_cpu" in 13571 hppa*64*|ia64*) 13572 archive_cmds_F77='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 13573 ;; 13574 *) 13575 archive_cmds_F77='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 13576 ;; 13577 esac 13578 fi 13579 if test "$with_gnu_ld" = no; then 13580 case "$host_cpu" in 13581 hppa*64*) 13582 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13583 hardcode_libdir_flag_spec_ld_F77='+b $libdir' 13584 hardcode_libdir_separator_F77=: 13585 hardcode_direct_F77=no 13586 hardcode_shlibpath_var_F77=no 13587 ;; 13588 ia64*) 13589 hardcode_libdir_flag_spec_F77='-L$libdir' 13590 hardcode_direct_F77=no 13591 hardcode_shlibpath_var_F77=no 13592 13593 # hardcode_minus_L: Not really in the search PATH, 13594 # but as the default location of the library. 13595 hardcode_minus_L_F77=yes 13596 ;; 13597 *) 13598 hardcode_libdir_flag_spec_F77='${wl}+b ${wl}$libdir' 13599 hardcode_libdir_separator_F77=: 13600 hardcode_direct_F77=yes 13601 export_dynamic_flag_spec_F77='${wl}-E' 13602 13603 # hardcode_minus_L: Not really in the search PATH, 13604 # but as the default location of the library. 13605 hardcode_minus_L_F77=yes 13606 ;; 13607 esac 13608 fi 13609 ;; 13610 13611 irix5* | irix6* | nonstopux*) 13612 if test "$GCC" = yes; then 13613 archive_cmds_F77='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13614 else 13615 archive_cmds_F77='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13616 hardcode_libdir_flag_spec_ld_F77='-rpath $libdir' 13617 fi 13618 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13619 hardcode_libdir_separator_F77=: 13620 link_all_deplibs_F77=yes 13621 ;; 13622 13623 netbsd*) 13624 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 13625 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 13626 else 13627 archive_cmds_F77='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 13628 fi 13629 hardcode_libdir_flag_spec_F77='-R$libdir' 13630 hardcode_direct_F77=yes 13631 hardcode_shlibpath_var_F77=no 13632 ;; 13633 13634 newsos6) 13635 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13636 hardcode_direct_F77=yes 13637 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13638 hardcode_libdir_separator_F77=: 13639 hardcode_shlibpath_var_F77=no 13640 ;; 13641 13642 openbsd*) 13643 hardcode_direct_F77=yes 13644 hardcode_shlibpath_var_F77=no 13645 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 13646 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13647 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13648 export_dynamic_flag_spec_F77='${wl}-E' 13649 else 13650 case $host_os in 13651 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 13652 archive_cmds_F77='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 13653 hardcode_libdir_flag_spec_F77='-R$libdir' 13654 ;; 13655 *) 13656 archive_cmds_F77='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 13657 hardcode_libdir_flag_spec_F77='${wl}-rpath,$libdir' 13658 ;; 13659 esac 13660 fi 13661 ;; 13662 13663 os2*) 13664 hardcode_libdir_flag_spec_F77='-L$libdir' 13665 hardcode_minus_L_F77=yes 13666 allow_undefined_flag_F77=unsupported 13667 archive_cmds_F77='$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' 13668 old_archive_From_new_cmds_F77='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 13669 ;; 13670 13671 osf3*) 13672 if test "$GCC" = yes; then 13673 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13674 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13675 else 13676 allow_undefined_flag_F77=' -expect_unresolved \*' 13677 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13678 fi 13679 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13680 hardcode_libdir_separator_F77=: 13681 ;; 13682 13683 osf4* | osf5*) # as osf3* with the addition of -msym flag 13684 if test "$GCC" = yes; then 13685 allow_undefined_flag_F77=' ${wl}-expect_unresolved ${wl}\*' 13686 archive_cmds_F77='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 13687 hardcode_libdir_flag_spec_F77='${wl}-rpath ${wl}$libdir' 13688 else 13689 allow_undefined_flag_F77=' -expect_unresolved \*' 13690 archive_cmds_F77='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 13691 archive_expsym_cmds_F77='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 13692 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 13693 13694 # Both c and cxx compiler support -rpath directly 13695 hardcode_libdir_flag_spec_F77='-rpath $libdir' 13696 fi 13697 hardcode_libdir_separator_F77=: 13698 ;; 13699 13700 sco3.2v5*) 13701 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13702 hardcode_shlibpath_var_F77=no 13703 export_dynamic_flag_spec_F77='${wl}-Bexport' 13704 runpath_var=LD_RUN_PATH 13705 hardcode_runpath_var=yes 13706 ;; 13707 13708 solaris*) 13709 no_undefined_flag_F77=' -z text' 13710 if test "$GCC" = yes; then 13711 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13712 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13713 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 13714 else 13715 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13716 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13717 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13718 fi 13719 hardcode_libdir_flag_spec_F77='-R$libdir' 13720 hardcode_shlibpath_var_F77=no 13721 case $host_os in 13722 solaris2.[0-5] | solaris2.[0-5].*) ;; 13723 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 13724 whole_archive_flag_spec_F77='-z allextract$convenience -z defaultextract' ;; 13725 esac 13726 link_all_deplibs_F77=yes 13727 ;; 13728 13729 sunos4*) 13730 if test "x$host_vendor" = xsequent; then 13731 # Use $CC to link under sequent, because it throws in some extra .o 13732 # files that make .init and .fini sections work. 13733 archive_cmds_F77='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 13734 else 13735 archive_cmds_F77='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 13736 fi 13737 hardcode_libdir_flag_spec_F77='-L$libdir' 13738 hardcode_direct_F77=yes 13739 hardcode_minus_L_F77=yes 13740 hardcode_shlibpath_var_F77=no 13741 ;; 13742 13743 sysv4) 13744 case $host_vendor in 13745 sni) 13746 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13747 hardcode_direct_F77=yes # is this really true??? 13748 ;; 13749 siemens) 13750 ## LD is ld it makes a PLAMLIB 13751 ## CC just makes a GrossModule. 13752 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13753 reload_cmds_F77='$CC -r -o $output$reload_objs' 13754 hardcode_direct_F77=no 13755 ;; 13756 motorola) 13757 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13758 hardcode_direct_F77=no #Motorola manual says yes, but my tests say they lie 13759 ;; 13760 esac 13761 runpath_var='LD_RUN_PATH' 13762 hardcode_shlibpath_var_F77=no 13763 ;; 13764 13765 sysv4.3*) 13766 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13767 hardcode_shlibpath_var_F77=no 13768 export_dynamic_flag_spec_F77='-Bexport' 13769 ;; 13770 13771 sysv4*MP*) 13772 if test -d /usr/nec; then 13773 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13774 hardcode_shlibpath_var_F77=no 13775 runpath_var=LD_RUN_PATH 13776 hardcode_runpath_var=yes 13777 ld_shlibs_F77=yes 13778 fi 13779 ;; 13780 13781 sysv4.2uw2*) 13782 archive_cmds_F77='$LD -G -o $lib $libobjs $deplibs $linker_flags' 13783 hardcode_direct_F77=yes 13784 hardcode_minus_L_F77=no 13785 hardcode_shlibpath_var_F77=no 13786 hardcode_runpath_var=yes 13787 runpath_var=LD_RUN_PATH 13788 ;; 13789 13790 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 13791 no_undefined_flag_F77='${wl}-z ${wl}text' 13792 if test "$GCC" = yes; then 13793 archive_cmds_F77='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13794 else 13795 archive_cmds_F77='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 13796 fi 13797 runpath_var='LD_RUN_PATH' 13798 hardcode_shlibpath_var_F77=no 13799 ;; 13800 13801 sysv5*) 13802 no_undefined_flag_F77=' -z text' 13803 # $CC -shared without GNU ld will not create a library from C++ 13804 # object files and a static libstdc++, better avoid it by now 13805 archive_cmds_F77='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 13806 archive_expsym_cmds_F77='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 13807 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 13808 hardcode_libdir_flag_spec_F77= 13809 hardcode_shlibpath_var_F77=no 13810 runpath_var='LD_RUN_PATH' 13811 ;; 13812 13813 uts4*) 13814 archive_cmds_F77='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 13815 hardcode_libdir_flag_spec_F77='-L$libdir' 13816 hardcode_shlibpath_var_F77=no 13817 ;; 13818 13819 *) 13820 ld_shlibs_F77=no 13821 ;; 13822 esac 13823 fi 13824 13825echo "$as_me:$LINENO: result: $ld_shlibs_F77" >&5 13826echo "${ECHO_T}$ld_shlibs_F77" >&6 13827test "$ld_shlibs_F77" = no && can_build_shared=no 13828 13829variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13830if test "$GCC" = yes; then 13831 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13832fi 13833 13834# 13835# Do we need to explicitly link libc? 13836# 13837case "x$archive_cmds_need_lc_F77" in 13838x|xyes) 13839 # Assume -lc should be added 13840 archive_cmds_need_lc_F77=yes 13841 13842 if test "$enable_shared" = yes && test "$GCC" = yes; then 13843 case $archive_cmds_F77 in 13844 *'~'*) 13845 # FIXME: we may have to deal with multi-command sequences. 13846 ;; 13847 '$CC '*) 13848 # Test whether the compiler implicitly links with -lc since on some 13849 # systems, -lgcc has to come before -lc. If gcc already passes -lc 13850 # to ld, don't add -lc before -lgcc. 13851 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 13852echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 13853 $rm conftest* 13854 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 13855 13856 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13857 (eval $ac_compile) 2>&5 13858 ac_status=$? 13859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13860 (exit $ac_status); } 2>conftest.err; then 13861 soname=conftest 13862 lib=conftest 13863 libobjs=conftest.$ac_objext 13864 deplibs= 13865 wl=$lt_prog_compiler_wl_F77 13866 compiler_flags=-v 13867 linker_flags=-v 13868 verstring= 13869 output_objdir=. 13870 libname=conftest 13871 lt_save_allow_undefined_flag=$allow_undefined_flag_F77 13872 allow_undefined_flag_F77= 13873 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 13874 (eval $archive_cmds_F77 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 13875 ac_status=$? 13876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13877 (exit $ac_status); } 13878 then 13879 archive_cmds_need_lc_F77=no 13880 else 13881 archive_cmds_need_lc_F77=yes 13882 fi 13883 allow_undefined_flag_F77=$lt_save_allow_undefined_flag 13884 else 13885 cat conftest.err 1>&5 13886 fi 13887 $rm conftest* 13888 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_F77" >&5 13889echo "${ECHO_T}$archive_cmds_need_lc_F77" >&6 13890 ;; 13891 esac 13892 fi 13893 ;; 13894esac 13895 13896echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 13897echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 13898library_names_spec= 13899libname_spec='lib$name' 13900soname_spec= 13901shrext_cmds=".so" 13902postinstall_cmds= 13903postuninstall_cmds= 13904finish_cmds= 13905finish_eval= 13906shlibpath_var= 13907shlibpath_overrides_runpath=unknown 13908version_type=none 13909dynamic_linker="$host_os ld.so" 13910sys_lib_dlsearch_path_spec="/lib /usr/lib" 13911if test "$GCC" = yes; then 13912 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 13913 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 13914 # if the path contains ";" then we assume it to be the separator 13915 # otherwise default to the standard path separator (i.e. ":") - it is 13916 # assumed that no part of a normal pathname contains ";" but that should 13917 # okay in the real world where ";" in dirpaths is itself problematic. 13918 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 13919 else 13920 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 13921 fi 13922else 13923 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 13924fi 13925need_lib_prefix=unknown 13926hardcode_into_libs=no 13927 13928# when you set need_version to no, make sure it does not cause -set_version 13929# flags to be left without arguments 13930need_version=unknown 13931 13932case $host_os in 13933aix3*) 13934 version_type=linux 13935 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 13936 shlibpath_var=LIBPATH 13937 13938 # AIX 3 has no versioning support, so we append a major version to the name. 13939 soname_spec='${libname}${release}${shared_ext}$major' 13940 ;; 13941 13942aix4* | aix5*) 13943 version_type=linux 13944 need_lib_prefix=no 13945 need_version=no 13946 hardcode_into_libs=yes 13947 if test "$host_cpu" = ia64; then 13948 # AIX 5 supports IA64 13949 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 13950 shlibpath_var=LD_LIBRARY_PATH 13951 else 13952 # With GCC up to 2.95.x, collect2 would create an import file 13953 # for dependence libraries. The import file would start with 13954 # the line `#! .'. This would cause the generated library to 13955 # depend on `.', always an invalid library. This was fixed in 13956 # development snapshots of GCC prior to 3.0. 13957 case $host_os in 13958 aix4 | aix4.[01] | aix4.[01].*) 13959 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 13960 echo ' yes ' 13961 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 13962 : 13963 else 13964 can_build_shared=no 13965 fi 13966 ;; 13967 esac 13968 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 13969 # soname into executable. Probably we can add versioning support to 13970 # collect2, so additional links can be useful in future. 13971 if test "$aix_use_runtimelinking" = yes; then 13972 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 13973 # instead of lib<name>.a to let people know that these are not 13974 # typical AIX shared libraries. 13975 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13976 else 13977 # We preserve .a as extension for shared libraries through AIX4.2 13978 # and later when we are not doing run time linking. 13979 library_names_spec='${libname}${release}.a $libname.a' 13980 soname_spec='${libname}${release}${shared_ext}$major' 13981 fi 13982 shlibpath_var=LIBPATH 13983 fi 13984 ;; 13985 13986amigaos*) 13987 library_names_spec='$libname.ixlibrary $libname.a' 13988 # Create ${libname}_ixlibrary.a entries in /sys/libs. 13989 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 13990 ;; 13991 13992beos*) 13993 library_names_spec='${libname}${shared_ext}' 13994 dynamic_linker="$host_os ld.so" 13995 shlibpath_var=LIBRARY_PATH 13996 ;; 13997 13998bsdi4*) 13999 version_type=linux 14000 need_version=no 14001 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14002 soname_spec='${libname}${release}${shared_ext}$major' 14003 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 14004 shlibpath_var=LD_LIBRARY_PATH 14005 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 14006 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 14007 # the default ld.so.conf also contains /usr/contrib/lib and 14008 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 14009 # libtool to hard-code these into programs 14010 ;; 14011 14012cygwin* | mingw* | pw32*) 14013 version_type=windows 14014 shrext_cmds=".dll" 14015 need_version=no 14016 need_lib_prefix=no 14017 14018 case $GCC,$host_os in 14019 yes,cygwin* | yes,mingw* | yes,pw32*) 14020 library_names_spec='$libname.dll.a' 14021 # DLL is installed to $(libdir)/../bin by postinstall_cmds 14022 postinstall_cmds='base_file=`basename \${file}`~ 14023 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 14024 dldir=$destdir/`dirname \$dlpath`~ 14025 test -d \$dldir || mkdir -p \$dldir~ 14026 $install_prog $dir/$dlname \$dldir/$dlname' 14027 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 14028 dlpath=$dir/\$dldll~ 14029 $rm \$dlpath' 14030 shlibpath_overrides_runpath=yes 14031 14032 case $host_os in 14033 cygwin*) 14034 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 14035 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14036 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 14037 ;; 14038 mingw*) 14039 # MinGW DLLs use traditional 'lib' prefix 14040 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 14041 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 14042 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 14043 # It is most probably a Windows format PATH printed by 14044 # mingw gcc, but we are running on Cygwin. Gcc prints its search 14045 # path with ; separators, and with drive letters. We can handle the 14046 # drive letters (cygwin fileutils understands them), so leave them, 14047 # especially as we might pass files found there to a mingw objdump, 14048 # which wouldn't understand a cygwinified path. Ahh. 14049 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 14050 else 14051 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 14052 fi 14053 ;; 14054 pw32*) 14055 # pw32 DLLs use 'pw' prefix rather than 'lib' 14056 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 14057 ;; 14058 esac 14059 ;; 14060 14061 *) 14062 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 14063 ;; 14064 esac 14065 dynamic_linker='Win32 ld.exe' 14066 # FIXME: first we should search . and the directory the executable is in 14067 shlibpath_var=PATH 14068 ;; 14069 14070darwin* | rhapsody*) 14071 dynamic_linker="$host_os dyld" 14072 version_type=darwin 14073 need_lib_prefix=no 14074 need_version=no 14075 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 14076 soname_spec='${libname}${release}${major}$shared_ext' 14077 shlibpath_overrides_runpath=yes 14078 shlibpath_var=DYLD_LIBRARY_PATH 14079 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 14080 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 14081 if test "$GCC" = yes; then 14082 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 14083 else 14084 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 14085 fi 14086 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 14087 ;; 14088 14089dgux*) 14090 version_type=linux 14091 need_lib_prefix=no 14092 need_version=no 14093 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 14094 soname_spec='${libname}${release}${shared_ext}$major' 14095 shlibpath_var=LD_LIBRARY_PATH 14096 ;; 14097 14098freebsd1*) 14099 dynamic_linker=no 14100 ;; 14101 14102kfreebsd*-gnu) 14103 version_type=linux 14104 need_lib_prefix=no 14105 need_version=no 14106 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14107 soname_spec='${libname}${release}${shared_ext}$major' 14108 shlibpath_var=LD_LIBRARY_PATH 14109 shlibpath_overrides_runpath=no 14110 hardcode_into_libs=yes 14111 dynamic_linker='GNU ld.so' 14112 ;; 14113 14114freebsd*) 14115 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 14116 version_type=freebsd-$objformat 14117 case $version_type in 14118 freebsd-elf*) 14119 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 14120 need_version=no 14121 need_lib_prefix=no 14122 ;; 14123 freebsd-*) 14124 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 14125 need_version=yes 14126 ;; 14127 esac 14128 shlibpath_var=LD_LIBRARY_PATH 14129 case $host_os in 14130 freebsd2*) 14131 shlibpath_overrides_runpath=yes 14132 ;; 14133 freebsd3.01* | freebsdelf3.01*) 14134 shlibpath_overrides_runpath=yes 14135 hardcode_into_libs=yes 14136 ;; 14137 *) # from 3.2 on 14138 shlibpath_overrides_runpath=no 14139 hardcode_into_libs=yes 14140 ;; 14141 esac 14142 ;; 14143 14144gnu*) 14145 version_type=linux 14146 need_lib_prefix=no 14147 need_version=no 14148 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 14149 soname_spec='${libname}${release}${shared_ext}$major' 14150 shlibpath_var=LD_LIBRARY_PATH 14151 hardcode_into_libs=yes 14152 ;; 14153 14154hpux9* | hpux10* | hpux11*) 14155 # Give a soname corresponding to the major version so that dld.sl refuses to 14156 # link against other versions. 14157 version_type=sunos 14158 need_lib_prefix=no 14159 need_version=no 14160 case "$host_cpu" in 14161 ia64*) 14162 shrext_cmds='.so' 14163 hardcode_into_libs=yes 14164 dynamic_linker="$host_os dld.so" 14165 shlibpath_var=LD_LIBRARY_PATH 14166 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14167 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14168 soname_spec='${libname}${release}${shared_ext}$major' 14169 if test "X$HPUX_IA64_MODE" = X32; then 14170 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 14171 else 14172 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 14173 fi 14174 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14175 ;; 14176 hppa*64*) 14177 shrext_cmds='.sl' 14178 hardcode_into_libs=yes 14179 dynamic_linker="$host_os dld.sl" 14180 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 14181 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 14182 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14183 soname_spec='${libname}${release}${shared_ext}$major' 14184 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 14185 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 14186 ;; 14187 *) 14188 shrext_cmds='.sl' 14189 dynamic_linker="$host_os dld.sl" 14190 shlibpath_var=SHLIB_PATH 14191 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 14192 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14193 soname_spec='${libname}${release}${shared_ext}$major' 14194 ;; 14195 esac 14196 # HP-UX runs *really* slowly unless shared libraries are mode 555. 14197 postinstall_cmds='chmod 555 $lib' 14198 ;; 14199 14200irix5* | irix6* | nonstopux*) 14201 case $host_os in 14202 nonstopux*) version_type=nonstopux ;; 14203 *) 14204 if test "$lt_cv_prog_gnu_ld" = yes; then 14205 version_type=linux 14206 else 14207 version_type=irix 14208 fi ;; 14209 esac 14210 need_lib_prefix=no 14211 need_version=no 14212 soname_spec='${libname}${release}${shared_ext}$major' 14213 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 14214 case $host_os in 14215 irix5* | nonstopux*) 14216 libsuff= shlibsuff= 14217 ;; 14218 *) 14219 case $LD in # libtool.m4 will add one of these switches to LD 14220 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 14221 libsuff= shlibsuff= libmagic=32-bit;; 14222 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 14223 libsuff=32 shlibsuff=N32 libmagic=N32;; 14224 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 14225 libsuff=64 shlibsuff=64 libmagic=64-bit;; 14226 *) libsuff= shlibsuff= libmagic=never-match;; 14227 esac 14228 ;; 14229 esac 14230 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 14231 shlibpath_overrides_runpath=no 14232 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 14233 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 14234 hardcode_into_libs=yes 14235 ;; 14236 14237# No shared lib support for Linux oldld, aout, or coff. 14238linux*oldld* | linux*aout* | linux*coff*) 14239 dynamic_linker=no 14240 ;; 14241 14242# This must be Linux ELF. 14243linux*) 14244 version_type=linux 14245 need_lib_prefix=no 14246 need_version=no 14247 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14248 soname_spec='${libname}${release}${shared_ext}$major' 14249 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 14250 shlibpath_var=LD_LIBRARY_PATH 14251 shlibpath_overrides_runpath=no 14252 # This implies no fast_install, which is unacceptable. 14253 # Some rework will be needed to allow for fast_install 14254 # before this can be enabled. 14255 hardcode_into_libs=yes 14256 14257 # Append ld.so.conf contents to the search path 14258 if test -f /etc/ld.so.conf; then 14259 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 14260 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 14261 fi 14262 14263 # We used to test for /lib/ld.so.1 and disable shared libraries on 14264 # powerpc, because MkLinux only supported shared libraries with the 14265 # GNU dynamic linker. Since this was broken with cross compilers, 14266 # most powerpc-linux boxes support dynamic linking these days and 14267 # people can always --disable-shared, the test was removed, and we 14268 # assume the GNU/Linux dynamic linker is in use. 14269 dynamic_linker='GNU/Linux ld.so' 14270 ;; 14271 14272knetbsd*-gnu) 14273 version_type=linux 14274 need_lib_prefix=no 14275 need_version=no 14276 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14277 soname_spec='${libname}${release}${shared_ext}$major' 14278 shlibpath_var=LD_LIBRARY_PATH 14279 shlibpath_overrides_runpath=no 14280 hardcode_into_libs=yes 14281 dynamic_linker='GNU ld.so' 14282 ;; 14283 14284netbsd*) 14285 version_type=sunos 14286 need_lib_prefix=no 14287 need_version=no 14288 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 14289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14290 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14291 dynamic_linker='NetBSD (a.out) ld.so' 14292 else 14293 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 14294 soname_spec='${libname}${release}${shared_ext}$major' 14295 dynamic_linker='NetBSD ld.elf_so' 14296 fi 14297 shlibpath_var=LD_LIBRARY_PATH 14298 shlibpath_overrides_runpath=yes 14299 hardcode_into_libs=yes 14300 ;; 14301 14302newsos6) 14303 version_type=linux 14304 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14305 shlibpath_var=LD_LIBRARY_PATH 14306 shlibpath_overrides_runpath=yes 14307 ;; 14308 14309nto-qnx*) 14310 version_type=linux 14311 need_lib_prefix=no 14312 need_version=no 14313 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14314 soname_spec='${libname}${release}${shared_ext}$major' 14315 shlibpath_var=LD_LIBRARY_PATH 14316 shlibpath_overrides_runpath=yes 14317 ;; 14318 14319openbsd*) 14320 version_type=sunos 14321 need_lib_prefix=no 14322 need_version=yes 14323 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14324 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 14325 shlibpath_var=LD_LIBRARY_PATH 14326 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 14327 case $host_os in 14328 openbsd2.[89] | openbsd2.[89].*) 14329 shlibpath_overrides_runpath=no 14330 ;; 14331 *) 14332 shlibpath_overrides_runpath=yes 14333 ;; 14334 esac 14335 else 14336 shlibpath_overrides_runpath=yes 14337 fi 14338 ;; 14339 14340os2*) 14341 libname_spec='$name' 14342 shrext_cmds=".dll" 14343 need_lib_prefix=no 14344 library_names_spec='$libname${shared_ext} $libname.a' 14345 dynamic_linker='OS/2 ld.exe' 14346 shlibpath_var=LIBPATH 14347 ;; 14348 14349osf3* | osf4* | osf5*) 14350 version_type=osf 14351 need_lib_prefix=no 14352 need_version=no 14353 soname_spec='${libname}${release}${shared_ext}$major' 14354 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14355 shlibpath_var=LD_LIBRARY_PATH 14356 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 14357 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 14358 ;; 14359 14360sco3.2v5*) 14361 version_type=osf 14362 soname_spec='${libname}${release}${shared_ext}$major' 14363 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14364 shlibpath_var=LD_LIBRARY_PATH 14365 ;; 14366 14367solaris*) 14368 version_type=linux 14369 need_lib_prefix=no 14370 need_version=no 14371 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14372 soname_spec='${libname}${release}${shared_ext}$major' 14373 shlibpath_var=LD_LIBRARY_PATH 14374 shlibpath_overrides_runpath=yes 14375 hardcode_into_libs=yes 14376 # ldd complains unless libraries are executable 14377 postinstall_cmds='chmod +x $lib' 14378 ;; 14379 14380sunos4*) 14381 version_type=sunos 14382 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 14383 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 14384 shlibpath_var=LD_LIBRARY_PATH 14385 shlibpath_overrides_runpath=yes 14386 if test "$with_gnu_ld" = yes; then 14387 need_lib_prefix=no 14388 fi 14389 need_version=yes 14390 ;; 14391 14392sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 14393 version_type=linux 14394 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14395 soname_spec='${libname}${release}${shared_ext}$major' 14396 shlibpath_var=LD_LIBRARY_PATH 14397 case $host_vendor in 14398 sni) 14399 shlibpath_overrides_runpath=no 14400 need_lib_prefix=no 14401 export_dynamic_flag_spec='${wl}-Blargedynsym' 14402 runpath_var=LD_RUN_PATH 14403 ;; 14404 siemens) 14405 need_lib_prefix=no 14406 ;; 14407 motorola) 14408 need_lib_prefix=no 14409 need_version=no 14410 shlibpath_overrides_runpath=no 14411 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 14412 ;; 14413 esac 14414 ;; 14415 14416sysv4*MP*) 14417 if test -d /usr/nec ;then 14418 version_type=linux 14419 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 14420 soname_spec='$libname${shared_ext}.$major' 14421 shlibpath_var=LD_LIBRARY_PATH 14422 fi 14423 ;; 14424 14425uts4*) 14426 version_type=linux 14427 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 14428 soname_spec='${libname}${release}${shared_ext}$major' 14429 shlibpath_var=LD_LIBRARY_PATH 14430 ;; 14431 14432*) 14433 dynamic_linker=no 14434 ;; 14435esac 14436echo "$as_me:$LINENO: result: $dynamic_linker" >&5 14437echo "${ECHO_T}$dynamic_linker" >&6 14438test "$dynamic_linker" = no && can_build_shared=no 14439 14440echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 14441echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 14442hardcode_action_F77= 14443if test -n "$hardcode_libdir_flag_spec_F77" || \ 14444 test -n "$runpath_var F77" || \ 14445 test "X$hardcode_automatic_F77"="Xyes" ; then 14446 14447 # We can hardcode non-existant directories. 14448 if test "$hardcode_direct_F77" != no && 14449 # If the only mechanism to avoid hardcoding is shlibpath_var, we 14450 # have to relink, otherwise we might link with an installed library 14451 # when we should be linking with a yet-to-be-installed one 14452 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, F77)" != no && 14453 test "$hardcode_minus_L_F77" != no; then 14454 # Linking always hardcodes the temporary library directory. 14455 hardcode_action_F77=relink 14456 else 14457 # We can link without hardcoding, and we can hardcode nonexisting dirs. 14458 hardcode_action_F77=immediate 14459 fi 14460else 14461 # We cannot hardcode anything, or else we can only hardcode existing 14462 # directories. 14463 hardcode_action_F77=unsupported 14464fi 14465echo "$as_me:$LINENO: result: $hardcode_action_F77" >&5 14466echo "${ECHO_T}$hardcode_action_F77" >&6 14467 14468if test "$hardcode_action_F77" = relink; then 14469 # Fast installation is not supported 14470 enable_fast_install=no 14471elif test "$shlibpath_overrides_runpath" = yes || 14472 test "$enable_shared" = no; then 14473 # Fast installation is not necessary 14474 enable_fast_install=needless 14475fi 14476 14477striplib= 14478old_striplib= 14479echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 14480echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 14481if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 14482 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 14483 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 14484 echo "$as_me:$LINENO: result: yes" >&5 14485echo "${ECHO_T}yes" >&6 14486else 14487# FIXME - insert some real tests, host_os isn't really good enough 14488 case $host_os in 14489 darwin*) 14490 if test -n "$STRIP" ; then 14491 striplib="$STRIP -x" 14492 echo "$as_me:$LINENO: result: yes" >&5 14493echo "${ECHO_T}yes" >&6 14494 else 14495 echo "$as_me:$LINENO: result: no" >&5 14496echo "${ECHO_T}no" >&6 14497fi 14498 ;; 14499 *) 14500 echo "$as_me:$LINENO: result: no" >&5 14501echo "${ECHO_T}no" >&6 14502 ;; 14503 esac 14504fi 14505 14506 14507 14508# The else clause should only fire when bootstrapping the 14509# libtool distribution, otherwise you forgot to ship ltmain.sh 14510# with your package, and you will get complaints that there are 14511# no rules to generate ltmain.sh. 14512if test -f "$ltmain"; then 14513 # See if we are running on zsh, and set the options which allow our commands through 14514 # without removal of \ escapes. 14515 if test -n "${ZSH_VERSION+set}" ; then 14516 setopt NO_GLOB_SUBST 14517 fi 14518 # Now quote all the things that may contain metacharacters while being 14519 # careful not to overquote the AC_SUBSTed values. We take copies of the 14520 # variables and quote the copies for generation of the libtool script. 14521 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 14522 SED SHELL STRIP \ 14523 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 14524 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 14525 deplibs_check_method reload_flag reload_cmds need_locks \ 14526 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 14527 lt_cv_sys_global_symbol_to_c_name_address \ 14528 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 14529 old_postinstall_cmds old_postuninstall_cmds \ 14530 compiler_F77 \ 14531 CC_F77 \ 14532 LD_F77 \ 14533 lt_prog_compiler_wl_F77 \ 14534 lt_prog_compiler_pic_F77 \ 14535 lt_prog_compiler_static_F77 \ 14536 lt_prog_compiler_no_builtin_flag_F77 \ 14537 export_dynamic_flag_spec_F77 \ 14538 thread_safe_flag_spec_F77 \ 14539 whole_archive_flag_spec_F77 \ 14540 enable_shared_with_static_runtimes_F77 \ 14541 old_archive_cmds_F77 \ 14542 old_archive_from_new_cmds_F77 \ 14543 predep_objects_F77 \ 14544 postdep_objects_F77 \ 14545 predeps_F77 \ 14546 postdeps_F77 \ 14547 compiler_lib_search_path_F77 \ 14548 archive_cmds_F77 \ 14549 archive_expsym_cmds_F77 \ 14550 postinstall_cmds_F77 \ 14551 postuninstall_cmds_F77 \ 14552 old_archive_from_expsyms_cmds_F77 \ 14553 allow_undefined_flag_F77 \ 14554 no_undefined_flag_F77 \ 14555 export_symbols_cmds_F77 \ 14556 hardcode_libdir_flag_spec_F77 \ 14557 hardcode_libdir_flag_spec_ld_F77 \ 14558 hardcode_libdir_separator_F77 \ 14559 hardcode_automatic_F77 \ 14560 module_cmds_F77 \ 14561 module_expsym_cmds_F77 \ 14562 lt_cv_prog_compiler_c_o_F77 \ 14563 exclude_expsyms_F77 \ 14564 include_expsyms_F77; do 14565 14566 case $var in 14567 old_archive_cmds_F77 | \ 14568 old_archive_from_new_cmds_F77 | \ 14569 archive_cmds_F77 | \ 14570 archive_expsym_cmds_F77 | \ 14571 module_cmds_F77 | \ 14572 module_expsym_cmds_F77 | \ 14573 old_archive_from_expsyms_cmds_F77 | \ 14574 export_symbols_cmds_F77 | \ 14575 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 14576 postinstall_cmds | postuninstall_cmds | \ 14577 old_postinstall_cmds | old_postuninstall_cmds | \ 14578 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 14579 # Double-quote double-evaled strings. 14580 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 14581 ;; 14582 *) 14583 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 14584 ;; 14585 esac 14586 done 14587 14588 case $lt_echo in 14589 *'\$0 --fallback-echo"') 14590 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 14591 ;; 14592 esac 14593 14594cfgfile="$ofile" 14595 14596 cat <<__EOF__ >> "$cfgfile" 14597# ### BEGIN LIBTOOL TAG CONFIG: $tagname 14598 14599# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 14600 14601# Shell to use when invoking shell scripts. 14602SHELL=$lt_SHELL 14603 14604# Whether or not to build shared libraries. 14605build_libtool_libs=$enable_shared 14606 14607# Whether or not to build static libraries. 14608build_old_libs=$enable_static 14609 14610# Whether or not to add -lc for building shared libraries. 14611build_libtool_need_lc=$archive_cmds_need_lc_F77 14612 14613# Whether or not to disallow shared libs when runtime libs are static 14614allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_F77 14615 14616# Whether or not to optimize for fast installation. 14617fast_install=$enable_fast_install 14618 14619# The host system. 14620host_alias=$host_alias 14621host=$host 14622 14623# An echo program that does not interpret backslashes. 14624echo=$lt_echo 14625 14626# The archiver. 14627AR=$lt_AR 14628AR_FLAGS=$lt_AR_FLAGS 14629 14630# A C compiler. 14631LTCC=$lt_LTCC 14632 14633# A language-specific compiler. 14634CC=$lt_compiler_F77 14635 14636# Is the compiler the GNU C compiler? 14637with_gcc=$GCC_F77 14638 14639# An ERE matcher. 14640EGREP=$lt_EGREP 14641 14642# The linker used to build libraries. 14643LD=$lt_LD_F77 14644 14645# Whether we need hard or soft links. 14646LN_S=$lt_LN_S 14647 14648# A BSD-compatible nm program. 14649NM=$lt_NM 14650 14651# A symbol stripping program 14652STRIP=$lt_STRIP 14653 14654# Used to examine libraries when file_magic_cmd begins "file" 14655MAGIC_CMD=$MAGIC_CMD 14656 14657# Used on cygwin: DLL creation program. 14658DLLTOOL="$DLLTOOL" 14659 14660# Used on cygwin: object dumper. 14661OBJDUMP="$OBJDUMP" 14662 14663# Used on cygwin: assembler. 14664AS="$AS" 14665 14666# The name of the directory that contains temporary libtool files. 14667objdir=$objdir 14668 14669# How to create reloadable object files. 14670reload_flag=$lt_reload_flag 14671reload_cmds=$lt_reload_cmds 14672 14673# How to pass a linker flag through the compiler. 14674wl=$lt_lt_prog_compiler_wl_F77 14675 14676# Object file suffix (normally "o"). 14677objext="$ac_objext" 14678 14679# Old archive suffix (normally "a"). 14680libext="$libext" 14681 14682# Shared library suffix (normally ".so"). 14683shrext_cmds='$shrext_cmds' 14684 14685# Executable file suffix (normally ""). 14686exeext="$exeext" 14687 14688# Additional compiler flags for building library objects. 14689pic_flag=$lt_lt_prog_compiler_pic_F77 14690pic_mode=$pic_mode 14691 14692# What is the maximum length of a command? 14693max_cmd_len=$lt_cv_sys_max_cmd_len 14694 14695# Does compiler simultaneously support -c and -o options? 14696compiler_c_o=$lt_lt_cv_prog_compiler_c_o_F77 14697 14698# Must we lock files when doing compilation ? 14699need_locks=$lt_need_locks 14700 14701# Do we need the lib prefix for modules? 14702need_lib_prefix=$need_lib_prefix 14703 14704# Do we need a version for libraries? 14705need_version=$need_version 14706 14707# Whether dlopen is supported. 14708dlopen_support=$enable_dlopen 14709 14710# Whether dlopen of programs is supported. 14711dlopen_self=$enable_dlopen_self 14712 14713# Whether dlopen of statically linked programs is supported. 14714dlopen_self_static=$enable_dlopen_self_static 14715 14716# Compiler flag to prevent dynamic linking. 14717link_static_flag=$lt_lt_prog_compiler_static_F77 14718 14719# Compiler flag to turn off builtin functions. 14720no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_F77 14721 14722# Compiler flag to allow reflexive dlopens. 14723export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_F77 14724 14725# Compiler flag to generate shared objects directly from archives. 14726whole_archive_flag_spec=$lt_whole_archive_flag_spec_F77 14727 14728# Compiler flag to generate thread-safe objects. 14729thread_safe_flag_spec=$lt_thread_safe_flag_spec_F77 14730 14731# Library versioning type. 14732version_type=$version_type 14733 14734# Format of library name prefix. 14735libname_spec=$lt_libname_spec 14736 14737# List of archive names. First name is the real one, the rest are links. 14738# The last name is the one that the linker finds with -lNAME. 14739library_names_spec=$lt_library_names_spec 14740 14741# The coded name of the library, if different from the real name. 14742soname_spec=$lt_soname_spec 14743 14744# Commands used to build and install an old-style archive. 14745RANLIB=$lt_RANLIB 14746old_archive_cmds=$lt_old_archive_cmds_F77 14747old_postinstall_cmds=$lt_old_postinstall_cmds 14748old_postuninstall_cmds=$lt_old_postuninstall_cmds 14749 14750# Create an old-style archive from a shared archive. 14751old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_F77 14752 14753# Create a temporary old-style archive to link instead of a shared archive. 14754old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_F77 14755 14756# Commands used to build and install a shared archive. 14757archive_cmds=$lt_archive_cmds_F77 14758archive_expsym_cmds=$lt_archive_expsym_cmds_F77 14759postinstall_cmds=$lt_postinstall_cmds 14760postuninstall_cmds=$lt_postuninstall_cmds 14761 14762# Commands used to build a loadable module (assumed same as above if empty) 14763module_cmds=$lt_module_cmds_F77 14764module_expsym_cmds=$lt_module_expsym_cmds_F77 14765 14766# Commands to strip libraries. 14767old_striplib=$lt_old_striplib 14768striplib=$lt_striplib 14769 14770# Dependencies to place before the objects being linked to create a 14771# shared library. 14772predep_objects=$lt_predep_objects_F77 14773 14774# Dependencies to place after the objects being linked to create a 14775# shared library. 14776postdep_objects=$lt_postdep_objects_F77 14777 14778# Dependencies to place before the objects being linked to create a 14779# shared library. 14780predeps=$lt_predeps_F77 14781 14782# Dependencies to place after the objects being linked to create a 14783# shared library. 14784postdeps=$lt_postdeps_F77 14785 14786# The library search path used internally by the compiler when linking 14787# a shared library. 14788compiler_lib_search_path=$lt_compiler_lib_search_path_F77 14789 14790# Method to check whether dependent libraries are shared objects. 14791deplibs_check_method=$lt_deplibs_check_method 14792 14793# Command to use when deplibs_check_method == file_magic. 14794file_magic_cmd=$lt_file_magic_cmd 14795 14796# Flag that allows shared libraries with undefined symbols to be built. 14797allow_undefined_flag=$lt_allow_undefined_flag_F77 14798 14799# Flag that forces no undefined symbols. 14800no_undefined_flag=$lt_no_undefined_flag_F77 14801 14802# Commands used to finish a libtool library installation in a directory. 14803finish_cmds=$lt_finish_cmds 14804 14805# Same as above, but a single script fragment to be evaled but not shown. 14806finish_eval=$lt_finish_eval 14807 14808# Take the output of nm and produce a listing of raw symbols and C names. 14809global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 14810 14811# Transform the output of nm in a proper C declaration 14812global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 14813 14814# Transform the output of nm in a C name address pair 14815global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 14816 14817# This is the shared library runtime path variable. 14818runpath_var=$runpath_var 14819 14820# This is the shared library path variable. 14821shlibpath_var=$shlibpath_var 14822 14823# Is shlibpath searched before the hard-coded library search path? 14824shlibpath_overrides_runpath=$shlibpath_overrides_runpath 14825 14826# How to hardcode a shared library path into an executable. 14827hardcode_action=$hardcode_action_F77 14828 14829# Whether we should hardcode library paths into libraries. 14830hardcode_into_libs=$hardcode_into_libs 14831 14832# Flag to hardcode \$libdir into a binary during linking. 14833# This must work even if \$libdir does not exist. 14834hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_F77 14835 14836# If ld is used when linking, flag to hardcode \$libdir into 14837# a binary during linking. This must work even if \$libdir does 14838# not exist. 14839hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_F77 14840 14841# Whether we need a single -rpath flag with a separated argument. 14842hardcode_libdir_separator=$lt_hardcode_libdir_separator_F77 14843 14844# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 14845# resulting binary. 14846hardcode_direct=$hardcode_direct_F77 14847 14848# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 14849# resulting binary. 14850hardcode_minus_L=$hardcode_minus_L_F77 14851 14852# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 14853# the resulting binary. 14854hardcode_shlibpath_var=$hardcode_shlibpath_var_F77 14855 14856# Set to yes if building a shared library automatically hardcodes DIR into the library 14857# and all subsequent libraries and executables linked against it. 14858hardcode_automatic=$hardcode_automatic_F77 14859 14860# Variables whose values should be saved in libtool wrapper scripts and 14861# restored at relink time. 14862variables_saved_for_relink="$variables_saved_for_relink" 14863 14864# Whether libtool must link a program against all its dependency libraries. 14865link_all_deplibs=$link_all_deplibs_F77 14866 14867# Compile-time system search path for libraries 14868sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 14869 14870# Run-time system search path for libraries 14871sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 14872 14873# Fix the shell variable \$srcfile for the compiler. 14874fix_srcfile_path="$fix_srcfile_path_F77" 14875 14876# Set to yes if exported symbols are required. 14877always_export_symbols=$always_export_symbols_F77 14878 14879# The commands to list exported symbols. 14880export_symbols_cmds=$lt_export_symbols_cmds_F77 14881 14882# The commands to extract the exported symbol list from a shared archive. 14883extract_expsyms_cmds=$lt_extract_expsyms_cmds 14884 14885# Symbols that should not be listed in the preloaded symbols. 14886exclude_expsyms=$lt_exclude_expsyms_F77 14887 14888# Symbols that must always be exported. 14889include_expsyms=$lt_include_expsyms_F77 14890 14891# ### END LIBTOOL TAG CONFIG: $tagname 14892 14893__EOF__ 14894 14895 14896else 14897 # If there is no Makefile yet, we rely on a make rule to execute 14898 # `config.status --recheck' to rerun these tests and create the 14899 # libtool script then. 14900 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 14901 if test -f "$ltmain_in"; then 14902 test -f Makefile && make "$ltmain" 14903 fi 14904fi 14905 14906 14907ac_ext=c 14908ac_cpp='$CPP $CPPFLAGS' 14909ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14910ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14911ac_compiler_gnu=$ac_cv_c_compiler_gnu 14912 14913CC="$lt_save_CC" 14914 14915 else 14916 tagname="" 14917 fi 14918 ;; 14919 14920 GCJ) 14921 if test -n "$GCJ" && test "X$GCJ" != "Xno"; then 14922 14923 14924 14925# Source file extension for Java test sources. 14926ac_ext=java 14927 14928# Object file extension for compiled Java test sources. 14929objext=o 14930objext_GCJ=$objext 14931 14932# Code to be used in simple compile tests 14933lt_simple_compile_test_code="class foo {}\n" 14934 14935# Code to be used in simple link tests 14936lt_simple_link_test_code='public class conftest { public static void main(String argv) {}; }\n' 14937 14938# ltmain only uses $CC for tagged configurations so make sure $CC is set. 14939 14940# If no C compiler was specified, use CC. 14941LTCC=${LTCC-"$CC"} 14942 14943# Allow CC to be a program name with arguments. 14944compiler=$CC 14945 14946 14947# Allow CC to be a program name with arguments. 14948lt_save_CC="$CC" 14949CC=${GCJ-"gcj"} 14950compiler=$CC 14951compiler_GCJ=$CC 14952 14953# GCJ did not exist at the time GCC didn't implicitly link libc in. 14954archive_cmds_need_lc_GCJ=no 14955 14956## CAVEAT EMPTOR: 14957## There is no encapsulation within the following macros, do not change 14958## the running order or otherwise move them around unless you know exactly 14959## what you are doing... 14960 14961lt_prog_compiler_no_builtin_flag_GCJ= 14962 14963if test "$GCC" = yes; then 14964 lt_prog_compiler_no_builtin_flag_GCJ=' -fno-builtin' 14965 14966 14967echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 14968echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 14969if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 14970 echo $ECHO_N "(cached) $ECHO_C" >&6 14971else 14972 lt_cv_prog_compiler_rtti_exceptions=no 14973 ac_outfile=conftest.$ac_objext 14974 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 14975 lt_compiler_flag="-fno-rtti -fno-exceptions" 14976 # Insert the option either (1) after the last *FLAGS variable, or 14977 # (2) before a word containing "conftest.", or (3) at the end. 14978 # Note that $ac_compile itself does not contain backslashes and begins 14979 # with a dollar sign (not a hyphen), so the echo should work correctly. 14980 # The option is referenced via a variable to avoid confusing sed. 14981 lt_compile=`echo "$ac_compile" | $SED \ 14982 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 14983 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 14984 -e 's:$: $lt_compiler_flag:'` 14985 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 14986 (eval "$lt_compile" 2>conftest.err) 14987 ac_status=$? 14988 cat conftest.err >&5 14989 echo "$as_me:__oline__: \$? = $ac_status" >&5 14990 if (exit $ac_status) && test -s "$ac_outfile"; then 14991 # The compiler can only warn and ignore the option if not recognized 14992 # So say no if there are warnings 14993 if test ! -s conftest.err; then 14994 lt_cv_prog_compiler_rtti_exceptions=yes 14995 fi 14996 fi 14997 $rm conftest* 14998 14999fi 15000echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 15001echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 15002 15003if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 15004 lt_prog_compiler_no_builtin_flag_GCJ="$lt_prog_compiler_no_builtin_flag_GCJ -fno-rtti -fno-exceptions" 15005else 15006 : 15007fi 15008 15009fi 15010 15011lt_prog_compiler_wl_GCJ= 15012lt_prog_compiler_pic_GCJ= 15013lt_prog_compiler_static_GCJ= 15014 15015echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 15016echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 15017 15018 if test "$GCC" = yes; then 15019 lt_prog_compiler_wl_GCJ='-Wl,' 15020 lt_prog_compiler_static_GCJ='-static' 15021 15022 case $host_os in 15023 aix*) 15024 # All AIX code is PIC. 15025 if test "$host_cpu" = ia64; then 15026 # AIX 5 now supports IA64 processor 15027 lt_prog_compiler_static_GCJ='-Bstatic' 15028 fi 15029 ;; 15030 15031 amigaos*) 15032 # FIXME: we need at least 68020 code to build shared libraries, but 15033 # adding the `-m68020' flag to GCC prevents building anything better, 15034 # like `-m68040'. 15035 lt_prog_compiler_pic_GCJ='-m68020 -resident32 -malways-restore-a4' 15036 ;; 15037 15038 beos* | cygwin* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15039 # PIC is the default for these OSes. 15040 ;; 15041 15042 mingw* | pw32* | os2*) 15043 # This hack is so that the source file can tell whether it is being 15044 # built for inclusion in a dll (and should export symbols for example). 15045 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15046 ;; 15047 15048 darwin* | rhapsody*) 15049 # PIC is the default on this platform 15050 # Common symbols not allowed in MH_DYLIB files 15051 lt_prog_compiler_pic_GCJ='-fno-common' 15052 ;; 15053 15054 msdosdjgpp*) 15055 # Just because we use GCC doesn't mean we suddenly get shared libraries 15056 # on systems that don't support them. 15057 lt_prog_compiler_can_build_shared_GCJ=no 15058 enable_shared=no 15059 ;; 15060 15061 sysv4*MP*) 15062 if test -d /usr/nec; then 15063 lt_prog_compiler_pic_GCJ=-Kconform_pic 15064 fi 15065 ;; 15066 15067 hpux*) 15068 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15069 # not for PA HP-UX. 15070 case "$host_cpu" in 15071 hppa*64*|ia64*) 15072 # +Z the default 15073 ;; 15074 *) 15075 lt_prog_compiler_pic_GCJ='-fPIC' 15076 ;; 15077 esac 15078 ;; 15079 15080 *) 15081 lt_prog_compiler_pic_GCJ='-fPIC' 15082 ;; 15083 esac 15084 else 15085 # PORTME Check for flag to pass linker flags through the system compiler. 15086 case $host_os in 15087 aix*) 15088 lt_prog_compiler_wl_GCJ='-Wl,' 15089 if test "$host_cpu" = ia64; then 15090 # AIX 5 now supports IA64 processor 15091 lt_prog_compiler_static_GCJ='-Bstatic' 15092 else 15093 lt_prog_compiler_static_GCJ='-bnso -bI:/lib/syscalls.exp' 15094 fi 15095 ;; 15096 15097 mingw* | pw32* | os2*) 15098 # This hack is so that the source file can tell whether it is being 15099 # built for inclusion in a dll (and should export symbols for example). 15100 lt_prog_compiler_pic_GCJ='-DDLL_EXPORT' 15101 ;; 15102 15103 hpux9* | hpux10* | hpux11*) 15104 lt_prog_compiler_wl_GCJ='-Wl,' 15105 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 15106 # not for PA HP-UX. 15107 case "$host_cpu" in 15108 hppa*64*|ia64*) 15109 # +Z the default 15110 ;; 15111 *) 15112 lt_prog_compiler_pic_GCJ='+Z' 15113 ;; 15114 esac 15115 # Is there a better lt_prog_compiler_static that works with the bundled CC? 15116 lt_prog_compiler_static_GCJ='${wl}-a ${wl}archive' 15117 ;; 15118 15119 irix5* | irix6* | nonstopux*) 15120 lt_prog_compiler_wl_GCJ='-Wl,' 15121 # PIC (with -KPIC) is the default. 15122 lt_prog_compiler_static_GCJ='-non_shared' 15123 ;; 15124 15125 newsos6) 15126 lt_prog_compiler_pic_GCJ='-KPIC' 15127 lt_prog_compiler_static_GCJ='-Bstatic' 15128 ;; 15129 15130 linux*) 15131 case $CC in 15132 icc* | ecc*) 15133 lt_prog_compiler_wl_GCJ='-Wl,' 15134 lt_prog_compiler_pic_GCJ='-KPIC' 15135 lt_prog_compiler_static_GCJ='-static' 15136 ;; 15137 ccc*) 15138 lt_prog_compiler_wl_GCJ='-Wl,' 15139 # All Alpha code is PIC. 15140 lt_prog_compiler_static_GCJ='-non_shared' 15141 ;; 15142 esac 15143 ;; 15144 15145 osf3* | osf4* | osf5*) 15146 lt_prog_compiler_wl_GCJ='-Wl,' 15147 # All OSF/1 code is PIC. 15148 lt_prog_compiler_static_GCJ='-non_shared' 15149 ;; 15150 15151 sco3.2v5*) 15152 lt_prog_compiler_pic_GCJ='-Kpic' 15153 lt_prog_compiler_static_GCJ='-dn' 15154 ;; 15155 15156 solaris*) 15157 lt_prog_compiler_wl_GCJ='-Wl,' 15158 lt_prog_compiler_pic_GCJ='-KPIC' 15159 lt_prog_compiler_static_GCJ='-Bstatic' 15160 ;; 15161 15162 sunos4*) 15163 lt_prog_compiler_wl_GCJ='-Qoption ld ' 15164 lt_prog_compiler_pic_GCJ='-PIC' 15165 lt_prog_compiler_static_GCJ='-Bstatic' 15166 ;; 15167 15168 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 15169 lt_prog_compiler_wl_GCJ='-Wl,' 15170 lt_prog_compiler_pic_GCJ='-KPIC' 15171 lt_prog_compiler_static_GCJ='-Bstatic' 15172 ;; 15173 15174 sysv4*MP*) 15175 if test -d /usr/nec ;then 15176 lt_prog_compiler_pic_GCJ='-Kconform_pic' 15177 lt_prog_compiler_static_GCJ='-Bstatic' 15178 fi 15179 ;; 15180 15181 uts4*) 15182 lt_prog_compiler_pic_GCJ='-pic' 15183 lt_prog_compiler_static_GCJ='-Bstatic' 15184 ;; 15185 15186 *) 15187 lt_prog_compiler_can_build_shared_GCJ=no 15188 ;; 15189 esac 15190 fi 15191 15192echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_GCJ" >&5 15193echo "${ECHO_T}$lt_prog_compiler_pic_GCJ" >&6 15194 15195# 15196# Check to make sure the PIC flag actually works. 15197# 15198if test -n "$lt_prog_compiler_pic_GCJ"; then 15199 15200echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works" >&5 15201echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_GCJ works... $ECHO_C" >&6 15202if test "${lt_prog_compiler_pic_works_GCJ+set}" = set; then 15203 echo $ECHO_N "(cached) $ECHO_C" >&6 15204else 15205 lt_prog_compiler_pic_works_GCJ=no 15206 ac_outfile=conftest.$ac_objext 15207 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15208 lt_compiler_flag="$lt_prog_compiler_pic_GCJ" 15209 # Insert the option either (1) after the last *FLAGS variable, or 15210 # (2) before a word containing "conftest.", or (3) at the end. 15211 # Note that $ac_compile itself does not contain backslashes and begins 15212 # with a dollar sign (not a hyphen), so the echo should work correctly. 15213 # The option is referenced via a variable to avoid confusing sed. 15214 lt_compile=`echo "$ac_compile" | $SED \ 15215 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15216 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15217 -e 's:$: $lt_compiler_flag:'` 15218 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 15219 (eval "$lt_compile" 2>conftest.err) 15220 ac_status=$? 15221 cat conftest.err >&5 15222 echo "$as_me:__oline__: \$? = $ac_status" >&5 15223 if (exit $ac_status) && test -s "$ac_outfile"; then 15224 # The compiler can only warn and ignore the option if not recognized 15225 # So say no if there are warnings 15226 if test ! -s conftest.err; then 15227 lt_prog_compiler_pic_works_GCJ=yes 15228 fi 15229 fi 15230 $rm conftest* 15231 15232fi 15233echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_GCJ" >&5 15234echo "${ECHO_T}$lt_prog_compiler_pic_works_GCJ" >&6 15235 15236if test x"$lt_prog_compiler_pic_works_GCJ" = xyes; then 15237 case $lt_prog_compiler_pic_GCJ in 15238 "" | " "*) ;; 15239 *) lt_prog_compiler_pic_GCJ=" $lt_prog_compiler_pic_GCJ" ;; 15240 esac 15241else 15242 lt_prog_compiler_pic_GCJ= 15243 lt_prog_compiler_can_build_shared_GCJ=no 15244fi 15245 15246fi 15247case "$host_os" in 15248 # For platforms which do not support PIC, -DPIC is meaningless: 15249 *djgpp*) 15250 lt_prog_compiler_pic_GCJ= 15251 ;; 15252 *) 15253 lt_prog_compiler_pic_GCJ="$lt_prog_compiler_pic_GCJ" 15254 ;; 15255esac 15256 15257echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 15258echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 15259if test "${lt_cv_prog_compiler_c_o_GCJ+set}" = set; then 15260 echo $ECHO_N "(cached) $ECHO_C" >&6 15261else 15262 lt_cv_prog_compiler_c_o_GCJ=no 15263 $rm -r conftest 2>/dev/null 15264 mkdir conftest 15265 cd conftest 15266 mkdir out 15267 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 15268 15269 lt_compiler_flag="-o out/conftest2.$ac_objext" 15270 # Insert the option either (1) after the last *FLAGS variable, or 15271 # (2) before a word containing "conftest.", or (3) at the end. 15272 # Note that $ac_compile itself does not contain backslashes and begins 15273 # with a dollar sign (not a hyphen), so the echo should work correctly. 15274 lt_compile=`echo "$ac_compile" | $SED \ 15275 -e 's:.*FLAGS}? :&$lt_compiler_flag :; t' \ 15276 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15277 -e 's:$: $lt_compiler_flag:'` 15278 (eval echo "\"\$as_me:__oline__: $lt_compile\"" >&5) 15279 (eval "$lt_compile" 2>out/conftest.err) 15280 ac_status=$? 15281 cat out/conftest.err >&5 15282 echo "$as_me:__oline__: \$? = $ac_status" >&5 15283 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15284 then 15285 # The compiler can only warn and ignore the option if not recognized 15286 # So say no if there are warnings 15287 if test ! -s out/conftest.err; then 15288 lt_cv_prog_compiler_c_o_GCJ=yes 15289 fi 15290 fi 15291 chmod u+w . 15292 $rm conftest* 15293 # SGI C++ compiler will create directory out/ii_files/ for 15294 # template instantiation 15295 test -d out/ii_files && $rm out/ii_files/* && rmdir out/ii_files 15296 $rm out/* && rmdir out 15297 cd .. 15298 rmdir conftest 15299 $rm conftest* 15300 15301fi 15302echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_GCJ" >&5 15303echo "${ECHO_T}$lt_cv_prog_compiler_c_o_GCJ" >&6 15304 15305 15306hard_links="nottested" 15307if test "$lt_cv_prog_compiler_c_o_GCJ" = no && test "$need_locks" != no; then 15308 # do not overwrite the value of need_locks provided by the user 15309 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 15310echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 15311 hard_links=yes 15312 $rm conftest* 15313 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15314 touch conftest.a 15315 ln conftest.a conftest.b 2>&5 || hard_links=no 15316 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15317 echo "$as_me:$LINENO: result: $hard_links" >&5 15318echo "${ECHO_T}$hard_links" >&6 15319 if test "$hard_links" = no; then 15320 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 15321echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 15322 need_locks=warn 15323 fi 15324else 15325 need_locks=no 15326fi 15327 15328echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15329echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 15330 15331 runpath_var= 15332 allow_undefined_flag_GCJ= 15333 enable_shared_with_static_runtimes_GCJ=no 15334 archive_cmds_GCJ= 15335 archive_expsym_cmds_GCJ= 15336 old_archive_From_new_cmds_GCJ= 15337 old_archive_from_expsyms_cmds_GCJ= 15338 export_dynamic_flag_spec_GCJ= 15339 whole_archive_flag_spec_GCJ= 15340 thread_safe_flag_spec_GCJ= 15341 hardcode_libdir_flag_spec_GCJ= 15342 hardcode_libdir_flag_spec_ld_GCJ= 15343 hardcode_libdir_separator_GCJ= 15344 hardcode_direct_GCJ=no 15345 hardcode_minus_L_GCJ=no 15346 hardcode_shlibpath_var_GCJ=unsupported 15347 link_all_deplibs_GCJ=unknown 15348 hardcode_automatic_GCJ=no 15349 module_cmds_GCJ= 15350 module_expsym_cmds_GCJ= 15351 always_export_symbols_GCJ=no 15352 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15353 # include_expsyms should be a list of space-separated symbols to be *always* 15354 # included in the symbol list 15355 include_expsyms_GCJ= 15356 # exclude_expsyms can be an extended regexp of symbols to exclude 15357 # it will be wrapped by ` (' and `)$', so one must not match beginning or 15358 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 15359 # as well as any symbol that contains `d'. 15360 exclude_expsyms_GCJ="_GLOBAL_OFFSET_TABLE_" 15361 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 15362 # platforms (ab)use it in PIC code, but their linkers get confused if 15363 # the symbol is explicitly referenced. Since portable code cannot 15364 # rely on this symbol name, it's probably fine to never include it in 15365 # preloaded symbol tables. 15366 extract_expsyms_cmds= 15367 15368 case $host_os in 15369 cygwin* | mingw* | pw32*) 15370 # FIXME: the MSVC++ port hasn't been tested in a loooong time 15371 # When not using gcc, we currently assume that we are using 15372 # Microsoft Visual C++. 15373 if test "$GCC" != yes; then 15374 with_gnu_ld=no 15375 fi 15376 ;; 15377 openbsd*) 15378 with_gnu_ld=no 15379 ;; 15380 esac 15381 15382 ld_shlibs_GCJ=yes 15383 if test "$with_gnu_ld" = yes; then 15384 # If archive_cmds runs LD, not CC, wlarc should be empty 15385 wlarc='${wl}' 15386 15387 # See if GNU ld supports shared libraries. 15388 case $host_os in 15389 aix3* | aix4* | aix5*) 15390 # On AIX/PPC, the GNU linker is very broken 15391 if test "$host_cpu" != ia64; then 15392 ld_shlibs_GCJ=no 15393 cat <<EOF 1>&2 15394 15395*** Warning: the GNU linker, at least up to release 2.9.1, is reported 15396*** to be unable to reliably create shared libraries on AIX. 15397*** Therefore, libtool is disabling shared libraries support. If you 15398*** really care for shared libraries, you may want to modify your PATH 15399*** so that a non-GNU linker is found, and then restart. 15400 15401EOF 15402 fi 15403 ;; 15404 15405 amigaos*) 15406 archive_cmds_GCJ='$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)' 15407 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15408 hardcode_minus_L_GCJ=yes 15409 15410 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 15411 # that the semantics of dynamic libraries on AmigaOS, at least up 15412 # to version 4, is to share data among multiple programs linked 15413 # with the same dynamic library. Since this doesn't match the 15414 # behavior of shared libraries on other platforms, we can't use 15415 # them. 15416 ld_shlibs_GCJ=no 15417 ;; 15418 15419 beos*) 15420 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15421 allow_undefined_flag_GCJ=unsupported 15422 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15423 # support --undefined. This deserves some investigation. FIXME 15424 archive_cmds_GCJ='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15425 else 15426 ld_shlibs_GCJ=no 15427 fi 15428 ;; 15429 15430 cygwin* | mingw* | pw32*) 15431 # _LT_AC_TAGVAR(hardcode_libdir_flag_spec, GCJ) is actually meaningless, 15432 # as there is no search path for DLLs. 15433 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15434 allow_undefined_flag_GCJ=unsupported 15435 always_export_symbols_GCJ=no 15436 enable_shared_with_static_runtimes_GCJ=yes 15437 export_symbols_cmds_GCJ='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGS] /s/.* \([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW] /s/.* //'\'' | sort | uniq > $export_symbols' 15438 15439 if $LD --help 2>&1 | grep 'auto-import' > /dev/null; then 15440 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15441 # If the export-symbols file already is a .def file (1st line 15442 # is EXPORTS), use it as is; otherwise, prepend... 15443 archive_expsym_cmds_GCJ='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 15444 cp $export_symbols $output_objdir/$soname.def; 15445 else 15446 echo EXPORTS > $output_objdir/$soname.def; 15447 cat $export_symbols >> $output_objdir/$soname.def; 15448 fi~ 15449 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--image-base=0x10000000 ${wl}--out-implib,$lib' 15450 else 15451 ld_shlibs=no 15452 fi 15453 ;; 15454 15455 netbsd*) 15456 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15457 archive_cmds_GCJ='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 15458 wlarc= 15459 else 15460 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15461 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15462 fi 15463 ;; 15464 15465 solaris* | sysv5*) 15466 if $LD -v 2>&1 | grep 'BFD 2\.8' > /dev/null; then 15467 ld_shlibs_GCJ=no 15468 cat <<EOF 1>&2 15469 15470*** Warning: The releases 2.8.* of the GNU linker cannot reliably 15471*** create shared libraries on Solaris systems. Therefore, libtool 15472*** is disabling shared libraries support. We urge you to upgrade GNU 15473*** binutils to release 2.9.1 or newer. Another option is to modify 15474*** your PATH or compiler configuration so that the native linker is 15475*** used, and then restart. 15476 15477EOF 15478 elif $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15479 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15480 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15481 else 15482 ld_shlibs_GCJ=no 15483 fi 15484 ;; 15485 15486 sunos4*) 15487 archive_cmds_GCJ='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15488 wlarc= 15489 hardcode_direct_GCJ=yes 15490 hardcode_shlibpath_var_GCJ=no 15491 ;; 15492 15493 linux*) 15494 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15495 tmp_archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15496 archive_cmds_GCJ="$tmp_archive_cmds" 15497 supports_anon_versioning=no 15498 case `$LD -v 2>/dev/null` in 15499 *\ 01.* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 15500 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 15501 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 15502 *\ 2.11.*) ;; # other 2.11 versions 15503 *) supports_anon_versioning=yes ;; 15504 esac 15505 if test $supports_anon_versioning = yes; then 15506 archive_expsym_cmds_GCJ='$echo "{ global:" > $output_objdir/$libname.ver~ 15507cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 15508$echo "local: *; };" >> $output_objdir/$libname.ver~ 15509 $CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 15510 else 15511 archive_expsym_cmds_GCJ="$tmp_archive_cmds" 15512 fi 15513 else 15514 ld_shlibs_GCJ=no 15515 fi 15516 ;; 15517 15518 *) 15519 if $LD --help 2>&1 | grep ': supported targets:.* elf' > /dev/null; then 15520 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 15521 archive_expsym_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 15522 else 15523 ld_shlibs_GCJ=no 15524 fi 15525 ;; 15526 esac 15527 15528 if test "$ld_shlibs_GCJ" = yes; then 15529 runpath_var=LD_RUN_PATH 15530 hardcode_libdir_flag_spec_GCJ='${wl}--rpath ${wl}$libdir' 15531 export_dynamic_flag_spec_GCJ='${wl}--export-dynamic' 15532 # ancient GNU ld didn't support --whole-archive et. al. 15533 if $LD --help 2>&1 | grep 'no-whole-archive' > /dev/null; then 15534 whole_archive_flag_spec_GCJ="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 15535 else 15536 whole_archive_flag_spec_GCJ= 15537 fi 15538 fi 15539 else 15540 # PORTME fill in a description of your system's linker (not GNU ld) 15541 case $host_os in 15542 aix3*) 15543 allow_undefined_flag_GCJ=unsupported 15544 always_export_symbols_GCJ=yes 15545 archive_expsym_cmds_GCJ='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 15546 # Note: this linker hardcodes the directories in LIBPATH if there 15547 # are no directories specified by -L. 15548 hardcode_minus_L_GCJ=yes 15549 if test "$GCC" = yes && test -z "$link_static_flag"; then 15550 # Neither direct hardcoding nor static linking is supported with a 15551 # broken collect2. 15552 hardcode_direct_GCJ=unsupported 15553 fi 15554 ;; 15555 15556 aix4* | aix5*) 15557 if test "$host_cpu" = ia64; then 15558 # On IA64, the linker does run time linking by default, so we don't 15559 # have to do anything special. 15560 aix_use_runtimelinking=no 15561 exp_sym_flag='-Bexport' 15562 no_entry_flag="" 15563 else 15564 # If we're using GNU nm, then we don't want the "-C" option. 15565 # -C means demangle to AIX nm, but means don't demangle with GNU nm 15566 if $NM -V 2>&1 | grep 'GNU' > /dev/null; then 15567 export_symbols_cmds_GCJ='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15568 else 15569 export_symbols_cmds_GCJ='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$2 == "T") || (\$2 == "D") || (\$2 == "B")) && (substr(\$3,1,1) != ".")) { print \$3 } }'\'' | sort -u > $export_symbols' 15570 fi 15571 aix_use_runtimelinking=no 15572 15573 # Test if we are trying to use run time linking or normal 15574 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15575 # need to do runtime linking. 15576 case $host_os in aix4.[23]|aix4.[23].*|aix5*) 15577 for ld_flag in $LDFLAGS; do 15578 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 15579 aix_use_runtimelinking=yes 15580 break 15581 fi 15582 done 15583 esac 15584 15585 exp_sym_flag='-bexport' 15586 no_entry_flag='-bnoentry' 15587 fi 15588 15589 # When large executables or shared objects are built, AIX ld can 15590 # have problems creating the table of contents. If linking a library 15591 # or program results in "error TOC overflow" add -mminimal-toc to 15592 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15593 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15594 15595 archive_cmds_GCJ='' 15596 hardcode_direct_GCJ=yes 15597 hardcode_libdir_separator_GCJ=':' 15598 link_all_deplibs_GCJ=yes 15599 15600 if test "$GCC" = yes; then 15601 case $host_os in aix4.012|aix4.012.*) 15602 # We only want to do this on AIX 4.2 and lower, the check 15603 # below for broken collect2 doesn't work under 4.3+ 15604 collect2name=`${CC} -print-prog-name=collect2` 15605 if test -f "$collect2name" && \ 15606 strings "$collect2name" | grep resolve_lib_name >/dev/null 15607 then 15608 # We have reworked collect2 15609 hardcode_direct_GCJ=yes 15610 else 15611 # We have old collect2 15612 hardcode_direct_GCJ=unsupported 15613 # It fails to find uninstalled libraries when the uninstalled 15614 # path is not listed in the libpath. Setting hardcode_minus_L 15615 # to unsupported forces relinking 15616 hardcode_minus_L_GCJ=yes 15617 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15618 hardcode_libdir_separator_GCJ= 15619 fi 15620 esac 15621 shared_flag='-shared' 15622 else 15623 # not using gcc 15624 if test "$host_cpu" = ia64; then 15625 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15626 # chokes on -Wl,-G. The following line is correct: 15627 shared_flag='-G' 15628 else 15629 if test "$aix_use_runtimelinking" = yes; then 15630 shared_flag='${wl}-G' 15631 else 15632 shared_flag='${wl}-bM:SRE' 15633 fi 15634 fi 15635 fi 15636 15637 # It seems that -bexpall does not export symbols beginning with 15638 # underscore (_), so it is better to generate a list of symbols to export. 15639 always_export_symbols_GCJ=yes 15640 if test "$aix_use_runtimelinking" = yes; then 15641 # Warning - without using the other runtime loading flags (-brtl), 15642 # -berok will link without error, but may produce a broken library. 15643 allow_undefined_flag_GCJ='-berok' 15644 # Determine the default libpath from the value encoded in an empty executable. 15645 cat >conftest.$ac_ext <<_ACEOF 15646/* confdefs.h. */ 15647_ACEOF 15648cat confdefs.h >>conftest.$ac_ext 15649cat >>conftest.$ac_ext <<_ACEOF 15650/* end confdefs.h. */ 15651 15652int 15653main () 15654{ 15655 15656 ; 15657 return 0; 15658} 15659_ACEOF 15660rm -f conftest.$ac_objext conftest$ac_exeext 15661if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15662 (eval $ac_link) 2>conftest.er1 15663 ac_status=$? 15664 grep -v '^ *+' conftest.er1 >conftest.err 15665 rm -f conftest.er1 15666 cat conftest.err >&5 15667 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15668 (exit $ac_status); } && 15669 { ac_try='test -z "$ac_c_werror_flag" 15670 || test ! -s conftest.err' 15671 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15672 (eval $ac_try) 2>&5 15673 ac_status=$? 15674 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15675 (exit $ac_status); }; } && 15676 { ac_try='test -s conftest$ac_exeext' 15677 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15678 (eval $ac_try) 2>&5 15679 ac_status=$? 15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15681 (exit $ac_status); }; }; then 15682 15683aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15684}'` 15685# Check for a 64-bit object if we didn't find anything. 15686if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15687}'`; fi 15688else 15689 echo "$as_me: failed program was:" >&5 15690sed 's/^/| /' conftest.$ac_ext >&5 15691 15692fi 15693rm -f conftest.err conftest.$ac_objext \ 15694 conftest$ac_exeext conftest.$ac_ext 15695if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15696 15697 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15698 archive_expsym_cmds_GCJ="\$CC"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then echo "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols $shared_flag" 15699 else 15700 if test "$host_cpu" = ia64; then 15701 hardcode_libdir_flag_spec_GCJ='${wl}-R $libdir:/usr/lib:/lib' 15702 allow_undefined_flag_GCJ="-z nodefs" 15703 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$no_entry_flag \${wl}$exp_sym_flag:\$export_symbols" 15704 else 15705 # Determine the default libpath from the value encoded in an empty executable. 15706 cat >conftest.$ac_ext <<_ACEOF 15707/* confdefs.h. */ 15708_ACEOF 15709cat confdefs.h >>conftest.$ac_ext 15710cat >>conftest.$ac_ext <<_ACEOF 15711/* end confdefs.h. */ 15712 15713int 15714main () 15715{ 15716 15717 ; 15718 return 0; 15719} 15720_ACEOF 15721rm -f conftest.$ac_objext conftest$ac_exeext 15722if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15723 (eval $ac_link) 2>conftest.er1 15724 ac_status=$? 15725 grep -v '^ *+' conftest.er1 >conftest.err 15726 rm -f conftest.er1 15727 cat conftest.err >&5 15728 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15729 (exit $ac_status); } && 15730 { ac_try='test -z "$ac_c_werror_flag" 15731 || test ! -s conftest.err' 15732 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15733 (eval $ac_try) 2>&5 15734 ac_status=$? 15735 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15736 (exit $ac_status); }; } && 15737 { ac_try='test -s conftest$ac_exeext' 15738 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15739 (eval $ac_try) 2>&5 15740 ac_status=$? 15741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15742 (exit $ac_status); }; }; then 15743 15744aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15745}'` 15746# Check for a 64-bit object if we didn't find anything. 15747if test -z "$aix_libpath"; then aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e '/Import File Strings/,/^$/ { /^0/ { s/^0 *\(.*\)$/\1/; p; } 15748}'`; fi 15749else 15750 echo "$as_me: failed program was:" >&5 15751sed 's/^/| /' conftest.$ac_ext >&5 15752 15753fi 15754rm -f conftest.err conftest.$ac_objext \ 15755 conftest$ac_exeext conftest.$ac_ext 15756if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 15757 15758 hardcode_libdir_flag_spec_GCJ='${wl}-blibpath:$libdir:'"$aix_libpath" 15759 # Warning - without using the other run time loading flags, 15760 # -berok will link without error, but may produce a broken library. 15761 no_undefined_flag_GCJ=' ${wl}-bernotok' 15762 allow_undefined_flag_GCJ=' ${wl}-berok' 15763 # -bexpall does not export symbols beginning with underscore (_) 15764 always_export_symbols_GCJ=yes 15765 # Exported symbols can be pulled into shared objects from archives 15766 whole_archive_flag_spec_GCJ=' ' 15767 archive_cmds_need_lc_GCJ=yes 15768 # This is similar to how AIX traditionally builds it's shared libraries. 15769 archive_expsym_cmds_GCJ="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs $compiler_flags ${wl}-bE:$export_symbols ${wl}-bnoentry${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 15770 fi 15771 fi 15772 ;; 15773 15774 amigaos*) 15775 archive_cmds_GCJ='$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)' 15776 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15777 hardcode_minus_L_GCJ=yes 15778 # see comment about different semantics on the GNU ld section 15779 ld_shlibs_GCJ=no 15780 ;; 15781 15782 bsdi4*) 15783 export_dynamic_flag_spec_GCJ=-rdynamic 15784 ;; 15785 15786 cygwin* | mingw* | pw32*) 15787 # When not using gcc, we currently assume that we are using 15788 # Microsoft Visual C++. 15789 # hardcode_libdir_flag_spec is actually meaningless, as there is 15790 # no search path for DLLs. 15791 hardcode_libdir_flag_spec_GCJ=' ' 15792 allow_undefined_flag_GCJ=unsupported 15793 # Tell ltmain to make .lib files, not .a files. 15794 libext=lib 15795 # Tell ltmain to make .dll files, not .so files. 15796 shrext_cmds=".dll" 15797 # FIXME: Setting linknames here is a bad hack. 15798 archive_cmds_GCJ='$CC -o $lib $libobjs $compiler_flags `echo "$deplibs" | $SED -e '\''s/ -lc$//'\''` -link -dll~linknames=' 15799 # The linker will automatically build a .lib file if we build a DLL. 15800 old_archive_From_new_cmds_GCJ='true' 15801 # FIXME: Should let the user specify the lib program. 15802 old_archive_cmds_GCJ='lib /OUT:$oldlib$oldobjs$old_deplibs' 15803 fix_srcfile_path='`cygpath -w "$srcfile"`' 15804 enable_shared_with_static_runtimes_GCJ=yes 15805 ;; 15806 15807 darwin* | rhapsody*) 15808 if test "$GXX" = yes ; then 15809 archive_cmds_need_lc_GCJ=no 15810 case "$host_os" in 15811 rhapsody* | darwin1.[012]) 15812 allow_undefined_flag_GCJ='-undefined suppress' 15813 ;; 15814 *) # Darwin 1.3 on 15815 if test -z ${MACOSX_DEPLOYMENT_TARGET} ; then 15816 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15817 else 15818 case ${MACOSX_DEPLOYMENT_TARGET} in 15819 10.[012]) 15820 allow_undefined_flag_GCJ='-flat_namespace -undefined suppress' 15821 ;; 15822 10.*) 15823 allow_undefined_flag_GCJ='-undefined dynamic_lookup' 15824 ;; 15825 esac 15826 fi 15827 ;; 15828 esac 15829 lt_int_apple_cc_single_mod=no 15830 output_verbose_link_cmd='echo' 15831 if $CC -dumpspecs 2>&1 | grep 'single_module' >/dev/null ; then 15832 lt_int_apple_cc_single_mod=yes 15833 fi 15834 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15835 archive_cmds_GCJ='$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15836 else 15837 archive_cmds_GCJ='$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 15838 fi 15839 module_cmds_GCJ='$CC ${wl}-bind_at_load $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 15840 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin ld's 15841 if test "X$lt_int_apple_cc_single_mod" = Xyes ; then 15842 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib -single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15843 else 15844 archive_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -r ${wl}-bind_at_load -keep_private_externs -nostdlib -o ${lib}-master.o $libobjs~$CC -dynamiclib $allow_undefined_flag -o $lib ${lib}-master.o $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15845 fi 15846 module_expsym_cmds_GCJ='sed -e "s,#.*,," -e "s,^[ ]*,," -e "s,^\(..*\),_&," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 15847 hardcode_direct_GCJ=no 15848 hardcode_automatic_GCJ=yes 15849 hardcode_shlibpath_var_GCJ=unsupported 15850 whole_archive_flag_spec_GCJ='-all_load $convenience' 15851 link_all_deplibs_GCJ=yes 15852 else 15853 ld_shlibs_GCJ=no 15854 fi 15855 ;; 15856 15857 dgux*) 15858 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15859 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15860 hardcode_shlibpath_var_GCJ=no 15861 ;; 15862 15863 freebsd1*) 15864 ld_shlibs_GCJ=no 15865 ;; 15866 15867 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 15868 # support. Future versions do this automatically, but an explicit c++rt0.o 15869 # does not break anything, and helps significantly (at the cost of a little 15870 # extra space). 15871 freebsd2.2*) 15872 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 15873 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15874 hardcode_direct_GCJ=yes 15875 hardcode_shlibpath_var_GCJ=no 15876 ;; 15877 15878 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 15879 freebsd2*) 15880 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 15881 hardcode_direct_GCJ=yes 15882 hardcode_minus_L_GCJ=yes 15883 hardcode_shlibpath_var_GCJ=no 15884 ;; 15885 15886 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 15887 freebsd* | kfreebsd*-gnu) 15888 archive_cmds_GCJ='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 15889 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15890 hardcode_direct_GCJ=yes 15891 hardcode_shlibpath_var_GCJ=no 15892 ;; 15893 15894 hpux9*) 15895 if test "$GCC" = yes; then 15896 archive_cmds_GCJ='$rm $output_objdir/$soname~$CC -shared -fPIC ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib' 15897 else 15898 archive_cmds_GCJ='$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' 15899 fi 15900 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15901 hardcode_libdir_separator_GCJ=: 15902 hardcode_direct_GCJ=yes 15903 15904 # hardcode_minus_L: Not really in the search PATH, 15905 # but as the default location of the library. 15906 hardcode_minus_L_GCJ=yes 15907 export_dynamic_flag_spec_GCJ='${wl}-E' 15908 ;; 15909 15910 hpux10* | hpux11*) 15911 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 15912 case "$host_cpu" in 15913 hppa*64*|ia64*) 15914 archive_cmds_GCJ='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 15915 ;; 15916 *) 15917 archive_cmds_GCJ='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 15918 ;; 15919 esac 15920 else 15921 case "$host_cpu" in 15922 hppa*64*|ia64*) 15923 archive_cmds_GCJ='$LD -b +h $soname -o $lib $libobjs $deplibs $linker_flags' 15924 ;; 15925 *) 15926 archive_cmds_GCJ='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 15927 ;; 15928 esac 15929 fi 15930 if test "$with_gnu_ld" = no; then 15931 case "$host_cpu" in 15932 hppa*64*) 15933 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15934 hardcode_libdir_flag_spec_ld_GCJ='+b $libdir' 15935 hardcode_libdir_separator_GCJ=: 15936 hardcode_direct_GCJ=no 15937 hardcode_shlibpath_var_GCJ=no 15938 ;; 15939 ia64*) 15940 hardcode_libdir_flag_spec_GCJ='-L$libdir' 15941 hardcode_direct_GCJ=no 15942 hardcode_shlibpath_var_GCJ=no 15943 15944 # hardcode_minus_L: Not really in the search PATH, 15945 # but as the default location of the library. 15946 hardcode_minus_L_GCJ=yes 15947 ;; 15948 *) 15949 hardcode_libdir_flag_spec_GCJ='${wl}+b ${wl}$libdir' 15950 hardcode_libdir_separator_GCJ=: 15951 hardcode_direct_GCJ=yes 15952 export_dynamic_flag_spec_GCJ='${wl}-E' 15953 15954 # hardcode_minus_L: Not really in the search PATH, 15955 # but as the default location of the library. 15956 hardcode_minus_L_GCJ=yes 15957 ;; 15958 esac 15959 fi 15960 ;; 15961 15962 irix5* | irix6* | nonstopux*) 15963 if test "$GCC" = yes; then 15964 archive_cmds_GCJ='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 15965 else 15966 archive_cmds_GCJ='$LD -shared $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 15967 hardcode_libdir_flag_spec_ld_GCJ='-rpath $libdir' 15968 fi 15969 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15970 hardcode_libdir_separator_GCJ=: 15971 link_all_deplibs_GCJ=yes 15972 ;; 15973 15974 netbsd*) 15975 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 15976 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 15977 else 15978 archive_cmds_GCJ='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 15979 fi 15980 hardcode_libdir_flag_spec_GCJ='-R$libdir' 15981 hardcode_direct_GCJ=yes 15982 hardcode_shlibpath_var_GCJ=no 15983 ;; 15984 15985 newsos6) 15986 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 15987 hardcode_direct_GCJ=yes 15988 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 15989 hardcode_libdir_separator_GCJ=: 15990 hardcode_shlibpath_var_GCJ=no 15991 ;; 15992 15993 openbsd*) 15994 hardcode_direct_GCJ=yes 15995 hardcode_shlibpath_var_GCJ=no 15996 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 15997 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 15998 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 15999 export_dynamic_flag_spec_GCJ='${wl}-E' 16000 else 16001 case $host_os in 16002 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 16003 archive_cmds_GCJ='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 16004 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16005 ;; 16006 *) 16007 archive_cmds_GCJ='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 16008 hardcode_libdir_flag_spec_GCJ='${wl}-rpath,$libdir' 16009 ;; 16010 esac 16011 fi 16012 ;; 16013 16014 os2*) 16015 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16016 hardcode_minus_L_GCJ=yes 16017 allow_undefined_flag_GCJ=unsupported 16018 archive_cmds_GCJ='$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' 16019 old_archive_From_new_cmds_GCJ='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 16020 ;; 16021 16022 osf3*) 16023 if test "$GCC" = yes; then 16024 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16025 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16026 else 16027 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16028 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16029 fi 16030 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16031 hardcode_libdir_separator_GCJ=: 16032 ;; 16033 16034 osf4* | osf5*) # as osf3* with the addition of -msym flag 16035 if test "$GCC" = yes; then 16036 allow_undefined_flag_GCJ=' ${wl}-expect_unresolved ${wl}\*' 16037 archive_cmds_GCJ='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && echo ${wl}-set_version ${wl}$verstring` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 16038 hardcode_libdir_flag_spec_GCJ='${wl}-rpath ${wl}$libdir' 16039 else 16040 allow_undefined_flag_GCJ=' -expect_unresolved \*' 16041 archive_cmds_GCJ='$LD -shared${allow_undefined_flag} $libobjs $deplibs $linker_flags -msym -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${output_objdir}/so_locations -o $lib' 16042 archive_expsym_cmds_GCJ='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; echo "-hidden">> $lib.exp~ 16043 $LD -shared${allow_undefined_flag} -input $lib.exp $linker_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && echo -set_version $verstring` -update_registry ${objdir}/so_locations -o $lib~$rm $lib.exp' 16044 16045 # Both c and cxx compiler support -rpath directly 16046 hardcode_libdir_flag_spec_GCJ='-rpath $libdir' 16047 fi 16048 hardcode_libdir_separator_GCJ=: 16049 ;; 16050 16051 sco3.2v5*) 16052 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16053 hardcode_shlibpath_var_GCJ=no 16054 export_dynamic_flag_spec_GCJ='${wl}-Bexport' 16055 runpath_var=LD_RUN_PATH 16056 hardcode_runpath_var=yes 16057 ;; 16058 16059 solaris*) 16060 no_undefined_flag_GCJ=' -z text' 16061 if test "$GCC" = yes; then 16062 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16063 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16064 $CC -shared ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$rm $lib.exp' 16065 else 16066 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16067 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16068 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16069 fi 16070 hardcode_libdir_flag_spec_GCJ='-R$libdir' 16071 hardcode_shlibpath_var_GCJ=no 16072 case $host_os in 16073 solaris2.[0-5] | solaris2.[0-5].*) ;; 16074 *) # Supported since Solaris 2.6 (maybe 2.5.1?) 16075 whole_archive_flag_spec_GCJ='-z allextract$convenience -z defaultextract' ;; 16076 esac 16077 link_all_deplibs_GCJ=yes 16078 ;; 16079 16080 sunos4*) 16081 if test "x$host_vendor" = xsequent; then 16082 # Use $CC to link under sequent, because it throws in some extra .o 16083 # files that make .init and .fini sections work. 16084 archive_cmds_GCJ='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 16085 else 16086 archive_cmds_GCJ='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 16087 fi 16088 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16089 hardcode_direct_GCJ=yes 16090 hardcode_minus_L_GCJ=yes 16091 hardcode_shlibpath_var_GCJ=no 16092 ;; 16093 16094 sysv4) 16095 case $host_vendor in 16096 sni) 16097 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16098 hardcode_direct_GCJ=yes # is this really true??? 16099 ;; 16100 siemens) 16101 ## LD is ld it makes a PLAMLIB 16102 ## CC just makes a GrossModule. 16103 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16104 reload_cmds_GCJ='$CC -r -o $output$reload_objs' 16105 hardcode_direct_GCJ=no 16106 ;; 16107 motorola) 16108 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16109 hardcode_direct_GCJ=no #Motorola manual says yes, but my tests say they lie 16110 ;; 16111 esac 16112 runpath_var='LD_RUN_PATH' 16113 hardcode_shlibpath_var_GCJ=no 16114 ;; 16115 16116 sysv4.3*) 16117 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16118 hardcode_shlibpath_var_GCJ=no 16119 export_dynamic_flag_spec_GCJ='-Bexport' 16120 ;; 16121 16122 sysv4*MP*) 16123 if test -d /usr/nec; then 16124 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16125 hardcode_shlibpath_var_GCJ=no 16126 runpath_var=LD_RUN_PATH 16127 hardcode_runpath_var=yes 16128 ld_shlibs_GCJ=yes 16129 fi 16130 ;; 16131 16132 sysv4.2uw2*) 16133 archive_cmds_GCJ='$LD -G -o $lib $libobjs $deplibs $linker_flags' 16134 hardcode_direct_GCJ=yes 16135 hardcode_minus_L_GCJ=no 16136 hardcode_shlibpath_var_GCJ=no 16137 hardcode_runpath_var=yes 16138 runpath_var=LD_RUN_PATH 16139 ;; 16140 16141 sysv5OpenUNIX8* | sysv5UnixWare7* | sysv5uw[78]* | unixware7*) 16142 no_undefined_flag_GCJ='${wl}-z ${wl}text' 16143 if test "$GCC" = yes; then 16144 archive_cmds_GCJ='$CC -shared ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16145 else 16146 archive_cmds_GCJ='$CC -G ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 16147 fi 16148 runpath_var='LD_RUN_PATH' 16149 hardcode_shlibpath_var_GCJ=no 16150 ;; 16151 16152 sysv5*) 16153 no_undefined_flag_GCJ=' -z text' 16154 # $CC -shared without GNU ld will not create a library from C++ 16155 # object files and a static libstdc++, better avoid it by now 16156 archive_cmds_GCJ='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 16157 archive_expsym_cmds_GCJ='$echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~$echo "local: *; };" >> $lib.exp~ 16158 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$rm $lib.exp' 16159 hardcode_libdir_flag_spec_GCJ= 16160 hardcode_shlibpath_var_GCJ=no 16161 runpath_var='LD_RUN_PATH' 16162 ;; 16163 16164 uts4*) 16165 archive_cmds_GCJ='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 16166 hardcode_libdir_flag_spec_GCJ='-L$libdir' 16167 hardcode_shlibpath_var_GCJ=no 16168 ;; 16169 16170 *) 16171 ld_shlibs_GCJ=no 16172 ;; 16173 esac 16174 fi 16175 16176echo "$as_me:$LINENO: result: $ld_shlibs_GCJ" >&5 16177echo "${ECHO_T}$ld_shlibs_GCJ" >&6 16178test "$ld_shlibs_GCJ" = no && can_build_shared=no 16179 16180variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16181if test "$GCC" = yes; then 16182 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16183fi 16184 16185# 16186# Do we need to explicitly link libc? 16187# 16188case "x$archive_cmds_need_lc_GCJ" in 16189x|xyes) 16190 # Assume -lc should be added 16191 archive_cmds_need_lc_GCJ=yes 16192 16193 if test "$enable_shared" = yes && test "$GCC" = yes; then 16194 case $archive_cmds_GCJ in 16195 *'~'*) 16196 # FIXME: we may have to deal with multi-command sequences. 16197 ;; 16198 '$CC '*) 16199 # Test whether the compiler implicitly links with -lc since on some 16200 # systems, -lgcc has to come before -lc. If gcc already passes -lc 16201 # to ld, don't add -lc before -lgcc. 16202 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 16203echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 16204 $rm conftest* 16205 printf "$lt_simple_compile_test_code" > conftest.$ac_ext 16206 16207 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16208 (eval $ac_compile) 2>&5 16209 ac_status=$? 16210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16211 (exit $ac_status); } 2>conftest.err; then 16212 soname=conftest 16213 lib=conftest 16214 libobjs=conftest.$ac_objext 16215 deplibs= 16216 wl=$lt_prog_compiler_wl_GCJ 16217 compiler_flags=-v 16218 linker_flags=-v 16219 verstring= 16220 output_objdir=. 16221 libname=conftest 16222 lt_save_allow_undefined_flag=$allow_undefined_flag_GCJ 16223 allow_undefined_flag_GCJ= 16224 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1\"") >&5 16225 (eval $archive_cmds_GCJ 2\>\&1 \| grep \" -lc \" \>/dev/null 2\>\&1) 2>&5 16226 ac_status=$? 16227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16228 (exit $ac_status); } 16229 then 16230 archive_cmds_need_lc_GCJ=no 16231 else 16232 archive_cmds_need_lc_GCJ=yes 16233 fi 16234 allow_undefined_flag_GCJ=$lt_save_allow_undefined_flag 16235 else 16236 cat conftest.err 1>&5 16237 fi 16238 $rm conftest* 16239 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_GCJ" >&5 16240echo "${ECHO_T}$archive_cmds_need_lc_GCJ" >&6 16241 ;; 16242 esac 16243 fi 16244 ;; 16245esac 16246 16247echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 16248echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 16249library_names_spec= 16250libname_spec='lib$name' 16251soname_spec= 16252shrext_cmds=".so" 16253postinstall_cmds= 16254postuninstall_cmds= 16255finish_cmds= 16256finish_eval= 16257shlibpath_var= 16258shlibpath_overrides_runpath=unknown 16259version_type=none 16260dynamic_linker="$host_os ld.so" 16261sys_lib_dlsearch_path_spec="/lib /usr/lib" 16262if test "$GCC" = yes; then 16263 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16264 if echo "$sys_lib_search_path_spec" | grep ';' >/dev/null ; then 16265 # if the path contains ";" then we assume it to be the separator 16266 # otherwise default to the standard path separator (i.e. ":") - it is 16267 # assumed that no part of a normal pathname contains ";" but that should 16268 # okay in the real world where ";" in dirpaths is itself problematic. 16269 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16270 else 16271 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16272 fi 16273else 16274 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16275fi 16276need_lib_prefix=unknown 16277hardcode_into_libs=no 16278 16279# when you set need_version to no, make sure it does not cause -set_version 16280# flags to be left without arguments 16281need_version=unknown 16282 16283case $host_os in 16284aix3*) 16285 version_type=linux 16286 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 16287 shlibpath_var=LIBPATH 16288 16289 # AIX 3 has no versioning support, so we append a major version to the name. 16290 soname_spec='${libname}${release}${shared_ext}$major' 16291 ;; 16292 16293aix4* | aix5*) 16294 version_type=linux 16295 need_lib_prefix=no 16296 need_version=no 16297 hardcode_into_libs=yes 16298 if test "$host_cpu" = ia64; then 16299 # AIX 5 supports IA64 16300 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 16301 shlibpath_var=LD_LIBRARY_PATH 16302 else 16303 # With GCC up to 2.95.x, collect2 would create an import file 16304 # for dependence libraries. The import file would start with 16305 # the line `#! .'. This would cause the generated library to 16306 # depend on `.', always an invalid library. This was fixed in 16307 # development snapshots of GCC prior to 3.0. 16308 case $host_os in 16309 aix4 | aix4.[01] | aix4.[01].*) 16310 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16311 echo ' yes ' 16312 echo '#endif'; } | ${CC} -E - | grep yes > /dev/null; then 16313 : 16314 else 16315 can_build_shared=no 16316 fi 16317 ;; 16318 esac 16319 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 16320 # soname into executable. Probably we can add versioning support to 16321 # collect2, so additional links can be useful in future. 16322 if test "$aix_use_runtimelinking" = yes; then 16323 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16324 # instead of lib<name>.a to let people know that these are not 16325 # typical AIX shared libraries. 16326 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16327 else 16328 # We preserve .a as extension for shared libraries through AIX4.2 16329 # and later when we are not doing run time linking. 16330 library_names_spec='${libname}${release}.a $libname.a' 16331 soname_spec='${libname}${release}${shared_ext}$major' 16332 fi 16333 shlibpath_var=LIBPATH 16334 fi 16335 ;; 16336 16337amigaos*) 16338 library_names_spec='$libname.ixlibrary $libname.a' 16339 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16340 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`$echo "X$lib" | $Xsed -e '\''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' 16341 ;; 16342 16343beos*) 16344 library_names_spec='${libname}${shared_ext}' 16345 dynamic_linker="$host_os ld.so" 16346 shlibpath_var=LIBRARY_PATH 16347 ;; 16348 16349bsdi4*) 16350 version_type=linux 16351 need_version=no 16352 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16353 soname_spec='${libname}${release}${shared_ext}$major' 16354 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16355 shlibpath_var=LD_LIBRARY_PATH 16356 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16357 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16358 # the default ld.so.conf also contains /usr/contrib/lib and 16359 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16360 # libtool to hard-code these into programs 16361 ;; 16362 16363cygwin* | mingw* | pw32*) 16364 version_type=windows 16365 shrext_cmds=".dll" 16366 need_version=no 16367 need_lib_prefix=no 16368 16369 case $GCC,$host_os in 16370 yes,cygwin* | yes,mingw* | yes,pw32*) 16371 library_names_spec='$libname.dll.a' 16372 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16373 postinstall_cmds='base_file=`basename \${file}`~ 16374 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i;echo \$dlname'\''`~ 16375 dldir=$destdir/`dirname \$dlpath`~ 16376 test -d \$dldir || mkdir -p \$dldir~ 16377 $install_prog $dir/$dlname \$dldir/$dlname' 16378 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16379 dlpath=$dir/\$dldll~ 16380 $rm \$dlpath' 16381 shlibpath_overrides_runpath=yes 16382 16383 case $host_os in 16384 cygwin*) 16385 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16386 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16387 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 16388 ;; 16389 mingw*) 16390 # MinGW DLLs use traditional 'lib' prefix 16391 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 16392 sys_lib_search_path_spec=`$CC -print-search-dirs | grep "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 16393 if echo "$sys_lib_search_path_spec" | grep ';[c-zC-Z]:/' >/dev/null; then 16394 # It is most probably a Windows format PATH printed by 16395 # mingw gcc, but we are running on Cygwin. Gcc prints its search 16396 # path with ; separators, and with drive letters. We can handle the 16397 # drive letters (cygwin fileutils understands them), so leave them, 16398 # especially as we might pass files found there to a mingw objdump, 16399 # which wouldn't understand a cygwinified path. Ahh. 16400 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16401 else 16402 sys_lib_search_path_spec=`echo "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16403 fi 16404 ;; 16405 pw32*) 16406 # pw32 DLLs use 'pw' prefix rather than 'lib' 16407 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/./-/g'`${versuffix}${shared_ext}' 16408 ;; 16409 esac 16410 ;; 16411 16412 *) 16413 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 16414 ;; 16415 esac 16416 dynamic_linker='Win32 ld.exe' 16417 # FIXME: first we should search . and the directory the executable is in 16418 shlibpath_var=PATH 16419 ;; 16420 16421darwin* | rhapsody*) 16422 dynamic_linker="$host_os dyld" 16423 version_type=darwin 16424 need_lib_prefix=no 16425 need_version=no 16426 library_names_spec='${libname}${release}${versuffix}$shared_ext ${libname}${release}${major}$shared_ext ${libname}$shared_ext' 16427 soname_spec='${libname}${release}${major}$shared_ext' 16428 shlibpath_overrides_runpath=yes 16429 shlibpath_var=DYLD_LIBRARY_PATH 16430 shrext_cmds='$(test .$module = .yes && echo .so || echo .dylib)' 16431 # Apple's gcc prints 'gcc -print-search-dirs' doesn't operate the same. 16432 if test "$GCC" = yes; then 16433 sys_lib_search_path_spec=`$CC -print-search-dirs | tr "\n" "$PATH_SEPARATOR" | sed -e 's/libraries:/@libraries:/' | tr "@" "\n" | grep "^libraries:" | sed -e "s/^libraries://" -e "s,=/,/,g" -e "s,$PATH_SEPARATOR, ,g" -e "s,.*,& /lib /usr/lib /usr/local/lib,g"` 16434 else 16435 sys_lib_search_path_spec='/lib /usr/lib /usr/local/lib' 16436 fi 16437 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16438 ;; 16439 16440dgux*) 16441 version_type=linux 16442 need_lib_prefix=no 16443 need_version=no 16444 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 16445 soname_spec='${libname}${release}${shared_ext}$major' 16446 shlibpath_var=LD_LIBRARY_PATH 16447 ;; 16448 16449freebsd1*) 16450 dynamic_linker=no 16451 ;; 16452 16453kfreebsd*-gnu) 16454 version_type=linux 16455 need_lib_prefix=no 16456 need_version=no 16457 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16458 soname_spec='${libname}${release}${shared_ext}$major' 16459 shlibpath_var=LD_LIBRARY_PATH 16460 shlibpath_overrides_runpath=no 16461 hardcode_into_libs=yes 16462 dynamic_linker='GNU ld.so' 16463 ;; 16464 16465freebsd*) 16466 objformat=`test -x /usr/bin/objformat && /usr/bin/objformat || echo aout` 16467 version_type=freebsd-$objformat 16468 case $version_type in 16469 freebsd-elf*) 16470 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 16471 need_version=no 16472 need_lib_prefix=no 16473 ;; 16474 freebsd-*) 16475 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 16476 need_version=yes 16477 ;; 16478 esac 16479 shlibpath_var=LD_LIBRARY_PATH 16480 case $host_os in 16481 freebsd2*) 16482 shlibpath_overrides_runpath=yes 16483 ;; 16484 freebsd3.01* | freebsdelf3.01*) 16485 shlibpath_overrides_runpath=yes 16486 hardcode_into_libs=yes 16487 ;; 16488 *) # from 3.2 on 16489 shlibpath_overrides_runpath=no 16490 hardcode_into_libs=yes 16491 ;; 16492 esac 16493 ;; 16494 16495gnu*) 16496 version_type=linux 16497 need_lib_prefix=no 16498 need_version=no 16499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 16500 soname_spec='${libname}${release}${shared_ext}$major' 16501 shlibpath_var=LD_LIBRARY_PATH 16502 hardcode_into_libs=yes 16503 ;; 16504 16505hpux9* | hpux10* | hpux11*) 16506 # Give a soname corresponding to the major version so that dld.sl refuses to 16507 # link against other versions. 16508 version_type=sunos 16509 need_lib_prefix=no 16510 need_version=no 16511 case "$host_cpu" in 16512 ia64*) 16513 shrext_cmds='.so' 16514 hardcode_into_libs=yes 16515 dynamic_linker="$host_os dld.so" 16516 shlibpath_var=LD_LIBRARY_PATH 16517 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16518 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16519 soname_spec='${libname}${release}${shared_ext}$major' 16520 if test "X$HPUX_IA64_MODE" = X32; then 16521 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16522 else 16523 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16524 fi 16525 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16526 ;; 16527 hppa*64*) 16528 shrext_cmds='.sl' 16529 hardcode_into_libs=yes 16530 dynamic_linker="$host_os dld.sl" 16531 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16532 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16533 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16534 soname_spec='${libname}${release}${shared_ext}$major' 16535 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16536 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16537 ;; 16538 *) 16539 shrext_cmds='.sl' 16540 dynamic_linker="$host_os dld.sl" 16541 shlibpath_var=SHLIB_PATH 16542 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16543 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16544 soname_spec='${libname}${release}${shared_ext}$major' 16545 ;; 16546 esac 16547 # HP-UX runs *really* slowly unless shared libraries are mode 555. 16548 postinstall_cmds='chmod 555 $lib' 16549 ;; 16550 16551irix5* | irix6* | nonstopux*) 16552 case $host_os in 16553 nonstopux*) version_type=nonstopux ;; 16554 *) 16555 if test "$lt_cv_prog_gnu_ld" = yes; then 16556 version_type=linux 16557 else 16558 version_type=irix 16559 fi ;; 16560 esac 16561 need_lib_prefix=no 16562 need_version=no 16563 soname_spec='${libname}${release}${shared_ext}$major' 16564 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 16565 case $host_os in 16566 irix5* | nonstopux*) 16567 libsuff= shlibsuff= 16568 ;; 16569 *) 16570 case $LD in # libtool.m4 will add one of these switches to LD 16571 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16572 libsuff= shlibsuff= libmagic=32-bit;; 16573 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16574 libsuff=32 shlibsuff=N32 libmagic=N32;; 16575 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16576 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16577 *) libsuff= shlibsuff= libmagic=never-match;; 16578 esac 16579 ;; 16580 esac 16581 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16582 shlibpath_overrides_runpath=no 16583 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 16584 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 16585 hardcode_into_libs=yes 16586 ;; 16587 16588# No shared lib support for Linux oldld, aout, or coff. 16589linux*oldld* | linux*aout* | linux*coff*) 16590 dynamic_linker=no 16591 ;; 16592 16593# This must be Linux ELF. 16594linux*) 16595 version_type=linux 16596 need_lib_prefix=no 16597 need_version=no 16598 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16599 soname_spec='${libname}${release}${shared_ext}$major' 16600 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16601 shlibpath_var=LD_LIBRARY_PATH 16602 shlibpath_overrides_runpath=no 16603 # This implies no fast_install, which is unacceptable. 16604 # Some rework will be needed to allow for fast_install 16605 # before this can be enabled. 16606 hardcode_into_libs=yes 16607 16608 # Append ld.so.conf contents to the search path 16609 if test -f /etc/ld.so.conf; then 16610 lt_ld_extra=`$SED -e 's/:,\t/ /g;s/=^=*$//;s/=^= * / /g' /etc/ld.so.conf | tr '\n' ' '` 16611 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16612 fi 16613 16614 # We used to test for /lib/ld.so.1 and disable shared libraries on 16615 # powerpc, because MkLinux only supported shared libraries with the 16616 # GNU dynamic linker. Since this was broken with cross compilers, 16617 # most powerpc-linux boxes support dynamic linking these days and 16618 # people can always --disable-shared, the test was removed, and we 16619 # assume the GNU/Linux dynamic linker is in use. 16620 dynamic_linker='GNU/Linux ld.so' 16621 ;; 16622 16623knetbsd*-gnu) 16624 version_type=linux 16625 need_lib_prefix=no 16626 need_version=no 16627 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16628 soname_spec='${libname}${release}${shared_ext}$major' 16629 shlibpath_var=LD_LIBRARY_PATH 16630 shlibpath_overrides_runpath=no 16631 hardcode_into_libs=yes 16632 dynamic_linker='GNU ld.so' 16633 ;; 16634 16635netbsd*) 16636 version_type=sunos 16637 need_lib_prefix=no 16638 need_version=no 16639 if echo __ELF__ | $CC -E - | grep __ELF__ >/dev/null; then 16640 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16641 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16642 dynamic_linker='NetBSD (a.out) ld.so' 16643 else 16644 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 16645 soname_spec='${libname}${release}${shared_ext}$major' 16646 dynamic_linker='NetBSD ld.elf_so' 16647 fi 16648 shlibpath_var=LD_LIBRARY_PATH 16649 shlibpath_overrides_runpath=yes 16650 hardcode_into_libs=yes 16651 ;; 16652 16653newsos6) 16654 version_type=linux 16655 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16656 shlibpath_var=LD_LIBRARY_PATH 16657 shlibpath_overrides_runpath=yes 16658 ;; 16659 16660nto-qnx*) 16661 version_type=linux 16662 need_lib_prefix=no 16663 need_version=no 16664 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16665 soname_spec='${libname}${release}${shared_ext}$major' 16666 shlibpath_var=LD_LIBRARY_PATH 16667 shlibpath_overrides_runpath=yes 16668 ;; 16669 16670openbsd*) 16671 version_type=sunos 16672 need_lib_prefix=no 16673 need_version=yes 16674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16676 shlibpath_var=LD_LIBRARY_PATH 16677 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 16678 case $host_os in 16679 openbsd2.[89] | openbsd2.[89].*) 16680 shlibpath_overrides_runpath=no 16681 ;; 16682 *) 16683 shlibpath_overrides_runpath=yes 16684 ;; 16685 esac 16686 else 16687 shlibpath_overrides_runpath=yes 16688 fi 16689 ;; 16690 16691os2*) 16692 libname_spec='$name' 16693 shrext_cmds=".dll" 16694 need_lib_prefix=no 16695 library_names_spec='$libname${shared_ext} $libname.a' 16696 dynamic_linker='OS/2 ld.exe' 16697 shlibpath_var=LIBPATH 16698 ;; 16699 16700osf3* | osf4* | osf5*) 16701 version_type=osf 16702 need_lib_prefix=no 16703 need_version=no 16704 soname_spec='${libname}${release}${shared_ext}$major' 16705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16706 shlibpath_var=LD_LIBRARY_PATH 16707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 16709 ;; 16710 16711sco3.2v5*) 16712 version_type=osf 16713 soname_spec='${libname}${release}${shared_ext}$major' 16714 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16715 shlibpath_var=LD_LIBRARY_PATH 16716 ;; 16717 16718solaris*) 16719 version_type=linux 16720 need_lib_prefix=no 16721 need_version=no 16722 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16723 soname_spec='${libname}${release}${shared_ext}$major' 16724 shlibpath_var=LD_LIBRARY_PATH 16725 shlibpath_overrides_runpath=yes 16726 hardcode_into_libs=yes 16727 # ldd complains unless libraries are executable 16728 postinstall_cmds='chmod +x $lib' 16729 ;; 16730 16731sunos4*) 16732 version_type=sunos 16733 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 16734 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16735 shlibpath_var=LD_LIBRARY_PATH 16736 shlibpath_overrides_runpath=yes 16737 if test "$with_gnu_ld" = yes; then 16738 need_lib_prefix=no 16739 fi 16740 need_version=yes 16741 ;; 16742 16743sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 16744 version_type=linux 16745 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16746 soname_spec='${libname}${release}${shared_ext}$major' 16747 shlibpath_var=LD_LIBRARY_PATH 16748 case $host_vendor in 16749 sni) 16750 shlibpath_overrides_runpath=no 16751 need_lib_prefix=no 16752 export_dynamic_flag_spec='${wl}-Blargedynsym' 16753 runpath_var=LD_RUN_PATH 16754 ;; 16755 siemens) 16756 need_lib_prefix=no 16757 ;; 16758 motorola) 16759 need_lib_prefix=no 16760 need_version=no 16761 shlibpath_overrides_runpath=no 16762 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16763 ;; 16764 esac 16765 ;; 16766 16767sysv4*MP*) 16768 if test -d /usr/nec ;then 16769 version_type=linux 16770 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 16771 soname_spec='$libname${shared_ext}.$major' 16772 shlibpath_var=LD_LIBRARY_PATH 16773 fi 16774 ;; 16775 16776uts4*) 16777 version_type=linux 16778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 16779 soname_spec='${libname}${release}${shared_ext}$major' 16780 shlibpath_var=LD_LIBRARY_PATH 16781 ;; 16782 16783*) 16784 dynamic_linker=no 16785 ;; 16786esac 16787echo "$as_me:$LINENO: result: $dynamic_linker" >&5 16788echo "${ECHO_T}$dynamic_linker" >&6 16789test "$dynamic_linker" = no && can_build_shared=no 16790 16791echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 16792echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 16793hardcode_action_GCJ= 16794if test -n "$hardcode_libdir_flag_spec_GCJ" || \ 16795 test -n "$runpath_var GCJ" || \ 16796 test "X$hardcode_automatic_GCJ"="Xyes" ; then 16797 16798 # We can hardcode non-existant directories. 16799 if test "$hardcode_direct_GCJ" != no && 16800 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16801 # have to relink, otherwise we might link with an installed library 16802 # when we should be linking with a yet-to-be-installed one 16803 ## test "$_LT_AC_TAGVAR(hardcode_shlibpath_var, GCJ)" != no && 16804 test "$hardcode_minus_L_GCJ" != no; then 16805 # Linking always hardcodes the temporary library directory. 16806 hardcode_action_GCJ=relink 16807 else 16808 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16809 hardcode_action_GCJ=immediate 16810 fi 16811else 16812 # We cannot hardcode anything, or else we can only hardcode existing 16813 # directories. 16814 hardcode_action_GCJ=unsupported 16815fi 16816echo "$as_me:$LINENO: result: $hardcode_action_GCJ" >&5 16817echo "${ECHO_T}$hardcode_action_GCJ" >&6 16818 16819if test "$hardcode_action_GCJ" = relink; then 16820 # Fast installation is not supported 16821 enable_fast_install=no 16822elif test "$shlibpath_overrides_runpath" = yes || 16823 test "$enable_shared" = no; then 16824 # Fast installation is not necessary 16825 enable_fast_install=needless 16826fi 16827 16828striplib= 16829old_striplib= 16830echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 16831echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 16832if test -n "$STRIP" && $STRIP -V 2>&1 | grep "GNU strip" >/dev/null; then 16833 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 16834 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 16835 echo "$as_me:$LINENO: result: yes" >&5 16836echo "${ECHO_T}yes" >&6 16837else 16838# FIXME - insert some real tests, host_os isn't really good enough 16839 case $host_os in 16840 darwin*) 16841 if test -n "$STRIP" ; then 16842 striplib="$STRIP -x" 16843 echo "$as_me:$LINENO: result: yes" >&5 16844echo "${ECHO_T}yes" >&6 16845 else 16846 echo "$as_me:$LINENO: result: no" >&5 16847echo "${ECHO_T}no" >&6 16848fi 16849 ;; 16850 *) 16851 echo "$as_me:$LINENO: result: no" >&5 16852echo "${ECHO_T}no" >&6 16853 ;; 16854 esac 16855fi 16856 16857if test "x$enable_dlopen" != xyes; then 16858 enable_dlopen=unknown 16859 enable_dlopen_self=unknown 16860 enable_dlopen_self_static=unknown 16861else 16862 lt_cv_dlopen=no 16863 lt_cv_dlopen_libs= 16864 16865 case $host_os in 16866 beos*) 16867 lt_cv_dlopen="load_add_on" 16868 lt_cv_dlopen_libs= 16869 lt_cv_dlopen_self=yes 16870 ;; 16871 16872 mingw* | pw32*) 16873 lt_cv_dlopen="LoadLibrary" 16874 lt_cv_dlopen_libs= 16875 ;; 16876 16877 cygwin*) 16878 lt_cv_dlopen="dlopen" 16879 lt_cv_dlopen_libs= 16880 ;; 16881 16882 darwin*) 16883 # if libdl is installed we need to link against it 16884 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 16885echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 16886if test "${ac_cv_lib_dl_dlopen+set}" = set; then 16887 echo $ECHO_N "(cached) $ECHO_C" >&6 16888else 16889 ac_check_lib_save_LIBS=$LIBS 16890LIBS="-ldl $LIBS" 16891cat >conftest.$ac_ext <<_ACEOF 16892/* confdefs.h. */ 16893_ACEOF 16894cat confdefs.h >>conftest.$ac_ext 16895cat >>conftest.$ac_ext <<_ACEOF 16896/* end confdefs.h. */ 16897 16898/* Override any gcc2 internal prototype to avoid an error. */ 16899#ifdef __cplusplus 16900extern "C" 16901#endif 16902/* We use char because int might match the return type of a gcc2 16903 builtin and then its argument prototype would still apply. */ 16904char dlopen (); 16905int 16906main () 16907{ 16908dlopen (); 16909 ; 16910 return 0; 16911} 16912_ACEOF 16913rm -f conftest.$ac_objext conftest$ac_exeext 16914if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16915 (eval $ac_link) 2>conftest.er1 16916 ac_status=$? 16917 grep -v '^ *+' conftest.er1 >conftest.err 16918 rm -f conftest.er1 16919 cat conftest.err >&5 16920 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16921 (exit $ac_status); } && 16922 { ac_try='test -z "$ac_c_werror_flag" 16923 || test ! -s conftest.err' 16924 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16925 (eval $ac_try) 2>&5 16926 ac_status=$? 16927 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16928 (exit $ac_status); }; } && 16929 { ac_try='test -s conftest$ac_exeext' 16930 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16931 (eval $ac_try) 2>&5 16932 ac_status=$? 16933 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16934 (exit $ac_status); }; }; then 16935 ac_cv_lib_dl_dlopen=yes 16936else 16937 echo "$as_me: failed program was:" >&5 16938sed 's/^/| /' conftest.$ac_ext >&5 16939 16940ac_cv_lib_dl_dlopen=no 16941fi 16942rm -f conftest.err conftest.$ac_objext \ 16943 conftest$ac_exeext conftest.$ac_ext 16944LIBS=$ac_check_lib_save_LIBS 16945fi 16946echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 16947echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 16948if test $ac_cv_lib_dl_dlopen = yes; then 16949 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 16950else 16951 16952 lt_cv_dlopen="dyld" 16953 lt_cv_dlopen_libs= 16954 lt_cv_dlopen_self=yes 16955 16956fi 16957 16958 ;; 16959 16960 *) 16961 echo "$as_me:$LINENO: checking for shl_load" >&5 16962echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 16963if test "${ac_cv_func_shl_load+set}" = set; then 16964 echo $ECHO_N "(cached) $ECHO_C" >&6 16965else 16966 cat >conftest.$ac_ext <<_ACEOF 16967/* confdefs.h. */ 16968_ACEOF 16969cat confdefs.h >>conftest.$ac_ext 16970cat >>conftest.$ac_ext <<_ACEOF 16971/* end confdefs.h. */ 16972/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 16973 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16974#define shl_load innocuous_shl_load 16975 16976/* System header to define __stub macros and hopefully few prototypes, 16977 which can conflict with char shl_load (); below. 16978 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16979 <limits.h> exists even on freestanding compilers. */ 16980 16981#ifdef __STDC__ 16982# include <limits.h> 16983#else 16984# include <assert.h> 16985#endif 16986 16987#undef shl_load 16988 16989/* Override any gcc2 internal prototype to avoid an error. */ 16990#ifdef __cplusplus 16991extern "C" 16992{ 16993#endif 16994/* We use char because int might match the return type of a gcc2 16995 builtin and then its argument prototype would still apply. */ 16996char shl_load (); 16997/* The GNU C library defines this for functions which it implements 16998 to always fail with ENOSYS. Some functions are actually named 16999 something starting with __ and the normal name is an alias. */ 17000#if defined (__stub_shl_load) || defined (__stub___shl_load) 17001choke me 17002#else 17003char (*f) () = shl_load; 17004#endif 17005#ifdef __cplusplus 17006} 17007#endif 17008 17009int 17010main () 17011{ 17012return f != shl_load; 17013 ; 17014 return 0; 17015} 17016_ACEOF 17017rm -f conftest.$ac_objext conftest$ac_exeext 17018if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17019 (eval $ac_link) 2>conftest.er1 17020 ac_status=$? 17021 grep -v '^ *+' conftest.er1 >conftest.err 17022 rm -f conftest.er1 17023 cat conftest.err >&5 17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17025 (exit $ac_status); } && 17026 { ac_try='test -z "$ac_c_werror_flag" 17027 || test ! -s conftest.err' 17028 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17029 (eval $ac_try) 2>&5 17030 ac_status=$? 17031 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17032 (exit $ac_status); }; } && 17033 { ac_try='test -s conftest$ac_exeext' 17034 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17035 (eval $ac_try) 2>&5 17036 ac_status=$? 17037 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17038 (exit $ac_status); }; }; then 17039 ac_cv_func_shl_load=yes 17040else 17041 echo "$as_me: failed program was:" >&5 17042sed 's/^/| /' conftest.$ac_ext >&5 17043 17044ac_cv_func_shl_load=no 17045fi 17046rm -f conftest.err conftest.$ac_objext \ 17047 conftest$ac_exeext conftest.$ac_ext 17048fi 17049echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 17050echo "${ECHO_T}$ac_cv_func_shl_load" >&6 17051if test $ac_cv_func_shl_load = yes; then 17052 lt_cv_dlopen="shl_load" 17053else 17054 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 17055echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 17056if test "${ac_cv_lib_dld_shl_load+set}" = set; then 17057 echo $ECHO_N "(cached) $ECHO_C" >&6 17058else 17059 ac_check_lib_save_LIBS=$LIBS 17060LIBS="-ldld $LIBS" 17061cat >conftest.$ac_ext <<_ACEOF 17062/* confdefs.h. */ 17063_ACEOF 17064cat confdefs.h >>conftest.$ac_ext 17065cat >>conftest.$ac_ext <<_ACEOF 17066/* end confdefs.h. */ 17067 17068/* Override any gcc2 internal prototype to avoid an error. */ 17069#ifdef __cplusplus 17070extern "C" 17071#endif 17072/* We use char because int might match the return type of a gcc2 17073 builtin and then its argument prototype would still apply. */ 17074char shl_load (); 17075int 17076main () 17077{ 17078shl_load (); 17079 ; 17080 return 0; 17081} 17082_ACEOF 17083rm -f conftest.$ac_objext conftest$ac_exeext 17084if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17085 (eval $ac_link) 2>conftest.er1 17086 ac_status=$? 17087 grep -v '^ *+' conftest.er1 >conftest.err 17088 rm -f conftest.er1 17089 cat conftest.err >&5 17090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17091 (exit $ac_status); } && 17092 { ac_try='test -z "$ac_c_werror_flag" 17093 || test ! -s conftest.err' 17094 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17095 (eval $ac_try) 2>&5 17096 ac_status=$? 17097 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17098 (exit $ac_status); }; } && 17099 { ac_try='test -s conftest$ac_exeext' 17100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17101 (eval $ac_try) 2>&5 17102 ac_status=$? 17103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17104 (exit $ac_status); }; }; then 17105 ac_cv_lib_dld_shl_load=yes 17106else 17107 echo "$as_me: failed program was:" >&5 17108sed 's/^/| /' conftest.$ac_ext >&5 17109 17110ac_cv_lib_dld_shl_load=no 17111fi 17112rm -f conftest.err conftest.$ac_objext \ 17113 conftest$ac_exeext conftest.$ac_ext 17114LIBS=$ac_check_lib_save_LIBS 17115fi 17116echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 17117echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 17118if test $ac_cv_lib_dld_shl_load = yes; then 17119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 17120else 17121 echo "$as_me:$LINENO: checking for dlopen" >&5 17122echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 17123if test "${ac_cv_func_dlopen+set}" = set; then 17124 echo $ECHO_N "(cached) $ECHO_C" >&6 17125else 17126 cat >conftest.$ac_ext <<_ACEOF 17127/* confdefs.h. */ 17128_ACEOF 17129cat confdefs.h >>conftest.$ac_ext 17130cat >>conftest.$ac_ext <<_ACEOF 17131/* end confdefs.h. */ 17132/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 17133 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 17134#define dlopen innocuous_dlopen 17135 17136/* System header to define __stub macros and hopefully few prototypes, 17137 which can conflict with char dlopen (); below. 17138 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 17139 <limits.h> exists even on freestanding compilers. */ 17140 17141#ifdef __STDC__ 17142# include <limits.h> 17143#else 17144# include <assert.h> 17145#endif 17146 17147#undef dlopen 17148 17149/* Override any gcc2 internal prototype to avoid an error. */ 17150#ifdef __cplusplus 17151extern "C" 17152{ 17153#endif 17154/* We use char because int might match the return type of a gcc2 17155 builtin and then its argument prototype would still apply. */ 17156char dlopen (); 17157/* The GNU C library defines this for functions which it implements 17158 to always fail with ENOSYS. Some functions are actually named 17159 something starting with __ and the normal name is an alias. */ 17160#if defined (__stub_dlopen) || defined (__stub___dlopen) 17161choke me 17162#else 17163char (*f) () = dlopen; 17164#endif 17165#ifdef __cplusplus 17166} 17167#endif 17168 17169int 17170main () 17171{ 17172return f != dlopen; 17173 ; 17174 return 0; 17175} 17176_ACEOF 17177rm -f conftest.$ac_objext conftest$ac_exeext 17178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17179 (eval $ac_link) 2>conftest.er1 17180 ac_status=$? 17181 grep -v '^ *+' conftest.er1 >conftest.err 17182 rm -f conftest.er1 17183 cat conftest.err >&5 17184 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17185 (exit $ac_status); } && 17186 { ac_try='test -z "$ac_c_werror_flag" 17187 || test ! -s conftest.err' 17188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17189 (eval $ac_try) 2>&5 17190 ac_status=$? 17191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17192 (exit $ac_status); }; } && 17193 { ac_try='test -s conftest$ac_exeext' 17194 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17195 (eval $ac_try) 2>&5 17196 ac_status=$? 17197 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17198 (exit $ac_status); }; }; then 17199 ac_cv_func_dlopen=yes 17200else 17201 echo "$as_me: failed program was:" >&5 17202sed 's/^/| /' conftest.$ac_ext >&5 17203 17204ac_cv_func_dlopen=no 17205fi 17206rm -f conftest.err conftest.$ac_objext \ 17207 conftest$ac_exeext conftest.$ac_ext 17208fi 17209echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 17210echo "${ECHO_T}$ac_cv_func_dlopen" >&6 17211if test $ac_cv_func_dlopen = yes; then 17212 lt_cv_dlopen="dlopen" 17213else 17214 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 17215echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 17216if test "${ac_cv_lib_dl_dlopen+set}" = set; then 17217 echo $ECHO_N "(cached) $ECHO_C" >&6 17218else 17219 ac_check_lib_save_LIBS=$LIBS 17220LIBS="-ldl $LIBS" 17221cat >conftest.$ac_ext <<_ACEOF 17222/* confdefs.h. */ 17223_ACEOF 17224cat confdefs.h >>conftest.$ac_ext 17225cat >>conftest.$ac_ext <<_ACEOF 17226/* end confdefs.h. */ 17227 17228/* Override any gcc2 internal prototype to avoid an error. */ 17229#ifdef __cplusplus 17230extern "C" 17231#endif 17232/* We use char because int might match the return type of a gcc2 17233 builtin and then its argument prototype would still apply. */ 17234char dlopen (); 17235int 17236main () 17237{ 17238dlopen (); 17239 ; 17240 return 0; 17241} 17242_ACEOF 17243rm -f conftest.$ac_objext conftest$ac_exeext 17244if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17245 (eval $ac_link) 2>conftest.er1 17246 ac_status=$? 17247 grep -v '^ *+' conftest.er1 >conftest.err 17248 rm -f conftest.er1 17249 cat conftest.err >&5 17250 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17251 (exit $ac_status); } && 17252 { ac_try='test -z "$ac_c_werror_flag" 17253 || test ! -s conftest.err' 17254 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17255 (eval $ac_try) 2>&5 17256 ac_status=$? 17257 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17258 (exit $ac_status); }; } && 17259 { ac_try='test -s conftest$ac_exeext' 17260 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17261 (eval $ac_try) 2>&5 17262 ac_status=$? 17263 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17264 (exit $ac_status); }; }; then 17265 ac_cv_lib_dl_dlopen=yes 17266else 17267 echo "$as_me: failed program was:" >&5 17268sed 's/^/| /' conftest.$ac_ext >&5 17269 17270ac_cv_lib_dl_dlopen=no 17271fi 17272rm -f conftest.err conftest.$ac_objext \ 17273 conftest$ac_exeext conftest.$ac_ext 17274LIBS=$ac_check_lib_save_LIBS 17275fi 17276echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 17277echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 17278if test $ac_cv_lib_dl_dlopen = yes; then 17279 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 17280else 17281 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 17282echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 17283if test "${ac_cv_lib_svld_dlopen+set}" = set; then 17284 echo $ECHO_N "(cached) $ECHO_C" >&6 17285else 17286 ac_check_lib_save_LIBS=$LIBS 17287LIBS="-lsvld $LIBS" 17288cat >conftest.$ac_ext <<_ACEOF 17289/* confdefs.h. */ 17290_ACEOF 17291cat confdefs.h >>conftest.$ac_ext 17292cat >>conftest.$ac_ext <<_ACEOF 17293/* end confdefs.h. */ 17294 17295/* Override any gcc2 internal prototype to avoid an error. */ 17296#ifdef __cplusplus 17297extern "C" 17298#endif 17299/* We use char because int might match the return type of a gcc2 17300 builtin and then its argument prototype would still apply. */ 17301char dlopen (); 17302int 17303main () 17304{ 17305dlopen (); 17306 ; 17307 return 0; 17308} 17309_ACEOF 17310rm -f conftest.$ac_objext conftest$ac_exeext 17311if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17312 (eval $ac_link) 2>conftest.er1 17313 ac_status=$? 17314 grep -v '^ *+' conftest.er1 >conftest.err 17315 rm -f conftest.er1 17316 cat conftest.err >&5 17317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17318 (exit $ac_status); } && 17319 { ac_try='test -z "$ac_c_werror_flag" 17320 || test ! -s conftest.err' 17321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17322 (eval $ac_try) 2>&5 17323 ac_status=$? 17324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17325 (exit $ac_status); }; } && 17326 { ac_try='test -s conftest$ac_exeext' 17327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17328 (eval $ac_try) 2>&5 17329 ac_status=$? 17330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17331 (exit $ac_status); }; }; then 17332 ac_cv_lib_svld_dlopen=yes 17333else 17334 echo "$as_me: failed program was:" >&5 17335sed 's/^/| /' conftest.$ac_ext >&5 17336 17337ac_cv_lib_svld_dlopen=no 17338fi 17339rm -f conftest.err conftest.$ac_objext \ 17340 conftest$ac_exeext conftest.$ac_ext 17341LIBS=$ac_check_lib_save_LIBS 17342fi 17343echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 17344echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 17345if test $ac_cv_lib_svld_dlopen = yes; then 17346 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 17347else 17348 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 17349echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 17350if test "${ac_cv_lib_dld_dld_link+set}" = set; then 17351 echo $ECHO_N "(cached) $ECHO_C" >&6 17352else 17353 ac_check_lib_save_LIBS=$LIBS 17354LIBS="-ldld $LIBS" 17355cat >conftest.$ac_ext <<_ACEOF 17356/* confdefs.h. */ 17357_ACEOF 17358cat confdefs.h >>conftest.$ac_ext 17359cat >>conftest.$ac_ext <<_ACEOF 17360/* end confdefs.h. */ 17361 17362/* Override any gcc2 internal prototype to avoid an error. */ 17363#ifdef __cplusplus 17364extern "C" 17365#endif 17366/* We use char because int might match the return type of a gcc2 17367 builtin and then its argument prototype would still apply. */ 17368char dld_link (); 17369int 17370main () 17371{ 17372dld_link (); 17373 ; 17374 return 0; 17375} 17376_ACEOF 17377rm -f conftest.$ac_objext conftest$ac_exeext 17378if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17379 (eval $ac_link) 2>conftest.er1 17380 ac_status=$? 17381 grep -v '^ *+' conftest.er1 >conftest.err 17382 rm -f conftest.er1 17383 cat conftest.err >&5 17384 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17385 (exit $ac_status); } && 17386 { ac_try='test -z "$ac_c_werror_flag" 17387 || test ! -s conftest.err' 17388 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17389 (eval $ac_try) 2>&5 17390 ac_status=$? 17391 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17392 (exit $ac_status); }; } && 17393 { ac_try='test -s conftest$ac_exeext' 17394 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17395 (eval $ac_try) 2>&5 17396 ac_status=$? 17397 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17398 (exit $ac_status); }; }; then 17399 ac_cv_lib_dld_dld_link=yes 17400else 17401 echo "$as_me: failed program was:" >&5 17402sed 's/^/| /' conftest.$ac_ext >&5 17403 17404ac_cv_lib_dld_dld_link=no 17405fi 17406rm -f conftest.err conftest.$ac_objext \ 17407 conftest$ac_exeext conftest.$ac_ext 17408LIBS=$ac_check_lib_save_LIBS 17409fi 17410echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 17411echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 17412if test $ac_cv_lib_dld_dld_link = yes; then 17413 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 17414fi 17415 17416 17417fi 17418 17419 17420fi 17421 17422 17423fi 17424 17425 17426fi 17427 17428 17429fi 17430 17431 ;; 17432 esac 17433 17434 if test "x$lt_cv_dlopen" != xno; then 17435 enable_dlopen=yes 17436 else 17437 enable_dlopen=no 17438 fi 17439 17440 case $lt_cv_dlopen in 17441 dlopen) 17442 save_CPPFLAGS="$CPPFLAGS" 17443 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 17444 17445 save_LDFLAGS="$LDFLAGS" 17446 eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 17447 17448 save_LIBS="$LIBS" 17449 LIBS="$lt_cv_dlopen_libs $LIBS" 17450 17451 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 17452echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 17453if test "${lt_cv_dlopen_self+set}" = set; then 17454 echo $ECHO_N "(cached) $ECHO_C" >&6 17455else 17456 if test "$cross_compiling" = yes; then : 17457 lt_cv_dlopen_self=cross 17458else 17459 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17460 lt_status=$lt_dlunknown 17461 cat > conftest.$ac_ext <<EOF 17462#line __oline__ "configure" 17463#include "confdefs.h" 17464 17465#if HAVE_DLFCN_H 17466#include <dlfcn.h> 17467#endif 17468 17469#include <stdio.h> 17470 17471#ifdef RTLD_GLOBAL 17472# define LT_DLGLOBAL RTLD_GLOBAL 17473#else 17474# ifdef DL_GLOBAL 17475# define LT_DLGLOBAL DL_GLOBAL 17476# else 17477# define LT_DLGLOBAL 0 17478# endif 17479#endif 17480 17481/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17482 find out it does not work in some platform. */ 17483#ifndef LT_DLLAZY_OR_NOW 17484# ifdef RTLD_LAZY 17485# define LT_DLLAZY_OR_NOW RTLD_LAZY 17486# else 17487# ifdef DL_LAZY 17488# define LT_DLLAZY_OR_NOW DL_LAZY 17489# else 17490# ifdef RTLD_NOW 17491# define LT_DLLAZY_OR_NOW RTLD_NOW 17492# else 17493# ifdef DL_NOW 17494# define LT_DLLAZY_OR_NOW DL_NOW 17495# else 17496# define LT_DLLAZY_OR_NOW 0 17497# endif 17498# endif 17499# endif 17500# endif 17501#endif 17502 17503#ifdef __cplusplus 17504extern "C" void exit (int); 17505#endif 17506 17507void fnord() { int i=42;} 17508int main () 17509{ 17510 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17511 int status = $lt_dlunknown; 17512 17513 if (self) 17514 { 17515 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17516 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17517 /* dlclose (self); */ 17518 } 17519 17520 exit (status); 17521} 17522EOF 17523 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17524 (eval $ac_link) 2>&5 17525 ac_status=$? 17526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17527 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17528 (./conftest; exit; ) 2>/dev/null 17529 lt_status=$? 17530 case x$lt_status in 17531 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 17532 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 17533 x$lt_unknown|x*) lt_cv_dlopen_self=no ;; 17534 esac 17535 else : 17536 # compilation failed 17537 lt_cv_dlopen_self=no 17538 fi 17539fi 17540rm -fr conftest* 17541 17542 17543fi 17544echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 17545echo "${ECHO_T}$lt_cv_dlopen_self" >&6 17546 17547 if test "x$lt_cv_dlopen_self" = xyes; then 17548 LDFLAGS="$LDFLAGS $link_static_flag" 17549 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 17550echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 17551if test "${lt_cv_dlopen_self_static+set}" = set; then 17552 echo $ECHO_N "(cached) $ECHO_C" >&6 17553else 17554 if test "$cross_compiling" = yes; then : 17555 lt_cv_dlopen_self_static=cross 17556else 17557 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 17558 lt_status=$lt_dlunknown 17559 cat > conftest.$ac_ext <<EOF 17560#line __oline__ "configure" 17561#include "confdefs.h" 17562 17563#if HAVE_DLFCN_H 17564#include <dlfcn.h> 17565#endif 17566 17567#include <stdio.h> 17568 17569#ifdef RTLD_GLOBAL 17570# define LT_DLGLOBAL RTLD_GLOBAL 17571#else 17572# ifdef DL_GLOBAL 17573# define LT_DLGLOBAL DL_GLOBAL 17574# else 17575# define LT_DLGLOBAL 0 17576# endif 17577#endif 17578 17579/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 17580 find out it does not work in some platform. */ 17581#ifndef LT_DLLAZY_OR_NOW 17582# ifdef RTLD_LAZY 17583# define LT_DLLAZY_OR_NOW RTLD_LAZY 17584# else 17585# ifdef DL_LAZY 17586# define LT_DLLAZY_OR_NOW DL_LAZY 17587# else 17588# ifdef RTLD_NOW 17589# define LT_DLLAZY_OR_NOW RTLD_NOW 17590# else 17591# ifdef DL_NOW 17592# define LT_DLLAZY_OR_NOW DL_NOW 17593# else 17594# define LT_DLLAZY_OR_NOW 0 17595# endif 17596# endif 17597# endif 17598# endif 17599#endif 17600 17601#ifdef __cplusplus 17602extern "C" void exit (int); 17603#endif 17604 17605void fnord() { int i=42;} 17606int main () 17607{ 17608 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 17609 int status = $lt_dlunknown; 17610 17611 if (self) 17612 { 17613 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 17614 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 17615 /* dlclose (self); */ 17616 } 17617 17618 exit (status); 17619} 17620EOF 17621 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17622 (eval $ac_link) 2>&5 17623 ac_status=$? 17624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17625 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 17626 (./conftest; exit; ) 2>/dev/null 17627 lt_status=$? 17628 case x$lt_status in 17629 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 17630 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 17631 x$lt_unknown|x*) lt_cv_dlopen_self_static=no ;; 17632 esac 17633 else : 17634 # compilation failed 17635 lt_cv_dlopen_self_static=no 17636 fi 17637fi 17638rm -fr conftest* 17639 17640 17641fi 17642echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 17643echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 17644 fi 17645 17646 CPPFLAGS="$save_CPPFLAGS" 17647 LDFLAGS="$save_LDFLAGS" 17648 LIBS="$save_LIBS" 17649 ;; 17650 esac 17651 17652 case $lt_cv_dlopen_self in 17653 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 17654 *) enable_dlopen_self=unknown ;; 17655 esac 17656 17657 case $lt_cv_dlopen_self_static in 17658 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 17659 *) enable_dlopen_self_static=unknown ;; 17660 esac 17661fi 17662 17663 17664# The else clause should only fire when bootstrapping the 17665# libtool distribution, otherwise you forgot to ship ltmain.sh 17666# with your package, and you will get complaints that there are 17667# no rules to generate ltmain.sh. 17668if test -f "$ltmain"; then 17669 # See if we are running on zsh, and set the options which allow our commands through 17670 # without removal of \ escapes. 17671 if test -n "${ZSH_VERSION+set}" ; then 17672 setopt NO_GLOB_SUBST 17673 fi 17674 # Now quote all the things that may contain metacharacters while being 17675 # careful not to overquote the AC_SUBSTed values. We take copies of the 17676 # variables and quote the copies for generation of the libtool script. 17677 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 17678 SED SHELL STRIP \ 17679 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 17680 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 17681 deplibs_check_method reload_flag reload_cmds need_locks \ 17682 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 17683 lt_cv_sys_global_symbol_to_c_name_address \ 17684 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 17685 old_postinstall_cmds old_postuninstall_cmds \ 17686 compiler_GCJ \ 17687 CC_GCJ \ 17688 LD_GCJ \ 17689 lt_prog_compiler_wl_GCJ \ 17690 lt_prog_compiler_pic_GCJ \ 17691 lt_prog_compiler_static_GCJ \ 17692 lt_prog_compiler_no_builtin_flag_GCJ \ 17693 export_dynamic_flag_spec_GCJ \ 17694 thread_safe_flag_spec_GCJ \ 17695 whole_archive_flag_spec_GCJ \ 17696 enable_shared_with_static_runtimes_GCJ \ 17697 old_archive_cmds_GCJ \ 17698 old_archive_from_new_cmds_GCJ \ 17699 predep_objects_GCJ \ 17700 postdep_objects_GCJ \ 17701 predeps_GCJ \ 17702 postdeps_GCJ \ 17703 compiler_lib_search_path_GCJ \ 17704 archive_cmds_GCJ \ 17705 archive_expsym_cmds_GCJ \ 17706 postinstall_cmds_GCJ \ 17707 postuninstall_cmds_GCJ \ 17708 old_archive_from_expsyms_cmds_GCJ \ 17709 allow_undefined_flag_GCJ \ 17710 no_undefined_flag_GCJ \ 17711 export_symbols_cmds_GCJ \ 17712 hardcode_libdir_flag_spec_GCJ \ 17713 hardcode_libdir_flag_spec_ld_GCJ \ 17714 hardcode_libdir_separator_GCJ \ 17715 hardcode_automatic_GCJ \ 17716 module_cmds_GCJ \ 17717 module_expsym_cmds_GCJ \ 17718 lt_cv_prog_compiler_c_o_GCJ \ 17719 exclude_expsyms_GCJ \ 17720 include_expsyms_GCJ; do 17721 17722 case $var in 17723 old_archive_cmds_GCJ | \ 17724 old_archive_from_new_cmds_GCJ | \ 17725 archive_cmds_GCJ | \ 17726 archive_expsym_cmds_GCJ | \ 17727 module_cmds_GCJ | \ 17728 module_expsym_cmds_GCJ | \ 17729 old_archive_from_expsyms_cmds_GCJ | \ 17730 export_symbols_cmds_GCJ | \ 17731 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 17732 postinstall_cmds | postuninstall_cmds | \ 17733 old_postinstall_cmds | old_postuninstall_cmds | \ 17734 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 17735 # Double-quote double-evaled strings. 17736 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 17737 ;; 17738 *) 17739 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 17740 ;; 17741 esac 17742 done 17743 17744 case $lt_echo in 17745 *'\$0 --fallback-echo"') 17746 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 17747 ;; 17748 esac 17749 17750cfgfile="$ofile" 17751 17752 cat <<__EOF__ >> "$cfgfile" 17753# ### BEGIN LIBTOOL TAG CONFIG: $tagname 17754 17755# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 17756 17757# Shell to use when invoking shell scripts. 17758SHELL=$lt_SHELL 17759 17760# Whether or not to build shared libraries. 17761build_libtool_libs=$enable_shared 17762 17763# Whether or not to build static libraries. 17764build_old_libs=$enable_static 17765 17766# Whether or not to add -lc for building shared libraries. 17767build_libtool_need_lc=$archive_cmds_need_lc_GCJ 17768 17769# Whether or not to disallow shared libs when runtime libs are static 17770allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_GCJ 17771 17772# Whether or not to optimize for fast installation. 17773fast_install=$enable_fast_install 17774 17775# The host system. 17776host_alias=$host_alias 17777host=$host 17778 17779# An echo program that does not interpret backslashes. 17780echo=$lt_echo 17781 17782# The archiver. 17783AR=$lt_AR 17784AR_FLAGS=$lt_AR_FLAGS 17785 17786# A C compiler. 17787LTCC=$lt_LTCC 17788 17789# A language-specific compiler. 17790CC=$lt_compiler_GCJ 17791 17792# Is the compiler the GNU C compiler? 17793with_gcc=$GCC_GCJ 17794 17795# An ERE matcher. 17796EGREP=$lt_EGREP 17797 17798# The linker used to build libraries. 17799LD=$lt_LD_GCJ 17800 17801# Whether we need hard or soft links. 17802LN_S=$lt_LN_S 17803 17804# A BSD-compatible nm program. 17805NM=$lt_NM 17806 17807# A symbol stripping program 17808STRIP=$lt_STRIP 17809 17810# Used to examine libraries when file_magic_cmd begins "file" 17811MAGIC_CMD=$MAGIC_CMD 17812 17813# Used on cygwin: DLL creation program. 17814DLLTOOL="$DLLTOOL" 17815 17816# Used on cygwin: object dumper. 17817OBJDUMP="$OBJDUMP" 17818 17819# Used on cygwin: assembler. 17820AS="$AS" 17821 17822# The name of the directory that contains temporary libtool files. 17823objdir=$objdir 17824 17825# How to create reloadable object files. 17826reload_flag=$lt_reload_flag 17827reload_cmds=$lt_reload_cmds 17828 17829# How to pass a linker flag through the compiler. 17830wl=$lt_lt_prog_compiler_wl_GCJ 17831 17832# Object file suffix (normally "o"). 17833objext="$ac_objext" 17834 17835# Old archive suffix (normally "a"). 17836libext="$libext" 17837 17838# Shared library suffix (normally ".so"). 17839shrext_cmds='$shrext_cmds' 17840 17841# Executable file suffix (normally ""). 17842exeext="$exeext" 17843 17844# Additional compiler flags for building library objects. 17845pic_flag=$lt_lt_prog_compiler_pic_GCJ 17846pic_mode=$pic_mode 17847 17848# What is the maximum length of a command? 17849max_cmd_len=$lt_cv_sys_max_cmd_len 17850 17851# Does compiler simultaneously support -c and -o options? 17852compiler_c_o=$lt_lt_cv_prog_compiler_c_o_GCJ 17853 17854# Must we lock files when doing compilation ? 17855need_locks=$lt_need_locks 17856 17857# Do we need the lib prefix for modules? 17858need_lib_prefix=$need_lib_prefix 17859 17860# Do we need a version for libraries? 17861need_version=$need_version 17862 17863# Whether dlopen is supported. 17864dlopen_support=$enable_dlopen 17865 17866# Whether dlopen of programs is supported. 17867dlopen_self=$enable_dlopen_self 17868 17869# Whether dlopen of statically linked programs is supported. 17870dlopen_self_static=$enable_dlopen_self_static 17871 17872# Compiler flag to prevent dynamic linking. 17873link_static_flag=$lt_lt_prog_compiler_static_GCJ 17874 17875# Compiler flag to turn off builtin functions. 17876no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_GCJ 17877 17878# Compiler flag to allow reflexive dlopens. 17879export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_GCJ 17880 17881# Compiler flag to generate shared objects directly from archives. 17882whole_archive_flag_spec=$lt_whole_archive_flag_spec_GCJ 17883 17884# Compiler flag to generate thread-safe objects. 17885thread_safe_flag_spec=$lt_thread_safe_flag_spec_GCJ 17886 17887# Library versioning type. 17888version_type=$version_type 17889 17890# Format of library name prefix. 17891libname_spec=$lt_libname_spec 17892 17893# List of archive names. First name is the real one, the rest are links. 17894# The last name is the one that the linker finds with -lNAME. 17895library_names_spec=$lt_library_names_spec 17896 17897# The coded name of the library, if different from the real name. 17898soname_spec=$lt_soname_spec 17899 17900# Commands used to build and install an old-style archive. 17901RANLIB=$lt_RANLIB 17902old_archive_cmds=$lt_old_archive_cmds_GCJ 17903old_postinstall_cmds=$lt_old_postinstall_cmds 17904old_postuninstall_cmds=$lt_old_postuninstall_cmds 17905 17906# Create an old-style archive from a shared archive. 17907old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_GCJ 17908 17909# Create a temporary old-style archive to link instead of a shared archive. 17910old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_GCJ 17911 17912# Commands used to build and install a shared archive. 17913archive_cmds=$lt_archive_cmds_GCJ 17914archive_expsym_cmds=$lt_archive_expsym_cmds_GCJ 17915postinstall_cmds=$lt_postinstall_cmds 17916postuninstall_cmds=$lt_postuninstall_cmds 17917 17918# Commands used to build a loadable module (assumed same as above if empty) 17919module_cmds=$lt_module_cmds_GCJ 17920module_expsym_cmds=$lt_module_expsym_cmds_GCJ 17921 17922# Commands to strip libraries. 17923old_striplib=$lt_old_striplib 17924striplib=$lt_striplib 17925 17926# Dependencies to place before the objects being linked to create a 17927# shared library. 17928predep_objects=$lt_predep_objects_GCJ 17929 17930# Dependencies to place after the objects being linked to create a 17931# shared library. 17932postdep_objects=$lt_postdep_objects_GCJ 17933 17934# Dependencies to place before the objects being linked to create a 17935# shared library. 17936predeps=$lt_predeps_GCJ 17937 17938# Dependencies to place after the objects being linked to create a 17939# shared library. 17940postdeps=$lt_postdeps_GCJ 17941 17942# The library search path used internally by the compiler when linking 17943# a shared library. 17944compiler_lib_search_path=$lt_compiler_lib_search_path_GCJ 17945 17946# Method to check whether dependent libraries are shared objects. 17947deplibs_check_method=$lt_deplibs_check_method 17948 17949# Command to use when deplibs_check_method == file_magic. 17950file_magic_cmd=$lt_file_magic_cmd 17951 17952# Flag that allows shared libraries with undefined symbols to be built. 17953allow_undefined_flag=$lt_allow_undefined_flag_GCJ 17954 17955# Flag that forces no undefined symbols. 17956no_undefined_flag=$lt_no_undefined_flag_GCJ 17957 17958# Commands used to finish a libtool library installation in a directory. 17959finish_cmds=$lt_finish_cmds 17960 17961# Same as above, but a single script fragment to be evaled but not shown. 17962finish_eval=$lt_finish_eval 17963 17964# Take the output of nm and produce a listing of raw symbols and C names. 17965global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 17966 17967# Transform the output of nm in a proper C declaration 17968global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 17969 17970# Transform the output of nm in a C name address pair 17971global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 17972 17973# This is the shared library runtime path variable. 17974runpath_var=$runpath_var 17975 17976# This is the shared library path variable. 17977shlibpath_var=$shlibpath_var 17978 17979# Is shlibpath searched before the hard-coded library search path? 17980shlibpath_overrides_runpath=$shlibpath_overrides_runpath 17981 17982# How to hardcode a shared library path into an executable. 17983hardcode_action=$hardcode_action_GCJ 17984 17985# Whether we should hardcode library paths into libraries. 17986hardcode_into_libs=$hardcode_into_libs 17987 17988# Flag to hardcode \$libdir into a binary during linking. 17989# This must work even if \$libdir does not exist. 17990hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_GCJ 17991 17992# If ld is used when linking, flag to hardcode \$libdir into 17993# a binary during linking. This must work even if \$libdir does 17994# not exist. 17995hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_GCJ 17996 17997# Whether we need a single -rpath flag with a separated argument. 17998hardcode_libdir_separator=$lt_hardcode_libdir_separator_GCJ 17999 18000# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18001# resulting binary. 18002hardcode_direct=$hardcode_direct_GCJ 18003 18004# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18005# resulting binary. 18006hardcode_minus_L=$hardcode_minus_L_GCJ 18007 18008# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18009# the resulting binary. 18010hardcode_shlibpath_var=$hardcode_shlibpath_var_GCJ 18011 18012# Set to yes if building a shared library automatically hardcodes DIR into the library 18013# and all subsequent libraries and executables linked against it. 18014hardcode_automatic=$hardcode_automatic_GCJ 18015 18016# Variables whose values should be saved in libtool wrapper scripts and 18017# restored at relink time. 18018variables_saved_for_relink="$variables_saved_for_relink" 18019 18020# Whether libtool must link a program against all its dependency libraries. 18021link_all_deplibs=$link_all_deplibs_GCJ 18022 18023# Compile-time system search path for libraries 18024sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18025 18026# Run-time system search path for libraries 18027sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18028 18029# Fix the shell variable \$srcfile for the compiler. 18030fix_srcfile_path="$fix_srcfile_path_GCJ" 18031 18032# Set to yes if exported symbols are required. 18033always_export_symbols=$always_export_symbols_GCJ 18034 18035# The commands to list exported symbols. 18036export_symbols_cmds=$lt_export_symbols_cmds_GCJ 18037 18038# The commands to extract the exported symbol list from a shared archive. 18039extract_expsyms_cmds=$lt_extract_expsyms_cmds 18040 18041# Symbols that should not be listed in the preloaded symbols. 18042exclude_expsyms=$lt_exclude_expsyms_GCJ 18043 18044# Symbols that must always be exported. 18045include_expsyms=$lt_include_expsyms_GCJ 18046 18047# ### END LIBTOOL TAG CONFIG: $tagname 18048 18049__EOF__ 18050 18051 18052else 18053 # If there is no Makefile yet, we rely on a make rule to execute 18054 # `config.status --recheck' to rerun these tests and create the 18055 # libtool script then. 18056 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18057 if test -f "$ltmain_in"; then 18058 test -f Makefile && make "$ltmain" 18059 fi 18060fi 18061 18062 18063ac_ext=c 18064ac_cpp='$CPP $CPPFLAGS' 18065ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18066ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18067ac_compiler_gnu=$ac_cv_c_compiler_gnu 18068 18069CC="$lt_save_CC" 18070 18071 else 18072 tagname="" 18073 fi 18074 ;; 18075 18076 RC) 18077 18078 18079 18080# Source file extension for RC test sources. 18081ac_ext=rc 18082 18083# Object file extension for compiled RC test sources. 18084objext=o 18085objext_RC=$objext 18086 18087# Code to be used in simple compile tests 18088lt_simple_compile_test_code='sample MENU { MENUITEM "&Soup", 100, CHECKED }\n' 18089 18090# Code to be used in simple link tests 18091lt_simple_link_test_code="$lt_simple_compile_test_code" 18092 18093# ltmain only uses $CC for tagged configurations so make sure $CC is set. 18094 18095# If no C compiler was specified, use CC. 18096LTCC=${LTCC-"$CC"} 18097 18098# Allow CC to be a program name with arguments. 18099compiler=$CC 18100 18101 18102# Allow CC to be a program name with arguments. 18103lt_save_CC="$CC" 18104CC=${RC-"windres"} 18105compiler=$CC 18106compiler_RC=$CC 18107lt_cv_prog_compiler_c_o_RC=yes 18108 18109# The else clause should only fire when bootstrapping the 18110# libtool distribution, otherwise you forgot to ship ltmain.sh 18111# with your package, and you will get complaints that there are 18112# no rules to generate ltmain.sh. 18113if test -f "$ltmain"; then 18114 # See if we are running on zsh, and set the options which allow our commands through 18115 # without removal of \ escapes. 18116 if test -n "${ZSH_VERSION+set}" ; then 18117 setopt NO_GLOB_SUBST 18118 fi 18119 # Now quote all the things that may contain metacharacters while being 18120 # careful not to overquote the AC_SUBSTed values. We take copies of the 18121 # variables and quote the copies for generation of the libtool script. 18122 for var in echo old_CC old_CFLAGS AR AR_FLAGS EGREP RANLIB LN_S LTCC NM \ 18123 SED SHELL STRIP \ 18124 libname_spec library_names_spec soname_spec extract_expsyms_cmds \ 18125 old_striplib striplib file_magic_cmd finish_cmds finish_eval \ 18126 deplibs_check_method reload_flag reload_cmds need_locks \ 18127 lt_cv_sys_global_symbol_pipe lt_cv_sys_global_symbol_to_cdecl \ 18128 lt_cv_sys_global_symbol_to_c_name_address \ 18129 sys_lib_search_path_spec sys_lib_dlsearch_path_spec \ 18130 old_postinstall_cmds old_postuninstall_cmds \ 18131 compiler_RC \ 18132 CC_RC \ 18133 LD_RC \ 18134 lt_prog_compiler_wl_RC \ 18135 lt_prog_compiler_pic_RC \ 18136 lt_prog_compiler_static_RC \ 18137 lt_prog_compiler_no_builtin_flag_RC \ 18138 export_dynamic_flag_spec_RC \ 18139 thread_safe_flag_spec_RC \ 18140 whole_archive_flag_spec_RC \ 18141 enable_shared_with_static_runtimes_RC \ 18142 old_archive_cmds_RC \ 18143 old_archive_from_new_cmds_RC \ 18144 predep_objects_RC \ 18145 postdep_objects_RC \ 18146 predeps_RC \ 18147 postdeps_RC \ 18148 compiler_lib_search_path_RC \ 18149 archive_cmds_RC \ 18150 archive_expsym_cmds_RC \ 18151 postinstall_cmds_RC \ 18152 postuninstall_cmds_RC \ 18153 old_archive_from_expsyms_cmds_RC \ 18154 allow_undefined_flag_RC \ 18155 no_undefined_flag_RC \ 18156 export_symbols_cmds_RC \ 18157 hardcode_libdir_flag_spec_RC \ 18158 hardcode_libdir_flag_spec_ld_RC \ 18159 hardcode_libdir_separator_RC \ 18160 hardcode_automatic_RC \ 18161 module_cmds_RC \ 18162 module_expsym_cmds_RC \ 18163 lt_cv_prog_compiler_c_o_RC \ 18164 exclude_expsyms_RC \ 18165 include_expsyms_RC; do 18166 18167 case $var in 18168 old_archive_cmds_RC | \ 18169 old_archive_from_new_cmds_RC | \ 18170 archive_cmds_RC | \ 18171 archive_expsym_cmds_RC | \ 18172 module_cmds_RC | \ 18173 module_expsym_cmds_RC | \ 18174 old_archive_from_expsyms_cmds_RC | \ 18175 export_symbols_cmds_RC | \ 18176 extract_expsyms_cmds | reload_cmds | finish_cmds | \ 18177 postinstall_cmds | postuninstall_cmds | \ 18178 old_postinstall_cmds | old_postuninstall_cmds | \ 18179 sys_lib_search_path_spec | sys_lib_dlsearch_path_spec) 18180 # Double-quote double-evaled strings. 18181 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$double_quote_subst\" -e \"\$sed_quote_subst\" -e \"\$delay_variable_subst\"\`\\\"" 18182 ;; 18183 *) 18184 eval "lt_$var=\\\"\`\$echo \"X\$$var\" | \$Xsed -e \"\$sed_quote_subst\"\`\\\"" 18185 ;; 18186 esac 18187 done 18188 18189 case $lt_echo in 18190 *'\$0 --fallback-echo"') 18191 lt_echo=`$echo "X$lt_echo" | $Xsed -e 's/\\\\\\\$0 --fallback-echo"$/$0 --fallback-echo"/'` 18192 ;; 18193 esac 18194 18195cfgfile="$ofile" 18196 18197 cat <<__EOF__ >> "$cfgfile" 18198# ### BEGIN LIBTOOL TAG CONFIG: $tagname 18199 18200# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 18201 18202# Shell to use when invoking shell scripts. 18203SHELL=$lt_SHELL 18204 18205# Whether or not to build shared libraries. 18206build_libtool_libs=$enable_shared 18207 18208# Whether or not to build static libraries. 18209build_old_libs=$enable_static 18210 18211# Whether or not to add -lc for building shared libraries. 18212build_libtool_need_lc=$archive_cmds_need_lc_RC 18213 18214# Whether or not to disallow shared libs when runtime libs are static 18215allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_RC 18216 18217# Whether or not to optimize for fast installation. 18218fast_install=$enable_fast_install 18219 18220# The host system. 18221host_alias=$host_alias 18222host=$host 18223 18224# An echo program that does not interpret backslashes. 18225echo=$lt_echo 18226 18227# The archiver. 18228AR=$lt_AR 18229AR_FLAGS=$lt_AR_FLAGS 18230 18231# A C compiler. 18232LTCC=$lt_LTCC 18233 18234# A language-specific compiler. 18235CC=$lt_compiler_RC 18236 18237# Is the compiler the GNU C compiler? 18238with_gcc=$GCC_RC 18239 18240# An ERE matcher. 18241EGREP=$lt_EGREP 18242 18243# The linker used to build libraries. 18244LD=$lt_LD_RC 18245 18246# Whether we need hard or soft links. 18247LN_S=$lt_LN_S 18248 18249# A BSD-compatible nm program. 18250NM=$lt_NM 18251 18252# A symbol stripping program 18253STRIP=$lt_STRIP 18254 18255# Used to examine libraries when file_magic_cmd begins "file" 18256MAGIC_CMD=$MAGIC_CMD 18257 18258# Used on cygwin: DLL creation program. 18259DLLTOOL="$DLLTOOL" 18260 18261# Used on cygwin: object dumper. 18262OBJDUMP="$OBJDUMP" 18263 18264# Used on cygwin: assembler. 18265AS="$AS" 18266 18267# The name of the directory that contains temporary libtool files. 18268objdir=$objdir 18269 18270# How to create reloadable object files. 18271reload_flag=$lt_reload_flag 18272reload_cmds=$lt_reload_cmds 18273 18274# How to pass a linker flag through the compiler. 18275wl=$lt_lt_prog_compiler_wl_RC 18276 18277# Object file suffix (normally "o"). 18278objext="$ac_objext" 18279 18280# Old archive suffix (normally "a"). 18281libext="$libext" 18282 18283# Shared library suffix (normally ".so"). 18284shrext_cmds='$shrext_cmds' 18285 18286# Executable file suffix (normally ""). 18287exeext="$exeext" 18288 18289# Additional compiler flags for building library objects. 18290pic_flag=$lt_lt_prog_compiler_pic_RC 18291pic_mode=$pic_mode 18292 18293# What is the maximum length of a command? 18294max_cmd_len=$lt_cv_sys_max_cmd_len 18295 18296# Does compiler simultaneously support -c and -o options? 18297compiler_c_o=$lt_lt_cv_prog_compiler_c_o_RC 18298 18299# Must we lock files when doing compilation ? 18300need_locks=$lt_need_locks 18301 18302# Do we need the lib prefix for modules? 18303need_lib_prefix=$need_lib_prefix 18304 18305# Do we need a version for libraries? 18306need_version=$need_version 18307 18308# Whether dlopen is supported. 18309dlopen_support=$enable_dlopen 18310 18311# Whether dlopen of programs is supported. 18312dlopen_self=$enable_dlopen_self 18313 18314# Whether dlopen of statically linked programs is supported. 18315dlopen_self_static=$enable_dlopen_self_static 18316 18317# Compiler flag to prevent dynamic linking. 18318link_static_flag=$lt_lt_prog_compiler_static_RC 18319 18320# Compiler flag to turn off builtin functions. 18321no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_RC 18322 18323# Compiler flag to allow reflexive dlopens. 18324export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_RC 18325 18326# Compiler flag to generate shared objects directly from archives. 18327whole_archive_flag_spec=$lt_whole_archive_flag_spec_RC 18328 18329# Compiler flag to generate thread-safe objects. 18330thread_safe_flag_spec=$lt_thread_safe_flag_spec_RC 18331 18332# Library versioning type. 18333version_type=$version_type 18334 18335# Format of library name prefix. 18336libname_spec=$lt_libname_spec 18337 18338# List of archive names. First name is the real one, the rest are links. 18339# The last name is the one that the linker finds with -lNAME. 18340library_names_spec=$lt_library_names_spec 18341 18342# The coded name of the library, if different from the real name. 18343soname_spec=$lt_soname_spec 18344 18345# Commands used to build and install an old-style archive. 18346RANLIB=$lt_RANLIB 18347old_archive_cmds=$lt_old_archive_cmds_RC 18348old_postinstall_cmds=$lt_old_postinstall_cmds 18349old_postuninstall_cmds=$lt_old_postuninstall_cmds 18350 18351# Create an old-style archive from a shared archive. 18352old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_RC 18353 18354# Create a temporary old-style archive to link instead of a shared archive. 18355old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_RC 18356 18357# Commands used to build and install a shared archive. 18358archive_cmds=$lt_archive_cmds_RC 18359archive_expsym_cmds=$lt_archive_expsym_cmds_RC 18360postinstall_cmds=$lt_postinstall_cmds 18361postuninstall_cmds=$lt_postuninstall_cmds 18362 18363# Commands used to build a loadable module (assumed same as above if empty) 18364module_cmds=$lt_module_cmds_RC 18365module_expsym_cmds=$lt_module_expsym_cmds_RC 18366 18367# Commands to strip libraries. 18368old_striplib=$lt_old_striplib 18369striplib=$lt_striplib 18370 18371# Dependencies to place before the objects being linked to create a 18372# shared library. 18373predep_objects=$lt_predep_objects_RC 18374 18375# Dependencies to place after the objects being linked to create a 18376# shared library. 18377postdep_objects=$lt_postdep_objects_RC 18378 18379# Dependencies to place before the objects being linked to create a 18380# shared library. 18381predeps=$lt_predeps_RC 18382 18383# Dependencies to place after the objects being linked to create a 18384# shared library. 18385postdeps=$lt_postdeps_RC 18386 18387# The library search path used internally by the compiler when linking 18388# a shared library. 18389compiler_lib_search_path=$lt_compiler_lib_search_path_RC 18390 18391# Method to check whether dependent libraries are shared objects. 18392deplibs_check_method=$lt_deplibs_check_method 18393 18394# Command to use when deplibs_check_method == file_magic. 18395file_magic_cmd=$lt_file_magic_cmd 18396 18397# Flag that allows shared libraries with undefined symbols to be built. 18398allow_undefined_flag=$lt_allow_undefined_flag_RC 18399 18400# Flag that forces no undefined symbols. 18401no_undefined_flag=$lt_no_undefined_flag_RC 18402 18403# Commands used to finish a libtool library installation in a directory. 18404finish_cmds=$lt_finish_cmds 18405 18406# Same as above, but a single script fragment to be evaled but not shown. 18407finish_eval=$lt_finish_eval 18408 18409# Take the output of nm and produce a listing of raw symbols and C names. 18410global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 18411 18412# Transform the output of nm in a proper C declaration 18413global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 18414 18415# Transform the output of nm in a C name address pair 18416global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 18417 18418# This is the shared library runtime path variable. 18419runpath_var=$runpath_var 18420 18421# This is the shared library path variable. 18422shlibpath_var=$shlibpath_var 18423 18424# Is shlibpath searched before the hard-coded library search path? 18425shlibpath_overrides_runpath=$shlibpath_overrides_runpath 18426 18427# How to hardcode a shared library path into an executable. 18428hardcode_action=$hardcode_action_RC 18429 18430# Whether we should hardcode library paths into libraries. 18431hardcode_into_libs=$hardcode_into_libs 18432 18433# Flag to hardcode \$libdir into a binary during linking. 18434# This must work even if \$libdir does not exist. 18435hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_RC 18436 18437# If ld is used when linking, flag to hardcode \$libdir into 18438# a binary during linking. This must work even if \$libdir does 18439# not exist. 18440hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_RC 18441 18442# Whether we need a single -rpath flag with a separated argument. 18443hardcode_libdir_separator=$lt_hardcode_libdir_separator_RC 18444 18445# Set to yes if using DIR/libNAME${shared_ext} during linking hardcodes DIR into the 18446# resulting binary. 18447hardcode_direct=$hardcode_direct_RC 18448 18449# Set to yes if using the -LDIR flag during linking hardcodes DIR into the 18450# resulting binary. 18451hardcode_minus_L=$hardcode_minus_L_RC 18452 18453# Set to yes if using SHLIBPATH_VAR=DIR during linking hardcodes DIR into 18454# the resulting binary. 18455hardcode_shlibpath_var=$hardcode_shlibpath_var_RC 18456 18457# Set to yes if building a shared library automatically hardcodes DIR into the library 18458# and all subsequent libraries and executables linked against it. 18459hardcode_automatic=$hardcode_automatic_RC 18460 18461# Variables whose values should be saved in libtool wrapper scripts and 18462# restored at relink time. 18463variables_saved_for_relink="$variables_saved_for_relink" 18464 18465# Whether libtool must link a program against all its dependency libraries. 18466link_all_deplibs=$link_all_deplibs_RC 18467 18468# Compile-time system search path for libraries 18469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 18470 18471# Run-time system search path for libraries 18472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 18473 18474# Fix the shell variable \$srcfile for the compiler. 18475fix_srcfile_path="$fix_srcfile_path_RC" 18476 18477# Set to yes if exported symbols are required. 18478always_export_symbols=$always_export_symbols_RC 18479 18480# The commands to list exported symbols. 18481export_symbols_cmds=$lt_export_symbols_cmds_RC 18482 18483# The commands to extract the exported symbol list from a shared archive. 18484extract_expsyms_cmds=$lt_extract_expsyms_cmds 18485 18486# Symbols that should not be listed in the preloaded symbols. 18487exclude_expsyms=$lt_exclude_expsyms_RC 18488 18489# Symbols that must always be exported. 18490include_expsyms=$lt_include_expsyms_RC 18491 18492# ### END LIBTOOL TAG CONFIG: $tagname 18493 18494__EOF__ 18495 18496 18497else 18498 # If there is no Makefile yet, we rely on a make rule to execute 18499 # `config.status --recheck' to rerun these tests and create the 18500 # libtool script then. 18501 ltmain_in=`echo $ltmain | sed -e 's/\.sh$/.in/'` 18502 if test -f "$ltmain_in"; then 18503 test -f Makefile && make "$ltmain" 18504 fi 18505fi 18506 18507 18508ac_ext=c 18509ac_cpp='$CPP $CPPFLAGS' 18510ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18511ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18512ac_compiler_gnu=$ac_cv_c_compiler_gnu 18513 18514CC="$lt_save_CC" 18515 18516 ;; 18517 18518 *) 18519 { { echo "$as_me:$LINENO: error: Unsupported tag name: $tagname" >&5 18520echo "$as_me: error: Unsupported tag name: $tagname" >&2;} 18521 { (exit 1); exit 1; }; } 18522 ;; 18523 esac 18524 18525 # Append the new tag name to the list of available tags. 18526 if test -n "$tagname" ; then 18527 available_tags="$available_tags $tagname" 18528 fi 18529 fi 18530 done 18531 IFS="$lt_save_ifs" 18532 18533 # Now substitute the updated list of available tags. 18534 if eval "sed -e 's/^available_tags=.*\$/available_tags=\"$available_tags\"/' \"$ofile\" > \"${ofile}T\""; then 18535 mv "${ofile}T" "$ofile" 18536 chmod +x "$ofile" 18537 else 18538 rm -f "${ofile}T" 18539 { { echo "$as_me:$LINENO: error: unable to update list of available tagged configurations." >&5 18540echo "$as_me: error: unable to update list of available tagged configurations." >&2;} 18541 { (exit 1); exit 1; }; } 18542 fi 18543fi 18544 18545 18546# This can be used to rebuild libtool when needed 18547LIBTOOL_DEPS="$ac_aux_dir/ltmain.sh" 18548 18549# Always use our own libtool. 18550LIBTOOL='$(SHELL) $(top_builddir)/libtool' 18551 18552# Prevent multiple expansion 18553 18554 18555 18556 18557 18558 18559 18560 18561 18562 18563 18564 18565 18566 18567 18568 18569 18570 18571 18572 18573 18574 18575LIBTOOL=`echo $LIBTOOL | sed 's,$(top_builddir),$(vigra_builddir),'` 18576 18577 18578# policy: for every package, we define 6 variables 18579# with_package, with_packagelib, with_packageinc, 18580# with_package_I, with_package_L, with_package_l 18581# the first 3 are used for user control in the command line 18582# the last 3 will contain the results of configuration 18583# at the end with_package is "yes" on success, "no" on failure 18584 18585# look for pkg-config 18586# Extract the first word of "pkg-config", so it can be a program name with args. 18587set dummy pkg-config; ac_word=$2 18588echo "$as_me:$LINENO: checking for $ac_word" >&5 18589echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 18590if test "${ac_cv_prog_PKGCONFIG+set}" = set; then 18591 echo $ECHO_N "(cached) $ECHO_C" >&6 18592else 18593 if test -n "$PKGCONFIG"; then 18594 ac_cv_prog_PKGCONFIG="$PKGCONFIG" # Let the user override the test. 18595else 18596as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18597for as_dir in $PATH 18598do 18599 IFS=$as_save_IFS 18600 test -z "$as_dir" && as_dir=. 18601 for ac_exec_ext in '' $ac_executable_extensions; do 18602 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18603 ac_cv_prog_PKGCONFIG="pkg-config" 18604 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 18605 break 2 18606 fi 18607done 18608done 18609 18610fi 18611fi 18612PKGCONFIG=$ac_cv_prog_PKGCONFIG 18613if test -n "$PKGCONFIG"; then 18614 echo "$as_me:$LINENO: result: $PKGCONFIG" >&5 18615echo "${ECHO_T}$PKGCONFIG" >&6 18616else 18617 echo "$as_me:$LINENO: result: no" >&5 18618echo "${ECHO_T}no" >&6 18619fi 18620 18621if test -n "$PKGCONFIG"; then 18622 PKG_CONFIG_PATH="$PKG_CONFIG_PATH${PKG_CONFIG_PATH:+:}/usr/local/lib/pkgconfig" 18623fi 18624 18625# look for extra include directories in $CPPFLAGS 18626INCLUDESEARCHPATH="" 18627 18628for VIGRA_FIND_PATH_i in $CPPFLAGS; do 18629 VIGRA_FIND_PATH_r=`expr "$VIGRA_FIND_PATH_i" : "-I\(.*\)"` 18630 if test -n "$VIGRA_FIND_PATH_r"; then 18631 INCLUDESEARCHPATH="$INCLUDESEARCHPATH $VIGRA_FIND_PATH_r" 18632 fi 18633done 18634 18635CPPFLAGS="" 18636LIBCPPFLAGS="" 18637 18638# look for extra library directories in $LDFLAGS 18639LIBSEARCHPATH="" 18640 18641for VIGRA_FIND_PATH_i in $LDFLAGS; do 18642 VIGRA_FIND_PATH_r=`expr "$VIGRA_FIND_PATH_i" : "-L\(.*\)"` 18643 if test -n "$VIGRA_FIND_PATH_r"; then 18644 LIBSEARCHPATH="$LIBSEARCHPATH $VIGRA_FIND_PATH_r" 18645 fi 18646done 18647 18648LDFLAGS="" 18649 18650# declare supported external packages 18651 18652 if test "xyes" = "x"; then 18653 with_tiffdefault="yes" 18654 else 18655 with_tiffdefault="yes" 18656 fi 18657 # tiff is the package name, support import/export of tiff images the description, yes the default setting 18658 18659# Check whether --with-tiff or --without-tiff was given. 18660if test "${with_tiff+set}" = set; then 18661 withval="$with_tiff" 18662 18663else 18664 with_tiff="$with_tiffdefault" 18665fi; 18666 18667# Check whether --with-tifflib or --without-tifflib was given. 18668if test "${with_tifflib+set}" = set; then 18669 withval="$with_tifflib" 18670 18671fi; 18672 18673# Check whether --with-tiffinc or --without-tiffinc was given. 18674if test "${with_tiffinc+set}" = set; then 18675 withval="$with_tiffinc" 18676 18677fi; 18678 18679 # bring the user's response into a standard form 18680 # if any flag is "no", the main flag should be "no", the others empty 18681 if test "x$with_tiff" = "xno" -o "x$with_tifflib" = "xno" -o "x$with_tiffinc" = "xno"; then 18682 with_tiff="no" 18683 with_tifflib="" 18684 with_tiffinc="" 18685 else 18686 # here, the main flag is either "yes" or a path 18687 # treat "yes" in the auxilliary flags as "" 18688 if test "x$with_tifflib" = "xyes"; then 18689 with_tifflib="" 18690 fi 18691 if test "x$with_tiffinc" = "xyes"; then 18692 with_tiffinc="" 18693 fi 18694 # use a path given in the main flag as the library path 18695 if test "$with_tiff" != "yes" -a "$with_tiff" != "$with_tiffdefault" -a "x$with_tifflib" = "x"; then 18696 with_tifflib="$with_tiff" 18697 fi 18698 # remember in the main flag whether an explicit path was given 18699 if test "x$with_tifflib" != "x" -o "x$with_tiffinc" != "x"; then 18700 with_tiff="explicit" 18701 else 18702 with_tiff="search" 18703 fi 18704 fi 18705 # now $with_[tiff] is either "no", "search", or "explicit" 18706 # $with_[tiff]lib and $with_[tiff]inc are either "" or a path 18707 18708 18709 if test "xyes" = "x"; then 18710 with_jpegdefault="yes" 18711 else 18712 with_jpegdefault="yes" 18713 fi 18714 # jpeg is the package name, support import/export of jpeg images the description, yes the default setting 18715 18716# Check whether --with-jpeg or --without-jpeg was given. 18717if test "${with_jpeg+set}" = set; then 18718 withval="$with_jpeg" 18719 18720else 18721 with_jpeg="$with_jpegdefault" 18722fi; 18723 18724# Check whether --with-jpeglib or --without-jpeglib was given. 18725if test "${with_jpeglib+set}" = set; then 18726 withval="$with_jpeglib" 18727 18728fi; 18729 18730# Check whether --with-jpeginc or --without-jpeginc was given. 18731if test "${with_jpeginc+set}" = set; then 18732 withval="$with_jpeginc" 18733 18734fi; 18735 18736 # bring the user's response into a standard form 18737 # if any flag is "no", the main flag should be "no", the others empty 18738 if test "x$with_jpeg" = "xno" -o "x$with_jpeglib" = "xno" -o "x$with_jpeginc" = "xno"; then 18739 with_jpeg="no" 18740 with_jpeglib="" 18741 with_jpeginc="" 18742 else 18743 # here, the main flag is either "yes" or a path 18744 # treat "yes" in the auxilliary flags as "" 18745 if test "x$with_jpeglib" = "xyes"; then 18746 with_jpeglib="" 18747 fi 18748 if test "x$with_jpeginc" = "xyes"; then 18749 with_jpeginc="" 18750 fi 18751 # use a path given in the main flag as the library path 18752 if test "$with_jpeg" != "yes" -a "$with_jpeg" != "$with_jpegdefault" -a "x$with_jpeglib" = "x"; then 18753 with_jpeglib="$with_jpeg" 18754 fi 18755 # remember in the main flag whether an explicit path was given 18756 if test "x$with_jpeglib" != "x" -o "x$with_jpeginc" != "x"; then 18757 with_jpeg="explicit" 18758 else 18759 with_jpeg="search" 18760 fi 18761 fi 18762 # now $with_[jpeg] is either "no", "search", or "explicit" 18763 # $with_[jpeg]lib and $with_[jpeg]inc are either "" or a path 18764 18765 18766 if test "xyes" = "x"; then 18767 with_pngdefault="yes" 18768 else 18769 with_pngdefault="yes" 18770 fi 18771 # png is the package name, support import/export of png images the description, yes the default setting 18772 18773# Check whether --with-png or --without-png was given. 18774if test "${with_png+set}" = set; then 18775 withval="$with_png" 18776 18777else 18778 with_png="$with_pngdefault" 18779fi; 18780 18781# Check whether --with-pnglib or --without-pnglib was given. 18782if test "${with_pnglib+set}" = set; then 18783 withval="$with_pnglib" 18784 18785fi; 18786 18787# Check whether --with-pnginc or --without-pnginc was given. 18788if test "${with_pnginc+set}" = set; then 18789 withval="$with_pnginc" 18790 18791fi; 18792 18793 # bring the user's response into a standard form 18794 # if any flag is "no", the main flag should be "no", the others empty 18795 if test "x$with_png" = "xno" -o "x$with_pnglib" = "xno" -o "x$with_pnginc" = "xno"; then 18796 with_png="no" 18797 with_pnglib="" 18798 with_pnginc="" 18799 else 18800 # here, the main flag is either "yes" or a path 18801 # treat "yes" in the auxilliary flags as "" 18802 if test "x$with_pnglib" = "xyes"; then 18803 with_pnglib="" 18804 fi 18805 if test "x$with_pnginc" = "xyes"; then 18806 with_pnginc="" 18807 fi 18808 # use a path given in the main flag as the library path 18809 if test "$with_png" != "yes" -a "$with_png" != "$with_pngdefault" -a "x$with_pnglib" = "x"; then 18810 with_pnglib="$with_png" 18811 fi 18812 # remember in the main flag whether an explicit path was given 18813 if test "x$with_pnglib" != "x" -o "x$with_pnginc" != "x"; then 18814 with_png="explicit" 18815 else 18816 with_png="search" 18817 fi 18818 fi 18819 # now $with_[png] is either "no", "search", or "explicit" 18820 # $with_[png]lib and $with_[png]inc are either "" or a path 18821 18822 18823 if test "xyes" = "x"; then 18824 with_zlibdefault="yes" 18825 else 18826 with_zlibdefault="yes" 18827 fi 18828 # zlib is the package name, zlib compression library (required for libpng) the description, yes the default setting 18829 18830# Check whether --with-zlib or --without-zlib was given. 18831if test "${with_zlib+set}" = set; then 18832 withval="$with_zlib" 18833 18834else 18835 with_zlib="$with_zlibdefault" 18836fi; 18837 18838# Check whether --with-zliblib or --without-zliblib was given. 18839if test "${with_zliblib+set}" = set; then 18840 withval="$with_zliblib" 18841 18842fi; 18843 18844# Check whether --with-zlibinc or --without-zlibinc was given. 18845if test "${with_zlibinc+set}" = set; then 18846 withval="$with_zlibinc" 18847 18848fi; 18849 18850 # bring the user's response into a standard form 18851 # if any flag is "no", the main flag should be "no", the others empty 18852 if test "x$with_zlib" = "xno" -o "x$with_zliblib" = "xno" -o "x$with_zlibinc" = "xno"; then 18853 with_zlib="no" 18854 with_zliblib="" 18855 with_zlibinc="" 18856 else 18857 # here, the main flag is either "yes" or a path 18858 # treat "yes" in the auxilliary flags as "" 18859 if test "x$with_zliblib" = "xyes"; then 18860 with_zliblib="" 18861 fi 18862 if test "x$with_zlibinc" = "xyes"; then 18863 with_zlibinc="" 18864 fi 18865 # use a path given in the main flag as the library path 18866 if test "$with_zlib" != "yes" -a "$with_zlib" != "$with_zlibdefault" -a "x$with_zliblib" = "x"; then 18867 with_zliblib="$with_zlib" 18868 fi 18869 # remember in the main flag whether an explicit path was given 18870 if test "x$with_zliblib" != "x" -o "x$with_zlibinc" != "x"; then 18871 with_zlib="explicit" 18872 else 18873 with_zlib="search" 18874 fi 18875 fi 18876 # now $with_[zlib] is either "no", "search", or "explicit" 18877 # $with_[zlib]lib and $with_[zlib]inc are either "" or a path 18878 18879 18880 if test "xyes" = "x"; then 18881 with_fftwdefault="yes" 18882 else 18883 with_fftwdefault="yes" 18884 fi 18885 # fftw is the package name, support fast Fourier transforms (fftw3 required!) the description, yes the default setting 18886 18887# Check whether --with-fftw or --without-fftw was given. 18888if test "${with_fftw+set}" = set; then 18889 withval="$with_fftw" 18890 18891else 18892 with_fftw="$with_fftwdefault" 18893fi; 18894 18895# Check whether --with-fftwlib or --without-fftwlib was given. 18896if test "${with_fftwlib+set}" = set; then 18897 withval="$with_fftwlib" 18898 18899fi; 18900 18901# Check whether --with-fftwinc or --without-fftwinc was given. 18902if test "${with_fftwinc+set}" = set; then 18903 withval="$with_fftwinc" 18904 18905fi; 18906 18907 # bring the user's response into a standard form 18908 # if any flag is "no", the main flag should be "no", the others empty 18909 if test "x$with_fftw" = "xno" -o "x$with_fftwlib" = "xno" -o "x$with_fftwinc" = "xno"; then 18910 with_fftw="no" 18911 with_fftwlib="" 18912 with_fftwinc="" 18913 else 18914 # here, the main flag is either "yes" or a path 18915 # treat "yes" in the auxilliary flags as "" 18916 if test "x$with_fftwlib" = "xyes"; then 18917 with_fftwlib="" 18918 fi 18919 if test "x$with_fftwinc" = "xyes"; then 18920 with_fftwinc="" 18921 fi 18922 # use a path given in the main flag as the library path 18923 if test "$with_fftw" != "yes" -a "$with_fftw" != "$with_fftwdefault" -a "x$with_fftwlib" = "x"; then 18924 with_fftwlib="$with_fftw" 18925 fi 18926 # remember in the main flag whether an explicit path was given 18927 if test "x$with_fftwlib" != "x" -o "x$with_fftwinc" != "x"; then 18928 with_fftw="explicit" 18929 else 18930 with_fftw="search" 18931 fi 18932 fi 18933 # now $with_[fftw] is either "no", "search", or "explicit" 18934 # $with_[fftw]lib and $with_[fftw]inc are either "" or a path 18935 18936 18937# AC_ARG_WITH(python, [ 18938# --with-python: Build the VIGRA Python bindings (default: no). 18939# The python executable must be in the path or given by $PYTHON], ,[with_python="no"]) 18940# AC_ARG_WITH(pythoninstall, [--with-pythoninstall=dir: install the VIGRA Python modules in 'dir' instead of the 18941# default Python module directory (requires adding 'dir' 18942# to $PYTHONPATH)], ,) 18943with_python="no" 18944 18945 18946 if test "x$with_python" = "x"; then 18947 with_boostpythondefault="yes" 18948 else 18949 with_boostpythondefault="$with_python" 18950 fi 18951 # boostpython is the package name, boost_python glue code generator (required for VIGRA Python bindings) the description, $with_python the default setting 18952 18953# Check whether --with-boostpython or --without-boostpython was given. 18954if test "${with_boostpython+set}" = set; then 18955 withval="$with_boostpython" 18956 18957else 18958 with_boostpython="$with_boostpythondefault" 18959fi; 18960 18961# Check whether --with-boostpythonlib or --without-boostpythonlib was given. 18962if test "${with_boostpythonlib+set}" = set; then 18963 withval="$with_boostpythonlib" 18964 18965fi; 18966 18967# Check whether --with-boostpythoninc or --without-boostpythoninc was given. 18968if test "${with_boostpythoninc+set}" = set; then 18969 withval="$with_boostpythoninc" 18970 18971fi; 18972 18973 # bring the user's response into a standard form 18974 # if any flag is "no", the main flag should be "no", the others empty 18975 if test "x$with_boostpython" = "xno" -o "x$with_boostpythonlib" = "xno" -o "x$with_boostpythoninc" = "xno"; then 18976 with_boostpython="no" 18977 with_boostpythonlib="" 18978 with_boostpythoninc="" 18979 else 18980 # here, the main flag is either "yes" or a path 18981 # treat "yes" in the auxilliary flags as "" 18982 if test "x$with_boostpythonlib" = "xyes"; then 18983 with_boostpythonlib="" 18984 fi 18985 if test "x$with_boostpythoninc" = "xyes"; then 18986 with_boostpythoninc="" 18987 fi 18988 # use a path given in the main flag as the library path 18989 if test "$with_boostpython" != "yes" -a "$with_boostpython" != "$with_boostpythondefault" -a "x$with_boostpythonlib" = "x"; then 18990 with_boostpythonlib="$with_boostpython" 18991 fi 18992 # remember in the main flag whether an explicit path was given 18993 if test "x$with_boostpythonlib" != "x" -o "x$with_boostpythoninc" != "x"; then 18994 with_boostpython="explicit" 18995 else 18996 with_boostpython="search" 18997 fi 18998 fi 18999 # now $with_[boostpython] is either "no", "search", or "explicit" 19000 # $with_[boostpython]lib and $with_[boostpython]inc are either "" or a path 19001 19002 19003# Check whether --with-boostpythonname or --without-boostpythonname was given. 19004if test "${with_boostpythonname+set}" = set; then 19005 withval="$with_boostpythonname" 19006 19007fi; 19008 19009 19010LIBS="-lm" # needed by libtiff 19011 19012 if test ${with_tiff:-""} != "no"; then 19013 19014 echo "$as_me:$LINENO: checking for libtiff " >&5 19015echo $ECHO_N "checking for libtiff ... $ECHO_C" >&6 19016 19017 # if we got an explicit path, that's the only one we check 19018 if test "x$with_tiff" = "xexplicit" -a "x$with_tifflib" != "x"; then 19019 19020 # save the state 19021 SAVELDFLAGS="$LDFLAGS" 19022 SAVELIBS="$LIBS" 19023 19024 19025 ac_ext=cc 19026ac_cpp='$CXXCPP $CPPFLAGS' 19027ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19028ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19029ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19030 19031 19032 # tiff is the package, tiff the library name, "$with_tifflib" the path 19033 if test "x"$with_tifflib"" != "x" ; then 19034 LDFLAGS="-L"$with_tifflib" $SAVELDFLAGS" 19035 LIBS="-ltiff $SAVELIBS" 19036 cat >conftest.$ac_ext <<_ACEOF 19037/* confdefs.h. */ 19038_ACEOF 19039cat confdefs.h >>conftest.$ac_ext 19040cat >>conftest.$ac_ext <<_ACEOF 19041/* end confdefs.h. */ 19042 19043int 19044main () 19045{ 19046 19047 ; 19048 return 0; 19049} 19050_ACEOF 19051rm -f conftest.$ac_objext conftest$ac_exeext 19052if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19053 (eval $ac_link) 2>conftest.er1 19054 ac_status=$? 19055 grep -v '^ *+' conftest.er1 >conftest.err 19056 rm -f conftest.er1 19057 cat conftest.err >&5 19058 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19059 (exit $ac_status); } && 19060 { ac_try='test -z "$ac_cxx_werror_flag" 19061 || test ! -s conftest.err' 19062 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19063 (eval $ac_try) 2>&5 19064 ac_status=$? 19065 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19066 (exit $ac_status); }; } && 19067 { ac_try='test -s conftest$ac_exeext' 19068 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19069 (eval $ac_try) 2>&5 19070 ac_status=$? 19071 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19072 (exit $ac_status); }; }; then 19073 with_tifflib=""$with_tifflib"" 19074 with_tiff_L="$LDFLAGS" 19075 with_tiff_l="$LIBS" 19076else 19077 echo "$as_me: failed program was:" >&5 19078sed 's/^/| /' conftest.$ac_ext >&5 19079 19080with_tifflib="" 19081fi 19082rm -f conftest.err conftest.$ac_objext \ 19083 conftest$ac_exeext conftest.$ac_ext 19084 else 19085 LIBS="-ltiff $SAVELIBS" 19086 cat >conftest.$ac_ext <<_ACEOF 19087/* confdefs.h. */ 19088_ACEOF 19089cat confdefs.h >>conftest.$ac_ext 19090cat >>conftest.$ac_ext <<_ACEOF 19091/* end confdefs.h. */ 19092 19093int 19094main () 19095{ 19096 19097 ; 19098 return 0; 19099} 19100_ACEOF 19101rm -f conftest.$ac_objext conftest$ac_exeext 19102if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19103 (eval $ac_link) 2>conftest.er1 19104 ac_status=$? 19105 grep -v '^ *+' conftest.er1 >conftest.err 19106 rm -f conftest.er1 19107 cat conftest.err >&5 19108 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19109 (exit $ac_status); } && 19110 { ac_try='test -z "$ac_cxx_werror_flag" 19111 || test ! -s conftest.err' 19112 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19113 (eval $ac_try) 2>&5 19114 ac_status=$? 19115 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19116 (exit $ac_status); }; } && 19117 { ac_try='test -s conftest$ac_exeext' 19118 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19119 (eval $ac_try) 2>&5 19120 ac_status=$? 19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19122 (exit $ac_status); }; }; then 19123 with_tifflib="in default path" 19124 with_tiff_L="$LDFLAGS" 19125 with_tiff_l="$LIBS" 19126else 19127 echo "$as_me: failed program was:" >&5 19128sed 's/^/| /' conftest.$ac_ext >&5 19129 19130with_tifflib="" 19131fi 19132rm -f conftest.err conftest.$ac_objext \ 19133 conftest$ac_exeext conftest.$ac_ext 19134 fi 19135 # restore the state 19136 ac_ext=c 19137ac_cpp='$CPP $CPPFLAGS' 19138ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19139ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19140ac_compiler_gnu=$ac_cv_c_compiler_gnu 19141 19142 LDFLAGS="$SAVELDFLAGS" 19143 LIBS="$SAVELIBS" 19144 19145 else 19146 # otherwise check whether the library is found without explicit path 19147 # specification (e.g. because it is in /usr/lib) 19148 if test "x$with_tifflib" = "x" ; then 19149 19150 # save the state 19151 SAVELDFLAGS="$LDFLAGS" 19152 SAVELIBS="$LIBS" 19153 19154 19155 ac_ext=cc 19156ac_cpp='$CXXCPP $CPPFLAGS' 19157ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19158ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19159ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19160 19161 19162 # tiff is the package, tiff the library name, "" the path 19163 if test "x""" != "x" ; then 19164 LDFLAGS="-L"" $SAVELDFLAGS" 19165 LIBS="-ltiff $SAVELIBS" 19166 cat >conftest.$ac_ext <<_ACEOF 19167/* confdefs.h. */ 19168_ACEOF 19169cat confdefs.h >>conftest.$ac_ext 19170cat >>conftest.$ac_ext <<_ACEOF 19171/* end confdefs.h. */ 19172 19173int 19174main () 19175{ 19176 19177 ; 19178 return 0; 19179} 19180_ACEOF 19181rm -f conftest.$ac_objext conftest$ac_exeext 19182if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19183 (eval $ac_link) 2>conftest.er1 19184 ac_status=$? 19185 grep -v '^ *+' conftest.er1 >conftest.err 19186 rm -f conftest.er1 19187 cat conftest.err >&5 19188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19189 (exit $ac_status); } && 19190 { ac_try='test -z "$ac_cxx_werror_flag" 19191 || test ! -s conftest.err' 19192 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19193 (eval $ac_try) 2>&5 19194 ac_status=$? 19195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19196 (exit $ac_status); }; } && 19197 { ac_try='test -s conftest$ac_exeext' 19198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19199 (eval $ac_try) 2>&5 19200 ac_status=$? 19201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19202 (exit $ac_status); }; }; then 19203 with_tifflib="""" 19204 with_tiff_L="$LDFLAGS" 19205 with_tiff_l="$LIBS" 19206else 19207 echo "$as_me: failed program was:" >&5 19208sed 's/^/| /' conftest.$ac_ext >&5 19209 19210with_tifflib="" 19211fi 19212rm -f conftest.err conftest.$ac_objext \ 19213 conftest$ac_exeext conftest.$ac_ext 19214 else 19215 LIBS="-ltiff $SAVELIBS" 19216 cat >conftest.$ac_ext <<_ACEOF 19217/* confdefs.h. */ 19218_ACEOF 19219cat confdefs.h >>conftest.$ac_ext 19220cat >>conftest.$ac_ext <<_ACEOF 19221/* end confdefs.h. */ 19222 19223int 19224main () 19225{ 19226 19227 ; 19228 return 0; 19229} 19230_ACEOF 19231rm -f conftest.$ac_objext conftest$ac_exeext 19232if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19233 (eval $ac_link) 2>conftest.er1 19234 ac_status=$? 19235 grep -v '^ *+' conftest.er1 >conftest.err 19236 rm -f conftest.er1 19237 cat conftest.err >&5 19238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19239 (exit $ac_status); } && 19240 { ac_try='test -z "$ac_cxx_werror_flag" 19241 || test ! -s conftest.err' 19242 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19243 (eval $ac_try) 2>&5 19244 ac_status=$? 19245 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19246 (exit $ac_status); }; } && 19247 { ac_try='test -s conftest$ac_exeext' 19248 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19249 (eval $ac_try) 2>&5 19250 ac_status=$? 19251 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19252 (exit $ac_status); }; }; then 19253 with_tifflib="in default path" 19254 with_tiff_L="$LDFLAGS" 19255 with_tiff_l="$LIBS" 19256else 19257 echo "$as_me: failed program was:" >&5 19258sed 's/^/| /' conftest.$ac_ext >&5 19259 19260with_tifflib="" 19261fi 19262rm -f conftest.err conftest.$ac_objext \ 19263 conftest$ac_exeext conftest.$ac_ext 19264 fi 19265 # restore the state 19266 ac_ext=c 19267ac_cpp='$CPP $CPPFLAGS' 19268ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19269ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19270ac_compiler_gnu=$ac_cv_c_compiler_gnu 19271 19272 LDFLAGS="$SAVELDFLAGS" 19273 LIBS="$SAVELIBS" 19274 19275 fi 19276 # if this didn't work check whether the library path was in the 19277 # original $LDFLAGS or a few standard directories 19278 if test "x$with_tifflib" = "x" ; then 19279 for i in $LIBSEARCHPATH /usr/local/lib/tiff /usr/local/lib; do 19280 19281 # save the state 19282 SAVELDFLAGS="$LDFLAGS" 19283 SAVELIBS="$LIBS" 19284 19285 19286 ac_ext=cc 19287ac_cpp='$CXXCPP $CPPFLAGS' 19288ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19289ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19290ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19291 19292 19293 # tiff is the package, tiff the library name, "$i" the path 19294 if test "x"$i"" != "x" ; then 19295 LDFLAGS="-L"$i" $SAVELDFLAGS" 19296 LIBS="-ltiff $SAVELIBS" 19297 cat >conftest.$ac_ext <<_ACEOF 19298/* confdefs.h. */ 19299_ACEOF 19300cat confdefs.h >>conftest.$ac_ext 19301cat >>conftest.$ac_ext <<_ACEOF 19302/* end confdefs.h. */ 19303 19304int 19305main () 19306{ 19307 19308 ; 19309 return 0; 19310} 19311_ACEOF 19312rm -f conftest.$ac_objext conftest$ac_exeext 19313if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19314 (eval $ac_link) 2>conftest.er1 19315 ac_status=$? 19316 grep -v '^ *+' conftest.er1 >conftest.err 19317 rm -f conftest.er1 19318 cat conftest.err >&5 19319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19320 (exit $ac_status); } && 19321 { ac_try='test -z "$ac_cxx_werror_flag" 19322 || test ! -s conftest.err' 19323 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19324 (eval $ac_try) 2>&5 19325 ac_status=$? 19326 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19327 (exit $ac_status); }; } && 19328 { ac_try='test -s conftest$ac_exeext' 19329 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19330 (eval $ac_try) 2>&5 19331 ac_status=$? 19332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19333 (exit $ac_status); }; }; then 19334 with_tifflib=""$i"" 19335 with_tiff_L="$LDFLAGS" 19336 with_tiff_l="$LIBS" 19337else 19338 echo "$as_me: failed program was:" >&5 19339sed 's/^/| /' conftest.$ac_ext >&5 19340 19341with_tifflib="" 19342fi 19343rm -f conftest.err conftest.$ac_objext \ 19344 conftest$ac_exeext conftest.$ac_ext 19345 else 19346 LIBS="-ltiff $SAVELIBS" 19347 cat >conftest.$ac_ext <<_ACEOF 19348/* confdefs.h. */ 19349_ACEOF 19350cat confdefs.h >>conftest.$ac_ext 19351cat >>conftest.$ac_ext <<_ACEOF 19352/* end confdefs.h. */ 19353 19354int 19355main () 19356{ 19357 19358 ; 19359 return 0; 19360} 19361_ACEOF 19362rm -f conftest.$ac_objext conftest$ac_exeext 19363if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19364 (eval $ac_link) 2>conftest.er1 19365 ac_status=$? 19366 grep -v '^ *+' conftest.er1 >conftest.err 19367 rm -f conftest.er1 19368 cat conftest.err >&5 19369 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19370 (exit $ac_status); } && 19371 { ac_try='test -z "$ac_cxx_werror_flag" 19372 || test ! -s conftest.err' 19373 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19374 (eval $ac_try) 2>&5 19375 ac_status=$? 19376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19377 (exit $ac_status); }; } && 19378 { ac_try='test -s conftest$ac_exeext' 19379 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19380 (eval $ac_try) 2>&5 19381 ac_status=$? 19382 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19383 (exit $ac_status); }; }; then 19384 with_tifflib="in default path" 19385 with_tiff_L="$LDFLAGS" 19386 with_tiff_l="$LIBS" 19387else 19388 echo "$as_me: failed program was:" >&5 19389sed 's/^/| /' conftest.$ac_ext >&5 19390 19391with_tifflib="" 19392fi 19393rm -f conftest.err conftest.$ac_objext \ 19394 conftest$ac_exeext conftest.$ac_ext 19395 fi 19396 # restore the state 19397 ac_ext=c 19398ac_cpp='$CPP $CPPFLAGS' 19399ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19400ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19401ac_compiler_gnu=$ac_cv_c_compiler_gnu 19402 19403 LDFLAGS="$SAVELDFLAGS" 19404 LIBS="$SAVELIBS" 19405 19406 if test "x$with_tifflib" != "x" ; then break; fi 19407 done 19408 fi 19409 fi 19410 19411 # report the results back 19412 if test "x$with_tifflib" = "x"; then 19413 echo "$as_me:$LINENO: result: not found" >&5 19414echo "${ECHO_T}not found" >&6 19415 with_tiff="no" 19416 else 19417 echo "$as_me:$LINENO: result: $with_tifflib" >&5 19418echo "${ECHO_T}$with_tifflib" >&6 19419 if test "$with_tifflib" = "in default path"; then 19420 with_tifflib="" 19421 fi 19422 fi 19423 19424 if test ${with_tiff:-""} != "no"; then 19425 19426 echo "$as_me:$LINENO: checking for tiff.h " >&5 19427echo $ECHO_N "checking for tiff.h ... $ECHO_C" >&6 19428 19429 # first check whether we got an explicit path 19430 if test "x$with_tiff" = "xexplicit" -a "x$with_tiffinc" != "x"; then 19431 19432 # save the state 19433 SAVECPPFLAGS="$CPPFLAGS" 19434 19435 19436 ac_ext=cc 19437ac_cpp='$CXXCPP $CPPFLAGS' 19438ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19439ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19440ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19441 19442 19443 # tiff is the package, tiff.h the include name, "$with_tiffinc" the path 19444 if test "x"$with_tiffinc"" != "x" ; then 19445 CPPFLAGS="-I"$with_tiffinc" $SAVECPPFLAGS" 19446 cat >conftest.$ac_ext <<_ACEOF 19447/* confdefs.h. */ 19448_ACEOF 19449cat confdefs.h >>conftest.$ac_ext 19450cat >>conftest.$ac_ext <<_ACEOF 19451/* end confdefs.h. */ 19452#include <stdio.h> /* for jpeglib.h */ 19453 #include <tiff.h> 19454 19455int 19456main () 19457{ 19458 19459 ; 19460 return 0; 19461} 19462_ACEOF 19463rm -f conftest.$ac_objext 19464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19465 (eval $ac_compile) 2>conftest.er1 19466 ac_status=$? 19467 grep -v '^ *+' conftest.er1 >conftest.err 19468 rm -f conftest.er1 19469 cat conftest.err >&5 19470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19471 (exit $ac_status); } && 19472 { ac_try='test -z "$ac_cxx_werror_flag" 19473 || test ! -s conftest.err' 19474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19475 (eval $ac_try) 2>&5 19476 ac_status=$? 19477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19478 (exit $ac_status); }; } && 19479 { ac_try='test -s conftest.$ac_objext' 19480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19481 (eval $ac_try) 2>&5 19482 ac_status=$? 19483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19484 (exit $ac_status); }; }; then 19485 with_tiffinc=""$with_tiffinc"" 19486 with_tiff_I="$CPPFLAGS" 19487else 19488 echo "$as_me: failed program was:" >&5 19489sed 's/^/| /' conftest.$ac_ext >&5 19490 19491with_tiffinc="" 19492fi 19493rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19494 else 19495 cat >conftest.$ac_ext <<_ACEOF 19496/* confdefs.h. */ 19497_ACEOF 19498cat confdefs.h >>conftest.$ac_ext 19499cat >>conftest.$ac_ext <<_ACEOF 19500/* end confdefs.h. */ 19501#include <stdio.h> /* for jpeglib.h */ 19502 #include <tiff.h> 19503 19504int 19505main () 19506{ 19507 19508 ; 19509 return 0; 19510} 19511_ACEOF 19512rm -f conftest.$ac_objext 19513if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19514 (eval $ac_compile) 2>conftest.er1 19515 ac_status=$? 19516 grep -v '^ *+' conftest.er1 >conftest.err 19517 rm -f conftest.er1 19518 cat conftest.err >&5 19519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19520 (exit $ac_status); } && 19521 { ac_try='test -z "$ac_cxx_werror_flag" 19522 || test ! -s conftest.err' 19523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19524 (eval $ac_try) 2>&5 19525 ac_status=$? 19526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19527 (exit $ac_status); }; } && 19528 { ac_try='test -s conftest.$ac_objext' 19529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19530 (eval $ac_try) 2>&5 19531 ac_status=$? 19532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19533 (exit $ac_status); }; }; then 19534 with_tiffinc="in default path" 19535 with_tiff_I="$CPPFLAGS" 19536else 19537 echo "$as_me: failed program was:" >&5 19538sed 's/^/| /' conftest.$ac_ext >&5 19539 19540with_tiffinc="" 19541fi 19542rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19543 fi 19544 # restore the state 19545 ac_ext=c 19546ac_cpp='$CPP $CPPFLAGS' 19547ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19548ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19549ac_compiler_gnu=$ac_cv_c_compiler_gnu 19550 19551 CPPFLAGS="$SAVECPPFLAGS" 19552 19553 else 19554 # otherwise check whether the library is found without explicit path 19555 # specification (e.g. because it is in /usr/lib) 19556 if test "x$with_tiffinc" = "x" ; then 19557 19558 # save the state 19559 SAVECPPFLAGS="$CPPFLAGS" 19560 19561 19562 ac_ext=cc 19563ac_cpp='$CXXCPP $CPPFLAGS' 19564ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19565ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19566ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19567 19568 19569 # tiff is the package, tiff.h the include name, "" the path 19570 if test "x""" != "x" ; then 19571 CPPFLAGS="-I"" $SAVECPPFLAGS" 19572 cat >conftest.$ac_ext <<_ACEOF 19573/* confdefs.h. */ 19574_ACEOF 19575cat confdefs.h >>conftest.$ac_ext 19576cat >>conftest.$ac_ext <<_ACEOF 19577/* end confdefs.h. */ 19578#include <stdio.h> /* for jpeglib.h */ 19579 #include <tiff.h> 19580 19581int 19582main () 19583{ 19584 19585 ; 19586 return 0; 19587} 19588_ACEOF 19589rm -f conftest.$ac_objext 19590if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19591 (eval $ac_compile) 2>conftest.er1 19592 ac_status=$? 19593 grep -v '^ *+' conftest.er1 >conftest.err 19594 rm -f conftest.er1 19595 cat conftest.err >&5 19596 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19597 (exit $ac_status); } && 19598 { ac_try='test -z "$ac_cxx_werror_flag" 19599 || test ! -s conftest.err' 19600 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19601 (eval $ac_try) 2>&5 19602 ac_status=$? 19603 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19604 (exit $ac_status); }; } && 19605 { ac_try='test -s conftest.$ac_objext' 19606 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19607 (eval $ac_try) 2>&5 19608 ac_status=$? 19609 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19610 (exit $ac_status); }; }; then 19611 with_tiffinc="""" 19612 with_tiff_I="$CPPFLAGS" 19613else 19614 echo "$as_me: failed program was:" >&5 19615sed 's/^/| /' conftest.$ac_ext >&5 19616 19617with_tiffinc="" 19618fi 19619rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19620 else 19621 cat >conftest.$ac_ext <<_ACEOF 19622/* confdefs.h. */ 19623_ACEOF 19624cat confdefs.h >>conftest.$ac_ext 19625cat >>conftest.$ac_ext <<_ACEOF 19626/* end confdefs.h. */ 19627#include <stdio.h> /* for jpeglib.h */ 19628 #include <tiff.h> 19629 19630int 19631main () 19632{ 19633 19634 ; 19635 return 0; 19636} 19637_ACEOF 19638rm -f conftest.$ac_objext 19639if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19640 (eval $ac_compile) 2>conftest.er1 19641 ac_status=$? 19642 grep -v '^ *+' conftest.er1 >conftest.err 19643 rm -f conftest.er1 19644 cat conftest.err >&5 19645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19646 (exit $ac_status); } && 19647 { ac_try='test -z "$ac_cxx_werror_flag" 19648 || test ! -s conftest.err' 19649 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19650 (eval $ac_try) 2>&5 19651 ac_status=$? 19652 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19653 (exit $ac_status); }; } && 19654 { ac_try='test -s conftest.$ac_objext' 19655 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19656 (eval $ac_try) 2>&5 19657 ac_status=$? 19658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19659 (exit $ac_status); }; }; then 19660 with_tiffinc="in default path" 19661 with_tiff_I="$CPPFLAGS" 19662else 19663 echo "$as_me: failed program was:" >&5 19664sed 's/^/| /' conftest.$ac_ext >&5 19665 19666with_tiffinc="" 19667fi 19668rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19669 fi 19670 # restore the state 19671 ac_ext=c 19672ac_cpp='$CPP $CPPFLAGS' 19673ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19674ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19675ac_compiler_gnu=$ac_cv_c_compiler_gnu 19676 19677 CPPFLAGS="$SAVECPPFLAGS" 19678 19679 fi 19680 # if this didn't work check whether the library path is in the 19681 # same tree as the library path, or among the directories in the 19682 # original $CPPFLAGS or a few standard directories 19683 if test -n ""; then 19684 PATHPOSTFIX="/" 19685 else 19686 PATHPOSTFIX="" 19687 fi 19688 EXTRAINCSEARCHPATH="" 19689 i="$with_tifflib" 19690 while test "x$i" != "x"; do 19691 if test -d "${i}/include"; then 19692 EXTRAINCSEARCHPATH="$EXTRAINCSEARCHPATH ${i}/include" 19693 fi 19694 j=`expr "$i" : "\(.*\)/"` 19695 i=$j 19696 done 19697 if test "x$with_tiffinc" = "x" ; then 19698 for i in $EXTRAINCSEARCHPATH $INCSEARCHPATH /usr/local/include/tiff /usr/local/include; do 19699 19700 # save the state 19701 SAVECPPFLAGS="$CPPFLAGS" 19702 19703 19704 ac_ext=cc 19705ac_cpp='$CXXCPP $CPPFLAGS' 19706ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19707ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19708ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19709 19710 19711 # tiff is the package, tiff.h the include name, "$i$PATHPOSTFIX" the path 19712 if test "x"$i$PATHPOSTFIX"" != "x" ; then 19713 CPPFLAGS="-I"$i$PATHPOSTFIX" $SAVECPPFLAGS" 19714 cat >conftest.$ac_ext <<_ACEOF 19715/* confdefs.h. */ 19716_ACEOF 19717cat confdefs.h >>conftest.$ac_ext 19718cat >>conftest.$ac_ext <<_ACEOF 19719/* end confdefs.h. */ 19720#include <stdio.h> /* for jpeglib.h */ 19721 #include <tiff.h> 19722 19723int 19724main () 19725{ 19726 19727 ; 19728 return 0; 19729} 19730_ACEOF 19731rm -f conftest.$ac_objext 19732if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19733 (eval $ac_compile) 2>conftest.er1 19734 ac_status=$? 19735 grep -v '^ *+' conftest.er1 >conftest.err 19736 rm -f conftest.er1 19737 cat conftest.err >&5 19738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19739 (exit $ac_status); } && 19740 { ac_try='test -z "$ac_cxx_werror_flag" 19741 || test ! -s conftest.err' 19742 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19743 (eval $ac_try) 2>&5 19744 ac_status=$? 19745 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19746 (exit $ac_status); }; } && 19747 { ac_try='test -s conftest.$ac_objext' 19748 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19749 (eval $ac_try) 2>&5 19750 ac_status=$? 19751 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19752 (exit $ac_status); }; }; then 19753 with_tiffinc=""$i$PATHPOSTFIX"" 19754 with_tiff_I="$CPPFLAGS" 19755else 19756 echo "$as_me: failed program was:" >&5 19757sed 's/^/| /' conftest.$ac_ext >&5 19758 19759with_tiffinc="" 19760fi 19761rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19762 else 19763 cat >conftest.$ac_ext <<_ACEOF 19764/* confdefs.h. */ 19765_ACEOF 19766cat confdefs.h >>conftest.$ac_ext 19767cat >>conftest.$ac_ext <<_ACEOF 19768/* end confdefs.h. */ 19769#include <stdio.h> /* for jpeglib.h */ 19770 #include <tiff.h> 19771 19772int 19773main () 19774{ 19775 19776 ; 19777 return 0; 19778} 19779_ACEOF 19780rm -f conftest.$ac_objext 19781if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19782 (eval $ac_compile) 2>conftest.er1 19783 ac_status=$? 19784 grep -v '^ *+' conftest.er1 >conftest.err 19785 rm -f conftest.er1 19786 cat conftest.err >&5 19787 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19788 (exit $ac_status); } && 19789 { ac_try='test -z "$ac_cxx_werror_flag" 19790 || test ! -s conftest.err' 19791 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19792 (eval $ac_try) 2>&5 19793 ac_status=$? 19794 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19795 (exit $ac_status); }; } && 19796 { ac_try='test -s conftest.$ac_objext' 19797 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19798 (eval $ac_try) 2>&5 19799 ac_status=$? 19800 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19801 (exit $ac_status); }; }; then 19802 with_tiffinc="in default path" 19803 with_tiff_I="$CPPFLAGS" 19804else 19805 echo "$as_me: failed program was:" >&5 19806sed 's/^/| /' conftest.$ac_ext >&5 19807 19808with_tiffinc="" 19809fi 19810rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19811 fi 19812 # restore the state 19813 ac_ext=c 19814ac_cpp='$CPP $CPPFLAGS' 19815ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19816ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19817ac_compiler_gnu=$ac_cv_c_compiler_gnu 19818 19819 CPPFLAGS="$SAVECPPFLAGS" 19820 19821 if test "x$with_tiffinc" != "x" ; then break; fi 19822 done 19823 fi 19824 fi 19825 19826 # report the results back 19827 if test "x$with_tiffinc" = "x"; then 19828 echo "$as_me:$LINENO: result: not found" >&5 19829echo "${ECHO_T}not found" >&6 19830 with_tiff="no" 19831 with_tifflib="" 19832 else 19833 echo "$as_me:$LINENO: result: $with_tiffinc" >&5 19834echo "${ECHO_T}$with_tiffinc" >&6 19835 if test "$with_tiffinc" = "in default path"; then 19836 with_tiffinc="" 19837 fi 19838 fi 19839 19840 if test ${with_tiff:-""} != "no"; then 19841 with_tiff="yes" 19842 fi 19843 fi 19844 fi 19845 19846 19847LIBS="" 19848if test "$with_tiff" = "yes"; then 19849 TIFF_LIB="$with_tiff_L $with_tiff_l" 19850 IMPEX_DEPLIBS="$TIFF_LIB $IMPEX_DEPLIBS" 19851 LIBCPPFLAGS="-DHasTIFF $with_tiff_I $LIBCPPFLAGS" 19852else 19853 { echo "$as_me:$LINENO: WARNING: Configuring without tiff support" >&5 19854echo "$as_me: WARNING: Configuring without tiff support" >&2;} 19855fi 19856 19857 19858 19859 if test ${with_jpeg:-""} != "no"; then 19860 19861 echo "$as_me:$LINENO: checking for libjpeg " >&5 19862echo $ECHO_N "checking for libjpeg ... $ECHO_C" >&6 19863 19864 # if we got an explicit path, that's the only one we check 19865 if test "x$with_jpeg" = "xexplicit" -a "x$with_jpeglib" != "x"; then 19866 19867 # save the state 19868 SAVELDFLAGS="$LDFLAGS" 19869 SAVELIBS="$LIBS" 19870 19871 19872 ac_ext=cc 19873ac_cpp='$CXXCPP $CPPFLAGS' 19874ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19875ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19876ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 19877 19878 19879 # jpeg is the package, jpeg the library name, "$with_jpeglib" the path 19880 if test "x"$with_jpeglib"" != "x" ; then 19881 LDFLAGS="-L"$with_jpeglib" $SAVELDFLAGS" 19882 LIBS="-ljpeg $SAVELIBS" 19883 cat >conftest.$ac_ext <<_ACEOF 19884/* confdefs.h. */ 19885_ACEOF 19886cat confdefs.h >>conftest.$ac_ext 19887cat >>conftest.$ac_ext <<_ACEOF 19888/* end confdefs.h. */ 19889 19890int 19891main () 19892{ 19893 19894 ; 19895 return 0; 19896} 19897_ACEOF 19898rm -f conftest.$ac_objext conftest$ac_exeext 19899if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19900 (eval $ac_link) 2>conftest.er1 19901 ac_status=$? 19902 grep -v '^ *+' conftest.er1 >conftest.err 19903 rm -f conftest.er1 19904 cat conftest.err >&5 19905 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19906 (exit $ac_status); } && 19907 { ac_try='test -z "$ac_cxx_werror_flag" 19908 || test ! -s conftest.err' 19909 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19910 (eval $ac_try) 2>&5 19911 ac_status=$? 19912 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19913 (exit $ac_status); }; } && 19914 { ac_try='test -s conftest$ac_exeext' 19915 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19916 (eval $ac_try) 2>&5 19917 ac_status=$? 19918 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19919 (exit $ac_status); }; }; then 19920 with_jpeglib=""$with_jpeglib"" 19921 with_jpeg_L="$LDFLAGS" 19922 with_jpeg_l="$LIBS" 19923else 19924 echo "$as_me: failed program was:" >&5 19925sed 's/^/| /' conftest.$ac_ext >&5 19926 19927with_jpeglib="" 19928fi 19929rm -f conftest.err conftest.$ac_objext \ 19930 conftest$ac_exeext conftest.$ac_ext 19931 else 19932 LIBS="-ljpeg $SAVELIBS" 19933 cat >conftest.$ac_ext <<_ACEOF 19934/* confdefs.h. */ 19935_ACEOF 19936cat confdefs.h >>conftest.$ac_ext 19937cat >>conftest.$ac_ext <<_ACEOF 19938/* end confdefs.h. */ 19939 19940int 19941main () 19942{ 19943 19944 ; 19945 return 0; 19946} 19947_ACEOF 19948rm -f conftest.$ac_objext conftest$ac_exeext 19949if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19950 (eval $ac_link) 2>conftest.er1 19951 ac_status=$? 19952 grep -v '^ *+' conftest.er1 >conftest.err 19953 rm -f conftest.er1 19954 cat conftest.err >&5 19955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19956 (exit $ac_status); } && 19957 { ac_try='test -z "$ac_cxx_werror_flag" 19958 || test ! -s conftest.err' 19959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19960 (eval $ac_try) 2>&5 19961 ac_status=$? 19962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19963 (exit $ac_status); }; } && 19964 { ac_try='test -s conftest$ac_exeext' 19965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19966 (eval $ac_try) 2>&5 19967 ac_status=$? 19968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19969 (exit $ac_status); }; }; then 19970 with_jpeglib="in default path" 19971 with_jpeg_L="$LDFLAGS" 19972 with_jpeg_l="$LIBS" 19973else 19974 echo "$as_me: failed program was:" >&5 19975sed 's/^/| /' conftest.$ac_ext >&5 19976 19977with_jpeglib="" 19978fi 19979rm -f conftest.err conftest.$ac_objext \ 19980 conftest$ac_exeext conftest.$ac_ext 19981 fi 19982 # restore the state 19983 ac_ext=c 19984ac_cpp='$CPP $CPPFLAGS' 19985ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 19986ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 19987ac_compiler_gnu=$ac_cv_c_compiler_gnu 19988 19989 LDFLAGS="$SAVELDFLAGS" 19990 LIBS="$SAVELIBS" 19991 19992 else 19993 # otherwise check whether the library is found without explicit path 19994 # specification (e.g. because it is in /usr/lib) 19995 if test "x$with_jpeglib" = "x" ; then 19996 19997 # save the state 19998 SAVELDFLAGS="$LDFLAGS" 19999 SAVELIBS="$LIBS" 20000 20001 20002 ac_ext=cc 20003ac_cpp='$CXXCPP $CPPFLAGS' 20004ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20005ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20006ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20007 20008 20009 # jpeg is the package, jpeg the library name, "" the path 20010 if test "x""" != "x" ; then 20011 LDFLAGS="-L"" $SAVELDFLAGS" 20012 LIBS="-ljpeg $SAVELIBS" 20013 cat >conftest.$ac_ext <<_ACEOF 20014/* confdefs.h. */ 20015_ACEOF 20016cat confdefs.h >>conftest.$ac_ext 20017cat >>conftest.$ac_ext <<_ACEOF 20018/* end confdefs.h. */ 20019 20020int 20021main () 20022{ 20023 20024 ; 20025 return 0; 20026} 20027_ACEOF 20028rm -f conftest.$ac_objext conftest$ac_exeext 20029if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20030 (eval $ac_link) 2>conftest.er1 20031 ac_status=$? 20032 grep -v '^ *+' conftest.er1 >conftest.err 20033 rm -f conftest.er1 20034 cat conftest.err >&5 20035 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20036 (exit $ac_status); } && 20037 { ac_try='test -z "$ac_cxx_werror_flag" 20038 || test ! -s conftest.err' 20039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20040 (eval $ac_try) 2>&5 20041 ac_status=$? 20042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20043 (exit $ac_status); }; } && 20044 { ac_try='test -s conftest$ac_exeext' 20045 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20046 (eval $ac_try) 2>&5 20047 ac_status=$? 20048 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20049 (exit $ac_status); }; }; then 20050 with_jpeglib="""" 20051 with_jpeg_L="$LDFLAGS" 20052 with_jpeg_l="$LIBS" 20053else 20054 echo "$as_me: failed program was:" >&5 20055sed 's/^/| /' conftest.$ac_ext >&5 20056 20057with_jpeglib="" 20058fi 20059rm -f conftest.err conftest.$ac_objext \ 20060 conftest$ac_exeext conftest.$ac_ext 20061 else 20062 LIBS="-ljpeg $SAVELIBS" 20063 cat >conftest.$ac_ext <<_ACEOF 20064/* confdefs.h. */ 20065_ACEOF 20066cat confdefs.h >>conftest.$ac_ext 20067cat >>conftest.$ac_ext <<_ACEOF 20068/* end confdefs.h. */ 20069 20070int 20071main () 20072{ 20073 20074 ; 20075 return 0; 20076} 20077_ACEOF 20078rm -f conftest.$ac_objext conftest$ac_exeext 20079if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20080 (eval $ac_link) 2>conftest.er1 20081 ac_status=$? 20082 grep -v '^ *+' conftest.er1 >conftest.err 20083 rm -f conftest.er1 20084 cat conftest.err >&5 20085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20086 (exit $ac_status); } && 20087 { ac_try='test -z "$ac_cxx_werror_flag" 20088 || test ! -s conftest.err' 20089 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20090 (eval $ac_try) 2>&5 20091 ac_status=$? 20092 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20093 (exit $ac_status); }; } && 20094 { ac_try='test -s conftest$ac_exeext' 20095 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20096 (eval $ac_try) 2>&5 20097 ac_status=$? 20098 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20099 (exit $ac_status); }; }; then 20100 with_jpeglib="in default path" 20101 with_jpeg_L="$LDFLAGS" 20102 with_jpeg_l="$LIBS" 20103else 20104 echo "$as_me: failed program was:" >&5 20105sed 's/^/| /' conftest.$ac_ext >&5 20106 20107with_jpeglib="" 20108fi 20109rm -f conftest.err conftest.$ac_objext \ 20110 conftest$ac_exeext conftest.$ac_ext 20111 fi 20112 # restore the state 20113 ac_ext=c 20114ac_cpp='$CPP $CPPFLAGS' 20115ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20116ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20117ac_compiler_gnu=$ac_cv_c_compiler_gnu 20118 20119 LDFLAGS="$SAVELDFLAGS" 20120 LIBS="$SAVELIBS" 20121 20122 fi 20123 # if this didn't work check whether the library path was in the 20124 # original $LDFLAGS or a few standard directories 20125 if test "x$with_jpeglib" = "x" ; then 20126 for i in $LIBSEARCHPATH /usr/local/lib/jpeg /usr/local/lib; do 20127 20128 # save the state 20129 SAVELDFLAGS="$LDFLAGS" 20130 SAVELIBS="$LIBS" 20131 20132 20133 ac_ext=cc 20134ac_cpp='$CXXCPP $CPPFLAGS' 20135ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20136ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20137ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20138 20139 20140 # jpeg is the package, jpeg the library name, "$i" the path 20141 if test "x"$i"" != "x" ; then 20142 LDFLAGS="-L"$i" $SAVELDFLAGS" 20143 LIBS="-ljpeg $SAVELIBS" 20144 cat >conftest.$ac_ext <<_ACEOF 20145/* confdefs.h. */ 20146_ACEOF 20147cat confdefs.h >>conftest.$ac_ext 20148cat >>conftest.$ac_ext <<_ACEOF 20149/* end confdefs.h. */ 20150 20151int 20152main () 20153{ 20154 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159rm -f conftest.$ac_objext conftest$ac_exeext 20160if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20161 (eval $ac_link) 2>conftest.er1 20162 ac_status=$? 20163 grep -v '^ *+' conftest.er1 >conftest.err 20164 rm -f conftest.er1 20165 cat conftest.err >&5 20166 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20167 (exit $ac_status); } && 20168 { ac_try='test -z "$ac_cxx_werror_flag" 20169 || test ! -s conftest.err' 20170 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20171 (eval $ac_try) 2>&5 20172 ac_status=$? 20173 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20174 (exit $ac_status); }; } && 20175 { ac_try='test -s conftest$ac_exeext' 20176 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20177 (eval $ac_try) 2>&5 20178 ac_status=$? 20179 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20180 (exit $ac_status); }; }; then 20181 with_jpeglib=""$i"" 20182 with_jpeg_L="$LDFLAGS" 20183 with_jpeg_l="$LIBS" 20184else 20185 echo "$as_me: failed program was:" >&5 20186sed 's/^/| /' conftest.$ac_ext >&5 20187 20188with_jpeglib="" 20189fi 20190rm -f conftest.err conftest.$ac_objext \ 20191 conftest$ac_exeext conftest.$ac_ext 20192 else 20193 LIBS="-ljpeg $SAVELIBS" 20194 cat >conftest.$ac_ext <<_ACEOF 20195/* confdefs.h. */ 20196_ACEOF 20197cat confdefs.h >>conftest.$ac_ext 20198cat >>conftest.$ac_ext <<_ACEOF 20199/* end confdefs.h. */ 20200 20201int 20202main () 20203{ 20204 20205 ; 20206 return 0; 20207} 20208_ACEOF 20209rm -f conftest.$ac_objext conftest$ac_exeext 20210if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20211 (eval $ac_link) 2>conftest.er1 20212 ac_status=$? 20213 grep -v '^ *+' conftest.er1 >conftest.err 20214 rm -f conftest.er1 20215 cat conftest.err >&5 20216 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20217 (exit $ac_status); } && 20218 { ac_try='test -z "$ac_cxx_werror_flag" 20219 || test ! -s conftest.err' 20220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20221 (eval $ac_try) 2>&5 20222 ac_status=$? 20223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20224 (exit $ac_status); }; } && 20225 { ac_try='test -s conftest$ac_exeext' 20226 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20227 (eval $ac_try) 2>&5 20228 ac_status=$? 20229 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20230 (exit $ac_status); }; }; then 20231 with_jpeglib="in default path" 20232 with_jpeg_L="$LDFLAGS" 20233 with_jpeg_l="$LIBS" 20234else 20235 echo "$as_me: failed program was:" >&5 20236sed 's/^/| /' conftest.$ac_ext >&5 20237 20238with_jpeglib="" 20239fi 20240rm -f conftest.err conftest.$ac_objext \ 20241 conftest$ac_exeext conftest.$ac_ext 20242 fi 20243 # restore the state 20244 ac_ext=c 20245ac_cpp='$CPP $CPPFLAGS' 20246ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20247ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20248ac_compiler_gnu=$ac_cv_c_compiler_gnu 20249 20250 LDFLAGS="$SAVELDFLAGS" 20251 LIBS="$SAVELIBS" 20252 20253 if test "x$with_jpeglib" != "x" ; then break; fi 20254 done 20255 fi 20256 fi 20257 20258 # report the results back 20259 if test "x$with_jpeglib" = "x"; then 20260 echo "$as_me:$LINENO: result: not found" >&5 20261echo "${ECHO_T}not found" >&6 20262 with_jpeg="no" 20263 else 20264 echo "$as_me:$LINENO: result: $with_jpeglib" >&5 20265echo "${ECHO_T}$with_jpeglib" >&6 20266 if test "$with_jpeglib" = "in default path"; then 20267 with_jpeglib="" 20268 fi 20269 fi 20270 20271 if test ${with_jpeg:-""} != "no"; then 20272 20273 echo "$as_me:$LINENO: checking for jpeglib.h " >&5 20274echo $ECHO_N "checking for jpeglib.h ... $ECHO_C" >&6 20275 20276 # first check whether we got an explicit path 20277 if test "x$with_jpeg" = "xexplicit" -a "x$with_jpeginc" != "x"; then 20278 20279 # save the state 20280 SAVECPPFLAGS="$CPPFLAGS" 20281 20282 20283 ac_ext=cc 20284ac_cpp='$CXXCPP $CPPFLAGS' 20285ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20286ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20287ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20288 20289 20290 # jpeg is the package, jpeglib.h the include name, "$with_jpeginc" the path 20291 if test "x"$with_jpeginc"" != "x" ; then 20292 CPPFLAGS="-I"$with_jpeginc" $SAVECPPFLAGS" 20293 cat >conftest.$ac_ext <<_ACEOF 20294/* confdefs.h. */ 20295_ACEOF 20296cat confdefs.h >>conftest.$ac_ext 20297cat >>conftest.$ac_ext <<_ACEOF 20298/* end confdefs.h. */ 20299#include <stdio.h> /* for jpeglib.h */ 20300 #include <jpeglib.h> 20301 20302int 20303main () 20304{ 20305 20306 ; 20307 return 0; 20308} 20309_ACEOF 20310rm -f conftest.$ac_objext 20311if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20312 (eval $ac_compile) 2>conftest.er1 20313 ac_status=$? 20314 grep -v '^ *+' conftest.er1 >conftest.err 20315 rm -f conftest.er1 20316 cat conftest.err >&5 20317 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20318 (exit $ac_status); } && 20319 { ac_try='test -z "$ac_cxx_werror_flag" 20320 || test ! -s conftest.err' 20321 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20322 (eval $ac_try) 2>&5 20323 ac_status=$? 20324 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20325 (exit $ac_status); }; } && 20326 { ac_try='test -s conftest.$ac_objext' 20327 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20328 (eval $ac_try) 2>&5 20329 ac_status=$? 20330 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20331 (exit $ac_status); }; }; then 20332 with_jpeginc=""$with_jpeginc"" 20333 with_jpeg_I="$CPPFLAGS" 20334else 20335 echo "$as_me: failed program was:" >&5 20336sed 's/^/| /' conftest.$ac_ext >&5 20337 20338with_jpeginc="" 20339fi 20340rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20341 else 20342 cat >conftest.$ac_ext <<_ACEOF 20343/* confdefs.h. */ 20344_ACEOF 20345cat confdefs.h >>conftest.$ac_ext 20346cat >>conftest.$ac_ext <<_ACEOF 20347/* end confdefs.h. */ 20348#include <stdio.h> /* for jpeglib.h */ 20349 #include <jpeglib.h> 20350 20351int 20352main () 20353{ 20354 20355 ; 20356 return 0; 20357} 20358_ACEOF 20359rm -f conftest.$ac_objext 20360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20361 (eval $ac_compile) 2>conftest.er1 20362 ac_status=$? 20363 grep -v '^ *+' conftest.er1 >conftest.err 20364 rm -f conftest.er1 20365 cat conftest.err >&5 20366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20367 (exit $ac_status); } && 20368 { ac_try='test -z "$ac_cxx_werror_flag" 20369 || test ! -s conftest.err' 20370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20371 (eval $ac_try) 2>&5 20372 ac_status=$? 20373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20374 (exit $ac_status); }; } && 20375 { ac_try='test -s conftest.$ac_objext' 20376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20377 (eval $ac_try) 2>&5 20378 ac_status=$? 20379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20380 (exit $ac_status); }; }; then 20381 with_jpeginc="in default path" 20382 with_jpeg_I="$CPPFLAGS" 20383else 20384 echo "$as_me: failed program was:" >&5 20385sed 's/^/| /' conftest.$ac_ext >&5 20386 20387with_jpeginc="" 20388fi 20389rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20390 fi 20391 # restore the state 20392 ac_ext=c 20393ac_cpp='$CPP $CPPFLAGS' 20394ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20395ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20396ac_compiler_gnu=$ac_cv_c_compiler_gnu 20397 20398 CPPFLAGS="$SAVECPPFLAGS" 20399 20400 else 20401 # otherwise check whether the library is found without explicit path 20402 # specification (e.g. because it is in /usr/lib) 20403 if test "x$with_jpeginc" = "x" ; then 20404 20405 # save the state 20406 SAVECPPFLAGS="$CPPFLAGS" 20407 20408 20409 ac_ext=cc 20410ac_cpp='$CXXCPP $CPPFLAGS' 20411ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20412ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20413ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20414 20415 20416 # jpeg is the package, jpeglib.h the include name, "" the path 20417 if test "x""" != "x" ; then 20418 CPPFLAGS="-I"" $SAVECPPFLAGS" 20419 cat >conftest.$ac_ext <<_ACEOF 20420/* confdefs.h. */ 20421_ACEOF 20422cat confdefs.h >>conftest.$ac_ext 20423cat >>conftest.$ac_ext <<_ACEOF 20424/* end confdefs.h. */ 20425#include <stdio.h> /* for jpeglib.h */ 20426 #include <jpeglib.h> 20427 20428int 20429main () 20430{ 20431 20432 ; 20433 return 0; 20434} 20435_ACEOF 20436rm -f conftest.$ac_objext 20437if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20438 (eval $ac_compile) 2>conftest.er1 20439 ac_status=$? 20440 grep -v '^ *+' conftest.er1 >conftest.err 20441 rm -f conftest.er1 20442 cat conftest.err >&5 20443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20444 (exit $ac_status); } && 20445 { ac_try='test -z "$ac_cxx_werror_flag" 20446 || test ! -s conftest.err' 20447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20448 (eval $ac_try) 2>&5 20449 ac_status=$? 20450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20451 (exit $ac_status); }; } && 20452 { ac_try='test -s conftest.$ac_objext' 20453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20454 (eval $ac_try) 2>&5 20455 ac_status=$? 20456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20457 (exit $ac_status); }; }; then 20458 with_jpeginc="""" 20459 with_jpeg_I="$CPPFLAGS" 20460else 20461 echo "$as_me: failed program was:" >&5 20462sed 's/^/| /' conftest.$ac_ext >&5 20463 20464with_jpeginc="" 20465fi 20466rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20467 else 20468 cat >conftest.$ac_ext <<_ACEOF 20469/* confdefs.h. */ 20470_ACEOF 20471cat confdefs.h >>conftest.$ac_ext 20472cat >>conftest.$ac_ext <<_ACEOF 20473/* end confdefs.h. */ 20474#include <stdio.h> /* for jpeglib.h */ 20475 #include <jpeglib.h> 20476 20477int 20478main () 20479{ 20480 20481 ; 20482 return 0; 20483} 20484_ACEOF 20485rm -f conftest.$ac_objext 20486if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20487 (eval $ac_compile) 2>conftest.er1 20488 ac_status=$? 20489 grep -v '^ *+' conftest.er1 >conftest.err 20490 rm -f conftest.er1 20491 cat conftest.err >&5 20492 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20493 (exit $ac_status); } && 20494 { ac_try='test -z "$ac_cxx_werror_flag" 20495 || test ! -s conftest.err' 20496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20497 (eval $ac_try) 2>&5 20498 ac_status=$? 20499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20500 (exit $ac_status); }; } && 20501 { ac_try='test -s conftest.$ac_objext' 20502 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20503 (eval $ac_try) 2>&5 20504 ac_status=$? 20505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20506 (exit $ac_status); }; }; then 20507 with_jpeginc="in default path" 20508 with_jpeg_I="$CPPFLAGS" 20509else 20510 echo "$as_me: failed program was:" >&5 20511sed 's/^/| /' conftest.$ac_ext >&5 20512 20513with_jpeginc="" 20514fi 20515rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20516 fi 20517 # restore the state 20518 ac_ext=c 20519ac_cpp='$CPP $CPPFLAGS' 20520ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20521ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20522ac_compiler_gnu=$ac_cv_c_compiler_gnu 20523 20524 CPPFLAGS="$SAVECPPFLAGS" 20525 20526 fi 20527 # if this didn't work check whether the library path is in the 20528 # same tree as the library path, or among the directories in the 20529 # original $CPPFLAGS or a few standard directories 20530 if test -n ""; then 20531 PATHPOSTFIX="/" 20532 else 20533 PATHPOSTFIX="" 20534 fi 20535 EXTRAINCSEARCHPATH="" 20536 i="$with_jpeglib" 20537 while test "x$i" != "x"; do 20538 if test -d "${i}/include"; then 20539 EXTRAINCSEARCHPATH="$EXTRAINCSEARCHPATH ${i}/include" 20540 fi 20541 j=`expr "$i" : "\(.*\)/"` 20542 i=$j 20543 done 20544 if test "x$with_jpeginc" = "x" ; then 20545 for i in $EXTRAINCSEARCHPATH $INCSEARCHPATH /usr/local/include/jpeg /usr/local/include; do 20546 20547 # save the state 20548 SAVECPPFLAGS="$CPPFLAGS" 20549 20550 20551 ac_ext=cc 20552ac_cpp='$CXXCPP $CPPFLAGS' 20553ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20554ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20555ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20556 20557 20558 # jpeg is the package, jpeglib.h the include name, "$i$PATHPOSTFIX" the path 20559 if test "x"$i$PATHPOSTFIX"" != "x" ; then 20560 CPPFLAGS="-I"$i$PATHPOSTFIX" $SAVECPPFLAGS" 20561 cat >conftest.$ac_ext <<_ACEOF 20562/* confdefs.h. */ 20563_ACEOF 20564cat confdefs.h >>conftest.$ac_ext 20565cat >>conftest.$ac_ext <<_ACEOF 20566/* end confdefs.h. */ 20567#include <stdio.h> /* for jpeglib.h */ 20568 #include <jpeglib.h> 20569 20570int 20571main () 20572{ 20573 20574 ; 20575 return 0; 20576} 20577_ACEOF 20578rm -f conftest.$ac_objext 20579if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20580 (eval $ac_compile) 2>conftest.er1 20581 ac_status=$? 20582 grep -v '^ *+' conftest.er1 >conftest.err 20583 rm -f conftest.er1 20584 cat conftest.err >&5 20585 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20586 (exit $ac_status); } && 20587 { ac_try='test -z "$ac_cxx_werror_flag" 20588 || test ! -s conftest.err' 20589 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20590 (eval $ac_try) 2>&5 20591 ac_status=$? 20592 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20593 (exit $ac_status); }; } && 20594 { ac_try='test -s conftest.$ac_objext' 20595 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20596 (eval $ac_try) 2>&5 20597 ac_status=$? 20598 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20599 (exit $ac_status); }; }; then 20600 with_jpeginc=""$i$PATHPOSTFIX"" 20601 with_jpeg_I="$CPPFLAGS" 20602else 20603 echo "$as_me: failed program was:" >&5 20604sed 's/^/| /' conftest.$ac_ext >&5 20605 20606with_jpeginc="" 20607fi 20608rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20609 else 20610 cat >conftest.$ac_ext <<_ACEOF 20611/* confdefs.h. */ 20612_ACEOF 20613cat confdefs.h >>conftest.$ac_ext 20614cat >>conftest.$ac_ext <<_ACEOF 20615/* end confdefs.h. */ 20616#include <stdio.h> /* for jpeglib.h */ 20617 #include <jpeglib.h> 20618 20619int 20620main () 20621{ 20622 20623 ; 20624 return 0; 20625} 20626_ACEOF 20627rm -f conftest.$ac_objext 20628if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 20629 (eval $ac_compile) 2>conftest.er1 20630 ac_status=$? 20631 grep -v '^ *+' conftest.er1 >conftest.err 20632 rm -f conftest.er1 20633 cat conftest.err >&5 20634 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20635 (exit $ac_status); } && 20636 { ac_try='test -z "$ac_cxx_werror_flag" 20637 || test ! -s conftest.err' 20638 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20639 (eval $ac_try) 2>&5 20640 ac_status=$? 20641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20642 (exit $ac_status); }; } && 20643 { ac_try='test -s conftest.$ac_objext' 20644 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20645 (eval $ac_try) 2>&5 20646 ac_status=$? 20647 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20648 (exit $ac_status); }; }; then 20649 with_jpeginc="in default path" 20650 with_jpeg_I="$CPPFLAGS" 20651else 20652 echo "$as_me: failed program was:" >&5 20653sed 's/^/| /' conftest.$ac_ext >&5 20654 20655with_jpeginc="" 20656fi 20657rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 20658 fi 20659 # restore the state 20660 ac_ext=c 20661ac_cpp='$CPP $CPPFLAGS' 20662ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20663ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20664ac_compiler_gnu=$ac_cv_c_compiler_gnu 20665 20666 CPPFLAGS="$SAVECPPFLAGS" 20667 20668 if test "x$with_jpeginc" != "x" ; then break; fi 20669 done 20670 fi 20671 fi 20672 20673 # report the results back 20674 if test "x$with_jpeginc" = "x"; then 20675 echo "$as_me:$LINENO: result: not found" >&5 20676echo "${ECHO_T}not found" >&6 20677 with_jpeg="no" 20678 with_jpeglib="" 20679 else 20680 echo "$as_me:$LINENO: result: $with_jpeginc" >&5 20681echo "${ECHO_T}$with_jpeginc" >&6 20682 if test "$with_jpeginc" = "in default path"; then 20683 with_jpeginc="" 20684 fi 20685 fi 20686 20687 if test ${with_jpeg:-""} != "no"; then 20688 with_jpeg="yes" 20689 fi 20690 fi 20691 fi 20692 20693 20694if test "$with_jpeg" = "yes"; then 20695 JPEG_LIB="$with_jpeg_L $with_jpeg_l" 20696 IMPEX_DEPLIBS="$JPEG_LIB $IMPEX_DEPLIBS" 20697 LIBCPPFLAGS="-DHasJPEG $with_jpeg_I $LIBCPPFLAGS" 20698else 20699 { echo "$as_me:$LINENO: WARNING: Configuring without jpeg support" >&5 20700echo "$as_me: WARNING: Configuring without jpeg support" >&2;} 20701fi 20702 20703 20704# search using pkg-config 20705if test "$with_png" = "search"; then 20706 20707 if test "x$PKGCONFIG" != "x"; then 20708 echo "$as_me:$LINENO: checking if pkg-config knows about png " >&5 20709echo $ECHO_N "checking if pkg-config knows about png ... $ECHO_C" >&6 20710 if $PKGCONFIG --exists "libpng"; then 20711 # save the state 20712 SAVECPPFLAGS="$CPPFLAGS" 20713 SAVELDFLAGS="$LDFLAGS" 20714 SAVELIBS="$LIBS" 20715 20716 20717 ac_ext=cc 20718ac_cpp='$CXXCPP $CPPFLAGS' 20719ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20720ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20721ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20722 20723 20724 # png is the package, libpng the pkg-config name, png.h the include name 20725 CPPFLAGS=`$PKGCONFIG --cflags-only-I "libpng"` 20726 LDFLAGS=`$PKGCONFIG --libs-only-L "libpng"` 20727 LIBS=`$PKGCONFIG --libs-only-l "libpng"` 20728 cat >conftest.$ac_ext <<_ACEOF 20729/* confdefs.h. */ 20730_ACEOF 20731cat confdefs.h >>conftest.$ac_ext 20732cat >>conftest.$ac_ext <<_ACEOF 20733/* end confdefs.h. */ 20734#include <stdio.h> /* for jpeglib.h */ 20735 #include <png.h> 20736 20737int 20738main () 20739{ 20740 20741 ; 20742 return 0; 20743} 20744_ACEOF 20745rm -f conftest.$ac_objext conftest$ac_exeext 20746if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20747 (eval $ac_link) 2>conftest.er1 20748 ac_status=$? 20749 grep -v '^ *+' conftest.er1 >conftest.err 20750 rm -f conftest.er1 20751 cat conftest.err >&5 20752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20753 (exit $ac_status); } && 20754 { ac_try='test -z "$ac_cxx_werror_flag" 20755 || test ! -s conftest.err' 20756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20757 (eval $ac_try) 2>&5 20758 ac_status=$? 20759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20760 (exit $ac_status); }; } && 20761 { ac_try='test -s conftest$ac_exeext' 20762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20763 (eval $ac_try) 2>&5 20764 ac_status=$? 20765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20766 (exit $ac_status); }; }; then 20767 with_png="yes" 20768 with_png_I="$CPPFLAGS" 20769 with_png_L="$LDFLAGS" 20770 with_png_l="$LIBS" 20771 20772else 20773 echo "$as_me: failed program was:" >&5 20774sed 's/^/| /' conftest.$ac_ext >&5 20775 20776with_png_I="" 20777 with_png_L="" 20778 with_png_l="" 20779 20780fi 20781rm -f conftest.err conftest.$ac_objext \ 20782 conftest$ac_exeext conftest.$ac_ext 20783 CPPFLAGS="$CPPFLAGS $SAVECPPFLAGS" 20784 LDFLAGS="$LDFLAGS $SAVELDFLAGS" 20785 LIBS="$LIBS $SAVELIBS" 20786 ac_ext=c 20787ac_cpp='$CPP $CPPFLAGS' 20788ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20789ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20790ac_compiler_gnu=$ac_cv_c_compiler_gnu 20791 20792 fi 20793 if test "x$with_png" = "xyes"; then 20794 echo "$as_me:$LINENO: result: yes" >&5 20795echo "${ECHO_T}yes" >&6 20796 else 20797 echo "$as_me:$LINENO: result: no (check \$PKG_CONFIG_PATH)" >&5 20798echo "${ECHO_T}no (check \$PKG_CONFIG_PATH)" >&6 20799 fi 20800 fi 20801 20802fi 20803# search using libpng-config 20804if test "$with_png" = "search"; then 20805 # Extract the first word of "libpng-config", so it can be a program name with args. 20806set dummy libpng-config; ac_word=$2 20807echo "$as_me:$LINENO: checking for $ac_word" >&5 20808echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 20809if test "${ac_cv_prog_LIBPNGCONFIG+set}" = set; then 20810 echo $ECHO_N "(cached) $ECHO_C" >&6 20811else 20812 if test -n "$LIBPNGCONFIG"; then 20813 ac_cv_prog_LIBPNGCONFIG="$LIBPNGCONFIG" # Let the user override the test. 20814else 20815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20816for as_dir in $PATH 20817do 20818 IFS=$as_save_IFS 20819 test -z "$as_dir" && as_dir=. 20820 for ac_exec_ext in '' $ac_executable_extensions; do 20821 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20822 ac_cv_prog_LIBPNGCONFIG="libpng-config" 20823 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 20824 break 2 20825 fi 20826done 20827done 20828 20829fi 20830fi 20831LIBPNGCONFIG=$ac_cv_prog_LIBPNGCONFIG 20832if test -n "$LIBPNGCONFIG"; then 20833 echo "$as_me:$LINENO: result: $LIBPNGCONFIG" >&5 20834echo "${ECHO_T}$LIBPNGCONFIG" >&6 20835else 20836 echo "$as_me:$LINENO: result: no" >&5 20837echo "${ECHO_T}no" >&6 20838fi 20839 20840 if test "x$LIBPNGCONFIG" != "x"; then 20841 20842 20843 ac_ext=cc 20844ac_cpp='$CXXCPP $CPPFLAGS' 20845ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20846ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20847ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20848 20849 20850 CPPFLAGS=`$LIBPNGCONFIG --I_opts` 20851 LDFLAGS=`$LIBPNGCONFIG --L_opts` 20852 LIBS="-lpng -lz" 20853 cat >conftest.$ac_ext <<_ACEOF 20854/* confdefs.h. */ 20855_ACEOF 20856cat confdefs.h >>conftest.$ac_ext 20857cat >>conftest.$ac_ext <<_ACEOF 20858/* end confdefs.h. */ 20859#include <png.h> 20860 20861int 20862main () 20863{ 20864 20865 ; 20866 return 0; 20867} 20868_ACEOF 20869rm -f conftest.$ac_objext conftest$ac_exeext 20870if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20871 (eval $ac_link) 2>conftest.er1 20872 ac_status=$? 20873 grep -v '^ *+' conftest.er1 >conftest.err 20874 rm -f conftest.er1 20875 cat conftest.err >&5 20876 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20877 (exit $ac_status); } && 20878 { ac_try='test -z "$ac_cxx_werror_flag" 20879 || test ! -s conftest.err' 20880 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20881 (eval $ac_try) 2>&5 20882 ac_status=$? 20883 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20884 (exit $ac_status); }; } && 20885 { ac_try='test -s conftest$ac_exeext' 20886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20887 (eval $ac_try) 2>&5 20888 ac_status=$? 20889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20890 (exit $ac_status); }; }; then 20891 with_png="yes" 20892 with_png_I="$CPPFLAGS" 20893 with_png_L="$LDFLAGS" 20894 with_png_l="$LIBS" 20895 20896else 20897 echo "$as_me: failed program was:" >&5 20898sed 's/^/| /' conftest.$ac_ext >&5 20899 20900with_png_I="" 20901 with_png_L="" 20902 with_png_l="" 20903 20904fi 20905rm -f conftest.err conftest.$ac_objext \ 20906 conftest$ac_exeext conftest.$ac_ext 20907 CPPFLAGS="" 20908 LDFLAGS="" 20909 LIBS="" 20910 ac_ext=c 20911ac_cpp='$CPP $CPPFLAGS' 20912ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20913ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20914ac_compiler_gnu=$ac_cv_c_compiler_gnu 20915 20916 fi 20917fi 20918# search using explicitly given paths (either via the --with_png... switches 20919# or LDFLAGS, CPPFLAGS or in /usr/local 20920if test "$with_png" != "no" -a "$with_png" != "yes"; then 20921 if test "$with_zlib" != "no"; then 20922 20923 if test ${with_zlib:-""} != "no"; then 20924 20925 echo "$as_me:$LINENO: checking for libz " >&5 20926echo $ECHO_N "checking for libz ... $ECHO_C" >&6 20927 20928 # if we got an explicit path, that's the only one we check 20929 if test "x$with_zlib" = "xexplicit" -a "x$with_zliblib" != "x"; then 20930 20931 # save the state 20932 SAVELDFLAGS="$LDFLAGS" 20933 SAVELIBS="$LIBS" 20934 20935 20936 ac_ext=cc 20937ac_cpp='$CXXCPP $CPPFLAGS' 20938ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20939ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20940ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20941 20942 20943 # zlib is the package, z the library name, "$with_zliblib" the path 20944 if test "x"$with_zliblib"" != "x" ; then 20945 LDFLAGS="-L"$with_zliblib" $SAVELDFLAGS" 20946 LIBS="-lz $SAVELIBS" 20947 cat >conftest.$ac_ext <<_ACEOF 20948/* confdefs.h. */ 20949_ACEOF 20950cat confdefs.h >>conftest.$ac_ext 20951cat >>conftest.$ac_ext <<_ACEOF 20952/* end confdefs.h. */ 20953 20954int 20955main () 20956{ 20957 20958 ; 20959 return 0; 20960} 20961_ACEOF 20962rm -f conftest.$ac_objext conftest$ac_exeext 20963if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 20964 (eval $ac_link) 2>conftest.er1 20965 ac_status=$? 20966 grep -v '^ *+' conftest.er1 >conftest.err 20967 rm -f conftest.er1 20968 cat conftest.err >&5 20969 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20970 (exit $ac_status); } && 20971 { ac_try='test -z "$ac_cxx_werror_flag" 20972 || test ! -s conftest.err' 20973 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20974 (eval $ac_try) 2>&5 20975 ac_status=$? 20976 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20977 (exit $ac_status); }; } && 20978 { ac_try='test -s conftest$ac_exeext' 20979 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 20980 (eval $ac_try) 2>&5 20981 ac_status=$? 20982 echo "$as_me:$LINENO: \$? = $ac_status" >&5 20983 (exit $ac_status); }; }; then 20984 with_zliblib=""$with_zliblib"" 20985 with_zlib_L="$LDFLAGS" 20986 with_zlib_l="$LIBS" 20987else 20988 echo "$as_me: failed program was:" >&5 20989sed 's/^/| /' conftest.$ac_ext >&5 20990 20991with_zliblib="" 20992fi 20993rm -f conftest.err conftest.$ac_objext \ 20994 conftest$ac_exeext conftest.$ac_ext 20995 else 20996 LIBS="-lz $SAVELIBS" 20997 cat >conftest.$ac_ext <<_ACEOF 20998/* confdefs.h. */ 20999_ACEOF 21000cat confdefs.h >>conftest.$ac_ext 21001cat >>conftest.$ac_ext <<_ACEOF 21002/* end confdefs.h. */ 21003 21004int 21005main () 21006{ 21007 21008 ; 21009 return 0; 21010} 21011_ACEOF 21012rm -f conftest.$ac_objext conftest$ac_exeext 21013if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21014 (eval $ac_link) 2>conftest.er1 21015 ac_status=$? 21016 grep -v '^ *+' conftest.er1 >conftest.err 21017 rm -f conftest.er1 21018 cat conftest.err >&5 21019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21020 (exit $ac_status); } && 21021 { ac_try='test -z "$ac_cxx_werror_flag" 21022 || test ! -s conftest.err' 21023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21024 (eval $ac_try) 2>&5 21025 ac_status=$? 21026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21027 (exit $ac_status); }; } && 21028 { ac_try='test -s conftest$ac_exeext' 21029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21030 (eval $ac_try) 2>&5 21031 ac_status=$? 21032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21033 (exit $ac_status); }; }; then 21034 with_zliblib="in default path" 21035 with_zlib_L="$LDFLAGS" 21036 with_zlib_l="$LIBS" 21037else 21038 echo "$as_me: failed program was:" >&5 21039sed 's/^/| /' conftest.$ac_ext >&5 21040 21041with_zliblib="" 21042fi 21043rm -f conftest.err conftest.$ac_objext \ 21044 conftest$ac_exeext conftest.$ac_ext 21045 fi 21046 # restore the state 21047 ac_ext=c 21048ac_cpp='$CPP $CPPFLAGS' 21049ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21050ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21051ac_compiler_gnu=$ac_cv_c_compiler_gnu 21052 21053 LDFLAGS="$SAVELDFLAGS" 21054 LIBS="$SAVELIBS" 21055 21056 else 21057 # otherwise check whether the library is found without explicit path 21058 # specification (e.g. because it is in /usr/lib) 21059 if test "x$with_zliblib" = "x" ; then 21060 21061 # save the state 21062 SAVELDFLAGS="$LDFLAGS" 21063 SAVELIBS="$LIBS" 21064 21065 21066 ac_ext=cc 21067ac_cpp='$CXXCPP $CPPFLAGS' 21068ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21069ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21070ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21071 21072 21073 # zlib is the package, z the library name, "" the path 21074 if test "x""" != "x" ; then 21075 LDFLAGS="-L"" $SAVELDFLAGS" 21076 LIBS="-lz $SAVELIBS" 21077 cat >conftest.$ac_ext <<_ACEOF 21078/* confdefs.h. */ 21079_ACEOF 21080cat confdefs.h >>conftest.$ac_ext 21081cat >>conftest.$ac_ext <<_ACEOF 21082/* end confdefs.h. */ 21083 21084int 21085main () 21086{ 21087 21088 ; 21089 return 0; 21090} 21091_ACEOF 21092rm -f conftest.$ac_objext conftest$ac_exeext 21093if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21094 (eval $ac_link) 2>conftest.er1 21095 ac_status=$? 21096 grep -v '^ *+' conftest.er1 >conftest.err 21097 rm -f conftest.er1 21098 cat conftest.err >&5 21099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21100 (exit $ac_status); } && 21101 { ac_try='test -z "$ac_cxx_werror_flag" 21102 || test ! -s conftest.err' 21103 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21104 (eval $ac_try) 2>&5 21105 ac_status=$? 21106 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21107 (exit $ac_status); }; } && 21108 { ac_try='test -s conftest$ac_exeext' 21109 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21110 (eval $ac_try) 2>&5 21111 ac_status=$? 21112 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21113 (exit $ac_status); }; }; then 21114 with_zliblib="""" 21115 with_zlib_L="$LDFLAGS" 21116 with_zlib_l="$LIBS" 21117else 21118 echo "$as_me: failed program was:" >&5 21119sed 's/^/| /' conftest.$ac_ext >&5 21120 21121with_zliblib="" 21122fi 21123rm -f conftest.err conftest.$ac_objext \ 21124 conftest$ac_exeext conftest.$ac_ext 21125 else 21126 LIBS="-lz $SAVELIBS" 21127 cat >conftest.$ac_ext <<_ACEOF 21128/* confdefs.h. */ 21129_ACEOF 21130cat confdefs.h >>conftest.$ac_ext 21131cat >>conftest.$ac_ext <<_ACEOF 21132/* end confdefs.h. */ 21133 21134int 21135main () 21136{ 21137 21138 ; 21139 return 0; 21140} 21141_ACEOF 21142rm -f conftest.$ac_objext conftest$ac_exeext 21143if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21144 (eval $ac_link) 2>conftest.er1 21145 ac_status=$? 21146 grep -v '^ *+' conftest.er1 >conftest.err 21147 rm -f conftest.er1 21148 cat conftest.err >&5 21149 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21150 (exit $ac_status); } && 21151 { ac_try='test -z "$ac_cxx_werror_flag" 21152 || test ! -s conftest.err' 21153 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21154 (eval $ac_try) 2>&5 21155 ac_status=$? 21156 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21157 (exit $ac_status); }; } && 21158 { ac_try='test -s conftest$ac_exeext' 21159 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21160 (eval $ac_try) 2>&5 21161 ac_status=$? 21162 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21163 (exit $ac_status); }; }; then 21164 with_zliblib="in default path" 21165 with_zlib_L="$LDFLAGS" 21166 with_zlib_l="$LIBS" 21167else 21168 echo "$as_me: failed program was:" >&5 21169sed 's/^/| /' conftest.$ac_ext >&5 21170 21171with_zliblib="" 21172fi 21173rm -f conftest.err conftest.$ac_objext \ 21174 conftest$ac_exeext conftest.$ac_ext 21175 fi 21176 # restore the state 21177 ac_ext=c 21178ac_cpp='$CPP $CPPFLAGS' 21179ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21180ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21181ac_compiler_gnu=$ac_cv_c_compiler_gnu 21182 21183 LDFLAGS="$SAVELDFLAGS" 21184 LIBS="$SAVELIBS" 21185 21186 fi 21187 # if this didn't work check whether the library path was in the 21188 # original $LDFLAGS or a few standard directories 21189 if test "x$with_zliblib" = "x" ; then 21190 for i in $LIBSEARCHPATH /usr/local/lib/zlib /usr/local/lib; do 21191 21192 # save the state 21193 SAVELDFLAGS="$LDFLAGS" 21194 SAVELIBS="$LIBS" 21195 21196 21197 ac_ext=cc 21198ac_cpp='$CXXCPP $CPPFLAGS' 21199ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21200ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21201ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21202 21203 21204 # zlib is the package, z the library name, "$i" the path 21205 if test "x"$i"" != "x" ; then 21206 LDFLAGS="-L"$i" $SAVELDFLAGS" 21207 LIBS="-lz $SAVELIBS" 21208 cat >conftest.$ac_ext <<_ACEOF 21209/* confdefs.h. */ 21210_ACEOF 21211cat confdefs.h >>conftest.$ac_ext 21212cat >>conftest.$ac_ext <<_ACEOF 21213/* end confdefs.h. */ 21214 21215int 21216main () 21217{ 21218 21219 ; 21220 return 0; 21221} 21222_ACEOF 21223rm -f conftest.$ac_objext conftest$ac_exeext 21224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21225 (eval $ac_link) 2>conftest.er1 21226 ac_status=$? 21227 grep -v '^ *+' conftest.er1 >conftest.err 21228 rm -f conftest.er1 21229 cat conftest.err >&5 21230 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21231 (exit $ac_status); } && 21232 { ac_try='test -z "$ac_cxx_werror_flag" 21233 || test ! -s conftest.err' 21234 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21235 (eval $ac_try) 2>&5 21236 ac_status=$? 21237 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21238 (exit $ac_status); }; } && 21239 { ac_try='test -s conftest$ac_exeext' 21240 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21241 (eval $ac_try) 2>&5 21242 ac_status=$? 21243 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21244 (exit $ac_status); }; }; then 21245 with_zliblib=""$i"" 21246 with_zlib_L="$LDFLAGS" 21247 with_zlib_l="$LIBS" 21248else 21249 echo "$as_me: failed program was:" >&5 21250sed 's/^/| /' conftest.$ac_ext >&5 21251 21252with_zliblib="" 21253fi 21254rm -f conftest.err conftest.$ac_objext \ 21255 conftest$ac_exeext conftest.$ac_ext 21256 else 21257 LIBS="-lz $SAVELIBS" 21258 cat >conftest.$ac_ext <<_ACEOF 21259/* confdefs.h. */ 21260_ACEOF 21261cat confdefs.h >>conftest.$ac_ext 21262cat >>conftest.$ac_ext <<_ACEOF 21263/* end confdefs.h. */ 21264 21265int 21266main () 21267{ 21268 21269 ; 21270 return 0; 21271} 21272_ACEOF 21273rm -f conftest.$ac_objext conftest$ac_exeext 21274if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21275 (eval $ac_link) 2>conftest.er1 21276 ac_status=$? 21277 grep -v '^ *+' conftest.er1 >conftest.err 21278 rm -f conftest.er1 21279 cat conftest.err >&5 21280 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21281 (exit $ac_status); } && 21282 { ac_try='test -z "$ac_cxx_werror_flag" 21283 || test ! -s conftest.err' 21284 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21285 (eval $ac_try) 2>&5 21286 ac_status=$? 21287 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21288 (exit $ac_status); }; } && 21289 { ac_try='test -s conftest$ac_exeext' 21290 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21291 (eval $ac_try) 2>&5 21292 ac_status=$? 21293 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21294 (exit $ac_status); }; }; then 21295 with_zliblib="in default path" 21296 with_zlib_L="$LDFLAGS" 21297 with_zlib_l="$LIBS" 21298else 21299 echo "$as_me: failed program was:" >&5 21300sed 's/^/| /' conftest.$ac_ext >&5 21301 21302with_zliblib="" 21303fi 21304rm -f conftest.err conftest.$ac_objext \ 21305 conftest$ac_exeext conftest.$ac_ext 21306 fi 21307 # restore the state 21308 ac_ext=c 21309ac_cpp='$CPP $CPPFLAGS' 21310ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21311ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21312ac_compiler_gnu=$ac_cv_c_compiler_gnu 21313 21314 LDFLAGS="$SAVELDFLAGS" 21315 LIBS="$SAVELIBS" 21316 21317 if test "x$with_zliblib" != "x" ; then break; fi 21318 done 21319 fi 21320 fi 21321 21322 # report the results back 21323 if test "x$with_zliblib" = "x"; then 21324 echo "$as_me:$LINENO: result: not found" >&5 21325echo "${ECHO_T}not found" >&6 21326 with_zlib="no" 21327 else 21328 echo "$as_me:$LINENO: result: $with_zliblib" >&5 21329echo "${ECHO_T}$with_zliblib" >&6 21330 if test "$with_zliblib" = "in default path"; then 21331 with_zliblib="" 21332 fi 21333 fi 21334 21335 if test ${with_zlib:-""} != "no"; then 21336 21337 echo "$as_me:$LINENO: checking for zlib.h " >&5 21338echo $ECHO_N "checking for zlib.h ... $ECHO_C" >&6 21339 21340 # first check whether we got an explicit path 21341 if test "x$with_zlib" = "xexplicit" -a "x$with_zlibinc" != "x"; then 21342 21343 # save the state 21344 SAVECPPFLAGS="$CPPFLAGS" 21345 21346 21347 ac_ext=cc 21348ac_cpp='$CXXCPP $CPPFLAGS' 21349ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21350ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21351ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21352 21353 21354 # zlib is the package, zlib.h the include name, "$with_zlibinc" the path 21355 if test "x"$with_zlibinc"" != "x" ; then 21356 CPPFLAGS="-I"$with_zlibinc" $SAVECPPFLAGS" 21357 cat >conftest.$ac_ext <<_ACEOF 21358/* confdefs.h. */ 21359_ACEOF 21360cat confdefs.h >>conftest.$ac_ext 21361cat >>conftest.$ac_ext <<_ACEOF 21362/* end confdefs.h. */ 21363#include <stdio.h> /* for jpeglib.h */ 21364 #include <zlib.h> 21365 21366int 21367main () 21368{ 21369 21370 ; 21371 return 0; 21372} 21373_ACEOF 21374rm -f conftest.$ac_objext 21375if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21376 (eval $ac_compile) 2>conftest.er1 21377 ac_status=$? 21378 grep -v '^ *+' conftest.er1 >conftest.err 21379 rm -f conftest.er1 21380 cat conftest.err >&5 21381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21382 (exit $ac_status); } && 21383 { ac_try='test -z "$ac_cxx_werror_flag" 21384 || test ! -s conftest.err' 21385 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21386 (eval $ac_try) 2>&5 21387 ac_status=$? 21388 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21389 (exit $ac_status); }; } && 21390 { ac_try='test -s conftest.$ac_objext' 21391 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21392 (eval $ac_try) 2>&5 21393 ac_status=$? 21394 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21395 (exit $ac_status); }; }; then 21396 with_zlibinc=""$with_zlibinc"" 21397 with_zlib_I="$CPPFLAGS" 21398else 21399 echo "$as_me: failed program was:" >&5 21400sed 's/^/| /' conftest.$ac_ext >&5 21401 21402with_zlibinc="" 21403fi 21404rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21405 else 21406 cat >conftest.$ac_ext <<_ACEOF 21407/* confdefs.h. */ 21408_ACEOF 21409cat confdefs.h >>conftest.$ac_ext 21410cat >>conftest.$ac_ext <<_ACEOF 21411/* end confdefs.h. */ 21412#include <stdio.h> /* for jpeglib.h */ 21413 #include <zlib.h> 21414 21415int 21416main () 21417{ 21418 21419 ; 21420 return 0; 21421} 21422_ACEOF 21423rm -f conftest.$ac_objext 21424if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21425 (eval $ac_compile) 2>conftest.er1 21426 ac_status=$? 21427 grep -v '^ *+' conftest.er1 >conftest.err 21428 rm -f conftest.er1 21429 cat conftest.err >&5 21430 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21431 (exit $ac_status); } && 21432 { ac_try='test -z "$ac_cxx_werror_flag" 21433 || test ! -s conftest.err' 21434 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21435 (eval $ac_try) 2>&5 21436 ac_status=$? 21437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21438 (exit $ac_status); }; } && 21439 { ac_try='test -s conftest.$ac_objext' 21440 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21441 (eval $ac_try) 2>&5 21442 ac_status=$? 21443 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21444 (exit $ac_status); }; }; then 21445 with_zlibinc="in default path" 21446 with_zlib_I="$CPPFLAGS" 21447else 21448 echo "$as_me: failed program was:" >&5 21449sed 's/^/| /' conftest.$ac_ext >&5 21450 21451with_zlibinc="" 21452fi 21453rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21454 fi 21455 # restore the state 21456 ac_ext=c 21457ac_cpp='$CPP $CPPFLAGS' 21458ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21459ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21460ac_compiler_gnu=$ac_cv_c_compiler_gnu 21461 21462 CPPFLAGS="$SAVECPPFLAGS" 21463 21464 else 21465 # otherwise check whether the library is found without explicit path 21466 # specification (e.g. because it is in /usr/lib) 21467 if test "x$with_zlibinc" = "x" ; then 21468 21469 # save the state 21470 SAVECPPFLAGS="$CPPFLAGS" 21471 21472 21473 ac_ext=cc 21474ac_cpp='$CXXCPP $CPPFLAGS' 21475ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21476ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21477ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21478 21479 21480 # zlib is the package, zlib.h the include name, "" the path 21481 if test "x""" != "x" ; then 21482 CPPFLAGS="-I"" $SAVECPPFLAGS" 21483 cat >conftest.$ac_ext <<_ACEOF 21484/* confdefs.h. */ 21485_ACEOF 21486cat confdefs.h >>conftest.$ac_ext 21487cat >>conftest.$ac_ext <<_ACEOF 21488/* end confdefs.h. */ 21489#include <stdio.h> /* for jpeglib.h */ 21490 #include <zlib.h> 21491 21492int 21493main () 21494{ 21495 21496 ; 21497 return 0; 21498} 21499_ACEOF 21500rm -f conftest.$ac_objext 21501if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21502 (eval $ac_compile) 2>conftest.er1 21503 ac_status=$? 21504 grep -v '^ *+' conftest.er1 >conftest.err 21505 rm -f conftest.er1 21506 cat conftest.err >&5 21507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21508 (exit $ac_status); } && 21509 { ac_try='test -z "$ac_cxx_werror_flag" 21510 || test ! -s conftest.err' 21511 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21512 (eval $ac_try) 2>&5 21513 ac_status=$? 21514 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21515 (exit $ac_status); }; } && 21516 { ac_try='test -s conftest.$ac_objext' 21517 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21518 (eval $ac_try) 2>&5 21519 ac_status=$? 21520 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21521 (exit $ac_status); }; }; then 21522 with_zlibinc="""" 21523 with_zlib_I="$CPPFLAGS" 21524else 21525 echo "$as_me: failed program was:" >&5 21526sed 's/^/| /' conftest.$ac_ext >&5 21527 21528with_zlibinc="" 21529fi 21530rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21531 else 21532 cat >conftest.$ac_ext <<_ACEOF 21533/* confdefs.h. */ 21534_ACEOF 21535cat confdefs.h >>conftest.$ac_ext 21536cat >>conftest.$ac_ext <<_ACEOF 21537/* end confdefs.h. */ 21538#include <stdio.h> /* for jpeglib.h */ 21539 #include <zlib.h> 21540 21541int 21542main () 21543{ 21544 21545 ; 21546 return 0; 21547} 21548_ACEOF 21549rm -f conftest.$ac_objext 21550if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21551 (eval $ac_compile) 2>conftest.er1 21552 ac_status=$? 21553 grep -v '^ *+' conftest.er1 >conftest.err 21554 rm -f conftest.er1 21555 cat conftest.err >&5 21556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21557 (exit $ac_status); } && 21558 { ac_try='test -z "$ac_cxx_werror_flag" 21559 || test ! -s conftest.err' 21560 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21561 (eval $ac_try) 2>&5 21562 ac_status=$? 21563 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21564 (exit $ac_status); }; } && 21565 { ac_try='test -s conftest.$ac_objext' 21566 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21567 (eval $ac_try) 2>&5 21568 ac_status=$? 21569 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21570 (exit $ac_status); }; }; then 21571 with_zlibinc="in default path" 21572 with_zlib_I="$CPPFLAGS" 21573else 21574 echo "$as_me: failed program was:" >&5 21575sed 's/^/| /' conftest.$ac_ext >&5 21576 21577with_zlibinc="" 21578fi 21579rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21580 fi 21581 # restore the state 21582 ac_ext=c 21583ac_cpp='$CPP $CPPFLAGS' 21584ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21585ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21586ac_compiler_gnu=$ac_cv_c_compiler_gnu 21587 21588 CPPFLAGS="$SAVECPPFLAGS" 21589 21590 fi 21591 # if this didn't work check whether the library path is in the 21592 # same tree as the library path, or among the directories in the 21593 # original $CPPFLAGS or a few standard directories 21594 if test -n ""; then 21595 PATHPOSTFIX="/" 21596 else 21597 PATHPOSTFIX="" 21598 fi 21599 EXTRAINCSEARCHPATH="" 21600 i="$with_zliblib" 21601 while test "x$i" != "x"; do 21602 if test -d "${i}/include"; then 21603 EXTRAINCSEARCHPATH="$EXTRAINCSEARCHPATH ${i}/include" 21604 fi 21605 j=`expr "$i" : "\(.*\)/"` 21606 i=$j 21607 done 21608 if test "x$with_zlibinc" = "x" ; then 21609 for i in $EXTRAINCSEARCHPATH $INCSEARCHPATH /usr/local/include/zlib /usr/local/include; do 21610 21611 # save the state 21612 SAVECPPFLAGS="$CPPFLAGS" 21613 21614 21615 ac_ext=cc 21616ac_cpp='$CXXCPP $CPPFLAGS' 21617ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21618ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21619ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21620 21621 21622 # zlib is the package, zlib.h the include name, "$i$PATHPOSTFIX" the path 21623 if test "x"$i$PATHPOSTFIX"" != "x" ; then 21624 CPPFLAGS="-I"$i$PATHPOSTFIX" $SAVECPPFLAGS" 21625 cat >conftest.$ac_ext <<_ACEOF 21626/* confdefs.h. */ 21627_ACEOF 21628cat confdefs.h >>conftest.$ac_ext 21629cat >>conftest.$ac_ext <<_ACEOF 21630/* end confdefs.h. */ 21631#include <stdio.h> /* for jpeglib.h */ 21632 #include <zlib.h> 21633 21634int 21635main () 21636{ 21637 21638 ; 21639 return 0; 21640} 21641_ACEOF 21642rm -f conftest.$ac_objext 21643if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21644 (eval $ac_compile) 2>conftest.er1 21645 ac_status=$? 21646 grep -v '^ *+' conftest.er1 >conftest.err 21647 rm -f conftest.er1 21648 cat conftest.err >&5 21649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21650 (exit $ac_status); } && 21651 { ac_try='test -z "$ac_cxx_werror_flag" 21652 || test ! -s conftest.err' 21653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21654 (eval $ac_try) 2>&5 21655 ac_status=$? 21656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21657 (exit $ac_status); }; } && 21658 { ac_try='test -s conftest.$ac_objext' 21659 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21660 (eval $ac_try) 2>&5 21661 ac_status=$? 21662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21663 (exit $ac_status); }; }; then 21664 with_zlibinc=""$i$PATHPOSTFIX"" 21665 with_zlib_I="$CPPFLAGS" 21666else 21667 echo "$as_me: failed program was:" >&5 21668sed 's/^/| /' conftest.$ac_ext >&5 21669 21670with_zlibinc="" 21671fi 21672rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21673 else 21674 cat >conftest.$ac_ext <<_ACEOF 21675/* confdefs.h. */ 21676_ACEOF 21677cat confdefs.h >>conftest.$ac_ext 21678cat >>conftest.$ac_ext <<_ACEOF 21679/* end confdefs.h. */ 21680#include <stdio.h> /* for jpeglib.h */ 21681 #include <zlib.h> 21682 21683int 21684main () 21685{ 21686 21687 ; 21688 return 0; 21689} 21690_ACEOF 21691rm -f conftest.$ac_objext 21692if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 21693 (eval $ac_compile) 2>conftest.er1 21694 ac_status=$? 21695 grep -v '^ *+' conftest.er1 >conftest.err 21696 rm -f conftest.er1 21697 cat conftest.err >&5 21698 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21699 (exit $ac_status); } && 21700 { ac_try='test -z "$ac_cxx_werror_flag" 21701 || test ! -s conftest.err' 21702 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21703 (eval $ac_try) 2>&5 21704 ac_status=$? 21705 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21706 (exit $ac_status); }; } && 21707 { ac_try='test -s conftest.$ac_objext' 21708 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21709 (eval $ac_try) 2>&5 21710 ac_status=$? 21711 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21712 (exit $ac_status); }; }; then 21713 with_zlibinc="in default path" 21714 with_zlib_I="$CPPFLAGS" 21715else 21716 echo "$as_me: failed program was:" >&5 21717sed 's/^/| /' conftest.$ac_ext >&5 21718 21719with_zlibinc="" 21720fi 21721rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 21722 fi 21723 # restore the state 21724 ac_ext=c 21725ac_cpp='$CPP $CPPFLAGS' 21726ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21727ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21728ac_compiler_gnu=$ac_cv_c_compiler_gnu 21729 21730 CPPFLAGS="$SAVECPPFLAGS" 21731 21732 if test "x$with_zlibinc" != "x" ; then break; fi 21733 done 21734 fi 21735 fi 21736 21737 # report the results back 21738 if test "x$with_zlibinc" = "x"; then 21739 echo "$as_me:$LINENO: result: not found" >&5 21740echo "${ECHO_T}not found" >&6 21741 with_zlib="no" 21742 with_zliblib="" 21743 else 21744 echo "$as_me:$LINENO: result: $with_zlibinc" >&5 21745echo "${ECHO_T}$with_zlibinc" >&6 21746 if test "$with_zlibinc" = "in default path"; then 21747 with_zlibinc="" 21748 fi 21749 fi 21750 21751 if test ${with_zlib:-""} != "no"; then 21752 with_zlib="yes" 21753 fi 21754 fi 21755 fi 21756 21757 21758 fi 21759 if test "$with_zlib" = "no"; then 21760 { echo "$as_me:$LINENO: WARNING: Configuring without png support -- missing zlib " >&5 21761echo "$as_me: WARNING: Configuring without png support -- missing zlib " >&2;} 21762 with_png="no" 21763 else 21764 CPPFLAGS="$with_zlib_I" 21765 LDFLAGS="$with_zlib_L" 21766 LIBS="$with_zlib_l" 21767 21768 if test ${with_png:-""} != "no"; then 21769 21770 echo "$as_me:$LINENO: checking for libpng " >&5 21771echo $ECHO_N "checking for libpng ... $ECHO_C" >&6 21772 21773 # if we got an explicit path, that's the only one we check 21774 if test "x$with_png" = "xexplicit" -a "x$with_pnglib" != "x"; then 21775 21776 # save the state 21777 SAVELDFLAGS="$LDFLAGS" 21778 SAVELIBS="$LIBS" 21779 21780 21781 ac_ext=cc 21782ac_cpp='$CXXCPP $CPPFLAGS' 21783ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21784ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21785ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21786 21787 21788 # png is the package, png the library name, "$with_pnglib" the path 21789 if test "x"$with_pnglib"" != "x" ; then 21790 LDFLAGS="-L"$with_pnglib" $SAVELDFLAGS" 21791 LIBS="-lpng $SAVELIBS" 21792 cat >conftest.$ac_ext <<_ACEOF 21793/* confdefs.h. */ 21794_ACEOF 21795cat confdefs.h >>conftest.$ac_ext 21796cat >>conftest.$ac_ext <<_ACEOF 21797/* end confdefs.h. */ 21798 21799int 21800main () 21801{ 21802 21803 ; 21804 return 0; 21805} 21806_ACEOF 21807rm -f conftest.$ac_objext conftest$ac_exeext 21808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21809 (eval $ac_link) 2>conftest.er1 21810 ac_status=$? 21811 grep -v '^ *+' conftest.er1 >conftest.err 21812 rm -f conftest.er1 21813 cat conftest.err >&5 21814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21815 (exit $ac_status); } && 21816 { ac_try='test -z "$ac_cxx_werror_flag" 21817 || test ! -s conftest.err' 21818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21819 (eval $ac_try) 2>&5 21820 ac_status=$? 21821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21822 (exit $ac_status); }; } && 21823 { ac_try='test -s conftest$ac_exeext' 21824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21825 (eval $ac_try) 2>&5 21826 ac_status=$? 21827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21828 (exit $ac_status); }; }; then 21829 with_pnglib=""$with_pnglib"" 21830 with_png_L="$LDFLAGS" 21831 with_png_l="$LIBS" 21832else 21833 echo "$as_me: failed program was:" >&5 21834sed 's/^/| /' conftest.$ac_ext >&5 21835 21836with_pnglib="" 21837fi 21838rm -f conftest.err conftest.$ac_objext \ 21839 conftest$ac_exeext conftest.$ac_ext 21840 else 21841 LIBS="-lpng $SAVELIBS" 21842 cat >conftest.$ac_ext <<_ACEOF 21843/* confdefs.h. */ 21844_ACEOF 21845cat confdefs.h >>conftest.$ac_ext 21846cat >>conftest.$ac_ext <<_ACEOF 21847/* end confdefs.h. */ 21848 21849int 21850main () 21851{ 21852 21853 ; 21854 return 0; 21855} 21856_ACEOF 21857rm -f conftest.$ac_objext conftest$ac_exeext 21858if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21859 (eval $ac_link) 2>conftest.er1 21860 ac_status=$? 21861 grep -v '^ *+' conftest.er1 >conftest.err 21862 rm -f conftest.er1 21863 cat conftest.err >&5 21864 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21865 (exit $ac_status); } && 21866 { ac_try='test -z "$ac_cxx_werror_flag" 21867 || test ! -s conftest.err' 21868 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21869 (eval $ac_try) 2>&5 21870 ac_status=$? 21871 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21872 (exit $ac_status); }; } && 21873 { ac_try='test -s conftest$ac_exeext' 21874 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21875 (eval $ac_try) 2>&5 21876 ac_status=$? 21877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21878 (exit $ac_status); }; }; then 21879 with_pnglib="in default path" 21880 with_png_L="$LDFLAGS" 21881 with_png_l="$LIBS" 21882else 21883 echo "$as_me: failed program was:" >&5 21884sed 's/^/| /' conftest.$ac_ext >&5 21885 21886with_pnglib="" 21887fi 21888rm -f conftest.err conftest.$ac_objext \ 21889 conftest$ac_exeext conftest.$ac_ext 21890 fi 21891 # restore the state 21892 ac_ext=c 21893ac_cpp='$CPP $CPPFLAGS' 21894ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21895ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21896ac_compiler_gnu=$ac_cv_c_compiler_gnu 21897 21898 LDFLAGS="$SAVELDFLAGS" 21899 LIBS="$SAVELIBS" 21900 21901 else 21902 # otherwise check whether the library is found without explicit path 21903 # specification (e.g. because it is in /usr/lib) 21904 if test "x$with_pnglib" = "x" ; then 21905 21906 # save the state 21907 SAVELDFLAGS="$LDFLAGS" 21908 SAVELIBS="$LIBS" 21909 21910 21911 ac_ext=cc 21912ac_cpp='$CXXCPP $CPPFLAGS' 21913ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 21914ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 21915ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 21916 21917 21918 # png is the package, png the library name, "" the path 21919 if test "x""" != "x" ; then 21920 LDFLAGS="-L"" $SAVELDFLAGS" 21921 LIBS="-lpng $SAVELIBS" 21922 cat >conftest.$ac_ext <<_ACEOF 21923/* confdefs.h. */ 21924_ACEOF 21925cat confdefs.h >>conftest.$ac_ext 21926cat >>conftest.$ac_ext <<_ACEOF 21927/* end confdefs.h. */ 21928 21929int 21930main () 21931{ 21932 21933 ; 21934 return 0; 21935} 21936_ACEOF 21937rm -f conftest.$ac_objext conftest$ac_exeext 21938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21939 (eval $ac_link) 2>conftest.er1 21940 ac_status=$? 21941 grep -v '^ *+' conftest.er1 >conftest.err 21942 rm -f conftest.er1 21943 cat conftest.err >&5 21944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21945 (exit $ac_status); } && 21946 { ac_try='test -z "$ac_cxx_werror_flag" 21947 || test ! -s conftest.err' 21948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21949 (eval $ac_try) 2>&5 21950 ac_status=$? 21951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21952 (exit $ac_status); }; } && 21953 { ac_try='test -s conftest$ac_exeext' 21954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21955 (eval $ac_try) 2>&5 21956 ac_status=$? 21957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21958 (exit $ac_status); }; }; then 21959 with_pnglib="""" 21960 with_png_L="$LDFLAGS" 21961 with_png_l="$LIBS" 21962else 21963 echo "$as_me: failed program was:" >&5 21964sed 's/^/| /' conftest.$ac_ext >&5 21965 21966with_pnglib="" 21967fi 21968rm -f conftest.err conftest.$ac_objext \ 21969 conftest$ac_exeext conftest.$ac_ext 21970 else 21971 LIBS="-lpng $SAVELIBS" 21972 cat >conftest.$ac_ext <<_ACEOF 21973/* confdefs.h. */ 21974_ACEOF 21975cat confdefs.h >>conftest.$ac_ext 21976cat >>conftest.$ac_ext <<_ACEOF 21977/* end confdefs.h. */ 21978 21979int 21980main () 21981{ 21982 21983 ; 21984 return 0; 21985} 21986_ACEOF 21987rm -f conftest.$ac_objext conftest$ac_exeext 21988if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 21989 (eval $ac_link) 2>conftest.er1 21990 ac_status=$? 21991 grep -v '^ *+' conftest.er1 >conftest.err 21992 rm -f conftest.er1 21993 cat conftest.err >&5 21994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 21995 (exit $ac_status); } && 21996 { ac_try='test -z "$ac_cxx_werror_flag" 21997 || test ! -s conftest.err' 21998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 21999 (eval $ac_try) 2>&5 22000 ac_status=$? 22001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22002 (exit $ac_status); }; } && 22003 { ac_try='test -s conftest$ac_exeext' 22004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22005 (eval $ac_try) 2>&5 22006 ac_status=$? 22007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22008 (exit $ac_status); }; }; then 22009 with_pnglib="in default path" 22010 with_png_L="$LDFLAGS" 22011 with_png_l="$LIBS" 22012else 22013 echo "$as_me: failed program was:" >&5 22014sed 's/^/| /' conftest.$ac_ext >&5 22015 22016with_pnglib="" 22017fi 22018rm -f conftest.err conftest.$ac_objext \ 22019 conftest$ac_exeext conftest.$ac_ext 22020 fi 22021 # restore the state 22022 ac_ext=c 22023ac_cpp='$CPP $CPPFLAGS' 22024ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22025ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22026ac_compiler_gnu=$ac_cv_c_compiler_gnu 22027 22028 LDFLAGS="$SAVELDFLAGS" 22029 LIBS="$SAVELIBS" 22030 22031 fi 22032 # if this didn't work check whether the library path was in the 22033 # original $LDFLAGS or a few standard directories 22034 if test "x$with_pnglib" = "x" ; then 22035 for i in $LIBSEARCHPATH /usr/local/lib/png /usr/local/lib; do 22036 22037 # save the state 22038 SAVELDFLAGS="$LDFLAGS" 22039 SAVELIBS="$LIBS" 22040 22041 22042 ac_ext=cc 22043ac_cpp='$CXXCPP $CPPFLAGS' 22044ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22045ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22046ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22047 22048 22049 # png is the package, png the library name, "$i" the path 22050 if test "x"$i"" != "x" ; then 22051 LDFLAGS="-L"$i" $SAVELDFLAGS" 22052 LIBS="-lpng $SAVELIBS" 22053 cat >conftest.$ac_ext <<_ACEOF 22054/* confdefs.h. */ 22055_ACEOF 22056cat confdefs.h >>conftest.$ac_ext 22057cat >>conftest.$ac_ext <<_ACEOF 22058/* end confdefs.h. */ 22059 22060int 22061main () 22062{ 22063 22064 ; 22065 return 0; 22066} 22067_ACEOF 22068rm -f conftest.$ac_objext conftest$ac_exeext 22069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22070 (eval $ac_link) 2>conftest.er1 22071 ac_status=$? 22072 grep -v '^ *+' conftest.er1 >conftest.err 22073 rm -f conftest.er1 22074 cat conftest.err >&5 22075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22076 (exit $ac_status); } && 22077 { ac_try='test -z "$ac_cxx_werror_flag" 22078 || test ! -s conftest.err' 22079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22080 (eval $ac_try) 2>&5 22081 ac_status=$? 22082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22083 (exit $ac_status); }; } && 22084 { ac_try='test -s conftest$ac_exeext' 22085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22086 (eval $ac_try) 2>&5 22087 ac_status=$? 22088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22089 (exit $ac_status); }; }; then 22090 with_pnglib=""$i"" 22091 with_png_L="$LDFLAGS" 22092 with_png_l="$LIBS" 22093else 22094 echo "$as_me: failed program was:" >&5 22095sed 's/^/| /' conftest.$ac_ext >&5 22096 22097with_pnglib="" 22098fi 22099rm -f conftest.err conftest.$ac_objext \ 22100 conftest$ac_exeext conftest.$ac_ext 22101 else 22102 LIBS="-lpng $SAVELIBS" 22103 cat >conftest.$ac_ext <<_ACEOF 22104/* confdefs.h. */ 22105_ACEOF 22106cat confdefs.h >>conftest.$ac_ext 22107cat >>conftest.$ac_ext <<_ACEOF 22108/* end confdefs.h. */ 22109 22110int 22111main () 22112{ 22113 22114 ; 22115 return 0; 22116} 22117_ACEOF 22118rm -f conftest.$ac_objext conftest$ac_exeext 22119if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22120 (eval $ac_link) 2>conftest.er1 22121 ac_status=$? 22122 grep -v '^ *+' conftest.er1 >conftest.err 22123 rm -f conftest.er1 22124 cat conftest.err >&5 22125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22126 (exit $ac_status); } && 22127 { ac_try='test -z "$ac_cxx_werror_flag" 22128 || test ! -s conftest.err' 22129 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22130 (eval $ac_try) 2>&5 22131 ac_status=$? 22132 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22133 (exit $ac_status); }; } && 22134 { ac_try='test -s conftest$ac_exeext' 22135 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22136 (eval $ac_try) 2>&5 22137 ac_status=$? 22138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22139 (exit $ac_status); }; }; then 22140 with_pnglib="in default path" 22141 with_png_L="$LDFLAGS" 22142 with_png_l="$LIBS" 22143else 22144 echo "$as_me: failed program was:" >&5 22145sed 's/^/| /' conftest.$ac_ext >&5 22146 22147with_pnglib="" 22148fi 22149rm -f conftest.err conftest.$ac_objext \ 22150 conftest$ac_exeext conftest.$ac_ext 22151 fi 22152 # restore the state 22153 ac_ext=c 22154ac_cpp='$CPP $CPPFLAGS' 22155ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22156ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22157ac_compiler_gnu=$ac_cv_c_compiler_gnu 22158 22159 LDFLAGS="$SAVELDFLAGS" 22160 LIBS="$SAVELIBS" 22161 22162 if test "x$with_pnglib" != "x" ; then break; fi 22163 done 22164 fi 22165 fi 22166 22167 # report the results back 22168 if test "x$with_pnglib" = "x"; then 22169 echo "$as_me:$LINENO: result: not found" >&5 22170echo "${ECHO_T}not found" >&6 22171 with_png="no" 22172 else 22173 echo "$as_me:$LINENO: result: $with_pnglib" >&5 22174echo "${ECHO_T}$with_pnglib" >&6 22175 if test "$with_pnglib" = "in default path"; then 22176 with_pnglib="" 22177 fi 22178 fi 22179 22180 if test ${with_png:-""} != "no"; then 22181 22182 echo "$as_me:$LINENO: checking for png.h " >&5 22183echo $ECHO_N "checking for png.h ... $ECHO_C" >&6 22184 22185 # first check whether we got an explicit path 22186 if test "x$with_png" = "xexplicit" -a "x$with_pnginc" != "x"; then 22187 22188 # save the state 22189 SAVECPPFLAGS="$CPPFLAGS" 22190 22191 22192 ac_ext=cc 22193ac_cpp='$CXXCPP $CPPFLAGS' 22194ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22195ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22196ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22197 22198 22199 # png is the package, png.h the include name, "$with_pnginc" the path 22200 if test "x"$with_pnginc"" != "x" ; then 22201 CPPFLAGS="-I"$with_pnginc" $SAVECPPFLAGS" 22202 cat >conftest.$ac_ext <<_ACEOF 22203/* confdefs.h. */ 22204_ACEOF 22205cat confdefs.h >>conftest.$ac_ext 22206cat >>conftest.$ac_ext <<_ACEOF 22207/* end confdefs.h. */ 22208#include <stdio.h> /* for jpeglib.h */ 22209 #include <png.h> 22210 22211int 22212main () 22213{ 22214 22215 ; 22216 return 0; 22217} 22218_ACEOF 22219rm -f conftest.$ac_objext 22220if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22221 (eval $ac_compile) 2>conftest.er1 22222 ac_status=$? 22223 grep -v '^ *+' conftest.er1 >conftest.err 22224 rm -f conftest.er1 22225 cat conftest.err >&5 22226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22227 (exit $ac_status); } && 22228 { ac_try='test -z "$ac_cxx_werror_flag" 22229 || test ! -s conftest.err' 22230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22231 (eval $ac_try) 2>&5 22232 ac_status=$? 22233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22234 (exit $ac_status); }; } && 22235 { ac_try='test -s conftest.$ac_objext' 22236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22237 (eval $ac_try) 2>&5 22238 ac_status=$? 22239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22240 (exit $ac_status); }; }; then 22241 with_pnginc=""$with_pnginc"" 22242 with_png_I="$CPPFLAGS" 22243else 22244 echo "$as_me: failed program was:" >&5 22245sed 's/^/| /' conftest.$ac_ext >&5 22246 22247with_pnginc="" 22248fi 22249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22250 else 22251 cat >conftest.$ac_ext <<_ACEOF 22252/* confdefs.h. */ 22253_ACEOF 22254cat confdefs.h >>conftest.$ac_ext 22255cat >>conftest.$ac_ext <<_ACEOF 22256/* end confdefs.h. */ 22257#include <stdio.h> /* for jpeglib.h */ 22258 #include <png.h> 22259 22260int 22261main () 22262{ 22263 22264 ; 22265 return 0; 22266} 22267_ACEOF 22268rm -f conftest.$ac_objext 22269if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22270 (eval $ac_compile) 2>conftest.er1 22271 ac_status=$? 22272 grep -v '^ *+' conftest.er1 >conftest.err 22273 rm -f conftest.er1 22274 cat conftest.err >&5 22275 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22276 (exit $ac_status); } && 22277 { ac_try='test -z "$ac_cxx_werror_flag" 22278 || test ! -s conftest.err' 22279 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22280 (eval $ac_try) 2>&5 22281 ac_status=$? 22282 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22283 (exit $ac_status); }; } && 22284 { ac_try='test -s conftest.$ac_objext' 22285 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22286 (eval $ac_try) 2>&5 22287 ac_status=$? 22288 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22289 (exit $ac_status); }; }; then 22290 with_pnginc="in default path" 22291 with_png_I="$CPPFLAGS" 22292else 22293 echo "$as_me: failed program was:" >&5 22294sed 's/^/| /' conftest.$ac_ext >&5 22295 22296with_pnginc="" 22297fi 22298rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22299 fi 22300 # restore the state 22301 ac_ext=c 22302ac_cpp='$CPP $CPPFLAGS' 22303ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22304ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22305ac_compiler_gnu=$ac_cv_c_compiler_gnu 22306 22307 CPPFLAGS="$SAVECPPFLAGS" 22308 22309 else 22310 # otherwise check whether the library is found without explicit path 22311 # specification (e.g. because it is in /usr/lib) 22312 if test "x$with_pnginc" = "x" ; then 22313 22314 # save the state 22315 SAVECPPFLAGS="$CPPFLAGS" 22316 22317 22318 ac_ext=cc 22319ac_cpp='$CXXCPP $CPPFLAGS' 22320ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22321ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22322ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22323 22324 22325 # png is the package, png.h the include name, "" the path 22326 if test "x""" != "x" ; then 22327 CPPFLAGS="-I"" $SAVECPPFLAGS" 22328 cat >conftest.$ac_ext <<_ACEOF 22329/* confdefs.h. */ 22330_ACEOF 22331cat confdefs.h >>conftest.$ac_ext 22332cat >>conftest.$ac_ext <<_ACEOF 22333/* end confdefs.h. */ 22334#include <stdio.h> /* for jpeglib.h */ 22335 #include <png.h> 22336 22337int 22338main () 22339{ 22340 22341 ; 22342 return 0; 22343} 22344_ACEOF 22345rm -f conftest.$ac_objext 22346if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22347 (eval $ac_compile) 2>conftest.er1 22348 ac_status=$? 22349 grep -v '^ *+' conftest.er1 >conftest.err 22350 rm -f conftest.er1 22351 cat conftest.err >&5 22352 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22353 (exit $ac_status); } && 22354 { ac_try='test -z "$ac_cxx_werror_flag" 22355 || test ! -s conftest.err' 22356 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22357 (eval $ac_try) 2>&5 22358 ac_status=$? 22359 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22360 (exit $ac_status); }; } && 22361 { ac_try='test -s conftest.$ac_objext' 22362 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22363 (eval $ac_try) 2>&5 22364 ac_status=$? 22365 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22366 (exit $ac_status); }; }; then 22367 with_pnginc="""" 22368 with_png_I="$CPPFLAGS" 22369else 22370 echo "$as_me: failed program was:" >&5 22371sed 's/^/| /' conftest.$ac_ext >&5 22372 22373with_pnginc="" 22374fi 22375rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22376 else 22377 cat >conftest.$ac_ext <<_ACEOF 22378/* confdefs.h. */ 22379_ACEOF 22380cat confdefs.h >>conftest.$ac_ext 22381cat >>conftest.$ac_ext <<_ACEOF 22382/* end confdefs.h. */ 22383#include <stdio.h> /* for jpeglib.h */ 22384 #include <png.h> 22385 22386int 22387main () 22388{ 22389 22390 ; 22391 return 0; 22392} 22393_ACEOF 22394rm -f conftest.$ac_objext 22395if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22396 (eval $ac_compile) 2>conftest.er1 22397 ac_status=$? 22398 grep -v '^ *+' conftest.er1 >conftest.err 22399 rm -f conftest.er1 22400 cat conftest.err >&5 22401 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22402 (exit $ac_status); } && 22403 { ac_try='test -z "$ac_cxx_werror_flag" 22404 || test ! -s conftest.err' 22405 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22406 (eval $ac_try) 2>&5 22407 ac_status=$? 22408 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22409 (exit $ac_status); }; } && 22410 { ac_try='test -s conftest.$ac_objext' 22411 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22412 (eval $ac_try) 2>&5 22413 ac_status=$? 22414 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22415 (exit $ac_status); }; }; then 22416 with_pnginc="in default path" 22417 with_png_I="$CPPFLAGS" 22418else 22419 echo "$as_me: failed program was:" >&5 22420sed 's/^/| /' conftest.$ac_ext >&5 22421 22422with_pnginc="" 22423fi 22424rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22425 fi 22426 # restore the state 22427 ac_ext=c 22428ac_cpp='$CPP $CPPFLAGS' 22429ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22430ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22431ac_compiler_gnu=$ac_cv_c_compiler_gnu 22432 22433 CPPFLAGS="$SAVECPPFLAGS" 22434 22435 fi 22436 # if this didn't work check whether the library path is in the 22437 # same tree as the library path, or among the directories in the 22438 # original $CPPFLAGS or a few standard directories 22439 if test -n ""; then 22440 PATHPOSTFIX="/" 22441 else 22442 PATHPOSTFIX="" 22443 fi 22444 EXTRAINCSEARCHPATH="" 22445 i="$with_pnglib" 22446 while test "x$i" != "x"; do 22447 if test -d "${i}/include"; then 22448 EXTRAINCSEARCHPATH="$EXTRAINCSEARCHPATH ${i}/include" 22449 fi 22450 j=`expr "$i" : "\(.*\)/"` 22451 i=$j 22452 done 22453 if test "x$with_pnginc" = "x" ; then 22454 for i in $EXTRAINCSEARCHPATH $INCSEARCHPATH /usr/local/include/png /usr/local/include; do 22455 22456 # save the state 22457 SAVECPPFLAGS="$CPPFLAGS" 22458 22459 22460 ac_ext=cc 22461ac_cpp='$CXXCPP $CPPFLAGS' 22462ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22463ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22464ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22465 22466 22467 # png is the package, png.h the include name, "$i$PATHPOSTFIX" the path 22468 if test "x"$i$PATHPOSTFIX"" != "x" ; then 22469 CPPFLAGS="-I"$i$PATHPOSTFIX" $SAVECPPFLAGS" 22470 cat >conftest.$ac_ext <<_ACEOF 22471/* confdefs.h. */ 22472_ACEOF 22473cat confdefs.h >>conftest.$ac_ext 22474cat >>conftest.$ac_ext <<_ACEOF 22475/* end confdefs.h. */ 22476#include <stdio.h> /* for jpeglib.h */ 22477 #include <png.h> 22478 22479int 22480main () 22481{ 22482 22483 ; 22484 return 0; 22485} 22486_ACEOF 22487rm -f conftest.$ac_objext 22488if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22489 (eval $ac_compile) 2>conftest.er1 22490 ac_status=$? 22491 grep -v '^ *+' conftest.er1 >conftest.err 22492 rm -f conftest.er1 22493 cat conftest.err >&5 22494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22495 (exit $ac_status); } && 22496 { ac_try='test -z "$ac_cxx_werror_flag" 22497 || test ! -s conftest.err' 22498 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22499 (eval $ac_try) 2>&5 22500 ac_status=$? 22501 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22502 (exit $ac_status); }; } && 22503 { ac_try='test -s conftest.$ac_objext' 22504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22505 (eval $ac_try) 2>&5 22506 ac_status=$? 22507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22508 (exit $ac_status); }; }; then 22509 with_pnginc=""$i$PATHPOSTFIX"" 22510 with_png_I="$CPPFLAGS" 22511else 22512 echo "$as_me: failed program was:" >&5 22513sed 's/^/| /' conftest.$ac_ext >&5 22514 22515with_pnginc="" 22516fi 22517rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22518 else 22519 cat >conftest.$ac_ext <<_ACEOF 22520/* confdefs.h. */ 22521_ACEOF 22522cat confdefs.h >>conftest.$ac_ext 22523cat >>conftest.$ac_ext <<_ACEOF 22524/* end confdefs.h. */ 22525#include <stdio.h> /* for jpeglib.h */ 22526 #include <png.h> 22527 22528int 22529main () 22530{ 22531 22532 ; 22533 return 0; 22534} 22535_ACEOF 22536rm -f conftest.$ac_objext 22537if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 22538 (eval $ac_compile) 2>conftest.er1 22539 ac_status=$? 22540 grep -v '^ *+' conftest.er1 >conftest.err 22541 rm -f conftest.er1 22542 cat conftest.err >&5 22543 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22544 (exit $ac_status); } && 22545 { ac_try='test -z "$ac_cxx_werror_flag" 22546 || test ! -s conftest.err' 22547 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22548 (eval $ac_try) 2>&5 22549 ac_status=$? 22550 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22551 (exit $ac_status); }; } && 22552 { ac_try='test -s conftest.$ac_objext' 22553 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22554 (eval $ac_try) 2>&5 22555 ac_status=$? 22556 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22557 (exit $ac_status); }; }; then 22558 with_pnginc="in default path" 22559 with_png_I="$CPPFLAGS" 22560else 22561 echo "$as_me: failed program was:" >&5 22562sed 's/^/| /' conftest.$ac_ext >&5 22563 22564with_pnginc="" 22565fi 22566rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 22567 fi 22568 # restore the state 22569 ac_ext=c 22570ac_cpp='$CPP $CPPFLAGS' 22571ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22572ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22573ac_compiler_gnu=$ac_cv_c_compiler_gnu 22574 22575 CPPFLAGS="$SAVECPPFLAGS" 22576 22577 if test "x$with_pnginc" != "x" ; then break; fi 22578 done 22579 fi 22580 fi 22581 22582 # report the results back 22583 if test "x$with_pnginc" = "x"; then 22584 echo "$as_me:$LINENO: result: not found" >&5 22585echo "${ECHO_T}not found" >&6 22586 with_png="no" 22587 with_pnglib="" 22588 else 22589 echo "$as_me:$LINENO: result: $with_pnginc" >&5 22590echo "${ECHO_T}$with_pnginc" >&6 22591 if test "$with_pnginc" = "in default path"; then 22592 with_pnginc="" 22593 fi 22594 fi 22595 22596 if test ${with_png:-""} != "no"; then 22597 with_png="yes" 22598 fi 22599 fi 22600 fi 22601 22602 22603 CPPFLAGS="" 22604 LDFLAGS="" 22605 LIBS="" 22606 fi 22607fi 22608if test $with_png = "yes"; then 22609 PNG_LIB="$with_png_L $with_png_l" 22610 IMPEX_DEPLIBS="$PNG_LIB $IMPEX_DEPLIBS" 22611 LIBCPPFLAGS="-DHasPNG $with_png_I $LIBCPPFLAGS" 22612else 22613 { echo "$as_me:$LINENO: WARNING: Configuring without png support" >&5 22614echo "$as_me: WARNING: Configuring without png support" >&2;} 22615fi 22616 22617 22618if test "$with_fftw" = "search"; then 22619 22620 if test "x$PKGCONFIG" != "x"; then 22621 echo "$as_me:$LINENO: checking if pkg-config knows about fftw " >&5 22622echo $ECHO_N "checking if pkg-config knows about fftw ... $ECHO_C" >&6 22623 if $PKGCONFIG --exists "fftw3"; then 22624 # save the state 22625 SAVECPPFLAGS="$CPPFLAGS" 22626 SAVELDFLAGS="$LDFLAGS" 22627 SAVELIBS="$LIBS" 22628 22629 22630 ac_ext=cc 22631ac_cpp='$CXXCPP $CPPFLAGS' 22632ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22633ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22634ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22635 22636 22637 # fftw is the package, fftw3 the pkg-config name, fftw3.h the include name 22638 CPPFLAGS=`$PKGCONFIG --cflags-only-I "fftw3"` 22639 LDFLAGS=`$PKGCONFIG --libs-only-L "fftw3"` 22640 LIBS=`$PKGCONFIG --libs-only-l "fftw3"` 22641 cat >conftest.$ac_ext <<_ACEOF 22642/* confdefs.h. */ 22643_ACEOF 22644cat confdefs.h >>conftest.$ac_ext 22645cat >>conftest.$ac_ext <<_ACEOF 22646/* end confdefs.h. */ 22647#include <stdio.h> /* for jpeglib.h */ 22648 #include <fftw3.h> 22649 22650int 22651main () 22652{ 22653 22654 ; 22655 return 0; 22656} 22657_ACEOF 22658rm -f conftest.$ac_objext conftest$ac_exeext 22659if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22660 (eval $ac_link) 2>conftest.er1 22661 ac_status=$? 22662 grep -v '^ *+' conftest.er1 >conftest.err 22663 rm -f conftest.er1 22664 cat conftest.err >&5 22665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22666 (exit $ac_status); } && 22667 { ac_try='test -z "$ac_cxx_werror_flag" 22668 || test ! -s conftest.err' 22669 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22670 (eval $ac_try) 2>&5 22671 ac_status=$? 22672 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22673 (exit $ac_status); }; } && 22674 { ac_try='test -s conftest$ac_exeext' 22675 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22676 (eval $ac_try) 2>&5 22677 ac_status=$? 22678 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22679 (exit $ac_status); }; }; then 22680 with_fftw="yes" 22681 with_fftw_I="$CPPFLAGS" 22682 with_fftw_L="$LDFLAGS" 22683 with_fftw_l="$LIBS" 22684 22685else 22686 echo "$as_me: failed program was:" >&5 22687sed 's/^/| /' conftest.$ac_ext >&5 22688 22689with_fftw_I="" 22690 with_fftw_L="" 22691 with_fftw_l="" 22692 22693fi 22694rm -f conftest.err conftest.$ac_objext \ 22695 conftest$ac_exeext conftest.$ac_ext 22696 CPPFLAGS="$CPPFLAGS $SAVECPPFLAGS" 22697 LDFLAGS="$LDFLAGS $SAVELDFLAGS" 22698 LIBS="$LIBS $SAVELIBS" 22699 ac_ext=c 22700ac_cpp='$CPP $CPPFLAGS' 22701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22703ac_compiler_gnu=$ac_cv_c_compiler_gnu 22704 22705 fi 22706 if test "x$with_fftw" = "xyes"; then 22707 echo "$as_me:$LINENO: result: yes" >&5 22708echo "${ECHO_T}yes" >&6 22709 else 22710 echo "$as_me:$LINENO: result: no (check \$PKG_CONFIG_PATH)" >&5 22711echo "${ECHO_T}no (check \$PKG_CONFIG_PATH)" >&6 22712 fi 22713 fi 22714 22715fi 22716if test "$with_fftw" != "no" -a "$with_fftw" != "yes"; then 22717 22718 if test ${with_fftw:-""} != "no"; then 22719 22720 echo "$as_me:$LINENO: checking for libfftw3 " >&5 22721echo $ECHO_N "checking for libfftw3 ... $ECHO_C" >&6 22722 22723 # if we got an explicit path, that's the only one we check 22724 if test "x$with_fftw" = "xexplicit" -a "x$with_fftwlib" != "x"; then 22725 22726 # save the state 22727 SAVELDFLAGS="$LDFLAGS" 22728 SAVELIBS="$LIBS" 22729 22730 22731 ac_ext=cc 22732ac_cpp='$CXXCPP $CPPFLAGS' 22733ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22734ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22735ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22736 22737 22738 # fftw is the package, fftw3 the library name, "$with_fftwlib" the path 22739 if test "x"$with_fftwlib"" != "x" ; then 22740 LDFLAGS="-L"$with_fftwlib" $SAVELDFLAGS" 22741 LIBS="-lfftw3 $SAVELIBS" 22742 cat >conftest.$ac_ext <<_ACEOF 22743/* confdefs.h. */ 22744_ACEOF 22745cat confdefs.h >>conftest.$ac_ext 22746cat >>conftest.$ac_ext <<_ACEOF 22747/* end confdefs.h. */ 22748 22749int 22750main () 22751{ 22752 22753 ; 22754 return 0; 22755} 22756_ACEOF 22757rm -f conftest.$ac_objext conftest$ac_exeext 22758if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22759 (eval $ac_link) 2>conftest.er1 22760 ac_status=$? 22761 grep -v '^ *+' conftest.er1 >conftest.err 22762 rm -f conftest.er1 22763 cat conftest.err >&5 22764 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22765 (exit $ac_status); } && 22766 { ac_try='test -z "$ac_cxx_werror_flag" 22767 || test ! -s conftest.err' 22768 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22769 (eval $ac_try) 2>&5 22770 ac_status=$? 22771 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22772 (exit $ac_status); }; } && 22773 { ac_try='test -s conftest$ac_exeext' 22774 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22775 (eval $ac_try) 2>&5 22776 ac_status=$? 22777 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22778 (exit $ac_status); }; }; then 22779 with_fftwlib=""$with_fftwlib"" 22780 with_fftw_L="$LDFLAGS" 22781 with_fftw_l="$LIBS" 22782else 22783 echo "$as_me: failed program was:" >&5 22784sed 's/^/| /' conftest.$ac_ext >&5 22785 22786with_fftwlib="" 22787fi 22788rm -f conftest.err conftest.$ac_objext \ 22789 conftest$ac_exeext conftest.$ac_ext 22790 else 22791 LIBS="-lfftw3 $SAVELIBS" 22792 cat >conftest.$ac_ext <<_ACEOF 22793/* confdefs.h. */ 22794_ACEOF 22795cat confdefs.h >>conftest.$ac_ext 22796cat >>conftest.$ac_ext <<_ACEOF 22797/* end confdefs.h. */ 22798 22799int 22800main () 22801{ 22802 22803 ; 22804 return 0; 22805} 22806_ACEOF 22807rm -f conftest.$ac_objext conftest$ac_exeext 22808if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22809 (eval $ac_link) 2>conftest.er1 22810 ac_status=$? 22811 grep -v '^ *+' conftest.er1 >conftest.err 22812 rm -f conftest.er1 22813 cat conftest.err >&5 22814 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22815 (exit $ac_status); } && 22816 { ac_try='test -z "$ac_cxx_werror_flag" 22817 || test ! -s conftest.err' 22818 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22819 (eval $ac_try) 2>&5 22820 ac_status=$? 22821 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22822 (exit $ac_status); }; } && 22823 { ac_try='test -s conftest$ac_exeext' 22824 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22825 (eval $ac_try) 2>&5 22826 ac_status=$? 22827 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22828 (exit $ac_status); }; }; then 22829 with_fftwlib="in default path" 22830 with_fftw_L="$LDFLAGS" 22831 with_fftw_l="$LIBS" 22832else 22833 echo "$as_me: failed program was:" >&5 22834sed 's/^/| /' conftest.$ac_ext >&5 22835 22836with_fftwlib="" 22837fi 22838rm -f conftest.err conftest.$ac_objext \ 22839 conftest$ac_exeext conftest.$ac_ext 22840 fi 22841 # restore the state 22842 ac_ext=c 22843ac_cpp='$CPP $CPPFLAGS' 22844ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22845ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22846ac_compiler_gnu=$ac_cv_c_compiler_gnu 22847 22848 LDFLAGS="$SAVELDFLAGS" 22849 LIBS="$SAVELIBS" 22850 22851 else 22852 # otherwise check whether the library is found without explicit path 22853 # specification (e.g. because it is in /usr/lib) 22854 if test "x$with_fftwlib" = "x" ; then 22855 22856 # save the state 22857 SAVELDFLAGS="$LDFLAGS" 22858 SAVELIBS="$LIBS" 22859 22860 22861 ac_ext=cc 22862ac_cpp='$CXXCPP $CPPFLAGS' 22863ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22864ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22865ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22866 22867 22868 # fftw is the package, fftw3 the library name, "" the path 22869 if test "x""" != "x" ; then 22870 LDFLAGS="-L"" $SAVELDFLAGS" 22871 LIBS="-lfftw3 $SAVELIBS" 22872 cat >conftest.$ac_ext <<_ACEOF 22873/* confdefs.h. */ 22874_ACEOF 22875cat confdefs.h >>conftest.$ac_ext 22876cat >>conftest.$ac_ext <<_ACEOF 22877/* end confdefs.h. */ 22878 22879int 22880main () 22881{ 22882 22883 ; 22884 return 0; 22885} 22886_ACEOF 22887rm -f conftest.$ac_objext conftest$ac_exeext 22888if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22889 (eval $ac_link) 2>conftest.er1 22890 ac_status=$? 22891 grep -v '^ *+' conftest.er1 >conftest.err 22892 rm -f conftest.er1 22893 cat conftest.err >&5 22894 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22895 (exit $ac_status); } && 22896 { ac_try='test -z "$ac_cxx_werror_flag" 22897 || test ! -s conftest.err' 22898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22899 (eval $ac_try) 2>&5 22900 ac_status=$? 22901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22902 (exit $ac_status); }; } && 22903 { ac_try='test -s conftest$ac_exeext' 22904 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22905 (eval $ac_try) 2>&5 22906 ac_status=$? 22907 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22908 (exit $ac_status); }; }; then 22909 with_fftwlib="""" 22910 with_fftw_L="$LDFLAGS" 22911 with_fftw_l="$LIBS" 22912else 22913 echo "$as_me: failed program was:" >&5 22914sed 's/^/| /' conftest.$ac_ext >&5 22915 22916with_fftwlib="" 22917fi 22918rm -f conftest.err conftest.$ac_objext \ 22919 conftest$ac_exeext conftest.$ac_ext 22920 else 22921 LIBS="-lfftw3 $SAVELIBS" 22922 cat >conftest.$ac_ext <<_ACEOF 22923/* confdefs.h. */ 22924_ACEOF 22925cat confdefs.h >>conftest.$ac_ext 22926cat >>conftest.$ac_ext <<_ACEOF 22927/* end confdefs.h. */ 22928 22929int 22930main () 22931{ 22932 22933 ; 22934 return 0; 22935} 22936_ACEOF 22937rm -f conftest.$ac_objext conftest$ac_exeext 22938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 22939 (eval $ac_link) 2>conftest.er1 22940 ac_status=$? 22941 grep -v '^ *+' conftest.er1 >conftest.err 22942 rm -f conftest.er1 22943 cat conftest.err >&5 22944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22945 (exit $ac_status); } && 22946 { ac_try='test -z "$ac_cxx_werror_flag" 22947 || test ! -s conftest.err' 22948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22949 (eval $ac_try) 2>&5 22950 ac_status=$? 22951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22952 (exit $ac_status); }; } && 22953 { ac_try='test -s conftest$ac_exeext' 22954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 22955 (eval $ac_try) 2>&5 22956 ac_status=$? 22957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 22958 (exit $ac_status); }; }; then 22959 with_fftwlib="in default path" 22960 with_fftw_L="$LDFLAGS" 22961 with_fftw_l="$LIBS" 22962else 22963 echo "$as_me: failed program was:" >&5 22964sed 's/^/| /' conftest.$ac_ext >&5 22965 22966with_fftwlib="" 22967fi 22968rm -f conftest.err conftest.$ac_objext \ 22969 conftest$ac_exeext conftest.$ac_ext 22970 fi 22971 # restore the state 22972 ac_ext=c 22973ac_cpp='$CPP $CPPFLAGS' 22974ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22975ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22976ac_compiler_gnu=$ac_cv_c_compiler_gnu 22977 22978 LDFLAGS="$SAVELDFLAGS" 22979 LIBS="$SAVELIBS" 22980 22981 fi 22982 # if this didn't work check whether the library path was in the 22983 # original $LDFLAGS or a few standard directories 22984 if test "x$with_fftwlib" = "x" ; then 22985 for i in $LIBSEARCHPATH /usr/local/lib/fftw /usr/local/lib; do 22986 22987 # save the state 22988 SAVELDFLAGS="$LDFLAGS" 22989 SAVELIBS="$LIBS" 22990 22991 22992 ac_ext=cc 22993ac_cpp='$CXXCPP $CPPFLAGS' 22994ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 22995ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 22996ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 22997 22998 22999 # fftw is the package, fftw3 the library name, "$i" the path 23000 if test "x"$i"" != "x" ; then 23001 LDFLAGS="-L"$i" $SAVELDFLAGS" 23002 LIBS="-lfftw3 $SAVELIBS" 23003 cat >conftest.$ac_ext <<_ACEOF 23004/* confdefs.h. */ 23005_ACEOF 23006cat confdefs.h >>conftest.$ac_ext 23007cat >>conftest.$ac_ext <<_ACEOF 23008/* end confdefs.h. */ 23009 23010int 23011main () 23012{ 23013 23014 ; 23015 return 0; 23016} 23017_ACEOF 23018rm -f conftest.$ac_objext conftest$ac_exeext 23019if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23020 (eval $ac_link) 2>conftest.er1 23021 ac_status=$? 23022 grep -v '^ *+' conftest.er1 >conftest.err 23023 rm -f conftest.er1 23024 cat conftest.err >&5 23025 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23026 (exit $ac_status); } && 23027 { ac_try='test -z "$ac_cxx_werror_flag" 23028 || test ! -s conftest.err' 23029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23030 (eval $ac_try) 2>&5 23031 ac_status=$? 23032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23033 (exit $ac_status); }; } && 23034 { ac_try='test -s conftest$ac_exeext' 23035 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23036 (eval $ac_try) 2>&5 23037 ac_status=$? 23038 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23039 (exit $ac_status); }; }; then 23040 with_fftwlib=""$i"" 23041 with_fftw_L="$LDFLAGS" 23042 with_fftw_l="$LIBS" 23043else 23044 echo "$as_me: failed program was:" >&5 23045sed 's/^/| /' conftest.$ac_ext >&5 23046 23047with_fftwlib="" 23048fi 23049rm -f conftest.err conftest.$ac_objext \ 23050 conftest$ac_exeext conftest.$ac_ext 23051 else 23052 LIBS="-lfftw3 $SAVELIBS" 23053 cat >conftest.$ac_ext <<_ACEOF 23054/* confdefs.h. */ 23055_ACEOF 23056cat confdefs.h >>conftest.$ac_ext 23057cat >>conftest.$ac_ext <<_ACEOF 23058/* end confdefs.h. */ 23059 23060int 23061main () 23062{ 23063 23064 ; 23065 return 0; 23066} 23067_ACEOF 23068rm -f conftest.$ac_objext conftest$ac_exeext 23069if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23070 (eval $ac_link) 2>conftest.er1 23071 ac_status=$? 23072 grep -v '^ *+' conftest.er1 >conftest.err 23073 rm -f conftest.er1 23074 cat conftest.err >&5 23075 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23076 (exit $ac_status); } && 23077 { ac_try='test -z "$ac_cxx_werror_flag" 23078 || test ! -s conftest.err' 23079 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23080 (eval $ac_try) 2>&5 23081 ac_status=$? 23082 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23083 (exit $ac_status); }; } && 23084 { ac_try='test -s conftest$ac_exeext' 23085 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23086 (eval $ac_try) 2>&5 23087 ac_status=$? 23088 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23089 (exit $ac_status); }; }; then 23090 with_fftwlib="in default path" 23091 with_fftw_L="$LDFLAGS" 23092 with_fftw_l="$LIBS" 23093else 23094 echo "$as_me: failed program was:" >&5 23095sed 's/^/| /' conftest.$ac_ext >&5 23096 23097with_fftwlib="" 23098fi 23099rm -f conftest.err conftest.$ac_objext \ 23100 conftest$ac_exeext conftest.$ac_ext 23101 fi 23102 # restore the state 23103 ac_ext=c 23104ac_cpp='$CPP $CPPFLAGS' 23105ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23106ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23107ac_compiler_gnu=$ac_cv_c_compiler_gnu 23108 23109 LDFLAGS="$SAVELDFLAGS" 23110 LIBS="$SAVELIBS" 23111 23112 if test "x$with_fftwlib" != "x" ; then break; fi 23113 done 23114 fi 23115 fi 23116 23117 # report the results back 23118 if test "x$with_fftwlib" = "x"; then 23119 echo "$as_me:$LINENO: result: not found" >&5 23120echo "${ECHO_T}not found" >&6 23121 with_fftw="no" 23122 else 23123 echo "$as_me:$LINENO: result: $with_fftwlib" >&5 23124echo "${ECHO_T}$with_fftwlib" >&6 23125 if test "$with_fftwlib" = "in default path"; then 23126 with_fftwlib="" 23127 fi 23128 fi 23129 23130 if test ${with_fftw:-""} != "no"; then 23131 23132 echo "$as_me:$LINENO: checking for fftw3.h " >&5 23133echo $ECHO_N "checking for fftw3.h ... $ECHO_C" >&6 23134 23135 # first check whether we got an explicit path 23136 if test "x$with_fftw" = "xexplicit" -a "x$with_fftwinc" != "x"; then 23137 23138 # save the state 23139 SAVECPPFLAGS="$CPPFLAGS" 23140 23141 23142 ac_ext=cc 23143ac_cpp='$CXXCPP $CPPFLAGS' 23144ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23145ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23146ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23147 23148 23149 # fftw is the package, fftw3.h the include name, "$with_fftwinc" the path 23150 if test "x"$with_fftwinc"" != "x" ; then 23151 CPPFLAGS="-I"$with_fftwinc" $SAVECPPFLAGS" 23152 cat >conftest.$ac_ext <<_ACEOF 23153/* confdefs.h. */ 23154_ACEOF 23155cat confdefs.h >>conftest.$ac_ext 23156cat >>conftest.$ac_ext <<_ACEOF 23157/* end confdefs.h. */ 23158#include <stdio.h> /* for jpeglib.h */ 23159 #include <fftw3.h> 23160 23161int 23162main () 23163{ 23164 23165 ; 23166 return 0; 23167} 23168_ACEOF 23169rm -f conftest.$ac_objext 23170if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23171 (eval $ac_compile) 2>conftest.er1 23172 ac_status=$? 23173 grep -v '^ *+' conftest.er1 >conftest.err 23174 rm -f conftest.er1 23175 cat conftest.err >&5 23176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23177 (exit $ac_status); } && 23178 { ac_try='test -z "$ac_cxx_werror_flag" 23179 || test ! -s conftest.err' 23180 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23181 (eval $ac_try) 2>&5 23182 ac_status=$? 23183 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23184 (exit $ac_status); }; } && 23185 { ac_try='test -s conftest.$ac_objext' 23186 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23187 (eval $ac_try) 2>&5 23188 ac_status=$? 23189 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23190 (exit $ac_status); }; }; then 23191 with_fftwinc=""$with_fftwinc"" 23192 with_fftw_I="$CPPFLAGS" 23193else 23194 echo "$as_me: failed program was:" >&5 23195sed 's/^/| /' conftest.$ac_ext >&5 23196 23197with_fftwinc="" 23198fi 23199rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23200 else 23201 cat >conftest.$ac_ext <<_ACEOF 23202/* confdefs.h. */ 23203_ACEOF 23204cat confdefs.h >>conftest.$ac_ext 23205cat >>conftest.$ac_ext <<_ACEOF 23206/* end confdefs.h. */ 23207#include <stdio.h> /* for jpeglib.h */ 23208 #include <fftw3.h> 23209 23210int 23211main () 23212{ 23213 23214 ; 23215 return 0; 23216} 23217_ACEOF 23218rm -f conftest.$ac_objext 23219if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23220 (eval $ac_compile) 2>conftest.er1 23221 ac_status=$? 23222 grep -v '^ *+' conftest.er1 >conftest.err 23223 rm -f conftest.er1 23224 cat conftest.err >&5 23225 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23226 (exit $ac_status); } && 23227 { ac_try='test -z "$ac_cxx_werror_flag" 23228 || test ! -s conftest.err' 23229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23230 (eval $ac_try) 2>&5 23231 ac_status=$? 23232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23233 (exit $ac_status); }; } && 23234 { ac_try='test -s conftest.$ac_objext' 23235 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23236 (eval $ac_try) 2>&5 23237 ac_status=$? 23238 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23239 (exit $ac_status); }; }; then 23240 with_fftwinc="in default path" 23241 with_fftw_I="$CPPFLAGS" 23242else 23243 echo "$as_me: failed program was:" >&5 23244sed 's/^/| /' conftest.$ac_ext >&5 23245 23246with_fftwinc="" 23247fi 23248rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23249 fi 23250 # restore the state 23251 ac_ext=c 23252ac_cpp='$CPP $CPPFLAGS' 23253ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23254ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23255ac_compiler_gnu=$ac_cv_c_compiler_gnu 23256 23257 CPPFLAGS="$SAVECPPFLAGS" 23258 23259 else 23260 # otherwise check whether the library is found without explicit path 23261 # specification (e.g. because it is in /usr/lib) 23262 if test "x$with_fftwinc" = "x" ; then 23263 23264 # save the state 23265 SAVECPPFLAGS="$CPPFLAGS" 23266 23267 23268 ac_ext=cc 23269ac_cpp='$CXXCPP $CPPFLAGS' 23270ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23271ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23272ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23273 23274 23275 # fftw is the package, fftw3.h the include name, "" the path 23276 if test "x""" != "x" ; then 23277 CPPFLAGS="-I"" $SAVECPPFLAGS" 23278 cat >conftest.$ac_ext <<_ACEOF 23279/* confdefs.h. */ 23280_ACEOF 23281cat confdefs.h >>conftest.$ac_ext 23282cat >>conftest.$ac_ext <<_ACEOF 23283/* end confdefs.h. */ 23284#include <stdio.h> /* for jpeglib.h */ 23285 #include <fftw3.h> 23286 23287int 23288main () 23289{ 23290 23291 ; 23292 return 0; 23293} 23294_ACEOF 23295rm -f conftest.$ac_objext 23296if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23297 (eval $ac_compile) 2>conftest.er1 23298 ac_status=$? 23299 grep -v '^ *+' conftest.er1 >conftest.err 23300 rm -f conftest.er1 23301 cat conftest.err >&5 23302 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23303 (exit $ac_status); } && 23304 { ac_try='test -z "$ac_cxx_werror_flag" 23305 || test ! -s conftest.err' 23306 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23307 (eval $ac_try) 2>&5 23308 ac_status=$? 23309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23310 (exit $ac_status); }; } && 23311 { ac_try='test -s conftest.$ac_objext' 23312 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23313 (eval $ac_try) 2>&5 23314 ac_status=$? 23315 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23316 (exit $ac_status); }; }; then 23317 with_fftwinc="""" 23318 with_fftw_I="$CPPFLAGS" 23319else 23320 echo "$as_me: failed program was:" >&5 23321sed 's/^/| /' conftest.$ac_ext >&5 23322 23323with_fftwinc="" 23324fi 23325rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23326 else 23327 cat >conftest.$ac_ext <<_ACEOF 23328/* confdefs.h. */ 23329_ACEOF 23330cat confdefs.h >>conftest.$ac_ext 23331cat >>conftest.$ac_ext <<_ACEOF 23332/* end confdefs.h. */ 23333#include <stdio.h> /* for jpeglib.h */ 23334 #include <fftw3.h> 23335 23336int 23337main () 23338{ 23339 23340 ; 23341 return 0; 23342} 23343_ACEOF 23344rm -f conftest.$ac_objext 23345if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23346 (eval $ac_compile) 2>conftest.er1 23347 ac_status=$? 23348 grep -v '^ *+' conftest.er1 >conftest.err 23349 rm -f conftest.er1 23350 cat conftest.err >&5 23351 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23352 (exit $ac_status); } && 23353 { ac_try='test -z "$ac_cxx_werror_flag" 23354 || test ! -s conftest.err' 23355 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23356 (eval $ac_try) 2>&5 23357 ac_status=$? 23358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23359 (exit $ac_status); }; } && 23360 { ac_try='test -s conftest.$ac_objext' 23361 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23362 (eval $ac_try) 2>&5 23363 ac_status=$? 23364 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23365 (exit $ac_status); }; }; then 23366 with_fftwinc="in default path" 23367 with_fftw_I="$CPPFLAGS" 23368else 23369 echo "$as_me: failed program was:" >&5 23370sed 's/^/| /' conftest.$ac_ext >&5 23371 23372with_fftwinc="" 23373fi 23374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23375 fi 23376 # restore the state 23377 ac_ext=c 23378ac_cpp='$CPP $CPPFLAGS' 23379ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23380ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23381ac_compiler_gnu=$ac_cv_c_compiler_gnu 23382 23383 CPPFLAGS="$SAVECPPFLAGS" 23384 23385 fi 23386 # if this didn't work check whether the library path is in the 23387 # same tree as the library path, or among the directories in the 23388 # original $CPPFLAGS or a few standard directories 23389 if test -n ""; then 23390 PATHPOSTFIX="/" 23391 else 23392 PATHPOSTFIX="" 23393 fi 23394 EXTRAINCSEARCHPATH="" 23395 i="$with_fftwlib" 23396 while test "x$i" != "x"; do 23397 if test -d "${i}/include"; then 23398 EXTRAINCSEARCHPATH="$EXTRAINCSEARCHPATH ${i}/include" 23399 fi 23400 j=`expr "$i" : "\(.*\)/"` 23401 i=$j 23402 done 23403 if test "x$with_fftwinc" = "x" ; then 23404 for i in $EXTRAINCSEARCHPATH $INCSEARCHPATH /usr/local/include/fftw /usr/local/include; do 23405 23406 # save the state 23407 SAVECPPFLAGS="$CPPFLAGS" 23408 23409 23410 ac_ext=cc 23411ac_cpp='$CXXCPP $CPPFLAGS' 23412ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23413ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23414ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23415 23416 23417 # fftw is the package, fftw3.h the include name, "$i$PATHPOSTFIX" the path 23418 if test "x"$i$PATHPOSTFIX"" != "x" ; then 23419 CPPFLAGS="-I"$i$PATHPOSTFIX" $SAVECPPFLAGS" 23420 cat >conftest.$ac_ext <<_ACEOF 23421/* confdefs.h. */ 23422_ACEOF 23423cat confdefs.h >>conftest.$ac_ext 23424cat >>conftest.$ac_ext <<_ACEOF 23425/* end confdefs.h. */ 23426#include <stdio.h> /* for jpeglib.h */ 23427 #include <fftw3.h> 23428 23429int 23430main () 23431{ 23432 23433 ; 23434 return 0; 23435} 23436_ACEOF 23437rm -f conftest.$ac_objext 23438if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23439 (eval $ac_compile) 2>conftest.er1 23440 ac_status=$? 23441 grep -v '^ *+' conftest.er1 >conftest.err 23442 rm -f conftest.er1 23443 cat conftest.err >&5 23444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23445 (exit $ac_status); } && 23446 { ac_try='test -z "$ac_cxx_werror_flag" 23447 || test ! -s conftest.err' 23448 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23449 (eval $ac_try) 2>&5 23450 ac_status=$? 23451 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23452 (exit $ac_status); }; } && 23453 { ac_try='test -s conftest.$ac_objext' 23454 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23455 (eval $ac_try) 2>&5 23456 ac_status=$? 23457 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23458 (exit $ac_status); }; }; then 23459 with_fftwinc=""$i$PATHPOSTFIX"" 23460 with_fftw_I="$CPPFLAGS" 23461else 23462 echo "$as_me: failed program was:" >&5 23463sed 's/^/| /' conftest.$ac_ext >&5 23464 23465with_fftwinc="" 23466fi 23467rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23468 else 23469 cat >conftest.$ac_ext <<_ACEOF 23470/* confdefs.h. */ 23471_ACEOF 23472cat confdefs.h >>conftest.$ac_ext 23473cat >>conftest.$ac_ext <<_ACEOF 23474/* end confdefs.h. */ 23475#include <stdio.h> /* for jpeglib.h */ 23476 #include <fftw3.h> 23477 23478int 23479main () 23480{ 23481 23482 ; 23483 return 0; 23484} 23485_ACEOF 23486rm -f conftest.$ac_objext 23487if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23488 (eval $ac_compile) 2>conftest.er1 23489 ac_status=$? 23490 grep -v '^ *+' conftest.er1 >conftest.err 23491 rm -f conftest.er1 23492 cat conftest.err >&5 23493 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23494 (exit $ac_status); } && 23495 { ac_try='test -z "$ac_cxx_werror_flag" 23496 || test ! -s conftest.err' 23497 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23498 (eval $ac_try) 2>&5 23499 ac_status=$? 23500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23501 (exit $ac_status); }; } && 23502 { ac_try='test -s conftest.$ac_objext' 23503 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23504 (eval $ac_try) 2>&5 23505 ac_status=$? 23506 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23507 (exit $ac_status); }; }; then 23508 with_fftwinc="in default path" 23509 with_fftw_I="$CPPFLAGS" 23510else 23511 echo "$as_me: failed program was:" >&5 23512sed 's/^/| /' conftest.$ac_ext >&5 23513 23514with_fftwinc="" 23515fi 23516rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23517 fi 23518 # restore the state 23519 ac_ext=c 23520ac_cpp='$CPP $CPPFLAGS' 23521ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23522ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23523ac_compiler_gnu=$ac_cv_c_compiler_gnu 23524 23525 CPPFLAGS="$SAVECPPFLAGS" 23526 23527 if test "x$with_fftwinc" != "x" ; then break; fi 23528 done 23529 fi 23530 fi 23531 23532 # report the results back 23533 if test "x$with_fftwinc" = "x"; then 23534 echo "$as_me:$LINENO: result: not found" >&5 23535echo "${ECHO_T}not found" >&6 23536 with_fftw="no" 23537 with_fftwlib="" 23538 else 23539 echo "$as_me:$LINENO: result: $with_fftwinc" >&5 23540echo "${ECHO_T}$with_fftwinc" >&6 23541 if test "$with_fftwinc" = "in default path"; then 23542 with_fftwinc="" 23543 fi 23544 fi 23545 23546 if test ${with_fftw:-""} != "no"; then 23547 with_fftw="yes" 23548 fi 23549 fi 23550 fi 23551 23552 23553fi 23554if test $with_fftw = "yes"; then 23555 FFTW_LIB="$with_fftw_L $with_fftw_l" 23556 FFTW_INCLUDES="$with_fftw_I" 23557else 23558 { echo "$as_me:$LINENO: WARNING: Configuring without fftw support" >&5 23559echo "$as_me: WARNING: Configuring without fftw support" >&2;} 23560fi 23561 23562 23563if test "$with_python" = "yes" -a ! -d "$vigra_srcdir/src/pythonbindings"; then 23564 { echo "$as_me:$LINENO: WARNING: VIGRA Python sources missing, configuring without Python support" >&5 23565echo "$as_me: WARNING: VIGRA Python sources missing, configuring without Python support" >&2;} 23566 with_python="no" 23567fi 23568if test "$with_python" = "yes"; then 23569 # Extract the first word of "python", so it can be a program name with args. 23570set dummy python; ac_word=$2 23571echo "$as_me:$LINENO: checking for $ac_word" >&5 23572echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 23573if test "${ac_cv_prog_PYTHON+set}" = set; then 23574 echo $ECHO_N "(cached) $ECHO_C" >&6 23575else 23576 if test -n "$PYTHON"; then 23577 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test. 23578else 23579as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 23580for as_dir in $PATH 23581do 23582 IFS=$as_save_IFS 23583 test -z "$as_dir" && as_dir=. 23584 for ac_exec_ext in '' $ac_executable_extensions; do 23585 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 23586 ac_cv_prog_PYTHON="python" 23587 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 23588 break 2 23589 fi 23590done 23591done 23592 23593fi 23594fi 23595PYTHON=$ac_cv_prog_PYTHON 23596if test -n "$PYTHON"; then 23597 echo "$as_me:$LINENO: result: $PYTHON" >&5 23598echo "${ECHO_T}$PYTHON" >&6 23599else 23600 echo "$as_me:$LINENO: result: no" >&5 23601echo "${ECHO_T}no" >&6 23602fi 23603 23604 if test "x$PYTHON" != "x"; then 23605 23606 23607 ac_ext=cc 23608ac_cpp='$CXXCPP $CPPFLAGS' 23609ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23610ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23611ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23612 23613 23614 CPPFLAGS=`$PYTHON -c "import sys; v = sys.version[:3]; print '-I'+sys.prefix+'/include/python'+v, '-I'+sys.exec_prefix+'/include/python'+v"` 23615 LDFLAGS=`$PYTHON -c "import sys; print '-L'+sys.exec_prefix+'/lib/python'+sys.version[:3]+'/config'"` 23616 LIBS=`$PYTHON -c "import sys; print '-lpython'+sys.version[:3]"` 23617 echo "$as_me:$LINENO: checking for the python includes and library " >&5 23618echo $ECHO_N "checking for the python includes and library ... $ECHO_C" >&6 23619 cat >conftest.$ac_ext <<_ACEOF 23620/* confdefs.h. */ 23621_ACEOF 23622cat confdefs.h >>conftest.$ac_ext 23623cat >>conftest.$ac_ext <<_ACEOF 23624/* end confdefs.h. */ 23625#include <Python.h> 23626 23627int 23628main () 23629{ 23630 23631 ; 23632 return 0; 23633} 23634_ACEOF 23635rm -f conftest.$ac_objext conftest$ac_exeext 23636if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 23637 (eval $ac_link) 2>conftest.er1 23638 ac_status=$? 23639 grep -v '^ *+' conftest.er1 >conftest.err 23640 rm -f conftest.er1 23641 cat conftest.err >&5 23642 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23643 (exit $ac_status); } && 23644 { ac_try='test -z "$ac_cxx_werror_flag" 23645 || test ! -s conftest.err' 23646 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23647 (eval $ac_try) 2>&5 23648 ac_status=$? 23649 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23650 (exit $ac_status); }; } && 23651 { ac_try='test -s conftest$ac_exeext' 23652 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23653 (eval $ac_try) 2>&5 23654 ac_status=$? 23655 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23656 (exit $ac_status); }; }; then 23657 with_python="yes" 23658 with_python_I="$CPPFLAGS" 23659 with_python_L="$LDFLAGS" 23660 with_python_l="$LIBS" 23661 echo "$as_me:$LINENO: result: $with_python_I $with_python_L $with_python_l" >&5 23662echo "${ECHO_T}$with_python_I $with_python_L $with_python_l" >&6 23663 23664else 23665 echo "$as_me: failed program was:" >&5 23666sed 's/^/| /' conftest.$ac_ext >&5 23667 23668with_python="no" 23669 with_python_I="" 23670 with_python_L="" 23671 with_python_l="" 23672 echo "$as_me:$LINENO: result: not found" >&5 23673echo "${ECHO_T}not found" >&6 23674 23675fi 23676rm -f conftest.err conftest.$ac_objext \ 23677 conftest$ac_exeext conftest.$ac_ext 23678 CPPFLAGS="" 23679 LDFLAGS="" 23680 LIBS="" 23681 ac_ext=c 23682ac_cpp='$CPP $CPPFLAGS' 23683ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23684ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23685ac_compiler_gnu=$ac_cv_c_compiler_gnu 23686 23687 fi 23688 if test "$with_python" = "yes"; then 23689 PYTHON_LIB="$with_python_L $with_python_l" 23690 PYTHON_INCLUDES="$with_python_I" 23691 if test -z "$with_pythoninstall"; then 23692 PYTHON_INSTALLDIR=`$PYTHON -c "import sys; print sys.exec_prefix+'/lib/python'+sys.version[:3]+'/site-packages'"` 23693 else 23694 PYTHON_INSTALLDIR="$with_pythoninstall" 23695 fi 23696 else 23697 { echo "$as_me:$LINENO: WARNING: Configuring without Python support" >&5 23698echo "$as_me: WARNING: Configuring without Python support" >&2;} 23699 fi 23700fi 23701 23702 23703if test "$with_python" = "yes"; then 23704 if test "$with_boostpython" != "no"; then 23705 # we only search for a directory containing a suitably named library 23706 # because portable linking of Python modules requires libtool 23707 if test "$with_boostpython" = "explicit"; then 23708 BOOSTSEARCHPATH="$with_boostpythonlib" 23709 else 23710 BOOSTSEARCHPATH="$LIBSEARCHPATH "`$PYTHON -c "import sys; print sys.prefix+'/lib/python'+sys.version[:3], sys.prefix+'/lib'"`" /usr/local/lib /usr/lib" 23711 fi 23712 # since the lib name may vary, we must find it out as well 23713 if test -z "$with_boostpythonname"; then 23714 with_boostpythonname="boost_python" 23715 BOOSTREGEX="lib\(boost_python[^\.]*[0-9]\)\." 23716 else 23717 BOOSTREGEX="lib\($with_boostpythonname\)\." 23718 fi 23719 with_boostpython_L="" 23720 with_boostpython_l="" 23721 echo "$as_me:$LINENO: checking for the boost python library " >&5 23722echo $ECHO_N "checking for the boost python library ... $ECHO_C" >&6 23723 # look for both the long (with version number) and short form of the name 23724 for i in $BOOSTSEARCHPATH; do 23725 for j in `cd "$i" && ls lib"$with_boostpythonname"* 2> /dev/null`; do 23726 r=`expr "$j" : "$BOOSTREGEX"` 23727 rs=`expr "$j" : "lib\($with_boostpythonname\)\."` 23728 if test -z "$r"; then r="$rs"; fi 23729 if test -n "$r"; then 23730 with_boostpythonname="$r" 23731 with_boostpython_L="$with_python_L -L$i" 23732 with_boostpython_l="-l$r $with_python_l" 23733 break 23734 fi 23735 done 23736 if test -n "$with_boostpython_l"; then break; fi 23737 done 23738 if test -z "$with_boostpython_l"; then 23739 echo "$as_me:$LINENO: result: not found" >&5 23740echo "${ECHO_T}not found" >&6 23741 with_boostpython="no" 23742 else 23743 echo "$as_me:$LINENO: result: $with_boostpython_L $with_boostpython_l" >&5 23744echo "${ECHO_T}$with_boostpython_L $with_boostpython_l" >&6 23745 if test "x$GXX" = "xyes"; then 23746 CPPFLAGS="-ftemplate-depth-96 $with_python_I" 23747 else 23748 CPPFLAGS="$with_python_I" 23749 fi 23750 23751 # find out the boost version since it may be part of the include path 23752 BOOST_VERSION=`expr "$with_boostpythonname" : ".*-\([^-]*\)\$"` 23753 if test -z "$BOOST_VERSION"; then 23754 BOOST_INCLUDE_POSTFIX="" 23755 else 23756 BOOST_INCLUDE_POSTFIX="boost-$BOOST_VERSION" 23757 fi 23758 23759 23760 echo "$as_me:$LINENO: checking for boost/python/converter/registry.hpp " >&5 23761echo $ECHO_N "checking for boost/python/converter/registry.hpp ... $ECHO_C" >&6 23762 23763 # first check whether we got an explicit path 23764 if test "x$with_boostpython" = "xexplicit" -a "x$with_boostpythoninc" != "x"; then 23765 23766 # save the state 23767 SAVECPPFLAGS="$CPPFLAGS" 23768 23769 23770 ac_ext=cc 23771ac_cpp='$CXXCPP $CPPFLAGS' 23772ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23773ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23774ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23775 23776 23777 # boostpython is the package, boost/python/converter/registry.hpp the include name, "$with_boostpythoninc" the path 23778 if test "x"$with_boostpythoninc"" != "x" ; then 23779 CPPFLAGS="-I"$with_boostpythoninc" $SAVECPPFLAGS" 23780 cat >conftest.$ac_ext <<_ACEOF 23781/* confdefs.h. */ 23782_ACEOF 23783cat confdefs.h >>conftest.$ac_ext 23784cat >>conftest.$ac_ext <<_ACEOF 23785/* end confdefs.h. */ 23786#include <stdio.h> /* for jpeglib.h */ 23787 #include <boost/python/converter/registry.hpp> 23788 23789int 23790main () 23791{ 23792 23793 ; 23794 return 0; 23795} 23796_ACEOF 23797rm -f conftest.$ac_objext 23798if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23799 (eval $ac_compile) 2>conftest.er1 23800 ac_status=$? 23801 grep -v '^ *+' conftest.er1 >conftest.err 23802 rm -f conftest.er1 23803 cat conftest.err >&5 23804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23805 (exit $ac_status); } && 23806 { ac_try='test -z "$ac_cxx_werror_flag" 23807 || test ! -s conftest.err' 23808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23809 (eval $ac_try) 2>&5 23810 ac_status=$? 23811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23812 (exit $ac_status); }; } && 23813 { ac_try='test -s conftest.$ac_objext' 23814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23815 (eval $ac_try) 2>&5 23816 ac_status=$? 23817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23818 (exit $ac_status); }; }; then 23819 with_boostpythoninc=""$with_boostpythoninc"" 23820 with_boostpython_I="$CPPFLAGS" 23821else 23822 echo "$as_me: failed program was:" >&5 23823sed 's/^/| /' conftest.$ac_ext >&5 23824 23825with_boostpythoninc="" 23826fi 23827rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23828 else 23829 cat >conftest.$ac_ext <<_ACEOF 23830/* confdefs.h. */ 23831_ACEOF 23832cat confdefs.h >>conftest.$ac_ext 23833cat >>conftest.$ac_ext <<_ACEOF 23834/* end confdefs.h. */ 23835#include <stdio.h> /* for jpeglib.h */ 23836 #include <boost/python/converter/registry.hpp> 23837 23838int 23839main () 23840{ 23841 23842 ; 23843 return 0; 23844} 23845_ACEOF 23846rm -f conftest.$ac_objext 23847if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23848 (eval $ac_compile) 2>conftest.er1 23849 ac_status=$? 23850 grep -v '^ *+' conftest.er1 >conftest.err 23851 rm -f conftest.er1 23852 cat conftest.err >&5 23853 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23854 (exit $ac_status); } && 23855 { ac_try='test -z "$ac_cxx_werror_flag" 23856 || test ! -s conftest.err' 23857 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23858 (eval $ac_try) 2>&5 23859 ac_status=$? 23860 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23861 (exit $ac_status); }; } && 23862 { ac_try='test -s conftest.$ac_objext' 23863 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23864 (eval $ac_try) 2>&5 23865 ac_status=$? 23866 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23867 (exit $ac_status); }; }; then 23868 with_boostpythoninc="in default path" 23869 with_boostpython_I="$CPPFLAGS" 23870else 23871 echo "$as_me: failed program was:" >&5 23872sed 's/^/| /' conftest.$ac_ext >&5 23873 23874with_boostpythoninc="" 23875fi 23876rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23877 fi 23878 # restore the state 23879 ac_ext=c 23880ac_cpp='$CPP $CPPFLAGS' 23881ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23882ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23883ac_compiler_gnu=$ac_cv_c_compiler_gnu 23884 23885 CPPFLAGS="$SAVECPPFLAGS" 23886 23887 else 23888 # otherwise check whether the library is found without explicit path 23889 # specification (e.g. because it is in /usr/lib) 23890 if test "x$with_boostpythoninc" = "x" ; then 23891 23892 # save the state 23893 SAVECPPFLAGS="$CPPFLAGS" 23894 23895 23896 ac_ext=cc 23897ac_cpp='$CXXCPP $CPPFLAGS' 23898ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 23899ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 23900ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 23901 23902 23903 # boostpython is the package, boost/python/converter/registry.hpp the include name, "" the path 23904 if test "x""" != "x" ; then 23905 CPPFLAGS="-I"" $SAVECPPFLAGS" 23906 cat >conftest.$ac_ext <<_ACEOF 23907/* confdefs.h. */ 23908_ACEOF 23909cat confdefs.h >>conftest.$ac_ext 23910cat >>conftest.$ac_ext <<_ACEOF 23911/* end confdefs.h. */ 23912#include <stdio.h> /* for jpeglib.h */ 23913 #include <boost/python/converter/registry.hpp> 23914 23915int 23916main () 23917{ 23918 23919 ; 23920 return 0; 23921} 23922_ACEOF 23923rm -f conftest.$ac_objext 23924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23925 (eval $ac_compile) 2>conftest.er1 23926 ac_status=$? 23927 grep -v '^ *+' conftest.er1 >conftest.err 23928 rm -f conftest.er1 23929 cat conftest.err >&5 23930 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23931 (exit $ac_status); } && 23932 { ac_try='test -z "$ac_cxx_werror_flag" 23933 || test ! -s conftest.err' 23934 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23935 (eval $ac_try) 2>&5 23936 ac_status=$? 23937 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23938 (exit $ac_status); }; } && 23939 { ac_try='test -s conftest.$ac_objext' 23940 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23941 (eval $ac_try) 2>&5 23942 ac_status=$? 23943 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23944 (exit $ac_status); }; }; then 23945 with_boostpythoninc="""" 23946 with_boostpython_I="$CPPFLAGS" 23947else 23948 echo "$as_me: failed program was:" >&5 23949sed 's/^/| /' conftest.$ac_ext >&5 23950 23951with_boostpythoninc="" 23952fi 23953rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 23954 else 23955 cat >conftest.$ac_ext <<_ACEOF 23956/* confdefs.h. */ 23957_ACEOF 23958cat confdefs.h >>conftest.$ac_ext 23959cat >>conftest.$ac_ext <<_ACEOF 23960/* end confdefs.h. */ 23961#include <stdio.h> /* for jpeglib.h */ 23962 #include <boost/python/converter/registry.hpp> 23963 23964int 23965main () 23966{ 23967 23968 ; 23969 return 0; 23970} 23971_ACEOF 23972rm -f conftest.$ac_objext 23973if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 23974 (eval $ac_compile) 2>conftest.er1 23975 ac_status=$? 23976 grep -v '^ *+' conftest.er1 >conftest.err 23977 rm -f conftest.er1 23978 cat conftest.err >&5 23979 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23980 (exit $ac_status); } && 23981 { ac_try='test -z "$ac_cxx_werror_flag" 23982 || test ! -s conftest.err' 23983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23984 (eval $ac_try) 2>&5 23985 ac_status=$? 23986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23987 (exit $ac_status); }; } && 23988 { ac_try='test -s conftest.$ac_objext' 23989 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 23990 (eval $ac_try) 2>&5 23991 ac_status=$? 23992 echo "$as_me:$LINENO: \$? = $ac_status" >&5 23993 (exit $ac_status); }; }; then 23994 with_boostpythoninc="in default path" 23995 with_boostpython_I="$CPPFLAGS" 23996else 23997 echo "$as_me: failed program was:" >&5 23998sed 's/^/| /' conftest.$ac_ext >&5 23999 24000with_boostpythoninc="" 24001fi 24002rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24003 fi 24004 # restore the state 24005 ac_ext=c 24006ac_cpp='$CPP $CPPFLAGS' 24007ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24008ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24009ac_compiler_gnu=$ac_cv_c_compiler_gnu 24010 24011 CPPFLAGS="$SAVECPPFLAGS" 24012 24013 fi 24014 # if this didn't work check whether the library path is in the 24015 # same tree as the library path, or among the directories in the 24016 # original $CPPFLAGS or a few standard directories 24017 if test -n "$BOOST_INCLUDE_POSTFIX "; then 24018 PATHPOSTFIX="/$BOOST_INCLUDE_POSTFIX " 24019 else 24020 PATHPOSTFIX="" 24021 fi 24022 EXTRAINCSEARCHPATH="" 24023 i="$with_boostpythonlib" 24024 while test "x$i" != "x"; do 24025 if test -d "${i}/include"; then 24026 EXTRAINCSEARCHPATH="$EXTRAINCSEARCHPATH ${i}/include" 24027 fi 24028 j=`expr "$i" : "\(.*\)/"` 24029 i=$j 24030 done 24031 if test "x$with_boostpythoninc" = "x" ; then 24032 for i in $EXTRAINCSEARCHPATH $INCSEARCHPATH /usr/local/include/boostpython /usr/local/include; do 24033 24034 # save the state 24035 SAVECPPFLAGS="$CPPFLAGS" 24036 24037 24038 ac_ext=cc 24039ac_cpp='$CXXCPP $CPPFLAGS' 24040ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24041ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24042ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 24043 24044 24045 # boostpython is the package, boost/python/converter/registry.hpp the include name, "$i$PATHPOSTFIX" the path 24046 if test "x"$i$PATHPOSTFIX"" != "x" ; then 24047 CPPFLAGS="-I"$i$PATHPOSTFIX" $SAVECPPFLAGS" 24048 cat >conftest.$ac_ext <<_ACEOF 24049/* confdefs.h. */ 24050_ACEOF 24051cat confdefs.h >>conftest.$ac_ext 24052cat >>conftest.$ac_ext <<_ACEOF 24053/* end confdefs.h. */ 24054#include <stdio.h> /* for jpeglib.h */ 24055 #include <boost/python/converter/registry.hpp> 24056 24057int 24058main () 24059{ 24060 24061 ; 24062 return 0; 24063} 24064_ACEOF 24065rm -f conftest.$ac_objext 24066if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24067 (eval $ac_compile) 2>conftest.er1 24068 ac_status=$? 24069 grep -v '^ *+' conftest.er1 >conftest.err 24070 rm -f conftest.er1 24071 cat conftest.err >&5 24072 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24073 (exit $ac_status); } && 24074 { ac_try='test -z "$ac_cxx_werror_flag" 24075 || test ! -s conftest.err' 24076 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24077 (eval $ac_try) 2>&5 24078 ac_status=$? 24079 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24080 (exit $ac_status); }; } && 24081 { ac_try='test -s conftest.$ac_objext' 24082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24083 (eval $ac_try) 2>&5 24084 ac_status=$? 24085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24086 (exit $ac_status); }; }; then 24087 with_boostpythoninc=""$i$PATHPOSTFIX"" 24088 with_boostpython_I="$CPPFLAGS" 24089else 24090 echo "$as_me: failed program was:" >&5 24091sed 's/^/| /' conftest.$ac_ext >&5 24092 24093with_boostpythoninc="" 24094fi 24095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24096 else 24097 cat >conftest.$ac_ext <<_ACEOF 24098/* confdefs.h. */ 24099_ACEOF 24100cat confdefs.h >>conftest.$ac_ext 24101cat >>conftest.$ac_ext <<_ACEOF 24102/* end confdefs.h. */ 24103#include <stdio.h> /* for jpeglib.h */ 24104 #include <boost/python/converter/registry.hpp> 24105 24106int 24107main () 24108{ 24109 24110 ; 24111 return 0; 24112} 24113_ACEOF 24114rm -f conftest.$ac_objext 24115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 24116 (eval $ac_compile) 2>conftest.er1 24117 ac_status=$? 24118 grep -v '^ *+' conftest.er1 >conftest.err 24119 rm -f conftest.er1 24120 cat conftest.err >&5 24121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24122 (exit $ac_status); } && 24123 { ac_try='test -z "$ac_cxx_werror_flag" 24124 || test ! -s conftest.err' 24125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24126 (eval $ac_try) 2>&5 24127 ac_status=$? 24128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24129 (exit $ac_status); }; } && 24130 { ac_try='test -s conftest.$ac_objext' 24131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 24132 (eval $ac_try) 2>&5 24133 ac_status=$? 24134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24135 (exit $ac_status); }; }; then 24136 with_boostpythoninc="in default path" 24137 with_boostpython_I="$CPPFLAGS" 24138else 24139 echo "$as_me: failed program was:" >&5 24140sed 's/^/| /' conftest.$ac_ext >&5 24141 24142with_boostpythoninc="" 24143fi 24144rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 24145 fi 24146 # restore the state 24147 ac_ext=c 24148ac_cpp='$CPP $CPPFLAGS' 24149ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 24150ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 24151ac_compiler_gnu=$ac_cv_c_compiler_gnu 24152 24153 CPPFLAGS="$SAVECPPFLAGS" 24154 24155 if test "x$with_boostpythoninc" != "x" ; then break; fi 24156 done 24157 fi 24158 fi 24159 24160 # report the results back 24161 if test "x$with_boostpythoninc" = "x"; then 24162 echo "$as_me:$LINENO: result: not found" >&5 24163echo "${ECHO_T}not found" >&6 24164 with_boostpython="no" 24165 with_boostpythonlib="" 24166 else 24167 echo "$as_me:$LINENO: result: $with_boostpythoninc" >&5 24168echo "${ECHO_T}$with_boostpythoninc" >&6 24169 if test "$with_boostpythoninc" = "in default path"; then 24170 with_boostpythoninc="" 24171 fi 24172 fi 24173 24174 if test "$with_boostpython" != "no"; then 24175 with_boostpython="yes" 24176 fi 24177 fi 24178 fi 24179 if test "$with_boostpython" = "yes"; then 24180 BOOST_PYTHON_LIB="$with_boostpython_L $with_boostpython_l" 24181 BOOST_INCLUDES="$with_boostpython_I" 24182 else 24183 # undo the python settings 24184 with_python="no" 24185 PYTHON_LIB="" 24186 PYTHON_INCLUDES="" 24187 PYTHON_INSTALLDIR="" 24188 { echo "$as_me:$LINENO: WARNING: Configuring without Python support" >&5 24189echo "$as_me: WARNING: Configuring without Python support" >&2;} 24190 fi 24191fi 24192 24193 24194VIGRA_INCPATH="$includedir" 24195VIGRA_INCLUDES="-I$includedir" 24196POSTINSTALLCPPFLAGS="$VIGRA_INCLUDES" 24197CPPFLAGS="-I$vigra_srcdir/include" 24198LIBCPPFLAGS="$LIBCPPFLAGS $CPPFLAGS" 24199IMPEX_LIB="-L$libdir -lvigraimpex $IMPEX_DEPLIBS" 24200LIBS="$IMPEX_LIB" 24201 24202 24203 24204 24205 24206 24207 24208 24209 24210 24211 24212 24213 24214 24215 24216 24217 24218 24219 24220 24221VIGRA_OUTPUT="config/Makefile.include config/vigra-config doc/vigra/index.html src/Makefile src/impex/Makefile src/examples/Makefile Makefile" 24222 24223if test "$with_python" = "yes" -a -d "$vigra_srcdir/src/pythonbindings"; then 24224 VIGRA_OUTPUT="$VIGRA_OUTPUT $vigra_srcdir/src/pythonbindings/Makefile" 24225fi 24226 24227if test -d "$vigra_srcdir/test"; then 24228 VIGRA_OUTPUT="$VIGRA_OUTPUT test/Makefile.include test/Makefile" 24229 for i in `ls "$vigra_srcdir/test"`; do 24230 if test -d "$vigra_srcdir/test/$i"; then 24231 if test -f "$vigra_srcdir/test/$i/Makefile.in"; then 24232 VIGRA_OUTPUT="$VIGRA_OUTPUT test/$i/Makefile" 24233 fi 24234 fi 24235 done 24236fi 24237 24238 ac_config_files="$ac_config_files $VIGRA_OUTPUT" 24239cat >confcache <<\_ACEOF 24240# This file is a shell script that caches the results of configure 24241# tests run on this system so they can be shared between configure 24242# scripts and configure runs, see configure's option --config-cache. 24243# It is not useful on other systems. If it contains results you don't 24244# want to keep, you may remove or edit it. 24245# 24246# config.status only pays attention to the cache file if you give it 24247# the --recheck option to rerun configure. 24248# 24249# `ac_cv_env_foo' variables (set or unset) will be overridden when 24250# loading this file, other *unset* `ac_cv_foo' will be assigned the 24251# following values. 24252 24253_ACEOF 24254 24255# The following way of writing the cache mishandles newlines in values, 24256# but we know of no workaround that is simple, portable, and efficient. 24257# So, don't put newlines in cache variables' values. 24258# Ultrix sh set writes to stderr and can't be redirected directly, 24259# and sets the high bit in the cache file unless we assign to the vars. 24260{ 24261 (set) 2>&1 | 24262 case `(ac_space=' '; set | grep ac_space) 2>&1` in 24263 *ac_space=\ *) 24264 # `set' does not quote correctly, so add quotes (double-quote 24265 # substitution turns \\\\ into \\, and sed turns \\ into \). 24266 sed -n \ 24267 "s/'/'\\\\''/g; 24268 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 24269 ;; 24270 *) 24271 # `set' quotes correctly as required by POSIX, so do not add quotes. 24272 sed -n \ 24273 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 24274 ;; 24275 esac; 24276} | 24277 sed ' 24278 t clear 24279 : clear 24280 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 24281 t end 24282 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 24283 : end' >>confcache 24284if diff $cache_file confcache >/dev/null 2>&1; then :; else 24285 if test -w $cache_file; then 24286 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 24287 cat confcache >$cache_file 24288 else 24289 echo "not updating unwritable cache $cache_file" 24290 fi 24291fi 24292rm -f confcache 24293 24294test "x$prefix" = xNONE && prefix=$ac_default_prefix 24295# Let make expand exec_prefix. 24296test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 24297 24298# VPATH may cause trouble with some makes, so we remove $(srcdir), 24299# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 24300# trailing colons and then remove the whole line if VPATH becomes empty 24301# (actually we leave an empty line to preserve line numbers). 24302if test "x$srcdir" = x.; then 24303 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 24304s/:*\$(srcdir):*/:/; 24305s/:*\${srcdir}:*/:/; 24306s/:*@srcdir@:*/:/; 24307s/^\([^=]*=[ ]*\):*/\1/; 24308s/:*$//; 24309s/^[^=]*=[ ]*$//; 24310}' 24311fi 24312 24313# Transform confdefs.h into DEFS. 24314# Protect against shell expansion while executing Makefile rules. 24315# Protect against Makefile macro expansion. 24316# 24317# If the first sed substitution is executed (which looks for macros that 24318# take arguments), then we branch to the quote section. Otherwise, 24319# look for a macro that doesn't take arguments. 24320cat >confdef2opt.sed <<\_ACEOF 24321t clear 24322: clear 24323s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\),-D\1=\2,g 24324t quote 24325s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\),-D\1=\2,g 24326t quote 24327d 24328: quote 24329s,[ `~#$^&*(){}\\|;'"<>?],\\&,g 24330s,\[,\\&,g 24331s,\],\\&,g 24332s,\$,$$,g 24333p 24334_ACEOF 24335# We use echo to avoid assuming a particular line-breaking character. 24336# The extra dot is to prevent the shell from consuming trailing 24337# line-breaks from the sub-command output. A line-break within 24338# single-quotes doesn't work because, if this script is created in a 24339# platform that uses two characters for line-breaks (e.g., DOS), tr 24340# would break. 24341ac_LF_and_DOT=`echo; echo .` 24342DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'` 24343rm -f confdef2opt.sed 24344 24345 24346ac_libobjs= 24347ac_ltlibobjs= 24348for ac_i in : $LIB@&t@OBJS; do test "x$ac_i" = x: && continue 24349 # 1. Remove the extension, and $U if already installed. 24350 ac_i=`echo "$ac_i" | 24351 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 24352 # 2. Add them. 24353 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 24354 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 24355done 24356LIB@&t@OBJS=$ac_libobjs 24357 24358LTLIBOBJS=$ac_ltlibobjs 24359 24360 24361 24362: ${CONFIG_STATUS=./config.status} 24363ac_clean_files_save=$ac_clean_files 24364ac_clean_files="$ac_clean_files $CONFIG_STATUS" 24365{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 24366echo "$as_me: creating $CONFIG_STATUS" >&6;} 24367cat >$CONFIG_STATUS <<_ACEOF 24368#! $SHELL 24369# Generated by $as_me. 24370# Run this file to recreate the current configuration. 24371# Compiler output produced by configure, useful for debugging 24372# configure, is in config.log if it exists. 24373 24374debug=false 24375ac_cs_recheck=false 24376ac_cs_silent=false 24377SHELL=\${CONFIG_SHELL-$SHELL} 24378_ACEOF 24379 24380cat >>$CONFIG_STATUS <<\_ACEOF 24381## --------------------- ## 24382## M4sh Initialization. ## 24383## --------------------- ## 24384 24385# Be Bourne compatible 24386if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 24387 emulate sh 24388 NULLCMD=: 24389 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 24390 # is contrary to our usage. Disable this feature. 24391 alias -g '${1+"$@"}'='"$@"' 24392elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 24393 set -o posix 24394fi 24395DUALCASE=1; export DUALCASE # for MKS sh 24396 24397# Support unset when possible. 24398if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 24399 as_unset=unset 24400else 24401 as_unset=false 24402fi 24403 24404 24405# Work around bugs in pre-3.0 UWIN ksh. 24406$as_unset ENV MAIL MAILPATH 24407PS1='$ ' 24408PS2='> ' 24409PS4='+ ' 24410 24411# NLS nuisances. 24412for as_var in \ 24413 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 24414 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 24415 LC_TELEPHONE LC_TIME 24416do 24417 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 24418 eval $as_var=C; export $as_var 24419 else 24420 $as_unset $as_var 24421 fi 24422done 24423 24424# Required to use basename. 24425if expr a : '\(a\)' >/dev/null 2>&1; then 24426 as_expr=expr 24427else 24428 as_expr=false 24429fi 24430 24431if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 24432 as_basename=basename 24433else 24434 as_basename=false 24435fi 24436 24437 24438# Name of the executable. 24439as_me=`$as_basename "$0" || 24440$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 24441 X"$0" : 'X\(//\)$' \| \ 24442 X"$0" : 'X\(/\)$' \| \ 24443 . : '\(.\)' 2>/dev/null || 24444echo X/"$0" | 24445 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 24446 /^X\/\(\/\/\)$/{ s//\1/; q; } 24447 /^X\/\(\/\).*/{ s//\1/; q; } 24448 s/.*/./; q'` 24449 24450 24451# PATH needs CR, and LINENO needs CR and PATH. 24452# Avoid depending upon Character Ranges. 24453as_cr_letters='abcdefghijklmnopqrstuvwxyz' 24454as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 24455as_cr_Letters=$as_cr_letters$as_cr_LETTERS 24456as_cr_digits='0123456789' 24457as_cr_alnum=$as_cr_Letters$as_cr_digits 24458 24459# The user is always right. 24460if test "${PATH_SEPARATOR+set}" != set; then 24461 echo "#! /bin/sh" >conf$$.sh 24462 echo "exit 0" >>conf$$.sh 24463 chmod +x conf$$.sh 24464 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 24465 PATH_SEPARATOR=';' 24466 else 24467 PATH_SEPARATOR=: 24468 fi 24469 rm -f conf$$.sh 24470fi 24471 24472 24473 as_lineno_1=$LINENO 24474 as_lineno_2=$LINENO 24475 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 24476 test "x$as_lineno_1" != "x$as_lineno_2" && 24477 test "x$as_lineno_3" = "x$as_lineno_2" || { 24478 # Find who we are. Look in the path if we contain no path at all 24479 # relative or not. 24480 case $0 in 24481 *[\\/]* ) as_myself=$0 ;; 24482 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24483for as_dir in $PATH 24484do 24485 IFS=$as_save_IFS 24486 test -z "$as_dir" && as_dir=. 24487 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 24488done 24489 24490 ;; 24491 esac 24492 # We did not find ourselves, most probably we were run as `sh COMMAND' 24493 # in which case we are not to be found in the path. 24494 if test "x$as_myself" = x; then 24495 as_myself=$0 24496 fi 24497 if test ! -f "$as_myself"; then 24498 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 24499echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 24500 { (exit 1); exit 1; }; } 24501 fi 24502 case $CONFIG_SHELL in 24503 '') 24504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 24505for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 24506do 24507 IFS=$as_save_IFS 24508 test -z "$as_dir" && as_dir=. 24509 for as_base in sh bash ksh sh5; do 24510 case $as_dir in 24511 /*) 24512 if ("$as_dir/$as_base" -c ' 24513 as_lineno_1=$LINENO 24514 as_lineno_2=$LINENO 24515 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 24516 test "x$as_lineno_1" != "x$as_lineno_2" && 24517 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 24518 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 24519 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 24520 CONFIG_SHELL=$as_dir/$as_base 24521 export CONFIG_SHELL 24522 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 24523 fi;; 24524 esac 24525 done 24526done 24527;; 24528 esac 24529 24530 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 24531 # uniformly replaced by the line number. The first 'sed' inserts a 24532 # line-number line before each line; the second 'sed' does the real 24533 # work. The second script uses 'N' to pair each line-number line 24534 # with the numbered line, and appends trailing '-' during 24535 # substitution so that $LINENO is not a special case at line end. 24536 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 24537 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 24538 sed '=' <$as_myself | 24539 sed ' 24540 N 24541 s,$,-, 24542 : loop 24543 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 24544 t loop 24545 s,-$,, 24546 s,^['$as_cr_digits']*\n,, 24547 ' >$as_me.lineno && 24548 chmod +x $as_me.lineno || 24549 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 24550echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 24551 { (exit 1); exit 1; }; } 24552 24553 # Don't try to exec as it changes $[0], causing all sort of problems 24554 # (the dirname of $[0] is not the place where we might find the 24555 # original and so on. Autoconf is especially sensible to this). 24556 . ./$as_me.lineno 24557 # Exit status is that of the last command. 24558 exit 24559} 24560 24561 24562case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 24563 *c*,-n*) ECHO_N= ECHO_C=' 24564' ECHO_T=' ' ;; 24565 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 24566 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 24567esac 24568 24569if expr a : '\(a\)' >/dev/null 2>&1; then 24570 as_expr=expr 24571else 24572 as_expr=false 24573fi 24574 24575rm -f conf$$ conf$$.exe conf$$.file 24576echo >conf$$.file 24577if ln -s conf$$.file conf$$ 2>/dev/null; then 24578 # We could just check for DJGPP; but this test a) works b) is more generic 24579 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 24580 if test -f conf$$.exe; then 24581 # Don't use ln at all; we don't have any links 24582 as_ln_s='cp -p' 24583 else 24584 as_ln_s='ln -s' 24585 fi 24586elif ln conf$$.file conf$$ 2>/dev/null; then 24587 as_ln_s=ln 24588else 24589 as_ln_s='cp -p' 24590fi 24591rm -f conf$$ conf$$.exe conf$$.file 24592 24593if mkdir -p . 2>/dev/null; then 24594 as_mkdir_p=: 24595else 24596 test -d ./-p && rmdir ./-p 24597 as_mkdir_p=false 24598fi 24599 24600as_executable_p="test -f" 24601 24602# Sed expression to map a string onto a valid CPP name. 24603as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 24604 24605# Sed expression to map a string onto a valid variable name. 24606as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 24607 24608 24609# IFS 24610# We need space, tab and new line, in precisely that order. 24611as_nl=' 24612' 24613IFS=" $as_nl" 24614 24615# CDPATH. 24616$as_unset CDPATH 24617 24618exec 6>&1 24619 24620# Open the log real soon, to keep \$[0] and so on meaningful, and to 24621# report actual input values of CONFIG_FILES etc. instead of their 24622# values after options handling. Logging --version etc. is OK. 24623exec 5>>config.log 24624{ 24625 echo 24626 sed 'h;s/./-/g;s/^.../@%:@@%:@ /;s/...$/ @%:@@%:@/;p;x;p;x' <<_ASBOX 24627@%:@@%:@ Running $as_me. @%:@@%:@ 24628_ASBOX 24629} >&5 24630cat >&5 <<_CSEOF 24631 24632This file was extended by vigra $as_me 1.5.0, which was 24633generated by GNU Autoconf 2.59. Invocation command line was 24634 24635 CONFIG_FILES = $CONFIG_FILES 24636 CONFIG_HEADERS = $CONFIG_HEADERS 24637 CONFIG_LINKS = $CONFIG_LINKS 24638 CONFIG_COMMANDS = $CONFIG_COMMANDS 24639 $ $0 $@ 24640 24641_CSEOF 24642echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 24643echo >&5 24644_ACEOF 24645 24646# Files that config.status was made for. 24647if test -n "$ac_config_files"; then 24648 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 24649fi 24650 24651if test -n "$ac_config_headers"; then 24652 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 24653fi 24654 24655if test -n "$ac_config_links"; then 24656 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 24657fi 24658 24659if test -n "$ac_config_commands"; then 24660 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 24661fi 24662 24663cat >>$CONFIG_STATUS <<\_ACEOF 24664 24665ac_cs_usage="\ 24666\`$as_me' instantiates files from templates according to the 24667current configuration. 24668 24669Usage: $0 [OPTIONS] [FILE]... 24670 24671 -h, --help print this help, then exit 24672 -V, --version print version number, then exit 24673 -q, --quiet do not print progress messages 24674 -d, --debug don't remove temporary files 24675 --recheck update $as_me by reconfiguring in the same conditions 24676 --file=FILE[:TEMPLATE] 24677 instantiate the configuration file FILE 24678 24679Configuration files: 24680$config_files 24681 24682Report bugs to <bug-autoconf@gnu.org>." 24683_ACEOF 24684 24685cat >>$CONFIG_STATUS <<_ACEOF 24686ac_cs_version="\\ 24687vigra config.status 1.5.0 24688configured by $0, generated by GNU Autoconf 2.59, 24689 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 24690 24691Copyright (C) 2003 Free Software Foundation, Inc. 24692This config.status script is free software; the Free Software Foundation 24693gives unlimited permission to copy, distribute and modify it." 24694srcdir=$srcdir 24695INSTALL="$INSTALL" 24696_ACEOF 24697 24698cat >>$CONFIG_STATUS <<\_ACEOF 24699# If no file are specified by the user, then we need to provide default 24700# value. By we need to know if files were specified by the user. 24701ac_need_defaults=: 24702while test $# != 0 24703do 24704 case $1 in 24705 --*=*) 24706 ac_option=`expr "x$1" : 'x\([^=]*\)='` 24707 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 24708 ac_shift=: 24709 ;; 24710 -*) 24711 ac_option=$1 24712 ac_optarg=$2 24713 ac_shift=shift 24714 ;; 24715 *) # This is not an option, so the user has probably given explicit 24716 # arguments. 24717 ac_option=$1 24718 ac_need_defaults=false;; 24719 esac 24720 24721 case $ac_option in 24722 # Handling of the options. 24723_ACEOF 24724cat >>$CONFIG_STATUS <<\_ACEOF 24725 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 24726 ac_cs_recheck=: ;; 24727 --version | --vers* | -V ) 24728 echo "$ac_cs_version"; exit 0 ;; 24729 --he | --h) 24730 # Conflict between --help and --header 24731 { { echo "$as_me:$LINENO: error: ambiguous option: $1 24732Try \`$0 --help' for more information." >&5 24733echo "$as_me: error: ambiguous option: $1 24734Try \`$0 --help' for more information." >&2;} 24735 { (exit 1); exit 1; }; };; 24736 --help | --hel | -h ) 24737 echo "$ac_cs_usage"; exit 0 ;; 24738 --debug | --d* | -d ) 24739 debug=: ;; 24740 --file | --fil | --fi | --f ) 24741 $ac_shift 24742 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 24743 ac_need_defaults=false;; 24744 --header | --heade | --head | --hea ) 24745 $ac_shift 24746 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 24747 ac_need_defaults=false;; 24748 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 24749 | -silent | --silent | --silen | --sile | --sil | --si | --s) 24750 ac_cs_silent=: ;; 24751 24752 # This is an error. 24753 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 24754Try \`$0 --help' for more information." >&5 24755echo "$as_me: error: unrecognized option: $1 24756Try \`$0 --help' for more information." >&2;} 24757 { (exit 1); exit 1; }; } ;; 24758 24759 *) ac_config_targets="$ac_config_targets $1" ;; 24760 24761 esac 24762 shift 24763done 24764 24765ac_configure_extra_args= 24766 24767if $ac_cs_silent; then 24768 exec 6>/dev/null 24769 ac_configure_extra_args="$ac_configure_extra_args --silent" 24770fi 24771 24772_ACEOF 24773cat >>$CONFIG_STATUS <<_ACEOF 24774if \$ac_cs_recheck; then 24775 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 24776 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 24777fi 24778 24779_ACEOF 24780 24781 24782 24783 24784 24785cat >>$CONFIG_STATUS <<\_ACEOF 24786for ac_config_target in $ac_config_targets 24787do 24788 case "$ac_config_target" in 24789 # Handling of arguments. 24790 "$VIGRA_OUTPUT" ) CONFIG_FILES="$CONFIG_FILES $VIGRA_OUTPUT" ;; 24791 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 24792echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 24793 { (exit 1); exit 1; }; };; 24794 esac 24795done 24796 24797# If the user did not use the arguments to specify the items to instantiate, 24798# then the envvar interface is used. Set only those that are not. 24799# We use the long form for the default assignment because of an extremely 24800# bizarre bug on SunOS 4.1.3. 24801if $ac_need_defaults; then 24802 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 24803fi 24804 24805# Have a temporary directory for convenience. Make it in the build tree 24806# simply because there is no reason to put it here, and in addition, 24807# creating and moving files from /tmp can sometimes cause problems. 24808# Create a temporary directory, and hook for its removal unless debugging. 24809$debug || 24810{ 24811 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 24812 trap '{ (exit 1); exit 1; }' 1 2 13 15 24813} 24814 24815# Create a (secure) tmp directory for tmp files. 24816 24817{ 24818 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 24819 test -n "$tmp" && test -d "$tmp" 24820} || 24821{ 24822 tmp=./confstat$$-$RANDOM 24823 (umask 077 && mkdir $tmp) 24824} || 24825{ 24826 echo "$me: cannot create a temporary directory in ." >&2 24827 { (exit 1); exit 1; } 24828} 24829 24830_ACEOF 24831 24832cat >>$CONFIG_STATUS <<_ACEOF 24833 24834# 24835# CONFIG_FILES section. 24836# 24837 24838# No need to generate the scripts if there are no CONFIG_FILES. 24839# This happens for instance when ./config.status config.h 24840if test -n "\$CONFIG_FILES"; then 24841 # Protect against being on the right side of a sed subst in config.status. 24842 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 24843 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 24844s,@SHELL@,$SHELL,;t t 24845s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 24846s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 24847s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 24848s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 24849s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 24850s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 24851s,@exec_prefix@,$exec_prefix,;t t 24852s,@prefix@,$prefix,;t t 24853s,@program_transform_name@,$program_transform_name,;t t 24854s,@bindir@,$bindir,;t t 24855s,@libdir@,$libdir,;t t 24856s,@includedir@,$includedir,;t t 24857s,@docdir@,$docdir,;t t 24858s,@build_alias@,$build_alias,;t t 24859s,@host_alias@,$host_alias,;t t 24860s,@target_alias@,$target_alias,;t t 24861s,@DEFS@,$DEFS,;t t 24862s,@ECHO_C@,$ECHO_C,;t t 24863s,@ECHO_N@,$ECHO_N,;t t 24864s,@ECHO_T@,$ECHO_T,;t t 24865s,@LIBS@,$LIBS,;t t 24866s,@MAJOR_VERSION@,$MAJOR_VERSION,;t t 24867s,@MINOR_VERSION@,$MINOR_VERSION,;t t 24868s,@MICRO_VERSION@,$MICRO_VERSION,;t t 24869s,@SHAREDLIB_VERSION@,$SHAREDLIB_VERSION,;t t 24870s,@build@,$build,;t t 24871s,@build_cpu@,$build_cpu,;t t 24872s,@build_vendor@,$build_vendor,;t t 24873s,@build_os@,$build_os,;t t 24874s,@host@,$host,;t t 24875s,@host_cpu@,$host_cpu,;t t 24876s,@host_vendor@,$host_vendor,;t t 24877s,@host_os@,$host_os,;t t 24878s,@target@,$target,;t t 24879s,@target_cpu@,$target_cpu,;t t 24880s,@target_vendor@,$target_vendor,;t t 24881s,@target_os@,$target_os,;t t 24882s,@CC@,$CC,;t t 24883s,@CFLAGS@,$CFLAGS,;t t 24884s,@LDFLAGS@,$LDFLAGS,;t t 24885s,@CPPFLAGS@,$CPPFLAGS,;t t 24886s,@ac_ct_CC@,$ac_ct_CC,;t t 24887s,@EXEEXT@,$EXEEXT,;t t 24888s,@OBJEXT@,$OBJEXT,;t t 24889s,@CXX@,$CXX,;t t 24890s,@CXXFLAGS@,$CXXFLAGS,;t t 24891s,@ac_ct_CXX@,$ac_ct_CXX,;t t 24892s,@EGREP@,$EGREP,;t t 24893s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 24894s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 24895s,@INSTALL_DATA@,$INSTALL_DATA,;t t 24896s,@LN_S@,$LN_S,;t t 24897s,@ECHO@,$ECHO,;t t 24898s,@AR@,$AR,;t t 24899s,@ac_ct_AR@,$ac_ct_AR,;t t 24900s,@RANLIB@,$RANLIB,;t t 24901s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 24902s,@STRIP@,$STRIP,;t t 24903s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 24904s,@CPP@,$CPP,;t t 24905s,@CXXCPP@,$CXXCPP,;t t 24906s,@F77@,$F77,;t t 24907s,@FFLAGS@,$FFLAGS,;t t 24908s,@ac_ct_F77@,$ac_ct_F77,;t t 24909s,@LIBTOOL@,$LIBTOOL,;t t 24910s,@PKGCONFIG@,$PKGCONFIG,;t t 24911s,@LIBPNGCONFIG@,$LIBPNGCONFIG,;t t 24912s,@PYTHON@,$PYTHON,;t t 24913s,@vigra_srcdir@,$vigra_srcdir,;t t 24914s,@vigra_builddir@,$vigra_builddir,;t t 24915s,@TIFF_LIB@,$TIFF_LIB,;t t 24916s,@JPEG_LIB@,$JPEG_LIB,;t t 24917s,@PNG_LIB@,$PNG_LIB,;t t 24918s,@FFTW_LIB@,$FFTW_LIB,;t t 24919s,@FFTW_INCLUDES@,$FFTW_INCLUDES,;t t 24920s,@IMPEX_LIB@,$IMPEX_LIB,;t t 24921s,@IMPEX_DEPLIBS@,$IMPEX_DEPLIBS,;t t 24922s,@VIGRA_INCLUDES@,$VIGRA_INCLUDES,;t t 24923s,@VIGRA_INCPATH@,$VIGRA_INCPATH,;t t 24924s,@POSTINSTALLCPPFLAGS@,$POSTINSTALLCPPFLAGS,;t t 24925s,@BOOST_PYTHON_LIB@,$BOOST_PYTHON_LIB,;t t 24926s,@BOOST_INCLUDES@,$BOOST_INCLUDES,;t t 24927s,@PYTHON_INSTALLDIR@,$PYTHON_INSTALLDIR,;t t 24928s,@LIBCPPFLAGS@,$LIBCPPFLAGS,;t t 24929s,@LIB@&t@OBJS@,$LIB@&t@OBJS,;t t 24930s,@LTLIBOBJS@,$LTLIBOBJS,;t t 24931CEOF 24932 24933_ACEOF 24934 24935 cat >>$CONFIG_STATUS <<\_ACEOF 24936 # Split the substitutions into bite-sized pieces for seds with 24937 # small command number limits, like on Digital OSF/1 and HP-UX. 24938 ac_max_sed_lines=48 24939 ac_sed_frag=1 # Number of current file. 24940 ac_beg=1 # First line for current file. 24941 ac_end=$ac_max_sed_lines # Line after last line for current file. 24942 ac_more_lines=: 24943 ac_sed_cmds= 24944 while $ac_more_lines; do 24945 if test $ac_beg -gt 1; then 24946 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24947 else 24948 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 24949 fi 24950 if test ! -s $tmp/subs.frag; then 24951 ac_more_lines=false 24952 else 24953 # The purpose of the label and of the branching condition is to 24954 # speed up the sed processing (if there are no `@' at all, there 24955 # is no need to browse any of the substitutions). 24956 # These are the two extra sed commands mentioned above. 24957 (echo ':t 24958 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 24959 if test -z "$ac_sed_cmds"; then 24960 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 24961 else 24962 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 24963 fi 24964 ac_sed_frag=`expr $ac_sed_frag + 1` 24965 ac_beg=$ac_end 24966 ac_end=`expr $ac_end + $ac_max_sed_lines` 24967 fi 24968 done 24969 if test -z "$ac_sed_cmds"; then 24970 ac_sed_cmds=cat 24971 fi 24972fi # test -n "$CONFIG_FILES" 24973 24974_ACEOF 24975cat >>$CONFIG_STATUS <<\_ACEOF 24976for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 24977 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 24978 case $ac_file in 24979 - | *:- | *:-:* ) # input from stdin 24980 cat >$tmp/stdin 24981 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24982 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24983 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 24984 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 24985 * ) ac_file_in=$ac_file.in ;; 24986 esac 24987 24988 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 24989 ac_dir=`(dirname "$ac_file") 2>/dev/null || 24990$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24991 X"$ac_file" : 'X\(//\)[^/]' \| \ 24992 X"$ac_file" : 'X\(//\)$' \| \ 24993 X"$ac_file" : 'X\(/\)' \| \ 24994 . : '\(.\)' 2>/dev/null || 24995echo X"$ac_file" | 24996 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 24997 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 24998 /^X\(\/\/\)$/{ s//\1/; q; } 24999 /^X\(\/\).*/{ s//\1/; q; } 25000 s/.*/./; q'` 25001 { if $as_mkdir_p; then 25002 mkdir -p "$ac_dir" 25003 else 25004 as_dir="$ac_dir" 25005 as_dirs= 25006 while test ! -d "$as_dir"; do 25007 as_dirs="$as_dir $as_dirs" 25008 as_dir=`(dirname "$as_dir") 2>/dev/null || 25009$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 25010 X"$as_dir" : 'X\(//\)[^/]' \| \ 25011 X"$as_dir" : 'X\(//\)$' \| \ 25012 X"$as_dir" : 'X\(/\)' \| \ 25013 . : '\(.\)' 2>/dev/null || 25014echo X"$as_dir" | 25015 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 25016 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 25017 /^X\(\/\/\)$/{ s//\1/; q; } 25018 /^X\(\/\).*/{ s//\1/; q; } 25019 s/.*/./; q'` 25020 done 25021 test ! -n "$as_dirs" || mkdir $as_dirs 25022 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 25023echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 25024 { (exit 1); exit 1; }; }; } 25025 25026 ac_builddir=. 25027 25028if test "$ac_dir" != .; then 25029 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 25030 # A "../" for each directory in $ac_dir_suffix. 25031 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 25032else 25033 ac_dir_suffix= ac_top_builddir= 25034fi 25035 25036case $srcdir in 25037 .) # No --srcdir option. We are building in place. 25038 ac_srcdir=. 25039 if test -z "$ac_top_builddir"; then 25040 ac_top_srcdir=. 25041 else 25042 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 25043 fi ;; 25044 [\\/]* | ?:[\\/]* ) # Absolute path. 25045 ac_srcdir=$srcdir$ac_dir_suffix; 25046 ac_top_srcdir=$srcdir ;; 25047 *) # Relative path. 25048 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 25049 ac_top_srcdir=$ac_top_builddir$srcdir ;; 25050esac 25051 25052# Do not use `cd foo && pwd` to compute absolute paths, because 25053# the directories may not exist. 25054case `pwd` in 25055.) ac_abs_builddir="$ac_dir";; 25056*) 25057 case "$ac_dir" in 25058 .) ac_abs_builddir=`pwd`;; 25059 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 25060 *) ac_abs_builddir=`pwd`/"$ac_dir";; 25061 esac;; 25062esac 25063case $ac_abs_builddir in 25064.) ac_abs_top_builddir=${ac_top_builddir}.;; 25065*) 25066 case ${ac_top_builddir}. in 25067 .) ac_abs_top_builddir=$ac_abs_builddir;; 25068 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 25069 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 25070 esac;; 25071esac 25072case $ac_abs_builddir in 25073.) ac_abs_srcdir=$ac_srcdir;; 25074*) 25075 case $ac_srcdir in 25076 .) ac_abs_srcdir=$ac_abs_builddir;; 25077 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 25078 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 25079 esac;; 25080esac 25081case $ac_abs_builddir in 25082.) ac_abs_top_srcdir=$ac_top_srcdir;; 25083*) 25084 case $ac_top_srcdir in 25085 .) ac_abs_top_srcdir=$ac_abs_builddir;; 25086 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 25087 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 25088 esac;; 25089esac 25090 25091 25092 case $INSTALL in 25093 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 25094 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 25095 esac 25096 25097 if test x"$ac_file" != x-; then 25098 { echo "$as_me:$LINENO: creating $ac_file" >&5 25099echo "$as_me: creating $ac_file" >&6;} 25100 rm -f "$ac_file" 25101 fi 25102 # Let's still pretend it is `configure' which instantiates (i.e., don't 25103 # use $as_me), people would be surprised to read: 25104 # /* config.h. Generated by config.status. */ 25105 if test x"$ac_file" = x-; then 25106 configure_input= 25107 else 25108 configure_input="$ac_file. " 25109 fi 25110 configure_input=$configure_input"Generated from `echo $ac_file_in | 25111 sed 's,.*/,,'` by configure." 25112 25113 # First look for the input files in the build tree, otherwise in the 25114 # src tree. 25115 ac_file_inputs=`IFS=: 25116 for f in $ac_file_in; do 25117 case $f in 25118 -) echo $tmp/stdin ;; 25119 [\\/$]*) 25120 # Absolute (can't be DOS-style, as IFS=:) 25121 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 25122echo "$as_me: error: cannot find input file: $f" >&2;} 25123 { (exit 1); exit 1; }; } 25124 echo "$f";; 25125 *) # Relative 25126 if test -f "$f"; then 25127 # Build tree 25128 echo "$f" 25129 elif test -f "$srcdir/$f"; then 25130 # Source tree 25131 echo "$srcdir/$f" 25132 else 25133 # /dev/null tree 25134 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 25135echo "$as_me: error: cannot find input file: $f" >&2;} 25136 { (exit 1); exit 1; }; } 25137 fi;; 25138 esac 25139 done` || { (exit 1); exit 1; } 25140_ACEOF 25141cat >>$CONFIG_STATUS <<_ACEOF 25142 sed "$ac_vpsub 25143$extrasub 25144_ACEOF 25145cat >>$CONFIG_STATUS <<\_ACEOF 25146:t 25147/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 25148s,@configure_input@,$configure_input,;t t 25149s,@srcdir@,$ac_srcdir,;t t 25150s,@abs_srcdir@,$ac_abs_srcdir,;t t 25151s,@top_srcdir@,$ac_top_srcdir,;t t 25152s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 25153s,@builddir@,$ac_builddir,;t t 25154s,@abs_builddir@,$ac_abs_builddir,;t t 25155s,@top_builddir@,$ac_top_builddir,;t t 25156s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 25157s,@INSTALL@,$ac_INSTALL,;t t 25158" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 25159 rm -f $tmp/stdin 25160 if test x"$ac_file" != x-; then 25161 mv $tmp/out $ac_file 25162 else 25163 cat $tmp/out 25164 rm -f $tmp/out 25165 fi 25166 25167done 25168_ACEOF 25169 25170cat >>$CONFIG_STATUS <<\_ACEOF 25171 25172{ (exit 0); exit 0; } 25173_ACEOF 25174chmod +x $CONFIG_STATUS 25175ac_clean_files=$ac_clean_files_save 25176 25177 25178# configure is writing to config.log, and then calls config.status. 25179# config.status does its own redirection, appending to config.log. 25180# Unfortunately, on DOS this fails, as config.log is still kept open 25181# by configure, so config.status won't be able to write to it; its 25182# output is simply discarded. So we exec the FD to /dev/null, 25183# effectively closing config.log, so it can be properly (re)opened and 25184# appended to by config.status. When coming back to configure, we 25185# need to make the FD available again. 25186if test "$no_create" != yes; then 25187 ac_cs_success=: 25188 ac_config_status_args= 25189 test "$silent" = yes && 25190 ac_config_status_args="$ac_config_status_args --quiet" 25191 exec 5>/dev/null 25192 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25193 exec 5>>config.log 25194 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25195 # would make configure fail if this is the last instruction. 25196 $ac_cs_success || { (exit 1); exit 1; } 25197fi 25198 25199chmod +x config/vigra-config # for src/examples 25200 25201echopath() 25202{ 25203 echo "$1" \ 25204 | sed "s,\$[({]exec_prefix[})],$exec_prefix," \ 25205 | sed "s,\$[({]prefix[})],$prefix," 25206} 25207 25208echo "configure finished." 25209echo "" 25210echo "TIFF support enabled (--with-tiff): $with_tiff" 25211echo "JPEG support enabled (--with-jpeg): $with_jpeg" 25212echo "PNG support enabled (--with-png): $with_png" 25213echo "FFTW support enabled (--with-fftw): $with_fftw" 25214#echo "Python support enabled (--with-python): $with_python" 25215echo "" 25216echopath "The vigra sources are taken from $vigra_srcdir." 25217echopath "The vigraimpex library will be installed in $libdir." 25218echopath "The 'vigra-config' script will be installed in $bindir." 25219echopath "The include files will be installed in $includedir." 25220echopath "The documentation will be installed in $docdir." 25221if test "$with_python" = "yes"; then 25222 echopath "The Python modules will be installed in $PYTHON_INSTALLDIR." 25223fi 25224