1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.59 for GNU OpenMP Runtime Library 1.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$lt_ECHO in 249X*--fallback-echo) 250 # Remove one level of quotation (which was required for Make). 251 ECHO=`echo "$lt_ECHO" | sed 's,\\\\\$\\$0,'$0','` 252 ;; 253esac 254 255ECHO=${lt_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 <<_LT_EOF 274$* 275_LT_EOF 276 exit 0 277fi 278 279# The HP-UX ksh and POSIX shell print the target directory to stdout 280# if CDPATH is set. 281(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 282 283if test -z "$lt_ECHO"; then 284 if 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 { test "X$echo_test_string" = "X$echo_test_string"; } 2>/dev/null 290 then 291 break 292 fi 293 done 294 fi 295 296 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 297 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 298 test "X$echo_testing_string" = "X$echo_test_string"; then 299 : 300 else 301 # The Solaris, AIX, and Digital Unix default echo programs unquote 302 # backslashes. This makes it impossible to quote backslashes using 303 # echo "$something" | sed 's/\\/\\\\/g' 304 # 305 # So, first we look for a working echo in the user's PATH. 306 307 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 308 for dir in $PATH /usr/ucb; do 309 IFS="$lt_save_ifs" 310 if (test -f $dir/echo || test -f $dir/echo$ac_exeext) && 311 test "X`($dir/echo '\t') 2>/dev/null`" = 'X\t' && 312 echo_testing_string=`($dir/echo "$echo_test_string") 2>/dev/null` && 313 test "X$echo_testing_string" = "X$echo_test_string"; then 314 ECHO="$dir/echo" 315 break 316 fi 317 done 318 IFS="$lt_save_ifs" 319 320 if test "X$ECHO" = Xecho; then 321 # We didn't find a better echo, so look for alternatives. 322 if test "X`{ print -r '\t'; } 2>/dev/null`" = 'X\t' && 323 echo_testing_string=`{ print -r "$echo_test_string"; } 2>/dev/null` && 324 test "X$echo_testing_string" = "X$echo_test_string"; then 325 # This shell has a builtin print -r that does the trick. 326 ECHO='print -r' 327 elif { test -f /bin/ksh || test -f /bin/ksh$ac_exeext; } && 328 test "X$CONFIG_SHELL" != X/bin/ksh; then 329 # If we have ksh, try running configure again with it. 330 ORIGINAL_CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 331 export ORIGINAL_CONFIG_SHELL 332 CONFIG_SHELL=/bin/ksh 333 export CONFIG_SHELL 334 exec $CONFIG_SHELL "$0" --no-reexec ${1+"$@"} 335 else 336 # Try using printf. 337 ECHO='printf %s\n' 338 if test "X`{ $ECHO '\t'; } 2>/dev/null`" = 'X\t' && 339 echo_testing_string=`{ $ECHO "$echo_test_string"; } 2>/dev/null` && 340 test "X$echo_testing_string" = "X$echo_test_string"; then 341 # Cool, printf works 342 : 343 elif echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 344 test "X$echo_testing_string" = 'X\t' && 345 echo_testing_string=`($ORIGINAL_CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 346 test "X$echo_testing_string" = "X$echo_test_string"; then 347 CONFIG_SHELL=$ORIGINAL_CONFIG_SHELL 348 export CONFIG_SHELL 349 SHELL="$CONFIG_SHELL" 350 export SHELL 351 ECHO="$CONFIG_SHELL $0 --fallback-echo" 352 elif echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo '\t') 2>/dev/null` && 353 test "X$echo_testing_string" = 'X\t' && 354 echo_testing_string=`($CONFIG_SHELL "$0" --fallback-echo "$echo_test_string") 2>/dev/null` && 355 test "X$echo_testing_string" = "X$echo_test_string"; then 356 ECHO="$CONFIG_SHELL $0 --fallback-echo" 357 else 358 # maybe with a smaller string... 359 prev=: 360 361 for cmd in 'echo test' 'sed 2q "$0"' 'sed 10q "$0"' 'sed 20q "$0"' 'sed 50q "$0"'; do 362 if { test "X$echo_test_string" = "X`eval $cmd`"; } 2>/dev/null 363 then 364 break 365 fi 366 prev="$cmd" 367 done 368 369 if test "$prev" != 'sed 50q "$0"'; then 370 echo_test_string=`eval $prev` 371 export echo_test_string 372 exec ${ORIGINAL_CONFIG_SHELL-${CONFIG_SHELL-/bin/sh}} "$0" ${1+"$@"} 373 else 374 # Oops. We lost completely, so just stick with echo. 375 ECHO=echo 376 fi 377 fi 378 fi 379 fi 380 fi 381fi 382 383# Copy echo and quote the copy suitably for passing to libtool from 384# the Makefile, instead of quoting the original, which is used later. 385lt_ECHO=$ECHO 386if test "X$lt_ECHO" = "X$CONFIG_SHELL $0 --fallback-echo"; then 387 lt_ECHO="$CONFIG_SHELL \\\$\$0 --fallback-echo" 388fi 389 390 391 392 393# Name of the host. 394# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 395# so uname gets run too. 396ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 397 398exec 6>&1 399 400# 401# Initializations. 402# 403ac_default_prefix=/usr/local 404ac_config_libobj_dir=. 405cross_compiling=no 406subdirs= 407MFLAGS= 408MAKEFLAGS= 409SHELL=${CONFIG_SHELL-/bin/sh} 410 411# Maximum number of lines to put in a shell here document. 412# This variable seems obsolete. It should probably be removed, and 413# only ac_max_sed_lines should be used. 414: ${ac_max_here_lines=38} 415 416# Identity of this package. 417PACKAGE_NAME='GNU OpenMP Runtime Library' 418PACKAGE_TARNAME='libgomp' 419PACKAGE_VERSION='1.0' 420PACKAGE_STRING='GNU OpenMP Runtime Library 1.0' 421PACKAGE_BUGREPORT='' 422 423# Factoring default headers for most tests. 424ac_includes_default="\ 425#include <stdio.h> 426#if HAVE_SYS_TYPES_H 427# include <sys/types.h> 428#endif 429#if HAVE_SYS_STAT_H 430# include <sys/stat.h> 431#endif 432#if STDC_HEADERS 433# include <stdlib.h> 434# include <stddef.h> 435#else 436# if HAVE_STDLIB_H 437# include <stdlib.h> 438# endif 439#endif 440#if HAVE_STRING_H 441# if !STDC_HEADERS && HAVE_MEMORY_H 442# include <memory.h> 443# endif 444# include <string.h> 445#endif 446#if HAVE_STRINGS_H 447# include <strings.h> 448#endif 449#if HAVE_INTTYPES_H 450# include <inttypes.h> 451#else 452# if HAVE_STDINT_H 453# include <stdint.h> 454# endif 455#endif 456#if HAVE_UNISTD_H 457# include <unistd.h> 458#endif" 459 460ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS GENINSRC_TRUE GENINSRC_FALSE build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar multi_basedir toolexecdir toolexeclibdir CC ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CFLAGS AR ac_ct_AR RANLIB ac_ct_RANLIB PERL BUILD_INFO_TRUE BUILD_INFO_FALSE LIBTOOL SED EGREP FGREP GREP LD DUMPBIN ac_ct_DUMPBIN NM LN_S lt_ECHO CPP CPPFLAGS enable_shared enable_static MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT FC FCFLAGS LDFLAGS ac_ct_FC libtool_VERSION SECTION_LDFLAGS OPT_LDFLAGS LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE config_path XCFLAGS XLDFLAGS link_gomp USE_FORTRAN_TRUE USE_FORTRAN_FALSE OMP_LOCK_SIZE OMP_LOCK_ALIGN OMP_NEST_LOCK_SIZE OMP_NEST_LOCK_ALIGN OMP_LOCK_KIND OMP_NEST_LOCK_KIND LIBOBJS LTLIBOBJS' 461ac_subst_files='' 462 463# Initialize some variables set by options. 464ac_init_help= 465ac_init_version=false 466# The variables have the same names as the options, with 467# dashes changed to underlines. 468cache_file=/dev/null 469exec_prefix=NONE 470no_create= 471no_recursion= 472prefix=NONE 473program_prefix=NONE 474program_suffix=NONE 475program_transform_name=s,x,x, 476silent= 477site= 478srcdir= 479verbose= 480x_includes=NONE 481x_libraries=NONE 482 483# Installation directory options. 484# These are left unexpanded so users can "make install exec_prefix=/foo" 485# and all the variables that are supposed to be based on exec_prefix 486# by default will actually change. 487# Use braces instead of parens because sh, perl, etc. also accept them. 488bindir='${exec_prefix}/bin' 489sbindir='${exec_prefix}/sbin' 490libexecdir='${exec_prefix}/libexec' 491datadir='${prefix}/share' 492sysconfdir='${prefix}/etc' 493sharedstatedir='${prefix}/com' 494localstatedir='${prefix}/var' 495libdir='${exec_prefix}/lib' 496includedir='${prefix}/include' 497oldincludedir='/usr/include' 498infodir='${prefix}/info' 499mandir='${prefix}/man' 500 501ac_prev= 502for ac_option 503do 504 # If the previous option needs an argument, assign it. 505 if test -n "$ac_prev"; then 506 eval "$ac_prev=\$ac_option" 507 ac_prev= 508 continue 509 fi 510 511 ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` 512 513 # Accept the important Cygnus configure options, so we can diagnose typos. 514 515 case $ac_option in 516 517 -bindir | --bindir | --bindi | --bind | --bin | --bi) 518 ac_prev=bindir ;; 519 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 520 bindir=$ac_optarg ;; 521 522 -build | --build | --buil | --bui | --bu) 523 ac_prev=build_alias ;; 524 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 525 build_alias=$ac_optarg ;; 526 527 -cache-file | --cache-file | --cache-fil | --cache-fi \ 528 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 529 ac_prev=cache_file ;; 530 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 531 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 532 cache_file=$ac_optarg ;; 533 534 --config-cache | -C) 535 cache_file=config.cache ;; 536 537 -datadir | --datadir | --datadi | --datad | --data | --dat | --da) 538 ac_prev=datadir ;; 539 -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ 540 | --da=*) 541 datadir=$ac_optarg ;; 542 543 -disable-* | --disable-*) 544 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 545 # Reject names that are not valid shell variable names. 546 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 547 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 548 { (exit 1); exit 1; }; } 549 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 550 eval "enable_$ac_feature=no" ;; 551 552 -enable-* | --enable-*) 553 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 554 # Reject names that are not valid shell variable names. 555 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && 556 { echo "$as_me: error: invalid feature name: $ac_feature" >&2 557 { (exit 1); exit 1; }; } 558 ac_feature=`echo $ac_feature | sed 's/-/_/g'` 559 case $ac_option in 560 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 561 *) ac_optarg=yes ;; 562 esac 563 eval "enable_$ac_feature='$ac_optarg'" ;; 564 565 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 566 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 567 | --exec | --exe | --ex) 568 ac_prev=exec_prefix ;; 569 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 570 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 571 | --exec=* | --exe=* | --ex=*) 572 exec_prefix=$ac_optarg ;; 573 574 -gas | --gas | --ga | --g) 575 # Obsolete; use --with-gas. 576 with_gas=yes ;; 577 578 -help | --help | --hel | --he | -h) 579 ac_init_help=long ;; 580 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 581 ac_init_help=recursive ;; 582 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 583 ac_init_help=short ;; 584 585 -host | --host | --hos | --ho) 586 ac_prev=host_alias ;; 587 -host=* | --host=* | --hos=* | --ho=*) 588 host_alias=$ac_optarg ;; 589 590 -includedir | --includedir | --includedi | --included | --include \ 591 | --includ | --inclu | --incl | --inc) 592 ac_prev=includedir ;; 593 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 594 | --includ=* | --inclu=* | --incl=* | --inc=*) 595 includedir=$ac_optarg ;; 596 597 -infodir | --infodir | --infodi | --infod | --info | --inf) 598 ac_prev=infodir ;; 599 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 600 infodir=$ac_optarg ;; 601 602 -libdir | --libdir | --libdi | --libd) 603 ac_prev=libdir ;; 604 -libdir=* | --libdir=* | --libdi=* | --libd=*) 605 libdir=$ac_optarg ;; 606 607 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 608 | --libexe | --libex | --libe) 609 ac_prev=libexecdir ;; 610 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 611 | --libexe=* | --libex=* | --libe=*) 612 libexecdir=$ac_optarg ;; 613 614 -localstatedir | --localstatedir | --localstatedi | --localstated \ 615 | --localstate | --localstat | --localsta | --localst \ 616 | --locals | --local | --loca | --loc | --lo) 617 ac_prev=localstatedir ;; 618 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 619 | --localstate=* | --localstat=* | --localsta=* | --localst=* \ 620 | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) 621 localstatedir=$ac_optarg ;; 622 623 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 624 ac_prev=mandir ;; 625 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 626 mandir=$ac_optarg ;; 627 628 -nfp | --nfp | --nf) 629 # Obsolete; use --without-fp. 630 with_fp=no ;; 631 632 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 633 | --no-cr | --no-c | -n) 634 no_create=yes ;; 635 636 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 637 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 638 no_recursion=yes ;; 639 640 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 641 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 642 | --oldin | --oldi | --old | --ol | --o) 643 ac_prev=oldincludedir ;; 644 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 645 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 646 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 647 oldincludedir=$ac_optarg ;; 648 649 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 650 ac_prev=prefix ;; 651 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 652 prefix=$ac_optarg ;; 653 654 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 655 | --program-pre | --program-pr | --program-p) 656 ac_prev=program_prefix ;; 657 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 658 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 659 program_prefix=$ac_optarg ;; 660 661 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 662 | --program-suf | --program-su | --program-s) 663 ac_prev=program_suffix ;; 664 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 665 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 666 program_suffix=$ac_optarg ;; 667 668 -program-transform-name | --program-transform-name \ 669 | --program-transform-nam | --program-transform-na \ 670 | --program-transform-n | --program-transform- \ 671 | --program-transform | --program-transfor \ 672 | --program-transfo | --program-transf \ 673 | --program-trans | --program-tran \ 674 | --progr-tra | --program-tr | --program-t) 675 ac_prev=program_transform_name ;; 676 -program-transform-name=* | --program-transform-name=* \ 677 | --program-transform-nam=* | --program-transform-na=* \ 678 | --program-transform-n=* | --program-transform-=* \ 679 | --program-transform=* | --program-transfor=* \ 680 | --program-transfo=* | --program-transf=* \ 681 | --program-trans=* | --program-tran=* \ 682 | --progr-tra=* | --program-tr=* | --program-t=*) 683 program_transform_name=$ac_optarg ;; 684 685 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 686 | -silent | --silent | --silen | --sile | --sil) 687 silent=yes ;; 688 689 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 690 ac_prev=sbindir ;; 691 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 692 | --sbi=* | --sb=*) 693 sbindir=$ac_optarg ;; 694 695 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 696 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 697 | --sharedst | --shareds | --shared | --share | --shar \ 698 | --sha | --sh) 699 ac_prev=sharedstatedir ;; 700 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 701 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 702 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 703 | --sha=* | --sh=*) 704 sharedstatedir=$ac_optarg ;; 705 706 -site | --site | --sit) 707 ac_prev=site ;; 708 -site=* | --site=* | --sit=*) 709 site=$ac_optarg ;; 710 711 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 712 ac_prev=srcdir ;; 713 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 714 srcdir=$ac_optarg ;; 715 716 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 717 | --syscon | --sysco | --sysc | --sys | --sy) 718 ac_prev=sysconfdir ;; 719 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 720 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 721 sysconfdir=$ac_optarg ;; 722 723 -target | --target | --targe | --targ | --tar | --ta | --t) 724 ac_prev=target_alias ;; 725 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 726 target_alias=$ac_optarg ;; 727 728 -v | -verbose | --verbose | --verbos | --verbo | --verb) 729 verbose=yes ;; 730 731 -version | --version | --versio | --versi | --vers | -V) 732 ac_init_version=: ;; 733 734 -with-* | --with-*) 735 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 736 # Reject names that are not valid shell variable names. 737 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 738 { echo "$as_me: error: invalid package name: $ac_package" >&2 739 { (exit 1); exit 1; }; } 740 ac_package=`echo $ac_package| sed 's/-/_/g'` 741 case $ac_option in 742 *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; 743 *) ac_optarg=yes ;; 744 esac 745 eval "with_$ac_package='$ac_optarg'" ;; 746 747 -without-* | --without-*) 748 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` 749 # Reject names that are not valid shell variable names. 750 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && 751 { echo "$as_me: error: invalid package name: $ac_package" >&2 752 { (exit 1); exit 1; }; } 753 ac_package=`echo $ac_package | sed 's/-/_/g'` 754 eval "with_$ac_package=no" ;; 755 756 --x) 757 # Obsolete; use --with-x. 758 with_x=yes ;; 759 760 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 761 | --x-incl | --x-inc | --x-in | --x-i) 762 ac_prev=x_includes ;; 763 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 764 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 765 x_includes=$ac_optarg ;; 766 767 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 768 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 769 ac_prev=x_libraries ;; 770 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 771 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 772 x_libraries=$ac_optarg ;; 773 774 -*) { echo "$as_me: error: unrecognized option: $ac_option 775Try \`$0 --help' for more information." >&2 776 { (exit 1); exit 1; }; } 777 ;; 778 779 *=*) 780 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 781 # Reject names that are not valid shell variable names. 782 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && 783 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 784 { (exit 1); exit 1; }; } 785 ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` 786 eval "$ac_envvar='$ac_optarg'" 787 export $ac_envvar ;; 788 789 *) 790 # FIXME: should be removed in autoconf 3.0. 791 echo "$as_me: WARNING: you should use --build, --host, --target" >&2 792 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 793 echo "$as_me: WARNING: invalid host type: $ac_option" >&2 794 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 795 ;; 796 797 esac 798done 799 800if test -n "$ac_prev"; then 801 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 802 { echo "$as_me: error: missing argument to $ac_option" >&2 803 { (exit 1); exit 1; }; } 804fi 805 806# Be sure to have absolute paths. 807for ac_var in exec_prefix prefix 808do 809 eval ac_val=$`echo $ac_var` 810 case $ac_val in 811 [\\/$]* | ?:[\\/]* | NONE | '' ) ;; 812 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 813 { (exit 1); exit 1; }; };; 814 esac 815done 816 817# Be sure to have absolute paths. 818for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ 819 localstatedir libdir includedir oldincludedir infodir mandir 820do 821 eval ac_val=$`echo $ac_var` 822 case $ac_val in 823 [\\/$]* | ?:[\\/]* ) ;; 824 *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 825 { (exit 1); exit 1; }; };; 826 esac 827done 828 829# There might be people who depend on the old broken behavior: `$host' 830# used to hold the argument of --host etc. 831# FIXME: To remove some day. 832build=$build_alias 833host=$host_alias 834target=$target_alias 835 836# FIXME: To remove some day. 837if test "x$host_alias" != x; then 838 if test "x$build_alias" = x; then 839 cross_compiling=maybe 840 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 841 If a cross compiler is detected then cross compile mode will be used." >&2 842 elif test "x$build_alias" != "x$host_alias"; then 843 cross_compiling=yes 844 fi 845fi 846 847ac_tool_prefix= 848test -n "$host_alias" && ac_tool_prefix=$host_alias- 849 850test "$silent" = yes && exec 6>/dev/null 851 852 853# Find the source files, if location was not specified. 854if test -z "$srcdir"; then 855 ac_srcdir_defaulted=yes 856 # Try the directory containing this script, then its parent. 857 ac_confdir=`(dirname "$0") 2>/dev/null || 858$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 859 X"$0" : 'X\(//\)[^/]' \| \ 860 X"$0" : 'X\(//\)$' \| \ 861 X"$0" : 'X\(/\)' \| \ 862 . : '\(.\)' 2>/dev/null || 863echo X"$0" | 864 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 865 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 866 /^X\(\/\/\)$/{ s//\1/; q; } 867 /^X\(\/\).*/{ s//\1/; q; } 868 s/.*/./; q'` 869 srcdir=$ac_confdir 870 if test ! -r $srcdir/$ac_unique_file; then 871 srcdir=.. 872 fi 873else 874 ac_srcdir_defaulted=no 875fi 876if test ! -r $srcdir/$ac_unique_file; then 877 if test "$ac_srcdir_defaulted" = yes; then 878 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 879 { (exit 1); exit 1; }; } 880 else 881 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 882 { (exit 1); exit 1; }; } 883 fi 884fi 885(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || 886 { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 887 { (exit 1); exit 1; }; } 888srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` 889ac_env_build_alias_set=${build_alias+set} 890ac_env_build_alias_value=$build_alias 891ac_cv_env_build_alias_set=${build_alias+set} 892ac_cv_env_build_alias_value=$build_alias 893ac_env_host_alias_set=${host_alias+set} 894ac_env_host_alias_value=$host_alias 895ac_cv_env_host_alias_set=${host_alias+set} 896ac_cv_env_host_alias_value=$host_alias 897ac_env_target_alias_set=${target_alias+set} 898ac_env_target_alias_value=$target_alias 899ac_cv_env_target_alias_set=${target_alias+set} 900ac_cv_env_target_alias_value=$target_alias 901ac_env_CPP_set=${CPP+set} 902ac_env_CPP_value=$CPP 903ac_cv_env_CPP_set=${CPP+set} 904ac_cv_env_CPP_value=$CPP 905ac_env_CPPFLAGS_set=${CPPFLAGS+set} 906ac_env_CPPFLAGS_value=$CPPFLAGS 907ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} 908ac_cv_env_CPPFLAGS_value=$CPPFLAGS 909ac_env_FC_set=${FC+set} 910ac_env_FC_value=$FC 911ac_cv_env_FC_set=${FC+set} 912ac_cv_env_FC_value=$FC 913ac_env_FCFLAGS_set=${FCFLAGS+set} 914ac_env_FCFLAGS_value=$FCFLAGS 915ac_cv_env_FCFLAGS_set=${FCFLAGS+set} 916ac_cv_env_FCFLAGS_value=$FCFLAGS 917ac_env_LDFLAGS_set=${LDFLAGS+set} 918ac_env_LDFLAGS_value=$LDFLAGS 919ac_cv_env_LDFLAGS_set=${LDFLAGS+set} 920ac_cv_env_LDFLAGS_value=$LDFLAGS 921 922# 923# Report the --help message. 924# 925if test "$ac_init_help" = "long"; then 926 # Omit some internal or obsolete options to make the list less imposing. 927 # This message is too long to be a string in the A/UX 3.1 sh. 928 cat <<_ACEOF 929\`configure' configures GNU OpenMP Runtime Library 1.0 to adapt to many kinds of systems. 930 931Usage: $0 [OPTION]... [VAR=VALUE]... 932 933To assign environment variables (e.g., CC, CFLAGS...), specify them as 934VAR=VALUE. See below for descriptions of some of the useful variables. 935 936Defaults for the options are specified in brackets. 937 938Configuration: 939 -h, --help display this help and exit 940 --help=short display options specific to this package 941 --help=recursive display the short help of all the included packages 942 -V, --version display version information and exit 943 -q, --quiet, --silent do not print \`checking...' messages 944 --cache-file=FILE cache test results in FILE [disabled] 945 -C, --config-cache alias for \`--cache-file=config.cache' 946 -n, --no-create do not create output files 947 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 948 949_ACEOF 950 951 cat <<_ACEOF 952Installation directories: 953 --prefix=PREFIX install architecture-independent files in PREFIX 954 [$ac_default_prefix] 955 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 956 [PREFIX] 957 958By default, \`make install' will install all the files in 959\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 960an installation prefix other than \`$ac_default_prefix' using \`--prefix', 961for instance \`--prefix=\$HOME'. 962 963For better control, use the options below. 964 965Fine tuning of the installation directories: 966 --bindir=DIR user executables [EPREFIX/bin] 967 --sbindir=DIR system admin executables [EPREFIX/sbin] 968 --libexecdir=DIR program executables [EPREFIX/libexec] 969 --datadir=DIR read-only architecture-independent data [PREFIX/share] 970 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 971 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 972 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 973 --libdir=DIR object code libraries [EPREFIX/lib] 974 --includedir=DIR C header files [PREFIX/include] 975 --oldincludedir=DIR C header files for non-gcc [/usr/include] 976 --infodir=DIR info documentation [PREFIX/info] 977 --mandir=DIR man documentation [PREFIX/man] 978_ACEOF 979 980 cat <<\_ACEOF 981 982Program names: 983 --program-prefix=PREFIX prepend PREFIX to installed program names 984 --program-suffix=SUFFIX append SUFFIX to installed program names 985 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 986 987System types: 988 --build=BUILD configure for building on BUILD [guessed] 989 --host=HOST cross-compile to build programs to run on HOST [BUILD] 990 --target=TARGET configure for building compilers for TARGET [HOST] 991_ACEOF 992fi 993 994if test -n "$ac_init_help"; then 995 case $ac_init_help in 996 short | recursive ) echo "Configuration of GNU OpenMP Runtime Library 1.0:";; 997 esac 998 cat <<\_ACEOF 999 1000Optional Features: 1001 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1002 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1003 --enable-version-specific-runtime-libs 1004 Specify that runtime libraries should be installed 1005 in a compiler-specific directory [default=no] 1006 --enable-generated-files-in-srcdir 1007 put copies of generated files in source dir intended 1008 for creating source tarballs for users without 1009 texinfo bison or flex. [default=no] 1010 --enable-multilib build many library versions (default) 1011 --disable-dependency-tracking speeds up one-time build 1012 --enable-dependency-tracking do not reject slow dependency extractors 1013 --enable-shared[=PKGS] 1014 build shared libraries [default=yes] 1015 --enable-static[=PKGS] 1016 build static libraries [default=yes] 1017 --enable-fast-install[=PKGS] 1018 optimize for fast installation [default=yes] 1019 --disable-libtool-lock avoid locking (might break parallel builds) 1020 --enable-maintainer-mode enable make rules and dependencies not useful 1021 (and sometimes confusing) to the casual installer 1022 --enable-linux-futex use the Linux futex system call 1023 [default=default] 1024 --enable-tls Use thread-local storage [default=yes] 1025 --enable-symvers=STYLE enables symbol versioning of the shared library 1026 [default=yes] 1027 1028Optional Packages: 1029 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1030 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1031 --with-pic try to use only PIC/non-PIC objects [default=use 1032 both] 1033 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1034 1035Some influential environment variables: 1036 CC C compiler command 1037 CFLAGS C compiler flags 1038 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1039 nonstandard directory <lib dir> 1040 CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have 1041 headers in a nonstandard directory <include dir> 1042 CPP C preprocessor 1043 FC Fortran compiler command 1044 FCFLAGS Fortran compiler flags 1045 1046Use these variables to override the choices made by `configure' or to help 1047it to find libraries and programs with nonstandard names/locations. 1048 1049_ACEOF 1050fi 1051 1052if test "$ac_init_help" = "recursive"; then 1053 # If there are subdirs, report their specific --help. 1054 ac_popdir=`pwd` 1055 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1056 test -d $ac_dir || continue 1057 ac_builddir=. 1058 1059if test "$ac_dir" != .; then 1060 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 1061 # A "../" for each directory in $ac_dir_suffix. 1062 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 1063else 1064 ac_dir_suffix= ac_top_builddir= 1065fi 1066 1067case $srcdir in 1068 .) # No --srcdir option. We are building in place. 1069 ac_srcdir=. 1070 if test -z "$ac_top_builddir"; then 1071 ac_top_srcdir=. 1072 else 1073 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 1074 fi ;; 1075 [\\/]* | ?:[\\/]* ) # Absolute path. 1076 ac_srcdir=$srcdir$ac_dir_suffix; 1077 ac_top_srcdir=$srcdir ;; 1078 *) # Relative path. 1079 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 1080 ac_top_srcdir=$ac_top_builddir$srcdir ;; 1081esac 1082 1083# Do not use `cd foo && pwd` to compute absolute paths, because 1084# the directories may not exist. 1085case `pwd` in 1086.) ac_abs_builddir="$ac_dir";; 1087*) 1088 case "$ac_dir" in 1089 .) ac_abs_builddir=`pwd`;; 1090 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 1091 *) ac_abs_builddir=`pwd`/"$ac_dir";; 1092 esac;; 1093esac 1094case $ac_abs_builddir in 1095.) ac_abs_top_builddir=${ac_top_builddir}.;; 1096*) 1097 case ${ac_top_builddir}. in 1098 .) ac_abs_top_builddir=$ac_abs_builddir;; 1099 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 1100 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 1101 esac;; 1102esac 1103case $ac_abs_builddir in 1104.) ac_abs_srcdir=$ac_srcdir;; 1105*) 1106 case $ac_srcdir in 1107 .) ac_abs_srcdir=$ac_abs_builddir;; 1108 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 1109 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 1110 esac;; 1111esac 1112case $ac_abs_builddir in 1113.) ac_abs_top_srcdir=$ac_top_srcdir;; 1114*) 1115 case $ac_top_srcdir in 1116 .) ac_abs_top_srcdir=$ac_abs_builddir;; 1117 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 1118 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 1119 esac;; 1120esac 1121 1122 cd $ac_dir 1123 # Check for guested configure; otherwise get Cygnus style configure. 1124 if test -f $ac_srcdir/configure.gnu; then 1125 echo 1126 $SHELL $ac_srcdir/configure.gnu --help=recursive 1127 elif test -f $ac_srcdir/configure; then 1128 echo 1129 $SHELL $ac_srcdir/configure --help=recursive 1130 elif test -f $ac_srcdir/configure.ac || 1131 test -f $ac_srcdir/configure.in; then 1132 echo 1133 $ac_configure --help 1134 else 1135 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1136 fi 1137 cd $ac_popdir 1138 done 1139fi 1140 1141test -n "$ac_init_help" && exit 0 1142if $ac_init_version; then 1143 cat <<\_ACEOF 1144GNU OpenMP Runtime Library configure 1.0 1145generated by GNU Autoconf 2.59 1146 1147Copyright (C) 2003 Free Software Foundation, Inc. 1148This configure script is free software; the Free Software Foundation 1149gives unlimited permission to copy, distribute and modify it. 1150_ACEOF 1151 exit 0 1152fi 1153exec 5>config.log 1154cat >&5 <<_ACEOF 1155This file contains any messages produced by compilers while 1156running configure, to aid debugging if configure makes a mistake. 1157 1158It was created by GNU OpenMP Runtime Library $as_me 1.0, which was 1159generated by GNU Autoconf 2.59. Invocation command line was 1160 1161 $ $0 $@ 1162 1163_ACEOF 1164{ 1165cat <<_ASUNAME 1166## --------- ## 1167## Platform. ## 1168## --------- ## 1169 1170hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1171uname -m = `(uname -m) 2>/dev/null || echo unknown` 1172uname -r = `(uname -r) 2>/dev/null || echo unknown` 1173uname -s = `(uname -s) 2>/dev/null || echo unknown` 1174uname -v = `(uname -v) 2>/dev/null || echo unknown` 1175 1176/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1177/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1178 1179/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1180/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1181/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1182hostinfo = `(hostinfo) 2>/dev/null || echo unknown` 1183/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1184/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1185/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1186 1187_ASUNAME 1188 1189as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1190for as_dir in $PATH 1191do 1192 IFS=$as_save_IFS 1193 test -z "$as_dir" && as_dir=. 1194 echo "PATH: $as_dir" 1195done 1196 1197} >&5 1198 1199cat >&5 <<_ACEOF 1200 1201 1202## ----------- ## 1203## Core tests. ## 1204## ----------- ## 1205 1206_ACEOF 1207 1208 1209# Keep a trace of the command line. 1210# Strip out --no-create and --no-recursion so they do not pile up. 1211# Strip out --silent because we don't want to record it for future runs. 1212# Also quote any args containing shell meta-characters. 1213# Make two passes to allow for proper duplicate-argument suppression. 1214ac_configure_args= 1215ac_configure_args0= 1216ac_configure_args1= 1217ac_sep= 1218ac_must_keep_next=false 1219for ac_pass in 1 2 1220do 1221 for ac_arg 1222 do 1223 case $ac_arg in 1224 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1225 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1226 | -silent | --silent | --silen | --sile | --sil) 1227 continue ;; 1228 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1229 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1230 esac 1231 case $ac_pass in 1232 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; 1233 2) 1234 ac_configure_args1="$ac_configure_args1 '$ac_arg'" 1235 if test $ac_must_keep_next = true; then 1236 ac_must_keep_next=false # Got value, back to normal. 1237 else 1238 case $ac_arg in 1239 *=* | --config-cache | -C | -disable-* | --disable-* \ 1240 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1241 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1242 | -with-* | --with-* | -without-* | --without-* | --x) 1243 case "$ac_configure_args0 " in 1244 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1245 esac 1246 ;; 1247 -* ) ac_must_keep_next=true ;; 1248 esac 1249 fi 1250 ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" 1251 # Get rid of the leading space. 1252 ac_sep=" " 1253 ;; 1254 esac 1255 done 1256done 1257$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } 1258$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } 1259 1260# When interrupted or exit'd, cleanup temporary files, and complete 1261# config.log. We remove comments because anyway the quotes in there 1262# would cause problems or look ugly. 1263# WARNING: Be sure not to use single quotes in there, as some shells, 1264# such as our DU 5.0 friend, will then `close' the trap. 1265trap 'exit_status=$? 1266 # Save into config.log some information that might help in debugging. 1267 { 1268 echo 1269 1270 cat <<\_ASBOX 1271## ---------------- ## 1272## Cache variables. ## 1273## ---------------- ## 1274_ASBOX 1275 echo 1276 # The following way of writing the cache mishandles newlines in values, 1277{ 1278 (set) 2>&1 | 1279 case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in 1280 *ac_space=\ *) 1281 sed -n \ 1282 "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; 1283 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" 1284 ;; 1285 *) 1286 sed -n \ 1287 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 1288 ;; 1289 esac; 1290} 1291 echo 1292 1293 cat <<\_ASBOX 1294## ----------------- ## 1295## Output variables. ## 1296## ----------------- ## 1297_ASBOX 1298 echo 1299 for ac_var in $ac_subst_vars 1300 do 1301 eval ac_val=$`echo $ac_var` 1302 echo "$ac_var='"'"'$ac_val'"'"'" 1303 done | sort 1304 echo 1305 1306 if test -n "$ac_subst_files"; then 1307 cat <<\_ASBOX 1308## ------------- ## 1309## Output files. ## 1310## ------------- ## 1311_ASBOX 1312 echo 1313 for ac_var in $ac_subst_files 1314 do 1315 eval ac_val=$`echo $ac_var` 1316 echo "$ac_var='"'"'$ac_val'"'"'" 1317 done | sort 1318 echo 1319 fi 1320 1321 if test -s confdefs.h; then 1322 cat <<\_ASBOX 1323## ----------- ## 1324## confdefs.h. ## 1325## ----------- ## 1326_ASBOX 1327 echo 1328 sed "/^$/d" confdefs.h | sort 1329 echo 1330 fi 1331 test "$ac_signal" != 0 && 1332 echo "$as_me: caught signal $ac_signal" 1333 echo "$as_me: exit $exit_status" 1334 } >&5 1335 rm -f core *.core && 1336 rm -rf conftest* confdefs* conf$$* $ac_clean_files && 1337 exit $exit_status 1338 ' 0 1339for ac_signal in 1 2 13 15; do 1340 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal 1341done 1342ac_signal=0 1343 1344# confdefs.h avoids OS command line length limits that DEFS can exceed. 1345rm -rf conftest* confdefs.h 1346# AIX cpp loses on an empty file, so make sure it contains at least a newline. 1347echo >confdefs.h 1348 1349# Predefined preprocessor variables. 1350 1351cat >>confdefs.h <<_ACEOF 1352#define PACKAGE_NAME "$PACKAGE_NAME" 1353_ACEOF 1354 1355 1356cat >>confdefs.h <<_ACEOF 1357#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 1358_ACEOF 1359 1360 1361cat >>confdefs.h <<_ACEOF 1362#define PACKAGE_VERSION "$PACKAGE_VERSION" 1363_ACEOF 1364 1365 1366cat >>confdefs.h <<_ACEOF 1367#define PACKAGE_STRING "$PACKAGE_STRING" 1368_ACEOF 1369 1370 1371cat >>confdefs.h <<_ACEOF 1372#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 1373_ACEOF 1374 1375 1376# Let the site file select an alternate cache file if it wants to. 1377# Prefer explicitly selected file to automatically selected ones. 1378if test -z "$CONFIG_SITE"; then 1379 if test "x$prefix" != xNONE; then 1380 CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" 1381 else 1382 CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" 1383 fi 1384fi 1385for ac_site_file in $CONFIG_SITE; do 1386 if test -r "$ac_site_file"; then 1387 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 1388echo "$as_me: loading site script $ac_site_file" >&6;} 1389 sed 's/^/| /' "$ac_site_file" >&5 1390 . "$ac_site_file" 1391 fi 1392done 1393 1394if test -r "$cache_file"; then 1395 # Some versions of bash will fail to source /dev/null (special 1396 # files actually), so we avoid doing that. 1397 if test -f "$cache_file"; then 1398 { echo "$as_me:$LINENO: loading cache $cache_file" >&5 1399echo "$as_me: loading cache $cache_file" >&6;} 1400 case $cache_file in 1401 [\\/]* | ?:[\\/]* ) . $cache_file;; 1402 *) . ./$cache_file;; 1403 esac 1404 fi 1405else 1406 { echo "$as_me:$LINENO: creating cache $cache_file" >&5 1407echo "$as_me: creating cache $cache_file" >&6;} 1408 >$cache_file 1409fi 1410 1411# Check that the precious variables saved in the cache have kept the same 1412# value. 1413ac_cache_corrupted=false 1414for ac_var in `(set) 2>&1 | 1415 sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do 1416 eval ac_old_set=\$ac_cv_env_${ac_var}_set 1417 eval ac_new_set=\$ac_env_${ac_var}_set 1418 eval ac_old_val="\$ac_cv_env_${ac_var}_value" 1419 eval ac_new_val="\$ac_env_${ac_var}_value" 1420 case $ac_old_set,$ac_new_set in 1421 set,) 1422 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 1423echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 1424 ac_cache_corrupted=: ;; 1425 ,set) 1426 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 1427echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 1428 ac_cache_corrupted=: ;; 1429 ,);; 1430 *) 1431 if test "x$ac_old_val" != "x$ac_new_val"; then 1432 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 1433echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 1434 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 1435echo "$as_me: former value: $ac_old_val" >&2;} 1436 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 1437echo "$as_me: current value: $ac_new_val" >&2;} 1438 ac_cache_corrupted=: 1439 fi;; 1440 esac 1441 # Pass precious variables to config.status. 1442 if test "$ac_new_set" = set; then 1443 case $ac_new_val in 1444 *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) 1445 ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 1446 *) ac_arg=$ac_var=$ac_new_val ;; 1447 esac 1448 case " $ac_configure_args " in 1449 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 1450 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; 1451 esac 1452 fi 1453done 1454if $ac_cache_corrupted; then 1455 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 1456echo "$as_me: error: changes in the environment can compromise the build" >&2;} 1457 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 1458echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} 1459 { (exit 1); exit 1; }; } 1460fi 1461 1462ac_ext=c 1463ac_cpp='$CPP $CPPFLAGS' 1464ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 1465ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 1466ac_compiler_gnu=$ac_cv_c_compiler_gnu 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 ac_config_headers="$ac_config_headers config.h" 1495 1496 1497# ------- 1498# Options 1499# ------- 1500 1501echo "$as_me:$LINENO: checking for --enable-version-specific-runtime-libs" >&5 1502echo $ECHO_N "checking for --enable-version-specific-runtime-libs... $ECHO_C" >&6 1503 # Check whether --enable-version-specific-runtime-libs or --disable-version-specific-runtime-libs was given. 1504if test "${enable_version_specific_runtime_libs+set}" = set; then 1505 enableval="$enable_version_specific_runtime_libs" 1506 1507 case "$enableval" in 1508 yes|no) ;; 1509 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable version-specific-runtime-libs" >&5 1510echo "$as_me: error: Unknown argument to enable/disable version-specific-runtime-libs" >&2;} 1511 { (exit 1); exit 1; }; } ;; 1512 esac 1513 1514else 1515 enable_version_specific_runtime_libs=no 1516fi; 1517 1518echo "$as_me:$LINENO: result: $enable_version_specific_runtime_libs" >&5 1519echo "${ECHO_T}$enable_version_specific_runtime_libs" >&6 1520 1521# We would like our source tree to be readonly. However when releases or 1522# pre-releases are generated, the flex/bison generated files as well as the 1523# various formats of manuals need to be included along with the rest of the 1524# sources. Therefore we have --enable-generated-files-in-srcdir to do 1525# just that. 1526echo "$as_me:$LINENO: checking for --enable-generated-files-in-srcdir" >&5 1527echo $ECHO_N "checking for --enable-generated-files-in-srcdir... $ECHO_C" >&6 1528 # Check whether --enable-generated-files-in-srcdir or --disable-generated-files-in-srcdir was given. 1529if test "${enable_generated_files_in_srcdir+set}" = set; then 1530 enableval="$enable_generated_files_in_srcdir" 1531 1532 case "$enableval" in 1533 yes|no) ;; 1534 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable generated-files-in-srcdir" >&5 1535echo "$as_me: error: Unknown argument to enable/disable generated-files-in-srcdir" >&2;} 1536 { (exit 1); exit 1; }; } ;; 1537 esac 1538 1539else 1540 enable_generated_files_in_srcdir=no 1541fi; 1542 1543echo "$as_me:$LINENO: result: $enable_generated_files_in_srcdir" >&5 1544echo "${ECHO_T}$enable_generated_files_in_srcdir" >&6 1545 1546 1547if test "$enable_generated_files_in_srcdir" = yes; then 1548 GENINSRC_TRUE= 1549 GENINSRC_FALSE='#' 1550else 1551 GENINSRC_TRUE='#' 1552 GENINSRC_FALSE= 1553fi 1554 1555 1556 1557# ------- 1558# ------- 1559 1560# Gets build, host, target, *_vendor, *_cpu, *_os, etc. 1561# 1562# You will slowly go insane if you do not grok the following fact: when 1563# building this library, the top-level /target/ becomes the library's /host/. 1564# 1565# configure then causes --target to default to --host, exactly like any 1566# other package using autoconf. Therefore, 'target' and 'host' will 1567# always be the same. This makes sense both for native and cross compilers 1568# just think about it for a little while. :-) 1569# 1570# Also, if this library is being configured as part of a cross compiler, the 1571# top-level configure script will pass the "real" host as $with_cross_host. 1572# 1573# Do not delete or change the following two lines. For why, see 1574# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 1575ac_aux_dir= 1576for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do 1577 if test -f $ac_dir/install-sh; then 1578 ac_aux_dir=$ac_dir 1579 ac_install_sh="$ac_aux_dir/install-sh -c" 1580 break 1581 elif test -f $ac_dir/install.sh; then 1582 ac_aux_dir=$ac_dir 1583 ac_install_sh="$ac_aux_dir/install.sh -c" 1584 break 1585 elif test -f $ac_dir/shtool; then 1586 ac_aux_dir=$ac_dir 1587 ac_install_sh="$ac_aux_dir/shtool install -c" 1588 break 1589 fi 1590done 1591if test -z "$ac_aux_dir"; then 1592 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 1593echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} 1594 { (exit 1); exit 1; }; } 1595fi 1596ac_config_guess="$SHELL $ac_aux_dir/config.guess" 1597ac_config_sub="$SHELL $ac_aux_dir/config.sub" 1598ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. 1599 1600# Make sure we can run config.sub. 1601$ac_config_sub sun4 >/dev/null 2>&1 || 1602 { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 1603echo "$as_me: error: cannot run $ac_config_sub" >&2;} 1604 { (exit 1); exit 1; }; } 1605 1606echo "$as_me:$LINENO: checking build system type" >&5 1607echo $ECHO_N "checking build system type... $ECHO_C" >&6 1608if test "${ac_cv_build+set}" = set; then 1609 echo $ECHO_N "(cached) $ECHO_C" >&6 1610else 1611 ac_cv_build_alias=$build_alias 1612test -z "$ac_cv_build_alias" && 1613 ac_cv_build_alias=`$ac_config_guess` 1614test -z "$ac_cv_build_alias" && 1615 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 1616echo "$as_me: error: cannot guess build type; you must specify one" >&2;} 1617 { (exit 1); exit 1; }; } 1618ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || 1619 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 1620echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} 1621 { (exit 1); exit 1; }; } 1622 1623fi 1624echo "$as_me:$LINENO: result: $ac_cv_build" >&5 1625echo "${ECHO_T}$ac_cv_build" >&6 1626build=$ac_cv_build 1627build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1628build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1629build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1630 1631 1632echo "$as_me:$LINENO: checking host system type" >&5 1633echo $ECHO_N "checking host system type... $ECHO_C" >&6 1634if test "${ac_cv_host+set}" = set; then 1635 echo $ECHO_N "(cached) $ECHO_C" >&6 1636else 1637 ac_cv_host_alias=$host_alias 1638test -z "$ac_cv_host_alias" && 1639 ac_cv_host_alias=$ac_cv_build_alias 1640ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || 1641 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 1642echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} 1643 { (exit 1); exit 1; }; } 1644 1645fi 1646echo "$as_me:$LINENO: result: $ac_cv_host" >&5 1647echo "${ECHO_T}$ac_cv_host" >&6 1648host=$ac_cv_host 1649host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1650host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1651host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1652 1653 1654echo "$as_me:$LINENO: checking target system type" >&5 1655echo $ECHO_N "checking target system type... $ECHO_C" >&6 1656if test "${ac_cv_target+set}" = set; then 1657 echo $ECHO_N "(cached) $ECHO_C" >&6 1658else 1659 ac_cv_target_alias=$target_alias 1660test "x$ac_cv_target_alias" = "x" && 1661 ac_cv_target_alias=$ac_cv_host_alias 1662ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || 1663 { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 1664echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} 1665 { (exit 1); exit 1; }; } 1666 1667fi 1668echo "$as_me:$LINENO: result: $ac_cv_target" >&5 1669echo "${ECHO_T}$ac_cv_target" >&6 1670target=$ac_cv_target 1671target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` 1672target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` 1673target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` 1674 1675 1676# The aliases save the names the user supplied, while $host etc. 1677# will get canonicalized. 1678test -n "$target_alias" && 1679 test "$program_prefix$program_suffix$program_transform_name" = \ 1680 NONENONEs,x,x, && 1681 program_prefix=${target_alias}- 1682target_alias=${target_alias-$host_alias} 1683 1684# Sets up automake. Must come after AC_CANONICAL_SYSTEM. Each of the 1685# following is magically included in AUTOMAKE_OPTIONS in each Makefile.am. 1686# 1.9.0: minimum required version 1687# no-define: PACKAGE and VERSION will not be #define'd in config.h (a bunch 1688# of other PACKAGE_* variables will, however, and there's nothing 1689# we can do about that; they come from AC_INIT). 1690# foreign: we don't follow the normal rules for GNU packages (no COPYING 1691# file in the top srcdir, etc, etc), so stop complaining. 1692# no-dist: we don't want 'dist' and related rules. 1693# -Wall: turns on all automake warnings... 1694# -Wno-portability: ...except this one, since GNU make is required. 1695# -Wno-override: ... and this one, since we do want this in testsuite. 1696am__api_version="1.9" 1697# Find a good install program. We prefer a C program (faster), 1698# so one script is as good as another. But avoid the broken or 1699# incompatible versions: 1700# SysV /etc/install, /usr/sbin/install 1701# SunOS /usr/etc/install 1702# IRIX /sbin/install 1703# AIX /bin/install 1704# AmigaOS /C/install, which installs bootblocks on floppy discs 1705# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 1706# AFS /usr/afsws/bin/install, which mishandles nonexistent args 1707# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 1708# OS/2's system install, which has a completely different semantic 1709# ./install, which can be erroneously created by make from ./install.sh. 1710echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 1711echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 1712if test -z "$INSTALL"; then 1713if test "${ac_cv_path_install+set}" = set; then 1714 echo $ECHO_N "(cached) $ECHO_C" >&6 1715else 1716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1717for as_dir in $PATH 1718do 1719 IFS=$as_save_IFS 1720 test -z "$as_dir" && as_dir=. 1721 # Account for people who put trailing slashes in PATH elements. 1722case $as_dir/ in 1723 ./ | .// | /cC/* | \ 1724 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 1725 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 1726 /usr/ucb/* ) ;; 1727 *) 1728 # OSF1 and SCO ODT 3.0 have their own names for install. 1729 # Don't use installbsd from OSF since it installs stuff as root 1730 # by default. 1731 for ac_prog in ginstall scoinst install; do 1732 for ac_exec_ext in '' $ac_executable_extensions; do 1733 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 1734 if test $ac_prog = install && 1735 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1736 # AIX install. It has an incompatible calling convention. 1737 : 1738 elif test $ac_prog = install && 1739 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 1740 # program-specific install script used by HP pwplus--don't use. 1741 : 1742 else 1743 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 1744 break 3 1745 fi 1746 fi 1747 done 1748 done 1749 ;; 1750esac 1751done 1752 1753 1754fi 1755 if test "${ac_cv_path_install+set}" = set; then 1756 INSTALL=$ac_cv_path_install 1757 else 1758 # As a last resort, use the slow shell script. We don't cache a 1759 # path for INSTALL within a source directory, because that will 1760 # break other packages using the cache if that directory is 1761 # removed, or if the path is relative. 1762 INSTALL=$ac_install_sh 1763 fi 1764fi 1765echo "$as_me:$LINENO: result: $INSTALL" >&5 1766echo "${ECHO_T}$INSTALL" >&6 1767 1768# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 1769# It thinks the first close brace ends the variable substitution. 1770test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 1771 1772test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 1773 1774test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 1775 1776echo "$as_me:$LINENO: checking whether build environment is sane" >&5 1777echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 1778# Just in case 1779sleep 1 1780echo timestamp > conftest.file 1781# Do `set' in a subshell so we don't clobber the current shell's 1782# arguments. Must try -L first in case configure is actually a 1783# symlink; some systems play weird games with the mod time of symlinks 1784# (eg FreeBSD returns the mod time of the symlink's containing 1785# directory). 1786if ( 1787 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` 1788 if test "$*" = "X"; then 1789 # -L didn't work. 1790 set X `ls -t $srcdir/configure conftest.file` 1791 fi 1792 rm -f conftest.file 1793 if test "$*" != "X $srcdir/configure conftest.file" \ 1794 && test "$*" != "X conftest.file $srcdir/configure"; then 1795 1796 # If neither matched, then we have a broken ls. This can happen 1797 # if, for instance, CONFIG_SHELL is bash and it inherits a 1798 # broken ls alias from the environment. This has actually 1799 # happened. Such a system could not be considered "sane". 1800 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken 1801alias in your environment" >&5 1802echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken 1803alias in your environment" >&2;} 1804 { (exit 1); exit 1; }; } 1805 fi 1806 1807 test "$2" = conftest.file 1808 ) 1809then 1810 # Ok. 1811 : 1812else 1813 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! 1814Check your system clock" >&5 1815echo "$as_me: error: newly created file is older than distributed files! 1816Check your system clock" >&2;} 1817 { (exit 1); exit 1; }; } 1818fi 1819echo "$as_me:$LINENO: result: yes" >&5 1820echo "${ECHO_T}yes" >&6 1821test "$program_prefix" != NONE && 1822 program_transform_name="s,^,$program_prefix,;$program_transform_name" 1823# Use a double $ so make ignores it. 1824test "$program_suffix" != NONE && 1825 program_transform_name="s,\$,$program_suffix,;$program_transform_name" 1826# Double any \ or $. echo might interpret backslashes. 1827# By default was `s,x,x', remove it if useless. 1828cat <<\_ACEOF >conftest.sed 1829s/[\\$]/&&/g;s/;s,x,x,$// 1830_ACEOF 1831program_transform_name=`echo $program_transform_name | sed -f conftest.sed` 1832rm conftest.sed 1833 1834# expand $ac_aux_dir to an absolute path 1835am_aux_dir=`cd $ac_aux_dir && pwd` 1836 1837test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" 1838# Use eval to expand $SHELL 1839if eval "$MISSING --run true"; then 1840 am_missing_run="$MISSING --run " 1841else 1842 am_missing_run= 1843 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 1844echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 1845fi 1846 1847if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then 1848 # We used to keeping the `.' as first argument, in order to 1849 # allow $(mkdir_p) to be used without argument. As in 1850 # $(mkdir_p) $(somedir) 1851 # where $(somedir) is conditionally defined. However this is wrong 1852 # for two reasons: 1853 # 1. if the package is installed by a user who cannot write `.' 1854 # make install will fail, 1855 # 2. the above comment should most certainly read 1856 # $(mkdir_p) $(DESTDIR)$(somedir) 1857 # so it does not work when $(somedir) is undefined and 1858 # $(DESTDIR) is not. 1859 # To support the latter case, we have to write 1860 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), 1861 # so the `.' trick is pointless. 1862 mkdir_p='mkdir -p --' 1863else 1864 # On NextStep and OpenStep, the `mkdir' command does not 1865 # recognize any option. It will interpret all options as 1866 # directories to create, and then abort because `.' already 1867 # exists. 1868 for d in ./-p ./--version; 1869 do 1870 test -d $d && rmdir $d 1871 done 1872 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. 1873 if test -f "$ac_aux_dir/mkinstalldirs"; then 1874 mkdir_p='$(mkinstalldirs)' 1875 else 1876 mkdir_p='$(install_sh) -d' 1877 fi 1878fi 1879 1880for ac_prog in gawk mawk nawk awk 1881do 1882 # Extract the first word of "$ac_prog", so it can be a program name with args. 1883set dummy $ac_prog; ac_word=$2 1884echo "$as_me:$LINENO: checking for $ac_word" >&5 1885echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 1886if test "${ac_cv_prog_AWK+set}" = set; then 1887 echo $ECHO_N "(cached) $ECHO_C" >&6 1888else 1889 if test -n "$AWK"; then 1890 ac_cv_prog_AWK="$AWK" # Let the user override the test. 1891else 1892as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1893for as_dir in $PATH 1894do 1895 IFS=$as_save_IFS 1896 test -z "$as_dir" && as_dir=. 1897 for ac_exec_ext in '' $ac_executable_extensions; do 1898 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 1899 ac_cv_prog_AWK="$ac_prog" 1900 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 1901 break 2 1902 fi 1903done 1904done 1905 1906fi 1907fi 1908AWK=$ac_cv_prog_AWK 1909if test -n "$AWK"; then 1910 echo "$as_me:$LINENO: result: $AWK" >&5 1911echo "${ECHO_T}$AWK" >&6 1912else 1913 echo "$as_me:$LINENO: result: no" >&5 1914echo "${ECHO_T}no" >&6 1915fi 1916 1917 test -n "$AWK" && break 1918done 1919 1920echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 1921echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 1922set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 1923if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 1924 echo $ECHO_N "(cached) $ECHO_C" >&6 1925else 1926 cat >conftest.make <<\_ACEOF 1927all: 1928 @echo 'ac_maketemp="$(MAKE)"' 1929_ACEOF 1930# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 1931eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 1932if test -n "$ac_maketemp"; then 1933 eval ac_cv_prog_make_${ac_make}_set=yes 1934else 1935 eval ac_cv_prog_make_${ac_make}_set=no 1936fi 1937rm -f conftest.make 1938fi 1939if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 1940 echo "$as_me:$LINENO: result: yes" >&5 1941echo "${ECHO_T}yes" >&6 1942 SET_MAKE= 1943else 1944 echo "$as_me:$LINENO: result: no" >&5 1945echo "${ECHO_T}no" >&6 1946 SET_MAKE="MAKE=${MAKE-make}" 1947fi 1948 1949rm -rf .tst 2>/dev/null 1950mkdir .tst 2>/dev/null 1951if test -d .tst; then 1952 am__leading_dot=. 1953else 1954 am__leading_dot=_ 1955fi 1956rmdir .tst 2>/dev/null 1957 1958# test to see if srcdir already configured 1959if test "`cd $srcdir && pwd`" != "`pwd`" && 1960 test -f $srcdir/config.status; then 1961 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 1962echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} 1963 { (exit 1); exit 1; }; } 1964fi 1965 1966# test whether we have cygpath 1967if test -z "$CYGPATH_W"; then 1968 if (cygpath --version) >/dev/null 2>/dev/null; then 1969 CYGPATH_W='cygpath -w' 1970 else 1971 CYGPATH_W=echo 1972 fi 1973fi 1974 1975 1976# Define the identity of the package. 1977 PACKAGE='libgomp' 1978 VERSION='1.0' 1979 1980 1981cat >>confdefs.h <<_ACEOF 1982#define PACKAGE "$PACKAGE" 1983_ACEOF 1984 1985 1986cat >>confdefs.h <<_ACEOF 1987#define VERSION "$VERSION" 1988_ACEOF 1989 1990# Some tools Automake needs. 1991 1992ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 1993 1994 1995AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 1996 1997 1998AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 1999 2000 2001AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2002 2003 2004MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2005 2006install_sh=${install_sh-"$am_aux_dir/install-sh"} 2007 2008# Installed binaries are usually stripped using `strip' when the user 2009# run `make install-strip'. However `strip' might not be the right 2010# tool to use in cross-compilation environments, therefore Automake 2011# will honor the `STRIP' environment variable to overrule this program. 2012if test "$cross_compiling" != no; then 2013 if test -n "$ac_tool_prefix"; then 2014 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2015set dummy ${ac_tool_prefix}strip; ac_word=$2 2016echo "$as_me:$LINENO: checking for $ac_word" >&5 2017echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2018if test "${ac_cv_prog_STRIP+set}" = set; then 2019 echo $ECHO_N "(cached) $ECHO_C" >&6 2020else 2021 if test -n "$STRIP"; then 2022 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2023else 2024as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2025for as_dir in $PATH 2026do 2027 IFS=$as_save_IFS 2028 test -z "$as_dir" && as_dir=. 2029 for ac_exec_ext in '' $ac_executable_extensions; do 2030 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2031 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2032 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2033 break 2 2034 fi 2035done 2036done 2037 2038fi 2039fi 2040STRIP=$ac_cv_prog_STRIP 2041if test -n "$STRIP"; then 2042 echo "$as_me:$LINENO: result: $STRIP" >&5 2043echo "${ECHO_T}$STRIP" >&6 2044else 2045 echo "$as_me:$LINENO: result: no" >&5 2046echo "${ECHO_T}no" >&6 2047fi 2048 2049fi 2050if test -z "$ac_cv_prog_STRIP"; then 2051 ac_ct_STRIP=$STRIP 2052 # Extract the first word of "strip", so it can be a program name with args. 2053set dummy strip; ac_word=$2 2054echo "$as_me:$LINENO: checking for $ac_word" >&5 2055echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2056if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 2057 echo $ECHO_N "(cached) $ECHO_C" >&6 2058else 2059 if test -n "$ac_ct_STRIP"; then 2060 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2061else 2062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2063for as_dir in $PATH 2064do 2065 IFS=$as_save_IFS 2066 test -z "$as_dir" && as_dir=. 2067 for ac_exec_ext in '' $ac_executable_extensions; do 2068 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2069 ac_cv_prog_ac_ct_STRIP="strip" 2070 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2071 break 2 2072 fi 2073done 2074done 2075 2076 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 2077fi 2078fi 2079ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2080if test -n "$ac_ct_STRIP"; then 2081 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 2082echo "${ECHO_T}$ac_ct_STRIP" >&6 2083else 2084 echo "$as_me:$LINENO: result: no" >&5 2085echo "${ECHO_T}no" >&6 2086fi 2087 2088 STRIP=$ac_ct_STRIP 2089else 2090 STRIP="$ac_cv_prog_STRIP" 2091fi 2092 2093fi 2094INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" 2095 2096# We need awk for the "check" target. The system "awk" is bad on 2097# some platforms. 2098# Always define AMTAR for backward compatibility. 2099 2100AMTAR=${AMTAR-"${am_missing_run}tar"} 2101 2102am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2103 2104 2105 2106 2107 2108# Default to --enable-multilib 2109# Check whether --enable-multilib or --disable-multilib was given. 2110if test "${enable_multilib+set}" = set; then 2111 enableval="$enable_multilib" 2112 case "$enableval" in 2113 yes) multilib=yes ;; 2114 no) multilib=no ;; 2115 *) { { echo "$as_me:$LINENO: error: bad value $enableval for multilib option" >&5 2116echo "$as_me: error: bad value $enableval for multilib option" >&2;} 2117 { (exit 1); exit 1; }; } ;; 2118 esac 2119else 2120 multilib=yes 2121fi; 2122 2123# We may get other options which we leave undocumented: 2124# --with-target-subdir, --with-multisrctop, --with-multisubdir 2125# See config-ml.in if you want the gory details. 2126 2127if test "$srcdir" = "."; then 2128 if test "$with_target_subdir" != "."; then 2129 multi_basedir="$srcdir/$with_multisrctop../.." 2130 else 2131 multi_basedir="$srcdir/$with_multisrctop.." 2132 fi 2133else 2134 multi_basedir="$srcdir/.." 2135fi 2136 2137 2138# Even if the default multilib is not a cross compilation, 2139# it may be that some of the other multilibs are. 2140if test $cross_compiling = no && test $multilib = yes \ 2141 && test "x${with_multisubdir}" != x ; then 2142 cross_compiling=maybe 2143fi 2144 2145 ac_config_commands="$ac_config_commands default-1" 2146 2147 2148# Calculate toolexeclibdir 2149# Also toolexecdir, though it's only used in toolexeclibdir 2150case ${enable_version_specific_runtime_libs} in 2151 yes) 2152 # Need the gcc compiler version to know where to install libraries 2153 # and header files if --enable-version-specific-runtime-libs option 2154 # is selected. 2155 toolexecdir='$(libdir)/gcc/$(target_alias)' 2156 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 2157 ;; 2158 no) 2159 if test -n "$with_cross_host" && 2160 test x"$with_cross_host" != x"no"; then 2161 # Install a library built with a cross compiler in tooldir, not libdir. 2162 toolexecdir='$(exec_prefix)/$(target_alias)' 2163 toolexeclibdir='$(toolexecdir)/lib' 2164 else 2165 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 2166 toolexeclibdir='$(libdir)' 2167 fi 2168 multi_os_directory=`$CC -print-multi-os-directory` 2169 case $multi_os_directory in 2170 .) ;; # Avoid trailing /. 2171 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 2172 esac 2173 ;; 2174esac 2175 2176 2177 2178# Check the compiler. 2179# The same as in boehm-gc and libstdc++. Have to borrow it from there. 2180# We must force CC to /not/ be precious variables; otherwise 2181# the wrong, non-multilib-adjusted value will be used in multilibs. 2182# As a side effect, we have to subst CFLAGS ourselves. 2183 2184 2185 2186ac_ext=c 2187ac_cpp='$CPP $CPPFLAGS' 2188ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2189ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2190ac_compiler_gnu=$ac_cv_c_compiler_gnu 2191if test -n "$ac_tool_prefix"; then 2192 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2193set dummy ${ac_tool_prefix}gcc; ac_word=$2 2194echo "$as_me:$LINENO: checking for $ac_word" >&5 2195echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2196if test "${ac_cv_prog_CC+set}" = set; then 2197 echo $ECHO_N "(cached) $ECHO_C" >&6 2198else 2199 if test -n "$CC"; then 2200 ac_cv_prog_CC="$CC" # Let the user override the test. 2201else 2202as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2203for as_dir in $PATH 2204do 2205 IFS=$as_save_IFS 2206 test -z "$as_dir" && as_dir=. 2207 for ac_exec_ext in '' $ac_executable_extensions; do 2208 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2209 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2210 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2211 break 2 2212 fi 2213done 2214done 2215 2216fi 2217fi 2218CC=$ac_cv_prog_CC 2219if test -n "$CC"; then 2220 echo "$as_me:$LINENO: result: $CC" >&5 2221echo "${ECHO_T}$CC" >&6 2222else 2223 echo "$as_me:$LINENO: result: no" >&5 2224echo "${ECHO_T}no" >&6 2225fi 2226 2227fi 2228if test -z "$ac_cv_prog_CC"; then 2229 ac_ct_CC=$CC 2230 # Extract the first word of "gcc", so it can be a program name with args. 2231set dummy gcc; ac_word=$2 2232echo "$as_me:$LINENO: checking for $ac_word" >&5 2233echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2234if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2235 echo $ECHO_N "(cached) $ECHO_C" >&6 2236else 2237 if test -n "$ac_ct_CC"; then 2238 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2239else 2240as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2241for as_dir in $PATH 2242do 2243 IFS=$as_save_IFS 2244 test -z "$as_dir" && as_dir=. 2245 for ac_exec_ext in '' $ac_executable_extensions; do 2246 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2247 ac_cv_prog_ac_ct_CC="gcc" 2248 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2249 break 2 2250 fi 2251done 2252done 2253 2254fi 2255fi 2256ac_ct_CC=$ac_cv_prog_ac_ct_CC 2257if test -n "$ac_ct_CC"; then 2258 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2259echo "${ECHO_T}$ac_ct_CC" >&6 2260else 2261 echo "$as_me:$LINENO: result: no" >&5 2262echo "${ECHO_T}no" >&6 2263fi 2264 2265 CC=$ac_ct_CC 2266else 2267 CC="$ac_cv_prog_CC" 2268fi 2269 2270if test -z "$CC"; then 2271 if test -n "$ac_tool_prefix"; then 2272 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2273set dummy ${ac_tool_prefix}cc; ac_word=$2 2274echo "$as_me:$LINENO: checking for $ac_word" >&5 2275echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2276if test "${ac_cv_prog_CC+set}" = set; then 2277 echo $ECHO_N "(cached) $ECHO_C" >&6 2278else 2279 if test -n "$CC"; then 2280 ac_cv_prog_CC="$CC" # Let the user override the test. 2281else 2282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2283for as_dir in $PATH 2284do 2285 IFS=$as_save_IFS 2286 test -z "$as_dir" && as_dir=. 2287 for ac_exec_ext in '' $ac_executable_extensions; do 2288 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2289 ac_cv_prog_CC="${ac_tool_prefix}cc" 2290 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2291 break 2 2292 fi 2293done 2294done 2295 2296fi 2297fi 2298CC=$ac_cv_prog_CC 2299if test -n "$CC"; then 2300 echo "$as_me:$LINENO: result: $CC" >&5 2301echo "${ECHO_T}$CC" >&6 2302else 2303 echo "$as_me:$LINENO: result: no" >&5 2304echo "${ECHO_T}no" >&6 2305fi 2306 2307fi 2308if test -z "$ac_cv_prog_CC"; then 2309 ac_ct_CC=$CC 2310 # Extract the first word of "cc", so it can be a program name with args. 2311set dummy cc; ac_word=$2 2312echo "$as_me:$LINENO: checking for $ac_word" >&5 2313echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2314if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2315 echo $ECHO_N "(cached) $ECHO_C" >&6 2316else 2317 if test -n "$ac_ct_CC"; then 2318 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2319else 2320as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2321for as_dir in $PATH 2322do 2323 IFS=$as_save_IFS 2324 test -z "$as_dir" && as_dir=. 2325 for ac_exec_ext in '' $ac_executable_extensions; do 2326 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2327 ac_cv_prog_ac_ct_CC="cc" 2328 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2329 break 2 2330 fi 2331done 2332done 2333 2334fi 2335fi 2336ac_ct_CC=$ac_cv_prog_ac_ct_CC 2337if test -n "$ac_ct_CC"; then 2338 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2339echo "${ECHO_T}$ac_ct_CC" >&6 2340else 2341 echo "$as_me:$LINENO: result: no" >&5 2342echo "${ECHO_T}no" >&6 2343fi 2344 2345 CC=$ac_ct_CC 2346else 2347 CC="$ac_cv_prog_CC" 2348fi 2349 2350fi 2351if test -z "$CC"; then 2352 # Extract the first word of "cc", so it can be a program name with args. 2353set dummy cc; ac_word=$2 2354echo "$as_me:$LINENO: checking for $ac_word" >&5 2355echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2356if test "${ac_cv_prog_CC+set}" = set; then 2357 echo $ECHO_N "(cached) $ECHO_C" >&6 2358else 2359 if test -n "$CC"; then 2360 ac_cv_prog_CC="$CC" # Let the user override the test. 2361else 2362 ac_prog_rejected=no 2363as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2364for as_dir in $PATH 2365do 2366 IFS=$as_save_IFS 2367 test -z "$as_dir" && as_dir=. 2368 for ac_exec_ext in '' $ac_executable_extensions; do 2369 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2370 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2371 ac_prog_rejected=yes 2372 continue 2373 fi 2374 ac_cv_prog_CC="cc" 2375 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2376 break 2 2377 fi 2378done 2379done 2380 2381if test $ac_prog_rejected = yes; then 2382 # We found a bogon in the path, so make sure we never use it. 2383 set dummy $ac_cv_prog_CC 2384 shift 2385 if test $# != 0; then 2386 # We chose a different compiler from the bogus one. 2387 # However, it has the same basename, so the bogon will be chosen 2388 # first if we set CC to just the basename; use the full file name. 2389 shift 2390 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2391 fi 2392fi 2393fi 2394fi 2395CC=$ac_cv_prog_CC 2396if test -n "$CC"; then 2397 echo "$as_me:$LINENO: result: $CC" >&5 2398echo "${ECHO_T}$CC" >&6 2399else 2400 echo "$as_me:$LINENO: result: no" >&5 2401echo "${ECHO_T}no" >&6 2402fi 2403 2404fi 2405if test -z "$CC"; then 2406 if test -n "$ac_tool_prefix"; then 2407 for ac_prog in cl 2408 do 2409 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2410set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2411echo "$as_me:$LINENO: checking for $ac_word" >&5 2412echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2413if test "${ac_cv_prog_CC+set}" = set; then 2414 echo $ECHO_N "(cached) $ECHO_C" >&6 2415else 2416 if test -n "$CC"; then 2417 ac_cv_prog_CC="$CC" # Let the user override the test. 2418else 2419as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2420for as_dir in $PATH 2421do 2422 IFS=$as_save_IFS 2423 test -z "$as_dir" && as_dir=. 2424 for ac_exec_ext in '' $ac_executable_extensions; do 2425 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2426 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2427 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2428 break 2 2429 fi 2430done 2431done 2432 2433fi 2434fi 2435CC=$ac_cv_prog_CC 2436if test -n "$CC"; then 2437 echo "$as_me:$LINENO: result: $CC" >&5 2438echo "${ECHO_T}$CC" >&6 2439else 2440 echo "$as_me:$LINENO: result: no" >&5 2441echo "${ECHO_T}no" >&6 2442fi 2443 2444 test -n "$CC" && break 2445 done 2446fi 2447if test -z "$CC"; then 2448 ac_ct_CC=$CC 2449 for ac_prog in cl 2450do 2451 # Extract the first word of "$ac_prog", so it can be a program name with args. 2452set dummy $ac_prog; ac_word=$2 2453echo "$as_me:$LINENO: checking for $ac_word" >&5 2454echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 2455if test "${ac_cv_prog_ac_ct_CC+set}" = set; then 2456 echo $ECHO_N "(cached) $ECHO_C" >&6 2457else 2458 if test -n "$ac_ct_CC"; then 2459 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2460else 2461as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2462for as_dir in $PATH 2463do 2464 IFS=$as_save_IFS 2465 test -z "$as_dir" && as_dir=. 2466 for ac_exec_ext in '' $ac_executable_extensions; do 2467 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2468 ac_cv_prog_ac_ct_CC="$ac_prog" 2469 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 2470 break 2 2471 fi 2472done 2473done 2474 2475fi 2476fi 2477ac_ct_CC=$ac_cv_prog_ac_ct_CC 2478if test -n "$ac_ct_CC"; then 2479 echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 2480echo "${ECHO_T}$ac_ct_CC" >&6 2481else 2482 echo "$as_me:$LINENO: result: no" >&5 2483echo "${ECHO_T}no" >&6 2484fi 2485 2486 test -n "$ac_ct_CC" && break 2487done 2488 2489 CC=$ac_ct_CC 2490fi 2491 2492fi 2493 2494 2495test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH 2496See \`config.log' for more details." >&5 2497echo "$as_me: error: no acceptable C compiler found in \$PATH 2498See \`config.log' for more details." >&2;} 2499 { (exit 1); exit 1; }; } 2500 2501# Provide some information about the compiler. 2502echo "$as_me:$LINENO:" \ 2503 "checking for C compiler version" >&5 2504ac_compiler=`set X $ac_compile; echo $2` 2505{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 2506 (eval $ac_compiler --version </dev/null >&5) 2>&5 2507 ac_status=$? 2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2509 (exit $ac_status); } 2510{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 2511 (eval $ac_compiler -v </dev/null >&5) 2>&5 2512 ac_status=$? 2513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2514 (exit $ac_status); } 2515{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 2516 (eval $ac_compiler -V </dev/null >&5) 2>&5 2517 ac_status=$? 2518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2519 (exit $ac_status); } 2520 2521cat >conftest.$ac_ext <<_ACEOF 2522/* confdefs.h. */ 2523_ACEOF 2524cat confdefs.h >>conftest.$ac_ext 2525cat >>conftest.$ac_ext <<_ACEOF 2526/* end confdefs.h. */ 2527 2528int 2529main () 2530{ 2531 2532 ; 2533 return 0; 2534} 2535_ACEOF 2536ac_clean_files_save=$ac_clean_files 2537ac_clean_files="$ac_clean_files a.out a.exe b.out" 2538# Try to create an executable without -o first, disregard a.out. 2539# It will help us diagnose broken compilers, and finding out an intuition 2540# of exeext. 2541echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 2542echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 2543ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2544if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 2545 (eval $ac_link_default) 2>&5 2546 ac_status=$? 2547 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2548 (exit $ac_status); }; then 2549 # Find the output, starting from the most likely. This scheme is 2550# not robust to junk in `.', hence go to wildcards (a.*) only as a last 2551# resort. 2552 2553# Be careful to initialize this variable, since it used to be cached. 2554# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. 2555ac_cv_exeext= 2556# b.out is created by i960 compilers. 2557for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out 2558do 2559 test -f "$ac_file" || continue 2560 case $ac_file in 2561 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) 2562 ;; 2563 conftest.$ac_ext ) 2564 # This is the source file. 2565 ;; 2566 [ab].out ) 2567 # We found the default executable, but exeext='' is most 2568 # certainly right. 2569 break;; 2570 *.* ) 2571 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2572 # FIXME: I believe we export ac_cv_exeext for Libtool, 2573 # but it would be cool to find out if it's true. Does anybody 2574 # maintain Libtool? --akim. 2575 export ac_cv_exeext 2576 break;; 2577 * ) 2578 break;; 2579 esac 2580done 2581else 2582 echo "$as_me: failed program was:" >&5 2583sed 's/^/| /' conftest.$ac_ext >&5 2584 2585{ { echo "$as_me:$LINENO: error: C compiler cannot create executables 2586See \`config.log' for more details." >&5 2587echo "$as_me: error: C compiler cannot create executables 2588See \`config.log' for more details." >&2;} 2589 { (exit 77); exit 77; }; } 2590fi 2591 2592ac_exeext=$ac_cv_exeext 2593echo "$as_me:$LINENO: result: $ac_file" >&5 2594echo "${ECHO_T}$ac_file" >&6 2595 2596# Check the compiler produces executables we can run. If not, either 2597# the compiler is broken, or we cross compile. 2598echo "$as_me:$LINENO: checking whether the C compiler works" >&5 2599echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 2600# FIXME: These cross compiler hacks should be removed for Autoconf 3.0 2601# If not cross compiling, check that we can run a simple program. 2602if test "$cross_compiling" != yes; then 2603 if { ac_try='./$ac_file' 2604 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2605 (eval $ac_try) 2>&5 2606 ac_status=$? 2607 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2608 (exit $ac_status); }; }; then 2609 cross_compiling=no 2610 else 2611 if test "$cross_compiling" = maybe; then 2612 cross_compiling=yes 2613 else 2614 { { echo "$as_me:$LINENO: error: cannot run C compiled programs. 2615If you meant to cross compile, use \`--host'. 2616See \`config.log' for more details." >&5 2617echo "$as_me: error: cannot run C compiled programs. 2618If you meant to cross compile, use \`--host'. 2619See \`config.log' for more details." >&2;} 2620 { (exit 1); exit 1; }; } 2621 fi 2622 fi 2623fi 2624echo "$as_me:$LINENO: result: yes" >&5 2625echo "${ECHO_T}yes" >&6 2626 2627rm -f a.out a.exe conftest$ac_cv_exeext b.out 2628ac_clean_files=$ac_clean_files_save 2629# Check the compiler produces executables we can run. If not, either 2630# the compiler is broken, or we cross compile. 2631echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 2632echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 2633echo "$as_me:$LINENO: result: $cross_compiling" >&5 2634echo "${ECHO_T}$cross_compiling" >&6 2635 2636echo "$as_me:$LINENO: checking for suffix of executables" >&5 2637echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 2638if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 2639 (eval $ac_link) 2>&5 2640 ac_status=$? 2641 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2642 (exit $ac_status); }; then 2643 # If both `conftest.exe' and `conftest' are `present' (well, observable) 2644# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 2645# work properly (i.e., refer to `conftest.exe'), while it won't with 2646# `rm'. 2647for ac_file in conftest.exe conftest conftest.*; do 2648 test -f "$ac_file" || continue 2649 case $ac_file in 2650 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; 2651 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 2652 export ac_cv_exeext 2653 break;; 2654 * ) break;; 2655 esac 2656done 2657else 2658 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link 2659See \`config.log' for more details." >&5 2660echo "$as_me: error: cannot compute suffix of executables: cannot compile and link 2661See \`config.log' for more details." >&2;} 2662 { (exit 1); exit 1; }; } 2663fi 2664 2665rm -f conftest$ac_cv_exeext 2666echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 2667echo "${ECHO_T}$ac_cv_exeext" >&6 2668 2669rm -f conftest.$ac_ext 2670EXEEXT=$ac_cv_exeext 2671ac_exeext=$EXEEXT 2672echo "$as_me:$LINENO: checking for suffix of object files" >&5 2673echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 2674if test "${ac_cv_objext+set}" = set; then 2675 echo $ECHO_N "(cached) $ECHO_C" >&6 2676else 2677 cat >conftest.$ac_ext <<_ACEOF 2678/* confdefs.h. */ 2679_ACEOF 2680cat confdefs.h >>conftest.$ac_ext 2681cat >>conftest.$ac_ext <<_ACEOF 2682/* end confdefs.h. */ 2683 2684int 2685main () 2686{ 2687 2688 ; 2689 return 0; 2690} 2691_ACEOF 2692rm -f conftest.o conftest.obj 2693if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2694 (eval $ac_compile) 2>&5 2695 ac_status=$? 2696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2697 (exit $ac_status); }; then 2698 for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do 2699 case $ac_file in 2700 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; 2701 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 2702 break;; 2703 esac 2704done 2705else 2706 echo "$as_me: failed program was:" >&5 2707sed 's/^/| /' conftest.$ac_ext >&5 2708 2709{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile 2710See \`config.log' for more details." >&5 2711echo "$as_me: error: cannot compute suffix of object files: cannot compile 2712See \`config.log' for more details." >&2;} 2713 { (exit 1); exit 1; }; } 2714fi 2715 2716rm -f conftest.$ac_cv_objext conftest.$ac_ext 2717fi 2718echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 2719echo "${ECHO_T}$ac_cv_objext" >&6 2720OBJEXT=$ac_cv_objext 2721ac_objext=$OBJEXT 2722echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 2723echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 2724if test "${ac_cv_c_compiler_gnu+set}" = set; then 2725 echo $ECHO_N "(cached) $ECHO_C" >&6 2726else 2727 cat >conftest.$ac_ext <<_ACEOF 2728/* confdefs.h. */ 2729_ACEOF 2730cat confdefs.h >>conftest.$ac_ext 2731cat >>conftest.$ac_ext <<_ACEOF 2732/* end confdefs.h. */ 2733 2734int 2735main () 2736{ 2737#ifndef __GNUC__ 2738 choke me 2739#endif 2740 2741 ; 2742 return 0; 2743} 2744_ACEOF 2745rm -f conftest.$ac_objext 2746if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2747 (eval $ac_compile) 2>conftest.er1 2748 ac_status=$? 2749 grep -v '^ *+' conftest.er1 >conftest.err 2750 rm -f conftest.er1 2751 cat conftest.err >&5 2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2753 (exit $ac_status); } && 2754 { ac_try='test -z "$ac_c_werror_flag" 2755 || test ! -s conftest.err' 2756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2757 (eval $ac_try) 2>&5 2758 ac_status=$? 2759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2760 (exit $ac_status); }; } && 2761 { ac_try='test -s conftest.$ac_objext' 2762 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2763 (eval $ac_try) 2>&5 2764 ac_status=$? 2765 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2766 (exit $ac_status); }; }; then 2767 ac_compiler_gnu=yes 2768else 2769 echo "$as_me: failed program was:" >&5 2770sed 's/^/| /' conftest.$ac_ext >&5 2771 2772ac_compiler_gnu=no 2773fi 2774rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2775ac_cv_c_compiler_gnu=$ac_compiler_gnu 2776 2777fi 2778echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 2779echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 2780GCC=`test $ac_compiler_gnu = yes && echo yes` 2781ac_test_CFLAGS=${CFLAGS+set} 2782ac_save_CFLAGS=$CFLAGS 2783CFLAGS="-g" 2784echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 2785echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 2786if test "${ac_cv_prog_cc_g+set}" = set; then 2787 echo $ECHO_N "(cached) $ECHO_C" >&6 2788else 2789 cat >conftest.$ac_ext <<_ACEOF 2790/* confdefs.h. */ 2791_ACEOF 2792cat confdefs.h >>conftest.$ac_ext 2793cat >>conftest.$ac_ext <<_ACEOF 2794/* end confdefs.h. */ 2795 2796int 2797main () 2798{ 2799 2800 ; 2801 return 0; 2802} 2803_ACEOF 2804rm -f conftest.$ac_objext 2805if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2806 (eval $ac_compile) 2>conftest.er1 2807 ac_status=$? 2808 grep -v '^ *+' conftest.er1 >conftest.err 2809 rm -f conftest.er1 2810 cat conftest.err >&5 2811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2812 (exit $ac_status); } && 2813 { ac_try='test -z "$ac_c_werror_flag" 2814 || test ! -s conftest.err' 2815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2816 (eval $ac_try) 2>&5 2817 ac_status=$? 2818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2819 (exit $ac_status); }; } && 2820 { ac_try='test -s conftest.$ac_objext' 2821 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2822 (eval $ac_try) 2>&5 2823 ac_status=$? 2824 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2825 (exit $ac_status); }; }; then 2826 ac_cv_prog_cc_g=yes 2827else 2828 echo "$as_me: failed program was:" >&5 2829sed 's/^/| /' conftest.$ac_ext >&5 2830 2831ac_cv_prog_cc_g=no 2832fi 2833rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 2834fi 2835echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 2836echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 2837if test "$ac_test_CFLAGS" = set; then 2838 CFLAGS=$ac_save_CFLAGS 2839elif test $ac_cv_prog_cc_g = yes; then 2840 if test "$GCC" = yes; then 2841 CFLAGS="-g -O2" 2842 else 2843 CFLAGS="-g" 2844 fi 2845else 2846 if test "$GCC" = yes; then 2847 CFLAGS="-O2" 2848 else 2849 CFLAGS= 2850 fi 2851fi 2852echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 2853echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 2854if test "${ac_cv_prog_cc_stdc+set}" = set; then 2855 echo $ECHO_N "(cached) $ECHO_C" >&6 2856else 2857 ac_cv_prog_cc_stdc=no 2858ac_save_CC=$CC 2859cat >conftest.$ac_ext <<_ACEOF 2860/* confdefs.h. */ 2861_ACEOF 2862cat confdefs.h >>conftest.$ac_ext 2863cat >>conftest.$ac_ext <<_ACEOF 2864/* end confdefs.h. */ 2865#include <stdarg.h> 2866#include <stdio.h> 2867#include <sys/types.h> 2868#include <sys/stat.h> 2869/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 2870struct buf { int x; }; 2871FILE * (*rcsopen) (struct buf *, struct stat *, int); 2872static char *e (p, i) 2873 char **p; 2874 int i; 2875{ 2876 return p[i]; 2877} 2878static char *f (char * (*g) (char **, int), char **p, ...) 2879{ 2880 char *s; 2881 va_list v; 2882 va_start (v,p); 2883 s = g (p, va_arg (v,int)); 2884 va_end (v); 2885 return s; 2886} 2887 2888/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 2889 function prototypes and stuff, but not '\xHH' hex character constants. 2890 These don't provoke an error unfortunately, instead are silently treated 2891 as 'x'. The following induces an error, until -std1 is added to get 2892 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 2893 array size at least. It's necessary to write '\x00'==0 to get something 2894 that's true only with -std1. */ 2895int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 2896 2897int test (int i, double x); 2898struct s1 {int (*f) (int a);}; 2899struct s2 {int (*f) (double a);}; 2900int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 2901int argc; 2902char **argv; 2903int 2904main () 2905{ 2906return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 2907 ; 2908 return 0; 2909} 2910_ACEOF 2911# Don't try gcc -ansi; that turns off useful extensions and 2912# breaks some systems' header files. 2913# AIX -qlanglvl=ansi 2914# Ultrix and OSF/1 -std1 2915# HP-UX 10.20 and later -Ae 2916# HP-UX older versions -Aa -D_HPUX_SOURCE 2917# SVR4 -Xc -D__EXTENSIONS__ 2918for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 2919do 2920 CC="$ac_save_CC $ac_arg" 2921 rm -f conftest.$ac_objext 2922if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2923 (eval $ac_compile) 2>conftest.er1 2924 ac_status=$? 2925 grep -v '^ *+' conftest.er1 >conftest.err 2926 rm -f conftest.er1 2927 cat conftest.err >&5 2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2929 (exit $ac_status); } && 2930 { ac_try='test -z "$ac_c_werror_flag" 2931 || test ! -s conftest.err' 2932 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2933 (eval $ac_try) 2>&5 2934 ac_status=$? 2935 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2936 (exit $ac_status); }; } && 2937 { ac_try='test -s conftest.$ac_objext' 2938 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2939 (eval $ac_try) 2>&5 2940 ac_status=$? 2941 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2942 (exit $ac_status); }; }; then 2943 ac_cv_prog_cc_stdc=$ac_arg 2944break 2945else 2946 echo "$as_me: failed program was:" >&5 2947sed 's/^/| /' conftest.$ac_ext >&5 2948 2949fi 2950rm -f conftest.err conftest.$ac_objext 2951done 2952rm -f conftest.$ac_ext conftest.$ac_objext 2953CC=$ac_save_CC 2954 2955fi 2956 2957case "x$ac_cv_prog_cc_stdc" in 2958 x|xno) 2959 echo "$as_me:$LINENO: result: none needed" >&5 2960echo "${ECHO_T}none needed" >&6 ;; 2961 *) 2962 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 2963echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 2964 CC="$CC $ac_cv_prog_cc_stdc" ;; 2965esac 2966 2967# Some people use a C++ compiler to compile C. Since we use `exit', 2968# in C++ we need to declare it. In case someone uses the same compiler 2969# for both compiling C and C++ we need to have the C++ compiler decide 2970# the declaration of exit, since it's the most demanding environment. 2971cat >conftest.$ac_ext <<_ACEOF 2972#ifndef __cplusplus 2973 choke me 2974#endif 2975_ACEOF 2976rm -f conftest.$ac_objext 2977if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 2978 (eval $ac_compile) 2>conftest.er1 2979 ac_status=$? 2980 grep -v '^ *+' conftest.er1 >conftest.err 2981 rm -f conftest.er1 2982 cat conftest.err >&5 2983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2984 (exit $ac_status); } && 2985 { ac_try='test -z "$ac_c_werror_flag" 2986 || test ! -s conftest.err' 2987 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2988 (eval $ac_try) 2>&5 2989 ac_status=$? 2990 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2991 (exit $ac_status); }; } && 2992 { ac_try='test -s conftest.$ac_objext' 2993 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 2994 (eval $ac_try) 2>&5 2995 ac_status=$? 2996 echo "$as_me:$LINENO: \$? = $ac_status" >&5 2997 (exit $ac_status); }; }; then 2998 for ac_declaration in \ 2999 '' \ 3000 'extern "C" void std::exit (int) throw (); using std::exit;' \ 3001 'extern "C" void std::exit (int); using std::exit;' \ 3002 'extern "C" void exit (int) throw ();' \ 3003 'extern "C" void exit (int);' \ 3004 'void exit (int);' 3005do 3006 cat >conftest.$ac_ext <<_ACEOF 3007/* confdefs.h. */ 3008_ACEOF 3009cat confdefs.h >>conftest.$ac_ext 3010cat >>conftest.$ac_ext <<_ACEOF 3011/* end confdefs.h. */ 3012$ac_declaration 3013#include <stdlib.h> 3014int 3015main () 3016{ 3017exit (42); 3018 ; 3019 return 0; 3020} 3021_ACEOF 3022rm -f conftest.$ac_objext 3023if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3024 (eval $ac_compile) 2>conftest.er1 3025 ac_status=$? 3026 grep -v '^ *+' conftest.er1 >conftest.err 3027 rm -f conftest.er1 3028 cat conftest.err >&5 3029 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3030 (exit $ac_status); } && 3031 { ac_try='test -z "$ac_c_werror_flag" 3032 || test ! -s conftest.err' 3033 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3034 (eval $ac_try) 2>&5 3035 ac_status=$? 3036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3037 (exit $ac_status); }; } && 3038 { ac_try='test -s conftest.$ac_objext' 3039 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3040 (eval $ac_try) 2>&5 3041 ac_status=$? 3042 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3043 (exit $ac_status); }; }; then 3044 : 3045else 3046 echo "$as_me: failed program was:" >&5 3047sed 's/^/| /' conftest.$ac_ext >&5 3048 3049continue 3050fi 3051rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3052 cat >conftest.$ac_ext <<_ACEOF 3053/* confdefs.h. */ 3054_ACEOF 3055cat confdefs.h >>conftest.$ac_ext 3056cat >>conftest.$ac_ext <<_ACEOF 3057/* end confdefs.h. */ 3058$ac_declaration 3059int 3060main () 3061{ 3062exit (42); 3063 ; 3064 return 0; 3065} 3066_ACEOF 3067rm -f conftest.$ac_objext 3068if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 3069 (eval $ac_compile) 2>conftest.er1 3070 ac_status=$? 3071 grep -v '^ *+' conftest.er1 >conftest.err 3072 rm -f conftest.er1 3073 cat conftest.err >&5 3074 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3075 (exit $ac_status); } && 3076 { ac_try='test -z "$ac_c_werror_flag" 3077 || test ! -s conftest.err' 3078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3079 (eval $ac_try) 2>&5 3080 ac_status=$? 3081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3082 (exit $ac_status); }; } && 3083 { ac_try='test -s conftest.$ac_objext' 3084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 3085 (eval $ac_try) 2>&5 3086 ac_status=$? 3087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3088 (exit $ac_status); }; }; then 3089 break 3090else 3091 echo "$as_me: failed program was:" >&5 3092sed 's/^/| /' conftest.$ac_ext >&5 3093 3094fi 3095rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3096done 3097rm -f conftest* 3098if test -n "$ac_declaration"; then 3099 echo '#ifdef __cplusplus' >>confdefs.h 3100 echo $ac_declaration >>confdefs.h 3101 echo '#endif' >>confdefs.h 3102fi 3103 3104else 3105 echo "$as_me: failed program was:" >&5 3106sed 's/^/| /' conftest.$ac_ext >&5 3107 3108fi 3109rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 3110ac_ext=c 3111ac_cpp='$CPP $CPPFLAGS' 3112ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3113ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3114ac_compiler_gnu=$ac_cv_c_compiler_gnu 3115DEPDIR="${am__leading_dot}deps" 3116 3117 ac_config_commands="$ac_config_commands depfiles" 3118 3119 3120am_make=${MAKE-make} 3121cat > confinc << 'END' 3122am__doit: 3123 @echo done 3124.PHONY: am__doit 3125END 3126# If we don't find an include directive, just comment out the code. 3127echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 3128echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 3129am__include="#" 3130am__quote= 3131_am_result=none 3132# First try GNU make style include. 3133echo "include confinc" > confmf 3134# We grep out `Entering directory' and `Leaving directory' 3135# messages which can occur if `w' ends up in MAKEFLAGS. 3136# In particular we don't look at `^make:' because GNU make might 3137# be invoked under some other name (usually "gmake"), in which 3138# case it prints its new name instead of `make'. 3139if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then 3140 am__include=include 3141 am__quote= 3142 _am_result=GNU 3143fi 3144# Now try BSD make style include. 3145if test "$am__include" = "#"; then 3146 echo '.include "confinc"' > confmf 3147 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then 3148 am__include=.include 3149 am__quote="\"" 3150 _am_result=BSD 3151 fi 3152fi 3153 3154 3155echo "$as_me:$LINENO: result: $_am_result" >&5 3156echo "${ECHO_T}$_am_result" >&6 3157rm -f confinc confmf 3158 3159# Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. 3160if test "${enable_dependency_tracking+set}" = set; then 3161 enableval="$enable_dependency_tracking" 3162 3163fi; 3164if test "x$enable_dependency_tracking" != xno; then 3165 am_depcomp="$ac_aux_dir/depcomp" 3166 AMDEPBACKSLASH='\' 3167fi 3168 3169 3170if test "x$enable_dependency_tracking" != xno; then 3171 AMDEP_TRUE= 3172 AMDEP_FALSE='#' 3173else 3174 AMDEP_TRUE='#' 3175 AMDEP_FALSE= 3176fi 3177 3178 3179 3180 3181depcc="$CC" am_compiler_list= 3182 3183echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 3184echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 3185if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then 3186 echo $ECHO_N "(cached) $ECHO_C" >&6 3187else 3188 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3189 # We make a subdir and do the tests there. Otherwise we can end up 3190 # making bogus files that we don't know about and never remove. For 3191 # instance it was reported that on HP-UX the gcc test will end up 3192 # making a dummy file named `D' -- because `-MD' means `put the output 3193 # in D'. 3194 mkdir conftest.dir 3195 # Copy depcomp to subdir because otherwise we won't find it if we're 3196 # using a relative directory. 3197 cp "$am_depcomp" conftest.dir 3198 cd conftest.dir 3199 # We will build objects and dependencies in a subdirectory because 3200 # it helps to detect inapplicable dependency modes. For instance 3201 # both Tru64's cc and ICC support -MD to output dependencies as a 3202 # side effect of compilation, but ICC will put the dependencies in 3203 # the current directory while Tru64 will put them in the object 3204 # directory. 3205 mkdir sub 3206 3207 am_cv_CC_dependencies_compiler_type=none 3208 if test "$am_compiler_list" = ""; then 3209 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3210 fi 3211 for depmode in $am_compiler_list; do 3212 # Setup a source with many dependencies, because some compilers 3213 # like to wrap large dependency lists on column 80 (with \), and 3214 # we should not choose a depcomp mode which is confused by this. 3215 # 3216 # We need to recreate these files for each test, as the compiler may 3217 # overwrite some of them when testing with obscure command lines. 3218 # This happens at least with the AIX C compiler. 3219 : > sub/conftest.c 3220 for i in 1 2 3 4 5 6; do 3221 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3222 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3223 # Solaris 8's {/usr,}/bin/sh. 3224 touch sub/conftst$i.h 3225 done 3226 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3227 3228 case $depmode in 3229 nosideeffect) 3230 # after this tag, mechanisms are not by side-effect, so they'll 3231 # only be used when explicitly requested 3232 if test "x$enable_dependency_tracking" = xyes; then 3233 continue 3234 else 3235 break 3236 fi 3237 ;; 3238 none) break ;; 3239 esac 3240 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3241 # mode. It turns out that the SunPro C++ compiler does not properly 3242 # handle `-M -o', and we need to detect this. 3243 if depmode=$depmode \ 3244 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ 3245 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3246 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ 3247 >/dev/null 2>conftest.err && 3248 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3249 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && 3250 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3251 # icc doesn't choke on unknown options, it will just issue warnings 3252 # or remarks (even with -Werror). So we grep stderr for any message 3253 # that says an option was ignored or not supported. 3254 # When given -MP, icc 7.0 and 7.1 complain thusly: 3255 # icc: Command line warning: ignoring option '-M'; no argument required 3256 # The diagnosis changed in icc 8.0: 3257 # icc: Command line remark: option '-MP' not supported 3258 if (grep 'ignoring option' conftest.err || 3259 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3260 am_cv_CC_dependencies_compiler_type=$depmode 3261 break 3262 fi 3263 fi 3264 done 3265 3266 cd .. 3267 rm -rf conftest.dir 3268else 3269 am_cv_CC_dependencies_compiler_type=none 3270fi 3271 3272fi 3273echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 3274echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 3275CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3276 3277 3278 3279if 3280 test "x$enable_dependency_tracking" != xno \ 3281 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3282 am__fastdepCC_TRUE= 3283 am__fastdepCC_FALSE='#' 3284else 3285 am__fastdepCC_TRUE='#' 3286 am__fastdepCC_FALSE= 3287fi 3288 3289 3290 3291 3292 3293 3294# In order to override CFLAGS_FOR_TARGET, all of our special flags go 3295# in XCFLAGS. But we need them in CFLAGS during configury. So put them 3296# in both places for now and restore CFLAGS at the end of config. 3297save_CFLAGS="$CFLAGS" 3298 3299# Add -Wall -Werror if we are using GCC. 3300if test "x$GCC" = "xyes"; then 3301 XCFLAGS="$XCFLAGS -Wall -Werror" 3302fi 3303 3304# Find other programs we need. 3305if test -n "$ac_tool_prefix"; then 3306 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 3307set dummy ${ac_tool_prefix}ar; ac_word=$2 3308echo "$as_me:$LINENO: checking for $ac_word" >&5 3309echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3310if test "${ac_cv_prog_AR+set}" = set; then 3311 echo $ECHO_N "(cached) $ECHO_C" >&6 3312else 3313 if test -n "$AR"; then 3314 ac_cv_prog_AR="$AR" # Let the user override the test. 3315else 3316as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3317for as_dir in $PATH 3318do 3319 IFS=$as_save_IFS 3320 test -z "$as_dir" && as_dir=. 3321 for ac_exec_ext in '' $ac_executable_extensions; do 3322 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3323 ac_cv_prog_AR="${ac_tool_prefix}ar" 3324 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3325 break 2 3326 fi 3327done 3328done 3329 3330fi 3331fi 3332AR=$ac_cv_prog_AR 3333if test -n "$AR"; then 3334 echo "$as_me:$LINENO: result: $AR" >&5 3335echo "${ECHO_T}$AR" >&6 3336else 3337 echo "$as_me:$LINENO: result: no" >&5 3338echo "${ECHO_T}no" >&6 3339fi 3340 3341fi 3342if test -z "$ac_cv_prog_AR"; then 3343 ac_ct_AR=$AR 3344 # Extract the first word of "ar", so it can be a program name with args. 3345set dummy ar; ac_word=$2 3346echo "$as_me:$LINENO: checking for $ac_word" >&5 3347echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3348if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 3349 echo $ECHO_N "(cached) $ECHO_C" >&6 3350else 3351 if test -n "$ac_ct_AR"; then 3352 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 3353else 3354as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3355for as_dir in $PATH 3356do 3357 IFS=$as_save_IFS 3358 test -z "$as_dir" && as_dir=. 3359 for ac_exec_ext in '' $ac_executable_extensions; do 3360 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3361 ac_cv_prog_ac_ct_AR="ar" 3362 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3363 break 2 3364 fi 3365done 3366done 3367 3368fi 3369fi 3370ac_ct_AR=$ac_cv_prog_ac_ct_AR 3371if test -n "$ac_ct_AR"; then 3372 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 3373echo "${ECHO_T}$ac_ct_AR" >&6 3374else 3375 echo "$as_me:$LINENO: result: no" >&5 3376echo "${ECHO_T}no" >&6 3377fi 3378 3379 AR=$ac_ct_AR 3380else 3381 AR="$ac_cv_prog_AR" 3382fi 3383 3384if test -n "$ac_tool_prefix"; then 3385 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 3386set dummy ${ac_tool_prefix}ranlib; ac_word=$2 3387echo "$as_me:$LINENO: checking for $ac_word" >&5 3388echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3389if test "${ac_cv_prog_RANLIB+set}" = set; then 3390 echo $ECHO_N "(cached) $ECHO_C" >&6 3391else 3392 if test -n "$RANLIB"; then 3393 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 3394else 3395as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3396for as_dir in $PATH 3397do 3398 IFS=$as_save_IFS 3399 test -z "$as_dir" && as_dir=. 3400 for ac_exec_ext in '' $ac_executable_extensions; do 3401 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3402 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 3403 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3404 break 2 3405 fi 3406done 3407done 3408 3409fi 3410fi 3411RANLIB=$ac_cv_prog_RANLIB 3412if test -n "$RANLIB"; then 3413 echo "$as_me:$LINENO: result: $RANLIB" >&5 3414echo "${ECHO_T}$RANLIB" >&6 3415else 3416 echo "$as_me:$LINENO: result: no" >&5 3417echo "${ECHO_T}no" >&6 3418fi 3419 3420fi 3421if test -z "$ac_cv_prog_RANLIB"; then 3422 ac_ct_RANLIB=$RANLIB 3423 # Extract the first word of "ranlib", so it can be a program name with args. 3424set dummy ranlib; ac_word=$2 3425echo "$as_me:$LINENO: checking for $ac_word" >&5 3426echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3427if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 3428 echo $ECHO_N "(cached) $ECHO_C" >&6 3429else 3430 if test -n "$ac_ct_RANLIB"; then 3431 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 3432else 3433as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3434for as_dir in $PATH 3435do 3436 IFS=$as_save_IFS 3437 test -z "$as_dir" && as_dir=. 3438 for ac_exec_ext in '' $ac_executable_extensions; do 3439 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3440 ac_cv_prog_ac_ct_RANLIB="ranlib" 3441 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3442 break 2 3443 fi 3444done 3445done 3446 3447 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB="ranlib-not-found-in-path-error" 3448fi 3449fi 3450ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 3451if test -n "$ac_ct_RANLIB"; then 3452 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 3453echo "${ECHO_T}$ac_ct_RANLIB" >&6 3454else 3455 echo "$as_me:$LINENO: result: no" >&5 3456echo "${ECHO_T}no" >&6 3457fi 3458 3459 RANLIB=$ac_ct_RANLIB 3460else 3461 RANLIB="$ac_cv_prog_RANLIB" 3462fi 3463 3464# Extract the first word of "perl", so it can be a program name with args. 3465set dummy perl; ac_word=$2 3466echo "$as_me:$LINENO: checking for $ac_word" >&5 3467echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3468if test "${ac_cv_path_PERL+set}" = set; then 3469 echo $ECHO_N "(cached) $ECHO_C" >&6 3470else 3471 case $PERL in 3472 [\\/]* | ?:[\\/]*) 3473 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 3474 ;; 3475 *) 3476 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3477for as_dir in $PATH 3478do 3479 IFS=$as_save_IFS 3480 test -z "$as_dir" && as_dir=. 3481 for ac_exec_ext in '' $ac_executable_extensions; do 3482 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3483 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 3484 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3485 break 2 3486 fi 3487done 3488done 3489 3490 test -z "$ac_cv_path_PERL" && ac_cv_path_PERL="perl-not-found-in-path-error" 3491 ;; 3492esac 3493fi 3494PERL=$ac_cv_path_PERL 3495 3496if test -n "$PERL"; then 3497 echo "$as_me:$LINENO: result: $PERL" >&5 3498echo "${ECHO_T}$PERL" >&6 3499else 3500 echo "$as_me:$LINENO: result: no" >&5 3501echo "${ECHO_T}no" >&6 3502fi 3503 3504echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3505echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 3506set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` 3507if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then 3508 echo $ECHO_N "(cached) $ECHO_C" >&6 3509else 3510 cat >conftest.make <<\_ACEOF 3511all: 3512 @echo 'ac_maketemp="$(MAKE)"' 3513_ACEOF 3514# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 3515eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` 3516if test -n "$ac_maketemp"; then 3517 eval ac_cv_prog_make_${ac_make}_set=yes 3518else 3519 eval ac_cv_prog_make_${ac_make}_set=no 3520fi 3521rm -f conftest.make 3522fi 3523if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then 3524 echo "$as_me:$LINENO: result: yes" >&5 3525echo "${ECHO_T}yes" >&6 3526 SET_MAKE= 3527else 3528 echo "$as_me:$LINENO: result: no" >&5 3529echo "${ECHO_T}no" >&6 3530 SET_MAKE="MAKE=${MAKE-make}" 3531fi 3532 3533# Find a good install program. We prefer a C program (faster), 3534# so one script is as good as another. But avoid the broken or 3535# incompatible versions: 3536# SysV /etc/install, /usr/sbin/install 3537# SunOS /usr/etc/install 3538# IRIX /sbin/install 3539# AIX /bin/install 3540# AmigaOS /C/install, which installs bootblocks on floppy discs 3541# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 3542# AFS /usr/afsws/bin/install, which mishandles nonexistent args 3543# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 3544# OS/2's system install, which has a completely different semantic 3545# ./install, which can be erroneously created by make from ./install.sh. 3546echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 3547echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 3548if test -z "$INSTALL"; then 3549if test "${ac_cv_path_install+set}" = set; then 3550 echo $ECHO_N "(cached) $ECHO_C" >&6 3551else 3552 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3553for as_dir in $PATH 3554do 3555 IFS=$as_save_IFS 3556 test -z "$as_dir" && as_dir=. 3557 # Account for people who put trailing slashes in PATH elements. 3558case $as_dir/ in 3559 ./ | .// | /cC/* | \ 3560 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 3561 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ 3562 /usr/ucb/* ) ;; 3563 *) 3564 # OSF1 and SCO ODT 3.0 have their own names for install. 3565 # Don't use installbsd from OSF since it installs stuff as root 3566 # by default. 3567 for ac_prog in ginstall scoinst install; do 3568 for ac_exec_ext in '' $ac_executable_extensions; do 3569 if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 3570 if test $ac_prog = install && 3571 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3572 # AIX install. It has an incompatible calling convention. 3573 : 3574 elif test $ac_prog = install && 3575 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 3576 # program-specific install script used by HP pwplus--don't use. 3577 : 3578 else 3579 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 3580 break 3 3581 fi 3582 fi 3583 done 3584 done 3585 ;; 3586esac 3587done 3588 3589 3590fi 3591 if test "${ac_cv_path_install+set}" = set; then 3592 INSTALL=$ac_cv_path_install 3593 else 3594 # As a last resort, use the slow shell script. We don't cache a 3595 # path for INSTALL within a source directory, because that will 3596 # break other packages using the cache if that directory is 3597 # removed, or if the path is relative. 3598 INSTALL=$ac_install_sh 3599 fi 3600fi 3601echo "$as_me:$LINENO: result: $INSTALL" >&5 3602echo "${ECHO_T}$INSTALL" >&6 3603 3604# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3605# It thinks the first close brace ends the variable substitution. 3606test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3607 3608test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3609 3610test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3611 3612 3613# See if makeinfo has been installed and is modern enough 3614# that we can use it. 3615 3616 # Extract the first word of "makeinfo", so it can be a program name with args. 3617set dummy makeinfo; ac_word=$2 3618echo "$as_me:$LINENO: checking for $ac_word" >&5 3619echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 3620if test "${ac_cv_prog_MAKEINFO+set}" = set; then 3621 echo $ECHO_N "(cached) $ECHO_C" >&6 3622else 3623 if test -n "$MAKEINFO"; then 3624 ac_cv_prog_MAKEINFO="$MAKEINFO" # Let the user override the test. 3625else 3626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3627for as_dir in $PATH 3628do 3629 IFS=$as_save_IFS 3630 test -z "$as_dir" && as_dir=. 3631 for ac_exec_ext in '' $ac_executable_extensions; do 3632 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3633 ac_cv_prog_MAKEINFO="makeinfo" 3634 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 3635 break 2 3636 fi 3637done 3638done 3639 3640fi 3641fi 3642MAKEINFO=$ac_cv_prog_MAKEINFO 3643if test -n "$MAKEINFO"; then 3644 echo "$as_me:$LINENO: result: $MAKEINFO" >&5 3645echo "${ECHO_T}$MAKEINFO" >&6 3646else 3647 echo "$as_me:$LINENO: result: no" >&5 3648echo "${ECHO_T}no" >&6 3649fi 3650 3651 if test -n "$MAKEINFO"; then 3652 # Found it, now check the version. 3653 echo "$as_me:$LINENO: checking for modern makeinfo" >&5 3654echo $ECHO_N "checking for modern makeinfo... $ECHO_C" >&6 3655if test "${gcc_cv_prog_makeinfo_modern+set}" = set; then 3656 echo $ECHO_N "(cached) $ECHO_C" >&6 3657else 3658 ac_prog_version=`eval $MAKEINFO --version 2>&1 | 3659 sed -n 's/^.*GNU texinfo.* \([0-9][0-9.]*\).*$/\1/p'` 3660 3661 case $ac_prog_version in 3662 '') gcc_cv_prog_makeinfo_modern=no;; 3663 4.[4-9]*|4.[1-9][0-9]*|[5-9]*|[1-9][0-9]*) gcc_cv_prog_makeinfo_modern=yes;; 3664 *) gcc_cv_prog_makeinfo_modern=no;; 3665 esac 3666 3667fi 3668echo "$as_me:$LINENO: result: $gcc_cv_prog_makeinfo_modern" >&5 3669echo "${ECHO_T}$gcc_cv_prog_makeinfo_modern" >&6 3670 else 3671 gcc_cv_prog_makeinfo_modern=no 3672 fi 3673 if test $gcc_cv_prog_makeinfo_modern = no; then 3674 MAKEINFO="${CONFIG_SHELL-/bin/sh} $ac_aux_dir/missing makeinfo" 3675 fi 3676 3677 3678 3679if test $gcc_cv_prog_makeinfo_modern = "yes"; then 3680 BUILD_INFO_TRUE= 3681 BUILD_INFO_FALSE='#' 3682else 3683 BUILD_INFO_TRUE='#' 3684 BUILD_INFO_FALSE= 3685fi 3686 3687 3688 3689# Configure libtool 3690 3691 3692macro_version='2.1a' 3693macro_revision='1.2435' 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706ltmain="$ac_aux_dir/ltmain.sh" 3707 3708# Set options 3709 3710enable_dlopen=no 3711 3712 3713enable_win32_dll=no 3714 3715 3716# Check whether --enable-shared or --disable-shared was given. 3717if test "${enable_shared+set}" = set; then 3718 enableval="$enable_shared" 3719 p=${PACKAGE-default} 3720 case $enableval in 3721 yes) enable_shared=yes ;; 3722 no) enable_shared=no ;; 3723 *) 3724 enable_shared=no 3725 # Look at the argument we got. We use all the common list separators. 3726 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3727 for pkg in $enableval; do 3728 IFS="$lt_save_ifs" 3729 if test "X$pkg" = "X$p"; then 3730 enable_shared=yes 3731 fi 3732 done 3733 IFS="$lt_save_ifs" 3734 ;; 3735 esac 3736else 3737 enable_shared=yes 3738fi; 3739 3740 3741 3742 3743 3744 3745 3746 3747# Check whether --enable-static or --disable-static was given. 3748if test "${enable_static+set}" = set; then 3749 enableval="$enable_static" 3750 p=${PACKAGE-default} 3751 case $enableval in 3752 yes) enable_static=yes ;; 3753 no) enable_static=no ;; 3754 *) 3755 enable_static=no 3756 # Look at the argument we got. We use all the common list separators. 3757 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3758 for pkg in $enableval; do 3759 IFS="$lt_save_ifs" 3760 if test "X$pkg" = "X$p"; then 3761 enable_static=yes 3762 fi 3763 done 3764 IFS="$lt_save_ifs" 3765 ;; 3766 esac 3767else 3768 enable_static=yes 3769fi; 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779# Check whether --with-pic or --without-pic was given. 3780if test "${with_pic+set}" = set; then 3781 withval="$with_pic" 3782 pic_mode="$withval" 3783else 3784 pic_mode=default 3785fi; 3786 3787test -z "$pic_mode" && pic_mode=default 3788 3789 3790 3791 3792 3793 3794 3795# Check whether --enable-fast-install or --disable-fast-install was given. 3796if test "${enable_fast_install+set}" = set; then 3797 enableval="$enable_fast_install" 3798 p=${PACKAGE-default} 3799 case $enableval in 3800 yes) enable_fast_install=yes ;; 3801 no) enable_fast_install=no ;; 3802 *) 3803 enable_fast_install=no 3804 # Look at the argument we got. We use all the common list separators. 3805 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 3806 for pkg in $enableval; do 3807 IFS="$lt_save_ifs" 3808 if test "X$pkg" = "X$p"; then 3809 enable_fast_install=yes 3810 fi 3811 done 3812 IFS="$lt_save_ifs" 3813 ;; 3814 esac 3815else 3816 enable_fast_install=yes 3817fi; 3818 3819 3820 3821 3822 3823 3824 3825 3826echo "$as_me:$LINENO: checking for a sed that does not truncate output" >&5 3827echo $ECHO_N "checking for a sed that does not truncate output... $ECHO_C" >&6 3828if test "${lt_cv_path_SED+set}" = set; then 3829 echo $ECHO_N "(cached) $ECHO_C" >&6 3830else 3831 # Loop through the user's path and test for sed and gsed. 3832# Then use that list of sed's as ones to test for truncation. 3833as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3834for as_dir in $PATH 3835do 3836 IFS=$as_save_IFS 3837 test -z "$as_dir" && as_dir=. 3838 for lt_ac_prog in sed gsed; do 3839 for ac_exec_ext in '' $ac_executable_extensions; do 3840 if $as_executable_p "$as_dir/$lt_ac_prog$ac_exec_ext"; then 3841 lt_ac_sed_list="$lt_ac_sed_list $as_dir/$lt_ac_prog$ac_exec_ext" 3842 fi 3843 done 3844 done 3845done 3846IFS=$as_save_IFS 3847lt_ac_max=0 3848lt_ac_count=0 3849# Add /usr/xpg4/bin/sed as it is typically found on Solaris 3850# along with /bin/sed that truncates output. 3851for lt_ac_sed in $lt_ac_sed_list /usr/xpg4/bin/sed; do 3852 test ! -f $lt_ac_sed && continue 3853 cat /dev/null > conftest.in 3854 lt_ac_count=0 3855 echo $ECHO_N "0123456789$ECHO_C" >conftest.in 3856 # Check for GNU sed and select it if it is found. 3857 if "$lt_ac_sed" --version 2>&1 < /dev/null | grep 'GNU' > /dev/null; then 3858 lt_cv_path_SED=$lt_ac_sed 3859 break 3860 fi 3861 while true; do 3862 cat conftest.in conftest.in >conftest.tmp 3863 mv conftest.tmp conftest.in 3864 cp conftest.in conftest.nl 3865 echo >>conftest.nl 3866 $lt_ac_sed -e 's/a$//' < conftest.nl >conftest.out || break 3867 cmp -s conftest.out conftest.nl || break 3868 # 10000 chars as input seems more than enough 3869 test $lt_ac_count -gt 10 && break 3870 lt_ac_count=`expr $lt_ac_count + 1` 3871 if test $lt_ac_count -gt $lt_ac_max; then 3872 lt_ac_max=$lt_ac_count 3873 lt_cv_path_SED=$lt_ac_sed 3874 fi 3875 done 3876done 3877 3878fi 3879 3880SED=$lt_cv_path_SED 3881 3882echo "$as_me:$LINENO: result: $SED" >&5 3883echo "${ECHO_T}$SED" >&6 3884 3885test -z "$SED" && SED=sed 3886Xsed="$SED -e 1s/^X//" 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898echo "$as_me:$LINENO: checking for egrep" >&5 3899echo $ECHO_N "checking for egrep... $ECHO_C" >&6 3900if test "${ac_cv_prog_egrep+set}" = set; then 3901 echo $ECHO_N "(cached) $ECHO_C" >&6 3902else 3903 if echo a | (grep -E '(a|b)') >/dev/null 2>&1 3904 then ac_cv_prog_egrep='grep -E' 3905 else ac_cv_prog_egrep='egrep' 3906 fi 3907fi 3908echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 3909echo "${ECHO_T}$ac_cv_prog_egrep" >&6 3910 EGREP=$ac_cv_prog_egrep 3911 3912 3913echo "$as_me:$LINENO: checking for fgrep" >&5 3914echo $ECHO_N "checking for fgrep... $ECHO_C" >&6 3915if test "${ac_cv_prog_fgrep+set}" = set; then 3916 echo $ECHO_N "(cached) $ECHO_C" >&6 3917else 3918 if echo 'ab*c' | (grep -F 'ab*c') >/dev/null 2>&1 3919 then ac_cv_prog_fgrep='grep -F' 3920 else ac_cv_prog_fgrep='fgrep' 3921 fi 3922fi 3923echo "$as_me:$LINENO: result: $ac_cv_prog_fgrep" >&5 3924echo "${ECHO_T}$ac_cv_prog_fgrep" >&6 3925 FGREP=$ac_cv_prog_fgrep 3926 3927 3928test -z "$GREP" && GREP=grep 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948# Check whether --with-gnu-ld or --without-gnu-ld was given. 3949if test "${with_gnu_ld+set}" = set; then 3950 withval="$with_gnu_ld" 3951 test "$withval" = no || with_gnu_ld=yes 3952else 3953 with_gnu_ld=no 3954fi; 3955ac_prog=ld 3956if test "$GCC" = yes; then 3957 # Check if gcc -print-prog-name=ld gives a path. 3958 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 3959echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 3960 case $host in 3961 *-*-mingw*) 3962 # gcc leaves a trailing carriage return which upsets mingw 3963 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3964 *) 3965 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3966 esac 3967 case $ac_prog in 3968 # Accept absolute paths. 3969 [\\/]* | ?:[\\/]*) 3970 re_direlt='/[^/][^/]*/\.\./' 3971 # Canonicalize the pathname of ld 3972 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3973 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3974 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3975 done 3976 test -z "$LD" && LD="$ac_prog" 3977 ;; 3978 "") 3979 # If it fails, then pretend we aren't using GCC. 3980 ac_prog=ld 3981 ;; 3982 *) 3983 # If it is relative, then search for the first ld in PATH. 3984 with_gnu_ld=unknown 3985 ;; 3986 esac 3987elif test "$with_gnu_ld" = yes; then 3988 echo "$as_me:$LINENO: checking for GNU ld" >&5 3989echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 3990else 3991 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 3992echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 3993fi 3994if test "${lt_cv_path_LD+set}" = set; then 3995 echo $ECHO_N "(cached) $ECHO_C" >&6 3996else 3997 if test -z "$LD"; then 3998 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 3999 for ac_dir in $PATH; do 4000 IFS="$lt_save_ifs" 4001 test -z "$ac_dir" && ac_dir=. 4002 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 4003 lt_cv_path_LD="$ac_dir/$ac_prog" 4004 # Check to see if the program is GNU ld. I'd rather use --version, 4005 # but apparently some variants of GNU ld only accept -v. 4006 # Break only if it was the GNU/non-GNU ld that we prefer. 4007 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 4008 *GNU* | *'with BFD'*) 4009 test "$with_gnu_ld" != no && break 4010 ;; 4011 *) 4012 test "$with_gnu_ld" != yes && break 4013 ;; 4014 esac 4015 fi 4016 done 4017 IFS="$lt_save_ifs" 4018else 4019 lt_cv_path_LD="$LD" # Let the user override the test with a path. 4020fi 4021fi 4022 4023LD="$lt_cv_path_LD" 4024if test -n "$LD"; then 4025 echo "$as_me:$LINENO: result: $LD" >&5 4026echo "${ECHO_T}$LD" >&6 4027else 4028 echo "$as_me:$LINENO: result: no" >&5 4029echo "${ECHO_T}no" >&6 4030fi 4031test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 4032echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 4033 { (exit 1); exit 1; }; } 4034echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 4035echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 4036if test "${lt_cv_prog_gnu_ld+set}" = set; then 4037 echo $ECHO_N "(cached) $ECHO_C" >&6 4038else 4039 # I'd rather use --version here, but apparently some GNU lds only accept -v. 4040case `$LD -v 2>&1 </dev/null` in 4041*GNU* | *'with BFD'*) 4042 lt_cv_prog_gnu_ld=yes 4043 ;; 4044*) 4045 lt_cv_prog_gnu_ld=no 4046 ;; 4047esac 4048fi 4049echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 4050echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 4051with_gnu_ld=$lt_cv_prog_gnu_ld 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062echo "$as_me:$LINENO: checking for BSD- or MS-compatible name lister (nm)" >&5 4063echo $ECHO_N "checking for BSD- or MS-compatible name lister (nm)... $ECHO_C" >&6 4064if test "${lt_cv_path_NM+set}" = set; then 4065 echo $ECHO_N "(cached) $ECHO_C" >&6 4066else 4067 if test -n "$NM"; then 4068 # Let the user override the test. 4069 lt_cv_path_NM="$NM" 4070else 4071 lt_nm_to_check="${ac_tool_prefix}nm" 4072 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 4073 lt_nm_to_check="$lt_nm_to_check nm" 4074 fi 4075 for lt_tmp_nm in $lt_nm_to_check; do 4076 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 4077 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 4078 IFS="$lt_save_ifs" 4079 test -z "$ac_dir" && ac_dir=. 4080 tmp_nm="$ac_dir/$lt_tmp_nm" 4081 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 4082 # Check to see if the nm accepts a BSD-compat flag. 4083 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 4084 # nm: unknown option "B" ignored 4085 # Tru64's nm complains that /dev/null is an invalid object file 4086 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 4087 */dev/null* | *'Invalid file or object type'*) 4088 lt_cv_path_NM="$tmp_nm -B" 4089 break 4090 ;; 4091 *) 4092 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 4093 */dev/null*) 4094 lt_cv_path_NM="$tmp_nm -p" 4095 break 4096 ;; 4097 *) 4098 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 4099 continue # so that we can try to find one that supports BSD flags 4100 ;; 4101 esac 4102 ;; 4103 esac 4104 fi 4105 done 4106 IFS="$lt_save_ifs" 4107 done 4108 : ${lt_cv_path_NM=no} 4109fi 4110fi 4111echo "$as_me:$LINENO: result: $lt_cv_path_NM" >&5 4112echo "${ECHO_T}$lt_cv_path_NM" >&6 4113if test "$lt_cv_path_NM" != "no"; then 4114 NM="$lt_cv_path_NM" 4115else 4116 # Didn't find any BSD compatible name lister, look for dumpbin. 4117 if test -n "$ac_tool_prefix"; then 4118 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4119 do 4120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4121set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4122echo "$as_me:$LINENO: checking for $ac_word" >&5 4123echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4124if test "${ac_cv_prog_DUMPBIN+set}" = set; then 4125 echo $ECHO_N "(cached) $ECHO_C" >&6 4126else 4127 if test -n "$DUMPBIN"; then 4128 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 4129else 4130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4131for as_dir in $PATH 4132do 4133 IFS=$as_save_IFS 4134 test -z "$as_dir" && as_dir=. 4135 for ac_exec_ext in '' $ac_executable_extensions; do 4136 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4137 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 4138 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4139 break 2 4140 fi 4141done 4142done 4143 4144fi 4145fi 4146DUMPBIN=$ac_cv_prog_DUMPBIN 4147if test -n "$DUMPBIN"; then 4148 echo "$as_me:$LINENO: result: $DUMPBIN" >&5 4149echo "${ECHO_T}$DUMPBIN" >&6 4150else 4151 echo "$as_me:$LINENO: result: no" >&5 4152echo "${ECHO_T}no" >&6 4153fi 4154 4155 test -n "$DUMPBIN" && break 4156 done 4157fi 4158if test -z "$DUMPBIN"; then 4159 ac_ct_DUMPBIN=$DUMPBIN 4160 for ac_prog in "dumpbin -symbols" "link -dump -symbols" 4161do 4162 # Extract the first word of "$ac_prog", so it can be a program name with args. 4163set dummy $ac_prog; ac_word=$2 4164echo "$as_me:$LINENO: checking for $ac_word" >&5 4165echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4166if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then 4167 echo $ECHO_N "(cached) $ECHO_C" >&6 4168else 4169 if test -n "$ac_ct_DUMPBIN"; then 4170 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4171else 4172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4173for as_dir in $PATH 4174do 4175 IFS=$as_save_IFS 4176 test -z "$as_dir" && as_dir=. 4177 for ac_exec_ext in '' $ac_executable_extensions; do 4178 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4179 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4180 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4181 break 2 4182 fi 4183done 4184done 4185 4186fi 4187fi 4188ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4189if test -n "$ac_ct_DUMPBIN"; then 4190 echo "$as_me:$LINENO: result: $ac_ct_DUMPBIN" >&5 4191echo "${ECHO_T}$ac_ct_DUMPBIN" >&6 4192else 4193 echo "$as_me:$LINENO: result: no" >&5 4194echo "${ECHO_T}no" >&6 4195fi 4196 4197 test -n "$ac_ct_DUMPBIN" && break 4198done 4199test -n "$ac_ct_DUMPBIN" || ac_ct_DUMPBIN=":" 4200 4201 DUMPBIN=$ac_ct_DUMPBIN 4202fi 4203 4204 4205 if test "$DUMPBIN" != ":"; then 4206 NM="$DUMPBIN" 4207 fi 4208fi 4209test -z "$NM" && NM=nm 4210 4211 4212 4213 4214 4215 4216echo "$as_me:$LINENO: checking the name lister ($NM) interface" >&5 4217echo $ECHO_N "checking the name lister ($NM) interface... $ECHO_C" >&6 4218if test "${lt_cv_nm_interface+set}" = set; then 4219 echo $ECHO_N "(cached) $ECHO_C" >&6 4220else 4221 lt_cv_nm_interface="BSD nm" 4222 echo "int some_variable = 0;" > conftest.$ac_ext 4223 (eval echo "\"\$as_me:4223: $ac_compile\"" >&5) 4224 (eval "$ac_compile" 2>conftest.err) 4225 cat conftest.err >&5 4226 (eval echo "\"\$as_me:4226: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4227 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4228 cat conftest.err >&5 4229 (eval echo "\"\$as_me:4229: output\"" >&5) 4230 cat conftest.out >&5 4231 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4232 lt_cv_nm_interface="MS dumpbin" 4233 fi 4234 rm -f conftest* 4235fi 4236echo "$as_me:$LINENO: result: $lt_cv_nm_interface" >&5 4237echo "${ECHO_T}$lt_cv_nm_interface" >&6 4238 4239echo "$as_me:$LINENO: checking whether ln -s works" >&5 4240echo $ECHO_N "checking whether ln -s works... $ECHO_C" >&6 4241LN_S=$as_ln_s 4242if test "$LN_S" = "ln -s"; then 4243 echo "$as_me:$LINENO: result: yes" >&5 4244echo "${ECHO_T}yes" >&6 4245else 4246 echo "$as_me:$LINENO: result: no, using $LN_S" >&5 4247echo "${ECHO_T}no, using $LN_S" >&6 4248fi 4249 4250# find the maximum length of command line arguments 4251echo "$as_me:$LINENO: checking the maximum length of command line arguments" >&5 4252echo $ECHO_N "checking the maximum length of command line arguments... $ECHO_C" >&6 4253if test "${lt_cv_sys_max_cmd_len+set}" = set; then 4254 echo $ECHO_N "(cached) $ECHO_C" >&6 4255else 4256 i=0 4257 teststring="ABCD" 4258 4259 case $build_os in 4260 msdosdjgpp*) 4261 # On DJGPP, this test can blow up pretty badly due to problems in libc 4262 # (any single argument exceeding 2000 bytes causes a buffer overrun 4263 # during glob expansion). Even if it were fixed, the result of this 4264 # check would be larger than it should be. 4265 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4266 ;; 4267 4268 gnu*) 4269 # Under GNU Hurd, this test is not required because there is 4270 # no limit to the length of command line arguments. 4271 # Libtool will interpret -1 as no limit whatsoever 4272 lt_cv_sys_max_cmd_len=-1; 4273 ;; 4274 4275 cygwin* | mingw*) 4276 # On Win9x/ME, this test blows up -- it succeeds, but takes 4277 # about 5 minutes as the teststring grows exponentially. 4278 # Worse, since 9x/ME are not pre-emptively multitasking, 4279 # you end up with a "frozen" computer, even though with patience 4280 # the test eventually succeeds (with a max line length of 256k). 4281 # Instead, let's just punt: use the minimum linelength reported by 4282 # all of the supported platforms: 8192 (on NT/2K/XP). 4283 lt_cv_sys_max_cmd_len=8192; 4284 ;; 4285 4286 amigaos*) 4287 # On AmigaOS with pdksh, this test takes hours, literally. 4288 # So we just punt and use a minimum line length of 8192. 4289 lt_cv_sys_max_cmd_len=8192; 4290 ;; 4291 4292 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 4293 # This has been around since 386BSD, at least. Likely further. 4294 if test -x /sbin/sysctl; then 4295 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4296 elif test -x /usr/sbin/sysctl; then 4297 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4298 else 4299 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4300 fi 4301 # And add a safety zone 4302 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4303 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4304 ;; 4305 4306 interix*) 4307 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4308 lt_cv_sys_max_cmd_len=196608 4309 ;; 4310 4311 osf*) 4312 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4313 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4314 # nice to cause kernel panics so lets avoid the loop below. 4315 # First set a reasonable default. 4316 lt_cv_sys_max_cmd_len=16384 4317 # 4318 if test -x /sbin/sysconfig; then 4319 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4320 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4321 esac 4322 fi 4323 ;; 4324 sco3.2v5*) 4325 lt_cv_sys_max_cmd_len=102400 4326 ;; 4327 sysv5* | sco5v6* | sysv4.2uw2*) 4328 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4329 if test -n "$kargmax"; then 4330 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4331 else 4332 lt_cv_sys_max_cmd_len=32768 4333 fi 4334 ;; 4335 *) 4336 lt_cv_sys_max_cmd_len=`getconf ARG_MAX 2> /dev/null` 4337 if test -n $lt_cv_sys_max_cmd_len; then 4338 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4339 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4340 else 4341 # Make teststring a little bigger before we do anything with it. 4342 # a 1K string should be a reasonable start. 4343 for i in 1 2 3 4 5 6 7 8 ; do 4344 teststring=$teststring$teststring 4345 done 4346 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4347 # If test is not a shell built-in, we'll probably end up computing a 4348 # maximum length that is only half of the actual maximum length, but 4349 # we can't tell. 4350 while { test "X"`$SHELL $0 --fallback-echo "X$teststring$teststring" 2>/dev/null` \ 4351 = "XX$teststring$teststring"; } >/dev/null 2>&1 && 4352 test $i != 17 # 1/2 MB should be enough 4353 do 4354 i=`expr $i + 1` 4355 teststring=$teststring$teststring 4356 done 4357 # Only check the string length outside the loop. 4358 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4359 teststring= 4360 # Add a significant safety factor because C++ compilers can tack on 4361 # massive amounts of additional arguments before passing them to the 4362 # linker. It appears as though 1/2 is a usable value. 4363 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4364 fi 4365 ;; 4366 esac 4367 4368fi 4369 4370if test -n $lt_cv_sys_max_cmd_len ; then 4371 echo "$as_me:$LINENO: result: $lt_cv_sys_max_cmd_len" >&5 4372echo "${ECHO_T}$lt_cv_sys_max_cmd_len" >&6 4373else 4374 echo "$as_me:$LINENO: result: none" >&5 4375echo "${ECHO_T}none" >&6 4376fi 4377max_cmd_len=$lt_cv_sys_max_cmd_len 4378 4379 4380 4381 4382 4383 4384 4385: ${CP="cp -f"} 4386: ${MV="mv -f"} 4387: ${RM="rm -f"} 4388 4389echo "$as_me:$LINENO: checking whether the shell understands some XSI constructs" >&5 4390echo $ECHO_N "checking whether the shell understands some XSI constructs... $ECHO_C" >&6 4391# Try some XSI features 4392xsi_shell=no 4393( _lt_dummy="a/b/c" 4394 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 4395 = c,a/b,, ) >/dev/null 2>&1 \ 4396 && xsi_shell=yes 4397echo "$as_me:$LINENO: result: $xsi_shell" >&5 4398echo "${ECHO_T}$xsi_shell" >&6 4399 4400 4401echo "$as_me:$LINENO: checking whether the shell understands \"+=\"" >&5 4402echo $ECHO_N "checking whether the shell understands \"+=\"... $ECHO_C" >&6 4403lt_shell_append=no 4404( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 4405 >/dev/null 2>&1 \ 4406 && lt_shell_append=yes 4407echo "$as_me:$LINENO: result: $lt_shell_append" >&5 4408echo "${ECHO_T}$lt_shell_append" >&6 4409 4410 4411if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4412 lt_unset=unset 4413else 4414 lt_unset=false 4415fi 4416 4417 4418 4419 4420 4421# test EBCDIC or ASCII 4422case `echo X|tr X '\101'` in 4423 A) # ASCII based system 4424 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4425 lt_SP2NL='tr \040 \012' 4426 lt_NL2SP='tr \015\012 \040\040' 4427 ;; 4428 *) # EBCDIC based system 4429 lt_SP2NL='tr \100 \n' 4430 lt_NL2SP='tr \r\n \100\100' 4431 ;; 4432esac 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442echo "$as_me:$LINENO: checking for $LD option to reload object files" >&5 4443echo $ECHO_N "checking for $LD option to reload object files... $ECHO_C" >&6 4444if test "${lt_cv_ld_reload_flag+set}" = set; then 4445 echo $ECHO_N "(cached) $ECHO_C" >&6 4446else 4447 lt_cv_ld_reload_flag='-r' 4448fi 4449echo "$as_me:$LINENO: result: $lt_cv_ld_reload_flag" >&5 4450echo "${ECHO_T}$lt_cv_ld_reload_flag" >&6 4451reload_flag=$lt_cv_ld_reload_flag 4452case $reload_flag in 4453"" | " "*) ;; 4454*) reload_flag=" $reload_flag" ;; 4455esac 4456reload_cmds='$LD$reload_flag -o $output$reload_objs' 4457case $host_os in 4458 darwin*) 4459 if test "$GCC" = yes; then 4460 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 4461 else 4462 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4463 fi 4464 ;; 4465esac 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476echo "$as_me:$LINENO: checking how to recognize dependent libraries" >&5 4477echo $ECHO_N "checking how to recognize dependent libraries... $ECHO_C" >&6 4478if test "${lt_cv_deplibs_check_method+set}" = set; then 4479 echo $ECHO_N "(cached) $ECHO_C" >&6 4480else 4481 lt_cv_file_magic_cmd='$MAGIC_CMD' 4482lt_cv_file_magic_test_file= 4483lt_cv_deplibs_check_method='unknown' 4484# Need to set the preceding variable on all platforms that support 4485# interlibrary dependencies. 4486# 'none' -- dependencies not supported. 4487# `unknown' -- same as none, but documents that we really don't know. 4488# 'pass_all' -- all dependencies passed with no checks. 4489# 'test_compile' -- check by making test program. 4490# 'file_magic [[regex]]' -- check by looking for files in library path 4491# which responds to the $file_magic_cmd with a given extended regex. 4492# If you have `file' or equivalent on your system and you're not sure 4493# whether `pass_all' will *always* work, you probably want this one. 4494 4495case $host_os in 4496aix[4-9]*) 4497 lt_cv_deplibs_check_method=pass_all 4498 ;; 4499 4500beos*) 4501 lt_cv_deplibs_check_method=pass_all 4502 ;; 4503 4504bsdi[45]*) 4505 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4506 lt_cv_file_magic_cmd='/usr/bin/file -L' 4507 lt_cv_file_magic_test_file=/shlib/libc.so 4508 ;; 4509 4510cygwin*) 4511 # func_win32_libid is a shell function defined in ltmain.sh 4512 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4513 lt_cv_file_magic_cmd='func_win32_libid' 4514 ;; 4515 4516mingw* | pw32*) 4517 # Base MSYS/MinGW do not provide the 'file' command needed by 4518 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4519 # unless we find 'file', for example because we are cross-compiling. 4520 if ( file / ) >/dev/null 2>&1; then 4521 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4522 lt_cv_file_magic_cmd='func_win32_libid' 4523 else 4524 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 4525 lt_cv_file_magic_cmd='$OBJDUMP -f' 4526 fi 4527 ;; 4528 4529darwin* | rhapsody*) 4530 lt_cv_deplibs_check_method=pass_all 4531 ;; 4532 4533freebsd* | dragonfly*) 4534 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4535 case $host_cpu in 4536 i*86 ) 4537 # Not sure whether the presence of OpenBSD here was a mistake. 4538 # Let's accept both of them until this is cleared up. 4539 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4540 lt_cv_file_magic_cmd=/usr/bin/file 4541 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4542 ;; 4543 esac 4544 else 4545 lt_cv_deplibs_check_method=pass_all 4546 fi 4547 ;; 4548 4549gnu*) 4550 lt_cv_deplibs_check_method=pass_all 4551 ;; 4552 4553hpux10.20* | hpux11*) 4554 lt_cv_file_magic_cmd=/usr/bin/file 4555 case $host_cpu in 4556 ia64*) 4557 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4558 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4559 ;; 4560 hppa*64*) 4561 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]' 4562 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4563 ;; 4564 *) 4565 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9].[0-9]) shared library' 4566 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4567 ;; 4568 esac 4569 ;; 4570 4571interix[3-9]*) 4572 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4573 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4574 ;; 4575 4576irix5* | irix6* | nonstopux*) 4577 case $LD in 4578 *-32|*"-32 ") libmagic=32-bit;; 4579 *-n32|*"-n32 ") libmagic=N32;; 4580 *-64|*"-64 ") libmagic=64-bit;; 4581 *) libmagic=never-match;; 4582 esac 4583 lt_cv_deplibs_check_method=pass_all 4584 ;; 4585 4586# This must be Linux ELF. 4587linux* | k*bsd*-gnu) 4588 lt_cv_deplibs_check_method=pass_all 4589 ;; 4590 4591netbsd*) 4592 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4593 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4594 else 4595 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4596 fi 4597 ;; 4598 4599newos6*) 4600 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4601 lt_cv_file_magic_cmd=/usr/bin/file 4602 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4603 ;; 4604 4605*nto* | *qnx*) 4606 lt_cv_deplibs_check_method=pass_all 4607 ;; 4608 4609openbsd*) 4610 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 4611 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4612 else 4613 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4614 fi 4615 ;; 4616 4617osf3* | osf4* | osf5*) 4618 lt_cv_deplibs_check_method=pass_all 4619 ;; 4620 4621rdos*) 4622 lt_cv_deplibs_check_method=pass_all 4623 ;; 4624 4625solaris*) 4626 lt_cv_deplibs_check_method=pass_all 4627 ;; 4628 4629sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4630 lt_cv_deplibs_check_method=pass_all 4631 ;; 4632 4633sysv4 | sysv4.3*) 4634 case $host_vendor in 4635 motorola) 4636 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]' 4637 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4638 ;; 4639 ncr) 4640 lt_cv_deplibs_check_method=pass_all 4641 ;; 4642 sequent) 4643 lt_cv_file_magic_cmd='/bin/file' 4644 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4645 ;; 4646 sni) 4647 lt_cv_file_magic_cmd='/bin/file' 4648 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4649 lt_cv_file_magic_test_file=/lib/libc.so 4650 ;; 4651 siemens) 4652 lt_cv_deplibs_check_method=pass_all 4653 ;; 4654 pc) 4655 lt_cv_deplibs_check_method=pass_all 4656 ;; 4657 esac 4658 ;; 4659 4660tpf*) 4661 lt_cv_deplibs_check_method=pass_all 4662 ;; 4663esac 4664 4665fi 4666echo "$as_me:$LINENO: result: $lt_cv_deplibs_check_method" >&5 4667echo "${ECHO_T}$lt_cv_deplibs_check_method" >&6 4668file_magic_cmd=$lt_cv_file_magic_cmd 4669deplibs_check_method=$lt_cv_deplibs_check_method 4670test -z "$deplibs_check_method" && deplibs_check_method=unknown 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683if test -n "$ac_tool_prefix"; then 4684 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4685set dummy ${ac_tool_prefix}ar; ac_word=$2 4686echo "$as_me:$LINENO: checking for $ac_word" >&5 4687echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4688if test "${ac_cv_prog_AR+set}" = set; then 4689 echo $ECHO_N "(cached) $ECHO_C" >&6 4690else 4691 if test -n "$AR"; then 4692 ac_cv_prog_AR="$AR" # Let the user override the test. 4693else 4694as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4695for as_dir in $PATH 4696do 4697 IFS=$as_save_IFS 4698 test -z "$as_dir" && as_dir=. 4699 for ac_exec_ext in '' $ac_executable_extensions; do 4700 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4701 ac_cv_prog_AR="${ac_tool_prefix}ar" 4702 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4703 break 2 4704 fi 4705done 4706done 4707 4708fi 4709fi 4710AR=$ac_cv_prog_AR 4711if test -n "$AR"; then 4712 echo "$as_me:$LINENO: result: $AR" >&5 4713echo "${ECHO_T}$AR" >&6 4714else 4715 echo "$as_me:$LINENO: result: no" >&5 4716echo "${ECHO_T}no" >&6 4717fi 4718 4719fi 4720if test -z "$ac_cv_prog_AR"; then 4721 ac_ct_AR=$AR 4722 # Extract the first word of "ar", so it can be a program name with args. 4723set dummy ar; ac_word=$2 4724echo "$as_me:$LINENO: checking for $ac_word" >&5 4725echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4726if test "${ac_cv_prog_ac_ct_AR+set}" = set; then 4727 echo $ECHO_N "(cached) $ECHO_C" >&6 4728else 4729 if test -n "$ac_ct_AR"; then 4730 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4731else 4732as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4733for as_dir in $PATH 4734do 4735 IFS=$as_save_IFS 4736 test -z "$as_dir" && as_dir=. 4737 for ac_exec_ext in '' $ac_executable_extensions; do 4738 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4739 ac_cv_prog_ac_ct_AR="ar" 4740 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4741 break 2 4742 fi 4743done 4744done 4745 4746 test -z "$ac_cv_prog_ac_ct_AR" && ac_cv_prog_ac_ct_AR="false" 4747fi 4748fi 4749ac_ct_AR=$ac_cv_prog_ac_ct_AR 4750if test -n "$ac_ct_AR"; then 4751 echo "$as_me:$LINENO: result: $ac_ct_AR" >&5 4752echo "${ECHO_T}$ac_ct_AR" >&6 4753else 4754 echo "$as_me:$LINENO: result: no" >&5 4755echo "${ECHO_T}no" >&6 4756fi 4757 4758 AR=$ac_ct_AR 4759else 4760 AR="$ac_cv_prog_AR" 4761fi 4762 4763test -z "$AR" && AR=ar 4764test -z "$AR_FLAGS" && AR_FLAGS=cru 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776if test -n "$ac_tool_prefix"; then 4777 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 4778set dummy ${ac_tool_prefix}strip; ac_word=$2 4779echo "$as_me:$LINENO: checking for $ac_word" >&5 4780echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4781if test "${ac_cv_prog_STRIP+set}" = set; then 4782 echo $ECHO_N "(cached) $ECHO_C" >&6 4783else 4784 if test -n "$STRIP"; then 4785 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 4786else 4787as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4788for as_dir in $PATH 4789do 4790 IFS=$as_save_IFS 4791 test -z "$as_dir" && as_dir=. 4792 for ac_exec_ext in '' $ac_executable_extensions; do 4793 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4794 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 4795 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4796 break 2 4797 fi 4798done 4799done 4800 4801fi 4802fi 4803STRIP=$ac_cv_prog_STRIP 4804if test -n "$STRIP"; then 4805 echo "$as_me:$LINENO: result: $STRIP" >&5 4806echo "${ECHO_T}$STRIP" >&6 4807else 4808 echo "$as_me:$LINENO: result: no" >&5 4809echo "${ECHO_T}no" >&6 4810fi 4811 4812fi 4813if test -z "$ac_cv_prog_STRIP"; then 4814 ac_ct_STRIP=$STRIP 4815 # Extract the first word of "strip", so it can be a program name with args. 4816set dummy strip; ac_word=$2 4817echo "$as_me:$LINENO: checking for $ac_word" >&5 4818echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4819if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then 4820 echo $ECHO_N "(cached) $ECHO_C" >&6 4821else 4822 if test -n "$ac_ct_STRIP"; then 4823 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 4824else 4825as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4826for as_dir in $PATH 4827do 4828 IFS=$as_save_IFS 4829 test -z "$as_dir" && as_dir=. 4830 for ac_exec_ext in '' $ac_executable_extensions; do 4831 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4832 ac_cv_prog_ac_ct_STRIP="strip" 4833 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4834 break 2 4835 fi 4836done 4837done 4838 4839 test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" 4840fi 4841fi 4842ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 4843if test -n "$ac_ct_STRIP"; then 4844 echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 4845echo "${ECHO_T}$ac_ct_STRIP" >&6 4846else 4847 echo "$as_me:$LINENO: result: no" >&5 4848echo "${ECHO_T}no" >&6 4849fi 4850 4851 STRIP=$ac_ct_STRIP 4852else 4853 STRIP="$ac_cv_prog_STRIP" 4854fi 4855 4856test -z "$STRIP" && STRIP=: 4857 4858 4859 4860 4861 4862 4863if test -n "$ac_tool_prefix"; then 4864 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 4865set dummy ${ac_tool_prefix}ranlib; ac_word=$2 4866echo "$as_me:$LINENO: checking for $ac_word" >&5 4867echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4868if test "${ac_cv_prog_RANLIB+set}" = set; then 4869 echo $ECHO_N "(cached) $ECHO_C" >&6 4870else 4871 if test -n "$RANLIB"; then 4872 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 4873else 4874as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4875for as_dir in $PATH 4876do 4877 IFS=$as_save_IFS 4878 test -z "$as_dir" && as_dir=. 4879 for ac_exec_ext in '' $ac_executable_extensions; do 4880 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4881 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 4882 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4883 break 2 4884 fi 4885done 4886done 4887 4888fi 4889fi 4890RANLIB=$ac_cv_prog_RANLIB 4891if test -n "$RANLIB"; then 4892 echo "$as_me:$LINENO: result: $RANLIB" >&5 4893echo "${ECHO_T}$RANLIB" >&6 4894else 4895 echo "$as_me:$LINENO: result: no" >&5 4896echo "${ECHO_T}no" >&6 4897fi 4898 4899fi 4900if test -z "$ac_cv_prog_RANLIB"; then 4901 ac_ct_RANLIB=$RANLIB 4902 # Extract the first word of "ranlib", so it can be a program name with args. 4903set dummy ranlib; ac_word=$2 4904echo "$as_me:$LINENO: checking for $ac_word" >&5 4905echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 4906if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then 4907 echo $ECHO_N "(cached) $ECHO_C" >&6 4908else 4909 if test -n "$ac_ct_RANLIB"; then 4910 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 4911else 4912as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4913for as_dir in $PATH 4914do 4915 IFS=$as_save_IFS 4916 test -z "$as_dir" && as_dir=. 4917 for ac_exec_ext in '' $ac_executable_extensions; do 4918 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4919 ac_cv_prog_ac_ct_RANLIB="ranlib" 4920 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 4921 break 2 4922 fi 4923done 4924done 4925 4926 test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" 4927fi 4928fi 4929ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 4930if test -n "$ac_ct_RANLIB"; then 4931 echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 4932echo "${ECHO_T}$ac_ct_RANLIB" >&6 4933else 4934 echo "$as_me:$LINENO: result: no" >&5 4935echo "${ECHO_T}no" >&6 4936fi 4937 4938 RANLIB=$ac_ct_RANLIB 4939else 4940 RANLIB="$ac_cv_prog_RANLIB" 4941fi 4942 4943test -z "$RANLIB" && RANLIB=: 4944 4945 4946 4947 4948 4949 4950# Determine commands to create old-style static archives. 4951old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs$old_deplibs' 4952old_postinstall_cmds='chmod 644 $oldlib' 4953old_postuninstall_cmds= 4954 4955if test -n "$RANLIB"; then 4956 case $host_os in 4957 openbsd*) 4958 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 4959 ;; 4960 *) 4961 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 4962 ;; 4963 esac 4964 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 4965fi 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000# If no C compiler was specified, use CC. 5001LTCC=${LTCC-"$CC"} 5002 5003# If no C compiler flags were specified, use CFLAGS. 5004LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5005 5006# Allow CC to be a program name with arguments. 5007compiler=$CC 5008 5009 5010# Check for command to grab the raw symbol name followed by C symbol from nm. 5011echo "$as_me:$LINENO: checking command to parse $NM output from $compiler object" >&5 5012echo $ECHO_N "checking command to parse $NM output from $compiler object... $ECHO_C" >&6 5013if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then 5014 echo $ECHO_N "(cached) $ECHO_C" >&6 5015else 5016 5017# These are sane defaults that work on at least a few old systems. 5018# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5019 5020# Character class describing NM global symbol codes. 5021symcode='[BCDEGRST]' 5022 5023# Regexp to match symbols that can be accessed directly from C. 5024sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5025 5026# Define system-specific variables. 5027case $host_os in 5028aix*) 5029 symcode='[BCDT]' 5030 ;; 5031cygwin* | mingw* | pw32*) 5032 symcode='[ABCDGISTW]' 5033 ;; 5034hpux*) 5035 if test "$host_cpu" = ia64; then 5036 symcode='[ABCDEGRST]' 5037 fi 5038 ;; 5039irix* | nonstopux*) 5040 symcode='[BCDEGRST]' 5041 ;; 5042osf*) 5043 symcode='[BCDEGQRST]' 5044 ;; 5045solaris*) 5046 symcode='[BDRT]' 5047 ;; 5048sco3.2v5*) 5049 symcode='[DT]' 5050 ;; 5051sysv4.2uw2*) 5052 symcode='[DT]' 5053 ;; 5054sysv5* | sco5v6* | unixware* | OpenUNIX*) 5055 symcode='[ABDT]' 5056 ;; 5057sysv4) 5058 symcode='[DFNSTU]' 5059 ;; 5060esac 5061 5062# If we're using GNU nm, then use its standard symbol codes. 5063case `$NM -V 2>&1` in 5064*GNU* | *'with BFD'*) 5065 symcode='[ABCDGIRSTW]' ;; 5066esac 5067 5068# Transform an extracted symbol line into a proper C declaration. 5069# Some systems (esp. on ia64) link data and code symbols differently, 5070# so use this general approach. 5071lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 5072 5073# Transform an extracted symbol line into symbol name and symbol address 5074lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 5075 5076# Handle CRLF in mingw tool chain 5077opt_cr= 5078case $build_os in 5079mingw*) 5080 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5081 ;; 5082esac 5083 5084# Try without a prefix underscore, then with it. 5085for ac_symprfx in "" "_"; do 5086 5087 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5088 symxfrm="\\1 $ac_symprfx\\2 \\2" 5089 5090 # Write the raw and C identifiers. 5091 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5092 # Fake it for dumpbin and say T for any non-static function 5093 # and D for any global variable. 5094 # Also find C++ and __fastcall symbols from MSVC++, 5095 # which start with @ or ?. 5096 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5097" {last_section=section; section=\$ 3};"\ 5098" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5099" \$ 0!~/External *\|/{next};"\ 5100" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5101" {if(hide[section]) next};"\ 5102" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 5103" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 5104" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 5105" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 5106" ' prfx=^$ac_symprfx" 5107 else 5108 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5109 fi 5110 5111 # Check to see that the pipe works correctly. 5112 pipe_works=no 5113 5114 rm -f conftest* 5115 cat > conftest.$ac_ext <<_LT_EOF 5116#ifdef __cplusplus 5117extern "C" { 5118#endif 5119char nm_test_var; 5120void nm_test_func(void); 5121void nm_test_func(void){} 5122#ifdef __cplusplus 5123} 5124#endif 5125int main(){nm_test_var='a';nm_test_func();return(0);} 5126_LT_EOF 5127 5128 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5129 (eval $ac_compile) 2>&5 5130 ac_status=$? 5131 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5132 (exit $ac_status); }; then 5133 # Now try to grab the symbols. 5134 nlist=conftest.nm 5135 if { (eval echo "$as_me:$LINENO: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist\"") >&5 5136 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $nlist) 2>&5 5137 ac_status=$? 5138 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5139 (exit $ac_status); } && test -s "$nlist"; then 5140 # Try sorting and uniquifying the output. 5141 if sort "$nlist" | uniq > "$nlist"T; then 5142 mv -f "$nlist"T "$nlist" 5143 else 5144 rm -f "$nlist"T 5145 fi 5146 5147 # Make sure that we snagged all the symbols we need. 5148 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5149 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5150 cat <<_LT_EOF > conftest.$ac_ext 5151#ifdef __cplusplus 5152extern "C" { 5153#endif 5154 5155_LT_EOF 5156 # Now generate the symbol file. 5157 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5158 5159 cat <<_LT_EOF >> conftest.$ac_ext 5160 5161/* The mapping between symbol names and symbols. */ 5162const struct { 5163 const char *name; 5164 void *address; 5165} 5166lt__PROGRAM__LTX_preloaded_symbols[] = 5167{ 5168 { "@PROGRAM@", (void *) 0 }, 5169_LT_EOF 5170 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5171 cat <<\_LT_EOF >> conftest.$ac_ext 5172 {0, (void *) 0} 5173}; 5174 5175/* This works around a problem in FreeBSD linker */ 5176#ifdef FREEBSD_WORKAROUND 5177static const void *lt_preloaded_setup() { 5178 return lt__PROGRAM__LTX_preloaded_symbols; 5179} 5180#endif 5181 5182#ifdef __cplusplus 5183} 5184#endif 5185_LT_EOF 5186 # Now try linking the two files. 5187 mv conftest.$ac_objext conftstm.$ac_objext 5188 lt_save_LIBS="$LIBS" 5189 lt_save_CFLAGS="$CFLAGS" 5190 LIBS="conftstm.$ac_objext" 5191 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5192 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5193 (eval $ac_link) 2>&5 5194 ac_status=$? 5195 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5196 (exit $ac_status); } && test -s conftest${ac_exeext}; then 5197 pipe_works=yes 5198 fi 5199 LIBS="$lt_save_LIBS" 5200 CFLAGS="$lt_save_CFLAGS" 5201 else 5202 echo "cannot find nm_test_func in $nlist" >&5 5203 fi 5204 else 5205 echo "cannot find nm_test_var in $nlist" >&5 5206 fi 5207 else 5208 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5209 fi 5210 else 5211 echo "$progname: failed program was:" >&5 5212 cat conftest.$ac_ext >&5 5213 fi 5214 rm -f conftest* conftst* 5215 5216 # Do not use the global_symbol_pipe unless it works. 5217 if test "$pipe_works" = yes; then 5218 break 5219 else 5220 lt_cv_sys_global_symbol_pipe= 5221 fi 5222done 5223 5224fi 5225 5226if test -z "$lt_cv_sys_global_symbol_pipe"; then 5227 lt_cv_sys_global_symbol_to_cdecl= 5228fi 5229if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5230 echo "$as_me:$LINENO: result: failed" >&5 5231echo "${ECHO_T}failed" >&6 5232else 5233 echo "$as_me:$LINENO: result: ok" >&5 5234echo "${ECHO_T}ok" >&6 5235fi 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254# Check whether --enable-libtool-lock or --disable-libtool-lock was given. 5255if test "${enable_libtool_lock+set}" = set; then 5256 enableval="$enable_libtool_lock" 5257 5258fi; 5259test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 5260 5261# Some flags need to be propagated to the compiler or linker for good 5262# libtool support. 5263case $host in 5264ia64-*-hpux*) 5265 # Find out which ABI we are using. 5266 echo 'int i;' > conftest.$ac_ext 5267 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5268 (eval $ac_compile) 2>&5 5269 ac_status=$? 5270 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5271 (exit $ac_status); }; then 5272 case `/usr/bin/file conftest.$ac_objext` in 5273 *ELF-32*) 5274 HPUX_IA64_MODE="32" 5275 ;; 5276 *ELF-64*) 5277 HPUX_IA64_MODE="64" 5278 ;; 5279 esac 5280 fi 5281 rm -rf conftest* 5282 ;; 5283*-*-irix6*) 5284 # Find out which ABI we are using. 5285 echo '#line 5285 "configure"' > conftest.$ac_ext 5286 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5287 (eval $ac_compile) 2>&5 5288 ac_status=$? 5289 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5290 (exit $ac_status); }; then 5291 if test "$lt_cv_prog_gnu_ld" = yes; then 5292 case `/usr/bin/file conftest.$ac_objext` in 5293 *32-bit*) 5294 LD="${LD-ld} -melf32bsmip" 5295 ;; 5296 *N32*) 5297 LD="${LD-ld} -melf32bmipn32" 5298 ;; 5299 *64-bit*) 5300 LD="${LD-ld} -melf64bmip" 5301 ;; 5302 esac 5303 else 5304 case `/usr/bin/file conftest.$ac_objext` in 5305 *32-bit*) 5306 LD="${LD-ld} -32" 5307 ;; 5308 *N32*) 5309 LD="${LD-ld} -n32" 5310 ;; 5311 *64-bit*) 5312 LD="${LD-ld} -64" 5313 ;; 5314 esac 5315 fi 5316 fi 5317 rm -rf conftest* 5318 ;; 5319 5320x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 5321s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5322 # Find out which ABI we are using. 5323 echo 'int i;' > conftest.$ac_ext 5324 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5325 (eval $ac_compile) 2>&5 5326 ac_status=$? 5327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5328 (exit $ac_status); }; then 5329 case `/usr/bin/file conftest.o` in 5330 *32-bit*) 5331 case $host in 5332 x86_64-*kfreebsd*-gnu) 5333 LD="${LD-ld} -m elf_i386_fbsd" 5334 ;; 5335 x86_64-*linux*) 5336 LD="${LD-ld} -m elf_i386" 5337 ;; 5338 ppc64-*linux*|powerpc64-*linux*) 5339 LD="${LD-ld} -m elf32ppclinux" 5340 ;; 5341 s390x-*linux*) 5342 LD="${LD-ld} -m elf_s390" 5343 ;; 5344 sparc64-*linux*) 5345 LD="${LD-ld} -m elf32_sparc" 5346 ;; 5347 esac 5348 ;; 5349 *64-bit*) 5350 case $host in 5351 x86_64-*kfreebsd*-gnu) 5352 LD="${LD-ld} -m elf_x86_64_fbsd" 5353 ;; 5354 x86_64-*linux*) 5355 LD="${LD-ld} -m elf_x86_64" 5356 ;; 5357 ppc*-*linux*|powerpc*-*linux*) 5358 LD="${LD-ld} -m elf64ppc" 5359 ;; 5360 s390*-*linux*|s390*-*tpf*) 5361 LD="${LD-ld} -m elf64_s390" 5362 ;; 5363 sparc*-*linux*) 5364 LD="${LD-ld} -m elf64_sparc" 5365 ;; 5366 esac 5367 ;; 5368 esac 5369 fi 5370 rm -rf conftest* 5371 ;; 5372 5373*-*-sco3.2v5*) 5374 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 5375 SAVE_CFLAGS="$CFLAGS" 5376 CFLAGS="$CFLAGS -belf" 5377 echo "$as_me:$LINENO: checking whether the C compiler needs -belf" >&5 5378echo $ECHO_N "checking whether the C compiler needs -belf... $ECHO_C" >&6 5379if test "${lt_cv_cc_needs_belf+set}" = set; then 5380 echo $ECHO_N "(cached) $ECHO_C" >&6 5381else 5382 ac_ext=c 5383ac_cpp='$CPP $CPPFLAGS' 5384ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5385ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5386ac_compiler_gnu=$ac_cv_c_compiler_gnu 5387 5388 cat >conftest.$ac_ext <<_ACEOF 5389/* confdefs.h. */ 5390_ACEOF 5391cat confdefs.h >>conftest.$ac_ext 5392cat >>conftest.$ac_ext <<_ACEOF 5393/* end confdefs.h. */ 5394 5395int 5396main () 5397{ 5398 5399 ; 5400 return 0; 5401} 5402_ACEOF 5403rm -f conftest.$ac_objext conftest$ac_exeext 5404if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5405 (eval $ac_link) 2>conftest.er1 5406 ac_status=$? 5407 grep -v '^ *+' conftest.er1 >conftest.err 5408 rm -f conftest.er1 5409 cat conftest.err >&5 5410 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5411 (exit $ac_status); } && 5412 { ac_try='test -z "$ac_c_werror_flag" 5413 || test ! -s conftest.err' 5414 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5415 (eval $ac_try) 2>&5 5416 ac_status=$? 5417 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5418 (exit $ac_status); }; } && 5419 { ac_try='test -s conftest$ac_exeext' 5420 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5421 (eval $ac_try) 2>&5 5422 ac_status=$? 5423 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5424 (exit $ac_status); }; }; then 5425 lt_cv_cc_needs_belf=yes 5426else 5427 echo "$as_me: failed program was:" >&5 5428sed 's/^/| /' conftest.$ac_ext >&5 5429 5430lt_cv_cc_needs_belf=no 5431fi 5432rm -f conftest.err conftest.$ac_objext \ 5433 conftest$ac_exeext conftest.$ac_ext 5434 ac_ext=c 5435ac_cpp='$CPP $CPPFLAGS' 5436ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5437ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5438ac_compiler_gnu=$ac_cv_c_compiler_gnu 5439 5440fi 5441echo "$as_me:$LINENO: result: $lt_cv_cc_needs_belf" >&5 5442echo "${ECHO_T}$lt_cv_cc_needs_belf" >&6 5443 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 5444 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 5445 CFLAGS="$SAVE_CFLAGS" 5446 fi 5447 ;; 5448sparc*-*solaris*) 5449 # Find out which ABI we are using. 5450 echo 'int i;' > conftest.$ac_ext 5451 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5452 (eval $ac_compile) 2>&5 5453 ac_status=$? 5454 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5455 (exit $ac_status); }; then 5456 case `/usr/bin/file conftest.o` in 5457 *64-bit*) 5458 case $lt_cv_prog_gnu_ld in 5459 yes*) LD="${LD-ld} -m elf64_sparc" ;; 5460 *) LD="${LD-ld} -64" ;; 5461 esac 5462 ;; 5463 esac 5464 fi 5465 rm -rf conftest* 5466 ;; 5467esac 5468 5469need_locks="$enable_libtool_lock" 5470 5471ac_ext=c 5472ac_cpp='$CPP $CPPFLAGS' 5473ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5474ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5475ac_compiler_gnu=$ac_cv_c_compiler_gnu 5476echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 5477echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 5478# On Suns, sometimes $CPP names a directory. 5479if test -n "$CPP" && test -d "$CPP"; then 5480 CPP= 5481fi 5482if test -z "$CPP"; then 5483 if test "${ac_cv_prog_CPP+set}" = set; then 5484 echo $ECHO_N "(cached) $ECHO_C" >&6 5485else 5486 # Double quotes because CPP needs to be expanded 5487 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 5488 do 5489 ac_preproc_ok=false 5490for ac_c_preproc_warn_flag in '' yes 5491do 5492 # Use a header file that comes with gcc, so configuring glibc 5493 # with a fresh cross-compiler works. 5494 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5495 # <limits.h> exists even on freestanding compilers. 5496 # On the NeXT, cc -E runs the code through the compiler's parser, 5497 # not just through cpp. "Syntax error" is here to catch this case. 5498 cat >conftest.$ac_ext <<_ACEOF 5499/* confdefs.h. */ 5500_ACEOF 5501cat confdefs.h >>conftest.$ac_ext 5502cat >>conftest.$ac_ext <<_ACEOF 5503/* end confdefs.h. */ 5504#ifdef __STDC__ 5505# include <limits.h> 5506#else 5507# include <assert.h> 5508#endif 5509 Syntax error 5510_ACEOF 5511if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5512 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5513 ac_status=$? 5514 grep -v '^ *+' conftest.er1 >conftest.err 5515 rm -f conftest.er1 5516 cat conftest.err >&5 5517 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5518 (exit $ac_status); } >/dev/null; then 5519 if test -s conftest.err; then 5520 ac_cpp_err=$ac_c_preproc_warn_flag 5521 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5522 else 5523 ac_cpp_err= 5524 fi 5525else 5526 ac_cpp_err=yes 5527fi 5528if test -z "$ac_cpp_err"; then 5529 : 5530else 5531 echo "$as_me: failed program was:" >&5 5532sed 's/^/| /' conftest.$ac_ext >&5 5533 5534 # Broken: fails on valid input. 5535continue 5536fi 5537rm -f conftest.err conftest.$ac_ext 5538 5539 # OK, works on sane cases. Now check whether non-existent headers 5540 # can be detected and how. 5541 cat >conftest.$ac_ext <<_ACEOF 5542/* confdefs.h. */ 5543_ACEOF 5544cat confdefs.h >>conftest.$ac_ext 5545cat >>conftest.$ac_ext <<_ACEOF 5546/* end confdefs.h. */ 5547#include <ac_nonexistent.h> 5548_ACEOF 5549if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5550 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5551 ac_status=$? 5552 grep -v '^ *+' conftest.er1 >conftest.err 5553 rm -f conftest.er1 5554 cat conftest.err >&5 5555 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5556 (exit $ac_status); } >/dev/null; then 5557 if test -s conftest.err; then 5558 ac_cpp_err=$ac_c_preproc_warn_flag 5559 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5560 else 5561 ac_cpp_err= 5562 fi 5563else 5564 ac_cpp_err=yes 5565fi 5566if test -z "$ac_cpp_err"; then 5567 # Broken: success on invalid input. 5568continue 5569else 5570 echo "$as_me: failed program was:" >&5 5571sed 's/^/| /' conftest.$ac_ext >&5 5572 5573 # Passes both tests. 5574ac_preproc_ok=: 5575break 5576fi 5577rm -f conftest.err conftest.$ac_ext 5578 5579done 5580# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5581rm -f conftest.err conftest.$ac_ext 5582if $ac_preproc_ok; then 5583 break 5584fi 5585 5586 done 5587 ac_cv_prog_CPP=$CPP 5588 5589fi 5590 CPP=$ac_cv_prog_CPP 5591else 5592 ac_cv_prog_CPP=$CPP 5593fi 5594echo "$as_me:$LINENO: result: $CPP" >&5 5595echo "${ECHO_T}$CPP" >&6 5596ac_preproc_ok=false 5597for ac_c_preproc_warn_flag in '' yes 5598do 5599 # Use a header file that comes with gcc, so configuring glibc 5600 # with a fresh cross-compiler works. 5601 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 5602 # <limits.h> exists even on freestanding compilers. 5603 # On the NeXT, cc -E runs the code through the compiler's parser, 5604 # not just through cpp. "Syntax error" is here to catch this case. 5605 cat >conftest.$ac_ext <<_ACEOF 5606/* confdefs.h. */ 5607_ACEOF 5608cat confdefs.h >>conftest.$ac_ext 5609cat >>conftest.$ac_ext <<_ACEOF 5610/* end confdefs.h. */ 5611#ifdef __STDC__ 5612# include <limits.h> 5613#else 5614# include <assert.h> 5615#endif 5616 Syntax error 5617_ACEOF 5618if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5619 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5620 ac_status=$? 5621 grep -v '^ *+' conftest.er1 >conftest.err 5622 rm -f conftest.er1 5623 cat conftest.err >&5 5624 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5625 (exit $ac_status); } >/dev/null; then 5626 if test -s conftest.err; then 5627 ac_cpp_err=$ac_c_preproc_warn_flag 5628 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5629 else 5630 ac_cpp_err= 5631 fi 5632else 5633 ac_cpp_err=yes 5634fi 5635if test -z "$ac_cpp_err"; then 5636 : 5637else 5638 echo "$as_me: failed program was:" >&5 5639sed 's/^/| /' conftest.$ac_ext >&5 5640 5641 # Broken: fails on valid input. 5642continue 5643fi 5644rm -f conftest.err conftest.$ac_ext 5645 5646 # OK, works on sane cases. Now check whether non-existent headers 5647 # can be detected and how. 5648 cat >conftest.$ac_ext <<_ACEOF 5649/* confdefs.h. */ 5650_ACEOF 5651cat confdefs.h >>conftest.$ac_ext 5652cat >>conftest.$ac_ext <<_ACEOF 5653/* end confdefs.h. */ 5654#include <ac_nonexistent.h> 5655_ACEOF 5656if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 5657 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 5658 ac_status=$? 5659 grep -v '^ *+' conftest.er1 >conftest.err 5660 rm -f conftest.er1 5661 cat conftest.err >&5 5662 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5663 (exit $ac_status); } >/dev/null; then 5664 if test -s conftest.err; then 5665 ac_cpp_err=$ac_c_preproc_warn_flag 5666 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 5667 else 5668 ac_cpp_err= 5669 fi 5670else 5671 ac_cpp_err=yes 5672fi 5673if test -z "$ac_cpp_err"; then 5674 # Broken: success on invalid input. 5675continue 5676else 5677 echo "$as_me: failed program was:" >&5 5678sed 's/^/| /' conftest.$ac_ext >&5 5679 5680 # Passes both tests. 5681ac_preproc_ok=: 5682break 5683fi 5684rm -f conftest.err conftest.$ac_ext 5685 5686done 5687# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 5688rm -f conftest.err conftest.$ac_ext 5689if $ac_preproc_ok; then 5690 : 5691else 5692 { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check 5693See \`config.log' for more details." >&5 5694echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check 5695See \`config.log' for more details." >&2;} 5696 { (exit 1); exit 1; }; } 5697fi 5698 5699ac_ext=c 5700ac_cpp='$CPP $CPPFLAGS' 5701ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5702ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5703ac_compiler_gnu=$ac_cv_c_compiler_gnu 5704 5705 5706echo "$as_me:$LINENO: checking for ANSI C header files" >&5 5707echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 5708if test "${ac_cv_header_stdc+set}" = set; then 5709 echo $ECHO_N "(cached) $ECHO_C" >&6 5710else 5711 cat >conftest.$ac_ext <<_ACEOF 5712/* confdefs.h. */ 5713_ACEOF 5714cat confdefs.h >>conftest.$ac_ext 5715cat >>conftest.$ac_ext <<_ACEOF 5716/* end confdefs.h. */ 5717#include <stdlib.h> 5718#include <stdarg.h> 5719#include <string.h> 5720#include <float.h> 5721 5722int 5723main () 5724{ 5725 5726 ; 5727 return 0; 5728} 5729_ACEOF 5730rm -f conftest.$ac_objext 5731if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5732 (eval $ac_compile) 2>conftest.er1 5733 ac_status=$? 5734 grep -v '^ *+' conftest.er1 >conftest.err 5735 rm -f conftest.er1 5736 cat conftest.err >&5 5737 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5738 (exit $ac_status); } && 5739 { ac_try='test -z "$ac_c_werror_flag" 5740 || test ! -s conftest.err' 5741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5742 (eval $ac_try) 2>&5 5743 ac_status=$? 5744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5745 (exit $ac_status); }; } && 5746 { ac_try='test -s conftest.$ac_objext' 5747 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5748 (eval $ac_try) 2>&5 5749 ac_status=$? 5750 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5751 (exit $ac_status); }; }; then 5752 ac_cv_header_stdc=yes 5753else 5754 echo "$as_me: failed program was:" >&5 5755sed 's/^/| /' conftest.$ac_ext >&5 5756 5757ac_cv_header_stdc=no 5758fi 5759rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5760 5761if test $ac_cv_header_stdc = yes; then 5762 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 5763 cat >conftest.$ac_ext <<_ACEOF 5764/* confdefs.h. */ 5765_ACEOF 5766cat confdefs.h >>conftest.$ac_ext 5767cat >>conftest.$ac_ext <<_ACEOF 5768/* end confdefs.h. */ 5769#include <string.h> 5770 5771_ACEOF 5772if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5773 $EGREP "memchr" >/dev/null 2>&1; then 5774 : 5775else 5776 ac_cv_header_stdc=no 5777fi 5778rm -f conftest* 5779 5780fi 5781 5782if test $ac_cv_header_stdc = yes; then 5783 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 5784 cat >conftest.$ac_ext <<_ACEOF 5785/* confdefs.h. */ 5786_ACEOF 5787cat confdefs.h >>conftest.$ac_ext 5788cat >>conftest.$ac_ext <<_ACEOF 5789/* end confdefs.h. */ 5790#include <stdlib.h> 5791 5792_ACEOF 5793if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 5794 $EGREP "free" >/dev/null 2>&1; then 5795 : 5796else 5797 ac_cv_header_stdc=no 5798fi 5799rm -f conftest* 5800 5801fi 5802 5803if test $ac_cv_header_stdc = yes; then 5804 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 5805 if test "$cross_compiling" = yes; then 5806 : 5807else 5808 cat >conftest.$ac_ext <<_ACEOF 5809/* confdefs.h. */ 5810_ACEOF 5811cat confdefs.h >>conftest.$ac_ext 5812cat >>conftest.$ac_ext <<_ACEOF 5813/* end confdefs.h. */ 5814#include <ctype.h> 5815#if ((' ' & 0x0FF) == 0x020) 5816# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 5817# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 5818#else 5819# define ISLOWER(c) \ 5820 (('a' <= (c) && (c) <= 'i') \ 5821 || ('j' <= (c) && (c) <= 'r') \ 5822 || ('s' <= (c) && (c) <= 'z')) 5823# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 5824#endif 5825 5826#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 5827int 5828main () 5829{ 5830 int i; 5831 for (i = 0; i < 256; i++) 5832 if (XOR (islower (i), ISLOWER (i)) 5833 || toupper (i) != TOUPPER (i)) 5834 exit(2); 5835 exit (0); 5836} 5837_ACEOF 5838rm -f conftest$ac_exeext 5839if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 5840 (eval $ac_link) 2>&5 5841 ac_status=$? 5842 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5843 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 5844 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5845 (eval $ac_try) 2>&5 5846 ac_status=$? 5847 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5848 (exit $ac_status); }; }; then 5849 : 5850else 5851 echo "$as_me: program exited with status $ac_status" >&5 5852echo "$as_me: failed program was:" >&5 5853sed 's/^/| /' conftest.$ac_ext >&5 5854 5855( exit $ac_status ) 5856ac_cv_header_stdc=no 5857fi 5858rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 5859fi 5860fi 5861fi 5862echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 5863echo "${ECHO_T}$ac_cv_header_stdc" >&6 5864if test $ac_cv_header_stdc = yes; then 5865 5866cat >>confdefs.h <<\_ACEOF 5867#define STDC_HEADERS 1 5868_ACEOF 5869 5870fi 5871 5872# On IRIX 5.3, sys/types and inttypes.h are conflicting. 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 5883 inttypes.h stdint.h unistd.h 5884do 5885as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5886echo "$as_me:$LINENO: checking for $ac_header" >&5 5887echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5888if eval "test \"\${$as_ac_Header+set}\" = set"; then 5889 echo $ECHO_N "(cached) $ECHO_C" >&6 5890else 5891 cat >conftest.$ac_ext <<_ACEOF 5892/* confdefs.h. */ 5893_ACEOF 5894cat confdefs.h >>conftest.$ac_ext 5895cat >>conftest.$ac_ext <<_ACEOF 5896/* end confdefs.h. */ 5897$ac_includes_default 5898 5899#include <$ac_header> 5900_ACEOF 5901rm -f conftest.$ac_objext 5902if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5903 (eval $ac_compile) 2>conftest.er1 5904 ac_status=$? 5905 grep -v '^ *+' conftest.er1 >conftest.err 5906 rm -f conftest.er1 5907 cat conftest.err >&5 5908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5909 (exit $ac_status); } && 5910 { ac_try='test -z "$ac_c_werror_flag" 5911 || test ! -s conftest.err' 5912 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5913 (eval $ac_try) 2>&5 5914 ac_status=$? 5915 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5916 (exit $ac_status); }; } && 5917 { ac_try='test -s conftest.$ac_objext' 5918 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5919 (eval $ac_try) 2>&5 5920 ac_status=$? 5921 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5922 (exit $ac_status); }; }; then 5923 eval "$as_ac_Header=yes" 5924else 5925 echo "$as_me: failed program was:" >&5 5926sed 's/^/| /' conftest.$ac_ext >&5 5927 5928eval "$as_ac_Header=no" 5929fi 5930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5931fi 5932echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5933echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5934if test `eval echo '${'$as_ac_Header'}'` = yes; then 5935 cat >>confdefs.h <<_ACEOF 5936#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5937_ACEOF 5938 5939fi 5940 5941done 5942 5943 5944 5945for ac_header in dlfcn.h 5946do 5947as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 5948echo "$as_me:$LINENO: checking for $ac_header" >&5 5949echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 5950if eval "test \"\${$as_ac_Header+set}\" = set"; then 5951 echo $ECHO_N "(cached) $ECHO_C" >&6 5952else 5953 cat >conftest.$ac_ext <<_ACEOF 5954/* confdefs.h. */ 5955_ACEOF 5956cat confdefs.h >>conftest.$ac_ext 5957cat >>conftest.$ac_ext <<_ACEOF 5958/* end confdefs.h. */ 5959$ac_includes_default 5960 5961#include <$ac_header> 5962_ACEOF 5963rm -f conftest.$ac_objext 5964if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 5965 (eval $ac_compile) 2>conftest.er1 5966 ac_status=$? 5967 grep -v '^ *+' conftest.er1 >conftest.err 5968 rm -f conftest.er1 5969 cat conftest.err >&5 5970 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5971 (exit $ac_status); } && 5972 { ac_try='test -z "$ac_c_werror_flag" 5973 || test ! -s conftest.err' 5974 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5975 (eval $ac_try) 2>&5 5976 ac_status=$? 5977 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5978 (exit $ac_status); }; } && 5979 { ac_try='test -s conftest.$ac_objext' 5980 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 5981 (eval $ac_try) 2>&5 5982 ac_status=$? 5983 echo "$as_me:$LINENO: \$? = $ac_status" >&5 5984 (exit $ac_status); }; }; then 5985 eval "$as_ac_Header=yes" 5986else 5987 echo "$as_me: failed program was:" >&5 5988sed 's/^/| /' conftest.$ac_ext >&5 5989 5990eval "$as_ac_Header=no" 5991fi 5992rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 5993fi 5994echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 5995echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 5996if test `eval echo '${'$as_ac_Header'}'` = yes; then 5997 cat >>confdefs.h <<_ACEOF 5998#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 5999_ACEOF 6000 6001fi 6002 6003done 6004 6005 6006 6007# This can be used to rebuild libtool when needed 6008LIBTOOL_DEPS="$ltmain" 6009 6010# Always use our own libtool. 6011LIBTOOL='$(SHELL) $(top_builddir)/libtool' 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037test -z "$LN_S" && LN_S="ln -s" 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052if test -n "${ZSH_VERSION+set}" ; then 6053 setopt NO_GLOB_SUBST 6054fi 6055 6056echo "$as_me:$LINENO: checking for objdir" >&5 6057echo $ECHO_N "checking for objdir... $ECHO_C" >&6 6058if test "${lt_cv_objdir+set}" = set; then 6059 echo $ECHO_N "(cached) $ECHO_C" >&6 6060else 6061 rm -f .libs 2>/dev/null 6062mkdir .libs 2>/dev/null 6063if test -d .libs; then 6064 lt_cv_objdir=.libs 6065else 6066 # MS-DOS does not allow filenames that begin with a dot. 6067 lt_cv_objdir=_libs 6068fi 6069rmdir .libs 2>/dev/null 6070fi 6071echo "$as_me:$LINENO: result: $lt_cv_objdir" >&5 6072echo "${ECHO_T}$lt_cv_objdir" >&6 6073objdir=$lt_cv_objdir 6074 6075 6076 6077 6078 6079cat >>confdefs.h <<_ACEOF 6080#define LT_OBJDIR "$lt_cv_objdir/" 6081_ACEOF 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099case $host_os in 6100aix3*) 6101 # AIX sometimes has problems with the GCC collect2 program. For some 6102 # reason, if we set the COLLECT_NAMES environment variable, the problems 6103 # vanish in a puff of smoke. 6104 if test "X${COLLECT_NAMES+set}" != Xset; then 6105 COLLECT_NAMES= 6106 export COLLECT_NAMES 6107 fi 6108 ;; 6109esac 6110 6111# Sed substitution that helps us do robust quoting. It backslashifies 6112# metacharacters that are still active within double-quoted strings. 6113sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 6114 6115# Same as above, but do not quote variable references. 6116double_quote_subst='s/\(["`\\]\)/\\\1/g' 6117 6118# Sed substitution to delay expansion of an escaped shell variable in a 6119# double_quote_subst'ed string. 6120delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 6121 6122# Sed substitution to delay expansion of an escaped single quote. 6123delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 6124 6125# Sed substitution to avoid accidental globbing in evaled expressions 6126no_glob_subst='s/\*/\\\*/g' 6127 6128# Global variables: 6129ofile=libtool 6130can_build_shared=yes 6131 6132# All known linkers require a `.a' archive for static linking (except MSVC, 6133# which needs '.lib'). 6134libext=a 6135 6136with_gnu_ld="$lt_cv_prog_gnu_ld" 6137 6138old_CC="$CC" 6139old_CFLAGS="$CFLAGS" 6140 6141# Set sane defaults for various variables 6142test -z "$CC" && CC=cc 6143test -z "$LTCC" && LTCC=$CC 6144test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 6145test -z "$LD" && LD=ld 6146test -z "$ac_objext" && ac_objext=o 6147 6148for cc_temp in $compiler""; do 6149 case $cc_temp in 6150 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 6151 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 6152 \-*) ;; 6153 *) break;; 6154 esac 6155done 6156cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 6157 6158 6159# Only perform the check for file, if the check method requires it 6160test -z "$MAGIC_CMD" && MAGIC_CMD=file 6161case $deplibs_check_method in 6162file_magic*) 6163 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 6164 echo "$as_me:$LINENO: checking for ${ac_tool_prefix}file" >&5 6165echo $ECHO_N "checking for ${ac_tool_prefix}file... $ECHO_C" >&6 6166if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6167 echo $ECHO_N "(cached) $ECHO_C" >&6 6168else 6169 case $MAGIC_CMD in 6170[\\/*] | ?:[\\/]*) 6171 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6172 ;; 6173*) 6174 lt_save_MAGIC_CMD="$MAGIC_CMD" 6175 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6176 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6177 for ac_dir in $ac_dummy; do 6178 IFS="$lt_save_ifs" 6179 test -z "$ac_dir" && ac_dir=. 6180 if test -f $ac_dir/${ac_tool_prefix}file; then 6181 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 6182 if test -n "$file_magic_test_file"; then 6183 case $deplibs_check_method in 6184 "file_magic "*) 6185 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6186 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6187 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6188 $EGREP "$file_magic_regex" > /dev/null; then 6189 : 6190 else 6191 cat <<_LT_EOF 1>&2 6192 6193*** Warning: the command libtool uses to detect shared libraries, 6194*** $file_magic_cmd, produces output that libtool cannot recognize. 6195*** The result is that libtool may fail to recognize shared libraries 6196*** as such. This will affect the creation of libtool libraries that 6197*** depend on shared libraries, but programs linked with such libtool 6198*** libraries will work regardless of this problem. Nevertheless, you 6199*** may want to report the problem to your system manager and/or to 6200*** bug-libtool@gnu.org 6201 6202_LT_EOF 6203 fi ;; 6204 esac 6205 fi 6206 break 6207 fi 6208 done 6209 IFS="$lt_save_ifs" 6210 MAGIC_CMD="$lt_save_MAGIC_CMD" 6211 ;; 6212esac 6213fi 6214 6215MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6216if test -n "$MAGIC_CMD"; then 6217 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6218echo "${ECHO_T}$MAGIC_CMD" >&6 6219else 6220 echo "$as_me:$LINENO: result: no" >&5 6221echo "${ECHO_T}no" >&6 6222fi 6223 6224 6225 6226 6227 6228if test -z "$lt_cv_path_MAGIC_CMD"; then 6229 if test -n "$ac_tool_prefix"; then 6230 echo "$as_me:$LINENO: checking for file" >&5 6231echo $ECHO_N "checking for file... $ECHO_C" >&6 6232if test "${lt_cv_path_MAGIC_CMD+set}" = set; then 6233 echo $ECHO_N "(cached) $ECHO_C" >&6 6234else 6235 case $MAGIC_CMD in 6236[\\/*] | ?:[\\/]*) 6237 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 6238 ;; 6239*) 6240 lt_save_MAGIC_CMD="$MAGIC_CMD" 6241 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 6242 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 6243 for ac_dir in $ac_dummy; do 6244 IFS="$lt_save_ifs" 6245 test -z "$ac_dir" && ac_dir=. 6246 if test -f $ac_dir/file; then 6247 lt_cv_path_MAGIC_CMD="$ac_dir/file" 6248 if test -n "$file_magic_test_file"; then 6249 case $deplibs_check_method in 6250 "file_magic "*) 6251 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 6252 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6253 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 6254 $EGREP "$file_magic_regex" > /dev/null; then 6255 : 6256 else 6257 cat <<_LT_EOF 1>&2 6258 6259*** Warning: the command libtool uses to detect shared libraries, 6260*** $file_magic_cmd, produces output that libtool cannot recognize. 6261*** The result is that libtool may fail to recognize shared libraries 6262*** as such. This will affect the creation of libtool libraries that 6263*** depend on shared libraries, but programs linked with such libtool 6264*** libraries will work regardless of this problem. Nevertheless, you 6265*** may want to report the problem to your system manager and/or to 6266*** bug-libtool@gnu.org 6267 6268_LT_EOF 6269 fi ;; 6270 esac 6271 fi 6272 break 6273 fi 6274 done 6275 IFS="$lt_save_ifs" 6276 MAGIC_CMD="$lt_save_MAGIC_CMD" 6277 ;; 6278esac 6279fi 6280 6281MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 6282if test -n "$MAGIC_CMD"; then 6283 echo "$as_me:$LINENO: result: $MAGIC_CMD" >&5 6284echo "${ECHO_T}$MAGIC_CMD" >&6 6285else 6286 echo "$as_me:$LINENO: result: no" >&5 6287echo "${ECHO_T}no" >&6 6288fi 6289 6290 6291 else 6292 MAGIC_CMD=: 6293 fi 6294fi 6295 6296 fi 6297 ;; 6298esac 6299 6300# Use C for the default configuration in the libtool script 6301 6302lt_save_CC="$CC" 6303ac_ext=c 6304ac_cpp='$CPP $CPPFLAGS' 6305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6307ac_compiler_gnu=$ac_cv_c_compiler_gnu 6308 6309 6310# Source file extension for C test sources. 6311ac_ext=c 6312 6313# Object file extension for compiled C test sources. 6314objext=o 6315objext=$objext 6316 6317# Code to be used in simple compile tests 6318lt_simple_compile_test_code="int some_variable = 0;" 6319 6320# Code to be used in simple link tests 6321lt_simple_link_test_code='int main(){return(0);}' 6322 6323 6324 6325 6326 6327 6328 6329# If no C compiler was specified, use CC. 6330LTCC=${LTCC-"$CC"} 6331 6332# If no C compiler flags were specified, use CFLAGS. 6333LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6334 6335# Allow CC to be a program name with arguments. 6336compiler=$CC 6337 6338# Save the default compiler, since it gets overwritten when the other 6339# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 6340compiler_DEFAULT=$CC 6341 6342# save warnings/boilerplate of simple test code 6343ac_outfile=conftest.$ac_objext 6344echo "$lt_simple_compile_test_code" >conftest.$ac_ext 6345eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6346_lt_compiler_boilerplate=`cat conftest.err` 6347$RM conftest* 6348 6349ac_outfile=conftest.$ac_objext 6350echo "$lt_simple_link_test_code" >conftest.$ac_ext 6351eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 6352_lt_linker_boilerplate=`cat conftest.err` 6353$RM conftest* 6354 6355 6356## CAVEAT EMPTOR: 6357## There is no encapsulation within the following macros, do not change 6358## the running order or otherwise move them around unless you know exactly 6359## what you are doing... 6360if test -n "$compiler"; then 6361 6362lt_prog_compiler_no_builtin_flag= 6363 6364if test "$GCC" = yes; then 6365 lt_prog_compiler_no_builtin_flag=' -fno-builtin' 6366 6367 echo "$as_me:$LINENO: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 6368echo $ECHO_N "checking if $compiler supports -fno-rtti -fno-exceptions... $ECHO_C" >&6 6369if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then 6370 echo $ECHO_N "(cached) $ECHO_C" >&6 6371else 6372 lt_cv_prog_compiler_rtti_exceptions=no 6373 ac_outfile=conftest.$ac_objext 6374 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6375 lt_compiler_flag="-fno-rtti -fno-exceptions" 6376 # Insert the option either (1) after the last *FLAGS variable, or 6377 # (2) before a word containing "conftest.", or (3) at the end. 6378 # Note that $ac_compile itself does not contain backslashes and begins 6379 # with a dollar sign (not a hyphen), so the echo should work correctly. 6380 # The option is referenced via a variable to avoid confusing sed. 6381 lt_compile=`echo "$ac_compile" | $SED \ 6382 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6383 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6384 -e 's:$: $lt_compiler_flag:'` 6385 (eval echo "\"\$as_me:6385: $lt_compile\"" >&5) 6386 (eval "$lt_compile" 2>conftest.err) 6387 ac_status=$? 6388 cat conftest.err >&5 6389 echo "$as_me:6389: \$? = $ac_status" >&5 6390 if (exit $ac_status) && test -s "$ac_outfile"; then 6391 # The compiler can only warn and ignore the option if not recognized 6392 # So say no if there are warnings other than the usual output. 6393 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6394 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6395 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6396 lt_cv_prog_compiler_rtti_exceptions=yes 6397 fi 6398 fi 6399 $RM conftest* 6400 6401fi 6402echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 6403echo "${ECHO_T}$lt_cv_prog_compiler_rtti_exceptions" >&6 6404 6405if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 6406 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 6407else 6408 : 6409fi 6410 6411fi 6412 6413 6414 6415 6416 6417 6418 lt_prog_compiler_wl= 6419lt_prog_compiler_pic= 6420lt_prog_compiler_static= 6421 6422echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 6423echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 6424 6425 if test "$GCC" = yes; then 6426 lt_prog_compiler_wl='-Wl,' 6427 lt_prog_compiler_static='-static' 6428 6429 case $host_os in 6430 aix*) 6431 # All AIX code is PIC. 6432 if test "$host_cpu" = ia64; then 6433 # AIX 5 now supports IA64 processor 6434 lt_prog_compiler_static='-Bstatic' 6435 fi 6436 ;; 6437 6438 amigaos*) 6439 if test "$host_cpu" = m68k; then 6440 # FIXME: we need at least 68020 code to build shared libraries, but 6441 # adding the `-m68020' flag to GCC prevents building anything better, 6442 # like `-m68040'. 6443 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 6444 fi 6445 ;; 6446 6447 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 6448 # PIC is the default for these OSes. 6449 ;; 6450 6451 mingw* | cygwin* | pw32* | os2*) 6452 # This hack is so that the source file can tell whether it is being 6453 # built for inclusion in a dll (and should export symbols for example). 6454 # Although the cygwin gcc ignores -fPIC, still need this for old-style 6455 # (--disable-auto-import) libraries 6456 lt_prog_compiler_pic='-DDLL_EXPORT' 6457 ;; 6458 6459 darwin* | rhapsody*) 6460 # PIC is the default on this platform 6461 # Common symbols not allowed in MH_DYLIB files 6462 lt_prog_compiler_pic='-fno-common' 6463 ;; 6464 6465 hpux*) 6466 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6467 # not for PA HP-UX. 6468 case $host_cpu in 6469 hppa*64*|ia64*) 6470 # +Z the default 6471 ;; 6472 *) 6473 lt_prog_compiler_pic='-fPIC' 6474 ;; 6475 esac 6476 ;; 6477 6478 interix[3-9]*) 6479 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 6480 # Instead, we relocate shared libraries at runtime. 6481 ;; 6482 6483 msdosdjgpp*) 6484 # Just because we use GCC doesn't mean we suddenly get shared libraries 6485 # on systems that don't support them. 6486 lt_prog_compiler_can_build_shared=no 6487 enable_shared=no 6488 ;; 6489 6490 *nto* | *qnx*) 6491 # QNX uses GNU C++, but need to define -shared option too, otherwise 6492 # it will coredump. 6493 lt_prog_compiler_pic='-fPIC -shared' 6494 ;; 6495 6496 sysv4*MP*) 6497 if test -d /usr/nec; then 6498 lt_prog_compiler_pic=-Kconform_pic 6499 fi 6500 ;; 6501 6502 *) 6503 lt_prog_compiler_pic='-fPIC' 6504 ;; 6505 esac 6506 else 6507 # PORTME Check for flag to pass linker flags through the system compiler. 6508 case $host_os in 6509 aix*) 6510 lt_prog_compiler_wl='-Wl,' 6511 if test "$host_cpu" = ia64; then 6512 # AIX 5 now supports IA64 processor 6513 lt_prog_compiler_static='-Bstatic' 6514 else 6515 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 6516 fi 6517 ;; 6518 darwin*) 6519 # PIC is the default on this platform 6520 # Common symbols not allowed in MH_DYLIB files 6521 case $cc_basename in 6522 xlc*) 6523 lt_prog_compiler_pic='-qnocommon' 6524 lt_prog_compiler_wl='-Wl,' 6525 ;; 6526 esac 6527 ;; 6528 6529 mingw* | cygwin* | pw32* | os2*) 6530 # This hack is so that the source file can tell whether it is being 6531 # built for inclusion in a dll (and should export symbols for example). 6532 lt_prog_compiler_pic='-DDLL_EXPORT' 6533 ;; 6534 6535 hpux9* | hpux10* | hpux11*) 6536 lt_prog_compiler_wl='-Wl,' 6537 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 6538 # not for PA HP-UX. 6539 case $host_cpu in 6540 hppa*64*|ia64*) 6541 # +Z the default 6542 ;; 6543 *) 6544 lt_prog_compiler_pic='+Z' 6545 ;; 6546 esac 6547 # Is there a better lt_prog_compiler_static that works with the bundled CC? 6548 lt_prog_compiler_static='${wl}-a ${wl}archive' 6549 ;; 6550 6551 irix5* | irix6* | nonstopux*) 6552 lt_prog_compiler_wl='-Wl,' 6553 # PIC (with -KPIC) is the default. 6554 lt_prog_compiler_static='-non_shared' 6555 ;; 6556 6557 linux* | k*bsd*-gnu) 6558 case $cc_basename in 6559 icc* | ecc*) 6560 lt_prog_compiler_wl='-Wl,' 6561 lt_prog_compiler_pic='-KPIC' 6562 lt_prog_compiler_static='-static' 6563 ;; 6564 pgcc* | pgf77* | pgf90* | pgf95*) 6565 # Portland Group compilers (*not* the Pentium gcc compiler, 6566 # which looks to be a dead project) 6567 lt_prog_compiler_wl='-Wl,' 6568 lt_prog_compiler_pic='-fpic' 6569 lt_prog_compiler_static='-Bstatic' 6570 ;; 6571 ccc*) 6572 lt_prog_compiler_wl='-Wl,' 6573 # All Alpha code is PIC. 6574 lt_prog_compiler_static='-non_shared' 6575 ;; 6576 *) 6577 case `$CC -V 2>&1 | sed 5q` in 6578 *Sun\ C*) 6579 # Sun C 5.9 6580 lt_prog_compiler_pic='-KPIC' 6581 lt_prog_compiler_static='-Bstatic' 6582 lt_prog_compiler_wl='-Wl,' 6583 ;; 6584 *Sun\ F*) 6585 # Sun Fortran 8.3 passes all unrecognized flags to the linker 6586 lt_prog_compiler_pic='-KPIC' 6587 lt_prog_compiler_static='-Bstatic' 6588 lt_prog_compiler_wl='' 6589 ;; 6590 esac 6591 ;; 6592 esac 6593 ;; 6594 6595 newsos6) 6596 lt_prog_compiler_pic='-KPIC' 6597 lt_prog_compiler_static='-Bstatic' 6598 ;; 6599 6600 *nto* | *qnx*) 6601 # QNX uses GNU C++, but need to define -shared option too, otherwise 6602 # it will coredump. 6603 lt_prog_compiler_pic='-fPIC -shared' 6604 ;; 6605 6606 osf3* | osf4* | osf5*) 6607 lt_prog_compiler_wl='-Wl,' 6608 # All OSF/1 code is PIC. 6609 lt_prog_compiler_static='-non_shared' 6610 ;; 6611 6612 rdos*) 6613 lt_prog_compiler_static='-non_shared' 6614 ;; 6615 6616 solaris*) 6617 lt_prog_compiler_pic='-KPIC' 6618 lt_prog_compiler_static='-Bstatic' 6619 case $cc_basename in 6620 f77* | f90* | f95*) 6621 lt_prog_compiler_wl='-Qoption ld ';; 6622 *) 6623 lt_prog_compiler_wl='-Wl,';; 6624 esac 6625 ;; 6626 6627 sunos4*) 6628 lt_prog_compiler_wl='-Qoption ld ' 6629 lt_prog_compiler_pic='-PIC' 6630 lt_prog_compiler_static='-Bstatic' 6631 ;; 6632 6633 sysv4 | sysv4.2uw2* | sysv4.3*) 6634 lt_prog_compiler_wl='-Wl,' 6635 lt_prog_compiler_pic='-KPIC' 6636 lt_prog_compiler_static='-Bstatic' 6637 ;; 6638 6639 sysv4*MP*) 6640 if test -d /usr/nec ;then 6641 lt_prog_compiler_pic='-Kconform_pic' 6642 lt_prog_compiler_static='-Bstatic' 6643 fi 6644 ;; 6645 6646 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 6647 lt_prog_compiler_wl='-Wl,' 6648 lt_prog_compiler_pic='-KPIC' 6649 lt_prog_compiler_static='-Bstatic' 6650 ;; 6651 6652 unicos*) 6653 lt_prog_compiler_wl='-Wl,' 6654 lt_prog_compiler_can_build_shared=no 6655 ;; 6656 6657 uts4*) 6658 lt_prog_compiler_pic='-pic' 6659 lt_prog_compiler_static='-Bstatic' 6660 ;; 6661 6662 *) 6663 lt_prog_compiler_can_build_shared=no 6664 ;; 6665 esac 6666 fi 6667 6668case $host_os in 6669 # For platforms which do not support PIC, -DPIC is meaningless: 6670 *djgpp*) 6671 lt_prog_compiler_pic= 6672 ;; 6673 *) 6674 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 6675 ;; 6676esac 6677echo "$as_me:$LINENO: result: $lt_prog_compiler_pic" >&5 6678echo "${ECHO_T}$lt_prog_compiler_pic" >&6 6679 6680 6681 6682 6683 6684 6685# 6686# Check to make sure the PIC flag actually works. 6687# 6688if test -n "$lt_prog_compiler_pic"; then 6689 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 6690echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic works... $ECHO_C" >&6 6691if test "${lt_prog_compiler_pic_works+set}" = set; then 6692 echo $ECHO_N "(cached) $ECHO_C" >&6 6693else 6694 lt_prog_compiler_pic_works=no 6695 ac_outfile=conftest.$ac_objext 6696 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6697 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 6698 # Insert the option either (1) after the last *FLAGS variable, or 6699 # (2) before a word containing "conftest.", or (3) at the end. 6700 # Note that $ac_compile itself does not contain backslashes and begins 6701 # with a dollar sign (not a hyphen), so the echo should work correctly. 6702 # The option is referenced via a variable to avoid confusing sed. 6703 lt_compile=`echo "$ac_compile" | $SED \ 6704 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6705 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6706 -e 's:$: $lt_compiler_flag:'` 6707 (eval echo "\"\$as_me:6707: $lt_compile\"" >&5) 6708 (eval "$lt_compile" 2>conftest.err) 6709 ac_status=$? 6710 cat conftest.err >&5 6711 echo "$as_me:6711: \$? = $ac_status" >&5 6712 if (exit $ac_status) && test -s "$ac_outfile"; then 6713 # The compiler can only warn and ignore the option if not recognized 6714 # So say no if there are warnings other than the usual output. 6715 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 6716 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6717 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 6718 lt_prog_compiler_pic_works=yes 6719 fi 6720 fi 6721 $RM conftest* 6722 6723fi 6724echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works" >&5 6725echo "${ECHO_T}$lt_prog_compiler_pic_works" >&6 6726 6727if test x"$lt_prog_compiler_pic_works" = xyes; then 6728 case $lt_prog_compiler_pic in 6729 "" | " "*) ;; 6730 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 6731 esac 6732else 6733 lt_prog_compiler_pic= 6734 lt_prog_compiler_can_build_shared=no 6735fi 6736 6737fi 6738 6739 6740 6741 6742 6743 6744# 6745# Check to make sure the static flag actually works. 6746# 6747wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 6748echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 6749echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 6750if test "${lt_prog_compiler_static_works+set}" = set; then 6751 echo $ECHO_N "(cached) $ECHO_C" >&6 6752else 6753 lt_prog_compiler_static_works=no 6754 save_LDFLAGS="$LDFLAGS" 6755 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 6756 echo "$lt_simple_link_test_code" > conftest.$ac_ext 6757 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 6758 # The linker can only warn and ignore the option if not recognized 6759 # So say no if there are warnings 6760 if test -s conftest.err; then 6761 # Append any errors to the config.log. 6762 cat conftest.err 1>&5 6763 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 6764 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 6765 if diff conftest.exp conftest.er2 >/dev/null; then 6766 lt_prog_compiler_static_works=yes 6767 fi 6768 else 6769 lt_prog_compiler_static_works=yes 6770 fi 6771 fi 6772 $RM conftest* 6773 LDFLAGS="$save_LDFLAGS" 6774 6775fi 6776echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works" >&5 6777echo "${ECHO_T}$lt_prog_compiler_static_works" >&6 6778 6779if test x"$lt_prog_compiler_static_works" = xyes; then 6780 : 6781else 6782 lt_prog_compiler_static= 6783fi 6784 6785 6786 6787 6788 6789 6790 6791 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6792echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6793if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6794 echo $ECHO_N "(cached) $ECHO_C" >&6 6795else 6796 lt_cv_prog_compiler_c_o=no 6797 $RM -r conftest 2>/dev/null 6798 mkdir conftest 6799 cd conftest 6800 mkdir out 6801 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6802 6803 lt_compiler_flag="-o out/conftest2.$ac_objext" 6804 # Insert the option either (1) after the last *FLAGS variable, or 6805 # (2) before a word containing "conftest.", or (3) at the end. 6806 # Note that $ac_compile itself does not contain backslashes and begins 6807 # with a dollar sign (not a hyphen), so the echo should work correctly. 6808 lt_compile=`echo "$ac_compile" | $SED \ 6809 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6810 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6811 -e 's:$: $lt_compiler_flag:'` 6812 (eval echo "\"\$as_me:6812: $lt_compile\"" >&5) 6813 (eval "$lt_compile" 2>out/conftest.err) 6814 ac_status=$? 6815 cat out/conftest.err >&5 6816 echo "$as_me:6816: \$? = $ac_status" >&5 6817 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6818 then 6819 # The compiler can only warn and ignore the option if not recognized 6820 # So say no if there are warnings 6821 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6822 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6823 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6824 lt_cv_prog_compiler_c_o=yes 6825 fi 6826 fi 6827 chmod u+w . 2>&5 6828 $RM conftest* 6829 # SGI C++ compiler will create directory out/ii_files/ for 6830 # template instantiation 6831 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 6832 $RM out/* && rmdir out 6833 cd .. 6834 $RM -r conftest 6835 $RM conftest* 6836 6837fi 6838echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6839echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6840 6841 6842 6843 6844 6845 6846 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 6847echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 6848if test "${lt_cv_prog_compiler_c_o+set}" = set; then 6849 echo $ECHO_N "(cached) $ECHO_C" >&6 6850else 6851 lt_cv_prog_compiler_c_o=no 6852 $RM -r conftest 2>/dev/null 6853 mkdir conftest 6854 cd conftest 6855 mkdir out 6856 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 6857 6858 lt_compiler_flag="-o out/conftest2.$ac_objext" 6859 # Insert the option either (1) after the last *FLAGS variable, or 6860 # (2) before a word containing "conftest.", or (3) at the end. 6861 # Note that $ac_compile itself does not contain backslashes and begins 6862 # with a dollar sign (not a hyphen), so the echo should work correctly. 6863 lt_compile=`echo "$ac_compile" | $SED \ 6864 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 6865 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 6866 -e 's:$: $lt_compiler_flag:'` 6867 (eval echo "\"\$as_me:6867: $lt_compile\"" >&5) 6868 (eval "$lt_compile" 2>out/conftest.err) 6869 ac_status=$? 6870 cat out/conftest.err >&5 6871 echo "$as_me:6871: \$? = $ac_status" >&5 6872 if (exit $ac_status) && test -s out/conftest2.$ac_objext 6873 then 6874 # The compiler can only warn and ignore the option if not recognized 6875 # So say no if there are warnings 6876 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 6877 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 6878 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 6879 lt_cv_prog_compiler_c_o=yes 6880 fi 6881 fi 6882 chmod u+w . 2>&5 6883 $RM conftest* 6884 # SGI C++ compiler will create directory out/ii_files/ for 6885 # template instantiation 6886 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 6887 $RM out/* && rmdir out 6888 cd .. 6889 $RM -r conftest 6890 $RM conftest* 6891 6892fi 6893echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o" >&5 6894echo "${ECHO_T}$lt_cv_prog_compiler_c_o" >&6 6895 6896 6897 6898 6899hard_links="nottested" 6900if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 6901 # do not overwrite the value of need_locks provided by the user 6902 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 6903echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 6904 hard_links=yes 6905 $RM conftest* 6906 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6907 touch conftest.a 6908 ln conftest.a conftest.b 2>&5 || hard_links=no 6909 ln conftest.a conftest.b 2>/dev/null && hard_links=no 6910 echo "$as_me:$LINENO: result: $hard_links" >&5 6911echo "${ECHO_T}$hard_links" >&6 6912 if test "$hard_links" = no; then 6913 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 6914echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 6915 need_locks=warn 6916 fi 6917else 6918 need_locks=no 6919fi 6920 6921 6922 6923 6924 6925 6926 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 6927echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 6928 6929 runpath_var= 6930 allow_undefined_flag= 6931 always_export_symbols=no 6932 archive_cmds= 6933 archive_expsym_cmds= 6934 compiler_needs_object=no 6935 enable_shared_with_static_runtimes=no 6936 export_dynamic_flag_spec= 6937 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 6938 hardcode_automatic=no 6939 hardcode_direct=no 6940 hardcode_direct_absolute=no 6941 hardcode_libdir_flag_spec= 6942 hardcode_libdir_flag_spec_ld= 6943 hardcode_libdir_separator= 6944 hardcode_minus_L=no 6945 hardcode_shlibpath_var=unsupported 6946 inherit_rpath=no 6947 link_all_deplibs=unknown 6948 module_cmds= 6949 module_expsym_cmds= 6950 old_archive_from_new_cmds= 6951 old_archive_from_expsyms_cmds= 6952 thread_safe_flag_spec= 6953 whole_archive_flag_spec= 6954 # include_expsyms should be a list of space-separated symbols to be *always* 6955 # included in the symbol list 6956 include_expsyms= 6957 # exclude_expsyms can be an extended regexp of symbols to exclude 6958 # it will be wrapped by ` (' and `)$', so one must not match beginning or 6959 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 6960 # as well as any symbol that contains `d'. 6961 exclude_expsyms="_GLOBAL_OFFSET_TABLE_" 6962 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 6963 # platforms (ab)use it in PIC code, but their linkers get confused if 6964 # the symbol is explicitly referenced. Since portable code cannot 6965 # rely on this symbol name, it's probably fine to never include it in 6966 # preloaded symbol tables. 6967 extract_expsyms_cmds= 6968 6969 case $host_os in 6970 cygwin* | mingw* | pw32*) 6971 # FIXME: the MSVC++ port hasn't been tested in a loooong time 6972 # When not using gcc, we currently assume that we are using 6973 # Microsoft Visual C++. 6974 if test "$GCC" != yes; then 6975 with_gnu_ld=no 6976 fi 6977 ;; 6978 interix*) 6979 # we just hope/assume this is gcc and not c89 (= MSVC++) 6980 with_gnu_ld=yes 6981 ;; 6982 openbsd*) 6983 with_gnu_ld=no 6984 ;; 6985 esac 6986 6987 ld_shlibs=yes 6988 if test "$with_gnu_ld" = yes; then 6989 # If archive_cmds runs LD, not CC, wlarc should be empty 6990 wlarc='${wl}' 6991 6992 # Set some defaults for GNU ld with shared library support. These 6993 # are reset later if shared libraries are not supported. Putting them 6994 # here allows them to be overridden if necessary. 6995 runpath_var=LD_RUN_PATH 6996 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 6997 export_dynamic_flag_spec='${wl}--export-dynamic' 6998 # ancient GNU ld didn't support --whole-archive et. al. 6999 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 7000 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 7001 else 7002 whole_archive_flag_spec= 7003 fi 7004 supports_anon_versioning=no 7005 case `$LD -v 2>&1` in 7006 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 7007 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 7008 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 7009 *\ 2.11.*) ;; # other 2.11 versions 7010 *) supports_anon_versioning=yes ;; 7011 esac 7012 7013 # See if GNU ld supports shared libraries. 7014 case $host_os in 7015 aix[3-9]*) 7016 # On AIX/PPC, the GNU linker is very broken 7017 if test "$host_cpu" != ia64; then 7018 ld_shlibs=no 7019 cat <<_LT_EOF 1>&2 7020 7021*** Warning: the GNU linker, at least up to release 2.9.1, is reported 7022*** to be unable to reliably create shared libraries on AIX. 7023*** Therefore, libtool is disabling shared libraries support. If you 7024*** really care for shared libraries, you may want to modify your PATH 7025*** so that a non-GNU linker is found, and then restart. 7026 7027_LT_EOF 7028 fi 7029 ;; 7030 7031 amigaos*) 7032 if test "$host_cpu" = m68k; then 7033 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)' 7034 hardcode_libdir_flag_spec='-L$libdir' 7035 hardcode_minus_L=yes 7036 fi 7037 7038 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 7039 # that the semantics of dynamic libraries on AmigaOS, at least up 7040 # to version 4, is to share data among multiple programs linked 7041 # with the same dynamic library. Since this doesn't match the 7042 # behavior of shared libraries on other platforms, we can't use 7043 # them. 7044 ld_shlibs=no 7045 ;; 7046 7047 beos*) 7048 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7049 allow_undefined_flag=unsupported 7050 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 7051 # support --undefined. This deserves some investigation. FIXME 7052 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7053 else 7054 ld_shlibs=no 7055 fi 7056 ;; 7057 7058 cygwin* | mingw* | pw32*) 7059 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 7060 # as there is no search path for DLLs. 7061 hardcode_libdir_flag_spec='-L$libdir' 7062 allow_undefined_flag=unsupported 7063 always_export_symbols=no 7064 enable_shared_with_static_runtimes=yes 7065 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 7066 7067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 7068 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7069 # If the export-symbols file already is a .def file (1st line 7070 # is EXPORTS), use it as is; otherwise, prepend... 7071 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 7072 cp $export_symbols $output_objdir/$soname.def; 7073 else 7074 echo EXPORTS > $output_objdir/$soname.def; 7075 cat $export_symbols >> $output_objdir/$soname.def; 7076 fi~ 7077 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 7078 else 7079 ld_shlibs=no 7080 fi 7081 ;; 7082 7083 interix[3-9]*) 7084 hardcode_direct=no 7085 hardcode_shlibpath_var=no 7086 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7087 export_dynamic_flag_spec='${wl}-E' 7088 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 7089 # Instead, shared libraries are loaded at an image base (0x10000000 by 7090 # default) and relocated if they conflict, which is a slow very memory 7091 # consuming and fragmenting process. To avoid this, we pick a random, 7092 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 7093 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 7094 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7095 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 7096 ;; 7097 7098 gnu* | linux* | tpf* | k*bsd*-gnu) 7099 tmp_diet=no 7100 if test "$host_os" = linux-dietlibc; then 7101 case $cc_basename in 7102 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 7103 esac 7104 fi 7105 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 7106 && test "$tmp_diet" = no 7107 then 7108 tmp_addflag= 7109 case $cc_basename,$host_cpu in 7110 pgcc*) # Portland Group C compiler 7111 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7112 tmp_addflag=' $pic_flag' 7113 ;; 7114 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 7115 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7116 tmp_addflag=' $pic_flag -Mnomain' ;; 7117 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 7118 tmp_addflag=' -i_dynamic' ;; 7119 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 7120 tmp_addflag=' -i_dynamic -nofor_main' ;; 7121 ifc* | ifort*) # Intel Fortran compiler 7122 tmp_addflag=' -nofor_main' ;; 7123 esac 7124 case `$CC -V 2>&1 | sed 5q` in 7125 *Sun\ C*) # Sun C 5.9 7126 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 7127 compiler_needs_object=yes 7128 tmp_sharedflag='-G' ;; 7129 *Sun\ F*) # Sun Fortran 8.3 7130 tmp_sharedflag='-G' ;; 7131 *) 7132 tmp_sharedflag='-shared' ;; 7133 esac 7134 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7135 7136 if test "x$supports_anon_versioning" = xyes; then 7137 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 7138 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 7139 echo "local: *; };" >> $output_objdir/$libname.ver~ 7140 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 7141 fi 7142 else 7143 ld_shlibs=no 7144 fi 7145 ;; 7146 7147 netbsd*) 7148 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7149 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 7150 wlarc= 7151 else 7152 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7153 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7154 fi 7155 ;; 7156 7157 solaris*) 7158 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 7159 ld_shlibs=no 7160 cat <<_LT_EOF 1>&2 7161 7162*** Warning: The releases 2.8.* of the GNU linker cannot reliably 7163*** create shared libraries on Solaris systems. Therefore, libtool 7164*** is disabling shared libraries support. We urge you to upgrade GNU 7165*** binutils to release 2.9.1 or newer. Another option is to modify 7166*** your PATH or compiler configuration so that the native linker is 7167*** used, and then restart. 7168 7169_LT_EOF 7170 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7171 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7172 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7173 else 7174 ld_shlibs=no 7175 fi 7176 ;; 7177 7178 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 7179 case `$LD -v 2>&1` in 7180 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 7181 ld_shlibs=no 7182 cat <<_LT_EOF 1>&2 7183 7184*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 7185*** reliably create shared libraries on SCO systems. Therefore, libtool 7186*** is disabling shared libraries support. We urge you to upgrade GNU 7187*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 7188*** your PATH or compiler configuration so that the native linker is 7189*** used, and then restart. 7190 7191_LT_EOF 7192 ;; 7193 *) 7194 # For security reasons, it is highly recommended that you always 7195 # use absolute paths for naming shared libraries, and exclude the 7196 # DT_RUNPATH tag from executables and libraries. But doing so 7197 # requires that you compile everything twice, which is a pain. 7198 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7199 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7200 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7201 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7202 else 7203 ld_shlibs=no 7204 fi 7205 ;; 7206 esac 7207 ;; 7208 7209 sunos4*) 7210 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7211 wlarc= 7212 hardcode_direct=yes 7213 hardcode_shlibpath_var=no 7214 ;; 7215 7216 *) 7217 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 7218 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 7219 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 7220 else 7221 ld_shlibs=no 7222 fi 7223 ;; 7224 esac 7225 7226 if test "$ld_shlibs" = no; then 7227 runpath_var= 7228 hardcode_libdir_flag_spec= 7229 export_dynamic_flag_spec= 7230 whole_archive_flag_spec= 7231 fi 7232 else 7233 # PORTME fill in a description of your system's linker (not GNU ld) 7234 case $host_os in 7235 aix3*) 7236 allow_undefined_flag=unsupported 7237 always_export_symbols=yes 7238 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' 7239 # Note: this linker hardcodes the directories in LIBPATH if there 7240 # are no directories specified by -L. 7241 hardcode_minus_L=yes 7242 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 7243 # Neither direct hardcoding nor static linking is supported with a 7244 # broken collect2. 7245 hardcode_direct=unsupported 7246 fi 7247 ;; 7248 7249 aix[4-9]*) 7250 if test "$host_cpu" = ia64; then 7251 # On IA64, the linker does run time linking by default, so we don't 7252 # have to do anything special. 7253 aix_use_runtimelinking=no 7254 exp_sym_flag='-Bexport' 7255 no_entry_flag="" 7256 else 7257 # If we're using GNU nm, then we don't want the "-C" option. 7258 # -C means demangle to AIX nm, but means don't demangle with GNU nm 7259 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 7260 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' 7261 else 7262 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' 7263 fi 7264 aix_use_runtimelinking=no 7265 7266 # Test if we are trying to use run time linking or normal 7267 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 7268 # need to do runtime linking. 7269 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 7270 for ld_flag in $LDFLAGS; do 7271 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 7272 aix_use_runtimelinking=yes 7273 break 7274 fi 7275 done 7276 ;; 7277 esac 7278 7279 exp_sym_flag='-bexport' 7280 no_entry_flag='-bnoentry' 7281 fi 7282 7283 # When large executables or shared objects are built, AIX ld can 7284 # have problems creating the table of contents. If linking a library 7285 # or program results in "error TOC overflow" add -mminimal-toc to 7286 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 7287 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 7288 7289 archive_cmds='' 7290 hardcode_direct=yes 7291 hardcode_direct_absolute=yes 7292 hardcode_libdir_separator=':' 7293 link_all_deplibs=yes 7294 file_list_spec='${wl}-f,' 7295 7296 if test "$GCC" = yes; then 7297 case $host_os in aix4.[012]|aix4.[012].*) 7298 # We only want to do this on AIX 4.2 and lower, the check 7299 # below for broken collect2 doesn't work under 4.3+ 7300 collect2name=`${CC} -print-prog-name=collect2` 7301 if test -f "$collect2name" && 7302 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 7303 then 7304 # We have reworked collect2 7305 : 7306 else 7307 # We have old collect2 7308 hardcode_direct=unsupported 7309 # It fails to find uninstalled libraries when the uninstalled 7310 # path is not listed in the libpath. Setting hardcode_minus_L 7311 # to unsupported forces relinking 7312 hardcode_minus_L=yes 7313 hardcode_libdir_flag_spec='-L$libdir' 7314 hardcode_libdir_separator= 7315 fi 7316 ;; 7317 esac 7318 shared_flag='-shared' 7319 if test "$aix_use_runtimelinking" = yes; then 7320 shared_flag="$shared_flag "'${wl}-G' 7321 fi 7322 else 7323 # not using gcc 7324 if test "$host_cpu" = ia64; then 7325 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 7326 # chokes on -Wl,-G. The following line is correct: 7327 shared_flag='-G' 7328 else 7329 if test "$aix_use_runtimelinking" = yes; then 7330 shared_flag='${wl}-G' 7331 else 7332 shared_flag='${wl}-bM:SRE' 7333 fi 7334 fi 7335 fi 7336 7337 # It seems that -bexpall does not export symbols beginning with 7338 # underscore (_), so it is better to generate a list of symbols to export. 7339 always_export_symbols=yes 7340 if test "$aix_use_runtimelinking" = yes; then 7341 # Warning - without using the other runtime loading flags (-brtl), 7342 # -berok will link without error, but may produce a broken library. 7343 allow_undefined_flag='-berok' 7344 # Determine the default libpath from the value encoded in an 7345 # empty executable. 7346 cat >conftest.$ac_ext <<_ACEOF 7347/* confdefs.h. */ 7348_ACEOF 7349cat confdefs.h >>conftest.$ac_ext 7350cat >>conftest.$ac_ext <<_ACEOF 7351/* end confdefs.h. */ 7352 7353int 7354main () 7355{ 7356 7357 ; 7358 return 0; 7359} 7360_ACEOF 7361rm -f conftest.$ac_objext conftest$ac_exeext 7362if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7363 (eval $ac_link) 2>conftest.er1 7364 ac_status=$? 7365 grep -v '^ *+' conftest.er1 >conftest.err 7366 rm -f conftest.er1 7367 cat conftest.err >&5 7368 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7369 (exit $ac_status); } && 7370 { ac_try='test -z "$ac_c_werror_flag" 7371 || test ! -s conftest.err' 7372 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7373 (eval $ac_try) 2>&5 7374 ac_status=$? 7375 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7376 (exit $ac_status); }; } && 7377 { ac_try='test -s conftest$ac_exeext' 7378 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7379 (eval $ac_try) 2>&5 7380 ac_status=$? 7381 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7382 (exit $ac_status); }; }; then 7383 7384lt_aix_libpath_sed=' 7385 /Import File Strings/,/^$/ { 7386 /^0/ { 7387 s/^0 *\(.*\)$/\1/ 7388 p 7389 } 7390 }' 7391aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7392# Check for a 64-bit object if we didn't find anything. 7393if test -z "$aix_libpath"; then 7394 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7395fi 7396else 7397 echo "$as_me: failed program was:" >&5 7398sed 's/^/| /' conftest.$ac_ext >&5 7399 7400fi 7401rm -f conftest.err conftest.$ac_objext \ 7402 conftest$ac_exeext conftest.$ac_ext 7403if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7404 7405 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7406 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 7407 else 7408 if test "$host_cpu" = ia64; then 7409 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 7410 allow_undefined_flag="-z nodefs" 7411 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 7412 else 7413 # Determine the default libpath from the value encoded in an 7414 # empty executable. 7415 cat >conftest.$ac_ext <<_ACEOF 7416/* confdefs.h. */ 7417_ACEOF 7418cat confdefs.h >>conftest.$ac_ext 7419cat >>conftest.$ac_ext <<_ACEOF 7420/* end confdefs.h. */ 7421 7422int 7423main () 7424{ 7425 7426 ; 7427 return 0; 7428} 7429_ACEOF 7430rm -f conftest.$ac_objext conftest$ac_exeext 7431if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7432 (eval $ac_link) 2>conftest.er1 7433 ac_status=$? 7434 grep -v '^ *+' conftest.er1 >conftest.err 7435 rm -f conftest.er1 7436 cat conftest.err >&5 7437 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7438 (exit $ac_status); } && 7439 { ac_try='test -z "$ac_c_werror_flag" 7440 || test ! -s conftest.err' 7441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7442 (eval $ac_try) 2>&5 7443 ac_status=$? 7444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7445 (exit $ac_status); }; } && 7446 { ac_try='test -s conftest$ac_exeext' 7447 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7448 (eval $ac_try) 2>&5 7449 ac_status=$? 7450 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7451 (exit $ac_status); }; }; then 7452 7453lt_aix_libpath_sed=' 7454 /Import File Strings/,/^$/ { 7455 /^0/ { 7456 s/^0 *\(.*\)$/\1/ 7457 p 7458 } 7459 }' 7460aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7461# Check for a 64-bit object if we didn't find anything. 7462if test -z "$aix_libpath"; then 7463 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 7464fi 7465else 7466 echo "$as_me: failed program was:" >&5 7467sed 's/^/| /' conftest.$ac_ext >&5 7468 7469fi 7470rm -f conftest.err conftest.$ac_objext \ 7471 conftest$ac_exeext conftest.$ac_ext 7472if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 7473 7474 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 7475 # Warning - without using the other run time loading flags, 7476 # -berok will link without error, but may produce a broken library. 7477 no_undefined_flag=' ${wl}-bernotok' 7478 allow_undefined_flag=' ${wl}-berok' 7479 # Exported symbols can be pulled into shared objects from archives 7480 whole_archive_flag_spec='$convenience' 7481 archive_cmds_need_lc=yes 7482 # This is similar to how AIX traditionally builds its shared libraries. 7483 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 7484 fi 7485 fi 7486 ;; 7487 7488 amigaos*) 7489 if test "$host_cpu" = m68k; then 7490 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)' 7491 hardcode_libdir_flag_spec='-L$libdir' 7492 hardcode_minus_L=yes 7493 fi 7494 # see comment about different semantics on the GNU ld section 7495 ld_shlibs=no 7496 ;; 7497 7498 bsdi[45]*) 7499 export_dynamic_flag_spec=-rdynamic 7500 ;; 7501 7502 cygwin* | mingw* | pw32*) 7503 # When not using gcc, we currently assume that we are using 7504 # Microsoft Visual C++. 7505 # hardcode_libdir_flag_spec is actually meaningless, as there is 7506 # no search path for DLLs. 7507 hardcode_libdir_flag_spec=' ' 7508 allow_undefined_flag=unsupported 7509 # Tell ltmain to make .lib files, not .a files. 7510 libext=lib 7511 # Tell ltmain to make .dll files, not .so files. 7512 shrext_cmds=".dll" 7513 # FIXME: Setting linknames here is a bad hack. 7514 archive_cmds='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 7515 # The linker will automatically build a .lib file if we build a DLL. 7516 old_archive_from_new_cmds='true' 7517 # FIXME: Should let the user specify the lib program. 7518 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 7519 fix_srcfile_path='`cygpath -w "$srcfile"`' 7520 enable_shared_with_static_runtimes=yes 7521 ;; 7522 7523 darwin* | rhapsody*) 7524 case $host_os in 7525 rhapsody* | darwin1.[012]) 7526 allow_undefined_flag='${wl}-undefined ${wl}suppress' 7527 ;; 7528 *) # Darwin 1.3 on 7529 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 7530 10.[012]) 7531 allow_undefined_flag='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 7532 ;; 7533 10.*) 7534 allow_undefined_flag='${wl}-undefined ${wl}dynamic_lookup' 7535 ;; 7536 esac 7537 ;; 7538 esac 7539 archive_cmds_need_lc=no 7540 hardcode_direct=no 7541 hardcode_automatic=yes 7542 hardcode_shlibpath_var=unsupported 7543 whole_archive_flag_spec='' 7544 link_all_deplibs=yes 7545 if test "$GCC" = yes ; then 7546 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 7547 echo $ECHO_N "(cached) $ECHO_C" >&6 7548else 7549 lt_cv_apple_cc_single_mod=no 7550 if test -z "${LT_MULTI_MODULE}"; then 7551 # By default we will add the -single_module flag. You can override 7552 # by either setting the environment variable LT_MULTI_MODULE 7553 # non-empty at configure time, or by adding -multi-module to the 7554 # link flags. 7555 echo "int foo(void){return 1;}" > conftest.c 7556 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7557 -dynamiclib ${wl}-single_module conftest.c 7558 if test -f libconftest.dylib; then 7559 lt_cv_apple_cc_single_mod=yes 7560 rm libconftest.dylib 7561 fi 7562 rm conftest.$ac_ext 7563 fi 7564fi 7565 7566 output_verbose_link_cmd=echo 7567 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then 7568 archive_cmds='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7569 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7570 else 7571 archive_cmds='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 7572 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7573 fi 7574 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7575 module_expsym_cmds='sed -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}' 7576 else 7577 case $cc_basename in 7578 xlc*) 7579 output_verbose_link_cmd=echo 7580 archive_cmds='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' 7581 module_cmds='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 7582 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 7583 archive_expsym_cmds='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 7584 module_expsym_cmds='sed "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}' 7585 ;; 7586 *) 7587 ld_shlibs=no 7588 ;; 7589 esac 7590 fi 7591 ;; 7592 7593 dgux*) 7594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7595 hardcode_libdir_flag_spec='-L$libdir' 7596 hardcode_shlibpath_var=no 7597 ;; 7598 7599 freebsd1*) 7600 ld_shlibs=no 7601 ;; 7602 7603 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 7604 # support. Future versions do this automatically, but an explicit c++rt0.o 7605 # does not break anything, and helps significantly (at the cost of a little 7606 # extra space). 7607 freebsd2.2*) 7608 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 7609 hardcode_libdir_flag_spec='-R$libdir' 7610 hardcode_direct=yes 7611 hardcode_shlibpath_var=no 7612 ;; 7613 7614 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 7615 freebsd2*) 7616 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7617 hardcode_direct=yes 7618 hardcode_minus_L=yes 7619 hardcode_shlibpath_var=no 7620 ;; 7621 7622 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 7623 freebsd* | dragonfly*) 7624 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 7625 hardcode_libdir_flag_spec='-R$libdir' 7626 hardcode_direct=yes 7627 hardcode_shlibpath_var=no 7628 ;; 7629 7630 hpux9*) 7631 if test "$GCC" = yes; then 7632 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' 7633 else 7634 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' 7635 fi 7636 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7637 hardcode_libdir_separator=: 7638 hardcode_direct=yes 7639 7640 # hardcode_minus_L: Not really in the search PATH, 7641 # but as the default location of the library. 7642 hardcode_minus_L=yes 7643 export_dynamic_flag_spec='${wl}-E' 7644 ;; 7645 7646 hpux10*) 7647 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7648 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7649 else 7650 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 7651 fi 7652 if test "$with_gnu_ld" = no; then 7653 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7654 hardcode_libdir_flag_spec_ld='+b $libdir' 7655 hardcode_libdir_separator=: 7656 hardcode_direct=yes 7657 hardcode_direct_absolute=yes 7658 export_dynamic_flag_spec='${wl}-E' 7659 # hardcode_minus_L: Not really in the search PATH, 7660 # but as the default location of the library. 7661 hardcode_minus_L=yes 7662 fi 7663 ;; 7664 7665 hpux11*) 7666 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 7667 case $host_cpu in 7668 hppa*64*) 7669 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7670 ;; 7671 ia64*) 7672 archive_cmds='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7673 ;; 7674 *) 7675 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7676 ;; 7677 esac 7678 else 7679 case $host_cpu in 7680 hppa*64*) 7681 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7682 ;; 7683 ia64*) 7684 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 7685 ;; 7686 *) 7687 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 7688 ;; 7689 esac 7690 fi 7691 if test "$with_gnu_ld" = no; then 7692 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 7693 hardcode_libdir_separator=: 7694 7695 case $host_cpu in 7696 hppa*64*|ia64*) 7697 hardcode_direct=no 7698 hardcode_shlibpath_var=no 7699 ;; 7700 *) 7701 hardcode_direct=yes 7702 hardcode_direct_absolute=yes 7703 export_dynamic_flag_spec='${wl}-E' 7704 7705 # hardcode_minus_L: Not really in the search PATH, 7706 # but as the default location of the library. 7707 hardcode_minus_L=yes 7708 ;; 7709 esac 7710 fi 7711 ;; 7712 7713 irix5* | irix6* | nonstopux*) 7714 if test "$GCC" = yes; then 7715 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7716 # Try to use the -exported_symbol ld option, if it does not 7717 # work, assume that -exports_file does not work either and 7718 # implicitly export all symbols. 7719 save_LDFLAGS="$LDFLAGS" 7720 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 7721 cat >conftest.$ac_ext <<_ACEOF 7722int foo(void) {} 7723_ACEOF 7724rm -f conftest.$ac_objext conftest$ac_exeext 7725if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 7726 (eval $ac_link) 2>conftest.er1 7727 ac_status=$? 7728 grep -v '^ *+' conftest.er1 >conftest.err 7729 rm -f conftest.er1 7730 cat conftest.err >&5 7731 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7732 (exit $ac_status); } && 7733 { ac_try='test -z "$ac_c_werror_flag" 7734 || test ! -s conftest.err' 7735 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7736 (eval $ac_try) 2>&5 7737 ac_status=$? 7738 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7739 (exit $ac_status); }; } && 7740 { ac_try='test -s conftest$ac_exeext' 7741 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 7742 (eval $ac_try) 2>&5 7743 ac_status=$? 7744 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7745 (exit $ac_status); }; }; then 7746 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 7747 7748else 7749 echo "$as_me: failed program was:" >&5 7750sed 's/^/| /' conftest.$ac_ext >&5 7751 7752fi 7753rm -f conftest.err conftest.$ac_objext \ 7754 conftest$ac_exeext conftest.$ac_ext 7755 LDFLAGS="$save_LDFLAGS" 7756 else 7757 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7758 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 7759 fi 7760 archive_cmds_need_lc='no' 7761 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7762 hardcode_libdir_separator=: 7763 inherit_rpath=yes 7764 link_all_deplibs=yes 7765 ;; 7766 7767 netbsd*) 7768 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 7769 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 7770 else 7771 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 7772 fi 7773 hardcode_libdir_flag_spec='-R$libdir' 7774 hardcode_direct=yes 7775 hardcode_shlibpath_var=no 7776 ;; 7777 7778 newsos6) 7779 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7780 hardcode_direct=yes 7781 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7782 hardcode_libdir_separator=: 7783 hardcode_shlibpath_var=no 7784 ;; 7785 7786 *nto* | *qnx*) 7787 ;; 7788 7789 openbsd*) 7790 hardcode_direct=yes 7791 hardcode_shlibpath_var=no 7792 hardcode_direct_absolute=yes 7793 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 7794 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7795 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 7796 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7797 export_dynamic_flag_spec='${wl}-E' 7798 else 7799 case $host_os in 7800 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 7801 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 7802 hardcode_libdir_flag_spec='-R$libdir' 7803 ;; 7804 *) 7805 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 7806 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 7807 ;; 7808 esac 7809 fi 7810 ;; 7811 7812 os2*) 7813 hardcode_libdir_flag_spec='-L$libdir' 7814 hardcode_minus_L=yes 7815 allow_undefined_flag=unsupported 7816 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' 7817 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 7818 ;; 7819 7820 osf3*) 7821 if test "$GCC" = yes; then 7822 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7823 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7824 else 7825 allow_undefined_flag=' -expect_unresolved \*' 7826 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7827 fi 7828 archive_cmds_need_lc='no' 7829 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7830 hardcode_libdir_separator=: 7831 ;; 7832 7833 osf4* | osf5*) # as osf3* with the addition of -msym flag 7834 if test "$GCC" = yes; then 7835 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 7836 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 7837 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 7838 else 7839 allow_undefined_flag=' -expect_unresolved \*' 7840 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 7841 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 7842 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 7843 7844 # Both c and cxx compiler support -rpath directly 7845 hardcode_libdir_flag_spec='-rpath $libdir' 7846 fi 7847 archive_cmds_need_lc='no' 7848 hardcode_libdir_separator=: 7849 ;; 7850 7851 solaris*) 7852 no_undefined_flag=' -z defs' 7853 if test "$GCC" = yes; then 7854 wlarc='${wl}' 7855 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 7856 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7857 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7858 else 7859 case `$CC -V 2>&1` in 7860 *"Compilers 5.0"*) 7861 wlarc='' 7862 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 7863 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7864 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 7865 ;; 7866 *) 7867 wlarc='${wl}' 7868 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 7869 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 7870 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 7871 ;; 7872 esac 7873 fi 7874 hardcode_libdir_flag_spec='-R$libdir' 7875 hardcode_shlibpath_var=no 7876 case $host_os in 7877 solaris2.[0-5] | solaris2.[0-5].*) ;; 7878 *) 7879 # The compiler driver will combine and reorder linker options, 7880 # but understands `-z linker_flag'. GCC discards it without `$wl', 7881 # but is careful enough not to reorder. 7882 # Supported since Solaris 2.6 (maybe 2.5.1?) 7883 if test "$GCC" = yes; then 7884 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 7885 else 7886 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 7887 fi 7888 ;; 7889 esac 7890 link_all_deplibs=yes 7891 ;; 7892 7893 sunos4*) 7894 if test "x$host_vendor" = xsequent; then 7895 # Use $CC to link under sequent, because it throws in some extra .o 7896 # files that make .init and .fini sections work. 7897 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 7898 else 7899 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 7900 fi 7901 hardcode_libdir_flag_spec='-L$libdir' 7902 hardcode_direct=yes 7903 hardcode_minus_L=yes 7904 hardcode_shlibpath_var=no 7905 ;; 7906 7907 sysv4) 7908 case $host_vendor in 7909 sni) 7910 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7911 hardcode_direct=yes # is this really true??? 7912 ;; 7913 siemens) 7914 ## LD is ld it makes a PLAMLIB 7915 ## CC just makes a GrossModule. 7916 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 7917 reload_cmds='$CC -r -o $output$reload_objs' 7918 hardcode_direct=no 7919 ;; 7920 motorola) 7921 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7922 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 7923 ;; 7924 esac 7925 runpath_var='LD_RUN_PATH' 7926 hardcode_shlibpath_var=no 7927 ;; 7928 7929 sysv4.3*) 7930 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7931 hardcode_shlibpath_var=no 7932 export_dynamic_flag_spec='-Bexport' 7933 ;; 7934 7935 sysv4*MP*) 7936 if test -d /usr/nec; then 7937 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7938 hardcode_shlibpath_var=no 7939 runpath_var=LD_RUN_PATH 7940 hardcode_runpath_var=yes 7941 ld_shlibs=yes 7942 fi 7943 ;; 7944 7945 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 7946 no_undefined_flag='${wl}-z,text' 7947 archive_cmds_need_lc=no 7948 hardcode_shlibpath_var=no 7949 runpath_var='LD_RUN_PATH' 7950 7951 if test "$GCC" = yes; then 7952 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7953 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7954 else 7955 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7956 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7957 fi 7958 ;; 7959 7960 sysv5* | sco3.2v5* | sco5v6*) 7961 # Note: We can NOT use -z defs as we might desire, because we do not 7962 # link with -lc, and that would cause any symbols used from libc to 7963 # always be unresolved, which means just about no library would 7964 # ever link correctly. If we're not using GNU ld we use -z text 7965 # though, which does catch some bad symbols but isn't as heavy-handed 7966 # as -z defs. 7967 no_undefined_flag='${wl}-z,text' 7968 allow_undefined_flag='${wl}-z,nodefs' 7969 archive_cmds_need_lc=no 7970 hardcode_shlibpath_var=no 7971 hardcode_libdir_flag_spec='${wl}-R,$libdir' 7972 hardcode_libdir_separator=':' 7973 link_all_deplibs=yes 7974 export_dynamic_flag_spec='${wl}-Bexport' 7975 runpath_var='LD_RUN_PATH' 7976 7977 if test "$GCC" = yes; then 7978 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7979 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7980 else 7981 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7982 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 7983 fi 7984 ;; 7985 7986 uts4*) 7987 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 7988 hardcode_libdir_flag_spec='-L$libdir' 7989 hardcode_shlibpath_var=no 7990 ;; 7991 7992 *) 7993 ld_shlibs=no 7994 ;; 7995 esac 7996 7997 if test x$host_vendor = xsni; then 7998 case $host in 7999 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 8000 export_dynamic_flag_spec='${wl}-Blargedynsym' 8001 ;; 8002 esac 8003 fi 8004 fi 8005 8006echo "$as_me:$LINENO: result: $ld_shlibs" >&5 8007echo "${ECHO_T}$ld_shlibs" >&6 8008test "$ld_shlibs" = no && can_build_shared=no 8009 8010with_gnu_ld=$with_gnu_ld 8011 8012 8013 8014 8015 8016 8017 8018 8019 8020 8021 8022 8023 8024 8025 8026# 8027# Do we need to explicitly link libc? 8028# 8029case "x$archive_cmds_need_lc" in 8030x|xyes) 8031 # Assume -lc should be added 8032 archive_cmds_need_lc=yes 8033 8034 if test "$enable_shared" = yes && test "$GCC" = yes; then 8035 case $archive_cmds in 8036 *'~'*) 8037 # FIXME: we may have to deal with multi-command sequences. 8038 ;; 8039 '$CC '*) 8040 # Test whether the compiler implicitly links with -lc since on some 8041 # systems, -lgcc has to come before -lc. If gcc already passes -lc 8042 # to ld, don't add -lc before -lgcc. 8043 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 8044echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 8045 $RM conftest* 8046 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8047 8048 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 8049 (eval $ac_compile) 2>&5 8050 ac_status=$? 8051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8052 (exit $ac_status); } 2>conftest.err; then 8053 soname=conftest 8054 lib=conftest 8055 libobjs=conftest.$ac_objext 8056 deplibs= 8057 wl=$lt_prog_compiler_wl 8058 pic_flag=$lt_prog_compiler_pic 8059 compiler_flags=-v 8060 linker_flags=-v 8061 verstring= 8062 output_objdir=. 8063 libname=conftest 8064 lt_save_allow_undefined_flag=$allow_undefined_flag 8065 allow_undefined_flag= 8066 if { (eval echo "$as_me:$LINENO: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 8067 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 8068 ac_status=$? 8069 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8070 (exit $ac_status); } 8071 then 8072 archive_cmds_need_lc=no 8073 else 8074 archive_cmds_need_lc=yes 8075 fi 8076 allow_undefined_flag=$lt_save_allow_undefined_flag 8077 else 8078 cat conftest.err 1>&5 8079 fi 8080 $RM conftest* 8081 echo "$as_me:$LINENO: result: $archive_cmds_need_lc" >&5 8082echo "${ECHO_T}$archive_cmds_need_lc" >&6 8083 ;; 8084 esac 8085 fi 8086 ;; 8087esac 8088 8089 8090 8091 8092 8093 8094 8095 8096 8097 8098 8099 8100 8101 8102 8103 8104 8105 8106 8107 8108 8109 8110 8111 8112 8113 8114 8115 8116 8117 8118 8119 8120 8121 8122 8123 8124 8125 8126 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138 8139 8140 8141 8142 8143 8144 8145 8146 8147 8148 8149 8150 8151 8152 8153 8154 8155 8156 8157 8158 8159 8160 8161 8162 8163 8164 8165 8166 8167 8168 8169 8170 8171 8172 8173 8174 8175 8176 8177 8178 8179 8180 8181 8182 8183 8184 8185 8186 8187 8188 8189 8190 8191 8192 8193 8194 8195 8196 8197 8198 8199 8200 8201 8202 8203 8204 8205 8206 8207 8208 8209 8210 8211 8212 8213 8214 8215 8216 8217 8218 8219 8220 8221 8222 8223 8224 8225 8226 8227 8228 8229 8230 8231 8232 8233 8234 8235 8236 8237 8238 8239 8240 8241 8242 8243 8244 8245 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 8246echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 8247withGCC=$GCC 8248if test "$withGCC" = yes; then 8249 case $host_os in 8250 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 8251 *) lt_awk_arg="/^libraries:/" ;; 8252 esac 8253 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8254 if $ECHO "$lt_search_path_spec" | $GREP ';' >/dev/null ; then 8255 # if the path contains ";" then we assume it to be the separator 8256 # otherwise default to the standard path separator (i.e. ":") - it is 8257 # assumed that no part of a normal pathname contains ";" but that should 8258 # okay in the real world where ";" in dirpaths is itself problematic. 8259 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e 's/;/ /g'` 8260 else 8261 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8262 fi 8263 # Ok, now we have the path, separated by spaces, we can step through it 8264 # and add multilib dir if necessary. 8265 lt_tmp_lt_search_path_spec= 8266 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 8267 for lt_sys_path in $lt_search_path_spec; do 8268 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 8269 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 8270 else 8271 test -d "$lt_sys_path" && \ 8272 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 8273 fi 8274 done 8275 lt_search_path_spec=`$ECHO $lt_tmp_lt_search_path_spec | awk ' 8276BEGIN {RS=" "; FS="/|\n";} { 8277 lt_foo=""; 8278 lt_count=0; 8279 for (lt_i = NF; lt_i > 0; lt_i--) { 8280 if ($lt_i != "" && $lt_i != ".") { 8281 if ($lt_i == "..") { 8282 lt_count++; 8283 } else { 8284 if (lt_count == 0) { 8285 lt_foo="/" $lt_i lt_foo; 8286 } else { 8287 lt_count--; 8288 } 8289 } 8290 } 8291 } 8292 if (lt_foo != "") { lt_freq[lt_foo]++; } 8293 if (lt_freq[lt_foo] == 1) { print lt_foo; } 8294}'` 8295 sys_lib_search_path_spec=`$ECHO $lt_search_path_spec` 8296else 8297 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 8298fi 8299library_names_spec= 8300libname_spec='lib$name' 8301soname_spec= 8302shrext_cmds=".so" 8303postinstall_cmds= 8304postuninstall_cmds= 8305finish_cmds= 8306finish_eval= 8307shlibpath_var= 8308shlibpath_overrides_runpath=unknown 8309version_type=none 8310dynamic_linker="$host_os ld.so" 8311sys_lib_dlsearch_path_spec="/lib /usr/lib" 8312need_lib_prefix=unknown 8313hardcode_into_libs=no 8314 8315# when you set need_version to no, make sure it does not cause -set_version 8316# flags to be left without arguments 8317need_version=unknown 8318 8319case $host_os in 8320aix3*) 8321 version_type=linux 8322 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 8323 shlibpath_var=LIBPATH 8324 8325 # AIX 3 has no versioning support, so we append a major version to the name. 8326 soname_spec='${libname}${release}${shared_ext}$major' 8327 ;; 8328 8329aix[4-9]*) 8330 version_type=linux 8331 need_lib_prefix=no 8332 need_version=no 8333 hardcode_into_libs=yes 8334 if test "$host_cpu" = ia64; then 8335 # AIX 5 supports IA64 8336 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 8337 shlibpath_var=LD_LIBRARY_PATH 8338 else 8339 # With GCC up to 2.95.x, collect2 would create an import file 8340 # for dependence libraries. The import file would start with 8341 # the line `#! .'. This would cause the generated library to 8342 # depend on `.', always an invalid library. This was fixed in 8343 # development snapshots of GCC prior to 3.0. 8344 case $host_os in 8345 aix4 | aix4.[01] | aix4.[01].*) 8346 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 8347 echo ' yes ' 8348 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 8349 : 8350 else 8351 can_build_shared=no 8352 fi 8353 ;; 8354 esac 8355 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 8356 # soname into executable. Probably we can add versioning support to 8357 # collect2, so additional links can be useful in future. 8358 if test "$aix_use_runtimelinking" = yes; then 8359 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 8360 # instead of lib<name>.a to let people know that these are not 8361 # typical AIX shared libraries. 8362 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8363 else 8364 # We preserve .a as extension for shared libraries through AIX4.2 8365 # and later when we are not doing run time linking. 8366 library_names_spec='${libname}${release}.a $libname.a' 8367 soname_spec='${libname}${release}${shared_ext}$major' 8368 fi 8369 shlibpath_var=LIBPATH 8370 fi 8371 ;; 8372 8373amigaos*) 8374 if test "$host_cpu" = m68k; then 8375 library_names_spec='$libname.ixlibrary $libname.a' 8376 # Create ${libname}_ixlibrary.a entries in /sys/libs. 8377 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' 8378 else 8379 dynamic_linker=no 8380 fi 8381 ;; 8382 8383beos*) 8384 library_names_spec='${libname}${shared_ext}' 8385 dynamic_linker="$host_os ld.so" 8386 shlibpath_var=LIBRARY_PATH 8387 ;; 8388 8389bsdi[45]*) 8390 version_type=linux 8391 need_version=no 8392 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8393 soname_spec='${libname}${release}${shared_ext}$major' 8394 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 8395 shlibpath_var=LD_LIBRARY_PATH 8396 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 8397 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 8398 # the default ld.so.conf also contains /usr/contrib/lib and 8399 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 8400 # libtool to hard-code these into programs 8401 ;; 8402 8403cygwin* | mingw* | pw32*) 8404 version_type=windows 8405 shrext_cmds=".dll" 8406 need_version=no 8407 need_lib_prefix=no 8408 8409 case $withGCC,$host_os in 8410 yes,cygwin* | yes,mingw* | yes,pw32*) 8411 library_names_spec='$libname.dll.a' 8412 # DLL is installed to $(libdir)/../bin by postinstall_cmds 8413 postinstall_cmds='base_file=`basename \${file}`~ 8414 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 8415 dldir=$destdir/`dirname \$dlpath`~ 8416 test -d \$dldir || mkdir -p \$dldir~ 8417 $install_prog $dir/$dlname \$dldir/$dlname~ 8418 chmod a+x \$dldir/$dlname~ 8419 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 8420 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 8421 fi' 8422 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 8423 dlpath=$dir/\$dldll~ 8424 $RM \$dlpath' 8425 shlibpath_overrides_runpath=yes 8426 8427 case $host_os in 8428 cygwin*) 8429 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 8430 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8431 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 8432 ;; 8433 mingw*) 8434 # MinGW DLLs use traditional 'lib' prefix 8435 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8436 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 8437 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 8438 # It is most probably a Windows format PATH printed by 8439 # mingw gcc, but we are running on Cygwin. Gcc prints its search 8440 # path with ; separators, and with drive letters. We can handle the 8441 # drive letters (cygwin fileutils understands them), so leave them, 8442 # especially as we might pass files found there to a mingw objdump, 8443 # which wouldn't understand a cygwinified path. Ahh. 8444 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 8445 else 8446 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 8447 fi 8448 ;; 8449 pw32*) 8450 # pw32 DLLs use 'pw' prefix rather than 'lib' 8451 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 8452 ;; 8453 esac 8454 ;; 8455 8456 *) 8457 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 8458 ;; 8459 esac 8460 dynamic_linker='Win32 ld.exe' 8461 # FIXME: first we should search . and the directory the executable is in 8462 shlibpath_var=PATH 8463 ;; 8464 8465darwin* | rhapsody*) 8466 dynamic_linker="$host_os dyld" 8467 version_type=darwin 8468 need_lib_prefix=no 8469 need_version=no 8470 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 8471 soname_spec='${libname}${release}${major}$shared_ext' 8472 shlibpath_overrides_runpath=yes 8473 shlibpath_var=DYLD_LIBRARY_PATH 8474 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 8475 8476 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 8477 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 8478 ;; 8479 8480dgux*) 8481 version_type=linux 8482 need_lib_prefix=no 8483 need_version=no 8484 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 8485 soname_spec='${libname}${release}${shared_ext}$major' 8486 shlibpath_var=LD_LIBRARY_PATH 8487 ;; 8488 8489freebsd1*) 8490 dynamic_linker=no 8491 ;; 8492 8493freebsd* | dragonfly*) 8494 # DragonFly does not have aout. When/if they implement a new 8495 # versioning mechanism, adjust this. 8496 if test -x /usr/bin/objformat; then 8497 objformat=`/usr/bin/objformat` 8498 else 8499 case $host_os in 8500 freebsd[123]*) objformat=aout ;; 8501 *) objformat=elf ;; 8502 esac 8503 fi 8504 version_type=freebsd-$objformat 8505 case $version_type in 8506 freebsd-elf*) 8507 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8508 need_version=no 8509 need_lib_prefix=no 8510 ;; 8511 freebsd-*) 8512 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 8513 need_version=yes 8514 ;; 8515 esac 8516 shlibpath_var=LD_LIBRARY_PATH 8517 case $host_os in 8518 freebsd2*) 8519 shlibpath_overrides_runpath=yes 8520 ;; 8521 freebsd3.[01]* | freebsdelf3.[01]*) 8522 shlibpath_overrides_runpath=yes 8523 hardcode_into_libs=yes 8524 ;; 8525 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 8526 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 8527 shlibpath_overrides_runpath=no 8528 hardcode_into_libs=yes 8529 ;; 8530 *) # from 4.6 on, and DragonFly 8531 shlibpath_overrides_runpath=yes 8532 hardcode_into_libs=yes 8533 ;; 8534 esac 8535 ;; 8536 8537gnu*) 8538 version_type=linux 8539 need_lib_prefix=no 8540 need_version=no 8541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 8542 soname_spec='${libname}${release}${shared_ext}$major' 8543 shlibpath_var=LD_LIBRARY_PATH 8544 hardcode_into_libs=yes 8545 ;; 8546 8547hpux9* | hpux10* | hpux11*) 8548 # Give a soname corresponding to the major version so that dld.sl refuses to 8549 # link against other versions. 8550 version_type=sunos 8551 need_lib_prefix=no 8552 need_version=no 8553 case $host_cpu in 8554 ia64*) 8555 shrext_cmds='.so' 8556 hardcode_into_libs=yes 8557 dynamic_linker="$host_os dld.so" 8558 shlibpath_var=LD_LIBRARY_PATH 8559 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8560 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8561 soname_spec='${libname}${release}${shared_ext}$major' 8562 if test "X$HPUX_IA64_MODE" = X32; then 8563 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 8564 else 8565 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 8566 fi 8567 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8568 ;; 8569 hppa*64*) 8570 shrext_cmds='.sl' 8571 hardcode_into_libs=yes 8572 dynamic_linker="$host_os dld.sl" 8573 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 8574 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 8575 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8576 soname_spec='${libname}${release}${shared_ext}$major' 8577 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 8578 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 8579 ;; 8580 *) 8581 shrext_cmds='.sl' 8582 dynamic_linker="$host_os dld.sl" 8583 shlibpath_var=SHLIB_PATH 8584 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 8585 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8586 soname_spec='${libname}${release}${shared_ext}$major' 8587 ;; 8588 esac 8589 # HP-UX runs *really* slowly unless shared libraries are mode 555. 8590 postinstall_cmds='chmod 555 $lib' 8591 ;; 8592 8593interix[3-9]*) 8594 version_type=linux 8595 need_lib_prefix=no 8596 need_version=no 8597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8598 soname_spec='${libname}${release}${shared_ext}$major' 8599 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 8600 shlibpath_var=LD_LIBRARY_PATH 8601 shlibpath_overrides_runpath=no 8602 hardcode_into_libs=yes 8603 ;; 8604 8605irix5* | irix6* | nonstopux*) 8606 case $host_os in 8607 nonstopux*) version_type=nonstopux ;; 8608 *) 8609 if test "$lt_cv_prog_gnu_ld" = yes; then 8610 version_type=linux 8611 else 8612 version_type=irix 8613 fi ;; 8614 esac 8615 need_lib_prefix=no 8616 need_version=no 8617 soname_spec='${libname}${release}${shared_ext}$major' 8618 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 8619 case $host_os in 8620 irix5* | nonstopux*) 8621 libsuff= shlibsuff= 8622 ;; 8623 *) 8624 case $LD in # libtool.m4 will add one of these switches to LD 8625 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 8626 libsuff= shlibsuff= libmagic=32-bit;; 8627 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 8628 libsuff=32 shlibsuff=N32 libmagic=N32;; 8629 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 8630 libsuff=64 shlibsuff=64 libmagic=64-bit;; 8631 *) libsuff= shlibsuff= libmagic=never-match;; 8632 esac 8633 ;; 8634 esac 8635 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 8636 shlibpath_overrides_runpath=no 8637 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 8638 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 8639 hardcode_into_libs=yes 8640 ;; 8641 8642# No shared lib support for Linux oldld, aout, or coff. 8643linux*oldld* | linux*aout* | linux*coff*) 8644 dynamic_linker=no 8645 ;; 8646 8647# This must be Linux ELF. 8648linux* | k*bsd*-gnu) 8649 version_type=linux 8650 need_lib_prefix=no 8651 need_version=no 8652 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8653 soname_spec='${libname}${release}${shared_ext}$major' 8654 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 8655 shlibpath_var=LD_LIBRARY_PATH 8656 shlibpath_overrides_runpath=no 8657 # Some binutils ld are patched to set DT_RUNPATH 8658 save_LDFLAGS=$LDFLAGS 8659 save_libdir=$libdir 8660 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 8661 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 8662 cat >conftest.$ac_ext <<_ACEOF 8663/* confdefs.h. */ 8664_ACEOF 8665cat confdefs.h >>conftest.$ac_ext 8666cat >>conftest.$ac_ext <<_ACEOF 8667/* end confdefs.h. */ 8668 8669int 8670main () 8671{ 8672 8673 ; 8674 return 0; 8675} 8676_ACEOF 8677rm -f conftest.$ac_objext conftest$ac_exeext 8678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 8679 (eval $ac_link) 2>conftest.er1 8680 ac_status=$? 8681 grep -v '^ *+' conftest.er1 >conftest.err 8682 rm -f conftest.er1 8683 cat conftest.err >&5 8684 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8685 (exit $ac_status); } && 8686 { ac_try='test -z "$ac_c_werror_flag" 8687 || test ! -s conftest.err' 8688 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8689 (eval $ac_try) 2>&5 8690 ac_status=$? 8691 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8692 (exit $ac_status); }; } && 8693 { ac_try='test -s conftest$ac_exeext' 8694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 8695 (eval $ac_try) 2>&5 8696 ac_status=$? 8697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8698 (exit $ac_status); }; }; then 8699 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then 8700 shlibpath_overrides_runpath=yes 8701fi 8702 8703else 8704 echo "$as_me: failed program was:" >&5 8705sed 's/^/| /' conftest.$ac_ext >&5 8706 8707fi 8708rm -f conftest.err conftest.$ac_objext \ 8709 conftest$ac_exeext conftest.$ac_ext 8710 LDFLAGS=$save_LDFLAGS 8711 libdir=$save_libdir 8712 8713 # This implies no fast_install, which is unacceptable. 8714 # Some rework will be needed to allow for fast_install 8715 # before this can be enabled. 8716 hardcode_into_libs=yes 8717 8718 # Append ld.so.conf contents to the search path 8719 if test -f /etc/ld.so.conf; then 8720 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 8721 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 8722 fi 8723 8724 # We used to test for /lib/ld.so.1 and disable shared libraries on 8725 # powerpc, because MkLinux only supported shared libraries with the 8726 # GNU dynamic linker. Since this was broken with cross compilers, 8727 # most powerpc-linux boxes support dynamic linking these days and 8728 # people can always --disable-shared, the test was removed, and we 8729 # assume the GNU/Linux dynamic linker is in use. 8730 dynamic_linker='GNU/Linux ld.so' 8731 ;; 8732 8733netbsd*) 8734 version_type=sunos 8735 need_lib_prefix=no 8736 need_version=no 8737 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8739 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8740 dynamic_linker='NetBSD (a.out) ld.so' 8741 else 8742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 8743 soname_spec='${libname}${release}${shared_ext}$major' 8744 dynamic_linker='NetBSD ld.elf_so' 8745 fi 8746 shlibpath_var=LD_LIBRARY_PATH 8747 shlibpath_overrides_runpath=yes 8748 hardcode_into_libs=yes 8749 ;; 8750 8751newsos6) 8752 version_type=linux 8753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8754 shlibpath_var=LD_LIBRARY_PATH 8755 shlibpath_overrides_runpath=yes 8756 ;; 8757 8758*nto* | *qnx*) 8759 version_type=qnx 8760 need_lib_prefix=no 8761 need_version=no 8762 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8763 soname_spec='${libname}${release}${shared_ext}$major' 8764 shlibpath_var=LD_LIBRARY_PATH 8765 shlibpath_overrides_runpath=no 8766 hardcode_into_libs=yes 8767 dynamic_linker='ldqnx.so' 8768 ;; 8769 8770openbsd*) 8771 version_type=sunos 8772 sys_lib_dlsearch_path_spec="/usr/lib" 8773 need_lib_prefix=no 8774 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 8775 case $host_os in 8776 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 8777 *) need_version=no ;; 8778 esac 8779 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8780 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 8781 shlibpath_var=LD_LIBRARY_PATH 8782 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 8783 case $host_os in 8784 openbsd2.[89] | openbsd2.[89].*) 8785 shlibpath_overrides_runpath=no 8786 ;; 8787 *) 8788 shlibpath_overrides_runpath=yes 8789 ;; 8790 esac 8791 else 8792 shlibpath_overrides_runpath=yes 8793 fi 8794 ;; 8795 8796os2*) 8797 libname_spec='$name' 8798 shrext_cmds=".dll" 8799 need_lib_prefix=no 8800 library_names_spec='$libname${shared_ext} $libname.a' 8801 dynamic_linker='OS/2 ld.exe' 8802 shlibpath_var=LIBPATH 8803 ;; 8804 8805osf3* | osf4* | osf5*) 8806 version_type=osf 8807 need_lib_prefix=no 8808 need_version=no 8809 soname_spec='${libname}${release}${shared_ext}$major' 8810 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8811 shlibpath_var=LD_LIBRARY_PATH 8812 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 8813 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 8814 ;; 8815 8816rdos*) 8817 dynamic_linker=no 8818 ;; 8819 8820solaris*) 8821 version_type=linux 8822 need_lib_prefix=no 8823 need_version=no 8824 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8825 soname_spec='${libname}${release}${shared_ext}$major' 8826 shlibpath_var=LD_LIBRARY_PATH 8827 shlibpath_overrides_runpath=yes 8828 hardcode_into_libs=yes 8829 # ldd complains unless libraries are executable 8830 postinstall_cmds='chmod +x $lib' 8831 ;; 8832 8833sunos4*) 8834 version_type=sunos 8835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 8836 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 8837 shlibpath_var=LD_LIBRARY_PATH 8838 shlibpath_overrides_runpath=yes 8839 if test "$with_gnu_ld" = yes; then 8840 need_lib_prefix=no 8841 fi 8842 need_version=yes 8843 ;; 8844 8845sysv4 | sysv4.3*) 8846 version_type=linux 8847 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8848 soname_spec='${libname}${release}${shared_ext}$major' 8849 shlibpath_var=LD_LIBRARY_PATH 8850 case $host_vendor in 8851 sni) 8852 shlibpath_overrides_runpath=no 8853 need_lib_prefix=no 8854 runpath_var=LD_RUN_PATH 8855 ;; 8856 siemens) 8857 need_lib_prefix=no 8858 ;; 8859 motorola) 8860 need_lib_prefix=no 8861 need_version=no 8862 shlibpath_overrides_runpath=no 8863 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 8864 ;; 8865 esac 8866 ;; 8867 8868sysv4*MP*) 8869 if test -d /usr/nec ;then 8870 version_type=linux 8871 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 8872 soname_spec='$libname${shared_ext}.$major' 8873 shlibpath_var=LD_LIBRARY_PATH 8874 fi 8875 ;; 8876 8877sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 8878 version_type=freebsd-elf 8879 need_lib_prefix=no 8880 need_version=no 8881 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 8882 soname_spec='${libname}${release}${shared_ext}$major' 8883 shlibpath_var=LD_LIBRARY_PATH 8884 shlibpath_overrides_runpath=yes 8885 hardcode_into_libs=yes 8886 if test "$with_gnu_ld" = yes; then 8887 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 8888 else 8889 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 8890 case $host_os in 8891 sco3.2v5*) 8892 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 8893 ;; 8894 esac 8895 fi 8896 sys_lib_dlsearch_path_spec='/usr/lib' 8897 ;; 8898 8899tpf*) 8900 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 8901 version_type=linux 8902 need_lib_prefix=no 8903 need_version=no 8904 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8905 shlibpath_var=LD_LIBRARY_PATH 8906 shlibpath_overrides_runpath=no 8907 hardcode_into_libs=yes 8908 ;; 8909 8910uts4*) 8911 version_type=linux 8912 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 8913 soname_spec='${libname}${release}${shared_ext}$major' 8914 shlibpath_var=LD_LIBRARY_PATH 8915 ;; 8916 8917*) 8918 dynamic_linker=no 8919 ;; 8920esac 8921echo "$as_me:$LINENO: result: $dynamic_linker" >&5 8922echo "${ECHO_T}$dynamic_linker" >&6 8923test "$dynamic_linker" = no && can_build_shared=no 8924 8925variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 8926if test "$GCC" = yes; then 8927 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 8928fi 8929 8930 8931 8932 8933 8934 8935 8936 8937 8938 8939 8940 8941 8942 8943 8944 8945 8946 8947 8948 8949 8950 8951 8952 8953 8954 8955 8956 8957 8958 8959 8960 8961 8962 8963 8964 8965 8966 8967 8968 8969 8970 8971 8972 8973 8974 8975 8976 8977 8978 8979 8980 8981 8982 8983 8984 8985 8986 8987 8988 8989 8990 8991 8992 8993 8994 8995 8996 8997 8998 8999 9000 9001 9002 9003 9004 9005 9006 9007 9008 9009 9010 9011 9012 9013 9014 9015 9016 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 9017echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 9018hardcode_action= 9019if test -n "$hardcode_libdir_flag_spec" || 9020 test -n "$runpath_var" || 9021 test "X$hardcode_automatic" = "Xyes" ; then 9022 9023 # We can hardcode non-existent directories. 9024 if test "$hardcode_direct" != no && 9025 # If the only mechanism to avoid hardcoding is shlibpath_var, we 9026 # have to relink, otherwise we might link with an installed library 9027 # when we should be linking with a yet-to-be-installed one 9028 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 9029 test "$hardcode_minus_L" != no; then 9030 # Linking always hardcodes the temporary library directory. 9031 hardcode_action=relink 9032 else 9033 # We can link without hardcoding, and we can hardcode nonexisting dirs. 9034 hardcode_action=immediate 9035 fi 9036else 9037 # We cannot hardcode anything, or else we can only hardcode existing 9038 # directories. 9039 hardcode_action=unsupported 9040fi 9041echo "$as_me:$LINENO: result: $hardcode_action" >&5 9042echo "${ECHO_T}$hardcode_action" >&6 9043 9044if test "$hardcode_action" = relink || 9045 test "$inherit_rpath" = yes; then 9046 # Fast installation is not supported 9047 enable_fast_install=no 9048elif test "$shlibpath_overrides_runpath" = yes || 9049 test "$enable_shared" = no; then 9050 # Fast installation is not necessary 9051 enable_fast_install=needless 9052fi 9053 9054 9055 9056 9057 9058 9059 if test "x$enable_dlopen" != xyes; then 9060 enable_dlopen=unknown 9061 enable_dlopen_self=unknown 9062 enable_dlopen_self_static=unknown 9063else 9064 lt_cv_dlopen=no 9065 lt_cv_dlopen_libs= 9066 9067 case $host_os in 9068 beos*) 9069 lt_cv_dlopen="load_add_on" 9070 lt_cv_dlopen_libs= 9071 lt_cv_dlopen_self=yes 9072 ;; 9073 9074 mingw* | pw32*) 9075 lt_cv_dlopen="LoadLibrary" 9076 lt_cv_dlopen_libs= 9077 ;; 9078 9079 cygwin*) 9080 lt_cv_dlopen="dlopen" 9081 lt_cv_dlopen_libs= 9082 ;; 9083 9084 darwin*) 9085 # if libdl is installed we need to link against it 9086 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9087echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9088if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9089 echo $ECHO_N "(cached) $ECHO_C" >&6 9090else 9091 ac_check_lib_save_LIBS=$LIBS 9092LIBS="-ldl $LIBS" 9093cat >conftest.$ac_ext <<_ACEOF 9094/* confdefs.h. */ 9095_ACEOF 9096cat confdefs.h >>conftest.$ac_ext 9097cat >>conftest.$ac_ext <<_ACEOF 9098/* end confdefs.h. */ 9099 9100/* Override any gcc2 internal prototype to avoid an error. */ 9101#ifdef __cplusplus 9102extern "C" 9103#endif 9104/* We use char because int might match the return type of a gcc2 9105 builtin and then its argument prototype would still apply. */ 9106char dlopen (); 9107int 9108main () 9109{ 9110dlopen (); 9111 ; 9112 return 0; 9113} 9114_ACEOF 9115rm -f conftest.$ac_objext conftest$ac_exeext 9116if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9117 (eval $ac_link) 2>conftest.er1 9118 ac_status=$? 9119 grep -v '^ *+' conftest.er1 >conftest.err 9120 rm -f conftest.er1 9121 cat conftest.err >&5 9122 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9123 (exit $ac_status); } && 9124 { ac_try='test -z "$ac_c_werror_flag" 9125 || test ! -s conftest.err' 9126 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9127 (eval $ac_try) 2>&5 9128 ac_status=$? 9129 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9130 (exit $ac_status); }; } && 9131 { ac_try='test -s conftest$ac_exeext' 9132 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9133 (eval $ac_try) 2>&5 9134 ac_status=$? 9135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9136 (exit $ac_status); }; }; then 9137 ac_cv_lib_dl_dlopen=yes 9138else 9139 echo "$as_me: failed program was:" >&5 9140sed 's/^/| /' conftest.$ac_ext >&5 9141 9142ac_cv_lib_dl_dlopen=no 9143fi 9144rm -f conftest.err conftest.$ac_objext \ 9145 conftest$ac_exeext conftest.$ac_ext 9146LIBS=$ac_check_lib_save_LIBS 9147fi 9148echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9149echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9150if test $ac_cv_lib_dl_dlopen = yes; then 9151 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9152else 9153 9154 lt_cv_dlopen="dyld" 9155 lt_cv_dlopen_libs= 9156 lt_cv_dlopen_self=yes 9157 9158fi 9159 9160 ;; 9161 9162 *) 9163 echo "$as_me:$LINENO: checking for shl_load" >&5 9164echo $ECHO_N "checking for shl_load... $ECHO_C" >&6 9165if test "${ac_cv_func_shl_load+set}" = set; then 9166 echo $ECHO_N "(cached) $ECHO_C" >&6 9167else 9168 cat >conftest.$ac_ext <<_ACEOF 9169/* confdefs.h. */ 9170_ACEOF 9171cat confdefs.h >>conftest.$ac_ext 9172cat >>conftest.$ac_ext <<_ACEOF 9173/* end confdefs.h. */ 9174/* Define shl_load to an innocuous variant, in case <limits.h> declares shl_load. 9175 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9176#define shl_load innocuous_shl_load 9177 9178/* System header to define __stub macros and hopefully few prototypes, 9179 which can conflict with char shl_load (); below. 9180 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9181 <limits.h> exists even on freestanding compilers. */ 9182 9183#ifdef __STDC__ 9184# include <limits.h> 9185#else 9186# include <assert.h> 9187#endif 9188 9189#undef shl_load 9190 9191/* Override any gcc2 internal prototype to avoid an error. */ 9192#ifdef __cplusplus 9193extern "C" 9194{ 9195#endif 9196/* We use char because int might match the return type of a gcc2 9197 builtin and then its argument prototype would still apply. */ 9198char shl_load (); 9199/* The GNU C library defines this for functions which it implements 9200 to always fail with ENOSYS. Some functions are actually named 9201 something starting with __ and the normal name is an alias. */ 9202#if defined (__stub_shl_load) || defined (__stub___shl_load) 9203choke me 9204#else 9205char (*f) () = shl_load; 9206#endif 9207#ifdef __cplusplus 9208} 9209#endif 9210 9211int 9212main () 9213{ 9214return f != shl_load; 9215 ; 9216 return 0; 9217} 9218_ACEOF 9219rm -f conftest.$ac_objext conftest$ac_exeext 9220if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9221 (eval $ac_link) 2>conftest.er1 9222 ac_status=$? 9223 grep -v '^ *+' conftest.er1 >conftest.err 9224 rm -f conftest.er1 9225 cat conftest.err >&5 9226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9227 (exit $ac_status); } && 9228 { ac_try='test -z "$ac_c_werror_flag" 9229 || test ! -s conftest.err' 9230 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9231 (eval $ac_try) 2>&5 9232 ac_status=$? 9233 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9234 (exit $ac_status); }; } && 9235 { ac_try='test -s conftest$ac_exeext' 9236 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9237 (eval $ac_try) 2>&5 9238 ac_status=$? 9239 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9240 (exit $ac_status); }; }; then 9241 ac_cv_func_shl_load=yes 9242else 9243 echo "$as_me: failed program was:" >&5 9244sed 's/^/| /' conftest.$ac_ext >&5 9245 9246ac_cv_func_shl_load=no 9247fi 9248rm -f conftest.err conftest.$ac_objext \ 9249 conftest$ac_exeext conftest.$ac_ext 9250fi 9251echo "$as_me:$LINENO: result: $ac_cv_func_shl_load" >&5 9252echo "${ECHO_T}$ac_cv_func_shl_load" >&6 9253if test $ac_cv_func_shl_load = yes; then 9254 lt_cv_dlopen="shl_load" 9255else 9256 echo "$as_me:$LINENO: checking for shl_load in -ldld" >&5 9257echo $ECHO_N "checking for shl_load in -ldld... $ECHO_C" >&6 9258if test "${ac_cv_lib_dld_shl_load+set}" = set; then 9259 echo $ECHO_N "(cached) $ECHO_C" >&6 9260else 9261 ac_check_lib_save_LIBS=$LIBS 9262LIBS="-ldld $LIBS" 9263cat >conftest.$ac_ext <<_ACEOF 9264/* confdefs.h. */ 9265_ACEOF 9266cat confdefs.h >>conftest.$ac_ext 9267cat >>conftest.$ac_ext <<_ACEOF 9268/* end confdefs.h. */ 9269 9270/* Override any gcc2 internal prototype to avoid an error. */ 9271#ifdef __cplusplus 9272extern "C" 9273#endif 9274/* We use char because int might match the return type of a gcc2 9275 builtin and then its argument prototype would still apply. */ 9276char shl_load (); 9277int 9278main () 9279{ 9280shl_load (); 9281 ; 9282 return 0; 9283} 9284_ACEOF 9285rm -f conftest.$ac_objext conftest$ac_exeext 9286if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9287 (eval $ac_link) 2>conftest.er1 9288 ac_status=$? 9289 grep -v '^ *+' conftest.er1 >conftest.err 9290 rm -f conftest.er1 9291 cat conftest.err >&5 9292 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9293 (exit $ac_status); } && 9294 { ac_try='test -z "$ac_c_werror_flag" 9295 || test ! -s conftest.err' 9296 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9297 (eval $ac_try) 2>&5 9298 ac_status=$? 9299 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9300 (exit $ac_status); }; } && 9301 { ac_try='test -s conftest$ac_exeext' 9302 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9303 (eval $ac_try) 2>&5 9304 ac_status=$? 9305 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9306 (exit $ac_status); }; }; then 9307 ac_cv_lib_dld_shl_load=yes 9308else 9309 echo "$as_me: failed program was:" >&5 9310sed 's/^/| /' conftest.$ac_ext >&5 9311 9312ac_cv_lib_dld_shl_load=no 9313fi 9314rm -f conftest.err conftest.$ac_objext \ 9315 conftest$ac_exeext conftest.$ac_ext 9316LIBS=$ac_check_lib_save_LIBS 9317fi 9318echo "$as_me:$LINENO: result: $ac_cv_lib_dld_shl_load" >&5 9319echo "${ECHO_T}$ac_cv_lib_dld_shl_load" >&6 9320if test $ac_cv_lib_dld_shl_load = yes; then 9321 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-dld" 9322else 9323 echo "$as_me:$LINENO: checking for dlopen" >&5 9324echo $ECHO_N "checking for dlopen... $ECHO_C" >&6 9325if test "${ac_cv_func_dlopen+set}" = set; then 9326 echo $ECHO_N "(cached) $ECHO_C" >&6 9327else 9328 cat >conftest.$ac_ext <<_ACEOF 9329/* confdefs.h. */ 9330_ACEOF 9331cat confdefs.h >>conftest.$ac_ext 9332cat >>conftest.$ac_ext <<_ACEOF 9333/* end confdefs.h. */ 9334/* Define dlopen to an innocuous variant, in case <limits.h> declares dlopen. 9335 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 9336#define dlopen innocuous_dlopen 9337 9338/* System header to define __stub macros and hopefully few prototypes, 9339 which can conflict with char dlopen (); below. 9340 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9341 <limits.h> exists even on freestanding compilers. */ 9342 9343#ifdef __STDC__ 9344# include <limits.h> 9345#else 9346# include <assert.h> 9347#endif 9348 9349#undef dlopen 9350 9351/* Override any gcc2 internal prototype to avoid an error. */ 9352#ifdef __cplusplus 9353extern "C" 9354{ 9355#endif 9356/* We use char because int might match the return type of a gcc2 9357 builtin and then its argument prototype would still apply. */ 9358char dlopen (); 9359/* The GNU C library defines this for functions which it implements 9360 to always fail with ENOSYS. Some functions are actually named 9361 something starting with __ and the normal name is an alias. */ 9362#if defined (__stub_dlopen) || defined (__stub___dlopen) 9363choke me 9364#else 9365char (*f) () = dlopen; 9366#endif 9367#ifdef __cplusplus 9368} 9369#endif 9370 9371int 9372main () 9373{ 9374return f != dlopen; 9375 ; 9376 return 0; 9377} 9378_ACEOF 9379rm -f conftest.$ac_objext conftest$ac_exeext 9380if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9381 (eval $ac_link) 2>conftest.er1 9382 ac_status=$? 9383 grep -v '^ *+' conftest.er1 >conftest.err 9384 rm -f conftest.er1 9385 cat conftest.err >&5 9386 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9387 (exit $ac_status); } && 9388 { ac_try='test -z "$ac_c_werror_flag" 9389 || test ! -s conftest.err' 9390 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9391 (eval $ac_try) 2>&5 9392 ac_status=$? 9393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9394 (exit $ac_status); }; } && 9395 { ac_try='test -s conftest$ac_exeext' 9396 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9397 (eval $ac_try) 2>&5 9398 ac_status=$? 9399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9400 (exit $ac_status); }; }; then 9401 ac_cv_func_dlopen=yes 9402else 9403 echo "$as_me: failed program was:" >&5 9404sed 's/^/| /' conftest.$ac_ext >&5 9405 9406ac_cv_func_dlopen=no 9407fi 9408rm -f conftest.err conftest.$ac_objext \ 9409 conftest$ac_exeext conftest.$ac_ext 9410fi 9411echo "$as_me:$LINENO: result: $ac_cv_func_dlopen" >&5 9412echo "${ECHO_T}$ac_cv_func_dlopen" >&6 9413if test $ac_cv_func_dlopen = yes; then 9414 lt_cv_dlopen="dlopen" 9415else 9416 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5 9417echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6 9418if test "${ac_cv_lib_dl_dlopen+set}" = set; then 9419 echo $ECHO_N "(cached) $ECHO_C" >&6 9420else 9421 ac_check_lib_save_LIBS=$LIBS 9422LIBS="-ldl $LIBS" 9423cat >conftest.$ac_ext <<_ACEOF 9424/* confdefs.h. */ 9425_ACEOF 9426cat confdefs.h >>conftest.$ac_ext 9427cat >>conftest.$ac_ext <<_ACEOF 9428/* end confdefs.h. */ 9429 9430/* Override any gcc2 internal prototype to avoid an error. */ 9431#ifdef __cplusplus 9432extern "C" 9433#endif 9434/* We use char because int might match the return type of a gcc2 9435 builtin and then its argument prototype would still apply. */ 9436char dlopen (); 9437int 9438main () 9439{ 9440dlopen (); 9441 ; 9442 return 0; 9443} 9444_ACEOF 9445rm -f conftest.$ac_objext conftest$ac_exeext 9446if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9447 (eval $ac_link) 2>conftest.er1 9448 ac_status=$? 9449 grep -v '^ *+' conftest.er1 >conftest.err 9450 rm -f conftest.er1 9451 cat conftest.err >&5 9452 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9453 (exit $ac_status); } && 9454 { ac_try='test -z "$ac_c_werror_flag" 9455 || test ! -s conftest.err' 9456 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9457 (eval $ac_try) 2>&5 9458 ac_status=$? 9459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9460 (exit $ac_status); }; } && 9461 { ac_try='test -s conftest$ac_exeext' 9462 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9463 (eval $ac_try) 2>&5 9464 ac_status=$? 9465 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9466 (exit $ac_status); }; }; then 9467 ac_cv_lib_dl_dlopen=yes 9468else 9469 echo "$as_me: failed program was:" >&5 9470sed 's/^/| /' conftest.$ac_ext >&5 9471 9472ac_cv_lib_dl_dlopen=no 9473fi 9474rm -f conftest.err conftest.$ac_objext \ 9475 conftest$ac_exeext conftest.$ac_ext 9476LIBS=$ac_check_lib_save_LIBS 9477fi 9478echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5 9479echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6 9480if test $ac_cv_lib_dl_dlopen = yes; then 9481 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 9482else 9483 echo "$as_me:$LINENO: checking for dlopen in -lsvld" >&5 9484echo $ECHO_N "checking for dlopen in -lsvld... $ECHO_C" >&6 9485if test "${ac_cv_lib_svld_dlopen+set}" = set; then 9486 echo $ECHO_N "(cached) $ECHO_C" >&6 9487else 9488 ac_check_lib_save_LIBS=$LIBS 9489LIBS="-lsvld $LIBS" 9490cat >conftest.$ac_ext <<_ACEOF 9491/* confdefs.h. */ 9492_ACEOF 9493cat confdefs.h >>conftest.$ac_ext 9494cat >>conftest.$ac_ext <<_ACEOF 9495/* end confdefs.h. */ 9496 9497/* Override any gcc2 internal prototype to avoid an error. */ 9498#ifdef __cplusplus 9499extern "C" 9500#endif 9501/* We use char because int might match the return type of a gcc2 9502 builtin and then its argument prototype would still apply. */ 9503char dlopen (); 9504int 9505main () 9506{ 9507dlopen (); 9508 ; 9509 return 0; 9510} 9511_ACEOF 9512rm -f conftest.$ac_objext conftest$ac_exeext 9513if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9514 (eval $ac_link) 2>conftest.er1 9515 ac_status=$? 9516 grep -v '^ *+' conftest.er1 >conftest.err 9517 rm -f conftest.er1 9518 cat conftest.err >&5 9519 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9520 (exit $ac_status); } && 9521 { ac_try='test -z "$ac_c_werror_flag" 9522 || test ! -s conftest.err' 9523 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9524 (eval $ac_try) 2>&5 9525 ac_status=$? 9526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9527 (exit $ac_status); }; } && 9528 { ac_try='test -s conftest$ac_exeext' 9529 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9530 (eval $ac_try) 2>&5 9531 ac_status=$? 9532 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9533 (exit $ac_status); }; }; then 9534 ac_cv_lib_svld_dlopen=yes 9535else 9536 echo "$as_me: failed program was:" >&5 9537sed 's/^/| /' conftest.$ac_ext >&5 9538 9539ac_cv_lib_svld_dlopen=no 9540fi 9541rm -f conftest.err conftest.$ac_objext \ 9542 conftest$ac_exeext conftest.$ac_ext 9543LIBS=$ac_check_lib_save_LIBS 9544fi 9545echo "$as_me:$LINENO: result: $ac_cv_lib_svld_dlopen" >&5 9546echo "${ECHO_T}$ac_cv_lib_svld_dlopen" >&6 9547if test $ac_cv_lib_svld_dlopen = yes; then 9548 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 9549else 9550 echo "$as_me:$LINENO: checking for dld_link in -ldld" >&5 9551echo $ECHO_N "checking for dld_link in -ldld... $ECHO_C" >&6 9552if test "${ac_cv_lib_dld_dld_link+set}" = set; then 9553 echo $ECHO_N "(cached) $ECHO_C" >&6 9554else 9555 ac_check_lib_save_LIBS=$LIBS 9556LIBS="-ldld $LIBS" 9557cat >conftest.$ac_ext <<_ACEOF 9558/* confdefs.h. */ 9559_ACEOF 9560cat confdefs.h >>conftest.$ac_ext 9561cat >>conftest.$ac_ext <<_ACEOF 9562/* end confdefs.h. */ 9563 9564/* Override any gcc2 internal prototype to avoid an error. */ 9565#ifdef __cplusplus 9566extern "C" 9567#endif 9568/* We use char because int might match the return type of a gcc2 9569 builtin and then its argument prototype would still apply. */ 9570char dld_link (); 9571int 9572main () 9573{ 9574dld_link (); 9575 ; 9576 return 0; 9577} 9578_ACEOF 9579rm -f conftest.$ac_objext conftest$ac_exeext 9580if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9581 (eval $ac_link) 2>conftest.er1 9582 ac_status=$? 9583 grep -v '^ *+' conftest.er1 >conftest.err 9584 rm -f conftest.er1 9585 cat conftest.err >&5 9586 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9587 (exit $ac_status); } && 9588 { ac_try='test -z "$ac_c_werror_flag" 9589 || test ! -s conftest.err' 9590 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9591 (eval $ac_try) 2>&5 9592 ac_status=$? 9593 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9594 (exit $ac_status); }; } && 9595 { ac_try='test -s conftest$ac_exeext' 9596 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 9597 (eval $ac_try) 2>&5 9598 ac_status=$? 9599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9600 (exit $ac_status); }; }; then 9601 ac_cv_lib_dld_dld_link=yes 9602else 9603 echo "$as_me: failed program was:" >&5 9604sed 's/^/| /' conftest.$ac_ext >&5 9605 9606ac_cv_lib_dld_dld_link=no 9607fi 9608rm -f conftest.err conftest.$ac_objext \ 9609 conftest$ac_exeext conftest.$ac_ext 9610LIBS=$ac_check_lib_save_LIBS 9611fi 9612echo "$as_me:$LINENO: result: $ac_cv_lib_dld_dld_link" >&5 9613echo "${ECHO_T}$ac_cv_lib_dld_dld_link" >&6 9614if test $ac_cv_lib_dld_dld_link = yes; then 9615 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-dld" 9616fi 9617 9618 9619fi 9620 9621 9622fi 9623 9624 9625fi 9626 9627 9628fi 9629 9630 9631fi 9632 9633 ;; 9634 esac 9635 9636 if test "x$lt_cv_dlopen" != xno; then 9637 enable_dlopen=yes 9638 else 9639 enable_dlopen=no 9640 fi 9641 9642 case $lt_cv_dlopen in 9643 dlopen) 9644 save_CPPFLAGS="$CPPFLAGS" 9645 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 9646 9647 save_LDFLAGS="$LDFLAGS" 9648 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 9649 9650 save_LIBS="$LIBS" 9651 LIBS="$lt_cv_dlopen_libs $LIBS" 9652 9653 echo "$as_me:$LINENO: checking whether a program can dlopen itself" >&5 9654echo $ECHO_N "checking whether a program can dlopen itself... $ECHO_C" >&6 9655if test "${lt_cv_dlopen_self+set}" = set; then 9656 echo $ECHO_N "(cached) $ECHO_C" >&6 9657else 9658 if test "$cross_compiling" = yes; then : 9659 lt_cv_dlopen_self=cross 9660else 9661 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9662 lt_status=$lt_dlunknown 9663 cat > conftest.$ac_ext <<_LT_EOF 9664#line 9664 "configure" 9665#include "confdefs.h" 9666 9667#if HAVE_DLFCN_H 9668#include <dlfcn.h> 9669#endif 9670 9671#include <stdio.h> 9672 9673#ifdef RTLD_GLOBAL 9674# define LT_DLGLOBAL RTLD_GLOBAL 9675#else 9676# ifdef DL_GLOBAL 9677# define LT_DLGLOBAL DL_GLOBAL 9678# else 9679# define LT_DLGLOBAL 0 9680# endif 9681#endif 9682 9683/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9684 find out it does not work in some platform. */ 9685#ifndef LT_DLLAZY_OR_NOW 9686# ifdef RTLD_LAZY 9687# define LT_DLLAZY_OR_NOW RTLD_LAZY 9688# else 9689# ifdef DL_LAZY 9690# define LT_DLLAZY_OR_NOW DL_LAZY 9691# else 9692# ifdef RTLD_NOW 9693# define LT_DLLAZY_OR_NOW RTLD_NOW 9694# else 9695# ifdef DL_NOW 9696# define LT_DLLAZY_OR_NOW DL_NOW 9697# else 9698# define LT_DLLAZY_OR_NOW 0 9699# endif 9700# endif 9701# endif 9702# endif 9703#endif 9704 9705#ifdef __cplusplus 9706extern "C" void exit (int); 9707#endif 9708 9709void fnord() { int i=42;} 9710int main () 9711{ 9712 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9713 int status = $lt_dlunknown; 9714 9715 if (self) 9716 { 9717 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9718 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9719 /* dlclose (self); */ 9720 } 9721 else 9722 puts (dlerror ()); 9723 9724 exit (status); 9725} 9726_LT_EOF 9727 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9728 (eval $ac_link) 2>&5 9729 ac_status=$? 9730 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9731 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9732 (./conftest; exit; ) >&5 2>/dev/null 9733 lt_status=$? 9734 case x$lt_status in 9735 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 9736 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 9737 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 9738 esac 9739 else : 9740 # compilation failed 9741 lt_cv_dlopen_self=no 9742 fi 9743fi 9744rm -fr conftest* 9745 9746 9747fi 9748echo "$as_me:$LINENO: result: $lt_cv_dlopen_self" >&5 9749echo "${ECHO_T}$lt_cv_dlopen_self" >&6 9750 9751 if test "x$lt_cv_dlopen_self" = xyes; then 9752 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 9753 echo "$as_me:$LINENO: checking whether a statically linked program can dlopen itself" >&5 9754echo $ECHO_N "checking whether a statically linked program can dlopen itself... $ECHO_C" >&6 9755if test "${lt_cv_dlopen_self_static+set}" = set; then 9756 echo $ECHO_N "(cached) $ECHO_C" >&6 9757else 9758 if test "$cross_compiling" = yes; then : 9759 lt_cv_dlopen_self_static=cross 9760else 9761 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 9762 lt_status=$lt_dlunknown 9763 cat > conftest.$ac_ext <<_LT_EOF 9764#line 9764 "configure" 9765#include "confdefs.h" 9766 9767#if HAVE_DLFCN_H 9768#include <dlfcn.h> 9769#endif 9770 9771#include <stdio.h> 9772 9773#ifdef RTLD_GLOBAL 9774# define LT_DLGLOBAL RTLD_GLOBAL 9775#else 9776# ifdef DL_GLOBAL 9777# define LT_DLGLOBAL DL_GLOBAL 9778# else 9779# define LT_DLGLOBAL 0 9780# endif 9781#endif 9782 9783/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 9784 find out it does not work in some platform. */ 9785#ifndef LT_DLLAZY_OR_NOW 9786# ifdef RTLD_LAZY 9787# define LT_DLLAZY_OR_NOW RTLD_LAZY 9788# else 9789# ifdef DL_LAZY 9790# define LT_DLLAZY_OR_NOW DL_LAZY 9791# else 9792# ifdef RTLD_NOW 9793# define LT_DLLAZY_OR_NOW RTLD_NOW 9794# else 9795# ifdef DL_NOW 9796# define LT_DLLAZY_OR_NOW DL_NOW 9797# else 9798# define LT_DLLAZY_OR_NOW 0 9799# endif 9800# endif 9801# endif 9802# endif 9803#endif 9804 9805#ifdef __cplusplus 9806extern "C" void exit (int); 9807#endif 9808 9809void fnord() { int i=42;} 9810int main () 9811{ 9812 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 9813 int status = $lt_dlunknown; 9814 9815 if (self) 9816 { 9817 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 9818 else if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 9819 /* dlclose (self); */ 9820 } 9821 else 9822 puts (dlerror ()); 9823 9824 exit (status); 9825} 9826_LT_EOF 9827 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 9828 (eval $ac_link) 2>&5 9829 ac_status=$? 9830 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9831 (exit $ac_status); } && test -s conftest${ac_exeext} 2>/dev/null; then 9832 (./conftest; exit; ) >&5 2>/dev/null 9833 lt_status=$? 9834 case x$lt_status in 9835 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 9836 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 9837 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 9838 esac 9839 else : 9840 # compilation failed 9841 lt_cv_dlopen_self_static=no 9842 fi 9843fi 9844rm -fr conftest* 9845 9846 9847fi 9848echo "$as_me:$LINENO: result: $lt_cv_dlopen_self_static" >&5 9849echo "${ECHO_T}$lt_cv_dlopen_self_static" >&6 9850 fi 9851 9852 CPPFLAGS="$save_CPPFLAGS" 9853 LDFLAGS="$save_LDFLAGS" 9854 LIBS="$save_LIBS" 9855 ;; 9856 esac 9857 9858 case $lt_cv_dlopen_self in 9859 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 9860 *) enable_dlopen_self=unknown ;; 9861 esac 9862 9863 case $lt_cv_dlopen_self_static in 9864 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 9865 *) enable_dlopen_self_static=unknown ;; 9866 esac 9867fi 9868 9869 9870 9871 9872 9873 9874 9875 9876 9877 9878 9879 9880 9881 9882 9883 9884 9885striplib= 9886old_striplib= 9887echo "$as_me:$LINENO: checking whether stripping libraries is possible" >&5 9888echo $ECHO_N "checking whether stripping libraries is possible... $ECHO_C" >&6 9889if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 9890 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 9891 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 9892 echo "$as_me:$LINENO: result: yes" >&5 9893echo "${ECHO_T}yes" >&6 9894else 9895# FIXME - insert some real tests, host_os isn't really good enough 9896 case $host_os in 9897 darwin*) 9898 if test -n "$STRIP" ; then 9899 striplib="$STRIP -x" 9900 old_striplib="$STRIP -S" 9901 echo "$as_me:$LINENO: result: yes" >&5 9902echo "${ECHO_T}yes" >&6 9903 else 9904 echo "$as_me:$LINENO: result: no" >&5 9905echo "${ECHO_T}no" >&6 9906 fi 9907 ;; 9908 *) 9909 echo "$as_me:$LINENO: result: no" >&5 9910echo "${ECHO_T}no" >&6 9911 ;; 9912 esac 9913fi 9914 9915 9916 9917 9918 9919 9920 9921 9922 9923 9924 9925 9926 # Report which library types will actually be built 9927 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 9928echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 9929 echo "$as_me:$LINENO: result: $can_build_shared" >&5 9930echo "${ECHO_T}$can_build_shared" >&6 9931 9932 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 9933echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 9934 test "$can_build_shared" = "no" && enable_shared=no 9935 9936 # On AIX, shared libraries and static libraries use the same namespace, and 9937 # are all built from PIC. 9938 case $host_os in 9939 aix3*) 9940 test "$enable_shared" = yes && enable_static=no 9941 if test -n "$RANLIB"; then 9942 archive_cmds="$archive_cmds~\$RANLIB \$lib" 9943 postinstall_cmds='$RANLIB $lib' 9944 fi 9945 ;; 9946 9947 aix[4-9]*) 9948 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 9949 test "$enable_shared" = yes && enable_static=no 9950 fi 9951 ;; 9952 esac 9953 echo "$as_me:$LINENO: result: $enable_shared" >&5 9954echo "${ECHO_T}$enable_shared" >&6 9955 9956 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 9957echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 9958 # Make sure either enable_shared or enable_static is yes. 9959 test "$enable_shared" = yes || enable_static=yes 9960 echo "$as_me:$LINENO: result: $enable_static" >&5 9961echo "${ECHO_T}$enable_static" >&6 9962 9963 9964 9965 9966fi 9967ac_ext=c 9968ac_cpp='$CPP $CPPFLAGS' 9969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9971ac_compiler_gnu=$ac_cv_c_compiler_gnu 9972 9973CC="$lt_save_CC" 9974 9975 9976 9977 9978 9979 9980 9981 9982 9983 9984 9985 9986 9987 ac_config_commands="$ac_config_commands libtool" 9988 9989 9990 9991 9992# Only expand once: 9993 9994 9995 9996 9997 9998echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 9999echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 10000 # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. 10001if test "${enable_maintainer_mode+set}" = set; then 10002 enableval="$enable_maintainer_mode" 10003 USE_MAINTAINER_MODE=$enableval 10004else 10005 USE_MAINTAINER_MODE=no 10006fi; 10007 echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 10008echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 10009 10010 10011if test $USE_MAINTAINER_MODE = yes; then 10012 MAINTAINER_MODE_TRUE= 10013 MAINTAINER_MODE_FALSE='#' 10014else 10015 MAINTAINER_MODE_TRUE='#' 10016 MAINTAINER_MODE_FALSE= 10017fi 10018 10019 MAINT=$MAINTAINER_MODE_TRUE 10020 10021 10022 10023# We need gfortran to compile parts of the library 10024# We can't use AC_PROG_FC because it expects a fully working gfortran. 10025#AC_PROG_FC(gfortran) 10026FC="$GFORTRAN" 10027ac_ext=${FC_SRCEXT-f} 10028ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' 10029ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' 10030ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10031if test -n "$ac_tool_prefix"; then 10032 for ac_prog in gfortran 10033 do 10034 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10035set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10036echo "$as_me:$LINENO: checking for $ac_word" >&5 10037echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10038if test "${ac_cv_prog_FC+set}" = set; then 10039 echo $ECHO_N "(cached) $ECHO_C" >&6 10040else 10041 if test -n "$FC"; then 10042 ac_cv_prog_FC="$FC" # Let the user override the test. 10043else 10044as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10045for as_dir in $PATH 10046do 10047 IFS=$as_save_IFS 10048 test -z "$as_dir" && as_dir=. 10049 for ac_exec_ext in '' $ac_executable_extensions; do 10050 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10051 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 10052 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10053 break 2 10054 fi 10055done 10056done 10057 10058fi 10059fi 10060FC=$ac_cv_prog_FC 10061if test -n "$FC"; then 10062 echo "$as_me:$LINENO: result: $FC" >&5 10063echo "${ECHO_T}$FC" >&6 10064else 10065 echo "$as_me:$LINENO: result: no" >&5 10066echo "${ECHO_T}no" >&6 10067fi 10068 10069 test -n "$FC" && break 10070 done 10071fi 10072if test -z "$FC"; then 10073 ac_ct_FC=$FC 10074 for ac_prog in gfortran 10075do 10076 # Extract the first word of "$ac_prog", so it can be a program name with args. 10077set dummy $ac_prog; ac_word=$2 10078echo "$as_me:$LINENO: checking for $ac_word" >&5 10079echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10080if test "${ac_cv_prog_ac_ct_FC+set}" = set; then 10081 echo $ECHO_N "(cached) $ECHO_C" >&6 10082else 10083 if test -n "$ac_ct_FC"; then 10084 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 10085else 10086as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10087for as_dir in $PATH 10088do 10089 IFS=$as_save_IFS 10090 test -z "$as_dir" && as_dir=. 10091 for ac_exec_ext in '' $ac_executable_extensions; do 10092 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10093 ac_cv_prog_ac_ct_FC="$ac_prog" 10094 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10095 break 2 10096 fi 10097done 10098done 10099 10100fi 10101fi 10102ac_ct_FC=$ac_cv_prog_ac_ct_FC 10103if test -n "$ac_ct_FC"; then 10104 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 10105echo "${ECHO_T}$ac_ct_FC" >&6 10106else 10107 echo "$as_me:$LINENO: result: no" >&5 10108echo "${ECHO_T}no" >&6 10109fi 10110 10111 test -n "$ac_ct_FC" && break 10112done 10113 10114 FC=$ac_ct_FC 10115fi 10116 10117 10118# Provide some information about the compiler. 10119echo "$as_me:10119:" \ 10120 "checking for Fortran compiler version" >&5 10121ac_compiler=`set X $ac_compile; echo $2` 10122{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 10123 (eval $ac_compiler --version </dev/null >&5) 2>&5 10124 ac_status=$? 10125 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10126 (exit $ac_status); } 10127{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 10128 (eval $ac_compiler -v </dev/null >&5) 2>&5 10129 ac_status=$? 10130 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10131 (exit $ac_status); } 10132{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 10133 (eval $ac_compiler -V </dev/null >&5) 2>&5 10134 ac_status=$? 10135 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10136 (exit $ac_status); } 10137rm -f a.out 10138 10139# If we don't use `.F' as extension, the preprocessor is not run on the 10140# input file. (Note that this only needs to work for GNU compilers.) 10141ac_save_ext=$ac_ext 10142ac_ext=F 10143echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 10144echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 10145if test "${ac_cv_fc_compiler_gnu+set}" = set; then 10146 echo $ECHO_N "(cached) $ECHO_C" >&6 10147else 10148 cat >conftest.$ac_ext <<_ACEOF 10149 program main 10150#ifndef __GNUC__ 10151 choke me 10152#endif 10153 10154 end 10155_ACEOF 10156rm -f conftest.$ac_objext 10157if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10158 (eval $ac_compile) 2>conftest.er1 10159 ac_status=$? 10160 grep -v '^ *+' conftest.er1 >conftest.err 10161 rm -f conftest.er1 10162 cat conftest.err >&5 10163 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10164 (exit $ac_status); } && 10165 { ac_try='test -z "$ac_fc_werror_flag" 10166 || test ! -s conftest.err' 10167 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10168 (eval $ac_try) 2>&5 10169 ac_status=$? 10170 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10171 (exit $ac_status); }; } && 10172 { ac_try='test -s conftest.$ac_objext' 10173 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10174 (eval $ac_try) 2>&5 10175 ac_status=$? 10176 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10177 (exit $ac_status); }; }; then 10178 ac_compiler_gnu=yes 10179else 10180 echo "$as_me: failed program was:" >&5 10181sed 's/^/| /' conftest.$ac_ext >&5 10182 10183ac_compiler_gnu=no 10184fi 10185rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10186ac_cv_fc_compiler_gnu=$ac_compiler_gnu 10187 10188fi 10189echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 10190echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 10191ac_ext=$ac_save_ext 10192ac_test_FFLAGS=${FCFLAGS+set} 10193ac_save_FFLAGS=$FCFLAGS 10194FCFLAGS= 10195echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 10196echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 10197if test "${ac_cv_prog_fc_g+set}" = set; then 10198 echo $ECHO_N "(cached) $ECHO_C" >&6 10199else 10200 FCFLAGS=-g 10201cat >conftest.$ac_ext <<_ACEOF 10202 program main 10203 10204 end 10205_ACEOF 10206rm -f conftest.$ac_objext 10207if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10208 (eval $ac_compile) 2>conftest.er1 10209 ac_status=$? 10210 grep -v '^ *+' conftest.er1 >conftest.err 10211 rm -f conftest.er1 10212 cat conftest.err >&5 10213 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10214 (exit $ac_status); } && 10215 { ac_try='test -z "$ac_fc_werror_flag" 10216 || test ! -s conftest.err' 10217 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10218 (eval $ac_try) 2>&5 10219 ac_status=$? 10220 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10221 (exit $ac_status); }; } && 10222 { ac_try='test -s conftest.$ac_objext' 10223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10224 (eval $ac_try) 2>&5 10225 ac_status=$? 10226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10227 (exit $ac_status); }; }; then 10228 ac_cv_prog_fc_g=yes 10229else 10230 echo "$as_me: failed program was:" >&5 10231sed 's/^/| /' conftest.$ac_ext >&5 10232 10233ac_cv_prog_fc_g=no 10234fi 10235rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10236 10237fi 10238echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 10239echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 10240if test "$ac_test_FFLAGS" = set; then 10241 FCFLAGS=$ac_save_FFLAGS 10242elif test $ac_cv_prog_fc_g = yes; then 10243 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 10244 FCFLAGS="-g -O2" 10245 else 10246 FCFLAGS="-g" 10247 fi 10248else 10249 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 10250 FCFLAGS="-O2" 10251 else 10252 FCFLAGS= 10253 fi 10254fi 10255 10256ac_ext=c 10257ac_cpp='$CPP $CPPFLAGS' 10258ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10259ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10260ac_compiler_gnu=$ac_cv_c_compiler_gnu 10261 10262 10263ac_ext=${FC_SRCEXT-f} 10264ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' 10265ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' 10266ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10267if test -n "$ac_tool_prefix"; then 10268 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77 10269 do 10270 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 10271set dummy $ac_tool_prefix$ac_prog; ac_word=$2 10272echo "$as_me:$LINENO: checking for $ac_word" >&5 10273echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10274if test "${ac_cv_prog_FC+set}" = set; then 10275 echo $ECHO_N "(cached) $ECHO_C" >&6 10276else 10277 if test -n "$FC"; then 10278 ac_cv_prog_FC="$FC" # Let the user override the test. 10279else 10280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10281for as_dir in $PATH 10282do 10283 IFS=$as_save_IFS 10284 test -z "$as_dir" && as_dir=. 10285 for ac_exec_ext in '' $ac_executable_extensions; do 10286 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10287 ac_cv_prog_FC="$ac_tool_prefix$ac_prog" 10288 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10289 break 2 10290 fi 10291done 10292done 10293 10294fi 10295fi 10296FC=$ac_cv_prog_FC 10297if test -n "$FC"; then 10298 echo "$as_me:$LINENO: result: $FC" >&5 10299echo "${ECHO_T}$FC" >&6 10300else 10301 echo "$as_me:$LINENO: result: no" >&5 10302echo "${ECHO_T}no" >&6 10303fi 10304 10305 test -n "$FC" && break 10306 done 10307fi 10308if test -z "$FC"; then 10309 ac_ct_FC=$FC 10310 for ac_prog in f95 fort xlf95 ifc efc pgf95 lf95 gfortran f90 xlf90 pgf90 epcf90 g77 f77 xlf frt pgf77 fort77 fl32 af77 10311do 10312 # Extract the first word of "$ac_prog", so it can be a program name with args. 10313set dummy $ac_prog; ac_word=$2 10314echo "$as_me:$LINENO: checking for $ac_word" >&5 10315echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 10316if test "${ac_cv_prog_ac_ct_FC+set}" = set; then 10317 echo $ECHO_N "(cached) $ECHO_C" >&6 10318else 10319 if test -n "$ac_ct_FC"; then 10320 ac_cv_prog_ac_ct_FC="$ac_ct_FC" # Let the user override the test. 10321else 10322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 10323for as_dir in $PATH 10324do 10325 IFS=$as_save_IFS 10326 test -z "$as_dir" && as_dir=. 10327 for ac_exec_ext in '' $ac_executable_extensions; do 10328 if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 10329 ac_cv_prog_ac_ct_FC="$ac_prog" 10330 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 10331 break 2 10332 fi 10333done 10334done 10335 10336fi 10337fi 10338ac_ct_FC=$ac_cv_prog_ac_ct_FC 10339if test -n "$ac_ct_FC"; then 10340 echo "$as_me:$LINENO: result: $ac_ct_FC" >&5 10341echo "${ECHO_T}$ac_ct_FC" >&6 10342else 10343 echo "$as_me:$LINENO: result: no" >&5 10344echo "${ECHO_T}no" >&6 10345fi 10346 10347 test -n "$ac_ct_FC" && break 10348done 10349 10350 FC=$ac_ct_FC 10351fi 10352 10353 10354# Provide some information about the compiler. 10355echo "$as_me:10355:" \ 10356 "checking for Fortran compiler version" >&5 10357ac_compiler=`set X $ac_compile; echo $2` 10358{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 10359 (eval $ac_compiler --version </dev/null >&5) 2>&5 10360 ac_status=$? 10361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10362 (exit $ac_status); } 10363{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 10364 (eval $ac_compiler -v </dev/null >&5) 2>&5 10365 ac_status=$? 10366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10367 (exit $ac_status); } 10368{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 10369 (eval $ac_compiler -V </dev/null >&5) 2>&5 10370 ac_status=$? 10371 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10372 (exit $ac_status); } 10373rm -f a.out 10374 10375# If we don't use `.F' as extension, the preprocessor is not run on the 10376# input file. (Note that this only needs to work for GNU compilers.) 10377ac_save_ext=$ac_ext 10378ac_ext=F 10379echo "$as_me:$LINENO: checking whether we are using the GNU Fortran compiler" >&5 10380echo $ECHO_N "checking whether we are using the GNU Fortran compiler... $ECHO_C" >&6 10381if test "${ac_cv_fc_compiler_gnu+set}" = set; then 10382 echo $ECHO_N "(cached) $ECHO_C" >&6 10383else 10384 cat >conftest.$ac_ext <<_ACEOF 10385 program main 10386#ifndef __GNUC__ 10387 choke me 10388#endif 10389 10390 end 10391_ACEOF 10392rm -f conftest.$ac_objext 10393if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10394 (eval $ac_compile) 2>conftest.er1 10395 ac_status=$? 10396 grep -v '^ *+' conftest.er1 >conftest.err 10397 rm -f conftest.er1 10398 cat conftest.err >&5 10399 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10400 (exit $ac_status); } && 10401 { ac_try='test -z "$ac_fc_werror_flag" 10402 || test ! -s conftest.err' 10403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10404 (eval $ac_try) 2>&5 10405 ac_status=$? 10406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10407 (exit $ac_status); }; } && 10408 { ac_try='test -s conftest.$ac_objext' 10409 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10410 (eval $ac_try) 2>&5 10411 ac_status=$? 10412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10413 (exit $ac_status); }; }; then 10414 ac_compiler_gnu=yes 10415else 10416 echo "$as_me: failed program was:" >&5 10417sed 's/^/| /' conftest.$ac_ext >&5 10418 10419ac_compiler_gnu=no 10420fi 10421rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10422ac_cv_fc_compiler_gnu=$ac_compiler_gnu 10423 10424fi 10425echo "$as_me:$LINENO: result: $ac_cv_fc_compiler_gnu" >&5 10426echo "${ECHO_T}$ac_cv_fc_compiler_gnu" >&6 10427ac_ext=$ac_save_ext 10428ac_test_FFLAGS=${FCFLAGS+set} 10429ac_save_FFLAGS=$FCFLAGS 10430FCFLAGS= 10431echo "$as_me:$LINENO: checking whether $FC accepts -g" >&5 10432echo $ECHO_N "checking whether $FC accepts -g... $ECHO_C" >&6 10433if test "${ac_cv_prog_fc_g+set}" = set; then 10434 echo $ECHO_N "(cached) $ECHO_C" >&6 10435else 10436 FCFLAGS=-g 10437cat >conftest.$ac_ext <<_ACEOF 10438 program main 10439 10440 end 10441_ACEOF 10442rm -f conftest.$ac_objext 10443if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10444 (eval $ac_compile) 2>conftest.er1 10445 ac_status=$? 10446 grep -v '^ *+' conftest.er1 >conftest.err 10447 rm -f conftest.er1 10448 cat conftest.err >&5 10449 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10450 (exit $ac_status); } && 10451 { ac_try='test -z "$ac_fc_werror_flag" 10452 || test ! -s conftest.err' 10453 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10454 (eval $ac_try) 2>&5 10455 ac_status=$? 10456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10457 (exit $ac_status); }; } && 10458 { ac_try='test -s conftest.$ac_objext' 10459 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 10460 (eval $ac_try) 2>&5 10461 ac_status=$? 10462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10463 (exit $ac_status); }; }; then 10464 ac_cv_prog_fc_g=yes 10465else 10466 echo "$as_me: failed program was:" >&5 10467sed 's/^/| /' conftest.$ac_ext >&5 10468 10469ac_cv_prog_fc_g=no 10470fi 10471rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 10472 10473fi 10474echo "$as_me:$LINENO: result: $ac_cv_prog_fc_g" >&5 10475echo "${ECHO_T}$ac_cv_prog_fc_g" >&6 10476if test "$ac_test_FFLAGS" = set; then 10477 FCFLAGS=$ac_save_FFLAGS 10478elif test $ac_cv_prog_fc_g = yes; then 10479 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 10480 FCFLAGS="-g -O2" 10481 else 10482 FCFLAGS="-g" 10483 fi 10484else 10485 if test "x$ac_cv_fc_compiler_gnu" = xyes; then 10486 FCFLAGS="-O2" 10487 else 10488 FCFLAGS= 10489 fi 10490fi 10491 10492ac_ext=c 10493ac_cpp='$CPP $CPPFLAGS' 10494ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 10495ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 10496ac_compiler_gnu=$ac_cv_c_compiler_gnu 10497 10498if test -z "$FC" || test "X$FC" = "Xno"; then 10499 _lt_disable_FC=yes 10500fi 10501 10502 10503 10504 ac_ext=${FC_SRCEXT-f} 10505ac_compile='$FC -c $FCFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext >&5' 10506ac_link='$FC -o conftest$ac_exeext $FCFLAGS $LDFLAGS $FCFLAGS_SRCEXT conftest.$ac_ext $LIBS >&5' 10507ac_compiler_gnu=$ac_cv_fc_compiler_gnu 10508 10509 10510archive_cmds_need_lc_FC=no 10511allow_undefined_flag_FC= 10512always_export_symbols_FC=no 10513archive_expsym_cmds_FC= 10514export_dynamic_flag_spec_FC= 10515hardcode_direct_FC=no 10516hardcode_direct_absolute_FC=no 10517hardcode_libdir_flag_spec_FC= 10518hardcode_libdir_flag_spec_ld_FC= 10519hardcode_libdir_separator_FC= 10520hardcode_minus_L_FC=no 10521hardcode_automatic_FC=no 10522inherit_rpath_FC=no 10523module_cmds_FC= 10524module_expsym_cmds_FC= 10525link_all_deplibs_FC=unknown 10526old_archive_cmds_FC=$old_archive_cmds 10527no_undefined_flag_FC= 10528whole_archive_flag_spec_FC= 10529enable_shared_with_static_runtimes_FC=no 10530 10531# Source file extension for fc test sources. 10532ac_ext=${ac_fc_srcext-f} 10533 10534# Object file extension for compiled fc test sources. 10535objext=o 10536objext_FC=$objext 10537 10538# No sense in running all these tests if we already determined that 10539# the FC compiler isn't working. Some variables (like enable_shared) 10540# are currently assumed to apply to all compilers on this platform, 10541# and will be corrupted by setting them based on a non-working compiler. 10542if test "$_lt_disable_FC" != yes; then 10543 # Code to be used in simple compile tests 10544 lt_simple_compile_test_code="\ 10545 subroutine t 10546 return 10547 end 10548" 10549 10550 # Code to be used in simple link tests 10551 lt_simple_link_test_code="\ 10552 program t 10553 end 10554" 10555 10556 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 10557 10558 10559 10560 10561 10562 10563# If no C compiler was specified, use CC. 10564LTCC=${LTCC-"$CC"} 10565 10566# If no C compiler flags were specified, use CFLAGS. 10567LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 10568 10569# Allow CC to be a program name with arguments. 10570compiler=$CC 10571 10572 10573 # save warnings/boilerplate of simple test code 10574 ac_outfile=conftest.$ac_objext 10575echo "$lt_simple_compile_test_code" >conftest.$ac_ext 10576eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10577_lt_compiler_boilerplate=`cat conftest.err` 10578$RM conftest* 10579 10580 ac_outfile=conftest.$ac_objext 10581echo "$lt_simple_link_test_code" >conftest.$ac_ext 10582eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 10583_lt_linker_boilerplate=`cat conftest.err` 10584$RM conftest* 10585 10586 10587 # Allow CC to be a program name with arguments. 10588 lt_save_CC="$CC" 10589 CC=${FC-"f95"} 10590 compiler=$CC 10591 compiler_FC=$CC 10592 for cc_temp in $compiler""; do 10593 case $cc_temp in 10594 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 10595 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 10596 \-*) ;; 10597 *) break;; 10598 esac 10599done 10600cc_basename=`$ECHO "X$cc_temp" | $Xsed -e 's%.*/%%' -e "s%^$host_alias-%%"` 10601 10602 10603 if test -n "$compiler"; then 10604 echo "$as_me:$LINENO: checking if libtool supports shared libraries" >&5 10605echo $ECHO_N "checking if libtool supports shared libraries... $ECHO_C" >&6 10606 echo "$as_me:$LINENO: result: $can_build_shared" >&5 10607echo "${ECHO_T}$can_build_shared" >&6 10608 10609 echo "$as_me:$LINENO: checking whether to build shared libraries" >&5 10610echo $ECHO_N "checking whether to build shared libraries... $ECHO_C" >&6 10611 test "$can_build_shared" = "no" && enable_shared=no 10612 10613 # On AIX, shared libraries and static libraries use the same namespace, and 10614 # are all built from PIC. 10615 case $host_os in 10616 aix3*) 10617 test "$enable_shared" = yes && enable_static=no 10618 if test -n "$RANLIB"; then 10619 archive_cmds="$archive_cmds~\$RANLIB \$lib" 10620 postinstall_cmds='$RANLIB $lib' 10621 fi 10622 ;; 10623 aix[4-9]*) 10624 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 10625 test "$enable_shared" = yes && enable_static=no 10626 fi 10627 ;; 10628 esac 10629 echo "$as_me:$LINENO: result: $enable_shared" >&5 10630echo "${ECHO_T}$enable_shared" >&6 10631 10632 echo "$as_me:$LINENO: checking whether to build static libraries" >&5 10633echo $ECHO_N "checking whether to build static libraries... $ECHO_C" >&6 10634 # Make sure either enable_shared or enable_static is yes. 10635 test "$enable_shared" = yes || enable_static=yes 10636 echo "$as_me:$LINENO: result: $enable_static" >&5 10637echo "${ECHO_T}$enable_static" >&6 10638 10639 GCC_FC="$ac_cv_fc_compiler_gnu" 10640 LD_FC="$LD" 10641 10642 ## CAVEAT EMPTOR: 10643 ## There is no encapsulation within the following macros, do not change 10644 ## the running order or otherwise move them around unless you know exactly 10645 ## what you are doing... 10646 # Dependencies to place before and after the object being linked: 10647predep_objects_FC= 10648postdep_objects_FC= 10649predeps_FC= 10650postdeps_FC= 10651compiler_lib_search_path_FC= 10652 10653cat > conftest.$ac_ext <<_LT_EOF 10654 subroutine foo 10655 implicit none 10656 integer a 10657 a=0 10658 return 10659 end 10660_LT_EOF 10661 10662if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 10663 (eval $ac_compile) 2>&5 10664 ac_status=$? 10665 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10666 (exit $ac_status); }; then 10667 # Parse the compiler output and extract the necessary 10668 # objects, libraries and library flags. 10669 10670 # Sentinel used to keep track of whether or not we are before 10671 # the conftest object file. 10672 pre_test_object_deps_done=no 10673 10674 # The `*' in the case matches for architectures that use `case' in 10675 # $output_verbose_cmd can trigger glob expansion during the loop 10676 # eval without this substitution. 10677 output_verbose_link_cmd=`$ECHO "X$output_verbose_link_cmd" | $Xsed -e "$no_glob_subst"` 10678 10679 for p in `eval $output_verbose_link_cmd`; do 10680 case $p in 10681 10682 -L* | -R* | -l*) 10683 # Some compilers place space between "-{L,R}" and the path. 10684 # Remove the space. 10685 if test $p = "-L" || 10686 test $p = "-R"; then 10687 prev=$p 10688 continue 10689 else 10690 prev= 10691 fi 10692 10693 if test "$pre_test_object_deps_done" = no; then 10694 case $p in 10695 -L* | -R*) 10696 # Internal compiler library paths should come after those 10697 # provided the user. The postdeps already come after the 10698 # user supplied libs so there is no need to process them. 10699 if test -z "$compiler_lib_search_path_FC"; then 10700 compiler_lib_search_path_FC="${prev}${p}" 10701 else 10702 compiler_lib_search_path_FC="${compiler_lib_search_path_FC} ${prev}${p}" 10703 fi 10704 ;; 10705 # The "-l" case would never come before the object being 10706 # linked, so don't bother handling this case. 10707 esac 10708 else 10709 if test -z "$postdeps_FC"; then 10710 postdeps_FC="${prev}${p}" 10711 else 10712 postdeps_FC="${postdeps_FC} ${prev}${p}" 10713 fi 10714 fi 10715 ;; 10716 10717 *.$objext) 10718 # This assumes that the test object file only shows up 10719 # once in the compiler output. 10720 if test "$p" = "conftest.$objext"; then 10721 pre_test_object_deps_done=yes 10722 continue 10723 fi 10724 10725 if test "$pre_test_object_deps_done" = no; then 10726 if test -z "$predep_objects_FC"; then 10727 predep_objects_FC="$p" 10728 else 10729 predep_objects_FC="$predep_objects_FC $p" 10730 fi 10731 else 10732 if test -z "$postdep_objects_FC"; then 10733 postdep_objects_FC="$p" 10734 else 10735 postdep_objects_FC="$postdep_objects_FC $p" 10736 fi 10737 fi 10738 ;; 10739 10740 *) ;; # Ignore the rest. 10741 10742 esac 10743 done 10744 10745 # Clean up. 10746 rm -f a.out a.exe 10747else 10748 echo "libtool.m4: error: problem compiling FC test program" 10749fi 10750 10751$RM -f confest.$objext 10752 10753# PORTME: override above test on systems where it is broken 10754 10755 10756case " $postdeps_FC " in 10757*" -lc "*) archive_cmds_need_lc_FC=no ;; 10758esac 10759 10760 10761 10762 10763 10764 10765 10766 10767 10768 10769 10770 10771 10772 10773 10774 10775 10776 10777 10778 10779 10780 10781 10782 10783 10784 10785 lt_prog_compiler_wl_FC= 10786lt_prog_compiler_pic_FC= 10787lt_prog_compiler_static_FC= 10788 10789echo "$as_me:$LINENO: checking for $compiler option to produce PIC" >&5 10790echo $ECHO_N "checking for $compiler option to produce PIC... $ECHO_C" >&6 10791 10792 if test "$GCC" = yes; then 10793 lt_prog_compiler_wl_FC='-Wl,' 10794 lt_prog_compiler_static_FC='-static' 10795 10796 case $host_os in 10797 aix*) 10798 # All AIX code is PIC. 10799 if test "$host_cpu" = ia64; then 10800 # AIX 5 now supports IA64 processor 10801 lt_prog_compiler_static_FC='-Bstatic' 10802 fi 10803 ;; 10804 10805 amigaos*) 10806 if test "$host_cpu" = m68k; then 10807 # FIXME: we need at least 68020 code to build shared libraries, but 10808 # adding the `-m68020' flag to GCC prevents building anything better, 10809 # like `-m68040'. 10810 lt_prog_compiler_pic_FC='-m68020 -resident32 -malways-restore-a4' 10811 fi 10812 ;; 10813 10814 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 10815 # PIC is the default for these OSes. 10816 ;; 10817 10818 mingw* | cygwin* | pw32* | os2*) 10819 # This hack is so that the source file can tell whether it is being 10820 # built for inclusion in a dll (and should export symbols for example). 10821 # Although the cygwin gcc ignores -fPIC, still need this for old-style 10822 # (--disable-auto-import) libraries 10823 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 10824 ;; 10825 10826 darwin* | rhapsody*) 10827 # PIC is the default on this platform 10828 # Common symbols not allowed in MH_DYLIB files 10829 lt_prog_compiler_pic_FC='-fno-common' 10830 ;; 10831 10832 hpux*) 10833 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10834 # not for PA HP-UX. 10835 case $host_cpu in 10836 hppa*64*|ia64*) 10837 # +Z the default 10838 ;; 10839 *) 10840 lt_prog_compiler_pic_FC='-fPIC' 10841 ;; 10842 esac 10843 ;; 10844 10845 interix[3-9]*) 10846 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 10847 # Instead, we relocate shared libraries at runtime. 10848 ;; 10849 10850 msdosdjgpp*) 10851 # Just because we use GCC doesn't mean we suddenly get shared libraries 10852 # on systems that don't support them. 10853 lt_prog_compiler_can_build_shared_FC=no 10854 enable_shared=no 10855 ;; 10856 10857 *nto* | *qnx*) 10858 # QNX uses GNU C++, but need to define -shared option too, otherwise 10859 # it will coredump. 10860 lt_prog_compiler_pic_FC='-fPIC -shared' 10861 ;; 10862 10863 sysv4*MP*) 10864 if test -d /usr/nec; then 10865 lt_prog_compiler_pic_FC=-Kconform_pic 10866 fi 10867 ;; 10868 10869 *) 10870 lt_prog_compiler_pic_FC='-fPIC' 10871 ;; 10872 esac 10873 else 10874 # PORTME Check for flag to pass linker flags through the system compiler. 10875 case $host_os in 10876 aix*) 10877 lt_prog_compiler_wl_FC='-Wl,' 10878 if test "$host_cpu" = ia64; then 10879 # AIX 5 now supports IA64 processor 10880 lt_prog_compiler_static_FC='-Bstatic' 10881 else 10882 lt_prog_compiler_static_FC='-bnso -bI:/lib/syscalls.exp' 10883 fi 10884 ;; 10885 darwin*) 10886 # PIC is the default on this platform 10887 # Common symbols not allowed in MH_DYLIB files 10888 case $cc_basename in 10889 xlc*) 10890 lt_prog_compiler_pic_FC='-qnocommon' 10891 lt_prog_compiler_wl_FC='-Wl,' 10892 ;; 10893 esac 10894 ;; 10895 10896 mingw* | cygwin* | pw32* | os2*) 10897 # This hack is so that the source file can tell whether it is being 10898 # built for inclusion in a dll (and should export symbols for example). 10899 lt_prog_compiler_pic_FC='-DDLL_EXPORT' 10900 ;; 10901 10902 hpux9* | hpux10* | hpux11*) 10903 lt_prog_compiler_wl_FC='-Wl,' 10904 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 10905 # not for PA HP-UX. 10906 case $host_cpu in 10907 hppa*64*|ia64*) 10908 # +Z the default 10909 ;; 10910 *) 10911 lt_prog_compiler_pic_FC='+Z' 10912 ;; 10913 esac 10914 # Is there a better lt_prog_compiler_static that works with the bundled CC? 10915 lt_prog_compiler_static_FC='${wl}-a ${wl}archive' 10916 ;; 10917 10918 irix5* | irix6* | nonstopux*) 10919 lt_prog_compiler_wl_FC='-Wl,' 10920 # PIC (with -KPIC) is the default. 10921 lt_prog_compiler_static_FC='-non_shared' 10922 ;; 10923 10924 linux* | k*bsd*-gnu) 10925 case $cc_basename in 10926 icc* | ecc*) 10927 lt_prog_compiler_wl_FC='-Wl,' 10928 lt_prog_compiler_pic_FC='-KPIC' 10929 lt_prog_compiler_static_FC='-static' 10930 ;; 10931 pgcc* | pgf77* | pgf90* | pgf95*) 10932 # Portland Group compilers (*not* the Pentium gcc compiler, 10933 # which looks to be a dead project) 10934 lt_prog_compiler_wl_FC='-Wl,' 10935 lt_prog_compiler_pic_FC='-fpic' 10936 lt_prog_compiler_static_FC='-Bstatic' 10937 ;; 10938 ccc*) 10939 lt_prog_compiler_wl_FC='-Wl,' 10940 # All Alpha code is PIC. 10941 lt_prog_compiler_static_FC='-non_shared' 10942 ;; 10943 *) 10944 case `$CC -V 2>&1 | sed 5q` in 10945 *Sun\ C*) 10946 # Sun C 5.9 10947 lt_prog_compiler_pic_FC='-KPIC' 10948 lt_prog_compiler_static_FC='-Bstatic' 10949 lt_prog_compiler_wl_FC='-Wl,' 10950 ;; 10951 *Sun\ F*) 10952 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10953 lt_prog_compiler_pic_FC='-KPIC' 10954 lt_prog_compiler_static_FC='-Bstatic' 10955 lt_prog_compiler_wl_FC='' 10956 ;; 10957 esac 10958 ;; 10959 esac 10960 ;; 10961 10962 newsos6) 10963 lt_prog_compiler_pic_FC='-KPIC' 10964 lt_prog_compiler_static_FC='-Bstatic' 10965 ;; 10966 10967 *nto* | *qnx*) 10968 # QNX uses GNU C++, but need to define -shared option too, otherwise 10969 # it will coredump. 10970 lt_prog_compiler_pic_FC='-fPIC -shared' 10971 ;; 10972 10973 osf3* | osf4* | osf5*) 10974 lt_prog_compiler_wl_FC='-Wl,' 10975 # All OSF/1 code is PIC. 10976 lt_prog_compiler_static_FC='-non_shared' 10977 ;; 10978 10979 rdos*) 10980 lt_prog_compiler_static_FC='-non_shared' 10981 ;; 10982 10983 solaris*) 10984 lt_prog_compiler_pic_FC='-KPIC' 10985 lt_prog_compiler_static_FC='-Bstatic' 10986 case $cc_basename in 10987 f77* | f90* | f95*) 10988 lt_prog_compiler_wl_FC='-Qoption ld ';; 10989 *) 10990 lt_prog_compiler_wl_FC='-Wl,';; 10991 esac 10992 ;; 10993 10994 sunos4*) 10995 lt_prog_compiler_wl_FC='-Qoption ld ' 10996 lt_prog_compiler_pic_FC='-PIC' 10997 lt_prog_compiler_static_FC='-Bstatic' 10998 ;; 10999 11000 sysv4 | sysv4.2uw2* | sysv4.3*) 11001 lt_prog_compiler_wl_FC='-Wl,' 11002 lt_prog_compiler_pic_FC='-KPIC' 11003 lt_prog_compiler_static_FC='-Bstatic' 11004 ;; 11005 11006 sysv4*MP*) 11007 if test -d /usr/nec ;then 11008 lt_prog_compiler_pic_FC='-Kconform_pic' 11009 lt_prog_compiler_static_FC='-Bstatic' 11010 fi 11011 ;; 11012 11013 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 11014 lt_prog_compiler_wl_FC='-Wl,' 11015 lt_prog_compiler_pic_FC='-KPIC' 11016 lt_prog_compiler_static_FC='-Bstatic' 11017 ;; 11018 11019 unicos*) 11020 lt_prog_compiler_wl_FC='-Wl,' 11021 lt_prog_compiler_can_build_shared_FC=no 11022 ;; 11023 11024 uts4*) 11025 lt_prog_compiler_pic_FC='-pic' 11026 lt_prog_compiler_static_FC='-Bstatic' 11027 ;; 11028 11029 *) 11030 lt_prog_compiler_can_build_shared_FC=no 11031 ;; 11032 esac 11033 fi 11034 11035case $host_os in 11036 # For platforms which do not support PIC, -DPIC is meaningless: 11037 *djgpp*) 11038 lt_prog_compiler_pic_FC= 11039 ;; 11040 *) 11041 lt_prog_compiler_pic_FC="$lt_prog_compiler_pic_FC" 11042 ;; 11043esac 11044echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_FC" >&5 11045echo "${ECHO_T}$lt_prog_compiler_pic_FC" >&6 11046 11047 11048 11049# 11050# Check to make sure the PIC flag actually works. 11051# 11052if test -n "$lt_prog_compiler_pic_FC"; then 11053 echo "$as_me:$LINENO: checking if $compiler PIC flag $lt_prog_compiler_pic_FC works" >&5 11054echo $ECHO_N "checking if $compiler PIC flag $lt_prog_compiler_pic_FC works... $ECHO_C" >&6 11055if test "${lt_prog_compiler_pic_works_FC+set}" = set; then 11056 echo $ECHO_N "(cached) $ECHO_C" >&6 11057else 11058 lt_prog_compiler_pic_works_FC=no 11059 ac_outfile=conftest.$ac_objext 11060 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11061 lt_compiler_flag="$lt_prog_compiler_pic_FC" 11062 # Insert the option either (1) after the last *FLAGS variable, or 11063 # (2) before a word containing "conftest.", or (3) at the end. 11064 # Note that $ac_compile itself does not contain backslashes and begins 11065 # with a dollar sign (not a hyphen), so the echo should work correctly. 11066 # The option is referenced via a variable to avoid confusing sed. 11067 lt_compile=`echo "$ac_compile" | $SED \ 11068 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11069 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11070 -e 's:$: $lt_compiler_flag:'` 11071 (eval echo "\"\$as_me:11071: $lt_compile\"" >&5) 11072 (eval "$lt_compile" 2>conftest.err) 11073 ac_status=$? 11074 cat conftest.err >&5 11075 echo "$as_me:11075: \$? = $ac_status" >&5 11076 if (exit $ac_status) && test -s "$ac_outfile"; then 11077 # The compiler can only warn and ignore the option if not recognized 11078 # So say no if there are warnings other than the usual output. 11079 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' >conftest.exp 11080 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11081 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 11082 lt_prog_compiler_pic_works_FC=yes 11083 fi 11084 fi 11085 $RM conftest* 11086 11087fi 11088echo "$as_me:$LINENO: result: $lt_prog_compiler_pic_works_FC" >&5 11089echo "${ECHO_T}$lt_prog_compiler_pic_works_FC" >&6 11090 11091if test x"$lt_prog_compiler_pic_works_FC" = xyes; then 11092 case $lt_prog_compiler_pic_FC in 11093 "" | " "*) ;; 11094 *) lt_prog_compiler_pic_FC=" $lt_prog_compiler_pic_FC" ;; 11095 esac 11096else 11097 lt_prog_compiler_pic_FC= 11098 lt_prog_compiler_can_build_shared_FC=no 11099fi 11100 11101fi 11102 11103 11104 11105# 11106# Check to make sure the static flag actually works. 11107# 11108wl=$lt_prog_compiler_wl_FC eval lt_tmp_static_flag=\"$lt_prog_compiler_static_FC\" 11109echo "$as_me:$LINENO: checking if $compiler static flag $lt_tmp_static_flag works" >&5 11110echo $ECHO_N "checking if $compiler static flag $lt_tmp_static_flag works... $ECHO_C" >&6 11111if test "${lt_prog_compiler_static_works_FC+set}" = set; then 11112 echo $ECHO_N "(cached) $ECHO_C" >&6 11113else 11114 lt_prog_compiler_static_works_FC=no 11115 save_LDFLAGS="$LDFLAGS" 11116 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 11117 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11118 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11119 # The linker can only warn and ignore the option if not recognized 11120 # So say no if there are warnings 11121 if test -s conftest.err; then 11122 # Append any errors to the config.log. 11123 cat conftest.err 1>&5 11124 $ECHO "X$_lt_linker_boilerplate" | $Xsed -e '/^$/d' > conftest.exp 11125 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11126 if diff conftest.exp conftest.er2 >/dev/null; then 11127 lt_prog_compiler_static_works_FC=yes 11128 fi 11129 else 11130 lt_prog_compiler_static_works_FC=yes 11131 fi 11132 fi 11133 $RM conftest* 11134 LDFLAGS="$save_LDFLAGS" 11135 11136fi 11137echo "$as_me:$LINENO: result: $lt_prog_compiler_static_works_FC" >&5 11138echo "${ECHO_T}$lt_prog_compiler_static_works_FC" >&6 11139 11140if test x"$lt_prog_compiler_static_works_FC" = xyes; then 11141 : 11142else 11143 lt_prog_compiler_static_FC= 11144fi 11145 11146 11147 11148 11149 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11150echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11151if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then 11152 echo $ECHO_N "(cached) $ECHO_C" >&6 11153else 11154 lt_cv_prog_compiler_c_o_FC=no 11155 $RM -r conftest 2>/dev/null 11156 mkdir conftest 11157 cd conftest 11158 mkdir out 11159 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11160 11161 lt_compiler_flag="-o out/conftest2.$ac_objext" 11162 # Insert the option either (1) after the last *FLAGS variable, or 11163 # (2) before a word containing "conftest.", or (3) at the end. 11164 # Note that $ac_compile itself does not contain backslashes and begins 11165 # with a dollar sign (not a hyphen), so the echo should work correctly. 11166 lt_compile=`echo "$ac_compile" | $SED \ 11167 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11168 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11169 -e 's:$: $lt_compiler_flag:'` 11170 (eval echo "\"\$as_me:11170: $lt_compile\"" >&5) 11171 (eval "$lt_compile" 2>out/conftest.err) 11172 ac_status=$? 11173 cat out/conftest.err >&5 11174 echo "$as_me:11174: \$? = $ac_status" >&5 11175 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11176 then 11177 # The compiler can only warn and ignore the option if not recognized 11178 # So say no if there are warnings 11179 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11180 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11181 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11182 lt_cv_prog_compiler_c_o_FC=yes 11183 fi 11184 fi 11185 chmod u+w . 2>&5 11186 $RM conftest* 11187 # SGI C++ compiler will create directory out/ii_files/ for 11188 # template instantiation 11189 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11190 $RM out/* && rmdir out 11191 cd .. 11192 $RM -r conftest 11193 $RM conftest* 11194 11195fi 11196echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 11197echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 11198 11199 11200 11201 echo "$as_me:$LINENO: checking if $compiler supports -c -o file.$ac_objext" >&5 11202echo $ECHO_N "checking if $compiler supports -c -o file.$ac_objext... $ECHO_C" >&6 11203if test "${lt_cv_prog_compiler_c_o_FC+set}" = set; then 11204 echo $ECHO_N "(cached) $ECHO_C" >&6 11205else 11206 lt_cv_prog_compiler_c_o_FC=no 11207 $RM -r conftest 2>/dev/null 11208 mkdir conftest 11209 cd conftest 11210 mkdir out 11211 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11212 11213 lt_compiler_flag="-o out/conftest2.$ac_objext" 11214 # Insert the option either (1) after the last *FLAGS variable, or 11215 # (2) before a word containing "conftest.", or (3) at the end. 11216 # Note that $ac_compile itself does not contain backslashes and begins 11217 # with a dollar sign (not a hyphen), so the echo should work correctly. 11218 lt_compile=`echo "$ac_compile" | $SED \ 11219 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 11220 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 11221 -e 's:$: $lt_compiler_flag:'` 11222 (eval echo "\"\$as_me:11222: $lt_compile\"" >&5) 11223 (eval "$lt_compile" 2>out/conftest.err) 11224 ac_status=$? 11225 cat out/conftest.err >&5 11226 echo "$as_me:11226: \$? = $ac_status" >&5 11227 if (exit $ac_status) && test -s out/conftest2.$ac_objext 11228 then 11229 # The compiler can only warn and ignore the option if not recognized 11230 # So say no if there are warnings 11231 $ECHO "X$_lt_compiler_boilerplate" | $Xsed -e '/^$/d' > out/conftest.exp 11232 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 11233 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 11234 lt_cv_prog_compiler_c_o_FC=yes 11235 fi 11236 fi 11237 chmod u+w . 2>&5 11238 $RM conftest* 11239 # SGI C++ compiler will create directory out/ii_files/ for 11240 # template instantiation 11241 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 11242 $RM out/* && rmdir out 11243 cd .. 11244 $RM -r conftest 11245 $RM conftest* 11246 11247fi 11248echo "$as_me:$LINENO: result: $lt_cv_prog_compiler_c_o_FC" >&5 11249echo "${ECHO_T}$lt_cv_prog_compiler_c_o_FC" >&6 11250 11251 11252 11253 11254hard_links="nottested" 11255if test "$lt_cv_prog_compiler_c_o_FC" = no && test "$need_locks" != no; then 11256 # do not overwrite the value of need_locks provided by the user 11257 echo "$as_me:$LINENO: checking if we can lock with hard links" >&5 11258echo $ECHO_N "checking if we can lock with hard links... $ECHO_C" >&6 11259 hard_links=yes 11260 $RM conftest* 11261 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11262 touch conftest.a 11263 ln conftest.a conftest.b 2>&5 || hard_links=no 11264 ln conftest.a conftest.b 2>/dev/null && hard_links=no 11265 echo "$as_me:$LINENO: result: $hard_links" >&5 11266echo "${ECHO_T}$hard_links" >&6 11267 if test "$hard_links" = no; then 11268 { echo "$as_me:$LINENO: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 11269echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 11270 need_locks=warn 11271 fi 11272else 11273 need_locks=no 11274fi 11275 11276 11277 11278 echo "$as_me:$LINENO: checking whether the $compiler linker ($LD) supports shared libraries" >&5 11279echo $ECHO_N "checking whether the $compiler linker ($LD) supports shared libraries... $ECHO_C" >&6 11280 11281 runpath_var= 11282 allow_undefined_flag_FC= 11283 always_export_symbols_FC=no 11284 archive_cmds_FC= 11285 archive_expsym_cmds_FC= 11286 compiler_needs_object_FC=no 11287 enable_shared_with_static_runtimes_FC=no 11288 export_dynamic_flag_spec_FC= 11289 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 11290 hardcode_automatic_FC=no 11291 hardcode_direct_FC=no 11292 hardcode_direct_absolute_FC=no 11293 hardcode_libdir_flag_spec_FC= 11294 hardcode_libdir_flag_spec_ld_FC= 11295 hardcode_libdir_separator_FC= 11296 hardcode_minus_L_FC=no 11297 hardcode_shlibpath_var_FC=unsupported 11298 inherit_rpath_FC=no 11299 link_all_deplibs_FC=unknown 11300 module_cmds_FC= 11301 module_expsym_cmds_FC= 11302 old_archive_from_new_cmds_FC= 11303 old_archive_from_expsyms_cmds_FC= 11304 thread_safe_flag_spec_FC= 11305 whole_archive_flag_spec_FC= 11306 # include_expsyms should be a list of space-separated symbols to be *always* 11307 # included in the symbol list 11308 include_expsyms_FC= 11309 # exclude_expsyms can be an extended regexp of symbols to exclude 11310 # it will be wrapped by ` (' and `)$', so one must not match beginning or 11311 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 11312 # as well as any symbol that contains `d'. 11313 exclude_expsyms_FC="_GLOBAL_OFFSET_TABLE_" 11314 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 11315 # platforms (ab)use it in PIC code, but their linkers get confused if 11316 # the symbol is explicitly referenced. Since portable code cannot 11317 # rely on this symbol name, it's probably fine to never include it in 11318 # preloaded symbol tables. 11319 extract_expsyms_cmds= 11320 11321 case $host_os in 11322 cygwin* | mingw* | pw32*) 11323 # FIXME: the MSVC++ port hasn't been tested in a loooong time 11324 # When not using gcc, we currently assume that we are using 11325 # Microsoft Visual C++. 11326 if test "$GCC" != yes; then 11327 with_gnu_ld=no 11328 fi 11329 ;; 11330 interix*) 11331 # we just hope/assume this is gcc and not c89 (= MSVC++) 11332 with_gnu_ld=yes 11333 ;; 11334 openbsd*) 11335 with_gnu_ld=no 11336 ;; 11337 esac 11338 11339 ld_shlibs_FC=yes 11340 if test "$with_gnu_ld" = yes; then 11341 # If archive_cmds runs LD, not CC, wlarc should be empty 11342 wlarc='${wl}' 11343 11344 # Set some defaults for GNU ld with shared library support. These 11345 # are reset later if shared libraries are not supported. Putting them 11346 # here allows them to be overridden if necessary. 11347 runpath_var=LD_RUN_PATH 11348 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 11349 export_dynamic_flag_spec_FC='${wl}--export-dynamic' 11350 # ancient GNU ld didn't support --whole-archive et. al. 11351 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 11352 whole_archive_flag_spec_FC="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 11353 else 11354 whole_archive_flag_spec_FC= 11355 fi 11356 supports_anon_versioning=no 11357 case `$LD -v 2>&1` in 11358 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 11359 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 11360 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 11361 *\ 2.11.*) ;; # other 2.11 versions 11362 *) supports_anon_versioning=yes ;; 11363 esac 11364 11365 # See if GNU ld supports shared libraries. 11366 case $host_os in 11367 aix[3-9]*) 11368 # On AIX/PPC, the GNU linker is very broken 11369 if test "$host_cpu" != ia64; then 11370 ld_shlibs_FC=no 11371 cat <<_LT_EOF 1>&2 11372 11373*** Warning: the GNU linker, at least up to release 2.9.1, is reported 11374*** to be unable to reliably create shared libraries on AIX. 11375*** Therefore, libtool is disabling shared libraries support. If you 11376*** really care for shared libraries, you may want to modify your PATH 11377*** so that a non-GNU linker is found, and then restart. 11378 11379_LT_EOF 11380 fi 11381 ;; 11382 11383 amigaos*) 11384 if test "$host_cpu" = m68k; then 11385 archive_cmds_FC='$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)' 11386 hardcode_libdir_flag_spec_FC='-L$libdir' 11387 hardcode_minus_L_FC=yes 11388 fi 11389 11390 # Samuel A. Falvo II <kc5tja@dolphin.openprojects.net> reports 11391 # that the semantics of dynamic libraries on AmigaOS, at least up 11392 # to version 4, is to share data among multiple programs linked 11393 # with the same dynamic library. Since this doesn't match the 11394 # behavior of shared libraries on other platforms, we can't use 11395 # them. 11396 ld_shlibs_FC=no 11397 ;; 11398 11399 beos*) 11400 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11401 allow_undefined_flag_FC=unsupported 11402 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 11403 # support --undefined. This deserves some investigation. FIXME 11404 archive_cmds_FC='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11405 else 11406 ld_shlibs_FC=no 11407 fi 11408 ;; 11409 11410 cygwin* | mingw* | pw32*) 11411 # _LT_TAGVAR(hardcode_libdir_flag_spec, FC) is actually meaningless, 11412 # as there is no search path for DLLs. 11413 hardcode_libdir_flag_spec_FC='-L$libdir' 11414 allow_undefined_flag_FC=unsupported 11415 always_export_symbols_FC=no 11416 enable_shared_with_static_runtimes_FC=yes 11417 export_symbols_cmds_FC='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11418 11419 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 11420 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11421 # If the export-symbols file already is a .def file (1st line 11422 # is EXPORTS), use it as is; otherwise, prepend... 11423 archive_expsym_cmds_FC='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 11424 cp $export_symbols $output_objdir/$soname.def; 11425 else 11426 echo EXPORTS > $output_objdir/$soname.def; 11427 cat $export_symbols >> $output_objdir/$soname.def; 11428 fi~ 11429 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 11430 else 11431 ld_shlibs_FC=no 11432 fi 11433 ;; 11434 11435 interix[3-9]*) 11436 hardcode_direct_FC=no 11437 hardcode_shlibpath_var_FC=no 11438 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 11439 export_dynamic_flag_spec_FC='${wl}-E' 11440 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 11441 # Instead, shared libraries are loaded at an image base (0x10000000 by 11442 # default) and relocated if they conflict, which is a slow very memory 11443 # consuming and fragmenting process. To avoid this, we pick a random, 11444 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 11445 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 11446 archive_cmds_FC='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11447 archive_expsym_cmds_FC='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 11448 ;; 11449 11450 gnu* | linux* | tpf* | k*bsd*-gnu) 11451 tmp_diet=no 11452 if test "$host_os" = linux-dietlibc; then 11453 case $cc_basename in 11454 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 11455 esac 11456 fi 11457 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 11458 && test "$tmp_diet" = no 11459 then 11460 tmp_addflag= 11461 case $cc_basename,$host_cpu in 11462 pgcc*) # Portland Group C compiler 11463 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 11464 tmp_addflag=' $pic_flag' 11465 ;; 11466 pgf77* | pgf90* | pgf95*) # Portland Group f77 and f90 compilers 11467 whole_archive_flag_spec_FC='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 11468 tmp_addflag=' $pic_flag -Mnomain' ;; 11469 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 11470 tmp_addflag=' -i_dynamic' ;; 11471 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 11472 tmp_addflag=' -i_dynamic -nofor_main' ;; 11473 ifc* | ifort*) # Intel Fortran compiler 11474 tmp_addflag=' -nofor_main' ;; 11475 esac 11476 case `$CC -V 2>&1 | sed 5q` in 11477 *Sun\ C*) # Sun C 5.9 11478 whole_archive_flag_spec_FC='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; $ECHO \"$new_convenience\"` ${wl}--no-whole-archive' 11479 compiler_needs_object_FC=yes 11480 tmp_sharedflag='-G' ;; 11481 *Sun\ F*) # Sun Fortran 8.3 11482 tmp_sharedflag='-G' ;; 11483 *) 11484 tmp_sharedflag='-shared' ;; 11485 esac 11486 archive_cmds_FC='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11487 11488 if test "x$supports_anon_versioning" = xyes; then 11489 archive_expsym_cmds_FC='echo "{ global:" > $output_objdir/$libname.ver~ 11490 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 11491 echo "local: *; };" >> $output_objdir/$libname.ver~ 11492 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 11493 fi 11494 else 11495 ld_shlibs_FC=no 11496 fi 11497 ;; 11498 11499 netbsd*) 11500 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11501 archive_cmds_FC='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 11502 wlarc= 11503 else 11504 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11505 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11506 fi 11507 ;; 11508 11509 solaris*) 11510 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 11511 ld_shlibs_FC=no 11512 cat <<_LT_EOF 1>&2 11513 11514*** Warning: The releases 2.8.* of the GNU linker cannot reliably 11515*** create shared libraries on Solaris systems. Therefore, libtool 11516*** is disabling shared libraries support. We urge you to upgrade GNU 11517*** binutils to release 2.9.1 or newer. Another option is to modify 11518*** your PATH or compiler configuration so that the native linker is 11519*** used, and then restart. 11520 11521_LT_EOF 11522 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11523 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11524 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11525 else 11526 ld_shlibs_FC=no 11527 fi 11528 ;; 11529 11530 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 11531 case `$LD -v 2>&1` in 11532 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 11533 ld_shlibs_FC=no 11534 cat <<_LT_EOF 1>&2 11535 11536*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 11537*** reliably create shared libraries on SCO systems. Therefore, libtool 11538*** is disabling shared libraries support. We urge you to upgrade GNU 11539*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 11540*** your PATH or compiler configuration so that the native linker is 11541*** used, and then restart. 11542 11543_LT_EOF 11544 ;; 11545 *) 11546 # For security reasons, it is highly recommended that you always 11547 # use absolute paths for naming shared libraries, and exclude the 11548 # DT_RUNPATH tag from executables and libraries. But doing so 11549 # requires that you compile everything twice, which is a pain. 11550 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11551 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 11552 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11553 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11554 else 11555 ld_shlibs_FC=no 11556 fi 11557 ;; 11558 esac 11559 ;; 11560 11561 sunos4*) 11562 archive_cmds_FC='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11563 wlarc= 11564 hardcode_direct_FC=yes 11565 hardcode_shlibpath_var_FC=no 11566 ;; 11567 11568 *) 11569 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 11570 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 11571 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 11572 else 11573 ld_shlibs_FC=no 11574 fi 11575 ;; 11576 esac 11577 11578 if test "$ld_shlibs_FC" = no; then 11579 runpath_var= 11580 hardcode_libdir_flag_spec_FC= 11581 export_dynamic_flag_spec_FC= 11582 whole_archive_flag_spec_FC= 11583 fi 11584 else 11585 # PORTME fill in a description of your system's linker (not GNU ld) 11586 case $host_os in 11587 aix3*) 11588 allow_undefined_flag_FC=unsupported 11589 always_export_symbols_FC=yes 11590 archive_expsym_cmds_FC='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname' 11591 # Note: this linker hardcodes the directories in LIBPATH if there 11592 # are no directories specified by -L. 11593 hardcode_minus_L_FC=yes 11594 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 11595 # Neither direct hardcoding nor static linking is supported with a 11596 # broken collect2. 11597 hardcode_direct_FC=unsupported 11598 fi 11599 ;; 11600 11601 aix[4-9]*) 11602 if test "$host_cpu" = ia64; then 11603 # On IA64, the linker does run time linking by default, so we don't 11604 # have to do anything special. 11605 aix_use_runtimelinking=no 11606 exp_sym_flag='-Bexport' 11607 no_entry_flag="" 11608 else 11609 # If we're using GNU nm, then we don't want the "-C" option. 11610 # -C means demangle to AIX nm, but means don't demangle with GNU nm 11611 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 11612 export_symbols_cmds_FC='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11613 else 11614 export_symbols_cmds_FC='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 11615 fi 11616 aix_use_runtimelinking=no 11617 11618 # Test if we are trying to use run time linking or normal 11619 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 11620 # need to do runtime linking. 11621 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 11622 for ld_flag in $LDFLAGS; do 11623 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 11624 aix_use_runtimelinking=yes 11625 break 11626 fi 11627 done 11628 ;; 11629 esac 11630 11631 exp_sym_flag='-bexport' 11632 no_entry_flag='-bnoentry' 11633 fi 11634 11635 # When large executables or shared objects are built, AIX ld can 11636 # have problems creating the table of contents. If linking a library 11637 # or program results in "error TOC overflow" add -mminimal-toc to 11638 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 11639 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 11640 11641 archive_cmds_FC='' 11642 hardcode_direct_FC=yes 11643 hardcode_direct_absolute_FC=yes 11644 hardcode_libdir_separator_FC=':' 11645 link_all_deplibs_FC=yes 11646 file_list_spec_FC='${wl}-f,' 11647 11648 if test "$GCC" = yes; then 11649 case $host_os in aix4.[012]|aix4.[012].*) 11650 # We only want to do this on AIX 4.2 and lower, the check 11651 # below for broken collect2 doesn't work under 4.3+ 11652 collect2name=`${CC} -print-prog-name=collect2` 11653 if test -f "$collect2name" && 11654 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 11655 then 11656 # We have reworked collect2 11657 : 11658 else 11659 # We have old collect2 11660 hardcode_direct_FC=unsupported 11661 # It fails to find uninstalled libraries when the uninstalled 11662 # path is not listed in the libpath. Setting hardcode_minus_L 11663 # to unsupported forces relinking 11664 hardcode_minus_L_FC=yes 11665 hardcode_libdir_flag_spec_FC='-L$libdir' 11666 hardcode_libdir_separator_FC= 11667 fi 11668 ;; 11669 esac 11670 shared_flag='-shared' 11671 if test "$aix_use_runtimelinking" = yes; then 11672 shared_flag="$shared_flag "'${wl}-G' 11673 fi 11674 else 11675 # not using gcc 11676 if test "$host_cpu" = ia64; then 11677 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 11678 # chokes on -Wl,-G. The following line is correct: 11679 shared_flag='-G' 11680 else 11681 if test "$aix_use_runtimelinking" = yes; then 11682 shared_flag='${wl}-G' 11683 else 11684 shared_flag='${wl}-bM:SRE' 11685 fi 11686 fi 11687 fi 11688 11689 # It seems that -bexpall does not export symbols beginning with 11690 # underscore (_), so it is better to generate a list of symbols to export. 11691 always_export_symbols_FC=yes 11692 if test "$aix_use_runtimelinking" = yes; then 11693 # Warning - without using the other runtime loading flags (-brtl), 11694 # -berok will link without error, but may produce a broken library. 11695 allow_undefined_flag_FC='-berok' 11696 # Determine the default libpath from the value encoded in an 11697 # empty executable. 11698 cat >conftest.$ac_ext <<_ACEOF 11699 program main 11700 11701 end 11702_ACEOF 11703rm -f conftest.$ac_objext conftest$ac_exeext 11704if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11705 (eval $ac_link) 2>conftest.er1 11706 ac_status=$? 11707 grep -v '^ *+' conftest.er1 >conftest.err 11708 rm -f conftest.er1 11709 cat conftest.err >&5 11710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11711 (exit $ac_status); } && 11712 { ac_try='test -z "$ac_fc_werror_flag" 11713 || test ! -s conftest.err' 11714 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11715 (eval $ac_try) 2>&5 11716 ac_status=$? 11717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11718 (exit $ac_status); }; } && 11719 { ac_try='test -s conftest$ac_exeext' 11720 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11721 (eval $ac_try) 2>&5 11722 ac_status=$? 11723 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11724 (exit $ac_status); }; }; then 11725 11726lt_aix_libpath_sed=' 11727 /Import File Strings/,/^$/ { 11728 /^0/ { 11729 s/^0 *\(.*\)$/\1/ 11730 p 11731 } 11732 }' 11733aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11734# Check for a 64-bit object if we didn't find anything. 11735if test -z "$aix_libpath"; then 11736 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11737fi 11738else 11739 echo "$as_me: failed program was:" >&5 11740sed 's/^/| /' conftest.$ac_ext >&5 11741 11742fi 11743rm -f conftest.err conftest.$ac_objext \ 11744 conftest$ac_exeext conftest.$ac_ext 11745if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11746 11747 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 11748 archive_expsym_cmds_FC='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then $ECHO "X${wl}${allow_undefined_flag}" | $Xsed; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 11749 else 11750 if test "$host_cpu" = ia64; then 11751 hardcode_libdir_flag_spec_FC='${wl}-R $libdir:/usr/lib:/lib' 11752 allow_undefined_flag_FC="-z nodefs" 11753 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols" 11754 else 11755 # Determine the default libpath from the value encoded in an 11756 # empty executable. 11757 cat >conftest.$ac_ext <<_ACEOF 11758 program main 11759 11760 end 11761_ACEOF 11762rm -f conftest.$ac_objext conftest$ac_exeext 11763if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 11764 (eval $ac_link) 2>conftest.er1 11765 ac_status=$? 11766 grep -v '^ *+' conftest.er1 >conftest.err 11767 rm -f conftest.er1 11768 cat conftest.err >&5 11769 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11770 (exit $ac_status); } && 11771 { ac_try='test -z "$ac_fc_werror_flag" 11772 || test ! -s conftest.err' 11773 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11774 (eval $ac_try) 2>&5 11775 ac_status=$? 11776 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11777 (exit $ac_status); }; } && 11778 { ac_try='test -s conftest$ac_exeext' 11779 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 11780 (eval $ac_try) 2>&5 11781 ac_status=$? 11782 echo "$as_me:$LINENO: \$? = $ac_status" >&5 11783 (exit $ac_status); }; }; then 11784 11785lt_aix_libpath_sed=' 11786 /Import File Strings/,/^$/ { 11787 /^0/ { 11788 s/^0 *\(.*\)$/\1/ 11789 p 11790 } 11791 }' 11792aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11793# Check for a 64-bit object if we didn't find anything. 11794if test -z "$aix_libpath"; then 11795 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11796fi 11797else 11798 echo "$as_me: failed program was:" >&5 11799sed 's/^/| /' conftest.$ac_ext >&5 11800 11801fi 11802rm -f conftest.err conftest.$ac_objext \ 11803 conftest$ac_exeext conftest.$ac_ext 11804if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 11805 11806 hardcode_libdir_flag_spec_FC='${wl}-blibpath:$libdir:'"$aix_libpath" 11807 # Warning - without using the other run time loading flags, 11808 # -berok will link without error, but may produce a broken library. 11809 no_undefined_flag_FC=' ${wl}-bernotok' 11810 allow_undefined_flag_FC=' ${wl}-berok' 11811 # Exported symbols can be pulled into shared objects from archives 11812 whole_archive_flag_spec_FC='$convenience' 11813 archive_cmds_need_lc_FC=yes 11814 # This is similar to how AIX traditionally builds its shared libraries. 11815 archive_expsym_cmds_FC="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname' 11816 fi 11817 fi 11818 ;; 11819 11820 amigaos*) 11821 if test "$host_cpu" = m68k; then 11822 archive_cmds_FC='$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)' 11823 hardcode_libdir_flag_spec_FC='-L$libdir' 11824 hardcode_minus_L_FC=yes 11825 fi 11826 # see comment about different semantics on the GNU ld section 11827 ld_shlibs_FC=no 11828 ;; 11829 11830 bsdi[45]*) 11831 export_dynamic_flag_spec_FC=-rdynamic 11832 ;; 11833 11834 cygwin* | mingw* | pw32*) 11835 # When not using gcc, we currently assume that we are using 11836 # Microsoft Visual C++. 11837 # hardcode_libdir_flag_spec is actually meaningless, as there is 11838 # no search path for DLLs. 11839 hardcode_libdir_flag_spec_FC=' ' 11840 allow_undefined_flag_FC=unsupported 11841 # Tell ltmain to make .lib files, not .a files. 11842 libext=lib 11843 # Tell ltmain to make .dll files, not .so files. 11844 shrext_cmds=".dll" 11845 # FIXME: Setting linknames here is a bad hack. 11846 archive_cmds_FC='$CC -o $lib $libobjs $compiler_flags `$ECHO "X$deplibs" | $Xsed -e '\''s/ -lc$//'\''` -link -dll~linknames=' 11847 # The linker will automatically build a .lib file if we build a DLL. 11848 old_archive_from_new_cmds_FC='true' 11849 # FIXME: Should let the user specify the lib program. 11850 old_archive_cmds_FC='lib -OUT:$oldlib$oldobjs$old_deplibs' 11851 fix_srcfile_path_FC='`cygpath -w "$srcfile"`' 11852 enable_shared_with_static_runtimes_FC=yes 11853 ;; 11854 11855 darwin* | rhapsody*) 11856 case $host_os in 11857 rhapsody* | darwin1.[012]) 11858 allow_undefined_flag_FC='${wl}-undefined ${wl}suppress' 11859 ;; 11860 *) # Darwin 1.3 on 11861 case ${MACOSX_DEPLOYMENT_TARGET-10.0} in 11862 10.[012]) 11863 allow_undefined_flag_FC='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' 11864 ;; 11865 10.*) 11866 allow_undefined_flag_FC='${wl}-undefined ${wl}dynamic_lookup' 11867 ;; 11868 esac 11869 ;; 11870 esac 11871 archive_cmds_need_lc_FC=no 11872 hardcode_direct_FC=no 11873 hardcode_automatic_FC=yes 11874 hardcode_shlibpath_var_FC=unsupported 11875 whole_archive_flag_spec_FC='' 11876 link_all_deplibs_FC=yes 11877 if test "$GCC" = yes ; then 11878 if test "${lt_cv_apple_cc_single_mod+set}" = set; then 11879 echo $ECHO_N "(cached) $ECHO_C" >&6 11880else 11881 lt_cv_apple_cc_single_mod=no 11882 if test -z "${LT_MULTI_MODULE}"; then 11883 # By default we will add the -single_module flag. You can override 11884 # by either setting the environment variable LT_MULTI_MODULE 11885 # non-empty at configure time, or by adding -multi-module to the 11886 # link flags. 11887 echo "int foo(void){return 1;}" > conftest.c 11888 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 11889 -dynamiclib ${wl}-single_module conftest.c 11890 if test -f libconftest.dylib; then 11891 lt_cv_apple_cc_single_mod=yes 11892 rm libconftest.dylib 11893 fi 11894 rm conftest.$ac_ext 11895 fi 11896fi 11897 11898 output_verbose_link_cmd=echo 11899 if test "X$lt_cv_apple_cc_single_mod" = Xyes ; then 11900 archive_cmds_FC='$CC -dynamiclib $single_module $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11901 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC $single_module -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11902 else 11903 archive_cmds_FC='$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring' 11904 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -dynamiclib $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags -install_name $rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11905 fi 11906 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11907 module_expsym_cmds_FC='sed -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}' 11908 else 11909 case $cc_basename in 11910 xlc*) 11911 output_verbose_link_cmd=echo 11912 archive_cmds_FC='$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}`$ECHO $rpath/$soname` $verstring' 11913 module_cmds_FC='$CC $allow_undefined_flag -o $lib -bundle $libobjs $deplibs$compiler_flags' 11914 # Don't fix this by using the ld -exported_symbols_list flag, it doesn't exist in older darwin lds 11915 archive_expsym_cmds_FC='sed "s,^,_," < $export_symbols > $output_objdir/${libname}-symbols.expsym~$CC -qmkshrobj $allow_undefined_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-install_name ${wl}$rpath/$soname $verstring~nmedit -s $output_objdir/${libname}-symbols.expsym ${lib}' 11916 module_expsym_cmds_FC='sed "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}' 11917 ;; 11918 *) 11919 ld_shlibs_FC=no 11920 ;; 11921 esac 11922 fi 11923 ;; 11924 11925 dgux*) 11926 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11927 hardcode_libdir_flag_spec_FC='-L$libdir' 11928 hardcode_shlibpath_var_FC=no 11929 ;; 11930 11931 freebsd1*) 11932 ld_shlibs_FC=no 11933 ;; 11934 11935 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11936 # support. Future versions do this automatically, but an explicit c++rt0.o 11937 # does not break anything, and helps significantly (at the cost of a little 11938 # extra space). 11939 freebsd2.2*) 11940 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11941 hardcode_libdir_flag_spec_FC='-R$libdir' 11942 hardcode_direct_FC=yes 11943 hardcode_shlibpath_var_FC=no 11944 ;; 11945 11946 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11947 freebsd2*) 11948 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11949 hardcode_direct_FC=yes 11950 hardcode_minus_L_FC=yes 11951 hardcode_shlibpath_var_FC=no 11952 ;; 11953 11954 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11955 freebsd* | dragonfly*) 11956 archive_cmds_FC='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 11957 hardcode_libdir_flag_spec_FC='-R$libdir' 11958 hardcode_direct_FC=yes 11959 hardcode_shlibpath_var_FC=no 11960 ;; 11961 11962 hpux9*) 11963 if test "$GCC" = yes; then 11964 archive_cmds_FC='$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' 11965 else 11966 archive_cmds_FC='$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' 11967 fi 11968 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 11969 hardcode_libdir_separator_FC=: 11970 hardcode_direct_FC=yes 11971 11972 # hardcode_minus_L: Not really in the search PATH, 11973 # but as the default location of the library. 11974 hardcode_minus_L_FC=yes 11975 export_dynamic_flag_spec_FC='${wl}-E' 11976 ;; 11977 11978 hpux10*) 11979 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11980 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11981 else 11982 archive_cmds_FC='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11983 fi 11984 if test "$with_gnu_ld" = no; then 11985 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 11986 hardcode_libdir_flag_spec_ld_FC='+b $libdir' 11987 hardcode_libdir_separator_FC=: 11988 hardcode_direct_FC=yes 11989 hardcode_direct_absolute_FC=yes 11990 export_dynamic_flag_spec_FC='${wl}-E' 11991 # hardcode_minus_L: Not really in the search PATH, 11992 # but as the default location of the library. 11993 hardcode_minus_L_FC=yes 11994 fi 11995 ;; 11996 11997 hpux11*) 11998 if test "$GCC" = yes -a "$with_gnu_ld" = no; then 11999 case $host_cpu in 12000 hppa*64*) 12001 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12002 ;; 12003 ia64*) 12004 archive_cmds_FC='$CC -shared ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12005 ;; 12006 *) 12007 archive_cmds_FC='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12008 ;; 12009 esac 12010 else 12011 case $host_cpu in 12012 hppa*64*) 12013 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12014 ;; 12015 ia64*) 12016 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 12017 ;; 12018 *) 12019 archive_cmds_FC='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 12020 ;; 12021 esac 12022 fi 12023 if test "$with_gnu_ld" = no; then 12024 hardcode_libdir_flag_spec_FC='${wl}+b ${wl}$libdir' 12025 hardcode_libdir_separator_FC=: 12026 12027 case $host_cpu in 12028 hppa*64*|ia64*) 12029 hardcode_direct_FC=no 12030 hardcode_shlibpath_var_FC=no 12031 ;; 12032 *) 12033 hardcode_direct_FC=yes 12034 hardcode_direct_absolute_FC=yes 12035 export_dynamic_flag_spec_FC='${wl}-E' 12036 12037 # hardcode_minus_L: Not really in the search PATH, 12038 # but as the default location of the library. 12039 hardcode_minus_L_FC=yes 12040 ;; 12041 esac 12042 fi 12043 ;; 12044 12045 irix5* | irix6* | nonstopux*) 12046 if test "$GCC" = yes; then 12047 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12048 # Try to use the -exported_symbol ld option, if it does not 12049 # work, assume that -exports_file does not work either and 12050 # implicitly export all symbols. 12051 save_LDFLAGS="$LDFLAGS" 12052 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 12053 cat >conftest.$ac_ext <<_ACEOF 12054int foo(void) {} 12055_ACEOF 12056rm -f conftest.$ac_objext conftest$ac_exeext 12057if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12058 (eval $ac_link) 2>conftest.er1 12059 ac_status=$? 12060 grep -v '^ *+' conftest.er1 >conftest.err 12061 rm -f conftest.er1 12062 cat conftest.err >&5 12063 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12064 (exit $ac_status); } && 12065 { ac_try='test -z "$ac_fc_werror_flag" 12066 || test ! -s conftest.err' 12067 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12068 (eval $ac_try) 2>&5 12069 ac_status=$? 12070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12071 (exit $ac_status); }; } && 12072 { ac_try='test -s conftest$ac_exeext' 12073 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12074 (eval $ac_try) 2>&5 12075 ac_status=$? 12076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12077 (exit $ac_status); }; }; then 12078 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 12079 12080else 12081 echo "$as_me: failed program was:" >&5 12082sed 's/^/| /' conftest.$ac_ext >&5 12083 12084fi 12085rm -f conftest.err conftest.$ac_objext \ 12086 conftest$ac_exeext conftest.$ac_ext 12087 LDFLAGS="$save_LDFLAGS" 12088 else 12089 archive_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12090 archive_expsym_cmds_FC='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 12091 fi 12092 archive_cmds_need_lc_FC='no' 12093 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 12094 hardcode_libdir_separator_FC=: 12095 inherit_rpath_FC=yes 12096 link_all_deplibs_FC=yes 12097 ;; 12098 12099 netbsd*) 12100 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12101 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 12102 else 12103 archive_cmds_FC='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 12104 fi 12105 hardcode_libdir_flag_spec_FC='-R$libdir' 12106 hardcode_direct_FC=yes 12107 hardcode_shlibpath_var_FC=no 12108 ;; 12109 12110 newsos6) 12111 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12112 hardcode_direct_FC=yes 12113 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 12114 hardcode_libdir_separator_FC=: 12115 hardcode_shlibpath_var_FC=no 12116 ;; 12117 12118 *nto* | *qnx*) 12119 ;; 12120 12121 openbsd*) 12122 hardcode_direct_FC=yes 12123 hardcode_shlibpath_var_FC=no 12124 hardcode_direct_absolute_FC=yes 12125 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12126 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12127 archive_expsym_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 12128 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 12129 export_dynamic_flag_spec_FC='${wl}-E' 12130 else 12131 case $host_os in 12132 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 12133 archive_cmds_FC='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 12134 hardcode_libdir_flag_spec_FC='-R$libdir' 12135 ;; 12136 *) 12137 archive_cmds_FC='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 12138 hardcode_libdir_flag_spec_FC='${wl}-rpath,$libdir' 12139 ;; 12140 esac 12141 fi 12142 ;; 12143 12144 os2*) 12145 hardcode_libdir_flag_spec_FC='-L$libdir' 12146 hardcode_minus_L_FC=yes 12147 allow_undefined_flag_FC=unsupported 12148 archive_cmds_FC='$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' 12149 old_archive_from_new_cmds_FC='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 12150 ;; 12151 12152 osf3*) 12153 if test "$GCC" = yes; then 12154 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 12155 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12156 else 12157 allow_undefined_flag_FC=' -expect_unresolved \*' 12158 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12159 fi 12160 archive_cmds_need_lc_FC='no' 12161 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 12162 hardcode_libdir_separator_FC=: 12163 ;; 12164 12165 osf4* | osf5*) # as osf3* with the addition of -msym flag 12166 if test "$GCC" = yes; then 12167 allow_undefined_flag_FC=' ${wl}-expect_unresolved ${wl}\*' 12168 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && $ECHO "X${wl}-set_version ${wl}$verstring" | $Xsed` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 12169 hardcode_libdir_flag_spec_FC='${wl}-rpath ${wl}$libdir' 12170 else 12171 allow_undefined_flag_FC=' -expect_unresolved \*' 12172 archive_cmds_FC='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib' 12173 archive_expsym_cmds_FC='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~ 12174 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "X-set_version $verstring" | $Xsed` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 12175 12176 # Both c and cxx compiler support -rpath directly 12177 hardcode_libdir_flag_spec_FC='-rpath $libdir' 12178 fi 12179 archive_cmds_need_lc_FC='no' 12180 hardcode_libdir_separator_FC=: 12181 ;; 12182 12183 solaris*) 12184 no_undefined_flag_FC=' -z defs' 12185 if test "$GCC" = yes; then 12186 wlarc='${wl}' 12187 archive_cmds_FC='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 12188 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12189 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12190 else 12191 case `$CC -V 2>&1` in 12192 *"Compilers 5.0"*) 12193 wlarc='' 12194 archive_cmds_FC='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 12195 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12196 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 12197 ;; 12198 *) 12199 wlarc='${wl}' 12200 archive_cmds_FC='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 12201 archive_expsym_cmds_FC='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 12202 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 12203 ;; 12204 esac 12205 fi 12206 hardcode_libdir_flag_spec_FC='-R$libdir' 12207 hardcode_shlibpath_var_FC=no 12208 case $host_os in 12209 solaris2.[0-5] | solaris2.[0-5].*) ;; 12210 *) 12211 # The compiler driver will combine and reorder linker options, 12212 # but understands `-z linker_flag'. GCC discards it without `$wl', 12213 # but is careful enough not to reorder. 12214 # Supported since Solaris 2.6 (maybe 2.5.1?) 12215 if test "$GCC" = yes; then 12216 whole_archive_flag_spec_FC='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 12217 else 12218 whole_archive_flag_spec_FC='-z allextract$convenience -z defaultextract' 12219 fi 12220 ;; 12221 esac 12222 link_all_deplibs_FC=yes 12223 ;; 12224 12225 sunos4*) 12226 if test "x$host_vendor" = xsequent; then 12227 # Use $CC to link under sequent, because it throws in some extra .o 12228 # files that make .init and .fini sections work. 12229 archive_cmds_FC='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 12230 else 12231 archive_cmds_FC='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 12232 fi 12233 hardcode_libdir_flag_spec_FC='-L$libdir' 12234 hardcode_direct_FC=yes 12235 hardcode_minus_L_FC=yes 12236 hardcode_shlibpath_var_FC=no 12237 ;; 12238 12239 sysv4) 12240 case $host_vendor in 12241 sni) 12242 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12243 hardcode_direct_FC=yes # is this really true??? 12244 ;; 12245 siemens) 12246 ## LD is ld it makes a PLAMLIB 12247 ## CC just makes a GrossModule. 12248 archive_cmds_FC='$LD -G -o $lib $libobjs $deplibs $linker_flags' 12249 reload_cmds_FC='$CC -r -o $output$reload_objs' 12250 hardcode_direct_FC=no 12251 ;; 12252 motorola) 12253 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12254 hardcode_direct_FC=no #Motorola manual says yes, but my tests say they lie 12255 ;; 12256 esac 12257 runpath_var='LD_RUN_PATH' 12258 hardcode_shlibpath_var_FC=no 12259 ;; 12260 12261 sysv4.3*) 12262 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12263 hardcode_shlibpath_var_FC=no 12264 export_dynamic_flag_spec_FC='-Bexport' 12265 ;; 12266 12267 sysv4*MP*) 12268 if test -d /usr/nec; then 12269 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12270 hardcode_shlibpath_var_FC=no 12271 runpath_var=LD_RUN_PATH 12272 hardcode_runpath_var=yes 12273 ld_shlibs_FC=yes 12274 fi 12275 ;; 12276 12277 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 12278 no_undefined_flag_FC='${wl}-z,text' 12279 archive_cmds_need_lc_FC=no 12280 hardcode_shlibpath_var_FC=no 12281 runpath_var='LD_RUN_PATH' 12282 12283 if test "$GCC" = yes; then 12284 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12285 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12286 else 12287 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12288 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12289 fi 12290 ;; 12291 12292 sysv5* | sco3.2v5* | sco5v6*) 12293 # Note: We can NOT use -z defs as we might desire, because we do not 12294 # link with -lc, and that would cause any symbols used from libc to 12295 # always be unresolved, which means just about no library would 12296 # ever link correctly. If we're not using GNU ld we use -z text 12297 # though, which does catch some bad symbols but isn't as heavy-handed 12298 # as -z defs. 12299 no_undefined_flag_FC='${wl}-z,text' 12300 allow_undefined_flag_FC='${wl}-z,nodefs' 12301 archive_cmds_need_lc_FC=no 12302 hardcode_shlibpath_var_FC=no 12303 hardcode_libdir_flag_spec_FC='${wl}-R,$libdir' 12304 hardcode_libdir_separator_FC=':' 12305 link_all_deplibs_FC=yes 12306 export_dynamic_flag_spec_FC='${wl}-Bexport' 12307 runpath_var='LD_RUN_PATH' 12308 12309 if test "$GCC" = yes; then 12310 archive_cmds_FC='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12311 archive_expsym_cmds_FC='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12312 else 12313 archive_cmds_FC='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12314 archive_expsym_cmds_FC='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 12315 fi 12316 ;; 12317 12318 uts4*) 12319 archive_cmds_FC='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 12320 hardcode_libdir_flag_spec_FC='-L$libdir' 12321 hardcode_shlibpath_var_FC=no 12322 ;; 12323 12324 *) 12325 ld_shlibs_FC=no 12326 ;; 12327 esac 12328 12329 if test x$host_vendor = xsni; then 12330 case $host in 12331 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 12332 export_dynamic_flag_spec_FC='${wl}-Blargedynsym' 12333 ;; 12334 esac 12335 fi 12336 fi 12337 12338echo "$as_me:$LINENO: result: $ld_shlibs_FC" >&5 12339echo "${ECHO_T}$ld_shlibs_FC" >&6 12340test "$ld_shlibs_FC" = no && can_build_shared=no 12341 12342with_gnu_ld_FC=$with_gnu_ld 12343 12344 12345 12346 12347 12348 12349# 12350# Do we need to explicitly link libc? 12351# 12352case "x$archive_cmds_need_lc_FC" in 12353x|xyes) 12354 # Assume -lc should be added 12355 archive_cmds_need_lc_FC=yes 12356 12357 if test "$enable_shared" = yes && test "$GCC" = yes; then 12358 case $archive_cmds_FC in 12359 *'~'*) 12360 # FIXME: we may have to deal with multi-command sequences. 12361 ;; 12362 '$CC '*) 12363 # Test whether the compiler implicitly links with -lc since on some 12364 # systems, -lgcc has to come before -lc. If gcc already passes -lc 12365 # to ld, don't add -lc before -lgcc. 12366 echo "$as_me:$LINENO: checking whether -lc should be explicitly linked in" >&5 12367echo $ECHO_N "checking whether -lc should be explicitly linked in... $ECHO_C" >&6 12368 $RM conftest* 12369 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 12370 12371 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 12372 (eval $ac_compile) 2>&5 12373 ac_status=$? 12374 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12375 (exit $ac_status); } 2>conftest.err; then 12376 soname=conftest 12377 lib=conftest 12378 libobjs=conftest.$ac_objext 12379 deplibs= 12380 wl=$lt_prog_compiler_wl_FC 12381 pic_flag=$lt_prog_compiler_pic_FC 12382 compiler_flags=-v 12383 linker_flags=-v 12384 verstring= 12385 output_objdir=. 12386 libname=conftest 12387 lt_save_allow_undefined_flag=$allow_undefined_flag_FC 12388 allow_undefined_flag_FC= 12389 if { (eval echo "$as_me:$LINENO: \"$archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\"") >&5 12390 (eval $archive_cmds_FC 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 12391 ac_status=$? 12392 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12393 (exit $ac_status); } 12394 then 12395 archive_cmds_need_lc_FC=no 12396 else 12397 archive_cmds_need_lc_FC=yes 12398 fi 12399 allow_undefined_flag_FC=$lt_save_allow_undefined_flag 12400 else 12401 cat conftest.err 1>&5 12402 fi 12403 $RM conftest* 12404 echo "$as_me:$LINENO: result: $archive_cmds_need_lc_FC" >&5 12405echo "${ECHO_T}$archive_cmds_need_lc_FC" >&6 12406 ;; 12407 esac 12408 fi 12409 ;; 12410esac 12411 12412 12413 12414 12415 12416 12417 12418 12419 12420 12421 12422 12423 12424 12425 12426 12427 12428 12429 12430 12431 12432 12433 12434 12435 12436 12437 12438 12439 12440 12441 12442 12443 12444 12445 12446 12447 12448 12449 12450 12451 12452 12453 12454 12455 12456 12457 12458 12459 12460 12461 12462 12463 12464 12465 12466 12467 12468 12469 12470 12471 12472 12473 12474 12475 echo "$as_me:$LINENO: checking dynamic linker characteristics" >&5 12476echo $ECHO_N "checking dynamic linker characteristics... $ECHO_C" >&6 12477withGCC=$ac_cv_fc_compiler_gnu 12478library_names_spec= 12479libname_spec='lib$name' 12480soname_spec= 12481shrext_cmds=".so" 12482postinstall_cmds= 12483postuninstall_cmds= 12484finish_cmds= 12485finish_eval= 12486shlibpath_var= 12487shlibpath_overrides_runpath=unknown 12488version_type=none 12489dynamic_linker="$host_os ld.so" 12490sys_lib_dlsearch_path_spec="/lib /usr/lib" 12491need_lib_prefix=unknown 12492hardcode_into_libs=no 12493 12494# when you set need_version to no, make sure it does not cause -set_version 12495# flags to be left without arguments 12496need_version=unknown 12497 12498case $host_os in 12499aix3*) 12500 version_type=linux 12501 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 12502 shlibpath_var=LIBPATH 12503 12504 # AIX 3 has no versioning support, so we append a major version to the name. 12505 soname_spec='${libname}${release}${shared_ext}$major' 12506 ;; 12507 12508aix[4-9]*) 12509 version_type=linux 12510 need_lib_prefix=no 12511 need_version=no 12512 hardcode_into_libs=yes 12513 if test "$host_cpu" = ia64; then 12514 # AIX 5 supports IA64 12515 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 12516 shlibpath_var=LD_LIBRARY_PATH 12517 else 12518 # With GCC up to 2.95.x, collect2 would create an import file 12519 # for dependence libraries. The import file would start with 12520 # the line `#! .'. This would cause the generated library to 12521 # depend on `.', always an invalid library. This was fixed in 12522 # development snapshots of GCC prior to 3.0. 12523 case $host_os in 12524 aix4 | aix4.[01] | aix4.[01].*) 12525 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12526 echo ' yes ' 12527 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 12528 : 12529 else 12530 can_build_shared=no 12531 fi 12532 ;; 12533 esac 12534 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 12535 # soname into executable. Probably we can add versioning support to 12536 # collect2, so additional links can be useful in future. 12537 if test "$aix_use_runtimelinking" = yes; then 12538 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12539 # instead of lib<name>.a to let people know that these are not 12540 # typical AIX shared libraries. 12541 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12542 else 12543 # We preserve .a as extension for shared libraries through AIX4.2 12544 # and later when we are not doing run time linking. 12545 library_names_spec='${libname}${release}.a $libname.a' 12546 soname_spec='${libname}${release}${shared_ext}$major' 12547 fi 12548 shlibpath_var=LIBPATH 12549 fi 12550 ;; 12551 12552amigaos*) 12553 if test "$host_cpu" = m68k; then 12554 library_names_spec='$libname.ixlibrary $libname.a' 12555 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12556 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' 12557 else 12558 dynamic_linker=no 12559 fi 12560 ;; 12561 12562beos*) 12563 library_names_spec='${libname}${shared_ext}' 12564 dynamic_linker="$host_os ld.so" 12565 shlibpath_var=LIBRARY_PATH 12566 ;; 12567 12568bsdi[45]*) 12569 version_type=linux 12570 need_version=no 12571 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12572 soname_spec='${libname}${release}${shared_ext}$major' 12573 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12574 shlibpath_var=LD_LIBRARY_PATH 12575 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12576 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12577 # the default ld.so.conf also contains /usr/contrib/lib and 12578 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12579 # libtool to hard-code these into programs 12580 ;; 12581 12582cygwin* | mingw* | pw32*) 12583 version_type=windows 12584 shrext_cmds=".dll" 12585 need_version=no 12586 need_lib_prefix=no 12587 12588 case $withGCC,$host_os in 12589 yes,cygwin* | yes,mingw* | yes,pw32*) 12590 library_names_spec='$libname.dll.a' 12591 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12592 postinstall_cmds='base_file=`basename \${file}`~ 12593 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 12594 dldir=$destdir/`dirname \$dlpath`~ 12595 test -d \$dldir || mkdir -p \$dldir~ 12596 $install_prog $dir/$dlname \$dldir/$dlname~ 12597 chmod a+x \$dldir/$dlname~ 12598 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12599 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12600 fi' 12601 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12602 dlpath=$dir/\$dldll~ 12603 $RM \$dlpath' 12604 shlibpath_overrides_runpath=yes 12605 12606 case $host_os in 12607 cygwin*) 12608 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12609 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12610 sys_lib_search_path_spec="/usr/lib /lib/w32api /lib /usr/local/lib" 12611 ;; 12612 mingw*) 12613 # MinGW DLLs use traditional 'lib' prefix 12614 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12615 sys_lib_search_path_spec=`$CC -print-search-dirs | $GREP "^libraries:" | $SED -e "s/^libraries://" -e "s,=/,/,g"` 12616 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12617 # It is most probably a Windows format PATH printed by 12618 # mingw gcc, but we are running on Cygwin. Gcc prints its search 12619 # path with ; separators, and with drive letters. We can handle the 12620 # drive letters (cygwin fileutils understands them), so leave them, 12621 # especially as we might pass files found there to a mingw objdump, 12622 # which wouldn't understand a cygwinified path. Ahh. 12623 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12624 else 12625 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12626 fi 12627 ;; 12628 pw32*) 12629 # pw32 DLLs use 'pw' prefix rather than 'lib' 12630 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 12631 ;; 12632 esac 12633 ;; 12634 12635 *) 12636 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 12637 ;; 12638 esac 12639 dynamic_linker='Win32 ld.exe' 12640 # FIXME: first we should search . and the directory the executable is in 12641 shlibpath_var=PATH 12642 ;; 12643 12644darwin* | rhapsody*) 12645 dynamic_linker="$host_os dyld" 12646 version_type=darwin 12647 need_lib_prefix=no 12648 need_version=no 12649 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 12650 soname_spec='${libname}${release}${major}$shared_ext' 12651 shlibpath_overrides_runpath=yes 12652 shlibpath_var=DYLD_LIBRARY_PATH 12653 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12654 12655 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12656 ;; 12657 12658dgux*) 12659 version_type=linux 12660 need_lib_prefix=no 12661 need_version=no 12662 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 12663 soname_spec='${libname}${release}${shared_ext}$major' 12664 shlibpath_var=LD_LIBRARY_PATH 12665 ;; 12666 12667freebsd1*) 12668 dynamic_linker=no 12669 ;; 12670 12671freebsd* | dragonfly*) 12672 # DragonFly does not have aout. When/if they implement a new 12673 # versioning mechanism, adjust this. 12674 if test -x /usr/bin/objformat; then 12675 objformat=`/usr/bin/objformat` 12676 else 12677 case $host_os in 12678 freebsd[123]*) objformat=aout ;; 12679 *) objformat=elf ;; 12680 esac 12681 fi 12682 version_type=freebsd-$objformat 12683 case $version_type in 12684 freebsd-elf*) 12685 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 12686 need_version=no 12687 need_lib_prefix=no 12688 ;; 12689 freebsd-*) 12690 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 12691 need_version=yes 12692 ;; 12693 esac 12694 shlibpath_var=LD_LIBRARY_PATH 12695 case $host_os in 12696 freebsd2*) 12697 shlibpath_overrides_runpath=yes 12698 ;; 12699 freebsd3.[01]* | freebsdelf3.[01]*) 12700 shlibpath_overrides_runpath=yes 12701 hardcode_into_libs=yes 12702 ;; 12703 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12704 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12705 shlibpath_overrides_runpath=no 12706 hardcode_into_libs=yes 12707 ;; 12708 *) # from 4.6 on, and DragonFly 12709 shlibpath_overrides_runpath=yes 12710 hardcode_into_libs=yes 12711 ;; 12712 esac 12713 ;; 12714 12715gnu*) 12716 version_type=linux 12717 need_lib_prefix=no 12718 need_version=no 12719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 12720 soname_spec='${libname}${release}${shared_ext}$major' 12721 shlibpath_var=LD_LIBRARY_PATH 12722 hardcode_into_libs=yes 12723 ;; 12724 12725hpux9* | hpux10* | hpux11*) 12726 # Give a soname corresponding to the major version so that dld.sl refuses to 12727 # link against other versions. 12728 version_type=sunos 12729 need_lib_prefix=no 12730 need_version=no 12731 case $host_cpu in 12732 ia64*) 12733 shrext_cmds='.so' 12734 hardcode_into_libs=yes 12735 dynamic_linker="$host_os dld.so" 12736 shlibpath_var=LD_LIBRARY_PATH 12737 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12738 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12739 soname_spec='${libname}${release}${shared_ext}$major' 12740 if test "X$HPUX_IA64_MODE" = X32; then 12741 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12742 else 12743 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12744 fi 12745 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12746 ;; 12747 hppa*64*) 12748 shrext_cmds='.sl' 12749 hardcode_into_libs=yes 12750 dynamic_linker="$host_os dld.sl" 12751 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12752 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12753 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12754 soname_spec='${libname}${release}${shared_ext}$major' 12755 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12756 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12757 ;; 12758 *) 12759 shrext_cmds='.sl' 12760 dynamic_linker="$host_os dld.sl" 12761 shlibpath_var=SHLIB_PATH 12762 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12763 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12764 soname_spec='${libname}${release}${shared_ext}$major' 12765 ;; 12766 esac 12767 # HP-UX runs *really* slowly unless shared libraries are mode 555. 12768 postinstall_cmds='chmod 555 $lib' 12769 ;; 12770 12771interix[3-9]*) 12772 version_type=linux 12773 need_lib_prefix=no 12774 need_version=no 12775 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12776 soname_spec='${libname}${release}${shared_ext}$major' 12777 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12778 shlibpath_var=LD_LIBRARY_PATH 12779 shlibpath_overrides_runpath=no 12780 hardcode_into_libs=yes 12781 ;; 12782 12783irix5* | irix6* | nonstopux*) 12784 case $host_os in 12785 nonstopux*) version_type=nonstopux ;; 12786 *) 12787 if test "$lt_cv_prog_gnu_ld" = yes; then 12788 version_type=linux 12789 else 12790 version_type=irix 12791 fi ;; 12792 esac 12793 need_lib_prefix=no 12794 need_version=no 12795 soname_spec='${libname}${release}${shared_ext}$major' 12796 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 12797 case $host_os in 12798 irix5* | nonstopux*) 12799 libsuff= shlibsuff= 12800 ;; 12801 *) 12802 case $LD in # libtool.m4 will add one of these switches to LD 12803 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12804 libsuff= shlibsuff= libmagic=32-bit;; 12805 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12806 libsuff=32 shlibsuff=N32 libmagic=N32;; 12807 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12808 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12809 *) libsuff= shlibsuff= libmagic=never-match;; 12810 esac 12811 ;; 12812 esac 12813 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12814 shlibpath_overrides_runpath=no 12815 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 12816 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 12817 hardcode_into_libs=yes 12818 ;; 12819 12820# No shared lib support for Linux oldld, aout, or coff. 12821linux*oldld* | linux*aout* | linux*coff*) 12822 dynamic_linker=no 12823 ;; 12824 12825# This must be Linux ELF. 12826linux* | k*bsd*-gnu) 12827 version_type=linux 12828 need_lib_prefix=no 12829 need_version=no 12830 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12831 soname_spec='${libname}${release}${shared_ext}$major' 12832 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12833 shlibpath_var=LD_LIBRARY_PATH 12834 shlibpath_overrides_runpath=no 12835 # Some binutils ld are patched to set DT_RUNPATH 12836 save_LDFLAGS=$LDFLAGS 12837 save_libdir=$libdir 12838 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_FC\"; \ 12839 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_FC\"" 12840 cat >conftest.$ac_ext <<_ACEOF 12841 program main 12842 12843 end 12844_ACEOF 12845rm -f conftest.$ac_objext conftest$ac_exeext 12846if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 12847 (eval $ac_link) 2>conftest.er1 12848 ac_status=$? 12849 grep -v '^ *+' conftest.er1 >conftest.err 12850 rm -f conftest.er1 12851 cat conftest.err >&5 12852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12853 (exit $ac_status); } && 12854 { ac_try='test -z "$ac_fc_werror_flag" 12855 || test ! -s conftest.err' 12856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12857 (eval $ac_try) 2>&5 12858 ac_status=$? 12859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12860 (exit $ac_status); }; } && 12861 { ac_try='test -s conftest$ac_exeext' 12862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 12863 (eval $ac_try) 2>&5 12864 ac_status=$? 12865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 12866 (exit $ac_status); }; }; then 12867 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir"; then 12868 shlibpath_overrides_runpath=yes 12869fi 12870 12871else 12872 echo "$as_me: failed program was:" >&5 12873sed 's/^/| /' conftest.$ac_ext >&5 12874 12875fi 12876rm -f conftest.err conftest.$ac_objext \ 12877 conftest$ac_exeext conftest.$ac_ext 12878 LDFLAGS=$save_LDFLAGS 12879 libdir=$save_libdir 12880 12881 # This implies no fast_install, which is unacceptable. 12882 # Some rework will be needed to allow for fast_install 12883 # before this can be enabled. 12884 hardcode_into_libs=yes 12885 12886 # Append ld.so.conf contents to the search path 12887 if test -f /etc/ld.so.conf; then 12888 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;/^$/d' | tr '\n' ' '` 12889 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12890 fi 12891 12892 # We used to test for /lib/ld.so.1 and disable shared libraries on 12893 # powerpc, because MkLinux only supported shared libraries with the 12894 # GNU dynamic linker. Since this was broken with cross compilers, 12895 # most powerpc-linux boxes support dynamic linking these days and 12896 # people can always --disable-shared, the test was removed, and we 12897 # assume the GNU/Linux dynamic linker is in use. 12898 dynamic_linker='GNU/Linux ld.so' 12899 ;; 12900 12901netbsd*) 12902 version_type=sunos 12903 need_lib_prefix=no 12904 need_version=no 12905 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12907 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12908 dynamic_linker='NetBSD (a.out) ld.so' 12909 else 12910 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 12911 soname_spec='${libname}${release}${shared_ext}$major' 12912 dynamic_linker='NetBSD ld.elf_so' 12913 fi 12914 shlibpath_var=LD_LIBRARY_PATH 12915 shlibpath_overrides_runpath=yes 12916 hardcode_into_libs=yes 12917 ;; 12918 12919newsos6) 12920 version_type=linux 12921 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12922 shlibpath_var=LD_LIBRARY_PATH 12923 shlibpath_overrides_runpath=yes 12924 ;; 12925 12926*nto* | *qnx*) 12927 version_type=qnx 12928 need_lib_prefix=no 12929 need_version=no 12930 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12931 soname_spec='${libname}${release}${shared_ext}$major' 12932 shlibpath_var=LD_LIBRARY_PATH 12933 shlibpath_overrides_runpath=no 12934 hardcode_into_libs=yes 12935 dynamic_linker='ldqnx.so' 12936 ;; 12937 12938openbsd*) 12939 version_type=sunos 12940 sys_lib_dlsearch_path_spec="/usr/lib" 12941 need_lib_prefix=no 12942 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 12943 case $host_os in 12944 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 12945 *) need_version=no ;; 12946 esac 12947 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 12948 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12949 shlibpath_var=LD_LIBRARY_PATH 12950 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 12951 case $host_os in 12952 openbsd2.[89] | openbsd2.[89].*) 12953 shlibpath_overrides_runpath=no 12954 ;; 12955 *) 12956 shlibpath_overrides_runpath=yes 12957 ;; 12958 esac 12959 else 12960 shlibpath_overrides_runpath=yes 12961 fi 12962 ;; 12963 12964os2*) 12965 libname_spec='$name' 12966 shrext_cmds=".dll" 12967 need_lib_prefix=no 12968 library_names_spec='$libname${shared_ext} $libname.a' 12969 dynamic_linker='OS/2 ld.exe' 12970 shlibpath_var=LIBPATH 12971 ;; 12972 12973osf3* | osf4* | osf5*) 12974 version_type=osf 12975 need_lib_prefix=no 12976 need_version=no 12977 soname_spec='${libname}${release}${shared_ext}$major' 12978 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12979 shlibpath_var=LD_LIBRARY_PATH 12980 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12981 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 12982 ;; 12983 12984rdos*) 12985 dynamic_linker=no 12986 ;; 12987 12988solaris*) 12989 version_type=linux 12990 need_lib_prefix=no 12991 need_version=no 12992 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 12993 soname_spec='${libname}${release}${shared_ext}$major' 12994 shlibpath_var=LD_LIBRARY_PATH 12995 shlibpath_overrides_runpath=yes 12996 hardcode_into_libs=yes 12997 # ldd complains unless libraries are executable 12998 postinstall_cmds='chmod +x $lib' 12999 ;; 13000 13001sunos4*) 13002 version_type=sunos 13003 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 13004 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 13005 shlibpath_var=LD_LIBRARY_PATH 13006 shlibpath_overrides_runpath=yes 13007 if test "$with_gnu_ld" = yes; then 13008 need_lib_prefix=no 13009 fi 13010 need_version=yes 13011 ;; 13012 13013sysv4 | sysv4.3*) 13014 version_type=linux 13015 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13016 soname_spec='${libname}${release}${shared_ext}$major' 13017 shlibpath_var=LD_LIBRARY_PATH 13018 case $host_vendor in 13019 sni) 13020 shlibpath_overrides_runpath=no 13021 need_lib_prefix=no 13022 runpath_var=LD_RUN_PATH 13023 ;; 13024 siemens) 13025 need_lib_prefix=no 13026 ;; 13027 motorola) 13028 need_lib_prefix=no 13029 need_version=no 13030 shlibpath_overrides_runpath=no 13031 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 13032 ;; 13033 esac 13034 ;; 13035 13036sysv4*MP*) 13037 if test -d /usr/nec ;then 13038 version_type=linux 13039 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 13040 soname_spec='$libname${shared_ext}.$major' 13041 shlibpath_var=LD_LIBRARY_PATH 13042 fi 13043 ;; 13044 13045sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 13046 version_type=freebsd-elf 13047 need_lib_prefix=no 13048 need_version=no 13049 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 13050 soname_spec='${libname}${release}${shared_ext}$major' 13051 shlibpath_var=LD_LIBRARY_PATH 13052 shlibpath_overrides_runpath=yes 13053 hardcode_into_libs=yes 13054 if test "$with_gnu_ld" = yes; then 13055 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 13056 else 13057 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 13058 case $host_os in 13059 sco3.2v5*) 13060 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 13061 ;; 13062 esac 13063 fi 13064 sys_lib_dlsearch_path_spec='/usr/lib' 13065 ;; 13066 13067tpf*) 13068 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 13069 version_type=linux 13070 need_lib_prefix=no 13071 need_version=no 13072 library_name_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13073 shlibpath_var=LD_LIBRARY_PATH 13074 shlibpath_overrides_runpath=no 13075 hardcode_into_libs=yes 13076 ;; 13077 13078uts4*) 13079 version_type=linux 13080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 13081 soname_spec='${libname}${release}${shared_ext}$major' 13082 shlibpath_var=LD_LIBRARY_PATH 13083 ;; 13084 13085*) 13086 dynamic_linker=no 13087 ;; 13088esac 13089echo "$as_me:$LINENO: result: $dynamic_linker" >&5 13090echo "${ECHO_T}$dynamic_linker" >&6 13091test "$dynamic_linker" = no && can_build_shared=no 13092 13093variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 13094if test "$GCC" = yes; then 13095 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 13096fi 13097 13098 13099 13100 13101 13102 13103 13104 13105 13106 13107 13108 13109 13110 13111 13112 13113 13114 13115 13116 13117 13118 13119 13120 13121 13122 13123 13124 13125 13126 13127 13128 13129 13130 13131 13132 13133 echo "$as_me:$LINENO: checking how to hardcode library paths into programs" >&5 13134echo $ECHO_N "checking how to hardcode library paths into programs... $ECHO_C" >&6 13135hardcode_action_FC= 13136if test -n "$hardcode_libdir_flag_spec_FC" || 13137 test -n "$runpath_var_FC" || 13138 test "X$hardcode_automatic_FC" = "Xyes" ; then 13139 13140 # We can hardcode non-existent directories. 13141 if test "$hardcode_direct_FC" != no && 13142 # If the only mechanism to avoid hardcoding is shlibpath_var, we 13143 # have to relink, otherwise we might link with an installed library 13144 # when we should be linking with a yet-to-be-installed one 13145 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, FC)" != no && 13146 test "$hardcode_minus_L_FC" != no; then 13147 # Linking always hardcodes the temporary library directory. 13148 hardcode_action_FC=relink 13149 else 13150 # We can link without hardcoding, and we can hardcode nonexisting dirs. 13151 hardcode_action_FC=immediate 13152 fi 13153else 13154 # We cannot hardcode anything, or else we can only hardcode existing 13155 # directories. 13156 hardcode_action_FC=unsupported 13157fi 13158echo "$as_me:$LINENO: result: $hardcode_action_FC" >&5 13159echo "${ECHO_T}$hardcode_action_FC" >&6 13160 13161if test "$hardcode_action_FC" = relink || 13162 test "$inherit_rpath_FC" = yes; then 13163 # Fast installation is not supported 13164 enable_fast_install=no 13165elif test "$shlibpath_overrides_runpath" = yes || 13166 test "$enable_shared" = no; then 13167 # Fast installation is not necessary 13168 enable_fast_install=needless 13169fi 13170 13171 13172 13173 13174 13175 13176 13177 fi # test -n "$compiler" 13178 13179 CC="$lt_save_CC" 13180fi # test "$_lt_disable_FC" != yes 13181 13182ac_ext=c 13183ac_cpp='$CPP $CPPFLAGS' 13184ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13185ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13186ac_compiler_gnu=$ac_cv_c_compiler_gnu 13187 13188 13189FCFLAGS="$FCFLAGS -Wall" 13190 13191# For libtool versioning info, format is CURRENT:REVISION:AGE 13192libtool_VERSION=1:0:0 13193 13194 13195# Check header files. 13196echo "$as_me:$LINENO: checking for ANSI C header files" >&5 13197echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 13198if test "${ac_cv_header_stdc+set}" = set; then 13199 echo $ECHO_N "(cached) $ECHO_C" >&6 13200else 13201 cat >conftest.$ac_ext <<_ACEOF 13202/* confdefs.h. */ 13203_ACEOF 13204cat confdefs.h >>conftest.$ac_ext 13205cat >>conftest.$ac_ext <<_ACEOF 13206/* end confdefs.h. */ 13207#include <stdlib.h> 13208#include <stdarg.h> 13209#include <string.h> 13210#include <float.h> 13211 13212int 13213main () 13214{ 13215 13216 ; 13217 return 0; 13218} 13219_ACEOF 13220rm -f conftest.$ac_objext 13221if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13222 (eval $ac_compile) 2>conftest.er1 13223 ac_status=$? 13224 grep -v '^ *+' conftest.er1 >conftest.err 13225 rm -f conftest.er1 13226 cat conftest.err >&5 13227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13228 (exit $ac_status); } && 13229 { ac_try='test -z "$ac_c_werror_flag" 13230 || test ! -s conftest.err' 13231 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13232 (eval $ac_try) 2>&5 13233 ac_status=$? 13234 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13235 (exit $ac_status); }; } && 13236 { ac_try='test -s conftest.$ac_objext' 13237 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13238 (eval $ac_try) 2>&5 13239 ac_status=$? 13240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13241 (exit $ac_status); }; }; then 13242 ac_cv_header_stdc=yes 13243else 13244 echo "$as_me: failed program was:" >&5 13245sed 's/^/| /' conftest.$ac_ext >&5 13246 13247ac_cv_header_stdc=no 13248fi 13249rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13250 13251if test $ac_cv_header_stdc = yes; then 13252 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 13253 cat >conftest.$ac_ext <<_ACEOF 13254/* confdefs.h. */ 13255_ACEOF 13256cat confdefs.h >>conftest.$ac_ext 13257cat >>conftest.$ac_ext <<_ACEOF 13258/* end confdefs.h. */ 13259#include <string.h> 13260 13261_ACEOF 13262if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13263 $EGREP "memchr" >/dev/null 2>&1; then 13264 : 13265else 13266 ac_cv_header_stdc=no 13267fi 13268rm -f conftest* 13269 13270fi 13271 13272if test $ac_cv_header_stdc = yes; then 13273 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 13274 cat >conftest.$ac_ext <<_ACEOF 13275/* confdefs.h. */ 13276_ACEOF 13277cat confdefs.h >>conftest.$ac_ext 13278cat >>conftest.$ac_ext <<_ACEOF 13279/* end confdefs.h. */ 13280#include <stdlib.h> 13281 13282_ACEOF 13283if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13284 $EGREP "free" >/dev/null 2>&1; then 13285 : 13286else 13287 ac_cv_header_stdc=no 13288fi 13289rm -f conftest* 13290 13291fi 13292 13293if test $ac_cv_header_stdc = yes; then 13294 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 13295 if test "$cross_compiling" = yes; then 13296 : 13297else 13298 cat >conftest.$ac_ext <<_ACEOF 13299/* confdefs.h. */ 13300_ACEOF 13301cat confdefs.h >>conftest.$ac_ext 13302cat >>conftest.$ac_ext <<_ACEOF 13303/* end confdefs.h. */ 13304#include <ctype.h> 13305#if ((' ' & 0x0FF) == 0x020) 13306# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 13307# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 13308#else 13309# define ISLOWER(c) \ 13310 (('a' <= (c) && (c) <= 'i') \ 13311 || ('j' <= (c) && (c) <= 'r') \ 13312 || ('s' <= (c) && (c) <= 'z')) 13313# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 13314#endif 13315 13316#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 13317int 13318main () 13319{ 13320 int i; 13321 for (i = 0; i < 256; i++) 13322 if (XOR (islower (i), ISLOWER (i)) 13323 || toupper (i) != TOUPPER (i)) 13324 exit(2); 13325 exit (0); 13326} 13327_ACEOF 13328rm -f conftest$ac_exeext 13329if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 13330 (eval $ac_link) 2>&5 13331 ac_status=$? 13332 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13333 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 13334 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13335 (eval $ac_try) 2>&5 13336 ac_status=$? 13337 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13338 (exit $ac_status); }; }; then 13339 : 13340else 13341 echo "$as_me: program exited with status $ac_status" >&5 13342echo "$as_me: failed program was:" >&5 13343sed 's/^/| /' conftest.$ac_ext >&5 13344 13345( exit $ac_status ) 13346ac_cv_header_stdc=no 13347fi 13348rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 13349fi 13350fi 13351fi 13352echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 13353echo "${ECHO_T}$ac_cv_header_stdc" >&6 13354if test $ac_cv_header_stdc = yes; then 13355 13356cat >>confdefs.h <<\_ACEOF 13357#define STDC_HEADERS 1 13358_ACEOF 13359 13360fi 13361 13362echo "$as_me:$LINENO: checking whether time.h and sys/time.h may both be included" >&5 13363echo $ECHO_N "checking whether time.h and sys/time.h may both be included... $ECHO_C" >&6 13364if test "${ac_cv_header_time+set}" = set; then 13365 echo $ECHO_N "(cached) $ECHO_C" >&6 13366else 13367 cat >conftest.$ac_ext <<_ACEOF 13368/* confdefs.h. */ 13369_ACEOF 13370cat confdefs.h >>conftest.$ac_ext 13371cat >>conftest.$ac_ext <<_ACEOF 13372/* end confdefs.h. */ 13373#include <sys/types.h> 13374#include <sys/time.h> 13375#include <time.h> 13376 13377int 13378main () 13379{ 13380if ((struct tm *) 0) 13381return 0; 13382 ; 13383 return 0; 13384} 13385_ACEOF 13386rm -f conftest.$ac_objext 13387if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13388 (eval $ac_compile) 2>conftest.er1 13389 ac_status=$? 13390 grep -v '^ *+' conftest.er1 >conftest.err 13391 rm -f conftest.er1 13392 cat conftest.err >&5 13393 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13394 (exit $ac_status); } && 13395 { ac_try='test -z "$ac_c_werror_flag" 13396 || test ! -s conftest.err' 13397 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13398 (eval $ac_try) 2>&5 13399 ac_status=$? 13400 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13401 (exit $ac_status); }; } && 13402 { ac_try='test -s conftest.$ac_objext' 13403 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13404 (eval $ac_try) 2>&5 13405 ac_status=$? 13406 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13407 (exit $ac_status); }; }; then 13408 ac_cv_header_time=yes 13409else 13410 echo "$as_me: failed program was:" >&5 13411sed 's/^/| /' conftest.$ac_ext >&5 13412 13413ac_cv_header_time=no 13414fi 13415rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13416fi 13417echo "$as_me:$LINENO: result: $ac_cv_header_time" >&5 13418echo "${ECHO_T}$ac_cv_header_time" >&6 13419if test $ac_cv_header_time = yes; then 13420 13421cat >>confdefs.h <<\_ACEOF 13422#define TIME_WITH_SYS_TIME 1 13423_ACEOF 13424 13425fi 13426 13427 13428 13429 13430 13431for ac_header in unistd.h semaphore.h sys/loadavg.h sys/sysctl.h sys/time.h 13432do 13433as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` 13434if eval "test \"\${$as_ac_Header+set}\" = set"; then 13435 echo "$as_me:$LINENO: checking for $ac_header" >&5 13436echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13437if eval "test \"\${$as_ac_Header+set}\" = set"; then 13438 echo $ECHO_N "(cached) $ECHO_C" >&6 13439fi 13440echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13441echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13442else 13443 # Is the header compilable? 13444echo "$as_me:$LINENO: checking $ac_header usability" >&5 13445echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 13446cat >conftest.$ac_ext <<_ACEOF 13447/* confdefs.h. */ 13448_ACEOF 13449cat confdefs.h >>conftest.$ac_ext 13450cat >>conftest.$ac_ext <<_ACEOF 13451/* end confdefs.h. */ 13452$ac_includes_default 13453#include <$ac_header> 13454_ACEOF 13455rm -f conftest.$ac_objext 13456if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13457 (eval $ac_compile) 2>conftest.er1 13458 ac_status=$? 13459 grep -v '^ *+' conftest.er1 >conftest.err 13460 rm -f conftest.er1 13461 cat conftest.err >&5 13462 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13463 (exit $ac_status); } && 13464 { ac_try='test -z "$ac_c_werror_flag" 13465 || test ! -s conftest.err' 13466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13467 (eval $ac_try) 2>&5 13468 ac_status=$? 13469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13470 (exit $ac_status); }; } && 13471 { ac_try='test -s conftest.$ac_objext' 13472 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13473 (eval $ac_try) 2>&5 13474 ac_status=$? 13475 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13476 (exit $ac_status); }; }; then 13477 ac_header_compiler=yes 13478else 13479 echo "$as_me: failed program was:" >&5 13480sed 's/^/| /' conftest.$ac_ext >&5 13481 13482ac_header_compiler=no 13483fi 13484rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13485echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 13486echo "${ECHO_T}$ac_header_compiler" >&6 13487 13488# Is the header present? 13489echo "$as_me:$LINENO: checking $ac_header presence" >&5 13490echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 13491cat >conftest.$ac_ext <<_ACEOF 13492/* confdefs.h. */ 13493_ACEOF 13494cat confdefs.h >>conftest.$ac_ext 13495cat >>conftest.$ac_ext <<_ACEOF 13496/* end confdefs.h. */ 13497#include <$ac_header> 13498_ACEOF 13499if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 13500 (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 13501 ac_status=$? 13502 grep -v '^ *+' conftest.er1 >conftest.err 13503 rm -f conftest.er1 13504 cat conftest.err >&5 13505 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13506 (exit $ac_status); } >/dev/null; then 13507 if test -s conftest.err; then 13508 ac_cpp_err=$ac_c_preproc_warn_flag 13509 ac_cpp_err=$ac_cpp_err$ac_c_werror_flag 13510 else 13511 ac_cpp_err= 13512 fi 13513else 13514 ac_cpp_err=yes 13515fi 13516if test -z "$ac_cpp_err"; then 13517 ac_header_preproc=yes 13518else 13519 echo "$as_me: failed program was:" >&5 13520sed 's/^/| /' conftest.$ac_ext >&5 13521 13522 ac_header_preproc=no 13523fi 13524rm -f conftest.err conftest.$ac_ext 13525echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 13526echo "${ECHO_T}$ac_header_preproc" >&6 13527 13528# So? What about this header? 13529case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in 13530 yes:no: ) 13531 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 13532echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} 13533 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 13534echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} 13535 ac_header_preproc=yes 13536 ;; 13537 no:yes:* ) 13538 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 13539echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} 13540 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 13541echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} 13542 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 13543echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} 13544 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 13545echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} 13546 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 13547echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} 13548 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 13549echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} 13550 ( 13551 cat <<\_ASBOX 13552## ----------------------------------------------------- ## 13553## Report this to the GNU OpenMP Runtime Library lists. ## 13554## ----------------------------------------------------- ## 13555_ASBOX 13556 ) | 13557 sed "s/^/$as_me: WARNING: /" >&2 13558 ;; 13559esac 13560echo "$as_me:$LINENO: checking for $ac_header" >&5 13561echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 13562if eval "test \"\${$as_ac_Header+set}\" = set"; then 13563 echo $ECHO_N "(cached) $ECHO_C" >&6 13564else 13565 eval "$as_ac_Header=\$ac_header_preproc" 13566fi 13567echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 13568echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 13569 13570fi 13571if test `eval echo '${'$as_ac_Header'}'` = yes; then 13572 cat >>confdefs.h <<_ACEOF 13573#define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 13574_ACEOF 13575 13576fi 13577 13578done 13579 13580 13581 13582 13583inttype_headers=`echo inttypes.h sys/inttypes.h | sed -e 's/,/ /g'` 13584 13585acx_cv_header_stdint=stddef.h 13586acx_cv_header_stdint_kind="(already complete)" 13587for i in stdint.h $inttype_headers; do 13588 unset ac_cv_type_uintptr_t 13589 unset ac_cv_type_uintmax_t 13590 unset ac_cv_type_int_least32_t 13591 unset ac_cv_type_int_fast32_t 13592 unset ac_cv_type_uint64_t 13593 echo $ECHO_N "looking for a compliant stdint.h in $i, $ECHO_C" >&6 13594 echo "$as_me:$LINENO: checking for uintmax_t" >&5 13595echo $ECHO_N "checking for uintmax_t... $ECHO_C" >&6 13596if test "${ac_cv_type_uintmax_t+set}" = set; then 13597 echo $ECHO_N "(cached) $ECHO_C" >&6 13598else 13599 cat >conftest.$ac_ext <<_ACEOF 13600/* confdefs.h. */ 13601_ACEOF 13602cat confdefs.h >>conftest.$ac_ext 13603cat >>conftest.$ac_ext <<_ACEOF 13604/* end confdefs.h. */ 13605#include <sys/types.h> 13606#include <$i> 13607 13608int 13609main () 13610{ 13611if ((uintmax_t *) 0) 13612 return 0; 13613if (sizeof (uintmax_t)) 13614 return 0; 13615 ; 13616 return 0; 13617} 13618_ACEOF 13619rm -f conftest.$ac_objext 13620if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13621 (eval $ac_compile) 2>conftest.er1 13622 ac_status=$? 13623 grep -v '^ *+' conftest.er1 >conftest.err 13624 rm -f conftest.er1 13625 cat conftest.err >&5 13626 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13627 (exit $ac_status); } && 13628 { ac_try='test -z "$ac_c_werror_flag" 13629 || test ! -s conftest.err' 13630 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13631 (eval $ac_try) 2>&5 13632 ac_status=$? 13633 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13634 (exit $ac_status); }; } && 13635 { ac_try='test -s conftest.$ac_objext' 13636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13637 (eval $ac_try) 2>&5 13638 ac_status=$? 13639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13640 (exit $ac_status); }; }; then 13641 ac_cv_type_uintmax_t=yes 13642else 13643 echo "$as_me: failed program was:" >&5 13644sed 's/^/| /' conftest.$ac_ext >&5 13645 13646ac_cv_type_uintmax_t=no 13647fi 13648rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13649fi 13650echo "$as_me:$LINENO: result: $ac_cv_type_uintmax_t" >&5 13651echo "${ECHO_T}$ac_cv_type_uintmax_t" >&6 13652if test $ac_cv_type_uintmax_t = yes; then 13653 acx_cv_header_stdint=$i 13654else 13655 continue 13656fi 13657 13658 echo "$as_me:$LINENO: checking for uintptr_t" >&5 13659echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 13660if test "${ac_cv_type_uintptr_t+set}" = set; then 13661 echo $ECHO_N "(cached) $ECHO_C" >&6 13662else 13663 cat >conftest.$ac_ext <<_ACEOF 13664/* confdefs.h. */ 13665_ACEOF 13666cat confdefs.h >>conftest.$ac_ext 13667cat >>conftest.$ac_ext <<_ACEOF 13668/* end confdefs.h. */ 13669#include <sys/types.h> 13670#include <$i> 13671 13672int 13673main () 13674{ 13675if ((uintptr_t *) 0) 13676 return 0; 13677if (sizeof (uintptr_t)) 13678 return 0; 13679 ; 13680 return 0; 13681} 13682_ACEOF 13683rm -f conftest.$ac_objext 13684if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13685 (eval $ac_compile) 2>conftest.er1 13686 ac_status=$? 13687 grep -v '^ *+' conftest.er1 >conftest.err 13688 rm -f conftest.er1 13689 cat conftest.err >&5 13690 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13691 (exit $ac_status); } && 13692 { ac_try='test -z "$ac_c_werror_flag" 13693 || test ! -s conftest.err' 13694 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13695 (eval $ac_try) 2>&5 13696 ac_status=$? 13697 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13698 (exit $ac_status); }; } && 13699 { ac_try='test -s conftest.$ac_objext' 13700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13701 (eval $ac_try) 2>&5 13702 ac_status=$? 13703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13704 (exit $ac_status); }; }; then 13705 ac_cv_type_uintptr_t=yes 13706else 13707 echo "$as_me: failed program was:" >&5 13708sed 's/^/| /' conftest.$ac_ext >&5 13709 13710ac_cv_type_uintptr_t=no 13711fi 13712rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13713fi 13714echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 13715echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 13716if test $ac_cv_type_uintptr_t = yes; then 13717 : 13718else 13719 acx_cv_header_stdint_kind="(mostly complete)" 13720fi 13721 13722 echo "$as_me:$LINENO: checking for int_least32_t" >&5 13723echo $ECHO_N "checking for int_least32_t... $ECHO_C" >&6 13724if test "${ac_cv_type_int_least32_t+set}" = set; then 13725 echo $ECHO_N "(cached) $ECHO_C" >&6 13726else 13727 cat >conftest.$ac_ext <<_ACEOF 13728/* confdefs.h. */ 13729_ACEOF 13730cat confdefs.h >>conftest.$ac_ext 13731cat >>conftest.$ac_ext <<_ACEOF 13732/* end confdefs.h. */ 13733#include <sys/types.h> 13734#include <$i> 13735 13736int 13737main () 13738{ 13739if ((int_least32_t *) 0) 13740 return 0; 13741if (sizeof (int_least32_t)) 13742 return 0; 13743 ; 13744 return 0; 13745} 13746_ACEOF 13747rm -f conftest.$ac_objext 13748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13749 (eval $ac_compile) 2>conftest.er1 13750 ac_status=$? 13751 grep -v '^ *+' conftest.er1 >conftest.err 13752 rm -f conftest.er1 13753 cat conftest.err >&5 13754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13755 (exit $ac_status); } && 13756 { ac_try='test -z "$ac_c_werror_flag" 13757 || test ! -s conftest.err' 13758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13759 (eval $ac_try) 2>&5 13760 ac_status=$? 13761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13762 (exit $ac_status); }; } && 13763 { ac_try='test -s conftest.$ac_objext' 13764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13765 (eval $ac_try) 2>&5 13766 ac_status=$? 13767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13768 (exit $ac_status); }; }; then 13769 ac_cv_type_int_least32_t=yes 13770else 13771 echo "$as_me: failed program was:" >&5 13772sed 's/^/| /' conftest.$ac_ext >&5 13773 13774ac_cv_type_int_least32_t=no 13775fi 13776rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13777fi 13778echo "$as_me:$LINENO: result: $ac_cv_type_int_least32_t" >&5 13779echo "${ECHO_T}$ac_cv_type_int_least32_t" >&6 13780if test $ac_cv_type_int_least32_t = yes; then 13781 : 13782else 13783 acx_cv_header_stdint_kind="(mostly complete)" 13784fi 13785 13786 echo "$as_me:$LINENO: checking for int_fast32_t" >&5 13787echo $ECHO_N "checking for int_fast32_t... $ECHO_C" >&6 13788if test "${ac_cv_type_int_fast32_t+set}" = set; then 13789 echo $ECHO_N "(cached) $ECHO_C" >&6 13790else 13791 cat >conftest.$ac_ext <<_ACEOF 13792/* confdefs.h. */ 13793_ACEOF 13794cat confdefs.h >>conftest.$ac_ext 13795cat >>conftest.$ac_ext <<_ACEOF 13796/* end confdefs.h. */ 13797#include <sys/types.h> 13798#include <$i> 13799 13800int 13801main () 13802{ 13803if ((int_fast32_t *) 0) 13804 return 0; 13805if (sizeof (int_fast32_t)) 13806 return 0; 13807 ; 13808 return 0; 13809} 13810_ACEOF 13811rm -f conftest.$ac_objext 13812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13813 (eval $ac_compile) 2>conftest.er1 13814 ac_status=$? 13815 grep -v '^ *+' conftest.er1 >conftest.err 13816 rm -f conftest.er1 13817 cat conftest.err >&5 13818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13819 (exit $ac_status); } && 13820 { ac_try='test -z "$ac_c_werror_flag" 13821 || test ! -s conftest.err' 13822 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13823 (eval $ac_try) 2>&5 13824 ac_status=$? 13825 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13826 (exit $ac_status); }; } && 13827 { ac_try='test -s conftest.$ac_objext' 13828 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13829 (eval $ac_try) 2>&5 13830 ac_status=$? 13831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13832 (exit $ac_status); }; }; then 13833 ac_cv_type_int_fast32_t=yes 13834else 13835 echo "$as_me: failed program was:" >&5 13836sed 's/^/| /' conftest.$ac_ext >&5 13837 13838ac_cv_type_int_fast32_t=no 13839fi 13840rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13841fi 13842echo "$as_me:$LINENO: result: $ac_cv_type_int_fast32_t" >&5 13843echo "${ECHO_T}$ac_cv_type_int_fast32_t" >&6 13844if test $ac_cv_type_int_fast32_t = yes; then 13845 : 13846else 13847 acx_cv_header_stdint_kind="(mostly complete)" 13848fi 13849 13850 echo "$as_me:$LINENO: checking for uint64_t" >&5 13851echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 13852if test "${ac_cv_type_uint64_t+set}" = set; then 13853 echo $ECHO_N "(cached) $ECHO_C" >&6 13854else 13855 cat >conftest.$ac_ext <<_ACEOF 13856/* confdefs.h. */ 13857_ACEOF 13858cat confdefs.h >>conftest.$ac_ext 13859cat >>conftest.$ac_ext <<_ACEOF 13860/* end confdefs.h. */ 13861#include <sys/types.h> 13862#include <$i> 13863 13864int 13865main () 13866{ 13867if ((uint64_t *) 0) 13868 return 0; 13869if (sizeof (uint64_t)) 13870 return 0; 13871 ; 13872 return 0; 13873} 13874_ACEOF 13875rm -f conftest.$ac_objext 13876if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13877 (eval $ac_compile) 2>conftest.er1 13878 ac_status=$? 13879 grep -v '^ *+' conftest.er1 >conftest.err 13880 rm -f conftest.er1 13881 cat conftest.err >&5 13882 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13883 (exit $ac_status); } && 13884 { ac_try='test -z "$ac_c_werror_flag" 13885 || test ! -s conftest.err' 13886 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13887 (eval $ac_try) 2>&5 13888 ac_status=$? 13889 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13890 (exit $ac_status); }; } && 13891 { ac_try='test -s conftest.$ac_objext' 13892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13893 (eval $ac_try) 2>&5 13894 ac_status=$? 13895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13896 (exit $ac_status); }; }; then 13897 ac_cv_type_uint64_t=yes 13898else 13899 echo "$as_me: failed program was:" >&5 13900sed 's/^/| /' conftest.$ac_ext >&5 13901 13902ac_cv_type_uint64_t=no 13903fi 13904rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13905fi 13906echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 13907echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 13908if test $ac_cv_type_uint64_t = yes; then 13909 : 13910else 13911 acx_cv_header_stdint_kind="(lacks uint64_t)" 13912fi 13913 13914 break 13915done 13916if test "$acx_cv_header_stdint" = stddef.h; then 13917 acx_cv_header_stdint_kind="(lacks uintmax_t)" 13918 for i in stdint.h $inttype_headers; do 13919 unset ac_cv_type_uintptr_t 13920 unset ac_cv_type_uint32_t 13921 unset ac_cv_type_uint64_t 13922 echo $ECHO_N "looking for an incomplete stdint.h in $i, $ECHO_C" >&6 13923 echo "$as_me:$LINENO: checking for uint32_t" >&5 13924echo $ECHO_N "checking for uint32_t... $ECHO_C" >&6 13925if test "${ac_cv_type_uint32_t+set}" = set; then 13926 echo $ECHO_N "(cached) $ECHO_C" >&6 13927else 13928 cat >conftest.$ac_ext <<_ACEOF 13929/* confdefs.h. */ 13930_ACEOF 13931cat confdefs.h >>conftest.$ac_ext 13932cat >>conftest.$ac_ext <<_ACEOF 13933/* end confdefs.h. */ 13934#include <sys/types.h> 13935#include <$i> 13936 13937int 13938main () 13939{ 13940if ((uint32_t *) 0) 13941 return 0; 13942if (sizeof (uint32_t)) 13943 return 0; 13944 ; 13945 return 0; 13946} 13947_ACEOF 13948rm -f conftest.$ac_objext 13949if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 13950 (eval $ac_compile) 2>conftest.er1 13951 ac_status=$? 13952 grep -v '^ *+' conftest.er1 >conftest.err 13953 rm -f conftest.er1 13954 cat conftest.err >&5 13955 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13956 (exit $ac_status); } && 13957 { ac_try='test -z "$ac_c_werror_flag" 13958 || test ! -s conftest.err' 13959 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13960 (eval $ac_try) 2>&5 13961 ac_status=$? 13962 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13963 (exit $ac_status); }; } && 13964 { ac_try='test -s conftest.$ac_objext' 13965 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 13966 (eval $ac_try) 2>&5 13967 ac_status=$? 13968 echo "$as_me:$LINENO: \$? = $ac_status" >&5 13969 (exit $ac_status); }; }; then 13970 ac_cv_type_uint32_t=yes 13971else 13972 echo "$as_me: failed program was:" >&5 13973sed 's/^/| /' conftest.$ac_ext >&5 13974 13975ac_cv_type_uint32_t=no 13976fi 13977rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 13978fi 13979echo "$as_me:$LINENO: result: $ac_cv_type_uint32_t" >&5 13980echo "${ECHO_T}$ac_cv_type_uint32_t" >&6 13981if test $ac_cv_type_uint32_t = yes; then 13982 acx_cv_header_stdint=$i 13983else 13984 continue 13985fi 13986 13987 echo "$as_me:$LINENO: checking for uint64_t" >&5 13988echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 13989if test "${ac_cv_type_uint64_t+set}" = set; then 13990 echo $ECHO_N "(cached) $ECHO_C" >&6 13991else 13992 cat >conftest.$ac_ext <<_ACEOF 13993/* confdefs.h. */ 13994_ACEOF 13995cat confdefs.h >>conftest.$ac_ext 13996cat >>conftest.$ac_ext <<_ACEOF 13997/* end confdefs.h. */ 13998#include <sys/types.h> 13999#include <$i> 14000 14001int 14002main () 14003{ 14004if ((uint64_t *) 0) 14005 return 0; 14006if (sizeof (uint64_t)) 14007 return 0; 14008 ; 14009 return 0; 14010} 14011_ACEOF 14012rm -f conftest.$ac_objext 14013if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14014 (eval $ac_compile) 2>conftest.er1 14015 ac_status=$? 14016 grep -v '^ *+' conftest.er1 >conftest.err 14017 rm -f conftest.er1 14018 cat conftest.err >&5 14019 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14020 (exit $ac_status); } && 14021 { ac_try='test -z "$ac_c_werror_flag" 14022 || test ! -s conftest.err' 14023 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14024 (eval $ac_try) 2>&5 14025 ac_status=$? 14026 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14027 (exit $ac_status); }; } && 14028 { ac_try='test -s conftest.$ac_objext' 14029 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14030 (eval $ac_try) 2>&5 14031 ac_status=$? 14032 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14033 (exit $ac_status); }; }; then 14034 ac_cv_type_uint64_t=yes 14035else 14036 echo "$as_me: failed program was:" >&5 14037sed 's/^/| /' conftest.$ac_ext >&5 14038 14039ac_cv_type_uint64_t=no 14040fi 14041rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14042fi 14043echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 14044echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 14045 14046 echo "$as_me:$LINENO: checking for uintptr_t" >&5 14047echo $ECHO_N "checking for uintptr_t... $ECHO_C" >&6 14048if test "${ac_cv_type_uintptr_t+set}" = set; then 14049 echo $ECHO_N "(cached) $ECHO_C" >&6 14050else 14051 cat >conftest.$ac_ext <<_ACEOF 14052/* confdefs.h. */ 14053_ACEOF 14054cat confdefs.h >>conftest.$ac_ext 14055cat >>conftest.$ac_ext <<_ACEOF 14056/* end confdefs.h. */ 14057#include <sys/types.h> 14058#include <$i> 14059 14060int 14061main () 14062{ 14063if ((uintptr_t *) 0) 14064 return 0; 14065if (sizeof (uintptr_t)) 14066 return 0; 14067 ; 14068 return 0; 14069} 14070_ACEOF 14071rm -f conftest.$ac_objext 14072if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14073 (eval $ac_compile) 2>conftest.er1 14074 ac_status=$? 14075 grep -v '^ *+' conftest.er1 >conftest.err 14076 rm -f conftest.er1 14077 cat conftest.err >&5 14078 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14079 (exit $ac_status); } && 14080 { ac_try='test -z "$ac_c_werror_flag" 14081 || test ! -s conftest.err' 14082 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14083 (eval $ac_try) 2>&5 14084 ac_status=$? 14085 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14086 (exit $ac_status); }; } && 14087 { ac_try='test -s conftest.$ac_objext' 14088 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14089 (eval $ac_try) 2>&5 14090 ac_status=$? 14091 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14092 (exit $ac_status); }; }; then 14093 ac_cv_type_uintptr_t=yes 14094else 14095 echo "$as_me: failed program was:" >&5 14096sed 's/^/| /' conftest.$ac_ext >&5 14097 14098ac_cv_type_uintptr_t=no 14099fi 14100rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14101fi 14102echo "$as_me:$LINENO: result: $ac_cv_type_uintptr_t" >&5 14103echo "${ECHO_T}$ac_cv_type_uintptr_t" >&6 14104 14105 break 14106 done 14107fi 14108if test "$acx_cv_header_stdint" = stddef.h; then 14109 acx_cv_header_stdint_kind="(u_intXX_t style)" 14110 for i in sys/types.h $inttype_headers; do 14111 unset ac_cv_type_u_int32_t 14112 unset ac_cv_type_u_int64_t 14113 echo $ECHO_N "looking for u_intXX_t types in $i, $ECHO_C" >&6 14114 echo "$as_me:$LINENO: checking for u_int32_t" >&5 14115echo $ECHO_N "checking for u_int32_t... $ECHO_C" >&6 14116if test "${ac_cv_type_u_int32_t+set}" = set; then 14117 echo $ECHO_N "(cached) $ECHO_C" >&6 14118else 14119 cat >conftest.$ac_ext <<_ACEOF 14120/* confdefs.h. */ 14121_ACEOF 14122cat confdefs.h >>conftest.$ac_ext 14123cat >>conftest.$ac_ext <<_ACEOF 14124/* end confdefs.h. */ 14125#include <sys/types.h> 14126#include <$i> 14127 14128int 14129main () 14130{ 14131if ((u_int32_t *) 0) 14132 return 0; 14133if (sizeof (u_int32_t)) 14134 return 0; 14135 ; 14136 return 0; 14137} 14138_ACEOF 14139rm -f conftest.$ac_objext 14140if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14141 (eval $ac_compile) 2>conftest.er1 14142 ac_status=$? 14143 grep -v '^ *+' conftest.er1 >conftest.err 14144 rm -f conftest.er1 14145 cat conftest.err >&5 14146 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14147 (exit $ac_status); } && 14148 { ac_try='test -z "$ac_c_werror_flag" 14149 || test ! -s conftest.err' 14150 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14151 (eval $ac_try) 2>&5 14152 ac_status=$? 14153 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14154 (exit $ac_status); }; } && 14155 { ac_try='test -s conftest.$ac_objext' 14156 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14157 (eval $ac_try) 2>&5 14158 ac_status=$? 14159 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14160 (exit $ac_status); }; }; then 14161 ac_cv_type_u_int32_t=yes 14162else 14163 echo "$as_me: failed program was:" >&5 14164sed 's/^/| /' conftest.$ac_ext >&5 14165 14166ac_cv_type_u_int32_t=no 14167fi 14168rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14169fi 14170echo "$as_me:$LINENO: result: $ac_cv_type_u_int32_t" >&5 14171echo "${ECHO_T}$ac_cv_type_u_int32_t" >&6 14172if test $ac_cv_type_u_int32_t = yes; then 14173 acx_cv_header_stdint=$i 14174else 14175 continue 14176fi 14177 14178 echo "$as_me:$LINENO: checking for u_int64_t" >&5 14179echo $ECHO_N "checking for u_int64_t... $ECHO_C" >&6 14180if test "${ac_cv_type_u_int64_t+set}" = set; then 14181 echo $ECHO_N "(cached) $ECHO_C" >&6 14182else 14183 cat >conftest.$ac_ext <<_ACEOF 14184/* confdefs.h. */ 14185_ACEOF 14186cat confdefs.h >>conftest.$ac_ext 14187cat >>conftest.$ac_ext <<_ACEOF 14188/* end confdefs.h. */ 14189#include <sys/types.h> 14190#include <$i> 14191 14192int 14193main () 14194{ 14195if ((u_int64_t *) 0) 14196 return 0; 14197if (sizeof (u_int64_t)) 14198 return 0; 14199 ; 14200 return 0; 14201} 14202_ACEOF 14203rm -f conftest.$ac_objext 14204if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14205 (eval $ac_compile) 2>conftest.er1 14206 ac_status=$? 14207 grep -v '^ *+' conftest.er1 >conftest.err 14208 rm -f conftest.er1 14209 cat conftest.err >&5 14210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14211 (exit $ac_status); } && 14212 { ac_try='test -z "$ac_c_werror_flag" 14213 || test ! -s conftest.err' 14214 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14215 (eval $ac_try) 2>&5 14216 ac_status=$? 14217 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14218 (exit $ac_status); }; } && 14219 { ac_try='test -s conftest.$ac_objext' 14220 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14221 (eval $ac_try) 2>&5 14222 ac_status=$? 14223 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14224 (exit $ac_status); }; }; then 14225 ac_cv_type_u_int64_t=yes 14226else 14227 echo "$as_me: failed program was:" >&5 14228sed 's/^/| /' conftest.$ac_ext >&5 14229 14230ac_cv_type_u_int64_t=no 14231fi 14232rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14233fi 14234echo "$as_me:$LINENO: result: $ac_cv_type_u_int64_t" >&5 14235echo "${ECHO_T}$ac_cv_type_u_int64_t" >&6 14236 14237 break 14238 done 14239fi 14240if test "$acx_cv_header_stdint" = stddef.h; then 14241 acx_cv_header_stdint_kind="(using manual detection)" 14242fi 14243 14244test -z "$ac_cv_type_uintptr_t" && ac_cv_type_uintptr_t=no 14245test -z "$ac_cv_type_uint64_t" && ac_cv_type_uint64_t=no 14246test -z "$ac_cv_type_u_int64_t" && ac_cv_type_u_int64_t=no 14247test -z "$ac_cv_type_int_least32_t" && ac_cv_type_int_least32_t=no 14248test -z "$ac_cv_type_int_fast32_t" && ac_cv_type_int_fast32_t=no 14249 14250# ----------------- Summarize what we found so far 14251 14252echo "$as_me:$LINENO: checking what to include in gstdint.h" >&5 14253echo $ECHO_N "checking what to include in gstdint.h... $ECHO_C" >&6 14254 14255case `$as_basename gstdint.h || 14256$as_expr X/gstdint.h : '.*/\([^/][^/]*\)/*$' \| \ 14257 Xgstdint.h : 'X\(//\)$' \| \ 14258 Xgstdint.h : 'X\(/\)$' \| \ 14259 . : '\(.\)' 2>/dev/null || 14260echo X/gstdint.h | 14261 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 14262 /^X\/\(\/\/\)$/{ s//\1/; q; } 14263 /^X\/\(\/\).*/{ s//\1/; q; } 14264 s/.*/./; q'` in 14265 stdint.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 14266echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 14267 inttypes.h) { echo "$as_me:$LINENO: WARNING: are you sure you want it there?" >&5 14268echo "$as_me: WARNING: are you sure you want it there?" >&2;} ;; 14269 *) ;; 14270esac 14271 14272echo "$as_me:$LINENO: result: $acx_cv_header_stdint $acx_cv_header_stdint_kind" >&5 14273echo "${ECHO_T}$acx_cv_header_stdint $acx_cv_header_stdint_kind" >&6 14274 14275# ----------------- done included file, check C basic types -------- 14276 14277# Lacking an uintptr_t? Test size of void * 14278case "$acx_cv_header_stdint:$ac_cv_type_uintptr_t" in 14279 stddef.h:* | *:no) echo "$as_me:$LINENO: checking for void *" >&5 14280echo $ECHO_N "checking for void *... $ECHO_C" >&6 14281if test "${ac_cv_type_void_p+set}" = set; then 14282 echo $ECHO_N "(cached) $ECHO_C" >&6 14283else 14284 cat >conftest.$ac_ext <<_ACEOF 14285/* confdefs.h. */ 14286_ACEOF 14287cat confdefs.h >>conftest.$ac_ext 14288cat >>conftest.$ac_ext <<_ACEOF 14289/* end confdefs.h. */ 14290$ac_includes_default 14291int 14292main () 14293{ 14294if ((void * *) 0) 14295 return 0; 14296if (sizeof (void *)) 14297 return 0; 14298 ; 14299 return 0; 14300} 14301_ACEOF 14302rm -f conftest.$ac_objext 14303if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14304 (eval $ac_compile) 2>conftest.er1 14305 ac_status=$? 14306 grep -v '^ *+' conftest.er1 >conftest.err 14307 rm -f conftest.er1 14308 cat conftest.err >&5 14309 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14310 (exit $ac_status); } && 14311 { ac_try='test -z "$ac_c_werror_flag" 14312 || test ! -s conftest.err' 14313 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14314 (eval $ac_try) 2>&5 14315 ac_status=$? 14316 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14317 (exit $ac_status); }; } && 14318 { ac_try='test -s conftest.$ac_objext' 14319 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14320 (eval $ac_try) 2>&5 14321 ac_status=$? 14322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14323 (exit $ac_status); }; }; then 14324 ac_cv_type_void_p=yes 14325else 14326 echo "$as_me: failed program was:" >&5 14327sed 's/^/| /' conftest.$ac_ext >&5 14328 14329ac_cv_type_void_p=no 14330fi 14331rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14332fi 14333echo "$as_me:$LINENO: result: $ac_cv_type_void_p" >&5 14334echo "${ECHO_T}$ac_cv_type_void_p" >&6 14335 14336echo "$as_me:$LINENO: checking size of void *" >&5 14337echo $ECHO_N "checking size of void *... $ECHO_C" >&6 14338if test "${ac_cv_sizeof_void_p+set}" = set; then 14339 echo $ECHO_N "(cached) $ECHO_C" >&6 14340else 14341 if test "$ac_cv_type_void_p" = yes; then 14342 # The cast to unsigned long works around a bug in the HP C Compiler 14343 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14344 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14345 # This bug is HP SR number 8606223364. 14346 if test "$cross_compiling" = yes; then 14347 # Depending upon the size, compute the lo and hi bounds. 14348cat >conftest.$ac_ext <<_ACEOF 14349/* confdefs.h. */ 14350_ACEOF 14351cat confdefs.h >>conftest.$ac_ext 14352cat >>conftest.$ac_ext <<_ACEOF 14353/* end confdefs.h. */ 14354$ac_includes_default 14355int 14356main () 14357{ 14358static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= 0)]; 14359test_array [0] = 0 14360 14361 ; 14362 return 0; 14363} 14364_ACEOF 14365rm -f conftest.$ac_objext 14366if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14367 (eval $ac_compile) 2>conftest.er1 14368 ac_status=$? 14369 grep -v '^ *+' conftest.er1 >conftest.err 14370 rm -f conftest.er1 14371 cat conftest.err >&5 14372 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14373 (exit $ac_status); } && 14374 { ac_try='test -z "$ac_c_werror_flag" 14375 || test ! -s conftest.err' 14376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14377 (eval $ac_try) 2>&5 14378 ac_status=$? 14379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14380 (exit $ac_status); }; } && 14381 { ac_try='test -s conftest.$ac_objext' 14382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14383 (eval $ac_try) 2>&5 14384 ac_status=$? 14385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14386 (exit $ac_status); }; }; then 14387 ac_lo=0 ac_mid=0 14388 while :; do 14389 cat >conftest.$ac_ext <<_ACEOF 14390/* confdefs.h. */ 14391_ACEOF 14392cat confdefs.h >>conftest.$ac_ext 14393cat >>conftest.$ac_ext <<_ACEOF 14394/* end confdefs.h. */ 14395$ac_includes_default 14396int 14397main () 14398{ 14399static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 14400test_array [0] = 0 14401 14402 ; 14403 return 0; 14404} 14405_ACEOF 14406rm -f conftest.$ac_objext 14407if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14408 (eval $ac_compile) 2>conftest.er1 14409 ac_status=$? 14410 grep -v '^ *+' conftest.er1 >conftest.err 14411 rm -f conftest.er1 14412 cat conftest.err >&5 14413 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14414 (exit $ac_status); } && 14415 { ac_try='test -z "$ac_c_werror_flag" 14416 || test ! -s conftest.err' 14417 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14418 (eval $ac_try) 2>&5 14419 ac_status=$? 14420 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14421 (exit $ac_status); }; } && 14422 { ac_try='test -s conftest.$ac_objext' 14423 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14424 (eval $ac_try) 2>&5 14425 ac_status=$? 14426 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14427 (exit $ac_status); }; }; then 14428 ac_hi=$ac_mid; break 14429else 14430 echo "$as_me: failed program was:" >&5 14431sed 's/^/| /' conftest.$ac_ext >&5 14432 14433ac_lo=`expr $ac_mid + 1` 14434 if test $ac_lo -le $ac_mid; then 14435 ac_lo= ac_hi= 14436 break 14437 fi 14438 ac_mid=`expr 2 '*' $ac_mid + 1` 14439fi 14440rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14441 done 14442else 14443 echo "$as_me: failed program was:" >&5 14444sed 's/^/| /' conftest.$ac_ext >&5 14445 14446cat >conftest.$ac_ext <<_ACEOF 14447/* confdefs.h. */ 14448_ACEOF 14449cat confdefs.h >>conftest.$ac_ext 14450cat >>conftest.$ac_ext <<_ACEOF 14451/* end confdefs.h. */ 14452$ac_includes_default 14453int 14454main () 14455{ 14456static int test_array [1 - 2 * !(((long) (sizeof (void *))) < 0)]; 14457test_array [0] = 0 14458 14459 ; 14460 return 0; 14461} 14462_ACEOF 14463rm -f conftest.$ac_objext 14464if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14465 (eval $ac_compile) 2>conftest.er1 14466 ac_status=$? 14467 grep -v '^ *+' conftest.er1 >conftest.err 14468 rm -f conftest.er1 14469 cat conftest.err >&5 14470 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14471 (exit $ac_status); } && 14472 { ac_try='test -z "$ac_c_werror_flag" 14473 || test ! -s conftest.err' 14474 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14475 (eval $ac_try) 2>&5 14476 ac_status=$? 14477 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14478 (exit $ac_status); }; } && 14479 { ac_try='test -s conftest.$ac_objext' 14480 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14481 (eval $ac_try) 2>&5 14482 ac_status=$? 14483 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14484 (exit $ac_status); }; }; then 14485 ac_hi=-1 ac_mid=-1 14486 while :; do 14487 cat >conftest.$ac_ext <<_ACEOF 14488/* confdefs.h. */ 14489_ACEOF 14490cat confdefs.h >>conftest.$ac_ext 14491cat >>conftest.$ac_ext <<_ACEOF 14492/* end confdefs.h. */ 14493$ac_includes_default 14494int 14495main () 14496{ 14497static int test_array [1 - 2 * !(((long) (sizeof (void *))) >= $ac_mid)]; 14498test_array [0] = 0 14499 14500 ; 14501 return 0; 14502} 14503_ACEOF 14504rm -f conftest.$ac_objext 14505if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14506 (eval $ac_compile) 2>conftest.er1 14507 ac_status=$? 14508 grep -v '^ *+' conftest.er1 >conftest.err 14509 rm -f conftest.er1 14510 cat conftest.err >&5 14511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14512 (exit $ac_status); } && 14513 { ac_try='test -z "$ac_c_werror_flag" 14514 || test ! -s conftest.err' 14515 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14516 (eval $ac_try) 2>&5 14517 ac_status=$? 14518 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14519 (exit $ac_status); }; } && 14520 { ac_try='test -s conftest.$ac_objext' 14521 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14522 (eval $ac_try) 2>&5 14523 ac_status=$? 14524 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14525 (exit $ac_status); }; }; then 14526 ac_lo=$ac_mid; break 14527else 14528 echo "$as_me: failed program was:" >&5 14529sed 's/^/| /' conftest.$ac_ext >&5 14530 14531ac_hi=`expr '(' $ac_mid ')' - 1` 14532 if test $ac_mid -le $ac_hi; then 14533 ac_lo= ac_hi= 14534 break 14535 fi 14536 ac_mid=`expr 2 '*' $ac_mid` 14537fi 14538rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14539 done 14540else 14541 echo "$as_me: failed program was:" >&5 14542sed 's/^/| /' conftest.$ac_ext >&5 14543 14544ac_lo= ac_hi= 14545fi 14546rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14547fi 14548rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14549# Binary search between lo and hi bounds. 14550while test "x$ac_lo" != "x$ac_hi"; do 14551 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14552 cat >conftest.$ac_ext <<_ACEOF 14553/* confdefs.h. */ 14554_ACEOF 14555cat confdefs.h >>conftest.$ac_ext 14556cat >>conftest.$ac_ext <<_ACEOF 14557/* end confdefs.h. */ 14558$ac_includes_default 14559int 14560main () 14561{ 14562static int test_array [1 - 2 * !(((long) (sizeof (void *))) <= $ac_mid)]; 14563test_array [0] = 0 14564 14565 ; 14566 return 0; 14567} 14568_ACEOF 14569rm -f conftest.$ac_objext 14570if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14571 (eval $ac_compile) 2>conftest.er1 14572 ac_status=$? 14573 grep -v '^ *+' conftest.er1 >conftest.err 14574 rm -f conftest.er1 14575 cat conftest.err >&5 14576 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14577 (exit $ac_status); } && 14578 { ac_try='test -z "$ac_c_werror_flag" 14579 || test ! -s conftest.err' 14580 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14581 (eval $ac_try) 2>&5 14582 ac_status=$? 14583 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14584 (exit $ac_status); }; } && 14585 { ac_try='test -s conftest.$ac_objext' 14586 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14587 (eval $ac_try) 2>&5 14588 ac_status=$? 14589 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14590 (exit $ac_status); }; }; then 14591 ac_hi=$ac_mid 14592else 14593 echo "$as_me: failed program was:" >&5 14594sed 's/^/| /' conftest.$ac_ext >&5 14595 14596ac_lo=`expr '(' $ac_mid ')' + 1` 14597fi 14598rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14599done 14600case $ac_lo in 14601?*) ac_cv_sizeof_void_p=$ac_lo;; 14602'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 14603See \`config.log' for more details." >&5 14604echo "$as_me: error: cannot compute sizeof (void *), 77 14605See \`config.log' for more details." >&2;} 14606 { (exit 1); exit 1; }; } ;; 14607esac 14608else 14609 if test "$cross_compiling" = yes; then 14610 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 14611See \`config.log' for more details." >&5 14612echo "$as_me: error: cannot run test program while cross compiling 14613See \`config.log' for more details." >&2;} 14614 { (exit 1); exit 1; }; } 14615else 14616 cat >conftest.$ac_ext <<_ACEOF 14617/* confdefs.h. */ 14618_ACEOF 14619cat confdefs.h >>conftest.$ac_ext 14620cat >>conftest.$ac_ext <<_ACEOF 14621/* end confdefs.h. */ 14622$ac_includes_default 14623long longval () { return (long) (sizeof (void *)); } 14624unsigned long ulongval () { return (long) (sizeof (void *)); } 14625#include <stdio.h> 14626#include <stdlib.h> 14627int 14628main () 14629{ 14630 14631 FILE *f = fopen ("conftest.val", "w"); 14632 if (! f) 14633 exit (1); 14634 if (((long) (sizeof (void *))) < 0) 14635 { 14636 long i = longval (); 14637 if (i != ((long) (sizeof (void *)))) 14638 exit (1); 14639 fprintf (f, "%ld\n", i); 14640 } 14641 else 14642 { 14643 unsigned long i = ulongval (); 14644 if (i != ((long) (sizeof (void *)))) 14645 exit (1); 14646 fprintf (f, "%lu\n", i); 14647 } 14648 exit (ferror (f) || fclose (f) != 0); 14649 14650 ; 14651 return 0; 14652} 14653_ACEOF 14654rm -f conftest$ac_exeext 14655if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 14656 (eval $ac_link) 2>&5 14657 ac_status=$? 14658 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14659 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 14660 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14661 (eval $ac_try) 2>&5 14662 ac_status=$? 14663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14664 (exit $ac_status); }; }; then 14665 ac_cv_sizeof_void_p=`cat conftest.val` 14666else 14667 echo "$as_me: program exited with status $ac_status" >&5 14668echo "$as_me: failed program was:" >&5 14669sed 's/^/| /' conftest.$ac_ext >&5 14670 14671( exit $ac_status ) 14672{ { echo "$as_me:$LINENO: error: cannot compute sizeof (void *), 77 14673See \`config.log' for more details." >&5 14674echo "$as_me: error: cannot compute sizeof (void *), 77 14675See \`config.log' for more details." >&2;} 14676 { (exit 1); exit 1; }; } 14677fi 14678rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 14679fi 14680fi 14681rm -f conftest.val 14682else 14683 ac_cv_sizeof_void_p=0 14684fi 14685fi 14686echo "$as_me:$LINENO: result: $ac_cv_sizeof_void_p" >&5 14687echo "${ECHO_T}$ac_cv_sizeof_void_p" >&6 14688cat >>confdefs.h <<_ACEOF 14689#define SIZEOF_VOID_P $ac_cv_sizeof_void_p 14690_ACEOF 14691 14692 ;; 14693esac 14694 14695# Lacking an uint64_t? Test size of long 14696case "$acx_cv_header_stdint:$ac_cv_type_uint64_t:$ac_cv_type_u_int64_t" in 14697 stddef.h:*:* | *:no:no) echo "$as_me:$LINENO: checking for long" >&5 14698echo $ECHO_N "checking for long... $ECHO_C" >&6 14699if test "${ac_cv_type_long+set}" = set; then 14700 echo $ECHO_N "(cached) $ECHO_C" >&6 14701else 14702 cat >conftest.$ac_ext <<_ACEOF 14703/* confdefs.h. */ 14704_ACEOF 14705cat confdefs.h >>conftest.$ac_ext 14706cat >>conftest.$ac_ext <<_ACEOF 14707/* end confdefs.h. */ 14708$ac_includes_default 14709int 14710main () 14711{ 14712if ((long *) 0) 14713 return 0; 14714if (sizeof (long)) 14715 return 0; 14716 ; 14717 return 0; 14718} 14719_ACEOF 14720rm -f conftest.$ac_objext 14721if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14722 (eval $ac_compile) 2>conftest.er1 14723 ac_status=$? 14724 grep -v '^ *+' conftest.er1 >conftest.err 14725 rm -f conftest.er1 14726 cat conftest.err >&5 14727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14728 (exit $ac_status); } && 14729 { ac_try='test -z "$ac_c_werror_flag" 14730 || test ! -s conftest.err' 14731 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14732 (eval $ac_try) 2>&5 14733 ac_status=$? 14734 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14735 (exit $ac_status); }; } && 14736 { ac_try='test -s conftest.$ac_objext' 14737 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14738 (eval $ac_try) 2>&5 14739 ac_status=$? 14740 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14741 (exit $ac_status); }; }; then 14742 ac_cv_type_long=yes 14743else 14744 echo "$as_me: failed program was:" >&5 14745sed 's/^/| /' conftest.$ac_ext >&5 14746 14747ac_cv_type_long=no 14748fi 14749rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14750fi 14751echo "$as_me:$LINENO: result: $ac_cv_type_long" >&5 14752echo "${ECHO_T}$ac_cv_type_long" >&6 14753 14754echo "$as_me:$LINENO: checking size of long" >&5 14755echo $ECHO_N "checking size of long... $ECHO_C" >&6 14756if test "${ac_cv_sizeof_long+set}" = set; then 14757 echo $ECHO_N "(cached) $ECHO_C" >&6 14758else 14759 if test "$ac_cv_type_long" = yes; then 14760 # The cast to unsigned long works around a bug in the HP C Compiler 14761 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 14762 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 14763 # This bug is HP SR number 8606223364. 14764 if test "$cross_compiling" = yes; then 14765 # Depending upon the size, compute the lo and hi bounds. 14766cat >conftest.$ac_ext <<_ACEOF 14767/* confdefs.h. */ 14768_ACEOF 14769cat confdefs.h >>conftest.$ac_ext 14770cat >>conftest.$ac_ext <<_ACEOF 14771/* end confdefs.h. */ 14772$ac_includes_default 14773int 14774main () 14775{ 14776static int test_array [1 - 2 * !(((long) (sizeof (long))) >= 0)]; 14777test_array [0] = 0 14778 14779 ; 14780 return 0; 14781} 14782_ACEOF 14783rm -f conftest.$ac_objext 14784if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14785 (eval $ac_compile) 2>conftest.er1 14786 ac_status=$? 14787 grep -v '^ *+' conftest.er1 >conftest.err 14788 rm -f conftest.er1 14789 cat conftest.err >&5 14790 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14791 (exit $ac_status); } && 14792 { ac_try='test -z "$ac_c_werror_flag" 14793 || test ! -s conftest.err' 14794 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14795 (eval $ac_try) 2>&5 14796 ac_status=$? 14797 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14798 (exit $ac_status); }; } && 14799 { ac_try='test -s conftest.$ac_objext' 14800 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14801 (eval $ac_try) 2>&5 14802 ac_status=$? 14803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14804 (exit $ac_status); }; }; then 14805 ac_lo=0 ac_mid=0 14806 while :; do 14807 cat >conftest.$ac_ext <<_ACEOF 14808/* confdefs.h. */ 14809_ACEOF 14810cat confdefs.h >>conftest.$ac_ext 14811cat >>conftest.$ac_ext <<_ACEOF 14812/* end confdefs.h. */ 14813$ac_includes_default 14814int 14815main () 14816{ 14817static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 14818test_array [0] = 0 14819 14820 ; 14821 return 0; 14822} 14823_ACEOF 14824rm -f conftest.$ac_objext 14825if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14826 (eval $ac_compile) 2>conftest.er1 14827 ac_status=$? 14828 grep -v '^ *+' conftest.er1 >conftest.err 14829 rm -f conftest.er1 14830 cat conftest.err >&5 14831 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14832 (exit $ac_status); } && 14833 { ac_try='test -z "$ac_c_werror_flag" 14834 || test ! -s conftest.err' 14835 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14836 (eval $ac_try) 2>&5 14837 ac_status=$? 14838 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14839 (exit $ac_status); }; } && 14840 { ac_try='test -s conftest.$ac_objext' 14841 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14842 (eval $ac_try) 2>&5 14843 ac_status=$? 14844 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14845 (exit $ac_status); }; }; then 14846 ac_hi=$ac_mid; break 14847else 14848 echo "$as_me: failed program was:" >&5 14849sed 's/^/| /' conftest.$ac_ext >&5 14850 14851ac_lo=`expr $ac_mid + 1` 14852 if test $ac_lo -le $ac_mid; then 14853 ac_lo= ac_hi= 14854 break 14855 fi 14856 ac_mid=`expr 2 '*' $ac_mid + 1` 14857fi 14858rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14859 done 14860else 14861 echo "$as_me: failed program was:" >&5 14862sed 's/^/| /' conftest.$ac_ext >&5 14863 14864cat >conftest.$ac_ext <<_ACEOF 14865/* confdefs.h. */ 14866_ACEOF 14867cat confdefs.h >>conftest.$ac_ext 14868cat >>conftest.$ac_ext <<_ACEOF 14869/* end confdefs.h. */ 14870$ac_includes_default 14871int 14872main () 14873{ 14874static int test_array [1 - 2 * !(((long) (sizeof (long))) < 0)]; 14875test_array [0] = 0 14876 14877 ; 14878 return 0; 14879} 14880_ACEOF 14881rm -f conftest.$ac_objext 14882if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14883 (eval $ac_compile) 2>conftest.er1 14884 ac_status=$? 14885 grep -v '^ *+' conftest.er1 >conftest.err 14886 rm -f conftest.er1 14887 cat conftest.err >&5 14888 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14889 (exit $ac_status); } && 14890 { ac_try='test -z "$ac_c_werror_flag" 14891 || test ! -s conftest.err' 14892 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14893 (eval $ac_try) 2>&5 14894 ac_status=$? 14895 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14896 (exit $ac_status); }; } && 14897 { ac_try='test -s conftest.$ac_objext' 14898 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14899 (eval $ac_try) 2>&5 14900 ac_status=$? 14901 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14902 (exit $ac_status); }; }; then 14903 ac_hi=-1 ac_mid=-1 14904 while :; do 14905 cat >conftest.$ac_ext <<_ACEOF 14906/* confdefs.h. */ 14907_ACEOF 14908cat confdefs.h >>conftest.$ac_ext 14909cat >>conftest.$ac_ext <<_ACEOF 14910/* end confdefs.h. */ 14911$ac_includes_default 14912int 14913main () 14914{ 14915static int test_array [1 - 2 * !(((long) (sizeof (long))) >= $ac_mid)]; 14916test_array [0] = 0 14917 14918 ; 14919 return 0; 14920} 14921_ACEOF 14922rm -f conftest.$ac_objext 14923if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14924 (eval $ac_compile) 2>conftest.er1 14925 ac_status=$? 14926 grep -v '^ *+' conftest.er1 >conftest.err 14927 rm -f conftest.er1 14928 cat conftest.err >&5 14929 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14930 (exit $ac_status); } && 14931 { ac_try='test -z "$ac_c_werror_flag" 14932 || test ! -s conftest.err' 14933 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14934 (eval $ac_try) 2>&5 14935 ac_status=$? 14936 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14937 (exit $ac_status); }; } && 14938 { ac_try='test -s conftest.$ac_objext' 14939 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14940 (eval $ac_try) 2>&5 14941 ac_status=$? 14942 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14943 (exit $ac_status); }; }; then 14944 ac_lo=$ac_mid; break 14945else 14946 echo "$as_me: failed program was:" >&5 14947sed 's/^/| /' conftest.$ac_ext >&5 14948 14949ac_hi=`expr '(' $ac_mid ')' - 1` 14950 if test $ac_mid -le $ac_hi; then 14951 ac_lo= ac_hi= 14952 break 14953 fi 14954 ac_mid=`expr 2 '*' $ac_mid` 14955fi 14956rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14957 done 14958else 14959 echo "$as_me: failed program was:" >&5 14960sed 's/^/| /' conftest.$ac_ext >&5 14961 14962ac_lo= ac_hi= 14963fi 14964rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14965fi 14966rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 14967# Binary search between lo and hi bounds. 14968while test "x$ac_lo" != "x$ac_hi"; do 14969 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 14970 cat >conftest.$ac_ext <<_ACEOF 14971/* confdefs.h. */ 14972_ACEOF 14973cat confdefs.h >>conftest.$ac_ext 14974cat >>conftest.$ac_ext <<_ACEOF 14975/* end confdefs.h. */ 14976$ac_includes_default 14977int 14978main () 14979{ 14980static int test_array [1 - 2 * !(((long) (sizeof (long))) <= $ac_mid)]; 14981test_array [0] = 0 14982 14983 ; 14984 return 0; 14985} 14986_ACEOF 14987rm -f conftest.$ac_objext 14988if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 14989 (eval $ac_compile) 2>conftest.er1 14990 ac_status=$? 14991 grep -v '^ *+' conftest.er1 >conftest.err 14992 rm -f conftest.er1 14993 cat conftest.err >&5 14994 echo "$as_me:$LINENO: \$? = $ac_status" >&5 14995 (exit $ac_status); } && 14996 { ac_try='test -z "$ac_c_werror_flag" 14997 || test ! -s conftest.err' 14998 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 14999 (eval $ac_try) 2>&5 15000 ac_status=$? 15001 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15002 (exit $ac_status); }; } && 15003 { ac_try='test -s conftest.$ac_objext' 15004 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15005 (eval $ac_try) 2>&5 15006 ac_status=$? 15007 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15008 (exit $ac_status); }; }; then 15009 ac_hi=$ac_mid 15010else 15011 echo "$as_me: failed program was:" >&5 15012sed 's/^/| /' conftest.$ac_ext >&5 15013 15014ac_lo=`expr '(' $ac_mid ')' + 1` 15015fi 15016rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15017done 15018case $ac_lo in 15019?*) ac_cv_sizeof_long=$ac_lo;; 15020'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 15021See \`config.log' for more details." >&5 15022echo "$as_me: error: cannot compute sizeof (long), 77 15023See \`config.log' for more details." >&2;} 15024 { (exit 1); exit 1; }; } ;; 15025esac 15026else 15027 if test "$cross_compiling" = yes; then 15028 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15029See \`config.log' for more details." >&5 15030echo "$as_me: error: cannot run test program while cross compiling 15031See \`config.log' for more details." >&2;} 15032 { (exit 1); exit 1; }; } 15033else 15034 cat >conftest.$ac_ext <<_ACEOF 15035/* confdefs.h. */ 15036_ACEOF 15037cat confdefs.h >>conftest.$ac_ext 15038cat >>conftest.$ac_ext <<_ACEOF 15039/* end confdefs.h. */ 15040$ac_includes_default 15041long longval () { return (long) (sizeof (long)); } 15042unsigned long ulongval () { return (long) (sizeof (long)); } 15043#include <stdio.h> 15044#include <stdlib.h> 15045int 15046main () 15047{ 15048 15049 FILE *f = fopen ("conftest.val", "w"); 15050 if (! f) 15051 exit (1); 15052 if (((long) (sizeof (long))) < 0) 15053 { 15054 long i = longval (); 15055 if (i != ((long) (sizeof (long)))) 15056 exit (1); 15057 fprintf (f, "%ld\n", i); 15058 } 15059 else 15060 { 15061 unsigned long i = ulongval (); 15062 if (i != ((long) (sizeof (long)))) 15063 exit (1); 15064 fprintf (f, "%lu\n", i); 15065 } 15066 exit (ferror (f) || fclose (f) != 0); 15067 15068 ; 15069 return 0; 15070} 15071_ACEOF 15072rm -f conftest$ac_exeext 15073if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15074 (eval $ac_link) 2>&5 15075 ac_status=$? 15076 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15077 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15078 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15079 (eval $ac_try) 2>&5 15080 ac_status=$? 15081 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15082 (exit $ac_status); }; }; then 15083 ac_cv_sizeof_long=`cat conftest.val` 15084else 15085 echo "$as_me: program exited with status $ac_status" >&5 15086echo "$as_me: failed program was:" >&5 15087sed 's/^/| /' conftest.$ac_ext >&5 15088 15089( exit $ac_status ) 15090{ { echo "$as_me:$LINENO: error: cannot compute sizeof (long), 77 15091See \`config.log' for more details." >&5 15092echo "$as_me: error: cannot compute sizeof (long), 77 15093See \`config.log' for more details." >&2;} 15094 { (exit 1); exit 1; }; } 15095fi 15096rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15097fi 15098fi 15099rm -f conftest.val 15100else 15101 ac_cv_sizeof_long=0 15102fi 15103fi 15104echo "$as_me:$LINENO: result: $ac_cv_sizeof_long" >&5 15105echo "${ECHO_T}$ac_cv_sizeof_long" >&6 15106cat >>confdefs.h <<_ACEOF 15107#define SIZEOF_LONG $ac_cv_sizeof_long 15108_ACEOF 15109 15110 ;; 15111esac 15112 15113if test $acx_cv_header_stdint = stddef.h; then 15114 # Lacking a good header? Test size of everything and deduce all types. 15115 echo "$as_me:$LINENO: checking for int" >&5 15116echo $ECHO_N "checking for int... $ECHO_C" >&6 15117if test "${ac_cv_type_int+set}" = set; then 15118 echo $ECHO_N "(cached) $ECHO_C" >&6 15119else 15120 cat >conftest.$ac_ext <<_ACEOF 15121/* confdefs.h. */ 15122_ACEOF 15123cat confdefs.h >>conftest.$ac_ext 15124cat >>conftest.$ac_ext <<_ACEOF 15125/* end confdefs.h. */ 15126$ac_includes_default 15127int 15128main () 15129{ 15130if ((int *) 0) 15131 return 0; 15132if (sizeof (int)) 15133 return 0; 15134 ; 15135 return 0; 15136} 15137_ACEOF 15138rm -f conftest.$ac_objext 15139if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15140 (eval $ac_compile) 2>conftest.er1 15141 ac_status=$? 15142 grep -v '^ *+' conftest.er1 >conftest.err 15143 rm -f conftest.er1 15144 cat conftest.err >&5 15145 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15146 (exit $ac_status); } && 15147 { ac_try='test -z "$ac_c_werror_flag" 15148 || test ! -s conftest.err' 15149 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15150 (eval $ac_try) 2>&5 15151 ac_status=$? 15152 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15153 (exit $ac_status); }; } && 15154 { ac_try='test -s conftest.$ac_objext' 15155 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15156 (eval $ac_try) 2>&5 15157 ac_status=$? 15158 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15159 (exit $ac_status); }; }; then 15160 ac_cv_type_int=yes 15161else 15162 echo "$as_me: failed program was:" >&5 15163sed 's/^/| /' conftest.$ac_ext >&5 15164 15165ac_cv_type_int=no 15166fi 15167rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15168fi 15169echo "$as_me:$LINENO: result: $ac_cv_type_int" >&5 15170echo "${ECHO_T}$ac_cv_type_int" >&6 15171 15172echo "$as_me:$LINENO: checking size of int" >&5 15173echo $ECHO_N "checking size of int... $ECHO_C" >&6 15174if test "${ac_cv_sizeof_int+set}" = set; then 15175 echo $ECHO_N "(cached) $ECHO_C" >&6 15176else 15177 if test "$ac_cv_type_int" = yes; then 15178 # The cast to unsigned long works around a bug in the HP C Compiler 15179 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15180 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15181 # This bug is HP SR number 8606223364. 15182 if test "$cross_compiling" = yes; then 15183 # Depending upon the size, compute the lo and hi bounds. 15184cat >conftest.$ac_ext <<_ACEOF 15185/* confdefs.h. */ 15186_ACEOF 15187cat confdefs.h >>conftest.$ac_ext 15188cat >>conftest.$ac_ext <<_ACEOF 15189/* end confdefs.h. */ 15190$ac_includes_default 15191int 15192main () 15193{ 15194static int test_array [1 - 2 * !(((long) (sizeof (int))) >= 0)]; 15195test_array [0] = 0 15196 15197 ; 15198 return 0; 15199} 15200_ACEOF 15201rm -f conftest.$ac_objext 15202if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15203 (eval $ac_compile) 2>conftest.er1 15204 ac_status=$? 15205 grep -v '^ *+' conftest.er1 >conftest.err 15206 rm -f conftest.er1 15207 cat conftest.err >&5 15208 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15209 (exit $ac_status); } && 15210 { ac_try='test -z "$ac_c_werror_flag" 15211 || test ! -s conftest.err' 15212 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15213 (eval $ac_try) 2>&5 15214 ac_status=$? 15215 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15216 (exit $ac_status); }; } && 15217 { ac_try='test -s conftest.$ac_objext' 15218 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15219 (eval $ac_try) 2>&5 15220 ac_status=$? 15221 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15222 (exit $ac_status); }; }; then 15223 ac_lo=0 ac_mid=0 15224 while :; do 15225 cat >conftest.$ac_ext <<_ACEOF 15226/* confdefs.h. */ 15227_ACEOF 15228cat confdefs.h >>conftest.$ac_ext 15229cat >>conftest.$ac_ext <<_ACEOF 15230/* end confdefs.h. */ 15231$ac_includes_default 15232int 15233main () 15234{ 15235static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 15236test_array [0] = 0 15237 15238 ; 15239 return 0; 15240} 15241_ACEOF 15242rm -f conftest.$ac_objext 15243if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15244 (eval $ac_compile) 2>conftest.er1 15245 ac_status=$? 15246 grep -v '^ *+' conftest.er1 >conftest.err 15247 rm -f conftest.er1 15248 cat conftest.err >&5 15249 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15250 (exit $ac_status); } && 15251 { ac_try='test -z "$ac_c_werror_flag" 15252 || test ! -s conftest.err' 15253 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15254 (eval $ac_try) 2>&5 15255 ac_status=$? 15256 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15257 (exit $ac_status); }; } && 15258 { ac_try='test -s conftest.$ac_objext' 15259 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15260 (eval $ac_try) 2>&5 15261 ac_status=$? 15262 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15263 (exit $ac_status); }; }; then 15264 ac_hi=$ac_mid; break 15265else 15266 echo "$as_me: failed program was:" >&5 15267sed 's/^/| /' conftest.$ac_ext >&5 15268 15269ac_lo=`expr $ac_mid + 1` 15270 if test $ac_lo -le $ac_mid; then 15271 ac_lo= ac_hi= 15272 break 15273 fi 15274 ac_mid=`expr 2 '*' $ac_mid + 1` 15275fi 15276rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15277 done 15278else 15279 echo "$as_me: failed program was:" >&5 15280sed 's/^/| /' conftest.$ac_ext >&5 15281 15282cat >conftest.$ac_ext <<_ACEOF 15283/* confdefs.h. */ 15284_ACEOF 15285cat confdefs.h >>conftest.$ac_ext 15286cat >>conftest.$ac_ext <<_ACEOF 15287/* end confdefs.h. */ 15288$ac_includes_default 15289int 15290main () 15291{ 15292static int test_array [1 - 2 * !(((long) (sizeof (int))) < 0)]; 15293test_array [0] = 0 15294 15295 ; 15296 return 0; 15297} 15298_ACEOF 15299rm -f conftest.$ac_objext 15300if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15301 (eval $ac_compile) 2>conftest.er1 15302 ac_status=$? 15303 grep -v '^ *+' conftest.er1 >conftest.err 15304 rm -f conftest.er1 15305 cat conftest.err >&5 15306 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15307 (exit $ac_status); } && 15308 { ac_try='test -z "$ac_c_werror_flag" 15309 || test ! -s conftest.err' 15310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15311 (eval $ac_try) 2>&5 15312 ac_status=$? 15313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15314 (exit $ac_status); }; } && 15315 { ac_try='test -s conftest.$ac_objext' 15316 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15317 (eval $ac_try) 2>&5 15318 ac_status=$? 15319 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15320 (exit $ac_status); }; }; then 15321 ac_hi=-1 ac_mid=-1 15322 while :; do 15323 cat >conftest.$ac_ext <<_ACEOF 15324/* confdefs.h. */ 15325_ACEOF 15326cat confdefs.h >>conftest.$ac_ext 15327cat >>conftest.$ac_ext <<_ACEOF 15328/* end confdefs.h. */ 15329$ac_includes_default 15330int 15331main () 15332{ 15333static int test_array [1 - 2 * !(((long) (sizeof (int))) >= $ac_mid)]; 15334test_array [0] = 0 15335 15336 ; 15337 return 0; 15338} 15339_ACEOF 15340rm -f conftest.$ac_objext 15341if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15342 (eval $ac_compile) 2>conftest.er1 15343 ac_status=$? 15344 grep -v '^ *+' conftest.er1 >conftest.err 15345 rm -f conftest.er1 15346 cat conftest.err >&5 15347 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15348 (exit $ac_status); } && 15349 { ac_try='test -z "$ac_c_werror_flag" 15350 || test ! -s conftest.err' 15351 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15352 (eval $ac_try) 2>&5 15353 ac_status=$? 15354 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15355 (exit $ac_status); }; } && 15356 { ac_try='test -s conftest.$ac_objext' 15357 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15358 (eval $ac_try) 2>&5 15359 ac_status=$? 15360 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15361 (exit $ac_status); }; }; then 15362 ac_lo=$ac_mid; break 15363else 15364 echo "$as_me: failed program was:" >&5 15365sed 's/^/| /' conftest.$ac_ext >&5 15366 15367ac_hi=`expr '(' $ac_mid ')' - 1` 15368 if test $ac_mid -le $ac_hi; then 15369 ac_lo= ac_hi= 15370 break 15371 fi 15372 ac_mid=`expr 2 '*' $ac_mid` 15373fi 15374rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15375 done 15376else 15377 echo "$as_me: failed program was:" >&5 15378sed 's/^/| /' conftest.$ac_ext >&5 15379 15380ac_lo= ac_hi= 15381fi 15382rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15383fi 15384rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15385# Binary search between lo and hi bounds. 15386while test "x$ac_lo" != "x$ac_hi"; do 15387 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15388 cat >conftest.$ac_ext <<_ACEOF 15389/* confdefs.h. */ 15390_ACEOF 15391cat confdefs.h >>conftest.$ac_ext 15392cat >>conftest.$ac_ext <<_ACEOF 15393/* end confdefs.h. */ 15394$ac_includes_default 15395int 15396main () 15397{ 15398static int test_array [1 - 2 * !(((long) (sizeof (int))) <= $ac_mid)]; 15399test_array [0] = 0 15400 15401 ; 15402 return 0; 15403} 15404_ACEOF 15405rm -f conftest.$ac_objext 15406if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15407 (eval $ac_compile) 2>conftest.er1 15408 ac_status=$? 15409 grep -v '^ *+' conftest.er1 >conftest.err 15410 rm -f conftest.er1 15411 cat conftest.err >&5 15412 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15413 (exit $ac_status); } && 15414 { ac_try='test -z "$ac_c_werror_flag" 15415 || test ! -s conftest.err' 15416 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15417 (eval $ac_try) 2>&5 15418 ac_status=$? 15419 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15420 (exit $ac_status); }; } && 15421 { ac_try='test -s conftest.$ac_objext' 15422 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15423 (eval $ac_try) 2>&5 15424 ac_status=$? 15425 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15426 (exit $ac_status); }; }; then 15427 ac_hi=$ac_mid 15428else 15429 echo "$as_me: failed program was:" >&5 15430sed 's/^/| /' conftest.$ac_ext >&5 15431 15432ac_lo=`expr '(' $ac_mid ')' + 1` 15433fi 15434rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15435done 15436case $ac_lo in 15437?*) ac_cv_sizeof_int=$ac_lo;; 15438'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 15439See \`config.log' for more details." >&5 15440echo "$as_me: error: cannot compute sizeof (int), 77 15441See \`config.log' for more details." >&2;} 15442 { (exit 1); exit 1; }; } ;; 15443esac 15444else 15445 if test "$cross_compiling" = yes; then 15446 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15447See \`config.log' for more details." >&5 15448echo "$as_me: error: cannot run test program while cross compiling 15449See \`config.log' for more details." >&2;} 15450 { (exit 1); exit 1; }; } 15451else 15452 cat >conftest.$ac_ext <<_ACEOF 15453/* confdefs.h. */ 15454_ACEOF 15455cat confdefs.h >>conftest.$ac_ext 15456cat >>conftest.$ac_ext <<_ACEOF 15457/* end confdefs.h. */ 15458$ac_includes_default 15459long longval () { return (long) (sizeof (int)); } 15460unsigned long ulongval () { return (long) (sizeof (int)); } 15461#include <stdio.h> 15462#include <stdlib.h> 15463int 15464main () 15465{ 15466 15467 FILE *f = fopen ("conftest.val", "w"); 15468 if (! f) 15469 exit (1); 15470 if (((long) (sizeof (int))) < 0) 15471 { 15472 long i = longval (); 15473 if (i != ((long) (sizeof (int)))) 15474 exit (1); 15475 fprintf (f, "%ld\n", i); 15476 } 15477 else 15478 { 15479 unsigned long i = ulongval (); 15480 if (i != ((long) (sizeof (int)))) 15481 exit (1); 15482 fprintf (f, "%lu\n", i); 15483 } 15484 exit (ferror (f) || fclose (f) != 0); 15485 15486 ; 15487 return 0; 15488} 15489_ACEOF 15490rm -f conftest$ac_exeext 15491if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15492 (eval $ac_link) 2>&5 15493 ac_status=$? 15494 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15495 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15496 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15497 (eval $ac_try) 2>&5 15498 ac_status=$? 15499 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15500 (exit $ac_status); }; }; then 15501 ac_cv_sizeof_int=`cat conftest.val` 15502else 15503 echo "$as_me: program exited with status $ac_status" >&5 15504echo "$as_me: failed program was:" >&5 15505sed 's/^/| /' conftest.$ac_ext >&5 15506 15507( exit $ac_status ) 15508{ { echo "$as_me:$LINENO: error: cannot compute sizeof (int), 77 15509See \`config.log' for more details." >&5 15510echo "$as_me: error: cannot compute sizeof (int), 77 15511See \`config.log' for more details." >&2;} 15512 { (exit 1); exit 1; }; } 15513fi 15514rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15515fi 15516fi 15517rm -f conftest.val 15518else 15519 ac_cv_sizeof_int=0 15520fi 15521fi 15522echo "$as_me:$LINENO: result: $ac_cv_sizeof_int" >&5 15523echo "${ECHO_T}$ac_cv_sizeof_int" >&6 15524cat >>confdefs.h <<_ACEOF 15525#define SIZEOF_INT $ac_cv_sizeof_int 15526_ACEOF 15527 15528 15529 echo "$as_me:$LINENO: checking for short" >&5 15530echo $ECHO_N "checking for short... $ECHO_C" >&6 15531if test "${ac_cv_type_short+set}" = set; then 15532 echo $ECHO_N "(cached) $ECHO_C" >&6 15533else 15534 cat >conftest.$ac_ext <<_ACEOF 15535/* confdefs.h. */ 15536_ACEOF 15537cat confdefs.h >>conftest.$ac_ext 15538cat >>conftest.$ac_ext <<_ACEOF 15539/* end confdefs.h. */ 15540$ac_includes_default 15541int 15542main () 15543{ 15544if ((short *) 0) 15545 return 0; 15546if (sizeof (short)) 15547 return 0; 15548 ; 15549 return 0; 15550} 15551_ACEOF 15552rm -f conftest.$ac_objext 15553if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15554 (eval $ac_compile) 2>conftest.er1 15555 ac_status=$? 15556 grep -v '^ *+' conftest.er1 >conftest.err 15557 rm -f conftest.er1 15558 cat conftest.err >&5 15559 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15560 (exit $ac_status); } && 15561 { ac_try='test -z "$ac_c_werror_flag" 15562 || test ! -s conftest.err' 15563 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15564 (eval $ac_try) 2>&5 15565 ac_status=$? 15566 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15567 (exit $ac_status); }; } && 15568 { ac_try='test -s conftest.$ac_objext' 15569 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15570 (eval $ac_try) 2>&5 15571 ac_status=$? 15572 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15573 (exit $ac_status); }; }; then 15574 ac_cv_type_short=yes 15575else 15576 echo "$as_me: failed program was:" >&5 15577sed 's/^/| /' conftest.$ac_ext >&5 15578 15579ac_cv_type_short=no 15580fi 15581rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15582fi 15583echo "$as_me:$LINENO: result: $ac_cv_type_short" >&5 15584echo "${ECHO_T}$ac_cv_type_short" >&6 15585 15586echo "$as_me:$LINENO: checking size of short" >&5 15587echo $ECHO_N "checking size of short... $ECHO_C" >&6 15588if test "${ac_cv_sizeof_short+set}" = set; then 15589 echo $ECHO_N "(cached) $ECHO_C" >&6 15590else 15591 if test "$ac_cv_type_short" = yes; then 15592 # The cast to unsigned long works around a bug in the HP C Compiler 15593 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 15594 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 15595 # This bug is HP SR number 8606223364. 15596 if test "$cross_compiling" = yes; then 15597 # Depending upon the size, compute the lo and hi bounds. 15598cat >conftest.$ac_ext <<_ACEOF 15599/* confdefs.h. */ 15600_ACEOF 15601cat confdefs.h >>conftest.$ac_ext 15602cat >>conftest.$ac_ext <<_ACEOF 15603/* end confdefs.h. */ 15604$ac_includes_default 15605int 15606main () 15607{ 15608static int test_array [1 - 2 * !(((long) (sizeof (short))) >= 0)]; 15609test_array [0] = 0 15610 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615rm -f conftest.$ac_objext 15616if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15617 (eval $ac_compile) 2>conftest.er1 15618 ac_status=$? 15619 grep -v '^ *+' conftest.er1 >conftest.err 15620 rm -f conftest.er1 15621 cat conftest.err >&5 15622 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15623 (exit $ac_status); } && 15624 { ac_try='test -z "$ac_c_werror_flag" 15625 || test ! -s conftest.err' 15626 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15627 (eval $ac_try) 2>&5 15628 ac_status=$? 15629 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15630 (exit $ac_status); }; } && 15631 { ac_try='test -s conftest.$ac_objext' 15632 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15633 (eval $ac_try) 2>&5 15634 ac_status=$? 15635 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15636 (exit $ac_status); }; }; then 15637 ac_lo=0 ac_mid=0 15638 while :; do 15639 cat >conftest.$ac_ext <<_ACEOF 15640/* confdefs.h. */ 15641_ACEOF 15642cat confdefs.h >>conftest.$ac_ext 15643cat >>conftest.$ac_ext <<_ACEOF 15644/* end confdefs.h. */ 15645$ac_includes_default 15646int 15647main () 15648{ 15649static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 15650test_array [0] = 0 15651 15652 ; 15653 return 0; 15654} 15655_ACEOF 15656rm -f conftest.$ac_objext 15657if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15658 (eval $ac_compile) 2>conftest.er1 15659 ac_status=$? 15660 grep -v '^ *+' conftest.er1 >conftest.err 15661 rm -f conftest.er1 15662 cat conftest.err >&5 15663 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15664 (exit $ac_status); } && 15665 { ac_try='test -z "$ac_c_werror_flag" 15666 || test ! -s conftest.err' 15667 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15668 (eval $ac_try) 2>&5 15669 ac_status=$? 15670 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15671 (exit $ac_status); }; } && 15672 { ac_try='test -s conftest.$ac_objext' 15673 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15674 (eval $ac_try) 2>&5 15675 ac_status=$? 15676 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15677 (exit $ac_status); }; }; then 15678 ac_hi=$ac_mid; break 15679else 15680 echo "$as_me: failed program was:" >&5 15681sed 's/^/| /' conftest.$ac_ext >&5 15682 15683ac_lo=`expr $ac_mid + 1` 15684 if test $ac_lo -le $ac_mid; then 15685 ac_lo= ac_hi= 15686 break 15687 fi 15688 ac_mid=`expr 2 '*' $ac_mid + 1` 15689fi 15690rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15691 done 15692else 15693 echo "$as_me: failed program was:" >&5 15694sed 's/^/| /' conftest.$ac_ext >&5 15695 15696cat >conftest.$ac_ext <<_ACEOF 15697/* confdefs.h. */ 15698_ACEOF 15699cat confdefs.h >>conftest.$ac_ext 15700cat >>conftest.$ac_ext <<_ACEOF 15701/* end confdefs.h. */ 15702$ac_includes_default 15703int 15704main () 15705{ 15706static int test_array [1 - 2 * !(((long) (sizeof (short))) < 0)]; 15707test_array [0] = 0 15708 15709 ; 15710 return 0; 15711} 15712_ACEOF 15713rm -f conftest.$ac_objext 15714if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15715 (eval $ac_compile) 2>conftest.er1 15716 ac_status=$? 15717 grep -v '^ *+' conftest.er1 >conftest.err 15718 rm -f conftest.er1 15719 cat conftest.err >&5 15720 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15721 (exit $ac_status); } && 15722 { ac_try='test -z "$ac_c_werror_flag" 15723 || test ! -s conftest.err' 15724 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15725 (eval $ac_try) 2>&5 15726 ac_status=$? 15727 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15728 (exit $ac_status); }; } && 15729 { ac_try='test -s conftest.$ac_objext' 15730 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15731 (eval $ac_try) 2>&5 15732 ac_status=$? 15733 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15734 (exit $ac_status); }; }; then 15735 ac_hi=-1 ac_mid=-1 15736 while :; do 15737 cat >conftest.$ac_ext <<_ACEOF 15738/* confdefs.h. */ 15739_ACEOF 15740cat confdefs.h >>conftest.$ac_ext 15741cat >>conftest.$ac_ext <<_ACEOF 15742/* end confdefs.h. */ 15743$ac_includes_default 15744int 15745main () 15746{ 15747static int test_array [1 - 2 * !(((long) (sizeof (short))) >= $ac_mid)]; 15748test_array [0] = 0 15749 15750 ; 15751 return 0; 15752} 15753_ACEOF 15754rm -f conftest.$ac_objext 15755if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15756 (eval $ac_compile) 2>conftest.er1 15757 ac_status=$? 15758 grep -v '^ *+' conftest.er1 >conftest.err 15759 rm -f conftest.er1 15760 cat conftest.err >&5 15761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15762 (exit $ac_status); } && 15763 { ac_try='test -z "$ac_c_werror_flag" 15764 || test ! -s conftest.err' 15765 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15766 (eval $ac_try) 2>&5 15767 ac_status=$? 15768 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15769 (exit $ac_status); }; } && 15770 { ac_try='test -s conftest.$ac_objext' 15771 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15772 (eval $ac_try) 2>&5 15773 ac_status=$? 15774 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15775 (exit $ac_status); }; }; then 15776 ac_lo=$ac_mid; break 15777else 15778 echo "$as_me: failed program was:" >&5 15779sed 's/^/| /' conftest.$ac_ext >&5 15780 15781ac_hi=`expr '(' $ac_mid ')' - 1` 15782 if test $ac_mid -le $ac_hi; then 15783 ac_lo= ac_hi= 15784 break 15785 fi 15786 ac_mid=`expr 2 '*' $ac_mid` 15787fi 15788rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15789 done 15790else 15791 echo "$as_me: failed program was:" >&5 15792sed 's/^/| /' conftest.$ac_ext >&5 15793 15794ac_lo= ac_hi= 15795fi 15796rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15797fi 15798rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15799# Binary search between lo and hi bounds. 15800while test "x$ac_lo" != "x$ac_hi"; do 15801 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 15802 cat >conftest.$ac_ext <<_ACEOF 15803/* confdefs.h. */ 15804_ACEOF 15805cat confdefs.h >>conftest.$ac_ext 15806cat >>conftest.$ac_ext <<_ACEOF 15807/* end confdefs.h. */ 15808$ac_includes_default 15809int 15810main () 15811{ 15812static int test_array [1 - 2 * !(((long) (sizeof (short))) <= $ac_mid)]; 15813test_array [0] = 0 15814 15815 ; 15816 return 0; 15817} 15818_ACEOF 15819rm -f conftest.$ac_objext 15820if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15821 (eval $ac_compile) 2>conftest.er1 15822 ac_status=$? 15823 grep -v '^ *+' conftest.er1 >conftest.err 15824 rm -f conftest.er1 15825 cat conftest.err >&5 15826 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15827 (exit $ac_status); } && 15828 { ac_try='test -z "$ac_c_werror_flag" 15829 || test ! -s conftest.err' 15830 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15831 (eval $ac_try) 2>&5 15832 ac_status=$? 15833 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15834 (exit $ac_status); }; } && 15835 { ac_try='test -s conftest.$ac_objext' 15836 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15837 (eval $ac_try) 2>&5 15838 ac_status=$? 15839 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15840 (exit $ac_status); }; }; then 15841 ac_hi=$ac_mid 15842else 15843 echo "$as_me: failed program was:" >&5 15844sed 's/^/| /' conftest.$ac_ext >&5 15845 15846ac_lo=`expr '(' $ac_mid ')' + 1` 15847fi 15848rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15849done 15850case $ac_lo in 15851?*) ac_cv_sizeof_short=$ac_lo;; 15852'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 15853See \`config.log' for more details." >&5 15854echo "$as_me: error: cannot compute sizeof (short), 77 15855See \`config.log' for more details." >&2;} 15856 { (exit 1); exit 1; }; } ;; 15857esac 15858else 15859 if test "$cross_compiling" = yes; then 15860 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 15861See \`config.log' for more details." >&5 15862echo "$as_me: error: cannot run test program while cross compiling 15863See \`config.log' for more details." >&2;} 15864 { (exit 1); exit 1; }; } 15865else 15866 cat >conftest.$ac_ext <<_ACEOF 15867/* confdefs.h. */ 15868_ACEOF 15869cat confdefs.h >>conftest.$ac_ext 15870cat >>conftest.$ac_ext <<_ACEOF 15871/* end confdefs.h. */ 15872$ac_includes_default 15873long longval () { return (long) (sizeof (short)); } 15874unsigned long ulongval () { return (long) (sizeof (short)); } 15875#include <stdio.h> 15876#include <stdlib.h> 15877int 15878main () 15879{ 15880 15881 FILE *f = fopen ("conftest.val", "w"); 15882 if (! f) 15883 exit (1); 15884 if (((long) (sizeof (short))) < 0) 15885 { 15886 long i = longval (); 15887 if (i != ((long) (sizeof (short)))) 15888 exit (1); 15889 fprintf (f, "%ld\n", i); 15890 } 15891 else 15892 { 15893 unsigned long i = ulongval (); 15894 if (i != ((long) (sizeof (short)))) 15895 exit (1); 15896 fprintf (f, "%lu\n", i); 15897 } 15898 exit (ferror (f) || fclose (f) != 0); 15899 15900 ; 15901 return 0; 15902} 15903_ACEOF 15904rm -f conftest$ac_exeext 15905if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 15906 (eval $ac_link) 2>&5 15907 ac_status=$? 15908 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15909 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 15910 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15911 (eval $ac_try) 2>&5 15912 ac_status=$? 15913 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15914 (exit $ac_status); }; }; then 15915 ac_cv_sizeof_short=`cat conftest.val` 15916else 15917 echo "$as_me: program exited with status $ac_status" >&5 15918echo "$as_me: failed program was:" >&5 15919sed 's/^/| /' conftest.$ac_ext >&5 15920 15921( exit $ac_status ) 15922{ { echo "$as_me:$LINENO: error: cannot compute sizeof (short), 77 15923See \`config.log' for more details." >&5 15924echo "$as_me: error: cannot compute sizeof (short), 77 15925See \`config.log' for more details." >&2;} 15926 { (exit 1); exit 1; }; } 15927fi 15928rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 15929fi 15930fi 15931rm -f conftest.val 15932else 15933 ac_cv_sizeof_short=0 15934fi 15935fi 15936echo "$as_me:$LINENO: result: $ac_cv_sizeof_short" >&5 15937echo "${ECHO_T}$ac_cv_sizeof_short" >&6 15938cat >>confdefs.h <<_ACEOF 15939#define SIZEOF_SHORT $ac_cv_sizeof_short 15940_ACEOF 15941 15942 15943 echo "$as_me:$LINENO: checking for char" >&5 15944echo $ECHO_N "checking for char... $ECHO_C" >&6 15945if test "${ac_cv_type_char+set}" = set; then 15946 echo $ECHO_N "(cached) $ECHO_C" >&6 15947else 15948 cat >conftest.$ac_ext <<_ACEOF 15949/* confdefs.h. */ 15950_ACEOF 15951cat confdefs.h >>conftest.$ac_ext 15952cat >>conftest.$ac_ext <<_ACEOF 15953/* end confdefs.h. */ 15954$ac_includes_default 15955int 15956main () 15957{ 15958if ((char *) 0) 15959 return 0; 15960if (sizeof (char)) 15961 return 0; 15962 ; 15963 return 0; 15964} 15965_ACEOF 15966rm -f conftest.$ac_objext 15967if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 15968 (eval $ac_compile) 2>conftest.er1 15969 ac_status=$? 15970 grep -v '^ *+' conftest.er1 >conftest.err 15971 rm -f conftest.er1 15972 cat conftest.err >&5 15973 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15974 (exit $ac_status); } && 15975 { ac_try='test -z "$ac_c_werror_flag" 15976 || test ! -s conftest.err' 15977 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15978 (eval $ac_try) 2>&5 15979 ac_status=$? 15980 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15981 (exit $ac_status); }; } && 15982 { ac_try='test -s conftest.$ac_objext' 15983 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 15984 (eval $ac_try) 2>&5 15985 ac_status=$? 15986 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15987 (exit $ac_status); }; }; then 15988 ac_cv_type_char=yes 15989else 15990 echo "$as_me: failed program was:" >&5 15991sed 's/^/| /' conftest.$ac_ext >&5 15992 15993ac_cv_type_char=no 15994fi 15995rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 15996fi 15997echo "$as_me:$LINENO: result: $ac_cv_type_char" >&5 15998echo "${ECHO_T}$ac_cv_type_char" >&6 15999 16000echo "$as_me:$LINENO: checking size of char" >&5 16001echo $ECHO_N "checking size of char... $ECHO_C" >&6 16002if test "${ac_cv_sizeof_char+set}" = set; then 16003 echo $ECHO_N "(cached) $ECHO_C" >&6 16004else 16005 if test "$ac_cv_type_char" = yes; then 16006 # The cast to unsigned long works around a bug in the HP C Compiler 16007 # version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 16008 # declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 16009 # This bug is HP SR number 8606223364. 16010 if test "$cross_compiling" = yes; then 16011 # Depending upon the size, compute the lo and hi bounds. 16012cat >conftest.$ac_ext <<_ACEOF 16013/* confdefs.h. */ 16014_ACEOF 16015cat confdefs.h >>conftest.$ac_ext 16016cat >>conftest.$ac_ext <<_ACEOF 16017/* end confdefs.h. */ 16018$ac_includes_default 16019int 16020main () 16021{ 16022static int test_array [1 - 2 * !(((long) (sizeof (char))) >= 0)]; 16023test_array [0] = 0 16024 16025 ; 16026 return 0; 16027} 16028_ACEOF 16029rm -f conftest.$ac_objext 16030if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16031 (eval $ac_compile) 2>conftest.er1 16032 ac_status=$? 16033 grep -v '^ *+' conftest.er1 >conftest.err 16034 rm -f conftest.er1 16035 cat conftest.err >&5 16036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16037 (exit $ac_status); } && 16038 { ac_try='test -z "$ac_c_werror_flag" 16039 || test ! -s conftest.err' 16040 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16041 (eval $ac_try) 2>&5 16042 ac_status=$? 16043 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16044 (exit $ac_status); }; } && 16045 { ac_try='test -s conftest.$ac_objext' 16046 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16047 (eval $ac_try) 2>&5 16048 ac_status=$? 16049 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16050 (exit $ac_status); }; }; then 16051 ac_lo=0 ac_mid=0 16052 while :; do 16053 cat >conftest.$ac_ext <<_ACEOF 16054/* confdefs.h. */ 16055_ACEOF 16056cat confdefs.h >>conftest.$ac_ext 16057cat >>conftest.$ac_ext <<_ACEOF 16058/* end confdefs.h. */ 16059$ac_includes_default 16060int 16061main () 16062{ 16063static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 16064test_array [0] = 0 16065 16066 ; 16067 return 0; 16068} 16069_ACEOF 16070rm -f conftest.$ac_objext 16071if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16072 (eval $ac_compile) 2>conftest.er1 16073 ac_status=$? 16074 grep -v '^ *+' conftest.er1 >conftest.err 16075 rm -f conftest.er1 16076 cat conftest.err >&5 16077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16078 (exit $ac_status); } && 16079 { ac_try='test -z "$ac_c_werror_flag" 16080 || test ! -s conftest.err' 16081 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16082 (eval $ac_try) 2>&5 16083 ac_status=$? 16084 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16085 (exit $ac_status); }; } && 16086 { ac_try='test -s conftest.$ac_objext' 16087 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16088 (eval $ac_try) 2>&5 16089 ac_status=$? 16090 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16091 (exit $ac_status); }; }; then 16092 ac_hi=$ac_mid; break 16093else 16094 echo "$as_me: failed program was:" >&5 16095sed 's/^/| /' conftest.$ac_ext >&5 16096 16097ac_lo=`expr $ac_mid + 1` 16098 if test $ac_lo -le $ac_mid; then 16099 ac_lo= ac_hi= 16100 break 16101 fi 16102 ac_mid=`expr 2 '*' $ac_mid + 1` 16103fi 16104rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16105 done 16106else 16107 echo "$as_me: failed program was:" >&5 16108sed 's/^/| /' conftest.$ac_ext >&5 16109 16110cat >conftest.$ac_ext <<_ACEOF 16111/* confdefs.h. */ 16112_ACEOF 16113cat confdefs.h >>conftest.$ac_ext 16114cat >>conftest.$ac_ext <<_ACEOF 16115/* end confdefs.h. */ 16116$ac_includes_default 16117int 16118main () 16119{ 16120static int test_array [1 - 2 * !(((long) (sizeof (char))) < 0)]; 16121test_array [0] = 0 16122 16123 ; 16124 return 0; 16125} 16126_ACEOF 16127rm -f conftest.$ac_objext 16128if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16129 (eval $ac_compile) 2>conftest.er1 16130 ac_status=$? 16131 grep -v '^ *+' conftest.er1 >conftest.err 16132 rm -f conftest.er1 16133 cat conftest.err >&5 16134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16135 (exit $ac_status); } && 16136 { ac_try='test -z "$ac_c_werror_flag" 16137 || test ! -s conftest.err' 16138 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16139 (eval $ac_try) 2>&5 16140 ac_status=$? 16141 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16142 (exit $ac_status); }; } && 16143 { ac_try='test -s conftest.$ac_objext' 16144 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16145 (eval $ac_try) 2>&5 16146 ac_status=$? 16147 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16148 (exit $ac_status); }; }; then 16149 ac_hi=-1 ac_mid=-1 16150 while :; do 16151 cat >conftest.$ac_ext <<_ACEOF 16152/* confdefs.h. */ 16153_ACEOF 16154cat confdefs.h >>conftest.$ac_ext 16155cat >>conftest.$ac_ext <<_ACEOF 16156/* end confdefs.h. */ 16157$ac_includes_default 16158int 16159main () 16160{ 16161static int test_array [1 - 2 * !(((long) (sizeof (char))) >= $ac_mid)]; 16162test_array [0] = 0 16163 16164 ; 16165 return 0; 16166} 16167_ACEOF 16168rm -f conftest.$ac_objext 16169if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16170 (eval $ac_compile) 2>conftest.er1 16171 ac_status=$? 16172 grep -v '^ *+' conftest.er1 >conftest.err 16173 rm -f conftest.er1 16174 cat conftest.err >&5 16175 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16176 (exit $ac_status); } && 16177 { ac_try='test -z "$ac_c_werror_flag" 16178 || test ! -s conftest.err' 16179 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16180 (eval $ac_try) 2>&5 16181 ac_status=$? 16182 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16183 (exit $ac_status); }; } && 16184 { ac_try='test -s conftest.$ac_objext' 16185 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16186 (eval $ac_try) 2>&5 16187 ac_status=$? 16188 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16189 (exit $ac_status); }; }; then 16190 ac_lo=$ac_mid; break 16191else 16192 echo "$as_me: failed program was:" >&5 16193sed 's/^/| /' conftest.$ac_ext >&5 16194 16195ac_hi=`expr '(' $ac_mid ')' - 1` 16196 if test $ac_mid -le $ac_hi; then 16197 ac_lo= ac_hi= 16198 break 16199 fi 16200 ac_mid=`expr 2 '*' $ac_mid` 16201fi 16202rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16203 done 16204else 16205 echo "$as_me: failed program was:" >&5 16206sed 's/^/| /' conftest.$ac_ext >&5 16207 16208ac_lo= ac_hi= 16209fi 16210rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16211fi 16212rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16213# Binary search between lo and hi bounds. 16214while test "x$ac_lo" != "x$ac_hi"; do 16215 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 16216 cat >conftest.$ac_ext <<_ACEOF 16217/* confdefs.h. */ 16218_ACEOF 16219cat confdefs.h >>conftest.$ac_ext 16220cat >>conftest.$ac_ext <<_ACEOF 16221/* end confdefs.h. */ 16222$ac_includes_default 16223int 16224main () 16225{ 16226static int test_array [1 - 2 * !(((long) (sizeof (char))) <= $ac_mid)]; 16227test_array [0] = 0 16228 16229 ; 16230 return 0; 16231} 16232_ACEOF 16233rm -f conftest.$ac_objext 16234if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 16235 (eval $ac_compile) 2>conftest.er1 16236 ac_status=$? 16237 grep -v '^ *+' conftest.er1 >conftest.err 16238 rm -f conftest.er1 16239 cat conftest.err >&5 16240 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16241 (exit $ac_status); } && 16242 { ac_try='test -z "$ac_c_werror_flag" 16243 || test ! -s conftest.err' 16244 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16245 (eval $ac_try) 2>&5 16246 ac_status=$? 16247 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16248 (exit $ac_status); }; } && 16249 { ac_try='test -s conftest.$ac_objext' 16250 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16251 (eval $ac_try) 2>&5 16252 ac_status=$? 16253 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16254 (exit $ac_status); }; }; then 16255 ac_hi=$ac_mid 16256else 16257 echo "$as_me: failed program was:" >&5 16258sed 's/^/| /' conftest.$ac_ext >&5 16259 16260ac_lo=`expr '(' $ac_mid ')' + 1` 16261fi 16262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 16263done 16264case $ac_lo in 16265?*) ac_cv_sizeof_char=$ac_lo;; 16266'') { { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 16267See \`config.log' for more details." >&5 16268echo "$as_me: error: cannot compute sizeof (char), 77 16269See \`config.log' for more details." >&2;} 16270 { (exit 1); exit 1; }; } ;; 16271esac 16272else 16273 if test "$cross_compiling" = yes; then 16274 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 16275See \`config.log' for more details." >&5 16276echo "$as_me: error: cannot run test program while cross compiling 16277See \`config.log' for more details." >&2;} 16278 { (exit 1); exit 1; }; } 16279else 16280 cat >conftest.$ac_ext <<_ACEOF 16281/* confdefs.h. */ 16282_ACEOF 16283cat confdefs.h >>conftest.$ac_ext 16284cat >>conftest.$ac_ext <<_ACEOF 16285/* end confdefs.h. */ 16286$ac_includes_default 16287long longval () { return (long) (sizeof (char)); } 16288unsigned long ulongval () { return (long) (sizeof (char)); } 16289#include <stdio.h> 16290#include <stdlib.h> 16291int 16292main () 16293{ 16294 16295 FILE *f = fopen ("conftest.val", "w"); 16296 if (! f) 16297 exit (1); 16298 if (((long) (sizeof (char))) < 0) 16299 { 16300 long i = longval (); 16301 if (i != ((long) (sizeof (char)))) 16302 exit (1); 16303 fprintf (f, "%ld\n", i); 16304 } 16305 else 16306 { 16307 unsigned long i = ulongval (); 16308 if (i != ((long) (sizeof (char)))) 16309 exit (1); 16310 fprintf (f, "%lu\n", i); 16311 } 16312 exit (ferror (f) || fclose (f) != 0); 16313 16314 ; 16315 return 0; 16316} 16317_ACEOF 16318rm -f conftest$ac_exeext 16319if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16320 (eval $ac_link) 2>&5 16321 ac_status=$? 16322 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16323 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 16324 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16325 (eval $ac_try) 2>&5 16326 ac_status=$? 16327 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16328 (exit $ac_status); }; }; then 16329 ac_cv_sizeof_char=`cat conftest.val` 16330else 16331 echo "$as_me: program exited with status $ac_status" >&5 16332echo "$as_me: failed program was:" >&5 16333sed 's/^/| /' conftest.$ac_ext >&5 16334 16335( exit $ac_status ) 16336{ { echo "$as_me:$LINENO: error: cannot compute sizeof (char), 77 16337See \`config.log' for more details." >&5 16338echo "$as_me: error: cannot compute sizeof (char), 77 16339See \`config.log' for more details." >&2;} 16340 { (exit 1); exit 1; }; } 16341fi 16342rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 16343fi 16344fi 16345rm -f conftest.val 16346else 16347 ac_cv_sizeof_char=0 16348fi 16349fi 16350echo "$as_me:$LINENO: result: $ac_cv_sizeof_char" >&5 16351echo "${ECHO_T}$ac_cv_sizeof_char" >&6 16352cat >>confdefs.h <<_ACEOF 16353#define SIZEOF_CHAR $ac_cv_sizeof_char 16354_ACEOF 16355 16356 16357 16358 echo "$as_me:$LINENO: checking for type equivalent to int8_t" >&5 16359echo $ECHO_N "checking for type equivalent to int8_t... $ECHO_C" >&6 16360 case "$ac_cv_sizeof_char" in 16361 1) acx_cv_type_int8_t=char ;; 16362 *) { { echo "$as_me:$LINENO: error: no 8-bit type" >&5 16363echo "$as_me: error: no 8-bit type" >&2;} 16364 { (exit please report a bug); exit please report a bug; }; } 16365 esac 16366 echo "$as_me:$LINENO: result: $acx_cv_type_int8_t" >&5 16367echo "${ECHO_T}$acx_cv_type_int8_t" >&6 16368 16369 echo "$as_me:$LINENO: checking for type equivalent to int16_t" >&5 16370echo $ECHO_N "checking for type equivalent to int16_t... $ECHO_C" >&6 16371 case "$ac_cv_sizeof_int:$ac_cv_sizeof_short" in 16372 2:*) acx_cv_type_int16_t=int ;; 16373 *:2) acx_cv_type_int16_t=short ;; 16374 *) { { echo "$as_me:$LINENO: error: no 16-bit type" >&5 16375echo "$as_me: error: no 16-bit type" >&2;} 16376 { (exit please report a bug); exit please report a bug; }; } 16377 esac 16378 echo "$as_me:$LINENO: result: $acx_cv_type_int16_t" >&5 16379echo "${ECHO_T}$acx_cv_type_int16_t" >&6 16380 16381 echo "$as_me:$LINENO: checking for type equivalent to int32_t" >&5 16382echo $ECHO_N "checking for type equivalent to int32_t... $ECHO_C" >&6 16383 case "$ac_cv_sizeof_int:$ac_cv_sizeof_long" in 16384 4:*) acx_cv_type_int32_t=int ;; 16385 *:4) acx_cv_type_int32_t=long ;; 16386 *) { { echo "$as_me:$LINENO: error: no 32-bit type" >&5 16387echo "$as_me: error: no 32-bit type" >&2;} 16388 { (exit please report a bug); exit please report a bug; }; } 16389 esac 16390 echo "$as_me:$LINENO: result: $acx_cv_type_int32_t" >&5 16391echo "${ECHO_T}$acx_cv_type_int32_t" >&6 16392fi 16393 16394# These tests are here to make the output prettier 16395 16396if test "$ac_cv_type_uint64_t" != yes && test "$ac_cv_type_u_int64_t" != yes; then 16397 case "$ac_cv_sizeof_long" in 16398 8) acx_cv_type_int64_t=long ;; 16399 esac 16400 echo "$as_me:$LINENO: checking for type equivalent to int64_t" >&5 16401echo $ECHO_N "checking for type equivalent to int64_t... $ECHO_C" >&6 16402 echo "$as_me:$LINENO: result: ${acx_cv_type_int64_t-'using preprocessor symbols'}" >&5 16403echo "${ECHO_T}${acx_cv_type_int64_t-'using preprocessor symbols'}" >&6 16404fi 16405 16406# Now we can use the above types 16407 16408if test "$ac_cv_type_uintptr_t" != yes; then 16409 echo "$as_me:$LINENO: checking for type equivalent to intptr_t" >&5 16410echo $ECHO_N "checking for type equivalent to intptr_t... $ECHO_C" >&6 16411 case $ac_cv_sizeof_void_p in 16412 2) acx_cv_type_intptr_t=int16_t ;; 16413 4) acx_cv_type_intptr_t=int32_t ;; 16414 8) acx_cv_type_intptr_t=int64_t ;; 16415 *) { { echo "$as_me:$LINENO: error: no equivalent for intptr_t" >&5 16416echo "$as_me: error: no equivalent for intptr_t" >&2;} 16417 { (exit please report a bug); exit please report a bug; }; } 16418 esac 16419 echo "$as_me:$LINENO: result: $acx_cv_type_intptr_t" >&5 16420echo "${ECHO_T}$acx_cv_type_intptr_t" >&6 16421fi 16422 16423# ----------------- done all checks, emit header ------------- 16424 ac_config_commands="$ac_config_commands gstdint.h" 16425 16426 16427 16428 16429# Check to see if -pthread or -lpthread is needed. Prefer the former. 16430# In case the pthread.h system header is not found, this test will fail. 16431XPCFLAGS="" 16432CFLAGS="$CFLAGS -pthread" 16433cat >conftest.$ac_ext <<_ACEOF 16434/* confdefs.h. */ 16435_ACEOF 16436cat confdefs.h >>conftest.$ac_ext 16437cat >>conftest.$ac_ext <<_ACEOF 16438/* end confdefs.h. */ 16439#include <pthread.h> 16440 void *g(void *d) { return NULL; } 16441int 16442main () 16443{ 16444pthread_t t; pthread_create(&t,NULL,g,NULL); 16445 ; 16446 return 0; 16447} 16448_ACEOF 16449rm -f conftest.$ac_objext conftest$ac_exeext 16450if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16451 (eval $ac_link) 2>conftest.er1 16452 ac_status=$? 16453 grep -v '^ *+' conftest.er1 >conftest.err 16454 rm -f conftest.er1 16455 cat conftest.err >&5 16456 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16457 (exit $ac_status); } && 16458 { ac_try='test -z "$ac_c_werror_flag" 16459 || test ! -s conftest.err' 16460 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16461 (eval $ac_try) 2>&5 16462 ac_status=$? 16463 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16464 (exit $ac_status); }; } && 16465 { ac_try='test -s conftest$ac_exeext' 16466 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16467 (eval $ac_try) 2>&5 16468 ac_status=$? 16469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16470 (exit $ac_status); }; }; then 16471 XPCFLAGS=" -Wc,-pthread" 16472else 16473 echo "$as_me: failed program was:" >&5 16474sed 's/^/| /' conftest.$ac_ext >&5 16475 16476CFLAGS="$save_CFLAGS" LIBS="-lpthread $LIBS" 16477 cat >conftest.$ac_ext <<_ACEOF 16478/* confdefs.h. */ 16479_ACEOF 16480cat confdefs.h >>conftest.$ac_ext 16481cat >>conftest.$ac_ext <<_ACEOF 16482/* end confdefs.h. */ 16483#include <pthread.h> 16484 void *g(void *d) { return NULL; } 16485int 16486main () 16487{ 16488pthread_t t; pthread_create(&t,NULL,g,NULL); 16489 ; 16490 return 0; 16491} 16492_ACEOF 16493rm -f conftest.$ac_objext conftest$ac_exeext 16494if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16495 (eval $ac_link) 2>conftest.er1 16496 ac_status=$? 16497 grep -v '^ *+' conftest.er1 >conftest.err 16498 rm -f conftest.er1 16499 cat conftest.err >&5 16500 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16501 (exit $ac_status); } && 16502 { ac_try='test -z "$ac_c_werror_flag" 16503 || test ! -s conftest.err' 16504 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16505 (eval $ac_try) 2>&5 16506 ac_status=$? 16507 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16508 (exit $ac_status); }; } && 16509 { ac_try='test -s conftest$ac_exeext' 16510 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16511 (eval $ac_try) 2>&5 16512 ac_status=$? 16513 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16514 (exit $ac_status); }; }; then 16515 : 16516else 16517 echo "$as_me: failed program was:" >&5 16518sed 's/^/| /' conftest.$ac_ext >&5 16519 16520{ { echo "$as_me:$LINENO: error: Pthreads are required to build libgomp" >&5 16521echo "$as_me: error: Pthreads are required to build libgomp" >&2;} 16522 { (exit 1); exit 1; }; } 16523fi 16524rm -f conftest.err conftest.$ac_objext \ 16525 conftest$ac_exeext conftest.$ac_ext 16526fi 16527rm -f conftest.err conftest.$ac_objext \ 16528 conftest$ac_exeext conftest.$ac_ext 16529 16530# Check for functions needed. 16531 16532 16533for ac_func in getloadavg clock_gettime 16534do 16535as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` 16536echo "$as_me:$LINENO: checking for $ac_func" >&5 16537echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 16538if eval "test \"\${$as_ac_var+set}\" = set"; then 16539 echo $ECHO_N "(cached) $ECHO_C" >&6 16540else 16541 cat >conftest.$ac_ext <<_ACEOF 16542/* confdefs.h. */ 16543_ACEOF 16544cat confdefs.h >>conftest.$ac_ext 16545cat >>conftest.$ac_ext <<_ACEOF 16546/* end confdefs.h. */ 16547/* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. 16548 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 16549#define $ac_func innocuous_$ac_func 16550 16551/* System header to define __stub macros and hopefully few prototypes, 16552 which can conflict with char $ac_func (); below. 16553 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 16554 <limits.h> exists even on freestanding compilers. */ 16555 16556#ifdef __STDC__ 16557# include <limits.h> 16558#else 16559# include <assert.h> 16560#endif 16561 16562#undef $ac_func 16563 16564/* Override any gcc2 internal prototype to avoid an error. */ 16565#ifdef __cplusplus 16566extern "C" 16567{ 16568#endif 16569/* We use char because int might match the return type of a gcc2 16570 builtin and then its argument prototype would still apply. */ 16571char $ac_func (); 16572/* The GNU C library defines this for functions which it implements 16573 to always fail with ENOSYS. Some functions are actually named 16574 something starting with __ and the normal name is an alias. */ 16575#if defined (__stub_$ac_func) || defined (__stub___$ac_func) 16576choke me 16577#else 16578char (*f) () = $ac_func; 16579#endif 16580#ifdef __cplusplus 16581} 16582#endif 16583 16584int 16585main () 16586{ 16587return f != $ac_func; 16588 ; 16589 return 0; 16590} 16591_ACEOF 16592rm -f conftest.$ac_objext conftest$ac_exeext 16593if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16594 (eval $ac_link) 2>conftest.er1 16595 ac_status=$? 16596 grep -v '^ *+' conftest.er1 >conftest.err 16597 rm -f conftest.er1 16598 cat conftest.err >&5 16599 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16600 (exit $ac_status); } && 16601 { ac_try='test -z "$ac_c_werror_flag" 16602 || test ! -s conftest.err' 16603 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16604 (eval $ac_try) 2>&5 16605 ac_status=$? 16606 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16607 (exit $ac_status); }; } && 16608 { ac_try='test -s conftest$ac_exeext' 16609 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16610 (eval $ac_try) 2>&5 16611 ac_status=$? 16612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16613 (exit $ac_status); }; }; then 16614 eval "$as_ac_var=yes" 16615else 16616 echo "$as_me: failed program was:" >&5 16617sed 's/^/| /' conftest.$ac_ext >&5 16618 16619eval "$as_ac_var=no" 16620fi 16621rm -f conftest.err conftest.$ac_objext \ 16622 conftest$ac_exeext conftest.$ac_ext 16623fi 16624echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 16625echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 16626if test `eval echo '${'$as_ac_var'}'` = yes; then 16627 cat >>confdefs.h <<_ACEOF 16628#define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 16629_ACEOF 16630 16631fi 16632done 16633 16634 16635# Check for broken semaphore implementation on darwin. 16636# sem_init returns: sem_init error: Function not implemented. 16637case "$host" in 16638 *-darwin*) 16639 16640cat >>confdefs.h <<\_ACEOF 16641#define HAVE_BROKEN_POSIX_SEMAPHORES 1 16642_ACEOF 16643 16644 ;; 16645esac 16646 16647 # Check whether --enable-linux-futex or --disable-linux-futex was given. 16648if test "${enable_linux_futex+set}" = set; then 16649 enableval="$enable_linux_futex" 16650 16651 case "$enableval" in 16652 yes|no|default) ;; 16653 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable linux-futex" >&5 16654echo "$as_me: error: Unknown argument to enable/disable linux-futex" >&2;} 16655 { (exit 1); exit 1; }; } ;; 16656 esac 16657 16658else 16659 enable_linux_futex=default 16660fi; 16661 16662case "$target" in 16663 *-linux*) 16664 case "$enable_linux_futex" in 16665 default) 16666 # If headers don't have gettid/futex syscalls definition, then 16667 # default to no, otherwise there will be compile time failures. 16668 # Otherwise, default to yes. If we don't detect we are 16669 # compiled/linked against NPTL and not cross-compiling, check 16670 # if programs are run by default against NPTL and if not, issue 16671 # a warning. 16672 enable_linux_futex=no 16673 cat >conftest.$ac_ext <<_ACEOF 16674/* confdefs.h. */ 16675_ACEOF 16676cat confdefs.h >>conftest.$ac_ext 16677cat >>conftest.$ac_ext <<_ACEOF 16678/* end confdefs.h. */ 16679#include <sys/syscall.h> 16680 int lk; 16681int 16682main () 16683{ 16684syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 16685 ; 16686 return 0; 16687} 16688_ACEOF 16689rm -f conftest.$ac_objext conftest$ac_exeext 16690if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16691 (eval $ac_link) 2>conftest.er1 16692 ac_status=$? 16693 grep -v '^ *+' conftest.er1 >conftest.err 16694 rm -f conftest.er1 16695 cat conftest.err >&5 16696 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16697 (exit $ac_status); } && 16698 { ac_try='test -z "$ac_c_werror_flag" 16699 || test ! -s conftest.err' 16700 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16701 (eval $ac_try) 2>&5 16702 ac_status=$? 16703 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16704 (exit $ac_status); }; } && 16705 { ac_try='test -s conftest$ac_exeext' 16706 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16707 (eval $ac_try) 2>&5 16708 ac_status=$? 16709 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16710 (exit $ac_status); }; }; then 16711 save_LIBS="$LIBS" 16712 LIBS="-lpthread $LIBS" 16713 cat >conftest.$ac_ext <<_ACEOF 16714/* confdefs.h. */ 16715_ACEOF 16716cat confdefs.h >>conftest.$ac_ext 16717cat >>conftest.$ac_ext <<_ACEOF 16718/* end confdefs.h. */ 16719#ifndef _GNU_SOURCE 16720 #define _GNU_SOURCE 1 16721 #endif 16722 #include <pthread.h> 16723 pthread_t th; void *status; 16724int 16725main () 16726{ 16727pthread_tryjoin_np (th, &status); 16728 ; 16729 return 0; 16730} 16731_ACEOF 16732rm -f conftest.$ac_objext conftest$ac_exeext 16733if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16734 (eval $ac_link) 2>conftest.er1 16735 ac_status=$? 16736 grep -v '^ *+' conftest.er1 >conftest.err 16737 rm -f conftest.er1 16738 cat conftest.err >&5 16739 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16740 (exit $ac_status); } && 16741 { ac_try='test -z "$ac_c_werror_flag" 16742 || test ! -s conftest.err' 16743 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16744 (eval $ac_try) 2>&5 16745 ac_status=$? 16746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16747 (exit $ac_status); }; } && 16748 { ac_try='test -s conftest$ac_exeext' 16749 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16750 (eval $ac_try) 2>&5 16751 ac_status=$? 16752 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16753 (exit $ac_status); }; }; then 16754 enable_linux_futex=yes 16755else 16756 echo "$as_me: failed program was:" >&5 16757sed 's/^/| /' conftest.$ac_ext >&5 16758 16759if test x$cross_compiling = xno; then 16760 if getconf GNU_LIBPTHREAD_VERSION 2>/dev/null \ 16761 | LC_ALL=C grep -i NPTL > /dev/null 2>/dev/null; then :; else 16762 { echo "$as_me:$LINENO: WARNING: The kernel might not support futex or gettid syscalls. 16763If so, please configure with --disable-linux-futex" >&5 16764echo "$as_me: WARNING: The kernel might not support futex or gettid syscalls. 16765If so, please configure with --disable-linux-futex" >&2;} 16766 fi 16767 fi 16768 enable_linux_futex=yes 16769fi 16770rm -f conftest.err conftest.$ac_objext \ 16771 conftest$ac_exeext conftest.$ac_ext 16772 LIBS="$save_LIBS" 16773else 16774 echo "$as_me: failed program was:" >&5 16775sed 's/^/| /' conftest.$ac_ext >&5 16776 16777fi 16778rm -f conftest.err conftest.$ac_objext \ 16779 conftest$ac_exeext conftest.$ac_ext 16780 ;; 16781 yes) 16782 cat >conftest.$ac_ext <<_ACEOF 16783/* confdefs.h. */ 16784_ACEOF 16785cat confdefs.h >>conftest.$ac_ext 16786cat >>conftest.$ac_ext <<_ACEOF 16787/* end confdefs.h. */ 16788#include <sys/syscall.h> 16789 int lk; 16790int 16791main () 16792{ 16793syscall (SYS_gettid); syscall (SYS_futex, &lk, 0, 0, 0); 16794 ; 16795 return 0; 16796} 16797_ACEOF 16798rm -f conftest.$ac_objext conftest$ac_exeext 16799if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16800 (eval $ac_link) 2>conftest.er1 16801 ac_status=$? 16802 grep -v '^ *+' conftest.er1 >conftest.err 16803 rm -f conftest.er1 16804 cat conftest.err >&5 16805 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16806 (exit $ac_status); } && 16807 { ac_try='test -z "$ac_c_werror_flag" 16808 || test ! -s conftest.err' 16809 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16810 (eval $ac_try) 2>&5 16811 ac_status=$? 16812 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16813 (exit $ac_status); }; } && 16814 { ac_try='test -s conftest$ac_exeext' 16815 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16816 (eval $ac_try) 2>&5 16817 ac_status=$? 16818 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16819 (exit $ac_status); }; }; then 16820 : 16821else 16822 echo "$as_me: failed program was:" >&5 16823sed 's/^/| /' conftest.$ac_ext >&5 16824 16825{ { echo "$as_me:$LINENO: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&5 16826echo "$as_me: error: SYS_gettid and SYS_futex required for --enable-linux-futex" >&2;} 16827 { (exit 1); exit 1; }; } 16828fi 16829rm -f conftest.err conftest.$ac_objext \ 16830 conftest$ac_exeext conftest.$ac_ext 16831 ;; 16832 esac 16833 ;; 16834 *) 16835 enable_linux_futex=no 16836 ;; 16837esac 16838if test x$enable_linux_futex = xyes; then 16839 : 16840fi 16841 16842 16843# Check for pthread_{,attr_}[sg]etaffinity_np. 16844cat >conftest.$ac_ext <<_ACEOF 16845/* confdefs.h. */ 16846_ACEOF 16847cat confdefs.h >>conftest.$ac_ext 16848cat >>conftest.$ac_ext <<_ACEOF 16849/* end confdefs.h. */ 16850#define _GNU_SOURCE 16851 #include <pthread.h> 16852int 16853main () 16854{ 16855cpu_set_t cpuset; 16856 pthread_attr_t attr; 16857 pthread_getaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 16858 if (CPU_ISSET (0, &cpuset)) 16859 CPU_SET (1, &cpuset); 16860 else 16861 CPU_ZERO (&cpuset); 16862 pthread_setaffinity_np (pthread_self (), sizeof (cpu_set_t), &cpuset); 16863 pthread_attr_init (&attr); 16864 pthread_attr_getaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 16865 pthread_attr_setaffinity_np (&attr, sizeof (cpu_set_t), &cpuset); 16866 ; 16867 return 0; 16868} 16869_ACEOF 16870rm -f conftest.$ac_objext conftest$ac_exeext 16871if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16872 (eval $ac_link) 2>conftest.er1 16873 ac_status=$? 16874 grep -v '^ *+' conftest.er1 >conftest.err 16875 rm -f conftest.er1 16876 cat conftest.err >&5 16877 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16878 (exit $ac_status); } && 16879 { ac_try='test -z "$ac_c_werror_flag" 16880 || test ! -s conftest.err' 16881 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16882 (eval $ac_try) 2>&5 16883 ac_status=$? 16884 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16885 (exit $ac_status); }; } && 16886 { ac_try='test -s conftest$ac_exeext' 16887 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16888 (eval $ac_try) 2>&5 16889 ac_status=$? 16890 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16891 (exit $ac_status); }; }; then 16892 16893cat >>confdefs.h <<\_ACEOF 16894#define HAVE_PTHREAD_AFFINITY_NP 1 16895_ACEOF 16896 16897else 16898 echo "$as_me: failed program was:" >&5 16899sed 's/^/| /' conftest.$ac_ext >&5 16900 16901fi 16902rm -f conftest.err conftest.$ac_objext \ 16903 conftest$ac_exeext conftest.$ac_ext 16904 16905# At least for glibc, clock_gettime is in librt. But don't pull that 16906# in if it still doesn't give us the function we want. 16907if test $ac_cv_func_clock_gettime = no; then 16908 echo "$as_me:$LINENO: checking for clock_gettime in -lrt" >&5 16909echo $ECHO_N "checking for clock_gettime in -lrt... $ECHO_C" >&6 16910if test "${ac_cv_lib_rt_clock_gettime+set}" = set; then 16911 echo $ECHO_N "(cached) $ECHO_C" >&6 16912else 16913 ac_check_lib_save_LIBS=$LIBS 16914LIBS="-lrt $LIBS" 16915cat >conftest.$ac_ext <<_ACEOF 16916/* confdefs.h. */ 16917_ACEOF 16918cat confdefs.h >>conftest.$ac_ext 16919cat >>conftest.$ac_ext <<_ACEOF 16920/* end confdefs.h. */ 16921 16922/* Override any gcc2 internal prototype to avoid an error. */ 16923#ifdef __cplusplus 16924extern "C" 16925#endif 16926/* We use char because int might match the return type of a gcc2 16927 builtin and then its argument prototype would still apply. */ 16928char clock_gettime (); 16929int 16930main () 16931{ 16932clock_gettime (); 16933 ; 16934 return 0; 16935} 16936_ACEOF 16937rm -f conftest.$ac_objext conftest$ac_exeext 16938if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 16939 (eval $ac_link) 2>conftest.er1 16940 ac_status=$? 16941 grep -v '^ *+' conftest.er1 >conftest.err 16942 rm -f conftest.er1 16943 cat conftest.err >&5 16944 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16945 (exit $ac_status); } && 16946 { ac_try='test -z "$ac_c_werror_flag" 16947 || test ! -s conftest.err' 16948 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16949 (eval $ac_try) 2>&5 16950 ac_status=$? 16951 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16952 (exit $ac_status); }; } && 16953 { ac_try='test -s conftest$ac_exeext' 16954 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 16955 (eval $ac_try) 2>&5 16956 ac_status=$? 16957 echo "$as_me:$LINENO: \$? = $ac_status" >&5 16958 (exit $ac_status); }; }; then 16959 ac_cv_lib_rt_clock_gettime=yes 16960else 16961 echo "$as_me: failed program was:" >&5 16962sed 's/^/| /' conftest.$ac_ext >&5 16963 16964ac_cv_lib_rt_clock_gettime=no 16965fi 16966rm -f conftest.err conftest.$ac_objext \ 16967 conftest$ac_exeext conftest.$ac_ext 16968LIBS=$ac_check_lib_save_LIBS 16969fi 16970echo "$as_me:$LINENO: result: $ac_cv_lib_rt_clock_gettime" >&5 16971echo "${ECHO_T}$ac_cv_lib_rt_clock_gettime" >&6 16972if test $ac_cv_lib_rt_clock_gettime = yes; then 16973 LIBS="-lrt $LIBS" 16974 16975cat >>confdefs.h <<\_ACEOF 16976#define HAVE_CLOCK_GETTIME 1 16977_ACEOF 16978 16979fi 16980 16981fi 16982 16983# See if we support thread-local storage. 16984 16985 # Check whether --enable-tls or --disable-tls was given. 16986if test "${enable_tls+set}" = set; then 16987 enableval="$enable_tls" 16988 16989 case "$enableval" in 16990 yes|no) ;; 16991 *) { { echo "$as_me:$LINENO: error: Argument to enable/disable tls must be yes or no" >&5 16992echo "$as_me: error: Argument to enable/disable tls must be yes or no" >&2;} 16993 { (exit 1); exit 1; }; } ;; 16994 esac 16995 16996else 16997 enable_tls=yes 16998fi; 16999 17000 echo "$as_me:$LINENO: checking whether the target supports thread-local storage" >&5 17001echo $ECHO_N "checking whether the target supports thread-local storage... $ECHO_C" >&6 17002if test "${gcc_cv_have_tls+set}" = set; then 17003 echo $ECHO_N "(cached) $ECHO_C" >&6 17004else 17005 17006 if test "$cross_compiling" = yes; then 17007 cat >conftest.$ac_ext <<_ACEOF 17008__thread int a; int b; int main() { return a = b; } 17009_ACEOF 17010rm -f conftest.$ac_objext conftest$ac_exeext 17011if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17012 (eval $ac_link) 2>conftest.er1 17013 ac_status=$? 17014 grep -v '^ *+' conftest.er1 >conftest.err 17015 rm -f conftest.er1 17016 cat conftest.err >&5 17017 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17018 (exit $ac_status); } && 17019 { ac_try='test -z "$ac_c_werror_flag" 17020 || test ! -s conftest.err' 17021 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17022 (eval $ac_try) 2>&5 17023 ac_status=$? 17024 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17025 (exit $ac_status); }; } && 17026 { ac_try='test -s conftest$ac_exeext' 17027 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17028 (eval $ac_try) 2>&5 17029 ac_status=$? 17030 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17031 (exit $ac_status); }; }; then 17032 gcc_cv_have_tls=yes 17033else 17034 echo "$as_me: failed program was:" >&5 17035sed 's/^/| /' conftest.$ac_ext >&5 17036 17037gcc_cv_have_tls=no 17038fi 17039rm -f conftest.err conftest.$ac_objext \ 17040 conftest$ac_exeext conftest.$ac_ext 17041 17042 17043else 17044 cat >conftest.$ac_ext <<_ACEOF 17045__thread int a; int b; int main() { return a = b; } 17046_ACEOF 17047rm -f conftest$ac_exeext 17048if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17049 (eval $ac_link) 2>&5 17050 ac_status=$? 17051 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17052 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17053 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17054 (eval $ac_try) 2>&5 17055 ac_status=$? 17056 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17057 (exit $ac_status); }; }; then 17058 chktls_save_LDFLAGS="$LDFLAGS" 17059 LDFLAGS="-static $LDFLAGS" 17060 cat >conftest.$ac_ext <<_ACEOF 17061int main() { return 0; } 17062_ACEOF 17063rm -f conftest.$ac_objext conftest$ac_exeext 17064if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17065 (eval $ac_link) 2>conftest.er1 17066 ac_status=$? 17067 grep -v '^ *+' conftest.er1 >conftest.err 17068 rm -f conftest.er1 17069 cat conftest.err >&5 17070 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17071 (exit $ac_status); } && 17072 { ac_try='test -z "$ac_c_werror_flag" 17073 || test ! -s conftest.err' 17074 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17075 (eval $ac_try) 2>&5 17076 ac_status=$? 17077 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17078 (exit $ac_status); }; } && 17079 { ac_try='test -s conftest$ac_exeext' 17080 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17081 (eval $ac_try) 2>&5 17082 ac_status=$? 17083 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17084 (exit $ac_status); }; }; then 17085 if test "$cross_compiling" = yes; then 17086 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 17087See \`config.log' for more details." >&5 17088echo "$as_me: error: cannot run test program while cross compiling 17089See \`config.log' for more details." >&2;} 17090 { (exit 1); exit 1; }; } 17091else 17092 cat >conftest.$ac_ext <<_ACEOF 17093__thread int a; int b; int main() { return a = b; } 17094_ACEOF 17095rm -f conftest$ac_exeext 17096if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17097 (eval $ac_link) 2>&5 17098 ac_status=$? 17099 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17100 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17101 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17102 (eval $ac_try) 2>&5 17103 ac_status=$? 17104 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17105 (exit $ac_status); }; }; then 17106 gcc_cv_have_tls=yes 17107else 17108 echo "$as_me: program exited with status $ac_status" >&5 17109echo "$as_me: failed program was:" >&5 17110sed 's/^/| /' conftest.$ac_ext >&5 17111 17112( exit $ac_status ) 17113gcc_cv_have_tls=no 17114fi 17115rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17116fi 17117else 17118 echo "$as_me: failed program was:" >&5 17119sed 's/^/| /' conftest.$ac_ext >&5 17120 17121gcc_cv_have_tls=yes 17122fi 17123rm -f conftest.err conftest.$ac_objext \ 17124 conftest$ac_exeext conftest.$ac_ext 17125 LDFLAGS="$chktls_save_LDFLAGS" 17126 if test $gcc_cv_have_tls = yes; then 17127 chktls_save_CFLAGS="$CFLAGS" 17128 thread_CFLAGS=failed 17129 for flag in '' '-pthread' '-lpthread'; do 17130 CFLAGS="$flag $chktls_save_CFLAGS" 17131 cat >conftest.$ac_ext <<_ACEOF 17132/* confdefs.h. */ 17133_ACEOF 17134cat confdefs.h >>conftest.$ac_ext 17135cat >>conftest.$ac_ext <<_ACEOF 17136/* end confdefs.h. */ 17137#include <pthread.h> 17138 void *g(void *d) { return NULL; } 17139int 17140main () 17141{ 17142pthread_t t; pthread_create(&t,NULL,g,NULL); 17143 ; 17144 return 0; 17145} 17146_ACEOF 17147rm -f conftest.$ac_objext conftest$ac_exeext 17148if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17149 (eval $ac_link) 2>conftest.er1 17150 ac_status=$? 17151 grep -v '^ *+' conftest.er1 >conftest.err 17152 rm -f conftest.er1 17153 cat conftest.err >&5 17154 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17155 (exit $ac_status); } && 17156 { ac_try='test -z "$ac_c_werror_flag" 17157 || test ! -s conftest.err' 17158 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17159 (eval $ac_try) 2>&5 17160 ac_status=$? 17161 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17162 (exit $ac_status); }; } && 17163 { ac_try='test -s conftest$ac_exeext' 17164 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17165 (eval $ac_try) 2>&5 17166 ac_status=$? 17167 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17168 (exit $ac_status); }; }; then 17169 thread_CFLAGS="$flag" 17170else 17171 echo "$as_me: failed program was:" >&5 17172sed 's/^/| /' conftest.$ac_ext >&5 17173 17174fi 17175rm -f conftest.err conftest.$ac_objext \ 17176 conftest$ac_exeext conftest.$ac_ext 17177 if test "X$thread_CFLAGS" != Xfailed; then 17178 break 17179 fi 17180 done 17181 CFLAGS="$chktls_save_CFLAGS" 17182 if test "X$thread_CFLAGS" != Xfailed; then 17183 CFLAGS="$thread_CFLAGS $chktls_save_CFLAGS" 17184 if test "$cross_compiling" = yes; then 17185 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 17186See \`config.log' for more details." >&5 17187echo "$as_me: error: cannot run test program while cross compiling 17188See \`config.log' for more details." >&2;} 17189 { (exit 1); exit 1; }; } 17190else 17191 cat >conftest.$ac_ext <<_ACEOF 17192/* confdefs.h. */ 17193_ACEOF 17194cat confdefs.h >>conftest.$ac_ext 17195cat >>conftest.$ac_ext <<_ACEOF 17196/* end confdefs.h. */ 17197#include <pthread.h> 17198 __thread int a; 17199 static int *a_in_other_thread; 17200 static void * 17201 thread_func (void *arg) 17202 { 17203 a_in_other_thread = &a; 17204 return (void *)0; 17205 } 17206int 17207main () 17208{ 17209pthread_t thread; 17210 void *thread_retval; 17211 int *a_in_main_thread; 17212 if (pthread_create (&thread, (pthread_attr_t *)0, 17213 thread_func, (void *)0)) 17214 return 0; 17215 a_in_main_thread = &a; 17216 if (pthread_join (thread, &thread_retval)) 17217 return 0; 17218 return (a_in_other_thread == a_in_main_thread); 17219 ; 17220 return 0; 17221} 17222_ACEOF 17223rm -f conftest$ac_exeext 17224if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17225 (eval $ac_link) 2>&5 17226 ac_status=$? 17227 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17228 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17230 (eval $ac_try) 2>&5 17231 ac_status=$? 17232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17233 (exit $ac_status); }; }; then 17234 gcc_cv_have_tls=yes 17235else 17236 echo "$as_me: program exited with status $ac_status" >&5 17237echo "$as_me: failed program was:" >&5 17238sed 's/^/| /' conftest.$ac_ext >&5 17239 17240( exit $ac_status ) 17241gcc_cv_have_tls=no 17242fi 17243rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17244fi 17245 CFLAGS="$chktls_save_CFLAGS" 17246 fi 17247 fi 17248else 17249 echo "$as_me: program exited with status $ac_status" >&5 17250echo "$as_me: failed program was:" >&5 17251sed 's/^/| /' conftest.$ac_ext >&5 17252 17253( exit $ac_status ) 17254gcc_cv_have_tls=no 17255fi 17256rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17257fi 17258fi 17259echo "$as_me:$LINENO: result: $gcc_cv_have_tls" >&5 17260echo "${ECHO_T}$gcc_cv_have_tls" >&6 17261 if test "$enable_tls $gcc_cv_have_tls" = "yes yes"; then 17262 17263cat >>confdefs.h <<\_ACEOF 17264#define HAVE_TLS 1 17265_ACEOF 17266 17267 fi 17268 17269# See what sort of export controls are availible. 17270 17271 echo "$as_me:$LINENO: checking whether the target supports hidden visibility" >&5 17272echo $ECHO_N "checking whether the target supports hidden visibility... $ECHO_C" >&6 17273if test "${have_attribute_visibility+set}" = set; then 17274 echo $ECHO_N "(cached) $ECHO_C" >&6 17275else 17276 17277 save_CFLAGS="$CFLAGS" 17278 CFLAGS="$CFLAGS -Werror" 17279 cat >conftest.$ac_ext <<_ACEOF 17280/* confdefs.h. */ 17281_ACEOF 17282cat confdefs.h >>conftest.$ac_ext 17283cat >>conftest.$ac_ext <<_ACEOF 17284/* end confdefs.h. */ 17285void __attribute__((visibility("hidden"))) foo(void) { } 17286int 17287main () 17288{ 17289 17290 ; 17291 return 0; 17292} 17293_ACEOF 17294rm -f conftest.$ac_objext 17295if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17296 (eval $ac_compile) 2>conftest.er1 17297 ac_status=$? 17298 grep -v '^ *+' conftest.er1 >conftest.err 17299 rm -f conftest.er1 17300 cat conftest.err >&5 17301 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17302 (exit $ac_status); } && 17303 { ac_try='test -z "$ac_c_werror_flag" 17304 || test ! -s conftest.err' 17305 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17306 (eval $ac_try) 2>&5 17307 ac_status=$? 17308 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17309 (exit $ac_status); }; } && 17310 { ac_try='test -s conftest.$ac_objext' 17311 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17312 (eval $ac_try) 2>&5 17313 ac_status=$? 17314 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17315 (exit $ac_status); }; }; then 17316 have_attribute_visibility=yes 17317else 17318 echo "$as_me: failed program was:" >&5 17319sed 's/^/| /' conftest.$ac_ext >&5 17320 17321have_attribute_visibility=no 17322fi 17323rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17324 CFLAGS="$save_CFLAGS" 17325fi 17326echo "$as_me:$LINENO: result: $have_attribute_visibility" >&5 17327echo "${ECHO_T}$have_attribute_visibility" >&6 17328 if test $have_attribute_visibility = yes; then 17329 17330cat >>confdefs.h <<\_ACEOF 17331#define HAVE_ATTRIBUTE_VISIBILITY 1 17332_ACEOF 17333 17334 fi 17335 17336 echo "$as_me:$LINENO: checking whether the target supports dllexport" >&5 17337echo $ECHO_N "checking whether the target supports dllexport... $ECHO_C" >&6 17338if test "${have_attribute_dllexport+set}" = set; then 17339 echo $ECHO_N "(cached) $ECHO_C" >&6 17340else 17341 17342 save_CFLAGS="$CFLAGS" 17343 CFLAGS="$CFLAGS -Werror" 17344 cat >conftest.$ac_ext <<_ACEOF 17345/* confdefs.h. */ 17346_ACEOF 17347cat confdefs.h >>conftest.$ac_ext 17348cat >>conftest.$ac_ext <<_ACEOF 17349/* end confdefs.h. */ 17350void __attribute__((dllexport)) foo(void) { } 17351int 17352main () 17353{ 17354 17355 ; 17356 return 0; 17357} 17358_ACEOF 17359rm -f conftest.$ac_objext 17360if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 17361 (eval $ac_compile) 2>conftest.er1 17362 ac_status=$? 17363 grep -v '^ *+' conftest.er1 >conftest.err 17364 rm -f conftest.er1 17365 cat conftest.err >&5 17366 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17367 (exit $ac_status); } && 17368 { ac_try='test -z "$ac_c_werror_flag" 17369 || test ! -s conftest.err' 17370 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17371 (eval $ac_try) 2>&5 17372 ac_status=$? 17373 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17374 (exit $ac_status); }; } && 17375 { ac_try='test -s conftest.$ac_objext' 17376 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17377 (eval $ac_try) 2>&5 17378 ac_status=$? 17379 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17380 (exit $ac_status); }; }; then 17381 have_attribute_dllexport=yes 17382else 17383 echo "$as_me: failed program was:" >&5 17384sed 's/^/| /' conftest.$ac_ext >&5 17385 17386have_attribute_dllexport=no 17387fi 17388rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 17389 CFLAGS="$save_CFLAGS" 17390fi 17391echo "$as_me:$LINENO: result: $have_attribute_dllexport" >&5 17392echo "${ECHO_T}$have_attribute_dllexport" >&6 17393 if test $have_attribute_dllexport = yes; then 17394 17395cat >>confdefs.h <<\_ACEOF 17396#define HAVE_ATTRIBUTE_DLLEXPORT 1 17397_ACEOF 17398 17399 fi 17400 17401 echo "$as_me:$LINENO: checking whether the target supports symbol aliases" >&5 17402echo $ECHO_N "checking whether the target supports symbol aliases... $ECHO_C" >&6 17403if test "${have_attribute_alias+set}" = set; then 17404 echo $ECHO_N "(cached) $ECHO_C" >&6 17405else 17406 17407 cat >conftest.$ac_ext <<_ACEOF 17408/* confdefs.h. */ 17409_ACEOF 17410cat confdefs.h >>conftest.$ac_ext 17411cat >>conftest.$ac_ext <<_ACEOF 17412/* end confdefs.h. */ 17413 17414void foo(void) { } 17415extern void bar(void) __attribute__((alias("foo"))); 17416int 17417main () 17418{ 17419bar(); 17420 ; 17421 return 0; 17422} 17423_ACEOF 17424rm -f conftest.$ac_objext conftest$ac_exeext 17425if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17426 (eval $ac_link) 2>conftest.er1 17427 ac_status=$? 17428 grep -v '^ *+' conftest.er1 >conftest.err 17429 rm -f conftest.er1 17430 cat conftest.err >&5 17431 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17432 (exit $ac_status); } && 17433 { ac_try='test -z "$ac_c_werror_flag" 17434 || test ! -s conftest.err' 17435 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17436 (eval $ac_try) 2>&5 17437 ac_status=$? 17438 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17439 (exit $ac_status); }; } && 17440 { ac_try='test -s conftest$ac_exeext' 17441 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17442 (eval $ac_try) 2>&5 17443 ac_status=$? 17444 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17445 (exit $ac_status); }; }; then 17446 have_attribute_alias=yes 17447else 17448 echo "$as_me: failed program was:" >&5 17449sed 's/^/| /' conftest.$ac_ext >&5 17450 17451have_attribute_alias=no 17452fi 17453rm -f conftest.err conftest.$ac_objext \ 17454 conftest$ac_exeext conftest.$ac_ext 17455fi 17456echo "$as_me:$LINENO: result: $have_attribute_alias" >&5 17457echo "${ECHO_T}$have_attribute_alias" >&6 17458 if test $have_attribute_alias = yes; then 17459 17460cat >>confdefs.h <<\_ACEOF 17461#define HAVE_ATTRIBUTE_ALIAS 1 17462_ACEOF 17463 17464 fi 17465 17466 17467# Check whether --with-gnu-ld or --without-gnu-ld was given. 17468if test "${with_gnu_ld+set}" = set; then 17469 withval="$with_gnu_ld" 17470 test "$withval" = no || with_gnu_ld=yes 17471else 17472 with_gnu_ld=no 17473fi; 17474ac_prog=ld 17475if test "$GCC" = yes; then 17476 # Check if gcc -print-prog-name=ld gives a path. 17477 echo "$as_me:$LINENO: checking for ld used by $CC" >&5 17478echo $ECHO_N "checking for ld used by $CC... $ECHO_C" >&6 17479 case $host in 17480 *-*-mingw*) 17481 # gcc leaves a trailing carriage return which upsets mingw 17482 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 17483 *) 17484 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 17485 esac 17486 case $ac_prog in 17487 # Accept absolute paths. 17488 [\\/]* | ?:[\\/]*) 17489 re_direlt='/[^/][^/]*/\.\./' 17490 # Canonicalize the pathname of ld 17491 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 17492 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 17493 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 17494 done 17495 test -z "$LD" && LD="$ac_prog" 17496 ;; 17497 "") 17498 # If it fails, then pretend we aren't using GCC. 17499 ac_prog=ld 17500 ;; 17501 *) 17502 # If it is relative, then search for the first ld in PATH. 17503 with_gnu_ld=unknown 17504 ;; 17505 esac 17506elif test "$with_gnu_ld" = yes; then 17507 echo "$as_me:$LINENO: checking for GNU ld" >&5 17508echo $ECHO_N "checking for GNU ld... $ECHO_C" >&6 17509else 17510 echo "$as_me:$LINENO: checking for non-GNU ld" >&5 17511echo $ECHO_N "checking for non-GNU ld... $ECHO_C" >&6 17512fi 17513if test "${lt_cv_path_LD+set}" = set; then 17514 echo $ECHO_N "(cached) $ECHO_C" >&6 17515else 17516 if test -z "$LD"; then 17517 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 17518 for ac_dir in $PATH; do 17519 IFS="$lt_save_ifs" 17520 test -z "$ac_dir" && ac_dir=. 17521 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 17522 lt_cv_path_LD="$ac_dir/$ac_prog" 17523 # Check to see if the program is GNU ld. I'd rather use --version, 17524 # but apparently some variants of GNU ld only accept -v. 17525 # Break only if it was the GNU/non-GNU ld that we prefer. 17526 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 17527 *GNU* | *'with BFD'*) 17528 test "$with_gnu_ld" != no && break 17529 ;; 17530 *) 17531 test "$with_gnu_ld" != yes && break 17532 ;; 17533 esac 17534 fi 17535 done 17536 IFS="$lt_save_ifs" 17537else 17538 lt_cv_path_LD="$LD" # Let the user override the test with a path. 17539fi 17540fi 17541 17542LD="$lt_cv_path_LD" 17543if test -n "$LD"; then 17544 echo "$as_me:$LINENO: result: $LD" >&5 17545echo "${ECHO_T}$LD" >&6 17546else 17547 echo "$as_me:$LINENO: result: no" >&5 17548echo "${ECHO_T}no" >&6 17549fi 17550test -z "$LD" && { { echo "$as_me:$LINENO: error: no acceptable ld found in \$PATH" >&5 17551echo "$as_me: error: no acceptable ld found in \$PATH" >&2;} 17552 { (exit 1); exit 1; }; } 17553echo "$as_me:$LINENO: checking if the linker ($LD) is GNU ld" >&5 17554echo $ECHO_N "checking if the linker ($LD) is GNU ld... $ECHO_C" >&6 17555if test "${lt_cv_prog_gnu_ld+set}" = set; then 17556 echo $ECHO_N "(cached) $ECHO_C" >&6 17557else 17558 # I'd rather use --version here, but apparently some GNU lds only accept -v. 17559case `$LD -v 2>&1 </dev/null` in 17560*GNU* | *'with BFD'*) 17561 lt_cv_prog_gnu_ld=yes 17562 ;; 17563*) 17564 lt_cv_prog_gnu_ld=no 17565 ;; 17566esac 17567fi 17568echo "$as_me:$LINENO: result: $lt_cv_prog_gnu_ld" >&5 17569echo "${ECHO_T}$lt_cv_prog_gnu_ld" >&6 17570with_gnu_ld=$lt_cv_prog_gnu_ld 17571 17572 17573 17574 17575 17576 17577 17578 # If we're not using GNU ld, then there's no point in even trying these 17579 # tests. Check for that first. We should have already tested for gld 17580 # by now (in libtool), but require it now just to be safe... 17581 test -z "$SECTION_LDFLAGS" && SECTION_LDFLAGS='' 17582 test -z "$OPT_LDFLAGS" && OPT_LDFLAGS='' 17583 17584 17585 17586 # The name set by libtool depends on the version of libtool. Shame on us 17587 # for depending on an impl detail, but c'est la vie. Older versions used 17588 # ac_cv_prog_gnu_ld, but now it's lt_cv_prog_gnu_ld, and is copied back on 17589 # top of with_gnu_ld (which is also set by --with-gnu-ld, so that actually 17590 # makes sense). We'll test with_gnu_ld everywhere else, so if that isn't 17591 # set (hence we're using an older libtool), then set it. 17592 if test x${with_gnu_ld+set} != xset; then 17593 if test x${ac_cv_prog_gnu_ld+set} != xset; then 17594 # We got through "ac_require(ac_prog_ld)" and still not set? Huh? 17595 with_gnu_ld=no 17596 else 17597 with_gnu_ld=$ac_cv_prog_gnu_ld 17598 fi 17599 fi 17600 17601 # Start by getting the version number. I think the libtool test already 17602 # does some of this, but throws away the result. 17603 17604 ldver=`$LD --version 2>/dev/null | head -1 | \ 17605 sed -e 's/GNU ld \(version \)\{0,1\}\(([^)]*) \)\{0,1\}\([0-9.][0-9.]*\).*/\3/'` 17606 17607 libgomp_gnu_ld_version=`echo $ldver | \ 17608 $AWK -F. '{ if (NF<3) $3=0; print ($1*100+$2)*100+$3 }'` 17609 17610 # Set --gc-sections. 17611 if test "$with_gnu_ld" = "notbroken"; then 17612 # GNU ld it is! Joy and bunny rabbits! 17613 17614 # All these tests are for C++; save the language and the compiler flags. 17615 # Need to do this so that g++ won't try to link in libstdc++ 17616 ac_test_CFLAGS="${CFLAGS+set}" 17617 ac_save_CFLAGS="$CFLAGS" 17618 CFLAGS='-x c++ -Wl,--gc-sections' 17619 17620 # Check for -Wl,--gc-sections 17621 # XXX This test is broken at the moment, as symbols required for linking 17622 # are now in libsupc++ (not built yet). In addition, this test has 17623 # cored on solaris in the past. In addition, --gc-sections doesn't 17624 # really work at the moment (keeps on discarding used sections, first 17625 # .eh_frame and now some of the glibc sections for iconv). 17626 # Bzzzzt. Thanks for playing, maybe next time. 17627 echo "$as_me:$LINENO: checking for ld that supports -Wl,--gc-sections" >&5 17628echo $ECHO_N "checking for ld that supports -Wl,--gc-sections... $ECHO_C" >&6 17629 if test "$cross_compiling" = yes; then 17630 ac_sectionLDflags=yes 17631else 17632 cat >conftest.$ac_ext <<_ACEOF 17633/* confdefs.h. */ 17634_ACEOF 17635cat confdefs.h >>conftest.$ac_ext 17636cat >>conftest.$ac_ext <<_ACEOF 17637/* end confdefs.h. */ 17638 17639 int main(void) 17640 { 17641 try { throw 1; } 17642 catch (...) { }; 17643 return 0; 17644 } 17645 17646_ACEOF 17647rm -f conftest$ac_exeext 17648if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17649 (eval $ac_link) 2>&5 17650 ac_status=$? 17651 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17652 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 17653 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17654 (eval $ac_try) 2>&5 17655 ac_status=$? 17656 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17657 (exit $ac_status); }; }; then 17658 ac_sectionLDflags=yes 17659else 17660 echo "$as_me: program exited with status $ac_status" >&5 17661echo "$as_me: failed program was:" >&5 17662sed 's/^/| /' conftest.$ac_ext >&5 17663 17664( exit $ac_status ) 17665ac_sectionLDflags=no 17666fi 17667rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 17668fi 17669 if test "$ac_test_CFLAGS" = set; then 17670 CFLAGS="$ac_save_CFLAGS" 17671 else 17672 # this is the suspicious part 17673 CFLAGS='' 17674 fi 17675 if test "$ac_sectionLDflags" = "yes"; then 17676 SECTION_LDFLAGS="-Wl,--gc-sections $SECTION_LDFLAGS" 17677 fi 17678 echo "$as_me:$LINENO: result: $ac_sectionLDflags" >&5 17679echo "${ECHO_T}$ac_sectionLDflags" >&6 17680 fi 17681 17682 # Set linker optimization flags. 17683 if test x"$with_gnu_ld" = x"yes"; then 17684 OPT_LDFLAGS="-Wl,-O1 $OPT_LDFLAGS" 17685 fi 17686 17687 17688 17689 17690 17691 17692 # Check whether --enable-symvers or --disable-symvers was given. 17693if test "${enable_symvers+set}" = set; then 17694 enableval="$enable_symvers" 17695 17696 case "$enableval" in 17697 yes|no|gnu) ;; 17698 *) { { echo "$as_me:$LINENO: error: Unknown argument to enable/disable symvers" >&5 17699echo "$as_me: error: Unknown argument to enable/disable symvers" >&2;} 17700 { (exit 1); exit 1; }; } ;; 17701 esac 17702 17703else 17704 enable_symvers=yes 17705fi; 17706 17707 17708# If we never went through the LIBGOMP_CHECK_LINKER_FEATURES macro, then we 17709# don't know enough about $LD to do tricks... 17710 17711# FIXME The following test is too strict, in theory. 17712if test $enable_shared = no || 17713 test "x$LD" = x || 17714 test x$libgomp_gnu_ld_version = x; then 17715 enable_symvers=no 17716fi 17717 17718# Check to see if libgcc_s exists, indicating that shared libgcc is possible. 17719if test $enable_symvers != no; then 17720 echo "$as_me:$LINENO: checking for shared libgcc" >&5 17721echo $ECHO_N "checking for shared libgcc... $ECHO_C" >&6 17722 ac_save_CFLAGS="$CFLAGS" 17723 CFLAGS=' -lgcc_s' 17724 cat >conftest.$ac_ext <<_ACEOF 17725/* confdefs.h. */ 17726_ACEOF 17727cat confdefs.h >>conftest.$ac_ext 17728cat >>conftest.$ac_ext <<_ACEOF 17729/* end confdefs.h. */ 17730 17731int 17732main () 17733{ 17734return 0; 17735 ; 17736 return 0; 17737} 17738_ACEOF 17739rm -f conftest.$ac_objext conftest$ac_exeext 17740if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17741 (eval $ac_link) 2>conftest.er1 17742 ac_status=$? 17743 grep -v '^ *+' conftest.er1 >conftest.err 17744 rm -f conftest.er1 17745 cat conftest.err >&5 17746 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17747 (exit $ac_status); } && 17748 { ac_try='test -z "$ac_c_werror_flag" 17749 || test ! -s conftest.err' 17750 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17751 (eval $ac_try) 2>&5 17752 ac_status=$? 17753 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17754 (exit $ac_status); }; } && 17755 { ac_try='test -s conftest$ac_exeext' 17756 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17757 (eval $ac_try) 2>&5 17758 ac_status=$? 17759 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17760 (exit $ac_status); }; }; then 17761 libgomp_shared_libgcc=yes 17762else 17763 echo "$as_me: failed program was:" >&5 17764sed 's/^/| /' conftest.$ac_ext >&5 17765 17766libgomp_shared_libgcc=no 17767fi 17768rm -f conftest.err conftest.$ac_objext \ 17769 conftest$ac_exeext conftest.$ac_ext 17770 CFLAGS="$ac_save_CFLAGS" 17771 if test $libgomp_shared_libgcc = no; then 17772 cat > conftest.c <<EOF 17773int main (void) { return 0; } 17774EOF 17775 libgomp_libgcc_s_suffix=`${CC-cc} $CFLAGS $CPPFLAGS $LDFLAGS \ 17776 -shared -shared-libgcc -o conftest.so \ 17777 conftest.c -v 2>&1 >/dev/null \ 17778 | sed -n 's/^.* -lgcc_s\([^ ]*\) .*$/\1/p'` 17779 rm -f conftest.c conftest.so 17780 if test x${libgomp_libgcc_s_suffix+set} = xset; then 17781 CFLAGS=" -lgcc_s$libgomp_libgcc_s_suffix" 17782 cat >conftest.$ac_ext <<_ACEOF 17783/* confdefs.h. */ 17784_ACEOF 17785cat confdefs.h >>conftest.$ac_ext 17786cat >>conftest.$ac_ext <<_ACEOF 17787/* end confdefs.h. */ 17788 17789int 17790main () 17791{ 17792return 0; 17793 ; 17794 return 0; 17795} 17796_ACEOF 17797rm -f conftest.$ac_objext conftest$ac_exeext 17798if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17799 (eval $ac_link) 2>conftest.er1 17800 ac_status=$? 17801 grep -v '^ *+' conftest.er1 >conftest.err 17802 rm -f conftest.er1 17803 cat conftest.err >&5 17804 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17805 (exit $ac_status); } && 17806 { ac_try='test -z "$ac_c_werror_flag" 17807 || test ! -s conftest.err' 17808 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17809 (eval $ac_try) 2>&5 17810 ac_status=$? 17811 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17812 (exit $ac_status); }; } && 17813 { ac_try='test -s conftest$ac_exeext' 17814 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17815 (eval $ac_try) 2>&5 17816 ac_status=$? 17817 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17818 (exit $ac_status); }; }; then 17819 libgomp_shared_libgcc=yes 17820else 17821 echo "$as_me: failed program was:" >&5 17822sed 's/^/| /' conftest.$ac_ext >&5 17823 17824fi 17825rm -f conftest.err conftest.$ac_objext \ 17826 conftest$ac_exeext conftest.$ac_ext 17827 CFLAGS="$ac_save_CFLAGS" 17828 fi 17829 fi 17830 echo "$as_me:$LINENO: result: $libgomp_shared_libgcc" >&5 17831echo "${ECHO_T}$libgomp_shared_libgcc" >&6 17832fi 17833 17834# For GNU ld, we need at least this version. The format is described in 17835# LIBGOMP_CHECK_LINKER_FEATURES above. 17836libgomp_min_gnu_ld_version=21400 17837# XXXXXXXXXXX libgomp_gnu_ld_version=21390 17838 17839# Check to see if unspecified "yes" value can win, given results above. 17840# Change "yes" into either "no" or a style name. 17841if test $enable_symvers = yes; then 17842 if test $with_gnu_ld = yes && 17843 test $libgomp_shared_libgcc = yes; 17844 then 17845 if test $libgomp_gnu_ld_version -ge $libgomp_min_gnu_ld_version ; then 17846 enable_symvers=gnu 17847 else 17848 # The right tools, the right setup, but too old. Fallbacks? 17849 { echo "$as_me:$LINENO: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&5 17850echo "$as_me: WARNING: === Linker version $libgomp_gnu_ld_version is too old for" >&2;} 17851 { echo "$as_me:$LINENO: WARNING: === full symbol versioning support in this release of GCC." >&5 17852echo "$as_me: WARNING: === full symbol versioning support in this release of GCC." >&2;} 17853 { echo "$as_me:$LINENO: WARNING: === You would need to upgrade your binutils to version" >&5 17854echo "$as_me: WARNING: === You would need to upgrade your binutils to version" >&2;} 17855 { echo "$as_me:$LINENO: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&5 17856echo "$as_me: WARNING: === $libgomp_min_gnu_ld_version or later and rebuild GCC." >&2;} 17857 if test $libgomp_gnu_ld_version -ge 21200 ; then 17858 # Globbing fix is present, proper block support is not. 17859 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 17860echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 17861 enable_symvers=no 17862 else 17863 # 2.11 or older. 17864 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 17865echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 17866 enable_symvers=no 17867 fi 17868 fi 17869 else 17870 # just fail for now 17871 { echo "$as_me:$LINENO: WARNING: === You have requested some kind of symbol versioning, but" >&5 17872echo "$as_me: WARNING: === You have requested some kind of symbol versioning, but" >&2;} 17873 { echo "$as_me:$LINENO: WARNING: === either you are not using a supported linker, or you are" >&5 17874echo "$as_me: WARNING: === either you are not using a supported linker, or you are" >&2;} 17875 { echo "$as_me:$LINENO: WARNING: === not building a shared libgcc_s (which is required)." >&5 17876echo "$as_me: WARNING: === not building a shared libgcc_s (which is required)." >&2;} 17877 { echo "$as_me:$LINENO: WARNING: === Symbol versioning will be disabled." >&5 17878echo "$as_me: WARNING: === Symbol versioning will be disabled." >&2;} 17879 enable_symvers=no 17880 fi 17881fi 17882 17883 17884 17885if test $enable_symvers != no; then 17886 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE= 17887 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE='#' 17888else 17889 LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE='#' 17890 LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE= 17891fi 17892 17893{ echo "$as_me:$LINENO: versioning on shared library symbols is $enable_symvers" >&5 17894echo "$as_me: versioning on shared library symbols is $enable_symvers" >&6;} 17895 17896 17897# Get target configury. 17898. ${srcdir}/configure.tgt 17899CFLAGS="$save_CFLAGS $XCFLAGS" 17900 17901# Check for __sync_val_compare_and_swap, but only after the target has 17902# had a chance to set XCFLAGS. 17903 17904 echo "$as_me:$LINENO: checking whether the target supports __sync_*_compare_and_swap" >&5 17905echo $ECHO_N "checking whether the target supports __sync_*_compare_and_swap... $ECHO_C" >&6 17906if test "${have_sync_builtins+set}" = set; then 17907 echo $ECHO_N "(cached) $ECHO_C" >&6 17908else 17909 17910 cat >conftest.$ac_ext <<_ACEOF 17911/* confdefs.h. */ 17912_ACEOF 17913cat confdefs.h >>conftest.$ac_ext 17914cat >>conftest.$ac_ext <<_ACEOF 17915/* end confdefs.h. */ 17916 17917int 17918main () 17919{ 17920int foo, bar; bar = __sync_val_compare_and_swap(&foo, 0, 1); 17921 ; 17922 return 0; 17923} 17924_ACEOF 17925rm -f conftest.$ac_objext conftest$ac_exeext 17926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 17927 (eval $ac_link) 2>conftest.er1 17928 ac_status=$? 17929 grep -v '^ *+' conftest.er1 >conftest.err 17930 rm -f conftest.er1 17931 cat conftest.err >&5 17932 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17933 (exit $ac_status); } && 17934 { ac_try='test -z "$ac_c_werror_flag" 17935 || test ! -s conftest.err' 17936 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17937 (eval $ac_try) 2>&5 17938 ac_status=$? 17939 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17940 (exit $ac_status); }; } && 17941 { ac_try='test -s conftest$ac_exeext' 17942 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 17943 (eval $ac_try) 2>&5 17944 ac_status=$? 17945 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17946 (exit $ac_status); }; }; then 17947 have_sync_builtins=yes 17948else 17949 echo "$as_me: failed program was:" >&5 17950sed 's/^/| /' conftest.$ac_ext >&5 17951 17952have_sync_builtins=no 17953fi 17954rm -f conftest.err conftest.$ac_objext \ 17955 conftest$ac_exeext conftest.$ac_ext 17956fi 17957echo "$as_me:$LINENO: result: $have_sync_builtins" >&5 17958echo "${ECHO_T}$have_sync_builtins" >&6 17959 if test $have_sync_builtins = yes; then 17960 17961cat >>confdefs.h <<\_ACEOF 17962#define HAVE_SYNC_BUILTINS 1 17963_ACEOF 17964 17965 fi 17966 17967XCFLAGS="$XCFLAGS$XPCFLAGS" 17968 17969 17970 17971 17972 17973# Cleanup and exit. 17974CFLAGS="$save_CFLAGS" 17975cat >confcache <<\_ACEOF 17976# This file is a shell script that caches the results of configure 17977# tests run on this system so they can be shared between configure 17978# scripts and configure runs, see configure's option --config-cache. 17979# It is not useful on other systems. If it contains results you don't 17980# want to keep, you may remove or edit it. 17981# 17982# config.status only pays attention to the cache file if you give it 17983# the --recheck option to rerun configure. 17984# 17985# `ac_cv_env_foo' variables (set or unset) will be overridden when 17986# loading this file, other *unset* `ac_cv_foo' will be assigned the 17987# following values. 17988 17989_ACEOF 17990 17991# The following way of writing the cache mishandles newlines in values, 17992# but we know of no workaround that is simple, portable, and efficient. 17993# So, don't put newlines in cache variables' values. 17994# Ultrix sh set writes to stderr and can't be redirected directly, 17995# and sets the high bit in the cache file unless we assign to the vars. 17996{ 17997 (set) 2>&1 | 17998 case `(ac_space=' '; set | grep ac_space) 2>&1` in 17999 *ac_space=\ *) 18000 # `set' does not quote correctly, so add quotes (double-quote 18001 # substitution turns \\\\ into \\, and sed turns \\ into \). 18002 sed -n \ 18003 "s/'/'\\\\''/g; 18004 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18005 ;; 18006 *) 18007 # `set' quotes correctly as required by POSIX, so do not add quotes. 18008 sed -n \ 18009 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 18010 ;; 18011 esac; 18012} | 18013 sed ' 18014 t clear 18015 : clear 18016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18017 t end 18018 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18019 : end' >>confcache 18020if diff $cache_file confcache >/dev/null 2>&1; then :; else 18021 if test -w $cache_file; then 18022 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 18023 cat confcache >$cache_file 18024 else 18025 echo "not updating unwritable cache $cache_file" 18026 fi 18027fi 18028rm -f confcache 18029 18030if test ${multilib} = yes; then 18031 multilib_arg="--enable-multilib" 18032else 18033 multilib_arg= 18034fi 18035 18036# Set up the set of libraries that we need to link against for libgomp. 18037# Note that the GOMP_SELF_SPEC in gcc.c will force -pthread for -fopenmp, 18038# which will force linkage against -lpthread (or equivalent for the system). 18039# That's not 100% ideal, but about the best we can do easily. 18040if test $enable_shared = yes; then 18041 link_gomp="-lgomp %{static: $LIBS}" 18042else 18043 link_gomp="-lgomp $LIBS" 18044fi 18045 18046 18047 18048 18049if test "$ac_cv_fc_compiler_gnu" = yes; then 18050 USE_FORTRAN_TRUE= 18051 USE_FORTRAN_FALSE='#' 18052else 18053 USE_FORTRAN_TRUE='#' 18054 USE_FORTRAN_FALSE= 18055fi 18056 18057 18058# ??? 2006-01-24: Paulo committed to asking autoconf folk to document 18059# and export AC_COMPUTE_INT. If that happens, then we'll need to remove 18060# the underscore here and update the PREREQ. If it doesn't, then we'll 18061# need to copy this macro to our acinclude.m4. 18062save_CFLAGS="$CFLAGS" 18063for i in $config_path; do 18064 if test -f $srcdir/config/$i/omp-lock.h; then 18065 CFLAGS="$CFLAGS -include $srcdir/config/$i/omp-lock.h" 18066 break 18067 fi 18068done 18069 18070if test "$cross_compiling" = yes; then 18071 # Depending upon the size, compute the lo and hi bounds. 18072cat >conftest.$ac_ext <<_ACEOF 18073/* confdefs.h. */ 18074_ACEOF 18075cat confdefs.h >>conftest.$ac_ext 18076cat >>conftest.$ac_ext <<_ACEOF 18077/* end confdefs.h. */ 18078 18079int 18080main () 18081{ 18082static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= 0)]; 18083test_array [0] = 0 18084 18085 ; 18086 return 0; 18087} 18088_ACEOF 18089rm -f conftest.$ac_objext 18090if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18091 (eval $ac_compile) 2>conftest.er1 18092 ac_status=$? 18093 grep -v '^ *+' conftest.er1 >conftest.err 18094 rm -f conftest.er1 18095 cat conftest.err >&5 18096 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18097 (exit $ac_status); } && 18098 { ac_try='test -z "$ac_c_werror_flag" 18099 || test ! -s conftest.err' 18100 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18101 (eval $ac_try) 2>&5 18102 ac_status=$? 18103 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18104 (exit $ac_status); }; } && 18105 { ac_try='test -s conftest.$ac_objext' 18106 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18107 (eval $ac_try) 2>&5 18108 ac_status=$? 18109 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18110 (exit $ac_status); }; }; then 18111 ac_lo=0 ac_mid=0 18112 while :; do 18113 cat >conftest.$ac_ext <<_ACEOF 18114/* confdefs.h. */ 18115_ACEOF 18116cat confdefs.h >>conftest.$ac_ext 18117cat >>conftest.$ac_ext <<_ACEOF 18118/* end confdefs.h. */ 18119 18120int 18121main () 18122{ 18123static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; 18124test_array [0] = 0 18125 18126 ; 18127 return 0; 18128} 18129_ACEOF 18130rm -f conftest.$ac_objext 18131if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18132 (eval $ac_compile) 2>conftest.er1 18133 ac_status=$? 18134 grep -v '^ *+' conftest.er1 >conftest.err 18135 rm -f conftest.er1 18136 cat conftest.err >&5 18137 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18138 (exit $ac_status); } && 18139 { ac_try='test -z "$ac_c_werror_flag" 18140 || test ! -s conftest.err' 18141 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18142 (eval $ac_try) 2>&5 18143 ac_status=$? 18144 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18145 (exit $ac_status); }; } && 18146 { ac_try='test -s conftest.$ac_objext' 18147 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18148 (eval $ac_try) 2>&5 18149 ac_status=$? 18150 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18151 (exit $ac_status); }; }; then 18152 ac_hi=$ac_mid; break 18153else 18154 echo "$as_me: failed program was:" >&5 18155sed 's/^/| /' conftest.$ac_ext >&5 18156 18157ac_lo=`expr $ac_mid + 1` 18158 if test $ac_lo -le $ac_mid; then 18159 ac_lo= ac_hi= 18160 break 18161 fi 18162 ac_mid=`expr 2 '*' $ac_mid + 1` 18163fi 18164rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18165 done 18166else 18167 echo "$as_me: failed program was:" >&5 18168sed 's/^/| /' conftest.$ac_ext >&5 18169 18170cat >conftest.$ac_ext <<_ACEOF 18171/* confdefs.h. */ 18172_ACEOF 18173cat confdefs.h >>conftest.$ac_ext 18174cat >>conftest.$ac_ext <<_ACEOF 18175/* end confdefs.h. */ 18176 18177int 18178main () 18179{ 18180static int test_array [1 - 2 * !((sizeof (omp_lock_t)) < 0)]; 18181test_array [0] = 0 18182 18183 ; 18184 return 0; 18185} 18186_ACEOF 18187rm -f conftest.$ac_objext 18188if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18189 (eval $ac_compile) 2>conftest.er1 18190 ac_status=$? 18191 grep -v '^ *+' conftest.er1 >conftest.err 18192 rm -f conftest.er1 18193 cat conftest.err >&5 18194 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18195 (exit $ac_status); } && 18196 { ac_try='test -z "$ac_c_werror_flag" 18197 || test ! -s conftest.err' 18198 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18199 (eval $ac_try) 2>&5 18200 ac_status=$? 18201 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18202 (exit $ac_status); }; } && 18203 { ac_try='test -s conftest.$ac_objext' 18204 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18205 (eval $ac_try) 2>&5 18206 ac_status=$? 18207 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18208 (exit $ac_status); }; }; then 18209 ac_hi=-1 ac_mid=-1 18210 while :; do 18211 cat >conftest.$ac_ext <<_ACEOF 18212/* confdefs.h. */ 18213_ACEOF 18214cat confdefs.h >>conftest.$ac_ext 18215cat >>conftest.$ac_ext <<_ACEOF 18216/* end confdefs.h. */ 18217 18218int 18219main () 18220{ 18221static int test_array [1 - 2 * !((sizeof (omp_lock_t)) >= $ac_mid)]; 18222test_array [0] = 0 18223 18224 ; 18225 return 0; 18226} 18227_ACEOF 18228rm -f conftest.$ac_objext 18229if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18230 (eval $ac_compile) 2>conftest.er1 18231 ac_status=$? 18232 grep -v '^ *+' conftest.er1 >conftest.err 18233 rm -f conftest.er1 18234 cat conftest.err >&5 18235 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18236 (exit $ac_status); } && 18237 { ac_try='test -z "$ac_c_werror_flag" 18238 || test ! -s conftest.err' 18239 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18240 (eval $ac_try) 2>&5 18241 ac_status=$? 18242 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18243 (exit $ac_status); }; } && 18244 { ac_try='test -s conftest.$ac_objext' 18245 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18246 (eval $ac_try) 2>&5 18247 ac_status=$? 18248 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18249 (exit $ac_status); }; }; then 18250 ac_lo=$ac_mid; break 18251else 18252 echo "$as_me: failed program was:" >&5 18253sed 's/^/| /' conftest.$ac_ext >&5 18254 18255ac_hi=`expr '(' $ac_mid ')' - 1` 18256 if test $ac_mid -le $ac_hi; then 18257 ac_lo= ac_hi= 18258 break 18259 fi 18260 ac_mid=`expr 2 '*' $ac_mid` 18261fi 18262rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18263 done 18264else 18265 echo "$as_me: failed program was:" >&5 18266sed 's/^/| /' conftest.$ac_ext >&5 18267 18268ac_lo= ac_hi= 18269fi 18270rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18271fi 18272rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18273# Binary search between lo and hi bounds. 18274while test "x$ac_lo" != "x$ac_hi"; do 18275 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18276 cat >conftest.$ac_ext <<_ACEOF 18277/* confdefs.h. */ 18278_ACEOF 18279cat confdefs.h >>conftest.$ac_ext 18280cat >>conftest.$ac_ext <<_ACEOF 18281/* end confdefs.h. */ 18282 18283int 18284main () 18285{ 18286static int test_array [1 - 2 * !((sizeof (omp_lock_t)) <= $ac_mid)]; 18287test_array [0] = 0 18288 18289 ; 18290 return 0; 18291} 18292_ACEOF 18293rm -f conftest.$ac_objext 18294if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18295 (eval $ac_compile) 2>conftest.er1 18296 ac_status=$? 18297 grep -v '^ *+' conftest.er1 >conftest.err 18298 rm -f conftest.er1 18299 cat conftest.err >&5 18300 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18301 (exit $ac_status); } && 18302 { ac_try='test -z "$ac_c_werror_flag" 18303 || test ! -s conftest.err' 18304 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18305 (eval $ac_try) 2>&5 18306 ac_status=$? 18307 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18308 (exit $ac_status); }; } && 18309 { ac_try='test -s conftest.$ac_objext' 18310 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18311 (eval $ac_try) 2>&5 18312 ac_status=$? 18313 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18314 (exit $ac_status); }; }; then 18315 ac_hi=$ac_mid 18316else 18317 echo "$as_me: failed program was:" >&5 18318sed 's/^/| /' conftest.$ac_ext >&5 18319 18320ac_lo=`expr '(' $ac_mid ')' + 1` 18321fi 18322rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18323done 18324case $ac_lo in 18325?*) OMP_LOCK_SIZE=$ac_lo;; 18326'') { { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 18327echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} 18328 { (exit 1); exit 1; }; } ;; 18329esac 18330else 18331 if test "$cross_compiling" = yes; then 18332 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 18333See \`config.log' for more details." >&5 18334echo "$as_me: error: cannot run test program while cross compiling 18335See \`config.log' for more details." >&2;} 18336 { (exit 1); exit 1; }; } 18337else 18338 cat >conftest.$ac_ext <<_ACEOF 18339/* confdefs.h. */ 18340_ACEOF 18341cat confdefs.h >>conftest.$ac_ext 18342cat >>conftest.$ac_ext <<_ACEOF 18343/* end confdefs.h. */ 18344 18345long longval () { return sizeof (omp_lock_t); } 18346unsigned long ulongval () { return sizeof (omp_lock_t); } 18347#include <stdio.h> 18348#include <stdlib.h> 18349int 18350main () 18351{ 18352 18353 FILE *f = fopen ("conftest.val", "w"); 18354 if (! f) 18355 exit (1); 18356 if ((sizeof (omp_lock_t)) < 0) 18357 { 18358 long i = longval (); 18359 if (i != (sizeof (omp_lock_t))) 18360 exit (1); 18361 fprintf (f, "%ld\n", i); 18362 } 18363 else 18364 { 18365 unsigned long i = ulongval (); 18366 if (i != (sizeof (omp_lock_t))) 18367 exit (1); 18368 fprintf (f, "%lu\n", i); 18369 } 18370 exit (ferror (f) || fclose (f) != 0); 18371 18372 ; 18373 return 0; 18374} 18375_ACEOF 18376rm -f conftest$ac_exeext 18377if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18378 (eval $ac_link) 2>&5 18379 ac_status=$? 18380 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18381 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18382 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18383 (eval $ac_try) 2>&5 18384 ac_status=$? 18385 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18386 (exit $ac_status); }; }; then 18387 OMP_LOCK_SIZE=`cat conftest.val` 18388else 18389 echo "$as_me: program exited with status $ac_status" >&5 18390echo "$as_me: failed program was:" >&5 18391sed 's/^/| /' conftest.$ac_ext >&5 18392 18393( exit $ac_status ) 18394{ { echo "$as_me:$LINENO: error: unsupported system, cannot find sizeof (omp_lock_t)" >&5 18395echo "$as_me: error: unsupported system, cannot find sizeof (omp_lock_t)" >&2;} 18396 { (exit 1); exit 1; }; } 18397fi 18398rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18399fi 18400fi 18401rm -f conftest.val 18402if test "$cross_compiling" = yes; then 18403 # Depending upon the size, compute the lo and hi bounds. 18404cat >conftest.$ac_ext <<_ACEOF 18405/* confdefs.h. */ 18406_ACEOF 18407cat confdefs.h >>conftest.$ac_ext 18408cat >>conftest.$ac_ext <<_ACEOF 18409/* end confdefs.h. */ 18410 18411int 18412main () 18413{ 18414static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= 0)]; 18415test_array [0] = 0 18416 18417 ; 18418 return 0; 18419} 18420_ACEOF 18421rm -f conftest.$ac_objext 18422if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18423 (eval $ac_compile) 2>conftest.er1 18424 ac_status=$? 18425 grep -v '^ *+' conftest.er1 >conftest.err 18426 rm -f conftest.er1 18427 cat conftest.err >&5 18428 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18429 (exit $ac_status); } && 18430 { ac_try='test -z "$ac_c_werror_flag" 18431 || test ! -s conftest.err' 18432 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18433 (eval $ac_try) 2>&5 18434 ac_status=$? 18435 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18436 (exit $ac_status); }; } && 18437 { ac_try='test -s conftest.$ac_objext' 18438 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18439 (eval $ac_try) 2>&5 18440 ac_status=$? 18441 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18442 (exit $ac_status); }; }; then 18443 ac_lo=0 ac_mid=0 18444 while :; do 18445 cat >conftest.$ac_ext <<_ACEOF 18446/* confdefs.h. */ 18447_ACEOF 18448cat confdefs.h >>conftest.$ac_ext 18449cat >>conftest.$ac_ext <<_ACEOF 18450/* end confdefs.h. */ 18451 18452int 18453main () 18454{ 18455static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; 18456test_array [0] = 0 18457 18458 ; 18459 return 0; 18460} 18461_ACEOF 18462rm -f conftest.$ac_objext 18463if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18464 (eval $ac_compile) 2>conftest.er1 18465 ac_status=$? 18466 grep -v '^ *+' conftest.er1 >conftest.err 18467 rm -f conftest.er1 18468 cat conftest.err >&5 18469 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18470 (exit $ac_status); } && 18471 { ac_try='test -z "$ac_c_werror_flag" 18472 || test ! -s conftest.err' 18473 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18474 (eval $ac_try) 2>&5 18475 ac_status=$? 18476 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18477 (exit $ac_status); }; } && 18478 { ac_try='test -s conftest.$ac_objext' 18479 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18480 (eval $ac_try) 2>&5 18481 ac_status=$? 18482 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18483 (exit $ac_status); }; }; then 18484 ac_hi=$ac_mid; break 18485else 18486 echo "$as_me: failed program was:" >&5 18487sed 's/^/| /' conftest.$ac_ext >&5 18488 18489ac_lo=`expr $ac_mid + 1` 18490 if test $ac_lo -le $ac_mid; then 18491 ac_lo= ac_hi= 18492 break 18493 fi 18494 ac_mid=`expr 2 '*' $ac_mid + 1` 18495fi 18496rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18497 done 18498else 18499 echo "$as_me: failed program was:" >&5 18500sed 's/^/| /' conftest.$ac_ext >&5 18501 18502cat >conftest.$ac_ext <<_ACEOF 18503/* confdefs.h. */ 18504_ACEOF 18505cat confdefs.h >>conftest.$ac_ext 18506cat >>conftest.$ac_ext <<_ACEOF 18507/* end confdefs.h. */ 18508 18509int 18510main () 18511{ 18512static int test_array [1 - 2 * !((__alignof (omp_lock_t)) < 0)]; 18513test_array [0] = 0 18514 18515 ; 18516 return 0; 18517} 18518_ACEOF 18519rm -f conftest.$ac_objext 18520if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18521 (eval $ac_compile) 2>conftest.er1 18522 ac_status=$? 18523 grep -v '^ *+' conftest.er1 >conftest.err 18524 rm -f conftest.er1 18525 cat conftest.err >&5 18526 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18527 (exit $ac_status); } && 18528 { ac_try='test -z "$ac_c_werror_flag" 18529 || test ! -s conftest.err' 18530 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18531 (eval $ac_try) 2>&5 18532 ac_status=$? 18533 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18534 (exit $ac_status); }; } && 18535 { ac_try='test -s conftest.$ac_objext' 18536 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18537 (eval $ac_try) 2>&5 18538 ac_status=$? 18539 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18540 (exit $ac_status); }; }; then 18541 ac_hi=-1 ac_mid=-1 18542 while :; do 18543 cat >conftest.$ac_ext <<_ACEOF 18544/* confdefs.h. */ 18545_ACEOF 18546cat confdefs.h >>conftest.$ac_ext 18547cat >>conftest.$ac_ext <<_ACEOF 18548/* end confdefs.h. */ 18549 18550int 18551main () 18552{ 18553static int test_array [1 - 2 * !((__alignof (omp_lock_t)) >= $ac_mid)]; 18554test_array [0] = 0 18555 18556 ; 18557 return 0; 18558} 18559_ACEOF 18560rm -f conftest.$ac_objext 18561if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18562 (eval $ac_compile) 2>conftest.er1 18563 ac_status=$? 18564 grep -v '^ *+' conftest.er1 >conftest.err 18565 rm -f conftest.er1 18566 cat conftest.err >&5 18567 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18568 (exit $ac_status); } && 18569 { ac_try='test -z "$ac_c_werror_flag" 18570 || test ! -s conftest.err' 18571 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18572 (eval $ac_try) 2>&5 18573 ac_status=$? 18574 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18575 (exit $ac_status); }; } && 18576 { ac_try='test -s conftest.$ac_objext' 18577 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18578 (eval $ac_try) 2>&5 18579 ac_status=$? 18580 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18581 (exit $ac_status); }; }; then 18582 ac_lo=$ac_mid; break 18583else 18584 echo "$as_me: failed program was:" >&5 18585sed 's/^/| /' conftest.$ac_ext >&5 18586 18587ac_hi=`expr '(' $ac_mid ')' - 1` 18588 if test $ac_mid -le $ac_hi; then 18589 ac_lo= ac_hi= 18590 break 18591 fi 18592 ac_mid=`expr 2 '*' $ac_mid` 18593fi 18594rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18595 done 18596else 18597 echo "$as_me: failed program was:" >&5 18598sed 's/^/| /' conftest.$ac_ext >&5 18599 18600ac_lo= ac_hi= 18601fi 18602rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18603fi 18604rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18605# Binary search between lo and hi bounds. 18606while test "x$ac_lo" != "x$ac_hi"; do 18607 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18608 cat >conftest.$ac_ext <<_ACEOF 18609/* confdefs.h. */ 18610_ACEOF 18611cat confdefs.h >>conftest.$ac_ext 18612cat >>conftest.$ac_ext <<_ACEOF 18613/* end confdefs.h. */ 18614 18615int 18616main () 18617{ 18618static int test_array [1 - 2 * !((__alignof (omp_lock_t)) <= $ac_mid)]; 18619test_array [0] = 0 18620 18621 ; 18622 return 0; 18623} 18624_ACEOF 18625rm -f conftest.$ac_objext 18626if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18627 (eval $ac_compile) 2>conftest.er1 18628 ac_status=$? 18629 grep -v '^ *+' conftest.er1 >conftest.err 18630 rm -f conftest.er1 18631 cat conftest.err >&5 18632 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18633 (exit $ac_status); } && 18634 { ac_try='test -z "$ac_c_werror_flag" 18635 || test ! -s conftest.err' 18636 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18637 (eval $ac_try) 2>&5 18638 ac_status=$? 18639 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18640 (exit $ac_status); }; } && 18641 { ac_try='test -s conftest.$ac_objext' 18642 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18643 (eval $ac_try) 2>&5 18644 ac_status=$? 18645 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18646 (exit $ac_status); }; }; then 18647 ac_hi=$ac_mid 18648else 18649 echo "$as_me: failed program was:" >&5 18650sed 's/^/| /' conftest.$ac_ext >&5 18651 18652ac_lo=`expr '(' $ac_mid ')' + 1` 18653fi 18654rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18655done 18656case $ac_lo in 18657?*) OMP_LOCK_ALIGN=$ac_lo;; 18658'') ;; 18659esac 18660else 18661 if test "$cross_compiling" = yes; then 18662 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 18663See \`config.log' for more details." >&5 18664echo "$as_me: error: cannot run test program while cross compiling 18665See \`config.log' for more details." >&2;} 18666 { (exit 1); exit 1; }; } 18667else 18668 cat >conftest.$ac_ext <<_ACEOF 18669/* confdefs.h. */ 18670_ACEOF 18671cat confdefs.h >>conftest.$ac_ext 18672cat >>conftest.$ac_ext <<_ACEOF 18673/* end confdefs.h. */ 18674 18675long longval () { return __alignof (omp_lock_t); } 18676unsigned long ulongval () { return __alignof (omp_lock_t); } 18677#include <stdio.h> 18678#include <stdlib.h> 18679int 18680main () 18681{ 18682 18683 FILE *f = fopen ("conftest.val", "w"); 18684 if (! f) 18685 exit (1); 18686 if ((__alignof (omp_lock_t)) < 0) 18687 { 18688 long i = longval (); 18689 if (i != (__alignof (omp_lock_t))) 18690 exit (1); 18691 fprintf (f, "%ld\n", i); 18692 } 18693 else 18694 { 18695 unsigned long i = ulongval (); 18696 if (i != (__alignof (omp_lock_t))) 18697 exit (1); 18698 fprintf (f, "%lu\n", i); 18699 } 18700 exit (ferror (f) || fclose (f) != 0); 18701 18702 ; 18703 return 0; 18704} 18705_ACEOF 18706rm -f conftest$ac_exeext 18707if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 18708 (eval $ac_link) 2>&5 18709 ac_status=$? 18710 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18711 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 18712 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18713 (eval $ac_try) 2>&5 18714 ac_status=$? 18715 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18716 (exit $ac_status); }; }; then 18717 OMP_LOCK_ALIGN=`cat conftest.val` 18718else 18719 echo "$as_me: program exited with status $ac_status" >&5 18720echo "$as_me: failed program was:" >&5 18721sed 's/^/| /' conftest.$ac_ext >&5 18722 18723fi 18724rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 18725fi 18726fi 18727rm -f conftest.val 18728if test "$cross_compiling" = yes; then 18729 # Depending upon the size, compute the lo and hi bounds. 18730cat >conftest.$ac_ext <<_ACEOF 18731/* confdefs.h. */ 18732_ACEOF 18733cat confdefs.h >>conftest.$ac_ext 18734cat >>conftest.$ac_ext <<_ACEOF 18735/* end confdefs.h. */ 18736 18737int 18738main () 18739{ 18740static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= 0)]; 18741test_array [0] = 0 18742 18743 ; 18744 return 0; 18745} 18746_ACEOF 18747rm -f conftest.$ac_objext 18748if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18749 (eval $ac_compile) 2>conftest.er1 18750 ac_status=$? 18751 grep -v '^ *+' conftest.er1 >conftest.err 18752 rm -f conftest.er1 18753 cat conftest.err >&5 18754 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18755 (exit $ac_status); } && 18756 { ac_try='test -z "$ac_c_werror_flag" 18757 || test ! -s conftest.err' 18758 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18759 (eval $ac_try) 2>&5 18760 ac_status=$? 18761 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18762 (exit $ac_status); }; } && 18763 { ac_try='test -s conftest.$ac_objext' 18764 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18765 (eval $ac_try) 2>&5 18766 ac_status=$? 18767 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18768 (exit $ac_status); }; }; then 18769 ac_lo=0 ac_mid=0 18770 while :; do 18771 cat >conftest.$ac_ext <<_ACEOF 18772/* confdefs.h. */ 18773_ACEOF 18774cat confdefs.h >>conftest.$ac_ext 18775cat >>conftest.$ac_ext <<_ACEOF 18776/* end confdefs.h. */ 18777 18778int 18779main () 18780{ 18781static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; 18782test_array [0] = 0 18783 18784 ; 18785 return 0; 18786} 18787_ACEOF 18788rm -f conftest.$ac_objext 18789if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18790 (eval $ac_compile) 2>conftest.er1 18791 ac_status=$? 18792 grep -v '^ *+' conftest.er1 >conftest.err 18793 rm -f conftest.er1 18794 cat conftest.err >&5 18795 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18796 (exit $ac_status); } && 18797 { ac_try='test -z "$ac_c_werror_flag" 18798 || test ! -s conftest.err' 18799 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18800 (eval $ac_try) 2>&5 18801 ac_status=$? 18802 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18803 (exit $ac_status); }; } && 18804 { ac_try='test -s conftest.$ac_objext' 18805 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18806 (eval $ac_try) 2>&5 18807 ac_status=$? 18808 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18809 (exit $ac_status); }; }; then 18810 ac_hi=$ac_mid; break 18811else 18812 echo "$as_me: failed program was:" >&5 18813sed 's/^/| /' conftest.$ac_ext >&5 18814 18815ac_lo=`expr $ac_mid + 1` 18816 if test $ac_lo -le $ac_mid; then 18817 ac_lo= ac_hi= 18818 break 18819 fi 18820 ac_mid=`expr 2 '*' $ac_mid + 1` 18821fi 18822rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18823 done 18824else 18825 echo "$as_me: failed program was:" >&5 18826sed 's/^/| /' conftest.$ac_ext >&5 18827 18828cat >conftest.$ac_ext <<_ACEOF 18829/* confdefs.h. */ 18830_ACEOF 18831cat confdefs.h >>conftest.$ac_ext 18832cat >>conftest.$ac_ext <<_ACEOF 18833/* end confdefs.h. */ 18834 18835int 18836main () 18837{ 18838static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) < 0)]; 18839test_array [0] = 0 18840 18841 ; 18842 return 0; 18843} 18844_ACEOF 18845rm -f conftest.$ac_objext 18846if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18847 (eval $ac_compile) 2>conftest.er1 18848 ac_status=$? 18849 grep -v '^ *+' conftest.er1 >conftest.err 18850 rm -f conftest.er1 18851 cat conftest.err >&5 18852 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18853 (exit $ac_status); } && 18854 { ac_try='test -z "$ac_c_werror_flag" 18855 || test ! -s conftest.err' 18856 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18857 (eval $ac_try) 2>&5 18858 ac_status=$? 18859 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18860 (exit $ac_status); }; } && 18861 { ac_try='test -s conftest.$ac_objext' 18862 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18863 (eval $ac_try) 2>&5 18864 ac_status=$? 18865 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18866 (exit $ac_status); }; }; then 18867 ac_hi=-1 ac_mid=-1 18868 while :; do 18869 cat >conftest.$ac_ext <<_ACEOF 18870/* confdefs.h. */ 18871_ACEOF 18872cat confdefs.h >>conftest.$ac_ext 18873cat >>conftest.$ac_ext <<_ACEOF 18874/* end confdefs.h. */ 18875 18876int 18877main () 18878{ 18879static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) >= $ac_mid)]; 18880test_array [0] = 0 18881 18882 ; 18883 return 0; 18884} 18885_ACEOF 18886rm -f conftest.$ac_objext 18887if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18888 (eval $ac_compile) 2>conftest.er1 18889 ac_status=$? 18890 grep -v '^ *+' conftest.er1 >conftest.err 18891 rm -f conftest.er1 18892 cat conftest.err >&5 18893 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18894 (exit $ac_status); } && 18895 { ac_try='test -z "$ac_c_werror_flag" 18896 || test ! -s conftest.err' 18897 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18898 (eval $ac_try) 2>&5 18899 ac_status=$? 18900 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18901 (exit $ac_status); }; } && 18902 { ac_try='test -s conftest.$ac_objext' 18903 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18904 (eval $ac_try) 2>&5 18905 ac_status=$? 18906 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18907 (exit $ac_status); }; }; then 18908 ac_lo=$ac_mid; break 18909else 18910 echo "$as_me: failed program was:" >&5 18911sed 's/^/| /' conftest.$ac_ext >&5 18912 18913ac_hi=`expr '(' $ac_mid ')' - 1` 18914 if test $ac_mid -le $ac_hi; then 18915 ac_lo= ac_hi= 18916 break 18917 fi 18918 ac_mid=`expr 2 '*' $ac_mid` 18919fi 18920rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18921 done 18922else 18923 echo "$as_me: failed program was:" >&5 18924sed 's/^/| /' conftest.$ac_ext >&5 18925 18926ac_lo= ac_hi= 18927fi 18928rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18929fi 18930rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18931# Binary search between lo and hi bounds. 18932while test "x$ac_lo" != "x$ac_hi"; do 18933 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 18934 cat >conftest.$ac_ext <<_ACEOF 18935/* confdefs.h. */ 18936_ACEOF 18937cat confdefs.h >>conftest.$ac_ext 18938cat >>conftest.$ac_ext <<_ACEOF 18939/* end confdefs.h. */ 18940 18941int 18942main () 18943{ 18944static int test_array [1 - 2 * !((sizeof (omp_nest_lock_t)) <= $ac_mid)]; 18945test_array [0] = 0 18946 18947 ; 18948 return 0; 18949} 18950_ACEOF 18951rm -f conftest.$ac_objext 18952if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 18953 (eval $ac_compile) 2>conftest.er1 18954 ac_status=$? 18955 grep -v '^ *+' conftest.er1 >conftest.err 18956 rm -f conftest.er1 18957 cat conftest.err >&5 18958 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18959 (exit $ac_status); } && 18960 { ac_try='test -z "$ac_c_werror_flag" 18961 || test ! -s conftest.err' 18962 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18963 (eval $ac_try) 2>&5 18964 ac_status=$? 18965 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18966 (exit $ac_status); }; } && 18967 { ac_try='test -s conftest.$ac_objext' 18968 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 18969 (eval $ac_try) 2>&5 18970 ac_status=$? 18971 echo "$as_me:$LINENO: \$? = $ac_status" >&5 18972 (exit $ac_status); }; }; then 18973 ac_hi=$ac_mid 18974else 18975 echo "$as_me: failed program was:" >&5 18976sed 's/^/| /' conftest.$ac_ext >&5 18977 18978ac_lo=`expr '(' $ac_mid ')' + 1` 18979fi 18980rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 18981done 18982case $ac_lo in 18983?*) OMP_NEST_LOCK_SIZE=$ac_lo;; 18984'') ;; 18985esac 18986else 18987 if test "$cross_compiling" = yes; then 18988 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 18989See \`config.log' for more details." >&5 18990echo "$as_me: error: cannot run test program while cross compiling 18991See \`config.log' for more details." >&2;} 18992 { (exit 1); exit 1; }; } 18993else 18994 cat >conftest.$ac_ext <<_ACEOF 18995/* confdefs.h. */ 18996_ACEOF 18997cat confdefs.h >>conftest.$ac_ext 18998cat >>conftest.$ac_ext <<_ACEOF 18999/* end confdefs.h. */ 19000 19001long longval () { return sizeof (omp_nest_lock_t); } 19002unsigned long ulongval () { return sizeof (omp_nest_lock_t); } 19003#include <stdio.h> 19004#include <stdlib.h> 19005int 19006main () 19007{ 19008 19009 FILE *f = fopen ("conftest.val", "w"); 19010 if (! f) 19011 exit (1); 19012 if ((sizeof (omp_nest_lock_t)) < 0) 19013 { 19014 long i = longval (); 19015 if (i != (sizeof (omp_nest_lock_t))) 19016 exit (1); 19017 fprintf (f, "%ld\n", i); 19018 } 19019 else 19020 { 19021 unsigned long i = ulongval (); 19022 if (i != (sizeof (omp_nest_lock_t))) 19023 exit (1); 19024 fprintf (f, "%lu\n", i); 19025 } 19026 exit (ferror (f) || fclose (f) != 0); 19027 19028 ; 19029 return 0; 19030} 19031_ACEOF 19032rm -f conftest$ac_exeext 19033if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19034 (eval $ac_link) 2>&5 19035 ac_status=$? 19036 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19037 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19038 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19039 (eval $ac_try) 2>&5 19040 ac_status=$? 19041 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19042 (exit $ac_status); }; }; then 19043 OMP_NEST_LOCK_SIZE=`cat conftest.val` 19044else 19045 echo "$as_me: program exited with status $ac_status" >&5 19046echo "$as_me: failed program was:" >&5 19047sed 's/^/| /' conftest.$ac_ext >&5 19048 19049fi 19050rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19051fi 19052fi 19053rm -f conftest.val 19054if test "$cross_compiling" = yes; then 19055 # Depending upon the size, compute the lo and hi bounds. 19056cat >conftest.$ac_ext <<_ACEOF 19057/* confdefs.h. */ 19058_ACEOF 19059cat confdefs.h >>conftest.$ac_ext 19060cat >>conftest.$ac_ext <<_ACEOF 19061/* end confdefs.h. */ 19062 19063int 19064main () 19065{ 19066static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= 0)]; 19067test_array [0] = 0 19068 19069 ; 19070 return 0; 19071} 19072_ACEOF 19073rm -f conftest.$ac_objext 19074if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19075 (eval $ac_compile) 2>conftest.er1 19076 ac_status=$? 19077 grep -v '^ *+' conftest.er1 >conftest.err 19078 rm -f conftest.er1 19079 cat conftest.err >&5 19080 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19081 (exit $ac_status); } && 19082 { ac_try='test -z "$ac_c_werror_flag" 19083 || test ! -s conftest.err' 19084 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19085 (eval $ac_try) 2>&5 19086 ac_status=$? 19087 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19088 (exit $ac_status); }; } && 19089 { ac_try='test -s conftest.$ac_objext' 19090 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19091 (eval $ac_try) 2>&5 19092 ac_status=$? 19093 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19094 (exit $ac_status); }; }; then 19095 ac_lo=0 ac_mid=0 19096 while :; do 19097 cat >conftest.$ac_ext <<_ACEOF 19098/* confdefs.h. */ 19099_ACEOF 19100cat confdefs.h >>conftest.$ac_ext 19101cat >>conftest.$ac_ext <<_ACEOF 19102/* end confdefs.h. */ 19103 19104int 19105main () 19106{ 19107static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; 19108test_array [0] = 0 19109 19110 ; 19111 return 0; 19112} 19113_ACEOF 19114rm -f conftest.$ac_objext 19115if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19116 (eval $ac_compile) 2>conftest.er1 19117 ac_status=$? 19118 grep -v '^ *+' conftest.er1 >conftest.err 19119 rm -f conftest.er1 19120 cat conftest.err >&5 19121 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19122 (exit $ac_status); } && 19123 { ac_try='test -z "$ac_c_werror_flag" 19124 || test ! -s conftest.err' 19125 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19126 (eval $ac_try) 2>&5 19127 ac_status=$? 19128 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19129 (exit $ac_status); }; } && 19130 { ac_try='test -s conftest.$ac_objext' 19131 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19132 (eval $ac_try) 2>&5 19133 ac_status=$? 19134 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19135 (exit $ac_status); }; }; then 19136 ac_hi=$ac_mid; break 19137else 19138 echo "$as_me: failed program was:" >&5 19139sed 's/^/| /' conftest.$ac_ext >&5 19140 19141ac_lo=`expr $ac_mid + 1` 19142 if test $ac_lo -le $ac_mid; then 19143 ac_lo= ac_hi= 19144 break 19145 fi 19146 ac_mid=`expr 2 '*' $ac_mid + 1` 19147fi 19148rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19149 done 19150else 19151 echo "$as_me: failed program was:" >&5 19152sed 's/^/| /' conftest.$ac_ext >&5 19153 19154cat >conftest.$ac_ext <<_ACEOF 19155/* confdefs.h. */ 19156_ACEOF 19157cat confdefs.h >>conftest.$ac_ext 19158cat >>conftest.$ac_ext <<_ACEOF 19159/* end confdefs.h. */ 19160 19161int 19162main () 19163{ 19164static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) < 0)]; 19165test_array [0] = 0 19166 19167 ; 19168 return 0; 19169} 19170_ACEOF 19171rm -f conftest.$ac_objext 19172if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19173 (eval $ac_compile) 2>conftest.er1 19174 ac_status=$? 19175 grep -v '^ *+' conftest.er1 >conftest.err 19176 rm -f conftest.er1 19177 cat conftest.err >&5 19178 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19179 (exit $ac_status); } && 19180 { ac_try='test -z "$ac_c_werror_flag" 19181 || test ! -s conftest.err' 19182 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19183 (eval $ac_try) 2>&5 19184 ac_status=$? 19185 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19186 (exit $ac_status); }; } && 19187 { ac_try='test -s conftest.$ac_objext' 19188 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19189 (eval $ac_try) 2>&5 19190 ac_status=$? 19191 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19192 (exit $ac_status); }; }; then 19193 ac_hi=-1 ac_mid=-1 19194 while :; do 19195 cat >conftest.$ac_ext <<_ACEOF 19196/* confdefs.h. */ 19197_ACEOF 19198cat confdefs.h >>conftest.$ac_ext 19199cat >>conftest.$ac_ext <<_ACEOF 19200/* end confdefs.h. */ 19201 19202int 19203main () 19204{ 19205static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) >= $ac_mid)]; 19206test_array [0] = 0 19207 19208 ; 19209 return 0; 19210} 19211_ACEOF 19212rm -f conftest.$ac_objext 19213if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19214 (eval $ac_compile) 2>conftest.er1 19215 ac_status=$? 19216 grep -v '^ *+' conftest.er1 >conftest.err 19217 rm -f conftest.er1 19218 cat conftest.err >&5 19219 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19220 (exit $ac_status); } && 19221 { ac_try='test -z "$ac_c_werror_flag" 19222 || test ! -s conftest.err' 19223 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19224 (eval $ac_try) 2>&5 19225 ac_status=$? 19226 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19227 (exit $ac_status); }; } && 19228 { ac_try='test -s conftest.$ac_objext' 19229 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19230 (eval $ac_try) 2>&5 19231 ac_status=$? 19232 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19233 (exit $ac_status); }; }; then 19234 ac_lo=$ac_mid; break 19235else 19236 echo "$as_me: failed program was:" >&5 19237sed 's/^/| /' conftest.$ac_ext >&5 19238 19239ac_hi=`expr '(' $ac_mid ')' - 1` 19240 if test $ac_mid -le $ac_hi; then 19241 ac_lo= ac_hi= 19242 break 19243 fi 19244 ac_mid=`expr 2 '*' $ac_mid` 19245fi 19246rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19247 done 19248else 19249 echo "$as_me: failed program was:" >&5 19250sed 's/^/| /' conftest.$ac_ext >&5 19251 19252ac_lo= ac_hi= 19253fi 19254rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19255fi 19256rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19257# Binary search between lo and hi bounds. 19258while test "x$ac_lo" != "x$ac_hi"; do 19259 ac_mid=`expr '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo` 19260 cat >conftest.$ac_ext <<_ACEOF 19261/* confdefs.h. */ 19262_ACEOF 19263cat confdefs.h >>conftest.$ac_ext 19264cat >>conftest.$ac_ext <<_ACEOF 19265/* end confdefs.h. */ 19266 19267int 19268main () 19269{ 19270static int test_array [1 - 2 * !((__alignof (omp_nest_lock_t)) <= $ac_mid)]; 19271test_array [0] = 0 19272 19273 ; 19274 return 0; 19275} 19276_ACEOF 19277rm -f conftest.$ac_objext 19278if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 19279 (eval $ac_compile) 2>conftest.er1 19280 ac_status=$? 19281 grep -v '^ *+' conftest.er1 >conftest.err 19282 rm -f conftest.er1 19283 cat conftest.err >&5 19284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19285 (exit $ac_status); } && 19286 { ac_try='test -z "$ac_c_werror_flag" 19287 || test ! -s conftest.err' 19288 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19289 (eval $ac_try) 2>&5 19290 ac_status=$? 19291 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19292 (exit $ac_status); }; } && 19293 { ac_try='test -s conftest.$ac_objext' 19294 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19295 (eval $ac_try) 2>&5 19296 ac_status=$? 19297 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19298 (exit $ac_status); }; }; then 19299 ac_hi=$ac_mid 19300else 19301 echo "$as_me: failed program was:" >&5 19302sed 's/^/| /' conftest.$ac_ext >&5 19303 19304ac_lo=`expr '(' $ac_mid ')' + 1` 19305fi 19306rm -f conftest.err conftest.$ac_objext conftest.$ac_ext 19307done 19308case $ac_lo in 19309?*) OMP_NEST_LOCK_ALIGN=$ac_lo;; 19310'') ;; 19311esac 19312else 19313 if test "$cross_compiling" = yes; then 19314 { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling 19315See \`config.log' for more details." >&5 19316echo "$as_me: error: cannot run test program while cross compiling 19317See \`config.log' for more details." >&2;} 19318 { (exit 1); exit 1; }; } 19319else 19320 cat >conftest.$ac_ext <<_ACEOF 19321/* confdefs.h. */ 19322_ACEOF 19323cat confdefs.h >>conftest.$ac_ext 19324cat >>conftest.$ac_ext <<_ACEOF 19325/* end confdefs.h. */ 19326 19327long longval () { return __alignof (omp_nest_lock_t); } 19328unsigned long ulongval () { return __alignof (omp_nest_lock_t); } 19329#include <stdio.h> 19330#include <stdlib.h> 19331int 19332main () 19333{ 19334 19335 FILE *f = fopen ("conftest.val", "w"); 19336 if (! f) 19337 exit (1); 19338 if ((__alignof (omp_nest_lock_t)) < 0) 19339 { 19340 long i = longval (); 19341 if (i != (__alignof (omp_nest_lock_t))) 19342 exit (1); 19343 fprintf (f, "%ld\n", i); 19344 } 19345 else 19346 { 19347 unsigned long i = ulongval (); 19348 if (i != (__alignof (omp_nest_lock_t))) 19349 exit (1); 19350 fprintf (f, "%lu\n", i); 19351 } 19352 exit (ferror (f) || fclose (f) != 0); 19353 19354 ; 19355 return 0; 19356} 19357_ACEOF 19358rm -f conftest$ac_exeext 19359if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 19360 (eval $ac_link) 2>&5 19361 ac_status=$? 19362 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19363 (exit $ac_status); } && { ac_try='./conftest$ac_exeext' 19364 { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 19365 (eval $ac_try) 2>&5 19366 ac_status=$? 19367 echo "$as_me:$LINENO: \$? = $ac_status" >&5 19368 (exit $ac_status); }; }; then 19369 OMP_NEST_LOCK_ALIGN=`cat conftest.val` 19370else 19371 echo "$as_me: program exited with status $ac_status" >&5 19372echo "$as_me: failed program was:" >&5 19373sed 's/^/| /' conftest.$ac_ext >&5 19374 19375fi 19376rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext 19377fi 19378fi 19379rm -f conftest.val 19380 19381# If the lock fits in an integer, then arrange for Fortran to use that 19382# integer. If it doesn't, then arrange for Fortran to use a pointer. 19383# Except that we don't have a way at present to multi-lib the installed 19384# Fortran modules, so we assume 8 bytes for pointers, regardless of the 19385# actual target. 19386OMP_LOCK_KIND=$OMP_LOCK_SIZE 19387OMP_NEST_LOCK_KIND=$OMP_NEST_LOCK_SIZE 19388if test $OMP_LOCK_SIZE -gt 8 || test $OMP_LOCK_ALIGN -gt $OMP_LOCK_SIZE; then 19389 OMP_LOCK_KIND=8 19390fi 19391if test $OMP_NEST_LOCK_SIZE -gt 8 || test $OMP_NEST_LOCK_ALIGN -gt $OMP_NEST_LOCK_SIZE; then 19392 OMP_NEST_LOCK_KIND=8 19393fi 19394 19395 19396 19397 19398 19399 19400 19401CFLAGS="$save_CFLAGS" 19402 19403 ac_config_files="$ac_config_files omp.h omp_lib.h omp_lib.f90 libgomp_f.h" 19404 19405 ac_config_files="$ac_config_files Makefile testsuite/Makefile libgomp.spec" 19406 19407cat >confcache <<\_ACEOF 19408# This file is a shell script that caches the results of configure 19409# tests run on this system so they can be shared between configure 19410# scripts and configure runs, see configure's option --config-cache. 19411# It is not useful on other systems. If it contains results you don't 19412# want to keep, you may remove or edit it. 19413# 19414# config.status only pays attention to the cache file if you give it 19415# the --recheck option to rerun configure. 19416# 19417# `ac_cv_env_foo' variables (set or unset) will be overridden when 19418# loading this file, other *unset* `ac_cv_foo' will be assigned the 19419# following values. 19420 19421_ACEOF 19422 19423# The following way of writing the cache mishandles newlines in values, 19424# but we know of no workaround that is simple, portable, and efficient. 19425# So, don't put newlines in cache variables' values. 19426# Ultrix sh set writes to stderr and can't be redirected directly, 19427# and sets the high bit in the cache file unless we assign to the vars. 19428{ 19429 (set) 2>&1 | 19430 case `(ac_space=' '; set | grep ac_space) 2>&1` in 19431 *ac_space=\ *) 19432 # `set' does not quote correctly, so add quotes (double-quote 19433 # substitution turns \\\\ into \\, and sed turns \\ into \). 19434 sed -n \ 19435 "s/'/'\\\\''/g; 19436 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 19437 ;; 19438 *) 19439 # `set' quotes correctly as required by POSIX, so do not add quotes. 19440 sed -n \ 19441 "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" 19442 ;; 19443 esac; 19444} | 19445 sed ' 19446 t clear 19447 : clear 19448 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 19449 t end 19450 /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 19451 : end' >>confcache 19452if diff $cache_file confcache >/dev/null 2>&1; then :; else 19453 if test -w $cache_file; then 19454 test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" 19455 cat confcache >$cache_file 19456 else 19457 echo "not updating unwritable cache $cache_file" 19458 fi 19459fi 19460rm -f confcache 19461 19462test "x$prefix" = xNONE && prefix=$ac_default_prefix 19463# Let make expand exec_prefix. 19464test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 19465 19466# VPATH may cause trouble with some makes, so we remove $(srcdir), 19467# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 19468# trailing colons and then remove the whole line if VPATH becomes empty 19469# (actually we leave an empty line to preserve line numbers). 19470if test "x$srcdir" = x.; then 19471 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 19472s/:*\$(srcdir):*/:/; 19473s/:*\${srcdir}:*/:/; 19474s/:*@srcdir@:*/:/; 19475s/^\([^=]*=[ ]*\):*/\1/; 19476s/:*$//; 19477s/^[^=]*=[ ]*$//; 19478}' 19479fi 19480 19481DEFS=-DHAVE_CONFIG_H 19482 19483ac_libobjs= 19484ac_ltlibobjs= 19485for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 19486 # 1. Remove the extension, and $U if already installed. 19487 ac_i=`echo "$ac_i" | 19488 sed 's/\$U\././;s/\.o$//;s/\.obj$//'` 19489 # 2. Add them. 19490 ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" 19491 ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' 19492done 19493LIBOBJS=$ac_libobjs 19494 19495LTLIBOBJS=$ac_ltlibobjs 19496 19497 19498if test -z "${GENINSRC_TRUE}" && test -z "${GENINSRC_FALSE}"; then 19499 { { echo "$as_me:$LINENO: error: conditional \"GENINSRC\" was never defined. 19500Usually this means the macro was only invoked conditionally." >&5 19501echo "$as_me: error: conditional \"GENINSRC\" was never defined. 19502Usually this means the macro was only invoked conditionally." >&2;} 19503 { (exit 1); exit 1; }; } 19504fi 19505if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 19506 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. 19507Usually this means the macro was only invoked conditionally." >&5 19508echo "$as_me: error: conditional \"AMDEP\" was never defined. 19509Usually this means the macro was only invoked conditionally." >&2;} 19510 { (exit 1); exit 1; }; } 19511fi 19512if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 19513 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. 19514Usually this means the macro was only invoked conditionally." >&5 19515echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. 19516Usually this means the macro was only invoked conditionally." >&2;} 19517 { (exit 1); exit 1; }; } 19518fi 19519if test -z "${BUILD_INFO_TRUE}" && test -z "${BUILD_INFO_FALSE}"; then 19520 { { echo "$as_me:$LINENO: error: conditional \"BUILD_INFO\" was never defined. 19521Usually this means the macro was only invoked conditionally." >&5 19522echo "$as_me: error: conditional \"BUILD_INFO\" was never defined. 19523Usually this means the macro was only invoked conditionally." >&2;} 19524 { (exit 1); exit 1; }; } 19525fi 19526if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 19527 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. 19528Usually this means the macro was only invoked conditionally." >&5 19529echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. 19530Usually this means the macro was only invoked conditionally." >&2;} 19531 { (exit 1); exit 1; }; } 19532fi 19533if test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE}" && test -z "${LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE}"; then 19534 { { echo "$as_me:$LINENO: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. 19535Usually this means the macro was only invoked conditionally." >&5 19536echo "$as_me: error: conditional \"LIBGOMP_BUILD_VERSIONED_SHLIB\" was never defined. 19537Usually this means the macro was only invoked conditionally." >&2;} 19538 { (exit 1); exit 1; }; } 19539fi 19540if test -z "${USE_FORTRAN_TRUE}" && test -z "${USE_FORTRAN_FALSE}"; then 19541 { { echo "$as_me:$LINENO: error: conditional \"USE_FORTRAN\" was never defined. 19542Usually this means the macro was only invoked conditionally." >&5 19543echo "$as_me: error: conditional \"USE_FORTRAN\" was never defined. 19544Usually this means the macro was only invoked conditionally." >&2;} 19545 { (exit 1); exit 1; }; } 19546fi 19547 19548: ${CONFIG_STATUS=./config.status} 19549ac_clean_files_save=$ac_clean_files 19550ac_clean_files="$ac_clean_files $CONFIG_STATUS" 19551{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 19552echo "$as_me: creating $CONFIG_STATUS" >&6;} 19553cat >$CONFIG_STATUS <<_ACEOF 19554#! $SHELL 19555# Generated by $as_me. 19556# Run this file to recreate the current configuration. 19557# Compiler output produced by configure, useful for debugging 19558# configure, is in config.log if it exists. 19559 19560debug=false 19561ac_cs_recheck=false 19562ac_cs_silent=false 19563SHELL=\${CONFIG_SHELL-$SHELL} 19564_ACEOF 19565 19566cat >>$CONFIG_STATUS <<\_ACEOF 19567## --------------------- ## 19568## M4sh Initialization. ## 19569## --------------------- ## 19570 19571# Be Bourne compatible 19572if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then 19573 emulate sh 19574 NULLCMD=: 19575 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which 19576 # is contrary to our usage. Disable this feature. 19577 alias -g '${1+"$@"}'='"$@"' 19578elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then 19579 set -o posix 19580fi 19581DUALCASE=1; export DUALCASE # for MKS sh 19582 19583# Support unset when possible. 19584if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 19585 as_unset=unset 19586else 19587 as_unset=false 19588fi 19589 19590 19591# Work around bugs in pre-3.0 UWIN ksh. 19592$as_unset ENV MAIL MAILPATH 19593PS1='$ ' 19594PS2='> ' 19595PS4='+ ' 19596 19597# NLS nuisances. 19598for as_var in \ 19599 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ 19600 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ 19601 LC_TELEPHONE LC_TIME 19602do 19603 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then 19604 eval $as_var=C; export $as_var 19605 else 19606 $as_unset $as_var 19607 fi 19608done 19609 19610# Required to use basename. 19611if expr a : '\(a\)' >/dev/null 2>&1; then 19612 as_expr=expr 19613else 19614 as_expr=false 19615fi 19616 19617if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then 19618 as_basename=basename 19619else 19620 as_basename=false 19621fi 19622 19623 19624# Name of the executable. 19625as_me=`$as_basename "$0" || 19626$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 19627 X"$0" : 'X\(//\)$' \| \ 19628 X"$0" : 'X\(/\)$' \| \ 19629 . : '\(.\)' 2>/dev/null || 19630echo X/"$0" | 19631 sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } 19632 /^X\/\(\/\/\)$/{ s//\1/; q; } 19633 /^X\/\(\/\).*/{ s//\1/; q; } 19634 s/.*/./; q'` 19635 19636 19637# PATH needs CR, and LINENO needs CR and PATH. 19638# Avoid depending upon Character Ranges. 19639as_cr_letters='abcdefghijklmnopqrstuvwxyz' 19640as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 19641as_cr_Letters=$as_cr_letters$as_cr_LETTERS 19642as_cr_digits='0123456789' 19643as_cr_alnum=$as_cr_Letters$as_cr_digits 19644 19645# The user is always right. 19646if test "${PATH_SEPARATOR+set}" != set; then 19647 echo "#! /bin/sh" >conf$$.sh 19648 echo "exit 0" >>conf$$.sh 19649 chmod +x conf$$.sh 19650 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 19651 PATH_SEPARATOR=';' 19652 else 19653 PATH_SEPARATOR=: 19654 fi 19655 rm -f conf$$.sh 19656fi 19657 19658 19659 as_lineno_1=$LINENO 19660 as_lineno_2=$LINENO 19661 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19662 test "x$as_lineno_1" != "x$as_lineno_2" && 19663 test "x$as_lineno_3" = "x$as_lineno_2" || { 19664 # Find who we are. Look in the path if we contain no path at all 19665 # relative or not. 19666 case $0 in 19667 *[\\/]* ) as_myself=$0 ;; 19668 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19669for as_dir in $PATH 19670do 19671 IFS=$as_save_IFS 19672 test -z "$as_dir" && as_dir=. 19673 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 19674done 19675 19676 ;; 19677 esac 19678 # We did not find ourselves, most probably we were run as `sh COMMAND' 19679 # in which case we are not to be found in the path. 19680 if test "x$as_myself" = x; then 19681 as_myself=$0 19682 fi 19683 if test ! -f "$as_myself"; then 19684 { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 19685echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} 19686 { (exit 1); exit 1; }; } 19687 fi 19688 case $CONFIG_SHELL in 19689 '') 19690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 19691for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 19692do 19693 IFS=$as_save_IFS 19694 test -z "$as_dir" && as_dir=. 19695 for as_base in sh bash ksh sh5; do 19696 case $as_dir in 19697 /*) 19698 if ("$as_dir/$as_base" -c ' 19699 as_lineno_1=$LINENO 19700 as_lineno_2=$LINENO 19701 as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` 19702 test "x$as_lineno_1" != "x$as_lineno_2" && 19703 test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then 19704 $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } 19705 $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } 19706 CONFIG_SHELL=$as_dir/$as_base 19707 export CONFIG_SHELL 19708 exec "$CONFIG_SHELL" "$0" ${1+"$@"} 19709 fi;; 19710 esac 19711 done 19712done 19713;; 19714 esac 19715 19716 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO 19717 # uniformly replaced by the line number. The first 'sed' inserts a 19718 # line-number line before each line; the second 'sed' does the real 19719 # work. The second script uses 'N' to pair each line-number line 19720 # with the numbered line, and appends trailing '-' during 19721 # substitution so that $LINENO is not a special case at line end. 19722 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the 19723 # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) 19724 sed '=' <$as_myself | 19725 sed ' 19726 N 19727 s,$,-, 19728 : loop 19729 s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, 19730 t loop 19731 s,-$,, 19732 s,^['$as_cr_digits']*\n,, 19733 ' >$as_me.lineno && 19734 chmod +x $as_me.lineno || 19735 { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 19736echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} 19737 { (exit 1); exit 1; }; } 19738 19739 # Don't try to exec as it changes $[0], causing all sort of problems 19740 # (the dirname of $[0] is not the place where we might find the 19741 # original and so on. Autoconf is especially sensible to this). 19742 . ./$as_me.lineno 19743 # Exit status is that of the last command. 19744 exit 19745} 19746 19747 19748case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in 19749 *c*,-n*) ECHO_N= ECHO_C=' 19750' ECHO_T=' ' ;; 19751 *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; 19752 *) ECHO_N= ECHO_C='\c' ECHO_T= ;; 19753esac 19754 19755if expr a : '\(a\)' >/dev/null 2>&1; then 19756 as_expr=expr 19757else 19758 as_expr=false 19759fi 19760 19761rm -f conf$$ conf$$.exe conf$$.file 19762echo >conf$$.file 19763if ln -s conf$$.file conf$$ 2>/dev/null; then 19764 # We could just check for DJGPP; but this test a) works b) is more generic 19765 # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). 19766 if test -f conf$$.exe; then 19767 # Don't use ln at all; we don't have any links 19768 as_ln_s='cp -p' 19769 else 19770 as_ln_s='ln -s' 19771 fi 19772elif ln conf$$.file conf$$ 2>/dev/null; then 19773 as_ln_s=ln 19774else 19775 as_ln_s='cp -p' 19776fi 19777rm -f conf$$ conf$$.exe conf$$.file 19778 19779if mkdir -p . 2>/dev/null; then 19780 as_mkdir_p=: 19781else 19782 test -d ./-p && rmdir ./-p 19783 as_mkdir_p=false 19784fi 19785 19786as_executable_p="test -f" 19787 19788# Sed expression to map a string onto a valid CPP name. 19789as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 19790 19791# Sed expression to map a string onto a valid variable name. 19792as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 19793 19794 19795# IFS 19796# We need space, tab and new line, in precisely that order. 19797as_nl=' 19798' 19799IFS=" $as_nl" 19800 19801# CDPATH. 19802$as_unset CDPATH 19803 19804exec 6>&1 19805 19806# Open the log real soon, to keep \$[0] and so on meaningful, and to 19807# report actual input values of CONFIG_FILES etc. instead of their 19808# values after options handling. Logging --version etc. is OK. 19809exec 5>>config.log 19810{ 19811 echo 19812 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 19813## Running $as_me. ## 19814_ASBOX 19815} >&5 19816cat >&5 <<_CSEOF 19817 19818This file was extended by GNU OpenMP Runtime Library $as_me 1.0, which was 19819generated by GNU Autoconf 2.59. Invocation command line was 19820 19821 CONFIG_FILES = $CONFIG_FILES 19822 CONFIG_HEADERS = $CONFIG_HEADERS 19823 CONFIG_LINKS = $CONFIG_LINKS 19824 CONFIG_COMMANDS = $CONFIG_COMMANDS 19825 $ $0 $@ 19826 19827_CSEOF 19828echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 19829echo >&5 19830_ACEOF 19831 19832# Files that config.status was made for. 19833if test -n "$ac_config_files"; then 19834 echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS 19835fi 19836 19837if test -n "$ac_config_headers"; then 19838 echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS 19839fi 19840 19841if test -n "$ac_config_links"; then 19842 echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS 19843fi 19844 19845if test -n "$ac_config_commands"; then 19846 echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS 19847fi 19848 19849cat >>$CONFIG_STATUS <<\_ACEOF 19850 19851ac_cs_usage="\ 19852\`$as_me' instantiates files from templates according to the 19853current configuration. 19854 19855Usage: $0 [OPTIONS] [FILE]... 19856 19857 -h, --help print this help, then exit 19858 -V, --version print version number, then exit 19859 -q, --quiet do not print progress messages 19860 -d, --debug don't remove temporary files 19861 --recheck update $as_me by reconfiguring in the same conditions 19862 --file=FILE[:TEMPLATE] 19863 instantiate the configuration file FILE 19864 --header=FILE[:TEMPLATE] 19865 instantiate the configuration header FILE 19866 19867Configuration files: 19868$config_files 19869 19870Configuration headers: 19871$config_headers 19872 19873Configuration commands: 19874$config_commands 19875 19876Report bugs to <bug-autoconf@gnu.org>." 19877_ACEOF 19878 19879cat >>$CONFIG_STATUS <<_ACEOF 19880ac_cs_version="\\ 19881GNU OpenMP Runtime Library config.status 1.0 19882configured by $0, generated by GNU Autoconf 2.59, 19883 with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" 19884 19885Copyright (C) 2003 Free Software Foundation, Inc. 19886This config.status script is free software; the Free Software Foundation 19887gives unlimited permission to copy, distribute and modify it." 19888srcdir=$srcdir 19889INSTALL="$INSTALL" 19890_ACEOF 19891 19892cat >>$CONFIG_STATUS <<\_ACEOF 19893# If no file are specified by the user, then we need to provide default 19894# value. By we need to know if files were specified by the user. 19895ac_need_defaults=: 19896while test $# != 0 19897do 19898 case $1 in 19899 --*=*) 19900 ac_option=`expr "x$1" : 'x\([^=]*\)='` 19901 ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` 19902 ac_shift=: 19903 ;; 19904 -*) 19905 ac_option=$1 19906 ac_optarg=$2 19907 ac_shift=shift 19908 ;; 19909 *) # This is not an option, so the user has probably given explicit 19910 # arguments. 19911 ac_option=$1 19912 ac_need_defaults=false;; 19913 esac 19914 19915 case $ac_option in 19916 # Handling of the options. 19917_ACEOF 19918cat >>$CONFIG_STATUS <<\_ACEOF 19919 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 19920 ac_cs_recheck=: ;; 19921 --version | --vers* | -V ) 19922 echo "$ac_cs_version"; exit 0 ;; 19923 --he | --h) 19924 # Conflict between --help and --header 19925 { { echo "$as_me:$LINENO: error: ambiguous option: $1 19926Try \`$0 --help' for more information." >&5 19927echo "$as_me: error: ambiguous option: $1 19928Try \`$0 --help' for more information." >&2;} 19929 { (exit 1); exit 1; }; };; 19930 --help | --hel | -h ) 19931 echo "$ac_cs_usage"; exit 0 ;; 19932 --debug | --d* | -d ) 19933 debug=: ;; 19934 --file | --fil | --fi | --f ) 19935 $ac_shift 19936 CONFIG_FILES="$CONFIG_FILES $ac_optarg" 19937 ac_need_defaults=false;; 19938 --header | --heade | --head | --hea ) 19939 $ac_shift 19940 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" 19941 ac_need_defaults=false;; 19942 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 19943 | -silent | --silent | --silen | --sile | --sil | --si | --s) 19944 ac_cs_silent=: ;; 19945 19946 # This is an error. 19947 -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 19948Try \`$0 --help' for more information." >&5 19949echo "$as_me: error: unrecognized option: $1 19950Try \`$0 --help' for more information." >&2;} 19951 { (exit 1); exit 1; }; } ;; 19952 19953 *) ac_config_targets="$ac_config_targets $1" ;; 19954 19955 esac 19956 shift 19957done 19958 19959ac_configure_extra_args= 19960 19961if $ac_cs_silent; then 19962 exec 6>/dev/null 19963 ac_configure_extra_args="$ac_configure_extra_args --silent" 19964fi 19965 19966_ACEOF 19967cat >>$CONFIG_STATUS <<_ACEOF 19968if \$ac_cs_recheck; then 19969 echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 19970 exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 19971fi 19972 19973_ACEOF 19974 19975cat >>$CONFIG_STATUS <<_ACEOF 19976# 19977# INIT-COMMANDS section. 19978# 19979 19980 19981srcdir="$srcdir" 19982host="$host" 19983target="$target" 19984with_multisubdir="$with_multisubdir" 19985with_multisrctop="$with_multisrctop" 19986with_target_subdir="$with_target_subdir" 19987ac_configure_args="${multilib_arg} ${ac_configure_args}" 19988multi_basedir="$multi_basedir" 19989CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 19990CC="$CC" 19991AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 19992 19993 19994# The HP-UX ksh and POSIX shell print the target directory to stdout 19995# if CDPATH is set. 19996(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 19997 19998sed_quote_subst='$sed_quote_subst' 19999double_quote_subst='$double_quote_subst' 20000delay_variable_subst='$delay_variable_subst' 20001macro_version='`$ECHO "X$macro_version" | $Xsed -e "$delay_single_quote_subst"`' 20002macro_revision='`$ECHO "X$macro_revision" | $Xsed -e "$delay_single_quote_subst"`' 20003enable_shared='`$ECHO "X$enable_shared" | $Xsed -e "$delay_single_quote_subst"`' 20004enable_static='`$ECHO "X$enable_static" | $Xsed -e "$delay_single_quote_subst"`' 20005pic_mode='`$ECHO "X$pic_mode" | $Xsed -e "$delay_single_quote_subst"`' 20006enable_fast_install='`$ECHO "X$enable_fast_install" | $Xsed -e "$delay_single_quote_subst"`' 20007host_alias='`$ECHO "X$host_alias" | $Xsed -e "$delay_single_quote_subst"`' 20008host='`$ECHO "X$host" | $Xsed -e "$delay_single_quote_subst"`' 20009host_os='`$ECHO "X$host_os" | $Xsed -e "$delay_single_quote_subst"`' 20010build_alias='`$ECHO "X$build_alias" | $Xsed -e "$delay_single_quote_subst"`' 20011build='`$ECHO "X$build" | $Xsed -e "$delay_single_quote_subst"`' 20012build_os='`$ECHO "X$build_os" | $Xsed -e "$delay_single_quote_subst"`' 20013SED='`$ECHO "X$SED" | $Xsed -e "$delay_single_quote_subst"`' 20014Xsed='`$ECHO "X$Xsed" | $Xsed -e "$delay_single_quote_subst"`' 20015GREP='`$ECHO "X$GREP" | $Xsed -e "$delay_single_quote_subst"`' 20016EGREP='`$ECHO "X$EGREP" | $Xsed -e "$delay_single_quote_subst"`' 20017FGREP='`$ECHO "X$FGREP" | $Xsed -e "$delay_single_quote_subst"`' 20018LD='`$ECHO "X$LD" | $Xsed -e "$delay_single_quote_subst"`' 20019NM='`$ECHO "X$NM" | $Xsed -e "$delay_single_quote_subst"`' 20020LN_S='`$ECHO "X$LN_S" | $Xsed -e "$delay_single_quote_subst"`' 20021max_cmd_len='`$ECHO "X$max_cmd_len" | $Xsed -e "$delay_single_quote_subst"`' 20022ac_objext='`$ECHO "X$ac_objext" | $Xsed -e "$delay_single_quote_subst"`' 20023exeext='`$ECHO "X$exeext" | $Xsed -e "$delay_single_quote_subst"`' 20024lt_unset='`$ECHO "X$lt_unset" | $Xsed -e "$delay_single_quote_subst"`' 20025lt_SP2NL='`$ECHO "X$lt_SP2NL" | $Xsed -e "$delay_single_quote_subst"`' 20026lt_NL2SP='`$ECHO "X$lt_NL2SP" | $Xsed -e "$delay_single_quote_subst"`' 20027reload_flag='`$ECHO "X$reload_flag" | $Xsed -e "$delay_single_quote_subst"`' 20028reload_cmds='`$ECHO "X$reload_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20029deplibs_check_method='`$ECHO "X$deplibs_check_method" | $Xsed -e "$delay_single_quote_subst"`' 20030file_magic_cmd='`$ECHO "X$file_magic_cmd" | $Xsed -e "$delay_single_quote_subst"`' 20031AR='`$ECHO "X$AR" | $Xsed -e "$delay_single_quote_subst"`' 20032AR_FLAGS='`$ECHO "X$AR_FLAGS" | $Xsed -e "$delay_single_quote_subst"`' 20033STRIP='`$ECHO "X$STRIP" | $Xsed -e "$delay_single_quote_subst"`' 20034RANLIB='`$ECHO "X$RANLIB" | $Xsed -e "$delay_single_quote_subst"`' 20035old_postinstall_cmds='`$ECHO "X$old_postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20036old_postuninstall_cmds='`$ECHO "X$old_postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20037old_archive_cmds='`$ECHO "X$old_archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20038CC='`$ECHO "X$CC" | $Xsed -e "$delay_single_quote_subst"`' 20039CFLAGS='`$ECHO "X$CFLAGS" | $Xsed -e "$delay_single_quote_subst"`' 20040compiler='`$ECHO "X$compiler" | $Xsed -e "$delay_single_quote_subst"`' 20041GCC='`$ECHO "X$GCC" | $Xsed -e "$delay_single_quote_subst"`' 20042lt_cv_sys_global_symbol_pipe='`$ECHO "X$lt_cv_sys_global_symbol_pipe" | $Xsed -e "$delay_single_quote_subst"`' 20043lt_cv_sys_global_symbol_to_cdecl='`$ECHO "X$lt_cv_sys_global_symbol_to_cdecl" | $Xsed -e "$delay_single_quote_subst"`' 20044lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "X$lt_cv_sys_global_symbol_to_c_name_address" | $Xsed -e "$delay_single_quote_subst"`' 20045objdir='`$ECHO "X$objdir" | $Xsed -e "$delay_single_quote_subst"`' 20046SHELL='`$ECHO "X$SHELL" | $Xsed -e "$delay_single_quote_subst"`' 20047ECHO='`$ECHO "X$ECHO" | $Xsed -e "$delay_single_quote_subst"`' 20048MAGIC_CMD='`$ECHO "X$MAGIC_CMD" | $Xsed -e "$delay_single_quote_subst"`' 20049lt_prog_compiler_no_builtin_flag='`$ECHO "X$lt_prog_compiler_no_builtin_flag" | $Xsed -e "$delay_single_quote_subst"`' 20050lt_prog_compiler_wl='`$ECHO "X$lt_prog_compiler_wl" | $Xsed -e "$delay_single_quote_subst"`' 20051lt_prog_compiler_pic='`$ECHO "X$lt_prog_compiler_pic" | $Xsed -e "$delay_single_quote_subst"`' 20052lt_prog_compiler_static='`$ECHO "X$lt_prog_compiler_static" | $Xsed -e "$delay_single_quote_subst"`' 20053lt_cv_prog_compiler_c_o='`$ECHO "X$lt_cv_prog_compiler_c_o" | $Xsed -e "$delay_single_quote_subst"`' 20054need_locks='`$ECHO "X$need_locks" | $Xsed -e "$delay_single_quote_subst"`' 20055libext='`$ECHO "X$libext" | $Xsed -e "$delay_single_quote_subst"`' 20056shrext_cmds='`$ECHO "X$shrext_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20057extract_expsyms_cmds='`$ECHO "X$extract_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20058archive_cmds_need_lc='`$ECHO "X$archive_cmds_need_lc" | $Xsed -e "$delay_single_quote_subst"`' 20059enable_shared_with_static_runtimes='`$ECHO "X$enable_shared_with_static_runtimes" | $Xsed -e "$delay_single_quote_subst"`' 20060export_dynamic_flag_spec='`$ECHO "X$export_dynamic_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 20061whole_archive_flag_spec='`$ECHO "X$whole_archive_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 20062compiler_needs_object='`$ECHO "X$compiler_needs_object" | $Xsed -e "$delay_single_quote_subst"`' 20063old_archive_from_new_cmds='`$ECHO "X$old_archive_from_new_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20064old_archive_from_expsyms_cmds='`$ECHO "X$old_archive_from_expsyms_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20065archive_cmds='`$ECHO "X$archive_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20066archive_expsym_cmds='`$ECHO "X$archive_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20067module_cmds='`$ECHO "X$module_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20068module_expsym_cmds='`$ECHO "X$module_expsym_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20069with_gnu_ld='`$ECHO "X$with_gnu_ld" | $Xsed -e "$delay_single_quote_subst"`' 20070allow_undefined_flag='`$ECHO "X$allow_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 20071no_undefined_flag='`$ECHO "X$no_undefined_flag" | $Xsed -e "$delay_single_quote_subst"`' 20072hardcode_libdir_flag_spec='`$ECHO "X$hardcode_libdir_flag_spec" | $Xsed -e "$delay_single_quote_subst"`' 20073hardcode_libdir_flag_spec_ld='`$ECHO "X$hardcode_libdir_flag_spec_ld" | $Xsed -e "$delay_single_quote_subst"`' 20074hardcode_libdir_separator='`$ECHO "X$hardcode_libdir_separator" | $Xsed -e "$delay_single_quote_subst"`' 20075hardcode_direct='`$ECHO "X$hardcode_direct" | $Xsed -e "$delay_single_quote_subst"`' 20076hardcode_direct_absolute='`$ECHO "X$hardcode_direct_absolute" | $Xsed -e "$delay_single_quote_subst"`' 20077hardcode_minus_L='`$ECHO "X$hardcode_minus_L" | $Xsed -e "$delay_single_quote_subst"`' 20078hardcode_shlibpath_var='`$ECHO "X$hardcode_shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 20079hardcode_automatic='`$ECHO "X$hardcode_automatic" | $Xsed -e "$delay_single_quote_subst"`' 20080inherit_rpath='`$ECHO "X$inherit_rpath" | $Xsed -e "$delay_single_quote_subst"`' 20081link_all_deplibs='`$ECHO "X$link_all_deplibs" | $Xsed -e "$delay_single_quote_subst"`' 20082fix_srcfile_path='`$ECHO "X$fix_srcfile_path" | $Xsed -e "$delay_single_quote_subst"`' 20083always_export_symbols='`$ECHO "X$always_export_symbols" | $Xsed -e "$delay_single_quote_subst"`' 20084export_symbols_cmds='`$ECHO "X$export_symbols_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20085exclude_expsyms='`$ECHO "X$exclude_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 20086include_expsyms='`$ECHO "X$include_expsyms" | $Xsed -e "$delay_single_quote_subst"`' 20087prelink_cmds='`$ECHO "X$prelink_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20088file_list_spec='`$ECHO "X$file_list_spec" | $Xsed -e "$delay_single_quote_subst"`' 20089variables_saved_for_relink='`$ECHO "X$variables_saved_for_relink" | $Xsed -e "$delay_single_quote_subst"`' 20090need_lib_prefix='`$ECHO "X$need_lib_prefix" | $Xsed -e "$delay_single_quote_subst"`' 20091need_version='`$ECHO "X$need_version" | $Xsed -e "$delay_single_quote_subst"`' 20092version_type='`$ECHO "X$version_type" | $Xsed -e "$delay_single_quote_subst"`' 20093runpath_var='`$ECHO "X$runpath_var" | $Xsed -e "$delay_single_quote_subst"`' 20094shlibpath_var='`$ECHO "X$shlibpath_var" | $Xsed -e "$delay_single_quote_subst"`' 20095shlibpath_overrides_runpath='`$ECHO "X$shlibpath_overrides_runpath" | $Xsed -e "$delay_single_quote_subst"`' 20096libname_spec='`$ECHO "X$libname_spec" | $Xsed -e "$delay_single_quote_subst"`' 20097library_names_spec='`$ECHO "X$library_names_spec" | $Xsed -e "$delay_single_quote_subst"`' 20098soname_spec='`$ECHO "X$soname_spec" | $Xsed -e "$delay_single_quote_subst"`' 20099postinstall_cmds='`$ECHO "X$postinstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20100postuninstall_cmds='`$ECHO "X$postuninstall_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20101finish_cmds='`$ECHO "X$finish_cmds" | $Xsed -e "$delay_single_quote_subst"`' 20102finish_eval='`$ECHO "X$finish_eval" | $Xsed -e "$delay_single_quote_subst"`' 20103hardcode_into_libs='`$ECHO "X$hardcode_into_libs" | $Xsed -e "$delay_single_quote_subst"`' 20104sys_lib_search_path_spec='`$ECHO "X$sys_lib_search_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 20105sys_lib_dlsearch_path_spec='`$ECHO "X$sys_lib_dlsearch_path_spec" | $Xsed -e "$delay_single_quote_subst"`' 20106hardcode_action='`$ECHO "X$hardcode_action" | $Xsed -e "$delay_single_quote_subst"`' 20107enable_dlopen='`$ECHO "X$enable_dlopen" | $Xsed -e "$delay_single_quote_subst"`' 20108enable_dlopen_self='`$ECHO "X$enable_dlopen_self" | $Xsed -e "$delay_single_quote_subst"`' 20109enable_dlopen_self_static='`$ECHO "X$enable_dlopen_self_static" | $Xsed -e "$delay_single_quote_subst"`' 20110old_striplib='`$ECHO "X$old_striplib" | $Xsed -e "$delay_single_quote_subst"`' 20111striplib='`$ECHO "X$striplib" | $Xsed -e "$delay_single_quote_subst"`' 20112predep_objects='`$ECHO "X$predep_objects" | $Xsed -e "$delay_single_quote_subst"`' 20113postdep_objects='`$ECHO "X$postdep_objects" | $Xsed -e "$delay_single_quote_subst"`' 20114predeps='`$ECHO "X$predeps" | $Xsed -e "$delay_single_quote_subst"`' 20115postdeps='`$ECHO "X$postdeps" | $Xsed -e "$delay_single_quote_subst"`' 20116compiler_lib_search_path='`$ECHO "X$compiler_lib_search_path" | $Xsed -e "$delay_single_quote_subst"`' 20117LD_FC='`$ECHO "X$LD_FC" | $Xsed -e "$delay_single_quote_subst"`' 20118old_archive_cmds_FC='`$ECHO "X$old_archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20119compiler_FC='`$ECHO "X$compiler_FC" | $Xsed -e "$delay_single_quote_subst"`' 20120GCC_FC='`$ECHO "X$GCC_FC" | $Xsed -e "$delay_single_quote_subst"`' 20121lt_prog_compiler_no_builtin_flag_FC='`$ECHO "X$lt_prog_compiler_no_builtin_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' 20122lt_prog_compiler_wl_FC='`$ECHO "X$lt_prog_compiler_wl_FC" | $Xsed -e "$delay_single_quote_subst"`' 20123lt_prog_compiler_pic_FC='`$ECHO "X$lt_prog_compiler_pic_FC" | $Xsed -e "$delay_single_quote_subst"`' 20124lt_prog_compiler_static_FC='`$ECHO "X$lt_prog_compiler_static_FC" | $Xsed -e "$delay_single_quote_subst"`' 20125lt_cv_prog_compiler_c_o_FC='`$ECHO "X$lt_cv_prog_compiler_c_o_FC" | $Xsed -e "$delay_single_quote_subst"`' 20126archive_cmds_need_lc_FC='`$ECHO "X$archive_cmds_need_lc_FC" | $Xsed -e "$delay_single_quote_subst"`' 20127enable_shared_with_static_runtimes_FC='`$ECHO "X$enable_shared_with_static_runtimes_FC" | $Xsed -e "$delay_single_quote_subst"`' 20128export_dynamic_flag_spec_FC='`$ECHO "X$export_dynamic_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' 20129whole_archive_flag_spec_FC='`$ECHO "X$whole_archive_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' 20130compiler_needs_object_FC='`$ECHO "X$compiler_needs_object_FC" | $Xsed -e "$delay_single_quote_subst"`' 20131old_archive_from_new_cmds_FC='`$ECHO "X$old_archive_from_new_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20132old_archive_from_expsyms_cmds_FC='`$ECHO "X$old_archive_from_expsyms_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20133archive_cmds_FC='`$ECHO "X$archive_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20134archive_expsym_cmds_FC='`$ECHO "X$archive_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20135module_cmds_FC='`$ECHO "X$module_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20136module_expsym_cmds_FC='`$ECHO "X$module_expsym_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20137with_gnu_ld_FC='`$ECHO "X$with_gnu_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' 20138allow_undefined_flag_FC='`$ECHO "X$allow_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' 20139no_undefined_flag_FC='`$ECHO "X$no_undefined_flag_FC" | $Xsed -e "$delay_single_quote_subst"`' 20140hardcode_libdir_flag_spec_FC='`$ECHO "X$hardcode_libdir_flag_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' 20141hardcode_libdir_flag_spec_ld_FC='`$ECHO "X$hardcode_libdir_flag_spec_ld_FC" | $Xsed -e "$delay_single_quote_subst"`' 20142hardcode_libdir_separator_FC='`$ECHO "X$hardcode_libdir_separator_FC" | $Xsed -e "$delay_single_quote_subst"`' 20143hardcode_direct_FC='`$ECHO "X$hardcode_direct_FC" | $Xsed -e "$delay_single_quote_subst"`' 20144hardcode_direct_absolute_FC='`$ECHO "X$hardcode_direct_absolute_FC" | $Xsed -e "$delay_single_quote_subst"`' 20145hardcode_minus_L_FC='`$ECHO "X$hardcode_minus_L_FC" | $Xsed -e "$delay_single_quote_subst"`' 20146hardcode_shlibpath_var_FC='`$ECHO "X$hardcode_shlibpath_var_FC" | $Xsed -e "$delay_single_quote_subst"`' 20147hardcode_automatic_FC='`$ECHO "X$hardcode_automatic_FC" | $Xsed -e "$delay_single_quote_subst"`' 20148inherit_rpath_FC='`$ECHO "X$inherit_rpath_FC" | $Xsed -e "$delay_single_quote_subst"`' 20149link_all_deplibs_FC='`$ECHO "X$link_all_deplibs_FC" | $Xsed -e "$delay_single_quote_subst"`' 20150fix_srcfile_path_FC='`$ECHO "X$fix_srcfile_path_FC" | $Xsed -e "$delay_single_quote_subst"`' 20151always_export_symbols_FC='`$ECHO "X$always_export_symbols_FC" | $Xsed -e "$delay_single_quote_subst"`' 20152export_symbols_cmds_FC='`$ECHO "X$export_symbols_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20153exclude_expsyms_FC='`$ECHO "X$exclude_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' 20154include_expsyms_FC='`$ECHO "X$include_expsyms_FC" | $Xsed -e "$delay_single_quote_subst"`' 20155prelink_cmds_FC='`$ECHO "X$prelink_cmds_FC" | $Xsed -e "$delay_single_quote_subst"`' 20156file_list_spec_FC='`$ECHO "X$file_list_spec_FC" | $Xsed -e "$delay_single_quote_subst"`' 20157hardcode_action_FC='`$ECHO "X$hardcode_action_FC" | $Xsed -e "$delay_single_quote_subst"`' 20158predep_objects_FC='`$ECHO "X$predep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' 20159postdep_objects_FC='`$ECHO "X$postdep_objects_FC" | $Xsed -e "$delay_single_quote_subst"`' 20160predeps_FC='`$ECHO "X$predeps_FC" | $Xsed -e "$delay_single_quote_subst"`' 20161postdeps_FC='`$ECHO "X$postdeps_FC" | $Xsed -e "$delay_single_quote_subst"`' 20162compiler_lib_search_path_FC='`$ECHO "X$compiler_lib_search_path_FC" | $Xsed -e "$delay_single_quote_subst"`' 20163 20164LTCC='$LTCC' 20165LTCFLAGS='$LTCFLAGS' 20166compiler='$compiler_DEFAULT' 20167 20168# Quote evaled strings. 20169for var in SED \ 20170GREP \ 20171EGREP \ 20172FGREP \ 20173LD \ 20174NM \ 20175LN_S \ 20176lt_SP2NL \ 20177lt_NL2SP \ 20178reload_flag \ 20179deplibs_check_method \ 20180file_magic_cmd \ 20181AR \ 20182AR_FLAGS \ 20183STRIP \ 20184RANLIB \ 20185CC \ 20186CFLAGS \ 20187compiler \ 20188lt_cv_sys_global_symbol_pipe \ 20189lt_cv_sys_global_symbol_to_cdecl \ 20190lt_cv_sys_global_symbol_to_c_name_address \ 20191SHELL \ 20192ECHO \ 20193lt_prog_compiler_no_builtin_flag \ 20194lt_prog_compiler_wl \ 20195lt_prog_compiler_pic \ 20196lt_prog_compiler_static \ 20197lt_cv_prog_compiler_c_o \ 20198need_locks \ 20199shrext_cmds \ 20200export_dynamic_flag_spec \ 20201whole_archive_flag_spec \ 20202compiler_needs_object \ 20203with_gnu_ld \ 20204allow_undefined_flag \ 20205no_undefined_flag \ 20206hardcode_libdir_flag_spec \ 20207hardcode_libdir_flag_spec_ld \ 20208hardcode_libdir_separator \ 20209fix_srcfile_path \ 20210exclude_expsyms \ 20211include_expsyms \ 20212file_list_spec \ 20213variables_saved_for_relink \ 20214libname_spec \ 20215library_names_spec \ 20216soname_spec \ 20217finish_eval \ 20218old_striplib \ 20219striplib \ 20220predep_objects \ 20221postdep_objects \ 20222predeps \ 20223postdeps \ 20224compiler_lib_search_path \ 20225LD_FC \ 20226compiler_FC \ 20227lt_prog_compiler_no_builtin_flag_FC \ 20228lt_prog_compiler_wl_FC \ 20229lt_prog_compiler_pic_FC \ 20230lt_prog_compiler_static_FC \ 20231lt_cv_prog_compiler_c_o_FC \ 20232export_dynamic_flag_spec_FC \ 20233whole_archive_flag_spec_FC \ 20234compiler_needs_object_FC \ 20235with_gnu_ld_FC \ 20236allow_undefined_flag_FC \ 20237no_undefined_flag_FC \ 20238hardcode_libdir_flag_spec_FC \ 20239hardcode_libdir_flag_spec_ld_FC \ 20240hardcode_libdir_separator_FC \ 20241fix_srcfile_path_FC \ 20242exclude_expsyms_FC \ 20243include_expsyms_FC \ 20244file_list_spec_FC \ 20245predep_objects_FC \ 20246postdep_objects_FC \ 20247predeps_FC \ 20248postdeps_FC \ 20249compiler_lib_search_path_FC; do 20250 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 20251 *[\\\\\\\`\\"\\\$]*) 20252 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 20253 ;; 20254 *) 20255 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20256 ;; 20257 esac 20258done 20259 20260# Double-quote double-evaled strings. 20261for var in reload_cmds \ 20262old_postinstall_cmds \ 20263old_postuninstall_cmds \ 20264old_archive_cmds \ 20265extract_expsyms_cmds \ 20266old_archive_from_new_cmds \ 20267old_archive_from_expsyms_cmds \ 20268archive_cmds \ 20269archive_expsym_cmds \ 20270module_cmds \ 20271module_expsym_cmds \ 20272export_symbols_cmds \ 20273prelink_cmds \ 20274postinstall_cmds \ 20275postuninstall_cmds \ 20276finish_cmds \ 20277sys_lib_search_path_spec \ 20278sys_lib_dlsearch_path_spec \ 20279old_archive_cmds_FC \ 20280old_archive_from_new_cmds_FC \ 20281old_archive_from_expsyms_cmds_FC \ 20282archive_cmds_FC \ 20283archive_expsym_cmds_FC \ 20284module_cmds_FC \ 20285module_expsym_cmds_FC \ 20286export_symbols_cmds_FC \ 20287prelink_cmds_FC; do 20288 case \`eval \\\\\$ECHO "X\\\\\$\$var"\` in 20289 *[\\\\\\\`\\"\\\$]*) 20290 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"X\\\$\$var\\" | \\\$Xsed -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 20291 ;; 20292 *) 20293 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 20294 ;; 20295 esac 20296done 20297 20298# Fix-up fallback echo if it was mangled by the above quoting rules. 20299case \$lt_ECHO in 20300*'\\\$0 --fallback-echo"') lt_ECHO=\`\$ECHO "X\$lt_ECHO" | \$Xsed -e 's/\\\\\\\\\\\\\\\$0 --fallback-echo"\$/\$0 --fallback-echo"/'\` 20301 ;; 20302esac 20303 20304ac_aux_dir='$ac_aux_dir' 20305xsi_shell='$xsi_shell' 20306lt_shell_append='$lt_shell_append' 20307 20308# See if we are running on zsh, and set the options which allow our 20309# commands through without removal of \ escapes INIT. 20310if test -n "\${ZSH_VERSION+set}" ; then 20311 setopt NO_GLOB_SUBST 20312fi 20313 20314 20315 PACKAGE='$PACKAGE' 20316 VERSION='$VERSION' 20317 TIMESTAMP='$TIMESTAMP' 20318 RM='$RM' 20319 ofile='$ofile' 20320 20321 20322 20323 20324 20325 20326GCC="$GCC" 20327CC="$CC" 20328acx_cv_header_stdint="$acx_cv_header_stdint" 20329acx_cv_type_int8_t="$acx_cv_type_int8_t" 20330acx_cv_type_int16_t="$acx_cv_type_int16_t" 20331acx_cv_type_int32_t="$acx_cv_type_int32_t" 20332acx_cv_type_int64_t="$acx_cv_type_int64_t" 20333acx_cv_type_intptr_t="$acx_cv_type_intptr_t" 20334ac_cv_type_uintmax_t="$ac_cv_type_uintmax_t" 20335ac_cv_type_uintptr_t="$ac_cv_type_uintptr_t" 20336ac_cv_type_uint64_t="$ac_cv_type_uint64_t" 20337ac_cv_type_u_int64_t="$ac_cv_type_u_int64_t" 20338ac_cv_type_u_int32_t="$ac_cv_type_u_int32_t" 20339ac_cv_type_int_least32_t="$ac_cv_type_int_least32_t" 20340ac_cv_type_int_fast32_t="$ac_cv_type_int_fast32_t" 20341ac_cv_sizeof_void_p="$ac_cv_sizeof_void_p" 20342 20343 20344_ACEOF 20345 20346 20347 20348cat >>$CONFIG_STATUS <<\_ACEOF 20349for ac_config_target in $ac_config_targets 20350do 20351 case "$ac_config_target" in 20352 # Handling of arguments. 20353 "omp.h" ) CONFIG_FILES="$CONFIG_FILES omp.h" ;; 20354 "omp_lib.h" ) CONFIG_FILES="$CONFIG_FILES omp_lib.h" ;; 20355 "omp_lib.f90" ) CONFIG_FILES="$CONFIG_FILES omp_lib.f90" ;; 20356 "libgomp_f.h" ) CONFIG_FILES="$CONFIG_FILES libgomp_f.h" ;; 20357 "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; 20358 "testsuite/Makefile" ) CONFIG_FILES="$CONFIG_FILES testsuite/Makefile" ;; 20359 "libgomp.spec" ) CONFIG_FILES="$CONFIG_FILES libgomp.spec" ;; 20360 "default-1" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 20361 "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 20362 "libtool" ) CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 20363 "gstdint.h" ) CONFIG_COMMANDS="$CONFIG_COMMANDS gstdint.h" ;; 20364 "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 20365 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 20366echo "$as_me: error: invalid argument: $ac_config_target" >&2;} 20367 { (exit 1); exit 1; }; };; 20368 esac 20369done 20370 20371# If the user did not use the arguments to specify the items to instantiate, 20372# then the envvar interface is used. Set only those that are not. 20373# We use the long form for the default assignment because of an extremely 20374# bizarre bug on SunOS 4.1.3. 20375if $ac_need_defaults; then 20376 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 20377 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 20378 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 20379fi 20380 20381# Have a temporary directory for convenience. Make it in the build tree 20382# simply because there is no reason to put it here, and in addition, 20383# creating and moving files from /tmp can sometimes cause problems. 20384# Create a temporary directory, and hook for its removal unless debugging. 20385$debug || 20386{ 20387 trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 20388 trap '{ (exit 1); exit 1; }' 1 2 13 15 20389} 20390 20391# Create a (secure) tmp directory for tmp files. 20392 20393{ 20394 tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && 20395 test -n "$tmp" && test -d "$tmp" 20396} || 20397{ 20398 tmp=./confstat$$-$RANDOM 20399 (umask 077 && mkdir $tmp) 20400} || 20401{ 20402 echo "$me: cannot create a temporary directory in ." >&2 20403 { (exit 1); exit 1; } 20404} 20405 20406_ACEOF 20407 20408cat >>$CONFIG_STATUS <<_ACEOF 20409 20410# 20411# CONFIG_FILES section. 20412# 20413 20414# No need to generate the scripts if there are no CONFIG_FILES. 20415# This happens for instance when ./config.status config.h 20416if test -n "\$CONFIG_FILES"; then 20417 # Protect against being on the right side of a sed subst in config.status. 20418 sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; 20419 s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF 20420s,@SHELL@,$SHELL,;t t 20421s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t 20422s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t 20423s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t 20424s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t 20425s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t 20426s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t 20427s,@exec_prefix@,$exec_prefix,;t t 20428s,@prefix@,$prefix,;t t 20429s,@program_transform_name@,$program_transform_name,;t t 20430s,@bindir@,$bindir,;t t 20431s,@sbindir@,$sbindir,;t t 20432s,@libexecdir@,$libexecdir,;t t 20433s,@datadir@,$datadir,;t t 20434s,@sysconfdir@,$sysconfdir,;t t 20435s,@sharedstatedir@,$sharedstatedir,;t t 20436s,@localstatedir@,$localstatedir,;t t 20437s,@libdir@,$libdir,;t t 20438s,@includedir@,$includedir,;t t 20439s,@oldincludedir@,$oldincludedir,;t t 20440s,@infodir@,$infodir,;t t 20441s,@mandir@,$mandir,;t t 20442s,@build_alias@,$build_alias,;t t 20443s,@host_alias@,$host_alias,;t t 20444s,@target_alias@,$target_alias,;t t 20445s,@DEFS@,$DEFS,;t t 20446s,@ECHO_C@,$ECHO_C,;t t 20447s,@ECHO_N@,$ECHO_N,;t t 20448s,@ECHO_T@,$ECHO_T,;t t 20449s,@LIBS@,$LIBS,;t t 20450s,@GENINSRC_TRUE@,$GENINSRC_TRUE,;t t 20451s,@GENINSRC_FALSE@,$GENINSRC_FALSE,;t t 20452s,@build@,$build,;t t 20453s,@build_cpu@,$build_cpu,;t t 20454s,@build_vendor@,$build_vendor,;t t 20455s,@build_os@,$build_os,;t t 20456s,@host@,$host,;t t 20457s,@host_cpu@,$host_cpu,;t t 20458s,@host_vendor@,$host_vendor,;t t 20459s,@host_os@,$host_os,;t t 20460s,@target@,$target,;t t 20461s,@target_cpu@,$target_cpu,;t t 20462s,@target_vendor@,$target_vendor,;t t 20463s,@target_os@,$target_os,;t t 20464s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t 20465s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t 20466s,@INSTALL_DATA@,$INSTALL_DATA,;t t 20467s,@CYGPATH_W@,$CYGPATH_W,;t t 20468s,@PACKAGE@,$PACKAGE,;t t 20469s,@VERSION@,$VERSION,;t t 20470s,@ACLOCAL@,$ACLOCAL,;t t 20471s,@AUTOCONF@,$AUTOCONF,;t t 20472s,@AUTOMAKE@,$AUTOMAKE,;t t 20473s,@AUTOHEADER@,$AUTOHEADER,;t t 20474s,@MAKEINFO@,$MAKEINFO,;t t 20475s,@install_sh@,$install_sh,;t t 20476s,@STRIP@,$STRIP,;t t 20477s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t 20478s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t 20479s,@mkdir_p@,$mkdir_p,;t t 20480s,@AWK@,$AWK,;t t 20481s,@SET_MAKE@,$SET_MAKE,;t t 20482s,@am__leading_dot@,$am__leading_dot,;t t 20483s,@AMTAR@,$AMTAR,;t t 20484s,@am__tar@,$am__tar,;t t 20485s,@am__untar@,$am__untar,;t t 20486s,@multi_basedir@,$multi_basedir,;t t 20487s,@toolexecdir@,$toolexecdir,;t t 20488s,@toolexeclibdir@,$toolexeclibdir,;t t 20489s,@CC@,$CC,;t t 20490s,@ac_ct_CC@,$ac_ct_CC,;t t 20491s,@EXEEXT@,$EXEEXT,;t t 20492s,@OBJEXT@,$OBJEXT,;t t 20493s,@DEPDIR@,$DEPDIR,;t t 20494s,@am__include@,$am__include,;t t 20495s,@am__quote@,$am__quote,;t t 20496s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t 20497s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t 20498s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t 20499s,@CCDEPMODE@,$CCDEPMODE,;t t 20500s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t 20501s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t 20502s,@CFLAGS@,$CFLAGS,;t t 20503s,@AR@,$AR,;t t 20504s,@ac_ct_AR@,$ac_ct_AR,;t t 20505s,@RANLIB@,$RANLIB,;t t 20506s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t 20507s,@PERL@,$PERL,;t t 20508s,@BUILD_INFO_TRUE@,$BUILD_INFO_TRUE,;t t 20509s,@BUILD_INFO_FALSE@,$BUILD_INFO_FALSE,;t t 20510s,@LIBTOOL@,$LIBTOOL,;t t 20511s,@SED@,$SED,;t t 20512s,@EGREP@,$EGREP,;t t 20513s,@FGREP@,$FGREP,;t t 20514s,@GREP@,$GREP,;t t 20515s,@LD@,$LD,;t t 20516s,@DUMPBIN@,$DUMPBIN,;t t 20517s,@ac_ct_DUMPBIN@,$ac_ct_DUMPBIN,;t t 20518s,@NM@,$NM,;t t 20519s,@LN_S@,$LN_S,;t t 20520s,@lt_ECHO@,$lt_ECHO,;t t 20521s,@CPP@,$CPP,;t t 20522s,@CPPFLAGS@,$CPPFLAGS,;t t 20523s,@enable_shared@,$enable_shared,;t t 20524s,@enable_static@,$enable_static,;t t 20525s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t 20526s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t 20527s,@MAINT@,$MAINT,;t t 20528s,@FC@,$FC,;t t 20529s,@FCFLAGS@,$FCFLAGS,;t t 20530s,@LDFLAGS@,$LDFLAGS,;t t 20531s,@ac_ct_FC@,$ac_ct_FC,;t t 20532s,@libtool_VERSION@,$libtool_VERSION,;t t 20533s,@SECTION_LDFLAGS@,$SECTION_LDFLAGS,;t t 20534s,@OPT_LDFLAGS@,$OPT_LDFLAGS,;t t 20535s,@LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_TRUE,;t t 20536s,@LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE@,$LIBGOMP_BUILD_VERSIONED_SHLIB_FALSE,;t t 20537s,@config_path@,$config_path,;t t 20538s,@XCFLAGS@,$XCFLAGS,;t t 20539s,@XLDFLAGS@,$XLDFLAGS,;t t 20540s,@link_gomp@,$link_gomp,;t t 20541s,@USE_FORTRAN_TRUE@,$USE_FORTRAN_TRUE,;t t 20542s,@USE_FORTRAN_FALSE@,$USE_FORTRAN_FALSE,;t t 20543s,@OMP_LOCK_SIZE@,$OMP_LOCK_SIZE,;t t 20544s,@OMP_LOCK_ALIGN@,$OMP_LOCK_ALIGN,;t t 20545s,@OMP_NEST_LOCK_SIZE@,$OMP_NEST_LOCK_SIZE,;t t 20546s,@OMP_NEST_LOCK_ALIGN@,$OMP_NEST_LOCK_ALIGN,;t t 20547s,@OMP_LOCK_KIND@,$OMP_LOCK_KIND,;t t 20548s,@OMP_NEST_LOCK_KIND@,$OMP_NEST_LOCK_KIND,;t t 20549s,@LIBOBJS@,$LIBOBJS,;t t 20550s,@LTLIBOBJS@,$LTLIBOBJS,;t t 20551CEOF 20552 20553_ACEOF 20554 20555 cat >>$CONFIG_STATUS <<\_ACEOF 20556 # Split the substitutions into bite-sized pieces for seds with 20557 # small command number limits, like on Digital OSF/1 and HP-UX. 20558 ac_max_sed_lines=48 20559 ac_sed_frag=1 # Number of current file. 20560 ac_beg=1 # First line for current file. 20561 ac_end=$ac_max_sed_lines # Line after last line for current file. 20562 ac_more_lines=: 20563 ac_sed_cmds= 20564 while $ac_more_lines; do 20565 if test $ac_beg -gt 1; then 20566 sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20567 else 20568 sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag 20569 fi 20570 if test ! -s $tmp/subs.frag; then 20571 ac_more_lines=false 20572 else 20573 # The purpose of the label and of the branching condition is to 20574 # speed up the sed processing (if there are no `@' at all, there 20575 # is no need to browse any of the substitutions). 20576 # These are the two extra sed commands mentioned above. 20577 (echo ':t 20578 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed 20579 if test -z "$ac_sed_cmds"; then 20580 ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" 20581 else 20582 ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" 20583 fi 20584 ac_sed_frag=`expr $ac_sed_frag + 1` 20585 ac_beg=$ac_end 20586 ac_end=`expr $ac_end + $ac_max_sed_lines` 20587 fi 20588 done 20589 if test -z "$ac_sed_cmds"; then 20590 ac_sed_cmds=cat 20591 fi 20592fi # test -n "$CONFIG_FILES" 20593 20594_ACEOF 20595cat >>$CONFIG_STATUS <<\_ACEOF 20596for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue 20597 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20598 case $ac_file in 20599 - | *:- | *:-:* ) # input from stdin 20600 cat >$tmp/stdin 20601 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20602 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20603 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20604 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20605 * ) ac_file_in=$ac_file.in ;; 20606 esac 20607 20608 # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. 20609 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20610$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20611 X"$ac_file" : 'X\(//\)[^/]' \| \ 20612 X"$ac_file" : 'X\(//\)$' \| \ 20613 X"$ac_file" : 'X\(/\)' \| \ 20614 . : '\(.\)' 2>/dev/null || 20615echo X"$ac_file" | 20616 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20617 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20618 /^X\(\/\/\)$/{ s//\1/; q; } 20619 /^X\(\/\).*/{ s//\1/; q; } 20620 s/.*/./; q'` 20621 { if $as_mkdir_p; then 20622 mkdir -p "$ac_dir" 20623 else 20624 as_dir="$ac_dir" 20625 as_dirs= 20626 while test ! -d "$as_dir"; do 20627 as_dirs="$as_dir $as_dirs" 20628 as_dir=`(dirname "$as_dir") 2>/dev/null || 20629$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20630 X"$as_dir" : 'X\(//\)[^/]' \| \ 20631 X"$as_dir" : 'X\(//\)$' \| \ 20632 X"$as_dir" : 'X\(/\)' \| \ 20633 . : '\(.\)' 2>/dev/null || 20634echo X"$as_dir" | 20635 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20636 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20637 /^X\(\/\/\)$/{ s//\1/; q; } 20638 /^X\(\/\).*/{ s//\1/; q; } 20639 s/.*/./; q'` 20640 done 20641 test ! -n "$as_dirs" || mkdir $as_dirs 20642 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 20643echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 20644 { (exit 1); exit 1; }; }; } 20645 20646 ac_builddir=. 20647 20648if test "$ac_dir" != .; then 20649 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 20650 # A "../" for each directory in $ac_dir_suffix. 20651 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 20652else 20653 ac_dir_suffix= ac_top_builddir= 20654fi 20655 20656case $srcdir in 20657 .) # No --srcdir option. We are building in place. 20658 ac_srcdir=. 20659 if test -z "$ac_top_builddir"; then 20660 ac_top_srcdir=. 20661 else 20662 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 20663 fi ;; 20664 [\\/]* | ?:[\\/]* ) # Absolute path. 20665 ac_srcdir=$srcdir$ac_dir_suffix; 20666 ac_top_srcdir=$srcdir ;; 20667 *) # Relative path. 20668 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 20669 ac_top_srcdir=$ac_top_builddir$srcdir ;; 20670esac 20671 20672# Do not use `cd foo && pwd` to compute absolute paths, because 20673# the directories may not exist. 20674case `pwd` in 20675.) ac_abs_builddir="$ac_dir";; 20676*) 20677 case "$ac_dir" in 20678 .) ac_abs_builddir=`pwd`;; 20679 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 20680 *) ac_abs_builddir=`pwd`/"$ac_dir";; 20681 esac;; 20682esac 20683case $ac_abs_builddir in 20684.) ac_abs_top_builddir=${ac_top_builddir}.;; 20685*) 20686 case ${ac_top_builddir}. in 20687 .) ac_abs_top_builddir=$ac_abs_builddir;; 20688 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 20689 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 20690 esac;; 20691esac 20692case $ac_abs_builddir in 20693.) ac_abs_srcdir=$ac_srcdir;; 20694*) 20695 case $ac_srcdir in 20696 .) ac_abs_srcdir=$ac_abs_builddir;; 20697 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 20698 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 20699 esac;; 20700esac 20701case $ac_abs_builddir in 20702.) ac_abs_top_srcdir=$ac_top_srcdir;; 20703*) 20704 case $ac_top_srcdir in 20705 .) ac_abs_top_srcdir=$ac_abs_builddir;; 20706 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 20707 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 20708 esac;; 20709esac 20710 20711 20712 case $INSTALL in 20713 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 20714 *) ac_INSTALL=$ac_top_builddir$INSTALL ;; 20715 esac 20716 20717 if test x"$ac_file" != x-; then 20718 { echo "$as_me:$LINENO: creating $ac_file" >&5 20719echo "$as_me: creating $ac_file" >&6;} 20720 rm -f "$ac_file" 20721 fi 20722 # Let's still pretend it is `configure' which instantiates (i.e., don't 20723 # use $as_me), people would be surprised to read: 20724 # /* config.h. Generated by config.status. */ 20725 if test x"$ac_file" = x-; then 20726 configure_input= 20727 else 20728 configure_input="$ac_file. " 20729 fi 20730 configure_input=$configure_input"Generated from `echo $ac_file_in | 20731 sed 's,.*/,,'` by configure." 20732 20733 # First look for the input files in the build tree, otherwise in the 20734 # src tree. 20735 ac_file_inputs=`IFS=: 20736 for f in $ac_file_in; do 20737 case $f in 20738 -) echo $tmp/stdin ;; 20739 [\\/$]*) 20740 # Absolute (can't be DOS-style, as IFS=:) 20741 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20742echo "$as_me: error: cannot find input file: $f" >&2;} 20743 { (exit 1); exit 1; }; } 20744 echo "$f";; 20745 *) # Relative 20746 if test -f "$f"; then 20747 # Build tree 20748 echo "$f" 20749 elif test -f "$srcdir/$f"; then 20750 # Source tree 20751 echo "$srcdir/$f" 20752 else 20753 # /dev/null tree 20754 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20755echo "$as_me: error: cannot find input file: $f" >&2;} 20756 { (exit 1); exit 1; }; } 20757 fi;; 20758 esac 20759 done` || { (exit 1); exit 1; } 20760_ACEOF 20761cat >>$CONFIG_STATUS <<_ACEOF 20762 sed "$ac_vpsub 20763$extrasub 20764_ACEOF 20765cat >>$CONFIG_STATUS <<\_ACEOF 20766:t 20767/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 20768s,@configure_input@,$configure_input,;t t 20769s,@srcdir@,$ac_srcdir,;t t 20770s,@abs_srcdir@,$ac_abs_srcdir,;t t 20771s,@top_srcdir@,$ac_top_srcdir,;t t 20772s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t 20773s,@builddir@,$ac_builddir,;t t 20774s,@abs_builddir@,$ac_abs_builddir,;t t 20775s,@top_builddir@,$ac_top_builddir,;t t 20776s,@abs_top_builddir@,$ac_abs_top_builddir,;t t 20777s,@INSTALL@,$ac_INSTALL,;t t 20778" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out 20779 rm -f $tmp/stdin 20780 if test x"$ac_file" != x-; then 20781 mv $tmp/out $ac_file 20782 else 20783 cat $tmp/out 20784 rm -f $tmp/out 20785 fi 20786 20787done 20788_ACEOF 20789cat >>$CONFIG_STATUS <<\_ACEOF 20790 20791# 20792# CONFIG_HEADER section. 20793# 20794 20795# These sed commands are passed to sed as "A NAME B NAME C VALUE D", where 20796# NAME is the cpp macro being defined and VALUE is the value it is being given. 20797# 20798# ac_d sets the value in "#define NAME VALUE" lines. 20799ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' 20800ac_dB='[ ].*$,\1#\2' 20801ac_dC=' ' 20802ac_dD=',;t' 20803# ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". 20804ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' 20805ac_uB='$,\1#\2define\3' 20806ac_uC=' ' 20807ac_uD=',;t' 20808 20809for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue 20810 # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". 20811 case $ac_file in 20812 - | *:- | *:-:* ) # input from stdin 20813 cat >$tmp/stdin 20814 ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20815 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20816 *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` 20817 ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; 20818 * ) ac_file_in=$ac_file.in ;; 20819 esac 20820 20821 test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 20822echo "$as_me: creating $ac_file" >&6;} 20823 20824 # First look for the input files in the build tree, otherwise in the 20825 # src tree. 20826 ac_file_inputs=`IFS=: 20827 for f in $ac_file_in; do 20828 case $f in 20829 -) echo $tmp/stdin ;; 20830 [\\/$]*) 20831 # Absolute (can't be DOS-style, as IFS=:) 20832 test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20833echo "$as_me: error: cannot find input file: $f" >&2;} 20834 { (exit 1); exit 1; }; } 20835 # Do quote $f, to prevent DOS paths from being IFS'd. 20836 echo "$f";; 20837 *) # Relative 20838 if test -f "$f"; then 20839 # Build tree 20840 echo "$f" 20841 elif test -f "$srcdir/$f"; then 20842 # Source tree 20843 echo "$srcdir/$f" 20844 else 20845 # /dev/null tree 20846 { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 20847echo "$as_me: error: cannot find input file: $f" >&2;} 20848 { (exit 1); exit 1; }; } 20849 fi;; 20850 esac 20851 done` || { (exit 1); exit 1; } 20852 # Remove the trailing spaces. 20853 sed 's/[ ]*$//' $ac_file_inputs >$tmp/in 20854 20855_ACEOF 20856 20857# Transform confdefs.h into two sed scripts, `conftest.defines' and 20858# `conftest.undefs', that substitutes the proper values into 20859# config.h.in to produce config.h. The first handles `#define' 20860# templates, and the second `#undef' templates. 20861# And first: Protect against being on the right side of a sed subst in 20862# config.status. Protect against being in an unquoted here document 20863# in config.status. 20864rm -f conftest.defines conftest.undefs 20865# Using a here document instead of a string reduces the quoting nightmare. 20866# Putting comments in sed scripts is not portable. 20867# 20868# `end' is used to avoid that the second main sed command (meant for 20869# 0-ary CPP macros) applies to n-ary macro definitions. 20870# See the Autoconf documentation for `clear'. 20871cat >confdef2sed.sed <<\_ACEOF 20872s/[\\&,]/\\&/g 20873s,[\\$`],\\&,g 20874t clear 20875: clear 20876s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp 20877t end 20878s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp 20879: end 20880_ACEOF 20881# If some macros were called several times there might be several times 20882# the same #defines, which is useless. Nevertheless, we may not want to 20883# sort them, since we want the *last* AC-DEFINE to be honored. 20884uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines 20885sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs 20886rm -f confdef2sed.sed 20887 20888# This sed command replaces #undef with comments. This is necessary, for 20889# example, in the case of _POSIX_SOURCE, which is predefined and required 20890# on some systems where configure will not decide to define it. 20891cat >>conftest.undefs <<\_ACEOF 20892s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, 20893_ACEOF 20894 20895# Break up conftest.defines because some shells have a limit on the size 20896# of here documents, and old seds have small limits too (100 cmds). 20897echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS 20898echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS 20899echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS 20900echo ' :' >>$CONFIG_STATUS 20901rm -f conftest.tail 20902while grep . conftest.defines >/dev/null 20903do 20904 # Write a limited-size here document to $tmp/defines.sed. 20905 echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS 20906 # Speed up: don't consider the non `#define' lines. 20907 echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS 20908 # Work around the forget-to-reset-the-flag bug. 20909 echo 't clr' >>$CONFIG_STATUS 20910 echo ': clr' >>$CONFIG_STATUS 20911 sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS 20912 echo 'CEOF 20913 sed -f $tmp/defines.sed $tmp/in >$tmp/out 20914 rm -f $tmp/in 20915 mv $tmp/out $tmp/in 20916' >>$CONFIG_STATUS 20917 sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail 20918 rm -f conftest.defines 20919 mv conftest.tail conftest.defines 20920done 20921rm -f conftest.defines 20922echo ' fi # grep' >>$CONFIG_STATUS 20923echo >>$CONFIG_STATUS 20924 20925# Break up conftest.undefs because some shells have a limit on the size 20926# of here documents, and old seds have small limits too (100 cmds). 20927echo ' # Handle all the #undef templates' >>$CONFIG_STATUS 20928rm -f conftest.tail 20929while grep . conftest.undefs >/dev/null 20930do 20931 # Write a limited-size here document to $tmp/undefs.sed. 20932 echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS 20933 # Speed up: don't consider the non `#undef' 20934 echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS 20935 # Work around the forget-to-reset-the-flag bug. 20936 echo 't clr' >>$CONFIG_STATUS 20937 echo ': clr' >>$CONFIG_STATUS 20938 sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS 20939 echo 'CEOF 20940 sed -f $tmp/undefs.sed $tmp/in >$tmp/out 20941 rm -f $tmp/in 20942 mv $tmp/out $tmp/in 20943' >>$CONFIG_STATUS 20944 sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail 20945 rm -f conftest.undefs 20946 mv conftest.tail conftest.undefs 20947done 20948rm -f conftest.undefs 20949 20950cat >>$CONFIG_STATUS <<\_ACEOF 20951 # Let's still pretend it is `configure' which instantiates (i.e., don't 20952 # use $as_me), people would be surprised to read: 20953 # /* config.h. Generated by config.status. */ 20954 if test x"$ac_file" = x-; then 20955 echo "/* Generated by configure. */" >$tmp/config.h 20956 else 20957 echo "/* $ac_file. Generated by configure. */" >$tmp/config.h 20958 fi 20959 cat $tmp/in >>$tmp/config.h 20960 rm -f $tmp/in 20961 if test x"$ac_file" != x-; then 20962 if diff $ac_file $tmp/config.h >/dev/null 2>&1; then 20963 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 20964echo "$as_me: $ac_file is unchanged" >&6;} 20965 else 20966 ac_dir=`(dirname "$ac_file") 2>/dev/null || 20967$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20968 X"$ac_file" : 'X\(//\)[^/]' \| \ 20969 X"$ac_file" : 'X\(//\)$' \| \ 20970 X"$ac_file" : 'X\(/\)' \| \ 20971 . : '\(.\)' 2>/dev/null || 20972echo X"$ac_file" | 20973 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20974 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20975 /^X\(\/\/\)$/{ s//\1/; q; } 20976 /^X\(\/\).*/{ s//\1/; q; } 20977 s/.*/./; q'` 20978 { if $as_mkdir_p; then 20979 mkdir -p "$ac_dir" 20980 else 20981 as_dir="$ac_dir" 20982 as_dirs= 20983 while test ! -d "$as_dir"; do 20984 as_dirs="$as_dir $as_dirs" 20985 as_dir=`(dirname "$as_dir") 2>/dev/null || 20986$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20987 X"$as_dir" : 'X\(//\)[^/]' \| \ 20988 X"$as_dir" : 'X\(//\)$' \| \ 20989 X"$as_dir" : 'X\(/\)' \| \ 20990 . : '\(.\)' 2>/dev/null || 20991echo X"$as_dir" | 20992 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 20993 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 20994 /^X\(\/\/\)$/{ s//\1/; q; } 20995 /^X\(\/\).*/{ s//\1/; q; } 20996 s/.*/./; q'` 20997 done 20998 test ! -n "$as_dirs" || mkdir $as_dirs 20999 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21000echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21001 { (exit 1); exit 1; }; }; } 21002 21003 rm -f $ac_file 21004 mv $tmp/config.h $ac_file 21005 fi 21006 else 21007 cat $tmp/config.h 21008 rm -f $tmp/config.h 21009 fi 21010# Compute $ac_file's index in $config_headers. 21011_am_stamp_count=1 21012for _am_header in $config_headers :; do 21013 case $_am_header in 21014 $ac_file | $ac_file:* ) 21015 break ;; 21016 * ) 21017 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21018 esac 21019done 21020echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || 21021$as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21022 X$ac_file : 'X\(//\)[^/]' \| \ 21023 X$ac_file : 'X\(//\)$' \| \ 21024 X$ac_file : 'X\(/\)' \| \ 21025 . : '\(.\)' 2>/dev/null || 21026echo X$ac_file | 21027 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21028 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21029 /^X\(\/\/\)$/{ s//\1/; q; } 21030 /^X\(\/\).*/{ s//\1/; q; } 21031 s/.*/./; q'`/stamp-h$_am_stamp_count 21032done 21033_ACEOF 21034cat >>$CONFIG_STATUS <<\_ACEOF 21035 21036# 21037# CONFIG_COMMANDS section. 21038# 21039for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue 21040 ac_dest=`echo "$ac_file" | sed 's,:.*,,'` 21041 ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` 21042 ac_dir=`(dirname "$ac_dest") 2>/dev/null || 21043$as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21044 X"$ac_dest" : 'X\(//\)[^/]' \| \ 21045 X"$ac_dest" : 'X\(//\)$' \| \ 21046 X"$ac_dest" : 'X\(/\)' \| \ 21047 . : '\(.\)' 2>/dev/null || 21048echo X"$ac_dest" | 21049 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21050 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21051 /^X\(\/\/\)$/{ s//\1/; q; } 21052 /^X\(\/\).*/{ s//\1/; q; } 21053 s/.*/./; q'` 21054 { if $as_mkdir_p; then 21055 mkdir -p "$ac_dir" 21056 else 21057 as_dir="$ac_dir" 21058 as_dirs= 21059 while test ! -d "$as_dir"; do 21060 as_dirs="$as_dir $as_dirs" 21061 as_dir=`(dirname "$as_dir") 2>/dev/null || 21062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21063 X"$as_dir" : 'X\(//\)[^/]' \| \ 21064 X"$as_dir" : 'X\(//\)$' \| \ 21065 X"$as_dir" : 'X\(/\)' \| \ 21066 . : '\(.\)' 2>/dev/null || 21067echo X"$as_dir" | 21068 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21069 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21070 /^X\(\/\/\)$/{ s//\1/; q; } 21071 /^X\(\/\).*/{ s//\1/; q; } 21072 s/.*/./; q'` 21073 done 21074 test ! -n "$as_dirs" || mkdir $as_dirs 21075 fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 21076echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} 21077 { (exit 1); exit 1; }; }; } 21078 21079 ac_builddir=. 21080 21081if test "$ac_dir" != .; then 21082 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` 21083 # A "../" for each directory in $ac_dir_suffix. 21084 ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` 21085else 21086 ac_dir_suffix= ac_top_builddir= 21087fi 21088 21089case $srcdir in 21090 .) # No --srcdir option. We are building in place. 21091 ac_srcdir=. 21092 if test -z "$ac_top_builddir"; then 21093 ac_top_srcdir=. 21094 else 21095 ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` 21096 fi ;; 21097 [\\/]* | ?:[\\/]* ) # Absolute path. 21098 ac_srcdir=$srcdir$ac_dir_suffix; 21099 ac_top_srcdir=$srcdir ;; 21100 *) # Relative path. 21101 ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix 21102 ac_top_srcdir=$ac_top_builddir$srcdir ;; 21103esac 21104 21105# Do not use `cd foo && pwd` to compute absolute paths, because 21106# the directories may not exist. 21107case `pwd` in 21108.) ac_abs_builddir="$ac_dir";; 21109*) 21110 case "$ac_dir" in 21111 .) ac_abs_builddir=`pwd`;; 21112 [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; 21113 *) ac_abs_builddir=`pwd`/"$ac_dir";; 21114 esac;; 21115esac 21116case $ac_abs_builddir in 21117.) ac_abs_top_builddir=${ac_top_builddir}.;; 21118*) 21119 case ${ac_top_builddir}. in 21120 .) ac_abs_top_builddir=$ac_abs_builddir;; 21121 [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; 21122 *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; 21123 esac;; 21124esac 21125case $ac_abs_builddir in 21126.) ac_abs_srcdir=$ac_srcdir;; 21127*) 21128 case $ac_srcdir in 21129 .) ac_abs_srcdir=$ac_abs_builddir;; 21130 [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; 21131 *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; 21132 esac;; 21133esac 21134case $ac_abs_builddir in 21135.) ac_abs_top_srcdir=$ac_top_srcdir;; 21136*) 21137 case $ac_top_srcdir in 21138 .) ac_abs_top_srcdir=$ac_abs_builddir;; 21139 [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; 21140 *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; 21141 esac;; 21142esac 21143 21144 21145 { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 21146echo "$as_me: executing $ac_dest commands" >&6;} 21147 case $ac_dest in 21148 default-1 ) 21149# Only add multilib support code if we just rebuilt the top-level 21150# Makefile. 21151case " $CONFIG_FILES " in 21152 *" Makefile "*) 21153 ac_file=Makefile . ${multi_basedir}/config-ml.in 21154 ;; 21155esac ;; 21156 depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do 21157 # Strip MF so we end up with the name of the file. 21158 mf=`echo "$mf" | sed -e 's/:.*$//'` 21159 # Check whether this is an Automake generated Makefile or not. 21160 # We used to match only the files named `Makefile.in', but 21161 # some people rename them; so instead we look at the file content. 21162 # Grep'ing the first line is not enough: some people post-process 21163 # each Makefile.in and add a new line on top of each file to say so. 21164 # So let's grep whole file. 21165 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then 21166 dirpart=`(dirname "$mf") 2>/dev/null || 21167$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21168 X"$mf" : 'X\(//\)[^/]' \| \ 21169 X"$mf" : 'X\(//\)$' \| \ 21170 X"$mf" : 'X\(/\)' \| \ 21171 . : '\(.\)' 2>/dev/null || 21172echo X"$mf" | 21173 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21174 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21175 /^X\(\/\/\)$/{ s//\1/; q; } 21176 /^X\(\/\).*/{ s//\1/; q; } 21177 s/.*/./; q'` 21178 else 21179 continue 21180 fi 21181 # Extract the definition of DEPDIR, am__include, and am__quote 21182 # from the Makefile without running `make'. 21183 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 21184 test -z "$DEPDIR" && continue 21185 am__include=`sed -n 's/^am__include = //p' < "$mf"` 21186 test -z "am__include" && continue 21187 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 21188 # When using ansi2knr, U may be empty or an underscore; expand it 21189 U=`sed -n 's/^U = //p' < "$mf"` 21190 # Find all dependency output files, they are included files with 21191 # $(DEPDIR) in their names. We invoke sed twice because it is the 21192 # simplest approach to changing $(DEPDIR) to its actual value in the 21193 # expansion. 21194 for file in `sed -n " 21195 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 21196 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 21197 # Make sure the directory exists. 21198 test -f "$dirpart/$file" && continue 21199 fdir=`(dirname "$file") 2>/dev/null || 21200$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21201 X"$file" : 'X\(//\)[^/]' \| \ 21202 X"$file" : 'X\(//\)$' \| \ 21203 X"$file" : 'X\(/\)' \| \ 21204 . : '\(.\)' 2>/dev/null || 21205echo X"$file" | 21206 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21207 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21208 /^X\(\/\/\)$/{ s//\1/; q; } 21209 /^X\(\/\).*/{ s//\1/; q; } 21210 s/.*/./; q'` 21211 { if $as_mkdir_p; then 21212 mkdir -p $dirpart/$fdir 21213 else 21214 as_dir=$dirpart/$fdir 21215 as_dirs= 21216 while test ! -d "$as_dir"; do 21217 as_dirs="$as_dir $as_dirs" 21218 as_dir=`(dirname "$as_dir") 2>/dev/null || 21219$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21220 X"$as_dir" : 'X\(//\)[^/]' \| \ 21221 X"$as_dir" : 'X\(//\)$' \| \ 21222 X"$as_dir" : 'X\(/\)' \| \ 21223 . : '\(.\)' 2>/dev/null || 21224echo X"$as_dir" | 21225 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } 21226 /^X\(\/\/\)[^/].*/{ s//\1/; q; } 21227 /^X\(\/\/\)$/{ s//\1/; q; } 21228 /^X\(\/\).*/{ s//\1/; q; } 21229 s/.*/./; q'` 21230 done 21231 test ! -n "$as_dirs" || mkdir $as_dirs 21232 fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 21233echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} 21234 { (exit 1); exit 1; }; }; } 21235 21236 # echo "creating $dirpart/$file" 21237 echo '# dummy' > "$dirpart/$file" 21238 done 21239done 21240 ;; 21241 libtool ) 21242 21243 # See if we are running on zsh, and set the options which allow our 21244 # commands through without removal of \ escapes. 21245 if test -n "${ZSH_VERSION+set}" ; then 21246 setopt NO_GLOB_SUBST 21247 fi 21248 21249 cfgfile="${ofile}T" 21250 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21251 $RM "$cfgfile" 21252 21253 cat <<_LT_EOF >> "$cfgfile" 21254#! $SHELL 21255 21256# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 21257# Generated automatically by $as_me (GNU $PACKAGE$TIMESTAMP) $VERSION 21258# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21259# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21260# 21261# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 21262# 2006, 2007 Free Software Foundation, Inc. 21263# 21264# This file is part of GNU Libtool: 21265# Originally by Gordon Matzigkeit <gord@gnu.ai.mit.edu>, 1996 21266# 21267# This program is free software; you can redistribute it and/or modify 21268# it under the terms of the GNU General Public License as published by 21269# the Free Software Foundation; either version 2 of the License, or 21270# (at your option) any later version. 21271# 21272# This program is distributed in the hope that it will be useful, but 21273# WITHOUT ANY WARRANTY; without even the implied warranty of 21274# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 21275# General Public License for more details. 21276# 21277# You should have received a copy of the GNU General Public License 21278# along with this program; if not, a copy can be downloaded from 21279# http://www.gnu.org/copyleft/gpl.html, or by writing to the Free 21280# Software Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, 21281# MA 02110-1301, USA. 21282# 21283# As a special exception to the GNU General Public License, if you 21284# distribute this file as part of a program that contains a 21285# configuration script generated by Autoconf, you may include it under 21286# the same distribution terms that you use for the rest of that program. 21287 21288 21289# The names of the tagged configurations supported by this script. 21290available_tags="FC " 21291 21292# ### BEGIN LIBTOOL CONFIG 21293 21294# Which release of libtool.m4 was used? 21295macro_version=$macro_version 21296macro_revision=$macro_revision 21297 21298# Whether or not to build shared libraries. 21299build_libtool_libs=$enable_shared 21300 21301# Whether or not to build static libraries. 21302build_old_libs=$enable_static 21303 21304# What type of objects to build. 21305pic_mode=$pic_mode 21306 21307# Whether or not to optimize for fast installation. 21308fast_install=$enable_fast_install 21309 21310# The host system. 21311host_alias=$host_alias 21312host=$host 21313host_os=$host_os 21314 21315# The build system. 21316build_alias=$build_alias 21317build=$build 21318build_os=$build_os 21319 21320# A sed program that does not truncate output. 21321SED=$lt_SED 21322 21323# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21324Xsed="\$SED -e 1s/^X//" 21325 21326# A grep program that handles long lines. 21327GREP=$lt_GREP 21328 21329# An ERE matcher. 21330EGREP=$lt_EGREP 21331 21332# A literal string matcher. 21333FGREP=$lt_FGREP 21334 21335# A BSD- or MS-compatible name lister. 21336NM=$lt_NM 21337 21338# Whether we need soft or hard links. 21339LN_S=$lt_LN_S 21340 21341# What is the maximum length of a command? 21342max_cmd_len=$max_cmd_len 21343 21344# Object file suffix (normally "o"). 21345objext=$ac_objext 21346 21347# Executable file suffix (normally ""). 21348exeext=$exeext 21349 21350# whether the shell understands "unset". 21351lt_unset=$lt_unset 21352 21353# turn spaces into newlines. 21354SP2NL=$lt_lt_SP2NL 21355 21356# turn newlines into spaces. 21357NL2SP=$lt_lt_NL2SP 21358 21359# How to create reloadable object files. 21360reload_flag=$lt_reload_flag 21361reload_cmds=$lt_reload_cmds 21362 21363# Method to check whether dependent libraries are shared objects. 21364deplibs_check_method=$lt_deplibs_check_method 21365 21366# Command to use when deplibs_check_method == "file_magic". 21367file_magic_cmd=$lt_file_magic_cmd 21368 21369# The archiver. 21370AR=$lt_AR 21371AR_FLAGS=$lt_AR_FLAGS 21372 21373# A symbol stripping program. 21374STRIP=$lt_STRIP 21375 21376# Commands used to install an old-style archive. 21377RANLIB=$lt_RANLIB 21378old_postinstall_cmds=$lt_old_postinstall_cmds 21379old_postuninstall_cmds=$lt_old_postuninstall_cmds 21380 21381# A C compiler. 21382LTCC=$lt_CC 21383 21384# LTCC compiler flags. 21385LTCFLAGS=$lt_CFLAGS 21386 21387# Take the output of nm and produce a listing of raw symbols and C names. 21388global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21389 21390# Transform the output of nm in a proper C declaration. 21391global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21392 21393# Transform the output of nm in a C name address pair. 21394global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21395 21396# The name of the directory that contains temporary libtool files. 21397objdir=$objdir 21398 21399# Shell to use when invoking shell scripts. 21400SHELL=$lt_SHELL 21401 21402# An echo program that does not interpret backslashes. 21403ECHO=$lt_ECHO 21404 21405# Used to examine libraries when file_magic_cmd begins with "file". 21406MAGIC_CMD=$MAGIC_CMD 21407 21408# Must we lock files when doing compilation? 21409need_locks=$lt_need_locks 21410 21411# Old archive suffix (normally "a"). 21412libext=$libext 21413 21414# Shared library suffix (normally ".so"). 21415shrext_cmds=$lt_shrext_cmds 21416 21417# The commands to extract the exported symbol list from a shared archive. 21418extract_expsyms_cmds=$lt_extract_expsyms_cmds 21419 21420# Variables whose values should be saved in libtool wrapper scripts and 21421# restored at link time. 21422variables_saved_for_relink=$lt_variables_saved_for_relink 21423 21424# Do we need the "lib" prefix for modules? 21425need_lib_prefix=$need_lib_prefix 21426 21427# Do we need a version for libraries? 21428need_version=$need_version 21429 21430# Library versioning type. 21431version_type=$version_type 21432 21433# Shared library runtime path variable. 21434runpath_var=$runpath_var 21435 21436# Shared library path variable. 21437shlibpath_var=$shlibpath_var 21438 21439# Is shlibpath searched before the hard-coded library search path? 21440shlibpath_overrides_runpath=$shlibpath_overrides_runpath 21441 21442# Format of library name prefix. 21443libname_spec=$lt_libname_spec 21444 21445# List of archive names. First name is the real one, the rest are links. 21446# The last name is the one that the linker finds with -lNAME 21447library_names_spec=$lt_library_names_spec 21448 21449# The coded name of the library, if different from the real name. 21450soname_spec=$lt_soname_spec 21451 21452# Command to use after installation of a shared archive. 21453postinstall_cmds=$lt_postinstall_cmds 21454 21455# Command to use after uninstallation of a shared archive. 21456postuninstall_cmds=$lt_postuninstall_cmds 21457 21458# Commands used to finish a libtool library installation in a directory. 21459finish_cmds=$lt_finish_cmds 21460 21461# As "finish_cmds", except a single script fragment to be evaled but 21462# not shown. 21463finish_eval=$lt_finish_eval 21464 21465# Whether we should hardcode library paths into libraries. 21466hardcode_into_libs=$hardcode_into_libs 21467 21468# Compile-time system search path for libraries. 21469sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 21470 21471# Run-time system search path for libraries. 21472sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 21473 21474# Whether dlopen is supported. 21475dlopen_support=$enable_dlopen 21476 21477# Whether dlopen of programs is supported. 21478dlopen_self=$enable_dlopen_self 21479 21480# Whether dlopen of statically linked programs is supported. 21481dlopen_self_static=$enable_dlopen_self_static 21482 21483# Commands to strip libraries. 21484old_striplib=$lt_old_striplib 21485striplib=$lt_striplib 21486 21487 21488# The linker used to build libraries. 21489LD=$lt_LD 21490 21491# Commands used to build an old-style archive. 21492old_archive_cmds=$lt_old_archive_cmds 21493 21494# A language specific compiler. 21495CC=$lt_compiler 21496 21497# Is the compiler the GNU compiler? 21498with_gcc=$GCC 21499 21500# Compiler flag to turn off builtin functions. 21501no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 21502 21503# How to pass a linker flag through the compiler. 21504wl=$lt_lt_prog_compiler_wl 21505 21506# Additional compiler flags for building library objects. 21507pic_flag=$lt_lt_prog_compiler_pic 21508 21509# Compiler flag to prevent dynamic linking. 21510link_static_flag=$lt_lt_prog_compiler_static 21511 21512# Does compiler simultaneously support -c and -o options? 21513compiler_c_o=$lt_lt_cv_prog_compiler_c_o 21514 21515# Whether or not to add -lc for building shared libraries. 21516build_libtool_need_lc=$archive_cmds_need_lc 21517 21518# Whether or not to disallow shared libs when runtime libs are static. 21519allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 21520 21521# Compiler flag to allow reflexive dlopens. 21522export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 21523 21524# Compiler flag to generate shared objects directly from archives. 21525whole_archive_flag_spec=$lt_whole_archive_flag_spec 21526 21527# Whether the compiler copes with passing no objects directly. 21528compiler_needs_object=$lt_compiler_needs_object 21529 21530# Create an old-style archive from a shared archive. 21531old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 21532 21533# Create a temporary old-style archive to link instead of a shared archive. 21534old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 21535 21536# Commands used to build a shared archive. 21537archive_cmds=$lt_archive_cmds 21538archive_expsym_cmds=$lt_archive_expsym_cmds 21539 21540# Commands used to build a loadable module if different from building 21541# a shared archive. 21542module_cmds=$lt_module_cmds 21543module_expsym_cmds=$lt_module_expsym_cmds 21544 21545# Whether we are building with GNU ld or not. 21546with_gnu_ld=$lt_with_gnu_ld 21547 21548# Flag that allows shared libraries with undefined symbols to be built. 21549allow_undefined_flag=$lt_allow_undefined_flag 21550 21551# Flag that enforces no undefined symbols. 21552no_undefined_flag=$lt_no_undefined_flag 21553 21554# Flag to hardcode \$libdir into a binary during linking. 21555# This must work even if \$libdir does not exist 21556hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 21557 21558# If ld is used when linking, flag to hardcode \$libdir into a binary 21559# during linking. This must work even if \$libdir does not exist. 21560hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 21561 21562# Whether we need a single "-rpath" flag with a separated argument. 21563hardcode_libdir_separator=$lt_hardcode_libdir_separator 21564 21565# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21566# DIR into the resulting binary. 21567hardcode_direct=$hardcode_direct 21568 21569# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21570# DIR into the resulting binary and the resulting library dependency is 21571# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21572# library is relocated. 21573hardcode_direct_absolute=$hardcode_direct_absolute 21574 21575# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21576# into the resulting binary. 21577hardcode_minus_L=$hardcode_minus_L 21578 21579# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21580# into the resulting binary. 21581hardcode_shlibpath_var=$hardcode_shlibpath_var 21582 21583# Set to "yes" if building a shared library automatically hardcodes DIR 21584# into the library and all subsequent libraries and executables linked 21585# against it. 21586hardcode_automatic=$hardcode_automatic 21587 21588# Set to yes if linker adds runtime paths of dependent libraries 21589# to runtime path list. 21590inherit_rpath=$inherit_rpath 21591 21592# Whether libtool must link a program against all its dependency libraries. 21593link_all_deplibs=$link_all_deplibs 21594 21595# Fix the shell variable \$srcfile for the compiler. 21596fix_srcfile_path=$lt_fix_srcfile_path 21597 21598# Set to "yes" if exported symbols are required. 21599always_export_symbols=$always_export_symbols 21600 21601# The commands to list exported symbols. 21602export_symbols_cmds=$lt_export_symbols_cmds 21603 21604# Symbols that should not be listed in the preloaded symbols. 21605exclude_expsyms=$lt_exclude_expsyms 21606 21607# Symbols that must always be exported. 21608include_expsyms=$lt_include_expsyms 21609 21610# Commands necessary for linking programs (against libraries) with templates. 21611prelink_cmds=$lt_prelink_cmds 21612 21613# Specify filename containing input files. 21614file_list_spec=$lt_file_list_spec 21615 21616# How to hardcode a shared library path into an executable. 21617hardcode_action=$hardcode_action 21618 21619# Dependencies to place before and after the objects being linked to 21620# create a shared library. 21621predep_objects=$lt_predep_objects 21622postdep_objects=$lt_postdep_objects 21623predeps=$lt_predeps 21624postdeps=$lt_postdeps 21625 21626# The library search path used internally by the compiler when linking 21627# a shared library. 21628compiler_lib_search_path=$lt_compiler_lib_search_path 21629 21630# ### END LIBTOOL CONFIG 21631 21632_LT_EOF 21633 21634 case $host_os in 21635 aix3*) 21636 cat <<\_LT_EOF >> "$cfgfile" 21637# AIX sometimes has problems with the GCC collect2 program. For some 21638# reason, if we set the COLLECT_NAMES environment variable, the problems 21639# vanish in a puff of smoke. 21640if test "X${COLLECT_NAMES+set}" != Xset; then 21641 COLLECT_NAMES= 21642 export COLLECT_NAMES 21643fi 21644_LT_EOF 21645 ;; 21646 esac 21647 21648 21649ltmain="$ac_aux_dir/ltmain.sh" 21650 21651 21652 # We use sed instead of cat because bash on DJGPP gets confused if 21653 # if finds mixed CR/LF and LF-only lines. Since sed operates in 21654 # text mode, it properly converts lines to CR/LF. This bash problem 21655 # is reportedly fixed, but why not run on old versions too? 21656 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 21657 || (rm -f "$cfgfile"; exit 1) 21658 21659 case $xsi_shell in 21660 yes) 21661 cat << \_LT_EOF >> "$cfgfile" 21662# func_dirname file append nondir_replacement 21663# Compute the dirname of FILE. If nonempty, add APPEND to the result, 21664# otherwise set result to NONDIR_REPLACEMENT. 21665func_dirname () 21666{ 21667 case ${1} in 21668 */*) func_dirname_result="${1%/*}${2}" ;; 21669 * ) func_dirname_result="${3}" ;; 21670 esac 21671} 21672 21673# func_basename file 21674func_basename () 21675{ 21676 func_basename_result="${1##*/}" 21677} 21678 21679# func_stripname prefix suffix name 21680# strip PREFIX and SUFFIX off of NAME. 21681# PREFIX and SUFFIX must not contain globbing or regex special 21682# characters, hashes, percent signs, but SUFFIX may contain a leading 21683# dot (in which case that matches only a dot). 21684func_stripname () 21685{ 21686 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 21687 # positional parameters, so assign one to ordinary parameter first. 21688 func_stripname_result=${3} 21689 func_stripname_result=${func_stripname_result#"${1}"} 21690 func_stripname_result=${func_stripname_result%"${2}"} 21691} 21692 21693# func_opt_split 21694func_opt_split () 21695{ 21696 func_opt_split_opt=${1%%=*} 21697 func_opt_split_arg=${1#*=} 21698} 21699 21700# func_lo2o object 21701func_lo2o () 21702{ 21703 case ${1} in 21704 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 21705 *) func_lo2o_result=${1} ;; 21706 esac 21707} 21708_LT_EOF 21709 ;; 21710 *) # Bourne compatible functions. 21711 cat << \_LT_EOF >> "$cfgfile" 21712# func_dirname file append nondir_replacement 21713# Compute the dirname of FILE. If nonempty, add APPEND to the result, 21714# otherwise set result to NONDIR_REPLACEMENT. 21715func_dirname () 21716{ 21717 # Extract subdirectory from the argument. 21718 func_dirname_result=`$ECHO "X${1}" | $Xsed -e "$dirname"` 21719 if test "X$func_dirname_result" = "X${1}"; then 21720 func_dirname_result="${3}" 21721 else 21722 func_dirname_result="$func_dirname_result${2}" 21723 fi 21724} 21725 21726# func_basename file 21727func_basename () 21728{ 21729 func_basename_result=`$ECHO "X${1}" | $Xsed -e "$basename"` 21730} 21731 21732# func_stripname prefix suffix name 21733# strip PREFIX and SUFFIX off of NAME. 21734# PREFIX and SUFFIX must not contain globbing or regex special 21735# characters, hashes, percent signs, but SUFFIX may contain a leading 21736# dot (in which case that matches only a dot). 21737# func_strip_suffix prefix name 21738func_stripname () 21739{ 21740 case ${2} in 21741 .*) func_stripname_result=`$ECHO "X${3}" \ 21742 | $Xsed -e "s%^${1}%%" -e "s%\\\\${2}\$%%"`;; 21743 *) func_stripname_result=`$ECHO "X${3}" \ 21744 | $Xsed -e "s%^${1}%%" -e "s%${2}\$%%"`;; 21745 esac 21746} 21747 21748# sed scripts: 21749my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 21750my_sed_long_arg='1s/^-[^=]*=//' 21751 21752# func_opt_split 21753func_opt_split () 21754{ 21755 func_opt_split_opt=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_opt"` 21756 func_opt_split_arg=`$ECHO "X${1}" | $Xsed -e "$my_sed_long_arg"` 21757} 21758 21759# func_lo2o object 21760func_lo2o () 21761{ 21762 func_lo2o_result=`$ECHO "X${1}" | $Xsed -e "$lo2o"` 21763} 21764_LT_EOF 21765esac 21766 21767case $lt_shell_append in 21768 yes) 21769 cat << \_LT_EOF >> "$cfgfile" 21770 21771# func_append var value 21772# Append VALUE to the end of shell variable VAR. 21773func_append () 21774{ 21775 eval "$1+=\$2" 21776} 21777_LT_EOF 21778 ;; 21779 *) 21780 cat << \_LT_EOF >> "$cfgfile" 21781 21782# func_append var value 21783# Append VALUE to the end of shell variable VAR. 21784func_append () 21785{ 21786 eval "$1=\$$1\$2" 21787} 21788_LT_EOF 21789 ;; 21790 esac 21791 21792 21793 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 21794 || (rm -f "$cfgfile"; exit 1) 21795 21796 mv -f "$cfgfile" "$ofile" || 21797 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 21798 chmod +x "$ofile" 21799 21800 21801 cat <<_LT_EOF >> "$ofile" 21802 21803# ### BEGIN LIBTOOL TAG CONFIG: FC 21804 21805# The linker used to build libraries. 21806LD=$lt_LD_FC 21807 21808# Commands used to build an old-style archive. 21809old_archive_cmds=$lt_old_archive_cmds_FC 21810 21811# A language specific compiler. 21812CC=$lt_compiler_FC 21813 21814# Is the compiler the GNU compiler? 21815with_gcc=$GCC_FC 21816 21817# Compiler flag to turn off builtin functions. 21818no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_FC 21819 21820# How to pass a linker flag through the compiler. 21821wl=$lt_lt_prog_compiler_wl_FC 21822 21823# Additional compiler flags for building library objects. 21824pic_flag=$lt_lt_prog_compiler_pic_FC 21825 21826# Compiler flag to prevent dynamic linking. 21827link_static_flag=$lt_lt_prog_compiler_static_FC 21828 21829# Does compiler simultaneously support -c and -o options? 21830compiler_c_o=$lt_lt_cv_prog_compiler_c_o_FC 21831 21832# Whether or not to add -lc for building shared libraries. 21833build_libtool_need_lc=$archive_cmds_need_lc_FC 21834 21835# Whether or not to disallow shared libs when runtime libs are static. 21836allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_FC 21837 21838# Compiler flag to allow reflexive dlopens. 21839export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_FC 21840 21841# Compiler flag to generate shared objects directly from archives. 21842whole_archive_flag_spec=$lt_whole_archive_flag_spec_FC 21843 21844# Whether the compiler copes with passing no objects directly. 21845compiler_needs_object=$lt_compiler_needs_object_FC 21846 21847# Create an old-style archive from a shared archive. 21848old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_FC 21849 21850# Create a temporary old-style archive to link instead of a shared archive. 21851old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_FC 21852 21853# Commands used to build a shared archive. 21854archive_cmds=$lt_archive_cmds_FC 21855archive_expsym_cmds=$lt_archive_expsym_cmds_FC 21856 21857# Commands used to build a loadable module if different from building 21858# a shared archive. 21859module_cmds=$lt_module_cmds_FC 21860module_expsym_cmds=$lt_module_expsym_cmds_FC 21861 21862# Whether we are building with GNU ld or not. 21863with_gnu_ld=$lt_with_gnu_ld_FC 21864 21865# Flag that allows shared libraries with undefined symbols to be built. 21866allow_undefined_flag=$lt_allow_undefined_flag_FC 21867 21868# Flag that enforces no undefined symbols. 21869no_undefined_flag=$lt_no_undefined_flag_FC 21870 21871# Flag to hardcode \$libdir into a binary during linking. 21872# This must work even if \$libdir does not exist 21873hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_FC 21874 21875# If ld is used when linking, flag to hardcode \$libdir into a binary 21876# during linking. This must work even if \$libdir does not exist. 21877hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld_FC 21878 21879# Whether we need a single "-rpath" flag with a separated argument. 21880hardcode_libdir_separator=$lt_hardcode_libdir_separator_FC 21881 21882# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21883# DIR into the resulting binary. 21884hardcode_direct=$hardcode_direct_FC 21885 21886# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 21887# DIR into the resulting binary and the resulting library dependency is 21888# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 21889# library is relocated. 21890hardcode_direct_absolute=$hardcode_direct_absolute_FC 21891 21892# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 21893# into the resulting binary. 21894hardcode_minus_L=$hardcode_minus_L_FC 21895 21896# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 21897# into the resulting binary. 21898hardcode_shlibpath_var=$hardcode_shlibpath_var_FC 21899 21900# Set to "yes" if building a shared library automatically hardcodes DIR 21901# into the library and all subsequent libraries and executables linked 21902# against it. 21903hardcode_automatic=$hardcode_automatic_FC 21904 21905# Set to yes if linker adds runtime paths of dependent libraries 21906# to runtime path list. 21907inherit_rpath=$inherit_rpath_FC 21908 21909# Whether libtool must link a program against all its dependency libraries. 21910link_all_deplibs=$link_all_deplibs_FC 21911 21912# Fix the shell variable \$srcfile for the compiler. 21913fix_srcfile_path=$lt_fix_srcfile_path_FC 21914 21915# Set to "yes" if exported symbols are required. 21916always_export_symbols=$always_export_symbols_FC 21917 21918# The commands to list exported symbols. 21919export_symbols_cmds=$lt_export_symbols_cmds_FC 21920 21921# Symbols that should not be listed in the preloaded symbols. 21922exclude_expsyms=$lt_exclude_expsyms_FC 21923 21924# Symbols that must always be exported. 21925include_expsyms=$lt_include_expsyms_FC 21926 21927# Commands necessary for linking programs (against libraries) with templates. 21928prelink_cmds=$lt_prelink_cmds_FC 21929 21930# Specify filename containing input files. 21931file_list_spec=$lt_file_list_spec_FC 21932 21933# How to hardcode a shared library path into an executable. 21934hardcode_action=$hardcode_action_FC 21935 21936# Dependencies to place before and after the objects being linked to 21937# create a shared library. 21938predep_objects=$lt_predep_objects_FC 21939postdep_objects=$lt_postdep_objects_FC 21940predeps=$lt_predeps_FC 21941postdeps=$lt_postdeps_FC 21942 21943# The library search path used internally by the compiler when linking 21944# a shared library. 21945compiler_lib_search_path=$lt_compiler_lib_search_path_FC 21946 21947# ### END LIBTOOL TAG CONFIG: FC 21948_LT_EOF 21949 21950 ;; 21951 gstdint.h ) 21952if test "$GCC" = yes; then 21953 echo "/* generated for " `$CC --version | sed 1q` "*/" > tmp-stdint.h 21954else 21955 echo "/* generated for $CC */" > tmp-stdint.h 21956fi 21957 21958sed 's/^ *//' >> tmp-stdint.h <<EOF 21959 21960 #ifndef GCC_GENERATED_STDINT_H 21961 #define GCC_GENERATED_STDINT_H 1 21962 21963 #include <sys/types.h> 21964EOF 21965 21966if test "$acx_cv_header_stdint" != stdint.h; then 21967 echo "#include <stddef.h>" >> tmp-stdint.h 21968fi 21969if test "$acx_cv_header_stdint" != stddef.h; then 21970 echo "#include <$acx_cv_header_stdint>" >> tmp-stdint.h 21971fi 21972 21973sed 's/^ *//' >> tmp-stdint.h <<EOF 21974 /* glibc uses these symbols as guards to prevent redefinitions. */ 21975 #ifdef __int8_t_defined 21976 #define _INT8_T 21977 #define _INT16_T 21978 #define _INT32_T 21979 #endif 21980 #ifdef __uint32_t_defined 21981 #define _UINT32_T 21982 #endif 21983 21984EOF 21985 21986# ----------------- done header, emit basic int types ------------- 21987if test "$acx_cv_header_stdint" = stddef.h; then 21988 sed 's/^ *//' >> tmp-stdint.h <<EOF 21989 21990 #ifndef _UINT8_T 21991 #define _UINT8_T 21992 #ifndef __uint8_t_defined 21993 #define __uint8_t_defined 21994 typedef unsigned $acx_cv_type_int8_t uint8_t; 21995 #endif 21996 #endif 21997 21998 #ifndef _UINT16_T 21999 #define _UINT16_T 22000 #ifndef __uint16_t_defined 22001 #define __uint16_t_defined 22002 typedef unsigned $acx_cv_type_int16_t uint16_t; 22003 #endif 22004 #endif 22005 22006 #ifndef _UINT32_T 22007 #define _UINT32_T 22008 #ifndef __uint32_t_defined 22009 #define __uint32_t_defined 22010 typedef unsigned $acx_cv_type_int32_t uint32_t; 22011 #endif 22012 #endif 22013 22014 #ifndef _INT8_T 22015 #define _INT8_T 22016 #ifndef __int8_t_defined 22017 #define __int8_t_defined 22018 typedef $acx_cv_type_int8_t int8_t; 22019 #endif 22020 #endif 22021 22022 #ifndef _INT16_T 22023 #define _INT16_T 22024 #ifndef __int16_t_defined 22025 #define __int16_t_defined 22026 typedef $acx_cv_type_int16_t int16_t; 22027 #endif 22028 #endif 22029 22030 #ifndef _INT32_T 22031 #define _INT32_T 22032 #ifndef __int32_t_defined 22033 #define __int32_t_defined 22034 typedef $acx_cv_type_int32_t int32_t; 22035 #endif 22036 #endif 22037EOF 22038elif test "$ac_cv_type_u_int32_t" = yes; then 22039 sed 's/^ *//' >> tmp-stdint.h <<EOF 22040 22041 /* int8_t int16_t int32_t defined by inet code, we do the u_intXX types */ 22042 #ifndef _INT8_T 22043 #define _INT8_T 22044 #endif 22045 #ifndef _INT16_T 22046 #define _INT16_T 22047 #endif 22048 #ifndef _INT32_T 22049 #define _INT32_T 22050 #endif 22051 22052 #ifndef _UINT8_T 22053 #define _UINT8_T 22054 #ifndef __uint8_t_defined 22055 #define __uint8_t_defined 22056 typedef u_int8_t uint8_t; 22057 #endif 22058 #endif 22059 22060 #ifndef _UINT16_T 22061 #define _UINT16_T 22062 #ifndef __uint16_t_defined 22063 #define __uint16_t_defined 22064 typedef u_int16_t uint16_t; 22065 #endif 22066 #endif 22067 22068 #ifndef _UINT32_T 22069 #define _UINT32_T 22070 #ifndef __uint32_t_defined 22071 #define __uint32_t_defined 22072 typedef u_int32_t uint32_t; 22073 #endif 22074 #endif 22075EOF 22076else 22077 sed 's/^ *//' >> tmp-stdint.h <<EOF 22078 22079 /* Some systems have guard macros to prevent redefinitions, define them. */ 22080 #ifndef _INT8_T 22081 #define _INT8_T 22082 #endif 22083 #ifndef _INT16_T 22084 #define _INT16_T 22085 #endif 22086 #ifndef _INT32_T 22087 #define _INT32_T 22088 #endif 22089 #ifndef _UINT8_T 22090 #define _UINT8_T 22091 #endif 22092 #ifndef _UINT16_T 22093 #define _UINT16_T 22094 #endif 22095 #ifndef _UINT32_T 22096 #define _UINT32_T 22097 #endif 22098EOF 22099fi 22100 22101# ------------- done basic int types, emit int64_t types ------------ 22102if test "$ac_cv_type_uint64_t" = yes; then 22103 sed 's/^ *//' >> tmp-stdint.h <<EOF 22104 22105 /* system headers have good uint64_t and int64_t */ 22106 #ifndef _INT64_T 22107 #define _INT64_T 22108 #endif 22109 #ifndef _UINT64_T 22110 #define _UINT64_T 22111 #endif 22112EOF 22113elif test "$ac_cv_type_u_int64_t" = yes; then 22114 sed 's/^ *//' >> tmp-stdint.h <<EOF 22115 22116 /* system headers have an u_int64_t (and int64_t) */ 22117 #ifndef _INT64_T 22118 #define _INT64_T 22119 #endif 22120 #ifndef _UINT64_T 22121 #define _UINT64_T 22122 #ifndef __uint64_t_defined 22123 #define __uint64_t_defined 22124 typedef u_int64_t uint64_t; 22125 #endif 22126 #endif 22127EOF 22128elif test -n "$acx_cv_type_int64_t"; then 22129 sed 's/^ *//' >> tmp-stdint.h <<EOF 22130 22131 /* architecture has a 64-bit type, $acx_cv_type_int64_t */ 22132 #ifndef _INT64_T 22133 #define _INT64_T 22134 typedef $acx_cv_type_int64_t int64_t; 22135 #endif 22136 #ifndef _UINT64_T 22137 #define _UINT64_T 22138 #ifndef __uint64_t_defined 22139 #define __uint64_t_defined 22140 typedef unsigned $acx_cv_type_int64_t uint64_t; 22141 #endif 22142 #endif 22143EOF 22144else 22145 sed 's/^ *//' >> tmp-stdint.h <<EOF 22146 22147 /* some common heuristics for int64_t, using compiler-specific tests */ 22148 #if defined __STDC_VERSION__ && (__STDC_VERSION__-0) >= 199901L 22149 #ifndef _INT64_T 22150 #define _INT64_T 22151 #ifndef __int64_t_defined 22152 typedef long long int64_t; 22153 #endif 22154 #endif 22155 #ifndef _UINT64_T 22156 #define _UINT64_T 22157 typedef unsigned long long uint64_t; 22158 #endif 22159 22160 #elif defined __GNUC__ && defined (__STDC__) && __STDC__-0 22161 /* NextStep 2.0 cc is really gcc 1.93 but it defines __GNUC__ = 2 and 22162 does not implement __extension__. But that compiler doesn't define 22163 __GNUC_MINOR__. */ 22164 # if __GNUC__ < 2 || (__NeXT__ && !__GNUC_MINOR__) 22165 # define __extension__ 22166 # endif 22167 22168 # ifndef _INT64_T 22169 # define _INT64_T 22170 __extension__ typedef long long int64_t; 22171 # endif 22172 # ifndef _UINT64_T 22173 # define _UINT64_T 22174 __extension__ typedef unsigned long long uint64_t; 22175 # endif 22176 22177 #elif !defined __STRICT_ANSI__ 22178 # if defined _MSC_VER || defined __WATCOMC__ || defined __BORLANDC__ 22179 22180 # ifndef _INT64_T 22181 # define _INT64_T 22182 typedef __int64 int64_t; 22183 # endif 22184 # ifndef _UINT64_T 22185 # define _UINT64_T 22186 typedef unsigned __int64 uint64_t; 22187 # endif 22188 # endif /* compiler */ 22189 22190 #endif /* ANSI version */ 22191EOF 22192fi 22193 22194# ------------- done int64_t types, emit intptr types ------------ 22195if test "$ac_cv_type_uintptr_t" != yes; then 22196 sed 's/^ *//' >> tmp-stdint.h <<EOF 22197 22198 /* Define intptr_t based on sizeof(void*) = $ac_cv_sizeof_void_p */ 22199 #ifndef __uintptr_t_defined 22200 typedef u$acx_cv_type_intptr_t uintptr_t; 22201 #endif 22202 #ifndef __intptr_t_defined 22203 typedef $acx_cv_type_intptr_t intptr_t; 22204 #endif 22205EOF 22206fi 22207 22208# ------------- done intptr types, emit int_least types ------------ 22209if test "$ac_cv_type_int_least32_t" != yes; then 22210 sed 's/^ *//' >> tmp-stdint.h <<EOF 22211 22212 /* Define int_least types */ 22213 typedef int8_t int_least8_t; 22214 typedef int16_t int_least16_t; 22215 typedef int32_t int_least32_t; 22216 #ifdef _INT64_T 22217 typedef int64_t int_least64_t; 22218 #endif 22219 22220 typedef uint8_t uint_least8_t; 22221 typedef uint16_t uint_least16_t; 22222 typedef uint32_t uint_least32_t; 22223 #ifdef _UINT64_T 22224 typedef uint64_t uint_least64_t; 22225 #endif 22226EOF 22227fi 22228 22229# ------------- done intptr types, emit int_fast types ------------ 22230if test "$ac_cv_type_int_fast32_t" != yes; then 22231 sed 's/^ *//' >> tmp-stdint.h <<EOF 22232 22233 /* Define int_fast types. short is often slow */ 22234 typedef int8_t int_fast8_t; 22235 typedef int int_fast16_t; 22236 typedef int32_t int_fast32_t; 22237 #ifdef _INT64_T 22238 typedef int64_t int_fast64_t; 22239 #endif 22240 22241 typedef uint8_t uint_fast8_t; 22242 typedef unsigned int uint_fast16_t; 22243 typedef uint32_t uint_fast32_t; 22244 #ifdef _UINT64_T 22245 typedef uint64_t uint_fast64_t; 22246 #endif 22247EOF 22248fi 22249 22250if test "$ac_cv_type_uintmax_t" != yes; then 22251 sed 's/^ *//' >> tmp-stdint.h <<EOF 22252 22253 /* Define intmax based on what we found */ 22254 #ifdef _INT64_T 22255 typedef int64_t intmax_t; 22256 #else 22257 typedef long intmax_t; 22258 #endif 22259 #ifdef _UINT64_T 22260 typedef uint64_t uintmax_t; 22261 #else 22262 typedef unsigned long uintmax_t; 22263 #endif 22264EOF 22265fi 22266 22267sed 's/^ *//' >> tmp-stdint.h <<EOF 22268 22269 #endif /* GCC_GENERATED_STDINT_H */ 22270EOF 22271 22272if test -r gstdint.h && cmp -s tmp-stdint.h gstdint.h; then 22273 rm -f tmp-stdint.h 22274else 22275 mv -f tmp-stdint.h gstdint.h 22276fi 22277 22278 ;; 22279 esac 22280done 22281_ACEOF 22282 22283cat >>$CONFIG_STATUS <<\_ACEOF 22284 22285{ (exit 0); exit 0; } 22286_ACEOF 22287chmod +x $CONFIG_STATUS 22288ac_clean_files=$ac_clean_files_save 22289 22290 22291# configure is writing to config.log, and then calls config.status. 22292# config.status does its own redirection, appending to config.log. 22293# Unfortunately, on DOS this fails, as config.log is still kept open 22294# by configure, so config.status won't be able to write to it; its 22295# output is simply discarded. So we exec the FD to /dev/null, 22296# effectively closing config.log, so it can be properly (re)opened and 22297# appended to by config.status. When coming back to configure, we 22298# need to make the FD available again. 22299if test "$no_create" != yes; then 22300 ac_cs_success=: 22301 ac_config_status_args= 22302 test "$silent" = yes && 22303 ac_config_status_args="$ac_config_status_args --quiet" 22304 exec 5>/dev/null 22305 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22306 exec 5>>config.log 22307 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22308 # would make configure fail if this is the last instruction. 22309 $ac_cs_success || { (exit 1); exit 1; } 22310fi 22311 22312