1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.64 for package-unused version-unused. 4# 5# Report bugs to <libmpx>. 6# 7# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 8# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software 9# Foundation, Inc. 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92case $0 in #(( 93 *[\\/]* ) as_myself=$0 ;; 94 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 95for as_dir in $PATH 96do 97 IFS=$as_save_IFS 98 test -z "$as_dir" && as_dir=. 99 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 100 done 101IFS=$as_save_IFS 102 103 ;; 104esac 105# We did not find ourselves, most probably we were run as `sh COMMAND' 106# in which case we are not to be found in the path. 107if test "x$as_myself" = x; then 108 as_myself=$0 109fi 110if test ! -f "$as_myself"; then 111 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 112 exit 1 113fi 114 115# Unset variables that we do not need and which cause bugs (e.g. in 116# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 117# suppresses any "Segmentation fault" message there. '((' could 118# trigger a bug in pdksh 5.2.14. 119for as_var in BASH_ENV ENV MAIL MAILPATH 120do eval test x\${$as_var+set} = xset \ 121 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 122done 123PS1='$ ' 124PS2='> ' 125PS4='+ ' 126 127# NLS nuisances. 128LC_ALL=C 129export LC_ALL 130LANGUAGE=C 131export LANGUAGE 132 133# CDPATH. 134(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 135 136if test "x$CONFIG_SHELL" = x; then 137 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 138 emulate sh 139 NULLCMD=: 140 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 141 # is contrary to our usage. Disable this feature. 142 alias -g '\${1+\"\$@\"}'='\"\$@\"' 143 setopt NO_GLOB_SUBST 144else 145 case \`(set -o) 2>/dev/null\` in #( 146 *posix*) : 147 set -o posix ;; #( 148 *) : 149 ;; 150esac 151fi 152" 153 as_required="as_fn_return () { (exit \$1); } 154as_fn_success () { as_fn_return 0; } 155as_fn_failure () { as_fn_return 1; } 156as_fn_ret_success () { return 0; } 157as_fn_ret_failure () { return 1; } 158 159exitcode=0 160as_fn_success || { exitcode=1; echo as_fn_success failed.; } 161as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 162as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 163as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 164if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 165 166else 167 exitcode=1; echo positional parameters were not saved. 168fi 169test x\$exitcode = x0 || exit 1" 170 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 171 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 172 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 173 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 174test \$(( 1 + 1 )) = 2 || exit 1 175 176 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 177 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 178 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 179 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 180 PATH=/empty FPATH=/empty; export PATH FPATH 181 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 182 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 183 if (eval "$as_required") 2>/dev/null; then : 184 as_have_required=yes 185else 186 as_have_required=no 187fi 188 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 189 190else 191 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 192as_found=false 193for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 194do 195 IFS=$as_save_IFS 196 test -z "$as_dir" && as_dir=. 197 as_found=: 198 case $as_dir in #( 199 /*) 200 for as_base in sh bash ksh sh5; do 201 # Try only shells that exist, to save several forks. 202 as_shell=$as_dir/$as_base 203 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 204 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 205 CONFIG_SHELL=$as_shell as_have_required=yes 206 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 break 2 208fi 209fi 210 done;; 211 esac 212 as_found=false 213done 214$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 215 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 216 CONFIG_SHELL=$SHELL as_have_required=yes 217fi; } 218IFS=$as_save_IFS 219 220 221 if test "x$CONFIG_SHELL" != x; then : 222 # We cannot yet assume a decent shell, so we have to provide a 223 # neutralization value for shells without unset; and this also 224 # works around shells that cannot unset nonexistent variables. 225 BASH_ENV=/dev/null 226 ENV=/dev/null 227 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 228 export CONFIG_SHELL 229 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 230fi 231 232 if test x$as_have_required = xno; then : 233 $as_echo "$0: This script requires a shell more modern than all" 234 $as_echo "$0: the shells that I found on your system." 235 if test x${ZSH_VERSION+set} = xset ; then 236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 237 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 238 else 239 $as_echo "$0: Please tell bug-autoconf@gnu.org and libmpx about your 240$0: system, including any error possibly output before this 241$0: message. Then install a modern shell, or manually run 242$0: the script under such a shell if you do have one." 243 fi 244 exit 1 245fi 246fi 247fi 248SHELL=${CONFIG_SHELL-/bin/sh} 249export SHELL 250# Unset more variables known to interfere with behavior of common tools. 251CLICOLOR_FORCE= GREP_OPTIONS= 252unset CLICOLOR_FORCE GREP_OPTIONS 253 254## --------------------- ## 255## M4sh Shell Functions. ## 256## --------------------- ## 257# as_fn_unset VAR 258# --------------- 259# Portably unset VAR. 260as_fn_unset () 261{ 262 { eval $1=; unset $1;} 263} 264as_unset=as_fn_unset 265 266# as_fn_set_status STATUS 267# ----------------------- 268# Set $? to STATUS, without forking. 269as_fn_set_status () 270{ 271 return $1 272} # as_fn_set_status 273 274# as_fn_exit STATUS 275# ----------------- 276# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 277as_fn_exit () 278{ 279 set +e 280 as_fn_set_status $1 281 exit $1 282} # as_fn_exit 283 284# as_fn_mkdir_p 285# ------------- 286# Create "$as_dir" as a directory, including parents if necessary. 287as_fn_mkdir_p () 288{ 289 290 case $as_dir in #( 291 -*) as_dir=./$as_dir;; 292 esac 293 test -d "$as_dir" || eval $as_mkdir_p || { 294 as_dirs= 295 while :; do 296 case $as_dir in #( 297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 298 *) as_qdir=$as_dir;; 299 esac 300 as_dirs="'$as_qdir' $as_dirs" 301 as_dir=`$as_dirname -- "$as_dir" || 302$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 303 X"$as_dir" : 'X\(//\)[^/]' \| \ 304 X"$as_dir" : 'X\(//\)$' \| \ 305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 306$as_echo X"$as_dir" | 307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 308 s//\1/ 309 q 310 } 311 /^X\(\/\/\)[^/].*/{ 312 s//\1/ 313 q 314 } 315 /^X\(\/\/\)$/{ 316 s//\1/ 317 q 318 } 319 /^X\(\/\).*/{ 320 s//\1/ 321 q 322 } 323 s/.*/./; q'` 324 test -d "$as_dir" && break 325 done 326 test -z "$as_dirs" || eval "mkdir $as_dirs" 327 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 328 329 330} # as_fn_mkdir_p 331# as_fn_append VAR VALUE 332# ---------------------- 333# Append the text in VALUE to the end of the definition contained in VAR. Take 334# advantage of any shell optimizations that allow amortized linear growth over 335# repeated appends, instead of the typical quadratic growth present in naive 336# implementations. 337if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 338 eval 'as_fn_append () 339 { 340 eval $1+=\$2 341 }' 342else 343 as_fn_append () 344 { 345 eval $1=\$$1\$2 346 } 347fi # as_fn_append 348 349# as_fn_arith ARG... 350# ------------------ 351# Perform arithmetic evaluation on the ARGs, and store the result in the 352# global $as_val. Take advantage of shells that can avoid forks. The arguments 353# must be portable across $(()) and expr. 354if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 355 eval 'as_fn_arith () 356 { 357 as_val=$(( $* )) 358 }' 359else 360 as_fn_arith () 361 { 362 as_val=`expr "$@" || test $? -eq 1` 363 } 364fi # as_fn_arith 365 366 367# as_fn_error ERROR [LINENO LOG_FD] 368# --------------------------------- 369# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 370# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 371# script with status $?, using 1 if that was 0. 372as_fn_error () 373{ 374 as_status=$?; test $as_status -eq 0 && as_status=1 375 if test "$3"; then 376 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 378 fi 379 $as_echo "$as_me: error: $1" >&2 380 as_fn_exit $as_status 381} # as_fn_error 382 383if expr a : '\(a\)' >/dev/null 2>&1 && 384 test "X`expr 00001 : '.*\(...\)'`" = X001; then 385 as_expr=expr 386else 387 as_expr=false 388fi 389 390if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 391 as_basename=basename 392else 393 as_basename=false 394fi 395 396if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 397 as_dirname=dirname 398else 399 as_dirname=false 400fi 401 402as_me=`$as_basename -- "$0" || 403$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 404 X"$0" : 'X\(//\)$' \| \ 405 X"$0" : 'X\(/\)' \| . 2>/dev/null || 406$as_echo X/"$0" | 407 sed '/^.*\/\([^/][^/]*\)\/*$/{ 408 s//\1/ 409 q 410 } 411 /^X\/\(\/\/\)$/{ 412 s//\1/ 413 q 414 } 415 /^X\/\(\/\).*/{ 416 s//\1/ 417 q 418 } 419 s/.*/./; q'` 420 421# Avoid depending upon Character Ranges. 422as_cr_letters='abcdefghijklmnopqrstuvwxyz' 423as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 424as_cr_Letters=$as_cr_letters$as_cr_LETTERS 425as_cr_digits='0123456789' 426as_cr_alnum=$as_cr_Letters$as_cr_digits 427 428 429 as_lineno_1=$LINENO as_lineno_1a=$LINENO 430 as_lineno_2=$LINENO as_lineno_2a=$LINENO 431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 434 sed -n ' 435 p 436 /[$]LINENO/= 437 ' <$as_myself | 438 sed ' 439 s/[$]LINENO.*/&-/ 440 t lineno 441 b 442 :lineno 443 N 444 :loop 445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 446 t loop 447 s/-\n.*// 448 ' >$as_me.lineno && 449 chmod +x "$as_me.lineno" || 450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 451 452 # Don't try to exec as it changes $[0], causing all sort of problems 453 # (the dirname of $[0] is not the place where we might find the 454 # original and so on. Autoconf is especially sensitive to this). 455 . "./$as_me.lineno" 456 # Exit status is that of the last command. 457 exit 458} 459 460ECHO_C= ECHO_N= ECHO_T= 461case `echo -n x` in #((((( 462-n*) 463 case `echo 'xy\c'` in 464 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 465 xy) ECHO_C='\c';; 466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 467 ECHO_T=' ';; 468 esac;; 469*) 470 ECHO_N='-n';; 471esac 472 473rm -f conf$$ conf$$.exe conf$$.file 474if test -d conf$$.dir; then 475 rm -f conf$$.dir/conf$$.file 476else 477 rm -f conf$$.dir 478 mkdir conf$$.dir 2>/dev/null 479fi 480if (echo >conf$$.file) 2>/dev/null; then 481 if ln -s conf$$.file conf$$ 2>/dev/null; then 482 as_ln_s='ln -s' 483 # ... but there are two gotchas: 484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 486 # In both cases, we have to default to `cp -p'. 487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 488 as_ln_s='cp -p' 489 elif ln conf$$.file conf$$ 2>/dev/null; then 490 as_ln_s=ln 491 else 492 as_ln_s='cp -p' 493 fi 494else 495 as_ln_s='cp -p' 496fi 497rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 498rmdir conf$$.dir 2>/dev/null 499 500if mkdir -p . 2>/dev/null; then 501 as_mkdir_p='mkdir -p "$as_dir"' 502else 503 test -d ./-p && rmdir ./-p 504 as_mkdir_p=false 505fi 506 507if test -x / >/dev/null 2>&1; then 508 as_test_x='test -x' 509else 510 if ls -dL / >/dev/null 2>&1; then 511 as_ls_L_option=L 512 else 513 as_ls_L_option= 514 fi 515 as_test_x=' 516 eval sh -c '\'' 517 if test -d "$1"; then 518 test -d "$1/."; 519 else 520 case $1 in #( 521 -*)set "./$1";; 522 esac; 523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 524 ???[sx]*):;;*)false;;esac;fi 525 '\'' sh 526 ' 527fi 528as_executable_p=$as_test_x 529 530# Sed expression to map a string onto a valid CPP name. 531as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 532 533# Sed expression to map a string onto a valid variable name. 534as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 535 536SHELL=${CONFIG_SHELL-/bin/sh} 537 538 539exec 7<&0 </dev/null 6>&1 540 541# Name of the host. 542# hostname on some systems (SVR3.2, Linux) returns a bogus exit status, 543# so uname gets run too. 544ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 545 546# 547# Initializations. 548# 549ac_default_prefix=/usr/local 550ac_clean_files= 551ac_config_libobj_dir=. 552LIBOBJS= 553cross_compiling=no 554subdirs= 555MFLAGS= 556MAKEFLAGS= 557 558# Identity of this package. 559PACKAGE_NAME='package-unused' 560PACKAGE_TARNAME='package-unused' 561PACKAGE_VERSION='version-unused' 562PACKAGE_STRING='package-unused version-unused' 563PACKAGE_BUGREPORT='libmpx' 564PACKAGE_URL='' 565 566# Factoring default headers for most tests. 567ac_includes_default="\ 568#include <stdio.h> 569#ifdef HAVE_SYS_TYPES_H 570# include <sys/types.h> 571#endif 572#ifdef HAVE_SYS_STAT_H 573# include <sys/stat.h> 574#endif 575#ifdef STDC_HEADERS 576# include <stdlib.h> 577# include <stddef.h> 578#else 579# ifdef HAVE_STDLIB_H 580# include <stdlib.h> 581# endif 582#endif 583#ifdef HAVE_STRING_H 584# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 585# include <memory.h> 586# endif 587# include <string.h> 588#endif 589#ifdef HAVE_STRINGS_H 590# include <strings.h> 591#endif 592#ifdef HAVE_INTTYPES_H 593# include <inttypes.h> 594#endif 595#ifdef HAVE_STDINT_H 596# include <stdint.h> 597#endif 598#ifdef HAVE_UNISTD_H 599# include <unistd.h> 600#endif" 601 602ac_subst_vars='am__EXEEXT_FALSE 603am__EXEEXT_TRUE 604LTLIBOBJS 605LIBOBJS 606XCFLAGS 607enable_static 608enable_shared 609OTOOL64 610OTOOL 611LIPO 612NMEDIT 613DSYMUTIL 614OBJDUMP 615LN_S 616NM 617ac_ct_DUMPBIN 618DUMPBIN 619LD 620FGREP 621SED 622LIBTOOL 623MPX_AS_SUPPORTED_FALSE 624MPX_AS_SUPPORTED_TRUE 625RANLIB 626AR 627AS 628CCASFLAGS 629CCAS 630toolexeclibdir 631toolexecdir 632EGREP 633GREP 634CPP 635OBJEXT 636EXEEXT 637ac_ct_CC 638CPPFLAGS 639LDFLAGS 640CFLAGS 641CC 642MAINT 643MAINTAINER_MODE_FALSE 644MAINTAINER_MODE_TRUE 645multi_basedir 646am__untar 647am__tar 648AMTAR 649am__leading_dot 650SET_MAKE 651AWK 652mkdir_p 653MKDIR_P 654INSTALL_STRIP_PROGRAM 655STRIP 656install_sh 657MAKEINFO 658AUTOHEADER 659AUTOMAKE 660AUTOCONF 661ACLOCAL 662VERSION 663PACKAGE 664CYGPATH_W 665am__isrc 666INSTALL_DATA 667INSTALL_SCRIPT 668INSTALL_PROGRAM 669link_mpx 670link_libmpx 671LIBMPX_SUPPORTED_FALSE 672LIBMPX_SUPPORTED_TRUE 673target_os 674target_vendor 675target_cpu 676target 677host_os 678host_vendor 679host_cpu 680host 681build_os 682build_vendor 683build_cpu 684build 685target_alias 686host_alias 687build_alias 688LIBS 689ECHO_T 690ECHO_N 691ECHO_C 692DEFS 693mandir 694localedir 695libdir 696psdir 697pdfdir 698dvidir 699htmldir 700infodir 701docdir 702oldincludedir 703includedir 704localstatedir 705sharedstatedir 706sysconfdir 707datadir 708datarootdir 709libexecdir 710sbindir 711bindir 712program_transform_name 713prefix 714exec_prefix 715PACKAGE_URL 716PACKAGE_BUGREPORT 717PACKAGE_STRING 718PACKAGE_VERSION 719PACKAGE_TARNAME 720PACKAGE_NAME 721PATH_SEPARATOR 722SHELL' 723ac_subst_files='' 724ac_user_opts=' 725enable_option_checking 726enable_version_specific_runtime_libs 727enable_multilib 728enable_maintainer_mode 729enable_shared 730enable_static 731with_pic 732enable_fast_install 733with_gnu_ld 734enable_libtool_lock 735' 736 ac_precious_vars='build_alias 737host_alias 738target_alias 739CC 740CFLAGS 741LDFLAGS 742LIBS 743CPPFLAGS 744CPP' 745 746 747# Initialize some variables set by options. 748ac_init_help= 749ac_init_version=false 750ac_unrecognized_opts= 751ac_unrecognized_sep= 752# The variables have the same names as the options, with 753# dashes changed to underlines. 754cache_file=/dev/null 755exec_prefix=NONE 756no_create= 757no_recursion= 758prefix=NONE 759program_prefix=NONE 760program_suffix=NONE 761program_transform_name=s,x,x, 762silent= 763site= 764srcdir= 765verbose= 766x_includes=NONE 767x_libraries=NONE 768 769# Installation directory options. 770# These are left unexpanded so users can "make install exec_prefix=/foo" 771# and all the variables that are supposed to be based on exec_prefix 772# by default will actually change. 773# Use braces instead of parens because sh, perl, etc. also accept them. 774# (The list follows the same order as the GNU Coding Standards.) 775bindir='${exec_prefix}/bin' 776sbindir='${exec_prefix}/sbin' 777libexecdir='${exec_prefix}/libexec' 778datarootdir='${prefix}/share' 779datadir='${datarootdir}' 780sysconfdir='${prefix}/etc' 781sharedstatedir='${prefix}/com' 782localstatedir='${prefix}/var' 783includedir='${prefix}/include' 784oldincludedir='/usr/include' 785docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 786infodir='${datarootdir}/info' 787htmldir='${docdir}' 788dvidir='${docdir}' 789pdfdir='${docdir}' 790psdir='${docdir}' 791libdir='${exec_prefix}/lib' 792localedir='${datarootdir}/locale' 793mandir='${datarootdir}/man' 794 795ac_prev= 796ac_dashdash= 797for ac_option 798do 799 # If the previous option needs an argument, assign it. 800 if test -n "$ac_prev"; then 801 eval $ac_prev=\$ac_option 802 ac_prev= 803 continue 804 fi 805 806 case $ac_option in 807 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 808 *) ac_optarg=yes ;; 809 esac 810 811 # Accept the important Cygnus configure options, so we can diagnose typos. 812 813 case $ac_dashdash$ac_option in 814 --) 815 ac_dashdash=yes ;; 816 817 -bindir | --bindir | --bindi | --bind | --bin | --bi) 818 ac_prev=bindir ;; 819 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 820 bindir=$ac_optarg ;; 821 822 -build | --build | --buil | --bui | --bu) 823 ac_prev=build_alias ;; 824 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 825 build_alias=$ac_optarg ;; 826 827 -cache-file | --cache-file | --cache-fil | --cache-fi \ 828 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 829 ac_prev=cache_file ;; 830 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 831 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 832 cache_file=$ac_optarg ;; 833 834 --config-cache | -C) 835 cache_file=config.cache ;; 836 837 -datadir | --datadir | --datadi | --datad) 838 ac_prev=datadir ;; 839 -datadir=* | --datadir=* | --datadi=* | --datad=*) 840 datadir=$ac_optarg ;; 841 842 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 843 | --dataroo | --dataro | --datar) 844 ac_prev=datarootdir ;; 845 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 846 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 847 datarootdir=$ac_optarg ;; 848 849 -disable-* | --disable-*) 850 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 851 # Reject names that are not valid shell variable names. 852 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 853 as_fn_error "invalid feature name: $ac_useropt" 854 ac_useropt_orig=$ac_useropt 855 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 856 case $ac_user_opts in 857 *" 858"enable_$ac_useropt" 859"*) ;; 860 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 861 ac_unrecognized_sep=', ';; 862 esac 863 eval enable_$ac_useropt=no ;; 864 865 -docdir | --docdir | --docdi | --doc | --do) 866 ac_prev=docdir ;; 867 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 868 docdir=$ac_optarg ;; 869 870 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 871 ac_prev=dvidir ;; 872 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 873 dvidir=$ac_optarg ;; 874 875 -enable-* | --enable-*) 876 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 877 # Reject names that are not valid shell variable names. 878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 879 as_fn_error "invalid feature name: $ac_useropt" 880 ac_useropt_orig=$ac_useropt 881 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 882 case $ac_user_opts in 883 *" 884"enable_$ac_useropt" 885"*) ;; 886 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 887 ac_unrecognized_sep=', ';; 888 esac 889 eval enable_$ac_useropt=\$ac_optarg ;; 890 891 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 892 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 893 | --exec | --exe | --ex) 894 ac_prev=exec_prefix ;; 895 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 896 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 897 | --exec=* | --exe=* | --ex=*) 898 exec_prefix=$ac_optarg ;; 899 900 -gas | --gas | --ga | --g) 901 # Obsolete; use --with-gas. 902 with_gas=yes ;; 903 904 -help | --help | --hel | --he | -h) 905 ac_init_help=long ;; 906 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 907 ac_init_help=recursive ;; 908 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 909 ac_init_help=short ;; 910 911 -host | --host | --hos | --ho) 912 ac_prev=host_alias ;; 913 -host=* | --host=* | --hos=* | --ho=*) 914 host_alias=$ac_optarg ;; 915 916 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 917 ac_prev=htmldir ;; 918 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 919 | --ht=*) 920 htmldir=$ac_optarg ;; 921 922 -includedir | --includedir | --includedi | --included | --include \ 923 | --includ | --inclu | --incl | --inc) 924 ac_prev=includedir ;; 925 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 926 | --includ=* | --inclu=* | --incl=* | --inc=*) 927 includedir=$ac_optarg ;; 928 929 -infodir | --infodir | --infodi | --infod | --info | --inf) 930 ac_prev=infodir ;; 931 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 932 infodir=$ac_optarg ;; 933 934 -libdir | --libdir | --libdi | --libd) 935 ac_prev=libdir ;; 936 -libdir=* | --libdir=* | --libdi=* | --libd=*) 937 libdir=$ac_optarg ;; 938 939 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 940 | --libexe | --libex | --libe) 941 ac_prev=libexecdir ;; 942 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 943 | --libexe=* | --libex=* | --libe=*) 944 libexecdir=$ac_optarg ;; 945 946 -localedir | --localedir | --localedi | --localed | --locale) 947 ac_prev=localedir ;; 948 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 949 localedir=$ac_optarg ;; 950 951 -localstatedir | --localstatedir | --localstatedi | --localstated \ 952 | --localstate | --localstat | --localsta | --localst | --locals) 953 ac_prev=localstatedir ;; 954 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 955 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 956 localstatedir=$ac_optarg ;; 957 958 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 959 ac_prev=mandir ;; 960 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 961 mandir=$ac_optarg ;; 962 963 -nfp | --nfp | --nf) 964 # Obsolete; use --without-fp. 965 with_fp=no ;; 966 967 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 968 | --no-cr | --no-c | -n) 969 no_create=yes ;; 970 971 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 972 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 973 no_recursion=yes ;; 974 975 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 976 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 977 | --oldin | --oldi | --old | --ol | --o) 978 ac_prev=oldincludedir ;; 979 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 980 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 981 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 982 oldincludedir=$ac_optarg ;; 983 984 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 985 ac_prev=prefix ;; 986 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 987 prefix=$ac_optarg ;; 988 989 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 990 | --program-pre | --program-pr | --program-p) 991 ac_prev=program_prefix ;; 992 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 993 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 994 program_prefix=$ac_optarg ;; 995 996 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 997 | --program-suf | --program-su | --program-s) 998 ac_prev=program_suffix ;; 999 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1000 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1001 program_suffix=$ac_optarg ;; 1002 1003 -program-transform-name | --program-transform-name \ 1004 | --program-transform-nam | --program-transform-na \ 1005 | --program-transform-n | --program-transform- \ 1006 | --program-transform | --program-transfor \ 1007 | --program-transfo | --program-transf \ 1008 | --program-trans | --program-tran \ 1009 | --progr-tra | --program-tr | --program-t) 1010 ac_prev=program_transform_name ;; 1011 -program-transform-name=* | --program-transform-name=* \ 1012 | --program-transform-nam=* | --program-transform-na=* \ 1013 | --program-transform-n=* | --program-transform-=* \ 1014 | --program-transform=* | --program-transfor=* \ 1015 | --program-transfo=* | --program-transf=* \ 1016 | --program-trans=* | --program-tran=* \ 1017 | --progr-tra=* | --program-tr=* | --program-t=*) 1018 program_transform_name=$ac_optarg ;; 1019 1020 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1021 ac_prev=pdfdir ;; 1022 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1023 pdfdir=$ac_optarg ;; 1024 1025 -psdir | --psdir | --psdi | --psd | --ps) 1026 ac_prev=psdir ;; 1027 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1028 psdir=$ac_optarg ;; 1029 1030 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1031 | -silent | --silent | --silen | --sile | --sil) 1032 silent=yes ;; 1033 1034 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1035 ac_prev=sbindir ;; 1036 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1037 | --sbi=* | --sb=*) 1038 sbindir=$ac_optarg ;; 1039 1040 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1041 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1042 | --sharedst | --shareds | --shared | --share | --shar \ 1043 | --sha | --sh) 1044 ac_prev=sharedstatedir ;; 1045 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1046 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1047 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1048 | --sha=* | --sh=*) 1049 sharedstatedir=$ac_optarg ;; 1050 1051 -site | --site | --sit) 1052 ac_prev=site ;; 1053 -site=* | --site=* | --sit=*) 1054 site=$ac_optarg ;; 1055 1056 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1057 ac_prev=srcdir ;; 1058 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1059 srcdir=$ac_optarg ;; 1060 1061 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1062 | --syscon | --sysco | --sysc | --sys | --sy) 1063 ac_prev=sysconfdir ;; 1064 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1065 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1066 sysconfdir=$ac_optarg ;; 1067 1068 -target | --target | --targe | --targ | --tar | --ta | --t) 1069 ac_prev=target_alias ;; 1070 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1071 target_alias=$ac_optarg ;; 1072 1073 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1074 verbose=yes ;; 1075 1076 -version | --version | --versio | --versi | --vers | -V) 1077 ac_init_version=: ;; 1078 1079 -with-* | --with-*) 1080 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1081 # Reject names that are not valid shell variable names. 1082 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1083 as_fn_error "invalid package name: $ac_useropt" 1084 ac_useropt_orig=$ac_useropt 1085 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1086 case $ac_user_opts in 1087 *" 1088"with_$ac_useropt" 1089"*) ;; 1090 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1091 ac_unrecognized_sep=', ';; 1092 esac 1093 eval with_$ac_useropt=\$ac_optarg ;; 1094 1095 -without-* | --without-*) 1096 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1097 # Reject names that are not valid shell variable names. 1098 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1099 as_fn_error "invalid package name: $ac_useropt" 1100 ac_useropt_orig=$ac_useropt 1101 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1102 case $ac_user_opts in 1103 *" 1104"with_$ac_useropt" 1105"*) ;; 1106 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1107 ac_unrecognized_sep=', ';; 1108 esac 1109 eval with_$ac_useropt=no ;; 1110 1111 --x) 1112 # Obsolete; use --with-x. 1113 with_x=yes ;; 1114 1115 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1116 | --x-incl | --x-inc | --x-in | --x-i) 1117 ac_prev=x_includes ;; 1118 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1119 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1120 x_includes=$ac_optarg ;; 1121 1122 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1123 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1124 ac_prev=x_libraries ;; 1125 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1126 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1127 x_libraries=$ac_optarg ;; 1128 1129 -*) as_fn_error "unrecognized option: \`$ac_option' 1130Try \`$0 --help' for more information." 1131 ;; 1132 1133 *=*) 1134 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1135 # Reject names that are not valid shell variable names. 1136 case $ac_envvar in #( 1137 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1138 as_fn_error "invalid variable name: \`$ac_envvar'" ;; 1139 esac 1140 eval $ac_envvar=\$ac_optarg 1141 export $ac_envvar ;; 1142 1143 *) 1144 # FIXME: should be removed in autoconf 3.0. 1145 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1146 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1147 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1148 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1149 ;; 1150 1151 esac 1152done 1153 1154if test -n "$ac_prev"; then 1155 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1156 as_fn_error "missing argument to $ac_option" 1157fi 1158 1159if test -n "$ac_unrecognized_opts"; then 1160 case $enable_option_checking in 1161 no) ;; 1162 fatal) as_fn_error "unrecognized options: $ac_unrecognized_opts" ;; 1163 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1164 esac 1165fi 1166 1167# Check all directory arguments for consistency. 1168for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1169 datadir sysconfdir sharedstatedir localstatedir includedir \ 1170 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1171 libdir localedir mandir 1172do 1173 eval ac_val=\$$ac_var 1174 # Remove trailing slashes. 1175 case $ac_val in 1176 */ ) 1177 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1178 eval $ac_var=\$ac_val;; 1179 esac 1180 # Be sure to have absolute directory names. 1181 case $ac_val in 1182 [\\/$]* | ?:[\\/]* ) continue;; 1183 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1184 esac 1185 as_fn_error "expected an absolute directory name for --$ac_var: $ac_val" 1186done 1187 1188# There might be people who depend on the old broken behavior: `$host' 1189# used to hold the argument of --host etc. 1190# FIXME: To remove some day. 1191build=$build_alias 1192host=$host_alias 1193target=$target_alias 1194 1195# FIXME: To remove some day. 1196if test "x$host_alias" != x; then 1197 if test "x$build_alias" = x; then 1198 cross_compiling=maybe 1199 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. 1200 If a cross compiler is detected then cross compile mode will be used." >&2 1201 elif test "x$build_alias" != "x$host_alias"; then 1202 cross_compiling=yes 1203 fi 1204fi 1205 1206ac_tool_prefix= 1207test -n "$host_alias" && ac_tool_prefix=$host_alias- 1208 1209test "$silent" = yes && exec 6>/dev/null 1210 1211 1212ac_pwd=`pwd` && test -n "$ac_pwd" && 1213ac_ls_di=`ls -di .` && 1214ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1215 as_fn_error "working directory cannot be determined" 1216test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1217 as_fn_error "pwd does not report name of working directory" 1218 1219 1220# Find the source files, if location was not specified. 1221if test -z "$srcdir"; then 1222 ac_srcdir_defaulted=yes 1223 # Try the directory containing this script, then the parent directory. 1224 ac_confdir=`$as_dirname -- "$as_myself" || 1225$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1226 X"$as_myself" : 'X\(//\)[^/]' \| \ 1227 X"$as_myself" : 'X\(//\)$' \| \ 1228 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1229$as_echo X"$as_myself" | 1230 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1231 s//\1/ 1232 q 1233 } 1234 /^X\(\/\/\)[^/].*/{ 1235 s//\1/ 1236 q 1237 } 1238 /^X\(\/\/\)$/{ 1239 s//\1/ 1240 q 1241 } 1242 /^X\(\/\).*/{ 1243 s//\1/ 1244 q 1245 } 1246 s/.*/./; q'` 1247 srcdir=$ac_confdir 1248 if test ! -r "$srcdir/$ac_unique_file"; then 1249 srcdir=.. 1250 fi 1251else 1252 ac_srcdir_defaulted=no 1253fi 1254if test ! -r "$srcdir/$ac_unique_file"; then 1255 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1256 as_fn_error "cannot find sources ($ac_unique_file) in $srcdir" 1257fi 1258ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1259ac_abs_confdir=`( 1260 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg" 1261 pwd)` 1262# When building in place, set srcdir=. 1263if test "$ac_abs_confdir" = "$ac_pwd"; then 1264 srcdir=. 1265fi 1266# Remove unnecessary trailing slashes from srcdir. 1267# Double slashes in file names in object file debugging info 1268# mess up M-x gdb in Emacs. 1269case $srcdir in 1270*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1271esac 1272for ac_var in $ac_precious_vars; do 1273 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1274 eval ac_env_${ac_var}_value=\$${ac_var} 1275 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1276 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1277done 1278 1279# 1280# Report the --help message. 1281# 1282if test "$ac_init_help" = "long"; then 1283 # Omit some internal or obsolete options to make the list less imposing. 1284 # This message is too long to be a string in the A/UX 3.1 sh. 1285 cat <<_ACEOF 1286\`configure' configures package-unused version-unused to adapt to many kinds of systems. 1287 1288Usage: $0 [OPTION]... [VAR=VALUE]... 1289 1290To assign environment variables (e.g., CC, CFLAGS...), specify them as 1291VAR=VALUE. See below for descriptions of some of the useful variables. 1292 1293Defaults for the options are specified in brackets. 1294 1295Configuration: 1296 -h, --help display this help and exit 1297 --help=short display options specific to this package 1298 --help=recursive display the short help of all the included packages 1299 -V, --version display version information and exit 1300 -q, --quiet, --silent do not print \`checking...' messages 1301 --cache-file=FILE cache test results in FILE [disabled] 1302 -C, --config-cache alias for \`--cache-file=config.cache' 1303 -n, --no-create do not create output files 1304 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1305 1306Installation directories: 1307 --prefix=PREFIX install architecture-independent files in PREFIX 1308 [$ac_default_prefix] 1309 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1310 [PREFIX] 1311 1312By default, \`make install' will install all the files in 1313\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1314an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1315for instance \`--prefix=\$HOME'. 1316 1317For better control, use the options below. 1318 1319Fine tuning of the installation directories: 1320 --bindir=DIR user executables [EPREFIX/bin] 1321 --sbindir=DIR system admin executables [EPREFIX/sbin] 1322 --libexecdir=DIR program executables [EPREFIX/libexec] 1323 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1324 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1325 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1326 --libdir=DIR object code libraries [EPREFIX/lib] 1327 --includedir=DIR C header files [PREFIX/include] 1328 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1329 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1330 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1331 --infodir=DIR info documentation [DATAROOTDIR/info] 1332 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1333 --mandir=DIR man documentation [DATAROOTDIR/man] 1334 --docdir=DIR documentation root [DATAROOTDIR/doc/package-unused] 1335 --htmldir=DIR html documentation [DOCDIR] 1336 --dvidir=DIR dvi documentation [DOCDIR] 1337 --pdfdir=DIR pdf documentation [DOCDIR] 1338 --psdir=DIR ps documentation [DOCDIR] 1339_ACEOF 1340 1341 cat <<\_ACEOF 1342 1343Program names: 1344 --program-prefix=PREFIX prepend PREFIX to installed program names 1345 --program-suffix=SUFFIX append SUFFIX to installed program names 1346 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1347 1348System types: 1349 --build=BUILD configure for building on BUILD [guessed] 1350 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1351 --target=TARGET configure for building compilers for TARGET [HOST] 1352_ACEOF 1353fi 1354 1355if test -n "$ac_init_help"; then 1356 case $ac_init_help in 1357 short | recursive ) echo "Configuration of package-unused version-unused:";; 1358 esac 1359 cat <<\_ACEOF 1360 1361Optional Features: 1362 --disable-option-checking ignore unrecognized --enable/--with options 1363 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1364 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1365 --enable-version-specific-runtime-libs Specify that runtime libraries should be installed in a compiler-specific directory 1366 --enable-multilib build many library versions (default) 1367 --enable-maintainer-mode enable make rules and dependencies not useful 1368 (and sometimes confusing) to the casual installer 1369 --enable-shared[=PKGS] build shared libraries [default=yes] 1370 --enable-static[=PKGS] build static libraries [default=yes] 1371 --enable-fast-install[=PKGS] 1372 optimize for fast installation [default=yes] 1373 --disable-libtool-lock avoid locking (might break parallel builds) 1374 1375Optional Packages: 1376 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1377 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1378 --with-pic try to use only PIC/non-PIC objects [default=use 1379 both] 1380 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1381 1382Some influential environment variables: 1383 CC C compiler command 1384 CFLAGS C compiler flags 1385 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1386 nonstandard directory <lib dir> 1387 LIBS libraries to pass to the linker, e.g. -l<library> 1388 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if 1389 you have headers in a nonstandard directory <include dir> 1390 CPP C preprocessor 1391 1392Use these variables to override the choices made by `configure' or to help 1393it to find libraries and programs with nonstandard names/locations. 1394 1395Report bugs to <libmpx>. 1396_ACEOF 1397ac_status=$? 1398fi 1399 1400if test "$ac_init_help" = "recursive"; then 1401 # If there are subdirs, report their specific --help. 1402 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1403 test -d "$ac_dir" || 1404 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1405 continue 1406 ac_builddir=. 1407 1408case "$ac_dir" in 1409.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1410*) 1411 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1412 # A ".." for each directory in $ac_dir_suffix. 1413 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1414 case $ac_top_builddir_sub in 1415 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1416 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1417 esac ;; 1418esac 1419ac_abs_top_builddir=$ac_pwd 1420ac_abs_builddir=$ac_pwd$ac_dir_suffix 1421# for backward compatibility: 1422ac_top_builddir=$ac_top_build_prefix 1423 1424case $srcdir in 1425 .) # We are building in place. 1426 ac_srcdir=. 1427 ac_top_srcdir=$ac_top_builddir_sub 1428 ac_abs_top_srcdir=$ac_pwd ;; 1429 [\\/]* | ?:[\\/]* ) # Absolute name. 1430 ac_srcdir=$srcdir$ac_dir_suffix; 1431 ac_top_srcdir=$srcdir 1432 ac_abs_top_srcdir=$srcdir ;; 1433 *) # Relative name. 1434 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1435 ac_top_srcdir=$ac_top_build_prefix$srcdir 1436 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1437esac 1438ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1439 1440 cd "$ac_dir" || { ac_status=$?; continue; } 1441 # Check for guested configure. 1442 if test -f "$ac_srcdir/configure.gnu"; then 1443 echo && 1444 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1445 elif test -f "$ac_srcdir/configure"; then 1446 echo && 1447 $SHELL "$ac_srcdir/configure" --help=recursive 1448 else 1449 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1450 fi || ac_status=$? 1451 cd "$ac_pwd" || { ac_status=$?; break; } 1452 done 1453fi 1454 1455test -n "$ac_init_help" && exit $ac_status 1456if $ac_init_version; then 1457 cat <<\_ACEOF 1458package-unused configure version-unused 1459generated by GNU Autoconf 2.64 1460 1461Copyright (C) 2009 Free Software Foundation, Inc. 1462This configure script is free software; the Free Software Foundation 1463gives unlimited permission to copy, distribute and modify it. 1464_ACEOF 1465 exit 1466fi 1467 1468## ------------------------ ## 1469## Autoconf initialization. ## 1470## ------------------------ ## 1471 1472# ac_fn_c_try_compile LINENO 1473# -------------------------- 1474# Try to compile conftest.$ac_ext, and return whether this succeeded. 1475ac_fn_c_try_compile () 1476{ 1477 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1478 rm -f conftest.$ac_objext 1479 if { { ac_try="$ac_compile" 1480case "(($ac_try" in 1481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1482 *) ac_try_echo=$ac_try;; 1483esac 1484eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1485$as_echo "$ac_try_echo"; } >&5 1486 (eval "$ac_compile") 2>conftest.err 1487 ac_status=$? 1488 if test -s conftest.err; then 1489 grep -v '^ *+' conftest.err >conftest.er1 1490 cat conftest.er1 >&5 1491 mv -f conftest.er1 conftest.err 1492 fi 1493 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1494 test $ac_status = 0; } && { 1495 test -z "$ac_c_werror_flag" || 1496 test ! -s conftest.err 1497 } && test -s conftest.$ac_objext; then : 1498 ac_retval=0 1499else 1500 $as_echo "$as_me: failed program was:" >&5 1501sed 's/^/| /' conftest.$ac_ext >&5 1502 1503 ac_retval=1 1504fi 1505 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1506 return $ac_retval 1507 1508} # ac_fn_c_try_compile 1509 1510# ac_fn_c_try_cpp LINENO 1511# ---------------------- 1512# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1513ac_fn_c_try_cpp () 1514{ 1515 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1516 if { { ac_try="$ac_cpp conftest.$ac_ext" 1517case "(($ac_try" in 1518 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1519 *) ac_try_echo=$ac_try;; 1520esac 1521eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1522$as_echo "$ac_try_echo"; } >&5 1523 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1524 ac_status=$? 1525 if test -s conftest.err; then 1526 grep -v '^ *+' conftest.err >conftest.er1 1527 cat conftest.er1 >&5 1528 mv -f conftest.er1 conftest.err 1529 fi 1530 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1531 test $ac_status = 0; } >/dev/null && { 1532 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1533 test ! -s conftest.err 1534 }; then : 1535 ac_retval=0 1536else 1537 $as_echo "$as_me: failed program was:" >&5 1538sed 's/^/| /' conftest.$ac_ext >&5 1539 1540 ac_retval=1 1541fi 1542 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1543 return $ac_retval 1544 1545} # ac_fn_c_try_cpp 1546 1547# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1548# ------------------------------------------------------- 1549# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1550# the include files in INCLUDES and setting the cache variable VAR 1551# accordingly. 1552ac_fn_c_check_header_mongrel () 1553{ 1554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1555 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1557$as_echo_n "checking for $2... " >&6; } 1558if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1559 $as_echo_n "(cached) " >&6 1560fi 1561eval ac_res=\$$3 1562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1563$as_echo "$ac_res" >&6; } 1564else 1565 # Is the header compilable? 1566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1567$as_echo_n "checking $2 usability... " >&6; } 1568cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1569/* end confdefs.h. */ 1570$4 1571#include <$2> 1572_ACEOF 1573if ac_fn_c_try_compile "$LINENO"; then : 1574 ac_header_compiler=yes 1575else 1576 ac_header_compiler=no 1577fi 1578rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1580$as_echo "$ac_header_compiler" >&6; } 1581 1582# Is the header present? 1583{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1584$as_echo_n "checking $2 presence... " >&6; } 1585cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1586/* end confdefs.h. */ 1587#include <$2> 1588_ACEOF 1589if ac_fn_c_try_cpp "$LINENO"; then : 1590 ac_header_preproc=yes 1591else 1592 ac_header_preproc=no 1593fi 1594rm -f conftest.err conftest.$ac_ext 1595{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1596$as_echo "$ac_header_preproc" >&6; } 1597 1598# So? What about this header? 1599case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1600 yes:no: ) 1601 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1602$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1603 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1604$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1605 ;; 1606 no:yes:* ) 1607 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1608$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1609 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1610$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1612$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1613 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1614$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1615 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1616$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1617( cat <<\_ASBOX 1618## --------------------- ## 1619## Report this to libmpx ## 1620## --------------------- ## 1621_ASBOX 1622 ) | sed "s/^/$as_me: WARNING: /" >&2 1623 ;; 1624esac 1625 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1626$as_echo_n "checking for $2... " >&6; } 1627if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1628 $as_echo_n "(cached) " >&6 1629else 1630 eval "$3=\$ac_header_compiler" 1631fi 1632eval ac_res=\$$3 1633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1634$as_echo "$ac_res" >&6; } 1635fi 1636 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1637 1638} # ac_fn_c_check_header_mongrel 1639 1640# ac_fn_c_try_run LINENO 1641# ---------------------- 1642# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1643# that executables *can* be run. 1644ac_fn_c_try_run () 1645{ 1646 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1647 if { { ac_try="$ac_link" 1648case "(($ac_try" in 1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1650 *) ac_try_echo=$ac_try;; 1651esac 1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1653$as_echo "$ac_try_echo"; } >&5 1654 (eval "$ac_link") 2>&5 1655 ac_status=$? 1656 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1657 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1658 { { case "(($ac_try" in 1659 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1660 *) ac_try_echo=$ac_try;; 1661esac 1662eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1663$as_echo "$ac_try_echo"; } >&5 1664 (eval "$ac_try") 2>&5 1665 ac_status=$? 1666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1667 test $ac_status = 0; }; }; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: program exited with status $ac_status" >&5 1671 $as_echo "$as_me: failed program was:" >&5 1672sed 's/^/| /' conftest.$ac_ext >&5 1673 1674 ac_retval=$ac_status 1675fi 1676 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1677 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1678 return $ac_retval 1679 1680} # ac_fn_c_try_run 1681 1682# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1683# ------------------------------------------------------- 1684# Tests whether HEADER exists and can be compiled using the include files in 1685# INCLUDES, setting the cache variable VAR accordingly. 1686ac_fn_c_check_header_compile () 1687{ 1688 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1689 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1690$as_echo_n "checking for $2... " >&6; } 1691if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1692 $as_echo_n "(cached) " >&6 1693else 1694 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1695/* end confdefs.h. */ 1696$4 1697#include <$2> 1698_ACEOF 1699if ac_fn_c_try_compile "$LINENO"; then : 1700 eval "$3=yes" 1701else 1702 eval "$3=no" 1703fi 1704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1705fi 1706eval ac_res=\$$3 1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1708$as_echo "$ac_res" >&6; } 1709 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1710 1711} # ac_fn_c_check_header_compile 1712 1713# ac_fn_c_try_link LINENO 1714# ----------------------- 1715# Try to link conftest.$ac_ext, and return whether this succeeded. 1716ac_fn_c_try_link () 1717{ 1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1719 rm -f conftest.$ac_objext conftest$ac_exeext 1720 if { { ac_try="$ac_link" 1721case "(($ac_try" in 1722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1723 *) ac_try_echo=$ac_try;; 1724esac 1725eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1726$as_echo "$ac_try_echo"; } >&5 1727 (eval "$ac_link") 2>conftest.err 1728 ac_status=$? 1729 if test -s conftest.err; then 1730 grep -v '^ *+' conftest.err >conftest.er1 1731 cat conftest.er1 >&5 1732 mv -f conftest.er1 conftest.err 1733 fi 1734 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1735 test $ac_status = 0; } && { 1736 test -z "$ac_c_werror_flag" || 1737 test ! -s conftest.err 1738 } && test -s conftest$ac_exeext && { 1739 test "$cross_compiling" = yes || 1740 $as_test_x conftest$ac_exeext 1741 }; then : 1742 ac_retval=0 1743else 1744 $as_echo "$as_me: failed program was:" >&5 1745sed 's/^/| /' conftest.$ac_ext >&5 1746 1747 ac_retval=1 1748fi 1749 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1750 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1751 # interfere with the next link command; also delete a directory that is 1752 # left behind by Apple's compiler. We do this before executing the actions. 1753 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1754 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1755 return $ac_retval 1756 1757} # ac_fn_c_try_link 1758 1759# ac_fn_c_check_func LINENO FUNC VAR 1760# ---------------------------------- 1761# Tests whether FUNC exists, setting the cache variable VAR accordingly 1762ac_fn_c_check_func () 1763{ 1764 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1766$as_echo_n "checking for $2... " >&6; } 1767if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then : 1768 $as_echo_n "(cached) " >&6 1769else 1770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1771/* end confdefs.h. */ 1772/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1773 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1774#define $2 innocuous_$2 1775 1776/* System header to define __stub macros and hopefully few prototypes, 1777 which can conflict with char $2 (); below. 1778 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1779 <limits.h> exists even on freestanding compilers. */ 1780 1781#ifdef __STDC__ 1782# include <limits.h> 1783#else 1784# include <assert.h> 1785#endif 1786 1787#undef $2 1788 1789/* Override any GCC internal prototype to avoid an error. 1790 Use char because int might match the return type of a GCC 1791 builtin and then its argument prototype would still apply. */ 1792#ifdef __cplusplus 1793extern "C" 1794#endif 1795char $2 (); 1796/* The GNU C library defines this for functions which it implements 1797 to always fail with ENOSYS. Some functions are actually named 1798 something starting with __ and the normal name is an alias. */ 1799#if defined __stub_$2 || defined __stub___$2 1800choke me 1801#endif 1802 1803int 1804main () 1805{ 1806return $2 (); 1807 ; 1808 return 0; 1809} 1810_ACEOF 1811if ac_fn_c_try_link "$LINENO"; then : 1812 eval "$3=yes" 1813else 1814 eval "$3=no" 1815fi 1816rm -f core conftest.err conftest.$ac_objext \ 1817 conftest$ac_exeext conftest.$ac_ext 1818fi 1819eval ac_res=\$$3 1820 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1821$as_echo "$ac_res" >&6; } 1822 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1823 1824} # ac_fn_c_check_func 1825cat >config.log <<_ACEOF 1826This file contains any messages produced by compilers while 1827running configure, to aid debugging if configure makes a mistake. 1828 1829It was created by package-unused $as_me version-unused, which was 1830generated by GNU Autoconf 2.64. Invocation command line was 1831 1832 $ $0 $@ 1833 1834_ACEOF 1835exec 5>>config.log 1836{ 1837cat <<_ASUNAME 1838## --------- ## 1839## Platform. ## 1840## --------- ## 1841 1842hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 1843uname -m = `(uname -m) 2>/dev/null || echo unknown` 1844uname -r = `(uname -r) 2>/dev/null || echo unknown` 1845uname -s = `(uname -s) 2>/dev/null || echo unknown` 1846uname -v = `(uname -v) 2>/dev/null || echo unknown` 1847 1848/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 1849/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 1850 1851/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 1852/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 1853/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 1854/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 1855/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 1856/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 1857/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 1858 1859_ASUNAME 1860 1861as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 1862for as_dir in $PATH 1863do 1864 IFS=$as_save_IFS 1865 test -z "$as_dir" && as_dir=. 1866 $as_echo "PATH: $as_dir" 1867 done 1868IFS=$as_save_IFS 1869 1870} >&5 1871 1872cat >&5 <<_ACEOF 1873 1874 1875## ----------- ## 1876## Core tests. ## 1877## ----------- ## 1878 1879_ACEOF 1880 1881 1882# Keep a trace of the command line. 1883# Strip out --no-create and --no-recursion so they do not pile up. 1884# Strip out --silent because we don't want to record it for future runs. 1885# Also quote any args containing shell meta-characters. 1886# Make two passes to allow for proper duplicate-argument suppression. 1887ac_configure_args= 1888ac_configure_args0= 1889ac_configure_args1= 1890ac_must_keep_next=false 1891for ac_pass in 1 2 1892do 1893 for ac_arg 1894 do 1895 case $ac_arg in 1896 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 1897 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1898 | -silent | --silent | --silen | --sile | --sil) 1899 continue ;; 1900 *\'*) 1901 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 1902 esac 1903 case $ac_pass in 1904 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 1905 2) 1906 as_fn_append ac_configure_args1 " '$ac_arg'" 1907 if test $ac_must_keep_next = true; then 1908 ac_must_keep_next=false # Got value, back to normal. 1909 else 1910 case $ac_arg in 1911 *=* | --config-cache | -C | -disable-* | --disable-* \ 1912 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 1913 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 1914 | -with-* | --with-* | -without-* | --without-* | --x) 1915 case "$ac_configure_args0 " in 1916 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 1917 esac 1918 ;; 1919 -* ) ac_must_keep_next=true ;; 1920 esac 1921 fi 1922 as_fn_append ac_configure_args " '$ac_arg'" 1923 ;; 1924 esac 1925 done 1926done 1927{ ac_configure_args0=; unset ac_configure_args0;} 1928{ ac_configure_args1=; unset ac_configure_args1;} 1929 1930# When interrupted or exit'd, cleanup temporary files, and complete 1931# config.log. We remove comments because anyway the quotes in there 1932# would cause problems or look ugly. 1933# WARNING: Use '\'' to represent an apostrophe within the trap. 1934# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 1935trap 'exit_status=$? 1936 # Save into config.log some information that might help in debugging. 1937 { 1938 echo 1939 1940 cat <<\_ASBOX 1941## ---------------- ## 1942## Cache variables. ## 1943## ---------------- ## 1944_ASBOX 1945 echo 1946 # The following way of writing the cache mishandles newlines in values, 1947( 1948 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 1949 eval ac_val=\$$ac_var 1950 case $ac_val in #( 1951 *${as_nl}*) 1952 case $ac_var in #( 1953 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 1954$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 1955 esac 1956 case $ac_var in #( 1957 _ | IFS | as_nl) ;; #( 1958 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 1959 *) { eval $ac_var=; unset $ac_var;} ;; 1960 esac ;; 1961 esac 1962 done 1963 (set) 2>&1 | 1964 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 1965 *${as_nl}ac_space=\ *) 1966 sed -n \ 1967 "s/'\''/'\''\\\\'\'''\''/g; 1968 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 1969 ;; #( 1970 *) 1971 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 1972 ;; 1973 esac | 1974 sort 1975) 1976 echo 1977 1978 cat <<\_ASBOX 1979## ----------------- ## 1980## Output variables. ## 1981## ----------------- ## 1982_ASBOX 1983 echo 1984 for ac_var in $ac_subst_vars 1985 do 1986 eval ac_val=\$$ac_var 1987 case $ac_val in 1988 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 1989 esac 1990 $as_echo "$ac_var='\''$ac_val'\''" 1991 done | sort 1992 echo 1993 1994 if test -n "$ac_subst_files"; then 1995 cat <<\_ASBOX 1996## ------------------- ## 1997## File substitutions. ## 1998## ------------------- ## 1999_ASBOX 2000 echo 2001 for ac_var in $ac_subst_files 2002 do 2003 eval ac_val=\$$ac_var 2004 case $ac_val in 2005 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2006 esac 2007 $as_echo "$ac_var='\''$ac_val'\''" 2008 done | sort 2009 echo 2010 fi 2011 2012 if test -s confdefs.h; then 2013 cat <<\_ASBOX 2014## ----------- ## 2015## confdefs.h. ## 2016## ----------- ## 2017_ASBOX 2018 echo 2019 cat confdefs.h 2020 echo 2021 fi 2022 test "$ac_signal" != 0 && 2023 $as_echo "$as_me: caught signal $ac_signal" 2024 $as_echo "$as_me: exit $exit_status" 2025 } >&5 2026 rm -f core *.core core.conftest.* && 2027 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2028 exit $exit_status 2029' 0 2030for ac_signal in 1 2 13 15; do 2031 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2032done 2033ac_signal=0 2034 2035# confdefs.h avoids OS command line length limits that DEFS can exceed. 2036rm -f -r conftest* confdefs.h 2037 2038$as_echo "/* confdefs.h */" > confdefs.h 2039 2040# Predefined preprocessor variables. 2041 2042cat >>confdefs.h <<_ACEOF 2043#define PACKAGE_NAME "$PACKAGE_NAME" 2044_ACEOF 2045 2046cat >>confdefs.h <<_ACEOF 2047#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2048_ACEOF 2049 2050cat >>confdefs.h <<_ACEOF 2051#define PACKAGE_VERSION "$PACKAGE_VERSION" 2052_ACEOF 2053 2054cat >>confdefs.h <<_ACEOF 2055#define PACKAGE_STRING "$PACKAGE_STRING" 2056_ACEOF 2057 2058cat >>confdefs.h <<_ACEOF 2059#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2060_ACEOF 2061 2062cat >>confdefs.h <<_ACEOF 2063#define PACKAGE_URL "$PACKAGE_URL" 2064_ACEOF 2065 2066 2067# Let the site file select an alternate cache file if it wants to. 2068# Prefer an explicitly selected file to automatically selected ones. 2069ac_site_file1=NONE 2070ac_site_file2=NONE 2071if test -n "$CONFIG_SITE"; then 2072 ac_site_file1=$CONFIG_SITE 2073elif test "x$prefix" != xNONE; then 2074 ac_site_file1=$prefix/share/config.site 2075 ac_site_file2=$prefix/etc/config.site 2076else 2077 ac_site_file1=$ac_default_prefix/share/config.site 2078 ac_site_file2=$ac_default_prefix/etc/config.site 2079fi 2080for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2081do 2082 test "x$ac_site_file" = xNONE && continue 2083 if test -r "$ac_site_file"; then 2084 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2085$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2086 sed 's/^/| /' "$ac_site_file" >&5 2087 . "$ac_site_file" 2088 fi 2089done 2090 2091if test -r "$cache_file"; then 2092 # Some versions of bash will fail to source /dev/null (special 2093 # files actually), so we avoid doing that. 2094 if test -f "$cache_file"; then 2095 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2096$as_echo "$as_me: loading cache $cache_file" >&6;} 2097 case $cache_file in 2098 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2099 *) . "./$cache_file";; 2100 esac 2101 fi 2102else 2103 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2104$as_echo "$as_me: creating cache $cache_file" >&6;} 2105 >$cache_file 2106fi 2107 2108# Check that the precious variables saved in the cache have kept the same 2109# value. 2110ac_cache_corrupted=false 2111for ac_var in $ac_precious_vars; do 2112 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2113 eval ac_new_set=\$ac_env_${ac_var}_set 2114 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2115 eval ac_new_val=\$ac_env_${ac_var}_value 2116 case $ac_old_set,$ac_new_set in 2117 set,) 2118 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2119$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2120 ac_cache_corrupted=: ;; 2121 ,set) 2122 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2123$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2124 ac_cache_corrupted=: ;; 2125 ,);; 2126 *) 2127 if test "x$ac_old_val" != "x$ac_new_val"; then 2128 # differences in whitespace do not lead to failure. 2129 ac_old_val_w=`echo x $ac_old_val` 2130 ac_new_val_w=`echo x $ac_new_val` 2131 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2132 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2133$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2134 ac_cache_corrupted=: 2135 else 2136 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2137$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2138 eval $ac_var=\$ac_old_val 2139 fi 2140 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2141$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2143$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2144 fi;; 2145 esac 2146 # Pass precious variables to config.status. 2147 if test "$ac_new_set" = set; then 2148 case $ac_new_val in 2149 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2150 *) ac_arg=$ac_var=$ac_new_val ;; 2151 esac 2152 case " $ac_configure_args " in 2153 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2154 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2155 esac 2156 fi 2157done 2158if $ac_cache_corrupted; then 2159 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2160$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2161 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2162$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2163 as_fn_error "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2164fi 2165## -------------------- ## 2166## Main body of script. ## 2167## -------------------- ## 2168 2169ac_ext=c 2170ac_cpp='$CPP $CPPFLAGS' 2171ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2172ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2173ac_compiler_gnu=$ac_cv_c_compiler_gnu 2174 2175 2176 2177 2178 2179 2180# ------- 2181# Options 2182# ------- 2183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for --enable-version-specific-runtime-libs" >&5 2184$as_echo_n "checking for --enable-version-specific-runtime-libs... " >&6; } 2185# Check whether --enable-version-specific-runtime-libs was given. 2186if test "${enable_version_specific_runtime_libs+set}" = set; then : 2187 enableval=$enable_version_specific_runtime_libs; case "$enableval" in 2188 yes) version_specific_libs=yes ;; 2189 no) version_specific_libs=no ;; 2190 *) as_fn_error "Unknown argument to enable/disable version-specific libs" "$LINENO" 5;; 2191 esac 2192else 2193 version_specific_libs=no 2194fi 2195 2196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $version_specific_libs" >&5 2197$as_echo "$version_specific_libs" >&6; } 2198 2199# Do not delete or change the following two lines. For why, see 2200# http://gcc.gnu.org/ml/libstdc++/2003-07/msg00451.html 2201ac_aux_dir= 2202for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2203 for ac_t in install-sh install.sh shtool; do 2204 if test -f "$ac_dir/$ac_t"; then 2205 ac_aux_dir=$ac_dir 2206 ac_install_sh="$ac_aux_dir/$ac_t -c" 2207 break 2 2208 fi 2209 done 2210done 2211if test -z "$ac_aux_dir"; then 2212 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2213fi 2214 2215# These three variables are undocumented and unsupported, 2216# and are intended to be withdrawn in a future Autoconf release. 2217# They can cause serious problems if a builder's source tree is in a directory 2218# whose full name contains unusual characters. 2219ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2220ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2221ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2222 2223 2224# Make sure we can run config.sub. 2225$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2226 as_fn_error "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2227 2228{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2229$as_echo_n "checking build system type... " >&6; } 2230if test "${ac_cv_build+set}" = set; then : 2231 $as_echo_n "(cached) " >&6 2232else 2233 ac_build_alias=$build_alias 2234test "x$ac_build_alias" = x && 2235 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2236test "x$ac_build_alias" = x && 2237 as_fn_error "cannot guess build type; you must specify one" "$LINENO" 5 2238ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2239 as_fn_error "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2240 2241fi 2242{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2243$as_echo "$ac_cv_build" >&6; } 2244case $ac_cv_build in 2245*-*-*) ;; 2246*) as_fn_error "invalid value of canonical build" "$LINENO" 5;; 2247esac 2248build=$ac_cv_build 2249ac_save_IFS=$IFS; IFS='-' 2250set x $ac_cv_build 2251shift 2252build_cpu=$1 2253build_vendor=$2 2254shift; shift 2255# Remember, the first character of IFS is used to create $*, 2256# except with old shells: 2257build_os=$* 2258IFS=$ac_save_IFS 2259case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2260 2261 2262{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2263$as_echo_n "checking host system type... " >&6; } 2264if test "${ac_cv_host+set}" = set; then : 2265 $as_echo_n "(cached) " >&6 2266else 2267 if test "x$host_alias" = x; then 2268 ac_cv_host=$ac_cv_build 2269else 2270 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2271 as_fn_error "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2272fi 2273 2274fi 2275{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2276$as_echo "$ac_cv_host" >&6; } 2277case $ac_cv_host in 2278*-*-*) ;; 2279*) as_fn_error "invalid value of canonical host" "$LINENO" 5;; 2280esac 2281host=$ac_cv_host 2282ac_save_IFS=$IFS; IFS='-' 2283set x $ac_cv_host 2284shift 2285host_cpu=$1 2286host_vendor=$2 2287shift; shift 2288# Remember, the first character of IFS is used to create $*, 2289# except with old shells: 2290host_os=$* 2291IFS=$ac_save_IFS 2292case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2293 2294 2295{ $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5 2296$as_echo_n "checking target system type... " >&6; } 2297if test "${ac_cv_target+set}" = set; then : 2298 $as_echo_n "(cached) " >&6 2299else 2300 if test "x$target_alias" = x; then 2301 ac_cv_target=$ac_cv_host 2302else 2303 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` || 2304 as_fn_error "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5 2305fi 2306 2307fi 2308{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5 2309$as_echo "$ac_cv_target" >&6; } 2310case $ac_cv_target in 2311*-*-*) ;; 2312*) as_fn_error "invalid value of canonical target" "$LINENO" 5;; 2313esac 2314target=$ac_cv_target 2315ac_save_IFS=$IFS; IFS='-' 2316set x $ac_cv_target 2317shift 2318target_cpu=$1 2319target_vendor=$2 2320shift; shift 2321# Remember, the first character of IFS is used to create $*, 2322# except with old shells: 2323target_os=$* 2324IFS=$ac_save_IFS 2325case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac 2326 2327 2328# The aliases save the names the user supplied, while $host etc. 2329# will get canonicalized. 2330test -n "$target_alias" && 2331 test "$program_prefix$program_suffix$program_transform_name" = \ 2332 NONENONEs,x,x, && 2333 program_prefix=${target_alias}- 2334 2335target_alias=${target_alias-$host_alias} 2336 2337 2338# See if supported. 2339unset LIBMPX_SUPPORTED 2340{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for target support for Intel MPX runtime library" >&5 2341$as_echo_n "checking for target support for Intel MPX runtime library... " >&6; } 2342echo "int i[sizeof (void *) == 4 ? 1 : -1] = { __x86_64__ };" > conftest.c 2343if { ac_try='${CC} ${CFLAGS} -c -o conftest.o conftest.c 1>&5' 2344 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 2345 (eval $ac_try) 2>&5 2346 ac_status=$? 2347 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2348 test $ac_status = 0; }; } 2349then 2350 LIBMPX_SUPPORTED=no 2351else 2352 LIBMPX_SUPPORTED=yes 2353fi 2354rm -f conftest.o conftest.c 2355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBMPX_SUPPORTED" >&5 2356$as_echo "$LIBMPX_SUPPORTED" >&6; } 2357 if test "x$LIBMPX_SUPPORTED" = "xyes"; then 2358 LIBMPX_SUPPORTED_TRUE= 2359 LIBMPX_SUPPORTED_FALSE='#' 2360else 2361 LIBMPX_SUPPORTED_TRUE='#' 2362 LIBMPX_SUPPORTED_FALSE= 2363fi 2364 2365 2366link_libmpx="-lpthread" 2367link_mpx="" 2368{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ld accepts -z bndplt" >&5 2369$as_echo_n "checking whether ld accepts -z bndplt... " >&6; } 2370echo "int main() {};" > conftest.c 2371if { ac_try='${CC} ${CFLAGS} -Wl,-z,bndplt -o conftest conftest.c 1>&5' 2372 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 2373 (eval $ac_try) 2>&5 2374 ac_status=$? 2375 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2376 test $ac_status = 0; }; } 2377then 2378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2379$as_echo "yes" >&6; } 2380 link_mpx="$link_mpx -z bndplt" 2381else 2382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2383$as_echo "no" >&6; } 2384fi 2385 2386 2387 2388am__api_version='1.11' 2389 2390# Find a good install program. We prefer a C program (faster), 2391# so one script is as good as another. But avoid the broken or 2392# incompatible versions: 2393# SysV /etc/install, /usr/sbin/install 2394# SunOS /usr/etc/install 2395# IRIX /sbin/install 2396# AIX /bin/install 2397# AmigaOS /C/install, which installs bootblocks on floppy discs 2398# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2399# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2400# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2401# OS/2's system install, which has a completely different semantic 2402# ./install, which can be erroneously created by make from ./install.sh. 2403# Reject install programs that cannot install multiple files. 2404{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2405$as_echo_n "checking for a BSD-compatible install... " >&6; } 2406if test -z "$INSTALL"; then 2407if test "${ac_cv_path_install+set}" = set; then : 2408 $as_echo_n "(cached) " >&6 2409else 2410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2411for as_dir in $PATH 2412do 2413 IFS=$as_save_IFS 2414 test -z "$as_dir" && as_dir=. 2415 # Account for people who put trailing slashes in PATH elements. 2416case $as_dir/ in #(( 2417 ./ | .// | /[cC]/* | \ 2418 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2419 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2420 /usr/ucb/* ) ;; 2421 *) 2422 # OSF1 and SCO ODT 3.0 have their own names for install. 2423 # Don't use installbsd from OSF since it installs stuff as root 2424 # by default. 2425 for ac_prog in ginstall scoinst install; do 2426 for ac_exec_ext in '' $ac_executable_extensions; do 2427 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2428 if test $ac_prog = install && 2429 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2430 # AIX install. It has an incompatible calling convention. 2431 : 2432 elif test $ac_prog = install && 2433 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2434 # program-specific install script used by HP pwplus--don't use. 2435 : 2436 else 2437 rm -rf conftest.one conftest.two conftest.dir 2438 echo one > conftest.one 2439 echo two > conftest.two 2440 mkdir conftest.dir 2441 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2442 test -s conftest.one && test -s conftest.two && 2443 test -s conftest.dir/conftest.one && 2444 test -s conftest.dir/conftest.two 2445 then 2446 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2447 break 3 2448 fi 2449 fi 2450 fi 2451 done 2452 done 2453 ;; 2454esac 2455 2456 done 2457IFS=$as_save_IFS 2458 2459rm -rf conftest.one conftest.two conftest.dir 2460 2461fi 2462 if test "${ac_cv_path_install+set}" = set; then 2463 INSTALL=$ac_cv_path_install 2464 else 2465 # As a last resort, use the slow shell script. Don't cache a 2466 # value for INSTALL within a source directory, because that will 2467 # break other packages using the cache if that directory is 2468 # removed, or if the value is a relative name. 2469 INSTALL=$ac_install_sh 2470 fi 2471fi 2472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2473$as_echo "$INSTALL" >&6; } 2474 2475# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2476# It thinks the first close brace ends the variable substitution. 2477test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2478 2479test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2480 2481test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2482 2483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2484$as_echo_n "checking whether build environment is sane... " >&6; } 2485# Just in case 2486sleep 1 2487echo timestamp > conftest.file 2488# Reject unsafe characters in $srcdir or the absolute working directory 2489# name. Accept space and tab only in the latter. 2490am_lf=' 2491' 2492case `pwd` in 2493 *[\\\"\#\$\&\'\`$am_lf]*) 2494 as_fn_error "unsafe absolute working directory name" "$LINENO" 5;; 2495esac 2496case $srcdir in 2497 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2498 as_fn_error "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2499esac 2500 2501# Do `set' in a subshell so we don't clobber the current shell's 2502# arguments. Must try -L first in case configure is actually a 2503# symlink; some systems play weird games with the mod time of symlinks 2504# (eg FreeBSD returns the mod time of the symlink's containing 2505# directory). 2506if ( 2507 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2508 if test "$*" = "X"; then 2509 # -L didn't work. 2510 set X `ls -t "$srcdir/configure" conftest.file` 2511 fi 2512 rm -f conftest.file 2513 if test "$*" != "X $srcdir/configure conftest.file" \ 2514 && test "$*" != "X conftest.file $srcdir/configure"; then 2515 2516 # If neither matched, then we have a broken ls. This can happen 2517 # if, for instance, CONFIG_SHELL is bash and it inherits a 2518 # broken ls alias from the environment. This has actually 2519 # happened. Such a system could not be considered "sane". 2520 as_fn_error "ls -t appears to fail. Make sure there is not a broken 2521alias in your environment" "$LINENO" 5 2522 fi 2523 2524 test "$2" = conftest.file 2525 ) 2526then 2527 # Ok. 2528 : 2529else 2530 as_fn_error "newly created file is older than distributed files! 2531Check your system clock" "$LINENO" 5 2532fi 2533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2534$as_echo "yes" >&6; } 2535test "$program_prefix" != NONE && 2536 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2537# Use a double $ so make ignores it. 2538test "$program_suffix" != NONE && 2539 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2540# Double any \ or $. 2541# By default was `s,x,x', remove it if useless. 2542ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2543program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2544 2545# expand $ac_aux_dir to an absolute path 2546am_aux_dir=`cd $ac_aux_dir && pwd` 2547 2548if test x"${MISSING+set}" != xset; then 2549 case $am_aux_dir in 2550 *\ * | *\ *) 2551 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2552 *) 2553 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2554 esac 2555fi 2556# Use eval to expand $SHELL 2557if eval "$MISSING --run true"; then 2558 am_missing_run="$MISSING --run " 2559else 2560 am_missing_run= 2561 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2562$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2563fi 2564 2565if test x"${install_sh}" != xset; then 2566 case $am_aux_dir in 2567 *\ * | *\ *) 2568 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2569 *) 2570 install_sh="\${SHELL} $am_aux_dir/install-sh" 2571 esac 2572fi 2573 2574# Installed binaries are usually stripped using `strip' when the user 2575# run `make install-strip'. However `strip' might not be the right 2576# tool to use in cross-compilation environments, therefore Automake 2577# will honor the `STRIP' environment variable to overrule this program. 2578if test "$cross_compiling" != no; then 2579 if test -n "$ac_tool_prefix"; then 2580 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2581set dummy ${ac_tool_prefix}strip; ac_word=$2 2582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2583$as_echo_n "checking for $ac_word... " >&6; } 2584if test "${ac_cv_prog_STRIP+set}" = set; then : 2585 $as_echo_n "(cached) " >&6 2586else 2587 if test -n "$STRIP"; then 2588 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2589else 2590as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2591for as_dir in $PATH 2592do 2593 IFS=$as_save_IFS 2594 test -z "$as_dir" && as_dir=. 2595 for ac_exec_ext in '' $ac_executable_extensions; do 2596 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2597 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2598 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2599 break 2 2600 fi 2601done 2602 done 2603IFS=$as_save_IFS 2604 2605fi 2606fi 2607STRIP=$ac_cv_prog_STRIP 2608if test -n "$STRIP"; then 2609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2610$as_echo "$STRIP" >&6; } 2611else 2612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2613$as_echo "no" >&6; } 2614fi 2615 2616 2617fi 2618if test -z "$ac_cv_prog_STRIP"; then 2619 ac_ct_STRIP=$STRIP 2620 # Extract the first word of "strip", so it can be a program name with args. 2621set dummy strip; ac_word=$2 2622{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2623$as_echo_n "checking for $ac_word... " >&6; } 2624if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2625 $as_echo_n "(cached) " >&6 2626else 2627 if test -n "$ac_ct_STRIP"; then 2628 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2629else 2630as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2631for as_dir in $PATH 2632do 2633 IFS=$as_save_IFS 2634 test -z "$as_dir" && as_dir=. 2635 for ac_exec_ext in '' $ac_executable_extensions; do 2636 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2637 ac_cv_prog_ac_ct_STRIP="strip" 2638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2639 break 2 2640 fi 2641done 2642 done 2643IFS=$as_save_IFS 2644 2645fi 2646fi 2647ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2648if test -n "$ac_ct_STRIP"; then 2649 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2650$as_echo "$ac_ct_STRIP" >&6; } 2651else 2652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2653$as_echo "no" >&6; } 2654fi 2655 2656 if test "x$ac_ct_STRIP" = x; then 2657 STRIP=":" 2658 else 2659 case $cross_compiling:$ac_tool_warned in 2660yes:) 2661{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2662$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2663ac_tool_warned=yes ;; 2664esac 2665 STRIP=$ac_ct_STRIP 2666 fi 2667else 2668 STRIP="$ac_cv_prog_STRIP" 2669fi 2670 2671fi 2672INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 2673 2674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2675$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2676if test -z "$MKDIR_P"; then 2677 if test "${ac_cv_path_mkdir+set}" = set; then : 2678 $as_echo_n "(cached) " >&6 2679else 2680 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2681for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2682do 2683 IFS=$as_save_IFS 2684 test -z "$as_dir" && as_dir=. 2685 for ac_prog in mkdir gmkdir; do 2686 for ac_exec_ext in '' $ac_executable_extensions; do 2687 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2688 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2689 'mkdir (GNU coreutils) '* | \ 2690 'mkdir (coreutils) '* | \ 2691 'mkdir (fileutils) '4.1*) 2692 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2693 break 3;; 2694 esac 2695 done 2696 done 2697 done 2698IFS=$as_save_IFS 2699 2700fi 2701 2702 if test "${ac_cv_path_mkdir+set}" = set; then 2703 MKDIR_P="$ac_cv_path_mkdir -p" 2704 else 2705 # As a last resort, use the slow shell script. Don't cache a 2706 # value for MKDIR_P within a source directory, because that will 2707 # break other packages using the cache if that directory is 2708 # removed, or if the value is a relative name. 2709 test -d ./--version && rmdir ./--version 2710 MKDIR_P="$ac_install_sh -d" 2711 fi 2712fi 2713{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2714$as_echo "$MKDIR_P" >&6; } 2715 2716mkdir_p="$MKDIR_P" 2717case $mkdir_p in 2718 [\\/$]* | ?:[\\/]*) ;; 2719 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2720esac 2721 2722for ac_prog in gawk mawk nawk awk 2723do 2724 # Extract the first word of "$ac_prog", so it can be a program name with args. 2725set dummy $ac_prog; ac_word=$2 2726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2727$as_echo_n "checking for $ac_word... " >&6; } 2728if test "${ac_cv_prog_AWK+set}" = set; then : 2729 $as_echo_n "(cached) " >&6 2730else 2731 if test -n "$AWK"; then 2732 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2733else 2734as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2735for as_dir in $PATH 2736do 2737 IFS=$as_save_IFS 2738 test -z "$as_dir" && as_dir=. 2739 for ac_exec_ext in '' $ac_executable_extensions; do 2740 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2741 ac_cv_prog_AWK="$ac_prog" 2742 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2743 break 2 2744 fi 2745done 2746 done 2747IFS=$as_save_IFS 2748 2749fi 2750fi 2751AWK=$ac_cv_prog_AWK 2752if test -n "$AWK"; then 2753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2754$as_echo "$AWK" >&6; } 2755else 2756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2757$as_echo "no" >&6; } 2758fi 2759 2760 2761 test -n "$AWK" && break 2762done 2763 2764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2765$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2766set x ${MAKE-make} 2767ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2768if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then : 2769 $as_echo_n "(cached) " >&6 2770else 2771 cat >conftest.make <<\_ACEOF 2772SHELL = /bin/sh 2773all: 2774 @echo '@@@%%%=$(MAKE)=@@@%%%' 2775_ACEOF 2776# GNU make sometimes prints "make[1]: Entering...", which would confuse us. 2777case `${MAKE-make} -f conftest.make 2>/dev/null` in 2778 *@@@%%%=?*=@@@%%%*) 2779 eval ac_cv_prog_make_${ac_make}_set=yes;; 2780 *) 2781 eval ac_cv_prog_make_${ac_make}_set=no;; 2782esac 2783rm -f conftest.make 2784fi 2785if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2787$as_echo "yes" >&6; } 2788 SET_MAKE= 2789else 2790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2791$as_echo "no" >&6; } 2792 SET_MAKE="MAKE=${MAKE-make}" 2793fi 2794 2795rm -rf .tst 2>/dev/null 2796mkdir .tst 2>/dev/null 2797if test -d .tst; then 2798 am__leading_dot=. 2799else 2800 am__leading_dot=_ 2801fi 2802rmdir .tst 2>/dev/null 2803 2804if test "`cd $srcdir && pwd`" != "`pwd`"; then 2805 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2806 # is not polluted with repeated "-I." 2807 am__isrc=' -I$(srcdir)' 2808 # test to see if srcdir already configured 2809 if test -f $srcdir/config.status; then 2810 as_fn_error "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2811 fi 2812fi 2813 2814# test whether we have cygpath 2815if test -z "$CYGPATH_W"; then 2816 if (cygpath --version) >/dev/null 2>/dev/null; then 2817 CYGPATH_W='cygpath -w' 2818 else 2819 CYGPATH_W=echo 2820 fi 2821fi 2822 2823 2824# Define the identity of the package. 2825 PACKAGE='package-unused' 2826 VERSION='version-unused' 2827 2828 2829cat >>confdefs.h <<_ACEOF 2830#define PACKAGE "$PACKAGE" 2831_ACEOF 2832 2833 2834cat >>confdefs.h <<_ACEOF 2835#define VERSION "$VERSION" 2836_ACEOF 2837 2838# Some tools Automake needs. 2839 2840ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2841 2842 2843AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2844 2845 2846AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2847 2848 2849AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2850 2851 2852MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2853 2854# We need awk for the "check" target. The system "awk" is bad on 2855# some platforms. 2856# Always define AMTAR for backward compatibility. 2857 2858AMTAR=${AMTAR-"${am_missing_run}tar"} 2859 2860am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2861 2862 2863 2864 2865 2866# Default to --enable-multilib 2867# Check whether --enable-multilib was given. 2868if test "${enable_multilib+set}" = set; then : 2869 enableval=$enable_multilib; case "$enableval" in 2870 yes) multilib=yes ;; 2871 no) multilib=no ;; 2872 *) as_fn_error "bad value $enableval for multilib option" "$LINENO" 5 ;; 2873 esac 2874else 2875 multilib=yes 2876fi 2877 2878 2879# We may get other options which we leave undocumented: 2880# --with-target-subdir, --with-multisrctop, --with-multisubdir 2881# See config-ml.in if you want the gory details. 2882 2883if test "$srcdir" = "."; then 2884 if test "$with_target_subdir" != "."; then 2885 multi_basedir="$srcdir/$with_multisrctop../.." 2886 else 2887 multi_basedir="$srcdir/$with_multisrctop.." 2888 fi 2889else 2890 multi_basedir="$srcdir/.." 2891fi 2892 2893 2894# Even if the default multilib is not a cross compilation, 2895# it may be that some of the other multilibs are. 2896if test $cross_compiling = no && test $multilib = yes \ 2897 && test "x${with_multisubdir}" != x ; then 2898 cross_compiling=maybe 2899fi 2900 2901ac_config_commands="$ac_config_commands default-1" 2902 2903 2904{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 2905$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } 2906 # Check whether --enable-maintainer-mode was given. 2907if test "${enable_maintainer_mode+set}" = set; then : 2908 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval 2909else 2910 USE_MAINTAINER_MODE=no 2911fi 2912 2913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 2914$as_echo "$USE_MAINTAINER_MODE" >&6; } 2915 if test $USE_MAINTAINER_MODE = yes; then 2916 MAINTAINER_MODE_TRUE= 2917 MAINTAINER_MODE_FALSE='#' 2918else 2919 MAINTAINER_MODE_TRUE='#' 2920 MAINTAINER_MODE_FALSE= 2921fi 2922 2923 MAINT=$MAINTAINER_MODE_TRUE 2924 2925 2926 2927ac_ext=c 2928ac_cpp='$CPP $CPPFLAGS' 2929ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2930ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2931ac_compiler_gnu=$ac_cv_c_compiler_gnu 2932if test -n "$ac_tool_prefix"; then 2933 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2934set dummy ${ac_tool_prefix}gcc; ac_word=$2 2935{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2936$as_echo_n "checking for $ac_word... " >&6; } 2937if test "${ac_cv_prog_CC+set}" = set; then : 2938 $as_echo_n "(cached) " >&6 2939else 2940 if test -n "$CC"; then 2941 ac_cv_prog_CC="$CC" # Let the user override the test. 2942else 2943as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2944for as_dir in $PATH 2945do 2946 IFS=$as_save_IFS 2947 test -z "$as_dir" && as_dir=. 2948 for ac_exec_ext in '' $ac_executable_extensions; do 2949 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2950 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2952 break 2 2953 fi 2954done 2955 done 2956IFS=$as_save_IFS 2957 2958fi 2959fi 2960CC=$ac_cv_prog_CC 2961if test -n "$CC"; then 2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2963$as_echo "$CC" >&6; } 2964else 2965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2966$as_echo "no" >&6; } 2967fi 2968 2969 2970fi 2971if test -z "$ac_cv_prog_CC"; then 2972 ac_ct_CC=$CC 2973 # Extract the first word of "gcc", so it can be a program name with args. 2974set dummy gcc; ac_word=$2 2975{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2976$as_echo_n "checking for $ac_word... " >&6; } 2977if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 2978 $as_echo_n "(cached) " >&6 2979else 2980 if test -n "$ac_ct_CC"; then 2981 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2982else 2983as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2984for as_dir in $PATH 2985do 2986 IFS=$as_save_IFS 2987 test -z "$as_dir" && as_dir=. 2988 for ac_exec_ext in '' $ac_executable_extensions; do 2989 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2990 ac_cv_prog_ac_ct_CC="gcc" 2991 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2992 break 2 2993 fi 2994done 2995 done 2996IFS=$as_save_IFS 2997 2998fi 2999fi 3000ac_ct_CC=$ac_cv_prog_ac_ct_CC 3001if test -n "$ac_ct_CC"; then 3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3003$as_echo "$ac_ct_CC" >&6; } 3004else 3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3006$as_echo "no" >&6; } 3007fi 3008 3009 if test "x$ac_ct_CC" = x; then 3010 CC="" 3011 else 3012 case $cross_compiling:$ac_tool_warned in 3013yes:) 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3015$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3016ac_tool_warned=yes ;; 3017esac 3018 CC=$ac_ct_CC 3019 fi 3020else 3021 CC="$ac_cv_prog_CC" 3022fi 3023 3024if test -z "$CC"; then 3025 if test -n "$ac_tool_prefix"; then 3026 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3027set dummy ${ac_tool_prefix}cc; ac_word=$2 3028{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3029$as_echo_n "checking for $ac_word... " >&6; } 3030if test "${ac_cv_prog_CC+set}" = set; then : 3031 $as_echo_n "(cached) " >&6 3032else 3033 if test -n "$CC"; then 3034 ac_cv_prog_CC="$CC" # Let the user override the test. 3035else 3036as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3037for as_dir in $PATH 3038do 3039 IFS=$as_save_IFS 3040 test -z "$as_dir" && as_dir=. 3041 for ac_exec_ext in '' $ac_executable_extensions; do 3042 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3043 ac_cv_prog_CC="${ac_tool_prefix}cc" 3044 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3045 break 2 3046 fi 3047done 3048 done 3049IFS=$as_save_IFS 3050 3051fi 3052fi 3053CC=$ac_cv_prog_CC 3054if test -n "$CC"; then 3055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3056$as_echo "$CC" >&6; } 3057else 3058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3059$as_echo "no" >&6; } 3060fi 3061 3062 3063 fi 3064fi 3065if test -z "$CC"; then 3066 # Extract the first word of "cc", so it can be a program name with args. 3067set dummy cc; ac_word=$2 3068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3069$as_echo_n "checking for $ac_word... " >&6; } 3070if test "${ac_cv_prog_CC+set}" = set; then : 3071 $as_echo_n "(cached) " >&6 3072else 3073 if test -n "$CC"; then 3074 ac_cv_prog_CC="$CC" # Let the user override the test. 3075else 3076 ac_prog_rejected=no 3077as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3078for as_dir in $PATH 3079do 3080 IFS=$as_save_IFS 3081 test -z "$as_dir" && as_dir=. 3082 for ac_exec_ext in '' $ac_executable_extensions; do 3083 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3084 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3085 ac_prog_rejected=yes 3086 continue 3087 fi 3088 ac_cv_prog_CC="cc" 3089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3090 break 2 3091 fi 3092done 3093 done 3094IFS=$as_save_IFS 3095 3096if test $ac_prog_rejected = yes; then 3097 # We found a bogon in the path, so make sure we never use it. 3098 set dummy $ac_cv_prog_CC 3099 shift 3100 if test $# != 0; then 3101 # We chose a different compiler from the bogus one. 3102 # However, it has the same basename, so the bogon will be chosen 3103 # first if we set CC to just the basename; use the full file name. 3104 shift 3105 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3106 fi 3107fi 3108fi 3109fi 3110CC=$ac_cv_prog_CC 3111if test -n "$CC"; then 3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3113$as_echo "$CC" >&6; } 3114else 3115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3116$as_echo "no" >&6; } 3117fi 3118 3119 3120fi 3121if test -z "$CC"; then 3122 if test -n "$ac_tool_prefix"; then 3123 for ac_prog in cl.exe 3124 do 3125 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3126set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3127{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3128$as_echo_n "checking for $ac_word... " >&6; } 3129if test "${ac_cv_prog_CC+set}" = set; then : 3130 $as_echo_n "(cached) " >&6 3131else 3132 if test -n "$CC"; then 3133 ac_cv_prog_CC="$CC" # Let the user override the test. 3134else 3135as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3136for as_dir in $PATH 3137do 3138 IFS=$as_save_IFS 3139 test -z "$as_dir" && as_dir=. 3140 for ac_exec_ext in '' $ac_executable_extensions; do 3141 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3142 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3143 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3144 break 2 3145 fi 3146done 3147 done 3148IFS=$as_save_IFS 3149 3150fi 3151fi 3152CC=$ac_cv_prog_CC 3153if test -n "$CC"; then 3154 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3155$as_echo "$CC" >&6; } 3156else 3157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3158$as_echo "no" >&6; } 3159fi 3160 3161 3162 test -n "$CC" && break 3163 done 3164fi 3165if test -z "$CC"; then 3166 ac_ct_CC=$CC 3167 for ac_prog in cl.exe 3168do 3169 # Extract the first word of "$ac_prog", so it can be a program name with args. 3170set dummy $ac_prog; ac_word=$2 3171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3172$as_echo_n "checking for $ac_word... " >&6; } 3173if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3174 $as_echo_n "(cached) " >&6 3175else 3176 if test -n "$ac_ct_CC"; then 3177 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3178else 3179as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3180for as_dir in $PATH 3181do 3182 IFS=$as_save_IFS 3183 test -z "$as_dir" && as_dir=. 3184 for ac_exec_ext in '' $ac_executable_extensions; do 3185 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3186 ac_cv_prog_ac_ct_CC="$ac_prog" 3187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3188 break 2 3189 fi 3190done 3191 done 3192IFS=$as_save_IFS 3193 3194fi 3195fi 3196ac_ct_CC=$ac_cv_prog_ac_ct_CC 3197if test -n "$ac_ct_CC"; then 3198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3199$as_echo "$ac_ct_CC" >&6; } 3200else 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3202$as_echo "no" >&6; } 3203fi 3204 3205 3206 test -n "$ac_ct_CC" && break 3207done 3208 3209 if test "x$ac_ct_CC" = x; then 3210 CC="" 3211 else 3212 case $cross_compiling:$ac_tool_warned in 3213yes:) 3214{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3215$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3216ac_tool_warned=yes ;; 3217esac 3218 CC=$ac_ct_CC 3219 fi 3220fi 3221 3222fi 3223 3224 3225test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3226$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3227as_fn_error "no acceptable C compiler found in \$PATH 3228See \`config.log' for more details." "$LINENO" 5; } 3229 3230# Provide some information about the compiler. 3231$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3232set X $ac_compile 3233ac_compiler=$2 3234for ac_option in --version -v -V -qversion; do 3235 { { ac_try="$ac_compiler $ac_option >&5" 3236case "(($ac_try" in 3237 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3238 *) ac_try_echo=$ac_try;; 3239esac 3240eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3241$as_echo "$ac_try_echo"; } >&5 3242 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3243 ac_status=$? 3244 if test -s conftest.err; then 3245 sed '10a\ 3246... rest of stderr output deleted ... 3247 10q' conftest.err >conftest.er1 3248 cat conftest.er1 >&5 3249 rm -f conftest.er1 conftest.err 3250 fi 3251 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3252 test $ac_status = 0; } 3253done 3254 3255cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3256/* end confdefs.h. */ 3257 3258int 3259main () 3260{ 3261 3262 ; 3263 return 0; 3264} 3265_ACEOF 3266ac_clean_files_save=$ac_clean_files 3267ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out conftest.out" 3268# Try to create an executable without -o first, disregard a.out. 3269# It will help us diagnose broken compilers, and finding out an intuition 3270# of exeext. 3271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3272$as_echo_n "checking for C compiler default output file name... " >&6; } 3273ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3274 3275# The possible output files: 3276ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3277 3278ac_rmfiles= 3279for ac_file in $ac_files 3280do 3281 case $ac_file in 3282 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3283 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3284 esac 3285done 3286rm -f $ac_rmfiles 3287 3288if { { ac_try="$ac_link_default" 3289case "(($ac_try" in 3290 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3291 *) ac_try_echo=$ac_try;; 3292esac 3293eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3294$as_echo "$ac_try_echo"; } >&5 3295 (eval "$ac_link_default") 2>&5 3296 ac_status=$? 3297 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3298 test $ac_status = 0; }; then : 3299 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3300# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3301# in a Makefile. We should not override ac_cv_exeext if it was cached, 3302# so that the user can short-circuit this test for compilers unknown to 3303# Autoconf. 3304for ac_file in $ac_files '' 3305do 3306 test -f "$ac_file" || continue 3307 case $ac_file in 3308 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3309 ;; 3310 [ab].out ) 3311 # We found the default executable, but exeext='' is most 3312 # certainly right. 3313 break;; 3314 *.* ) 3315 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3316 then :; else 3317 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3318 fi 3319 # We set ac_cv_exeext here because the later test for it is not 3320 # safe: cross compilers may not add the suffix if given an `-o' 3321 # argument, so we may need to know it at that point already. 3322 # Even if this section looks crufty: it has the advantage of 3323 # actually working. 3324 break;; 3325 * ) 3326 break;; 3327 esac 3328done 3329test "$ac_cv_exeext" = no && ac_cv_exeext= 3330 3331else 3332 ac_file='' 3333fi 3334{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3335$as_echo "$ac_file" >&6; } 3336if test -z "$ac_file"; then : 3337 $as_echo "$as_me: failed program was:" >&5 3338sed 's/^/| /' conftest.$ac_ext >&5 3339 3340{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3341$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3342{ as_fn_set_status 77 3343as_fn_error "C compiler cannot create executables 3344See \`config.log' for more details." "$LINENO" 5; }; } 3345fi 3346ac_exeext=$ac_cv_exeext 3347 3348# Check that the compiler produces executables we can run. If not, either 3349# the compiler is broken, or we cross compile. 3350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3351$as_echo_n "checking whether the C compiler works... " >&6; } 3352# If not cross compiling, check that we can run a simple program. 3353if test "$cross_compiling" != yes; then 3354 if { ac_try='./$ac_file' 3355 { { case "(($ac_try" in 3356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3357 *) ac_try_echo=$ac_try;; 3358esac 3359eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3360$as_echo "$ac_try_echo"; } >&5 3361 (eval "$ac_try") 2>&5 3362 ac_status=$? 3363 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3364 test $ac_status = 0; }; }; then 3365 cross_compiling=no 3366 else 3367 if test "$cross_compiling" = maybe; then 3368 cross_compiling=yes 3369 else 3370 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3371$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3372as_fn_error "cannot run C compiled programs. 3373If you meant to cross compile, use \`--host'. 3374See \`config.log' for more details." "$LINENO" 5; } 3375 fi 3376 fi 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3379$as_echo "yes" >&6; } 3380 3381rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out conftest.out 3382ac_clean_files=$ac_clean_files_save 3383# Check that the compiler produces executables we can run. If not, either 3384# the compiler is broken, or we cross compile. 3385{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3386$as_echo_n "checking whether we are cross compiling... " >&6; } 3387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3388$as_echo "$cross_compiling" >&6; } 3389 3390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3391$as_echo_n "checking for suffix of executables... " >&6; } 3392if { { ac_try="$ac_link" 3393case "(($ac_try" in 3394 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3395 *) ac_try_echo=$ac_try;; 3396esac 3397eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3398$as_echo "$ac_try_echo"; } >&5 3399 (eval "$ac_link") 2>&5 3400 ac_status=$? 3401 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3402 test $ac_status = 0; }; then : 3403 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3404# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3405# work properly (i.e., refer to `conftest.exe'), while it won't with 3406# `rm'. 3407for ac_file in conftest.exe conftest conftest.*; do 3408 test -f "$ac_file" || continue 3409 case $ac_file in 3410 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3411 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3412 break;; 3413 * ) break;; 3414 esac 3415done 3416else 3417 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3418$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3419as_fn_error "cannot compute suffix of executables: cannot compile and link 3420See \`config.log' for more details." "$LINENO" 5; } 3421fi 3422rm -f conftest$ac_cv_exeext 3423{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3424$as_echo "$ac_cv_exeext" >&6; } 3425 3426rm -f conftest.$ac_ext 3427EXEEXT=$ac_cv_exeext 3428ac_exeext=$EXEEXT 3429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3430$as_echo_n "checking for suffix of object files... " >&6; } 3431if test "${ac_cv_objext+set}" = set; then : 3432 $as_echo_n "(cached) " >&6 3433else 3434 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3435/* end confdefs.h. */ 3436 3437int 3438main () 3439{ 3440 3441 ; 3442 return 0; 3443} 3444_ACEOF 3445rm -f conftest.o conftest.obj 3446if { { ac_try="$ac_compile" 3447case "(($ac_try" in 3448 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3449 *) ac_try_echo=$ac_try;; 3450esac 3451eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3452$as_echo "$ac_try_echo"; } >&5 3453 (eval "$ac_compile") 2>&5 3454 ac_status=$? 3455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3456 test $ac_status = 0; }; then : 3457 for ac_file in conftest.o conftest.obj conftest.*; do 3458 test -f "$ac_file" || continue; 3459 case $ac_file in 3460 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3461 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3462 break;; 3463 esac 3464done 3465else 3466 $as_echo "$as_me: failed program was:" >&5 3467sed 's/^/| /' conftest.$ac_ext >&5 3468 3469{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3470$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3471as_fn_error "cannot compute suffix of object files: cannot compile 3472See \`config.log' for more details." "$LINENO" 5; } 3473fi 3474rm -f conftest.$ac_cv_objext conftest.$ac_ext 3475fi 3476{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3477$as_echo "$ac_cv_objext" >&6; } 3478OBJEXT=$ac_cv_objext 3479ac_objext=$OBJEXT 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3481$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3482if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3483 $as_echo_n "(cached) " >&6 3484else 3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3486/* end confdefs.h. */ 3487 3488int 3489main () 3490{ 3491#ifndef __GNUC__ 3492 choke me 3493#endif 3494 3495 ; 3496 return 0; 3497} 3498_ACEOF 3499if ac_fn_c_try_compile "$LINENO"; then : 3500 ac_compiler_gnu=yes 3501else 3502 ac_compiler_gnu=no 3503fi 3504rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3505ac_cv_c_compiler_gnu=$ac_compiler_gnu 3506 3507fi 3508{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3509$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3510if test $ac_compiler_gnu = yes; then 3511 GCC=yes 3512else 3513 GCC= 3514fi 3515ac_test_CFLAGS=${CFLAGS+set} 3516ac_save_CFLAGS=$CFLAGS 3517{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3518$as_echo_n "checking whether $CC accepts -g... " >&6; } 3519if test "${ac_cv_prog_cc_g+set}" = set; then : 3520 $as_echo_n "(cached) " >&6 3521else 3522 ac_save_c_werror_flag=$ac_c_werror_flag 3523 ac_c_werror_flag=yes 3524 ac_cv_prog_cc_g=no 3525 CFLAGS="-g" 3526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3527/* end confdefs.h. */ 3528 3529int 3530main () 3531{ 3532 3533 ; 3534 return 0; 3535} 3536_ACEOF 3537if ac_fn_c_try_compile "$LINENO"; then : 3538 ac_cv_prog_cc_g=yes 3539else 3540 CFLAGS="" 3541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3542/* end confdefs.h. */ 3543 3544int 3545main () 3546{ 3547 3548 ; 3549 return 0; 3550} 3551_ACEOF 3552if ac_fn_c_try_compile "$LINENO"; then : 3553 3554else 3555 ac_c_werror_flag=$ac_save_c_werror_flag 3556 CFLAGS="-g" 3557 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3558/* end confdefs.h. */ 3559 3560int 3561main () 3562{ 3563 3564 ; 3565 return 0; 3566} 3567_ACEOF 3568if ac_fn_c_try_compile "$LINENO"; then : 3569 ac_cv_prog_cc_g=yes 3570fi 3571rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3572fi 3573rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3574fi 3575rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3576 ac_c_werror_flag=$ac_save_c_werror_flag 3577fi 3578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3579$as_echo "$ac_cv_prog_cc_g" >&6; } 3580if test "$ac_test_CFLAGS" = set; then 3581 CFLAGS=$ac_save_CFLAGS 3582elif test $ac_cv_prog_cc_g = yes; then 3583 if test "$GCC" = yes; then 3584 CFLAGS="-g -O2" 3585 else 3586 CFLAGS="-g" 3587 fi 3588else 3589 if test "$GCC" = yes; then 3590 CFLAGS="-O2" 3591 else 3592 CFLAGS= 3593 fi 3594fi 3595{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3596$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3597if test "${ac_cv_prog_cc_c89+set}" = set; then : 3598 $as_echo_n "(cached) " >&6 3599else 3600 ac_cv_prog_cc_c89=no 3601ac_save_CC=$CC 3602cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3603/* end confdefs.h. */ 3604#include <stdarg.h> 3605#include <stdio.h> 3606#include <sys/types.h> 3607#include <sys/stat.h> 3608/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3609struct buf { int x; }; 3610FILE * (*rcsopen) (struct buf *, struct stat *, int); 3611static char *e (p, i) 3612 char **p; 3613 int i; 3614{ 3615 return p[i]; 3616} 3617static char *f (char * (*g) (char **, int), char **p, ...) 3618{ 3619 char *s; 3620 va_list v; 3621 va_start (v,p); 3622 s = g (p, va_arg (v,int)); 3623 va_end (v); 3624 return s; 3625} 3626 3627/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3628 function prototypes and stuff, but not '\xHH' hex character constants. 3629 These don't provoke an error unfortunately, instead are silently treated 3630 as 'x'. The following induces an error, until -std is added to get 3631 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3632 array size at least. It's necessary to write '\x00'==0 to get something 3633 that's true only with -std. */ 3634int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3635 3636/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3637 inside strings and character constants. */ 3638#define FOO(x) 'x' 3639int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3640 3641int test (int i, double x); 3642struct s1 {int (*f) (int a);}; 3643struct s2 {int (*f) (double a);}; 3644int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3645int argc; 3646char **argv; 3647int 3648main () 3649{ 3650return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3651 ; 3652 return 0; 3653} 3654_ACEOF 3655for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3656 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3657do 3658 CC="$ac_save_CC $ac_arg" 3659 if ac_fn_c_try_compile "$LINENO"; then : 3660 ac_cv_prog_cc_c89=$ac_arg 3661fi 3662rm -f core conftest.err conftest.$ac_objext 3663 test "x$ac_cv_prog_cc_c89" != "xno" && break 3664done 3665rm -f conftest.$ac_ext 3666CC=$ac_save_CC 3667 3668fi 3669# AC_CACHE_VAL 3670case "x$ac_cv_prog_cc_c89" in 3671 x) 3672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3673$as_echo "none needed" >&6; } ;; 3674 xno) 3675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3676$as_echo "unsupported" >&6; } ;; 3677 *) 3678 CC="$CC $ac_cv_prog_cc_c89" 3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3680$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3681esac 3682if test "x$ac_cv_prog_cc_c89" != xno; then : 3683 3684fi 3685 3686ac_ext=c 3687ac_cpp='$CPP $CPPFLAGS' 3688ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3689ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3690ac_compiler_gnu=$ac_cv_c_compiler_gnu 3691 3692 3693ac_ext=c 3694ac_cpp='$CPP $CPPFLAGS' 3695ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3696ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3697ac_compiler_gnu=$ac_cv_c_compiler_gnu 3698{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3699$as_echo_n "checking how to run the C preprocessor... " >&6; } 3700# On Suns, sometimes $CPP names a directory. 3701if test -n "$CPP" && test -d "$CPP"; then 3702 CPP= 3703fi 3704if test -z "$CPP"; then 3705 if test "${ac_cv_prog_CPP+set}" = set; then : 3706 $as_echo_n "(cached) " >&6 3707else 3708 # Double quotes because CPP needs to be expanded 3709 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3710 do 3711 ac_preproc_ok=false 3712for ac_c_preproc_warn_flag in '' yes 3713do 3714 # Use a header file that comes with gcc, so configuring glibc 3715 # with a fresh cross-compiler works. 3716 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3717 # <limits.h> exists even on freestanding compilers. 3718 # On the NeXT, cc -E runs the code through the compiler's parser, 3719 # not just through cpp. "Syntax error" is here to catch this case. 3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3721/* end confdefs.h. */ 3722#ifdef __STDC__ 3723# include <limits.h> 3724#else 3725# include <assert.h> 3726#endif 3727 Syntax error 3728_ACEOF 3729if ac_fn_c_try_cpp "$LINENO"; then : 3730 3731else 3732 # Broken: fails on valid input. 3733continue 3734fi 3735rm -f conftest.err conftest.$ac_ext 3736 3737 # OK, works on sane cases. Now check whether nonexistent headers 3738 # can be detected and how. 3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3740/* end confdefs.h. */ 3741#include <ac_nonexistent.h> 3742_ACEOF 3743if ac_fn_c_try_cpp "$LINENO"; then : 3744 # Broken: success on invalid input. 3745continue 3746else 3747 # Passes both tests. 3748ac_preproc_ok=: 3749break 3750fi 3751rm -f conftest.err conftest.$ac_ext 3752 3753done 3754# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3755rm -f conftest.err conftest.$ac_ext 3756if $ac_preproc_ok; then : 3757 break 3758fi 3759 3760 done 3761 ac_cv_prog_CPP=$CPP 3762 3763fi 3764 CPP=$ac_cv_prog_CPP 3765else 3766 ac_cv_prog_CPP=$CPP 3767fi 3768{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 3769$as_echo "$CPP" >&6; } 3770ac_preproc_ok=false 3771for ac_c_preproc_warn_flag in '' yes 3772do 3773 # Use a header file that comes with gcc, so configuring glibc 3774 # with a fresh cross-compiler works. 3775 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 3776 # <limits.h> exists even on freestanding compilers. 3777 # On the NeXT, cc -E runs the code through the compiler's parser, 3778 # not just through cpp. "Syntax error" is here to catch this case. 3779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3780/* end confdefs.h. */ 3781#ifdef __STDC__ 3782# include <limits.h> 3783#else 3784# include <assert.h> 3785#endif 3786 Syntax error 3787_ACEOF 3788if ac_fn_c_try_cpp "$LINENO"; then : 3789 3790else 3791 # Broken: fails on valid input. 3792continue 3793fi 3794rm -f conftest.err conftest.$ac_ext 3795 3796 # OK, works on sane cases. Now check whether nonexistent headers 3797 # can be detected and how. 3798 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3799/* end confdefs.h. */ 3800#include <ac_nonexistent.h> 3801_ACEOF 3802if ac_fn_c_try_cpp "$LINENO"; then : 3803 # Broken: success on invalid input. 3804continue 3805else 3806 # Passes both tests. 3807ac_preproc_ok=: 3808break 3809fi 3810rm -f conftest.err conftest.$ac_ext 3811 3812done 3813# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 3814rm -f conftest.err conftest.$ac_ext 3815if $ac_preproc_ok; then : 3816 3817else 3818 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3820as_fn_error "C preprocessor \"$CPP\" fails sanity check 3821See \`config.log' for more details." "$LINENO" 5; } 3822fi 3823 3824ac_ext=c 3825ac_cpp='$CPP $CPPFLAGS' 3826ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3827ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3828ac_compiler_gnu=$ac_cv_c_compiler_gnu 3829 3830 3831{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3832$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3833if test "${ac_cv_path_GREP+set}" = set; then : 3834 $as_echo_n "(cached) " >&6 3835else 3836 if test -z "$GREP"; then 3837 ac_path_GREP_found=false 3838 # Loop through the user's path and test for each of PROGNAME-LIST 3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3840for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3841do 3842 IFS=$as_save_IFS 3843 test -z "$as_dir" && as_dir=. 3844 for ac_prog in grep ggrep; do 3845 for ac_exec_ext in '' $ac_executable_extensions; do 3846 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3847 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 3848# Check for GNU ac_path_GREP and select it if it is found. 3849 # Check for GNU $ac_path_GREP 3850case `"$ac_path_GREP" --version 2>&1` in 3851*GNU*) 3852 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3853*) 3854 ac_count=0 3855 $as_echo_n 0123456789 >"conftest.in" 3856 while : 3857 do 3858 cat "conftest.in" "conftest.in" >"conftest.tmp" 3859 mv "conftest.tmp" "conftest.in" 3860 cp "conftest.in" "conftest.nl" 3861 $as_echo 'GREP' >> "conftest.nl" 3862 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3863 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3864 as_fn_arith $ac_count + 1 && ac_count=$as_val 3865 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3866 # Best one so far, save it but keep looking for a better one 3867 ac_cv_path_GREP="$ac_path_GREP" 3868 ac_path_GREP_max=$ac_count 3869 fi 3870 # 10*(2^10) chars as input seems more than enough 3871 test $ac_count -gt 10 && break 3872 done 3873 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3874esac 3875 3876 $ac_path_GREP_found && break 3 3877 done 3878 done 3879 done 3880IFS=$as_save_IFS 3881 if test -z "$ac_cv_path_GREP"; then 3882 as_fn_error "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3883 fi 3884else 3885 ac_cv_path_GREP=$GREP 3886fi 3887 3888fi 3889{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3890$as_echo "$ac_cv_path_GREP" >&6; } 3891 GREP="$ac_cv_path_GREP" 3892 3893 3894{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3895$as_echo_n "checking for egrep... " >&6; } 3896if test "${ac_cv_path_EGREP+set}" = set; then : 3897 $as_echo_n "(cached) " >&6 3898else 3899 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3900 then ac_cv_path_EGREP="$GREP -E" 3901 else 3902 if test -z "$EGREP"; then 3903 ac_path_EGREP_found=false 3904 # Loop through the user's path and test for each of PROGNAME-LIST 3905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3906for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3907do 3908 IFS=$as_save_IFS 3909 test -z "$as_dir" && as_dir=. 3910 for ac_prog in egrep; do 3911 for ac_exec_ext in '' $ac_executable_extensions; do 3912 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3913 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 3914# Check for GNU ac_path_EGREP and select it if it is found. 3915 # Check for GNU $ac_path_EGREP 3916case `"$ac_path_EGREP" --version 2>&1` in 3917*GNU*) 3918 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3919*) 3920 ac_count=0 3921 $as_echo_n 0123456789 >"conftest.in" 3922 while : 3923 do 3924 cat "conftest.in" "conftest.in" >"conftest.tmp" 3925 mv "conftest.tmp" "conftest.in" 3926 cp "conftest.in" "conftest.nl" 3927 $as_echo 'EGREP' >> "conftest.nl" 3928 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3930 as_fn_arith $ac_count + 1 && ac_count=$as_val 3931 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3932 # Best one so far, save it but keep looking for a better one 3933 ac_cv_path_EGREP="$ac_path_EGREP" 3934 ac_path_EGREP_max=$ac_count 3935 fi 3936 # 10*(2^10) chars as input seems more than enough 3937 test $ac_count -gt 10 && break 3938 done 3939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3940esac 3941 3942 $ac_path_EGREP_found && break 3 3943 done 3944 done 3945 done 3946IFS=$as_save_IFS 3947 if test -z "$ac_cv_path_EGREP"; then 3948 as_fn_error "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3949 fi 3950else 3951 ac_cv_path_EGREP=$EGREP 3952fi 3953 3954 fi 3955fi 3956{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3957$as_echo "$ac_cv_path_EGREP" >&6; } 3958 EGREP="$ac_cv_path_EGREP" 3959 3960 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 3962$as_echo_n "checking for ANSI C header files... " >&6; } 3963if test "${ac_cv_header_stdc+set}" = set; then : 3964 $as_echo_n "(cached) " >&6 3965else 3966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3967/* end confdefs.h. */ 3968#include <stdlib.h> 3969#include <stdarg.h> 3970#include <string.h> 3971#include <float.h> 3972 3973int 3974main () 3975{ 3976 3977 ; 3978 return 0; 3979} 3980_ACEOF 3981if ac_fn_c_try_compile "$LINENO"; then : 3982 ac_cv_header_stdc=yes 3983else 3984 ac_cv_header_stdc=no 3985fi 3986rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3987 3988if test $ac_cv_header_stdc = yes; then 3989 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 3990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3991/* end confdefs.h. */ 3992#include <string.h> 3993 3994_ACEOF 3995if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 3996 $EGREP "memchr" >/dev/null 2>&1; then : 3997 3998else 3999 ac_cv_header_stdc=no 4000fi 4001rm -f conftest* 4002 4003fi 4004 4005if test $ac_cv_header_stdc = yes; then 4006 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4008/* end confdefs.h. */ 4009#include <stdlib.h> 4010 4011_ACEOF 4012if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4013 $EGREP "free" >/dev/null 2>&1; then : 4014 4015else 4016 ac_cv_header_stdc=no 4017fi 4018rm -f conftest* 4019 4020fi 4021 4022if test $ac_cv_header_stdc = yes; then 4023 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4024 if test "$cross_compiling" = yes; then : 4025 : 4026else 4027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4028/* end confdefs.h. */ 4029#include <ctype.h> 4030#include <stdlib.h> 4031#if ((' ' & 0x0FF) == 0x020) 4032# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4033# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4034#else 4035# define ISLOWER(c) \ 4036 (('a' <= (c) && (c) <= 'i') \ 4037 || ('j' <= (c) && (c) <= 'r') \ 4038 || ('s' <= (c) && (c) <= 'z')) 4039# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4040#endif 4041 4042#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4043int 4044main () 4045{ 4046 int i; 4047 for (i = 0; i < 256; i++) 4048 if (XOR (islower (i), ISLOWER (i)) 4049 || toupper (i) != TOUPPER (i)) 4050 return 2; 4051 return 0; 4052} 4053_ACEOF 4054if ac_fn_c_try_run "$LINENO"; then : 4055 4056else 4057 ac_cv_header_stdc=no 4058fi 4059rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4060 conftest.$ac_objext conftest.beam conftest.$ac_ext 4061fi 4062 4063fi 4064fi 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4066$as_echo "$ac_cv_header_stdc" >&6; } 4067if test $ac_cv_header_stdc = yes; then 4068 4069$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4070 4071fi 4072 4073# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4074for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4075 inttypes.h stdint.h unistd.h 4076do : 4077 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4078ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4079" 4080eval as_val=\$$as_ac_Header 4081 if test "x$as_val" = x""yes; then : 4082 cat >>confdefs.h <<_ACEOF 4083#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4084_ACEOF 4085 4086fi 4087 4088done 4089 4090 4091 4092 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4093if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4094 MINIX=yes 4095else 4096 MINIX= 4097fi 4098 4099 4100 if test "$MINIX" = yes; then 4101 4102$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4103 4104 4105$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4106 4107 4108$as_echo "#define _MINIX 1" >>confdefs.h 4109 4110 fi 4111 4112 4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4114$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4115if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4116 $as_echo_n "(cached) " >&6 4117else 4118 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4119/* end confdefs.h. */ 4120 4121# define __EXTENSIONS__ 1 4122 $ac_includes_default 4123int 4124main () 4125{ 4126 4127 ; 4128 return 0; 4129} 4130_ACEOF 4131if ac_fn_c_try_compile "$LINENO"; then : 4132 ac_cv_safe_to_define___extensions__=yes 4133else 4134 ac_cv_safe_to_define___extensions__=no 4135fi 4136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4137fi 4138{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4139$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4140 test $ac_cv_safe_to_define___extensions__ = yes && 4141 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4142 4143 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4144 4145 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4146 4147 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4148 4149 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4150 4151 4152 4153for ac_func in secure_getenv 4154do : 4155 ac_fn_c_check_func "$LINENO" "secure_getenv" "ac_cv_func_secure_getenv" 4156if test "x$ac_cv_func_secure_getenv" = x""yes; then : 4157 cat >>confdefs.h <<_ACEOF 4158#define HAVE_SECURE_GETENV 1 4159_ACEOF 4160 4161fi 4162done 4163 4164 4165# Calculate toolexeclibdir 4166# Also toolexecdir, though it's only used in toolexeclibdir 4167case ${version_specific_libs} in 4168 yes) 4169 # Need the gcc compiler version to know where to install libraries 4170 # and header files if --enable-version-specific-runtime-libs option 4171 # is selected. 4172 toolexecdir='$(libdir)/gcc/$(target_alias)' 4173 toolexeclibdir='$(toolexecdir)/$(gcc_version)$(MULTISUBDIR)' 4174 ;; 4175 no) 4176 if test -n "$with_cross_host" && 4177 test x"$with_cross_host" != x"no"; then 4178 # Install a library built with a cross compiler in tooldir, not libdir. 4179 toolexecdir='$(exec_prefix)/$(target_alias)' 4180 toolexeclibdir='$(toolexecdir)/lib' 4181 else 4182 toolexecdir='$(libdir)/gcc-lib/$(target_alias)' 4183 toolexeclibdir='$(libdir)' 4184 fi 4185 multi_os_directory=`$CC -print-multi-os-directory` 4186 case $multi_os_directory in 4187 .) ;; # Avoid trailing /. 4188 *) toolexeclibdir=$toolexeclibdir/$multi_os_directory ;; 4189 esac 4190 ;; 4191esac 4192 4193 4194 4195# Check for programs. 4196 4197 4198ac_ext=c 4199ac_cpp='$CPP $CPPFLAGS' 4200ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4201ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4202ac_compiler_gnu=$ac_cv_c_compiler_gnu 4203if test -n "$ac_tool_prefix"; then 4204 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4205set dummy ${ac_tool_prefix}gcc; ac_word=$2 4206{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4207$as_echo_n "checking for $ac_word... " >&6; } 4208if test "${ac_cv_prog_CC+set}" = set; then : 4209 $as_echo_n "(cached) " >&6 4210else 4211 if test -n "$CC"; then 4212 ac_cv_prog_CC="$CC" # Let the user override the test. 4213else 4214as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4215for as_dir in $PATH 4216do 4217 IFS=$as_save_IFS 4218 test -z "$as_dir" && as_dir=. 4219 for ac_exec_ext in '' $ac_executable_extensions; do 4220 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4221 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4223 break 2 4224 fi 4225done 4226 done 4227IFS=$as_save_IFS 4228 4229fi 4230fi 4231CC=$ac_cv_prog_CC 4232if test -n "$CC"; then 4233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4234$as_echo "$CC" >&6; } 4235else 4236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4237$as_echo "no" >&6; } 4238fi 4239 4240 4241fi 4242if test -z "$ac_cv_prog_CC"; then 4243 ac_ct_CC=$CC 4244 # Extract the first word of "gcc", so it can be a program name with args. 4245set dummy gcc; ac_word=$2 4246{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4247$as_echo_n "checking for $ac_word... " >&6; } 4248if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4249 $as_echo_n "(cached) " >&6 4250else 4251 if test -n "$ac_ct_CC"; then 4252 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4253else 4254as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4255for as_dir in $PATH 4256do 4257 IFS=$as_save_IFS 4258 test -z "$as_dir" && as_dir=. 4259 for ac_exec_ext in '' $ac_executable_extensions; do 4260 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4261 ac_cv_prog_ac_ct_CC="gcc" 4262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4263 break 2 4264 fi 4265done 4266 done 4267IFS=$as_save_IFS 4268 4269fi 4270fi 4271ac_ct_CC=$ac_cv_prog_ac_ct_CC 4272if test -n "$ac_ct_CC"; then 4273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4274$as_echo "$ac_ct_CC" >&6; } 4275else 4276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4277$as_echo "no" >&6; } 4278fi 4279 4280 if test "x$ac_ct_CC" = x; then 4281 CC="" 4282 else 4283 case $cross_compiling:$ac_tool_warned in 4284yes:) 4285{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4286$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4287ac_tool_warned=yes ;; 4288esac 4289 CC=$ac_ct_CC 4290 fi 4291else 4292 CC="$ac_cv_prog_CC" 4293fi 4294 4295if test -z "$CC"; then 4296 if test -n "$ac_tool_prefix"; then 4297 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4298set dummy ${ac_tool_prefix}cc; ac_word=$2 4299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4300$as_echo_n "checking for $ac_word... " >&6; } 4301if test "${ac_cv_prog_CC+set}" = set; then : 4302 $as_echo_n "(cached) " >&6 4303else 4304 if test -n "$CC"; then 4305 ac_cv_prog_CC="$CC" # Let the user override the test. 4306else 4307as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4308for as_dir in $PATH 4309do 4310 IFS=$as_save_IFS 4311 test -z "$as_dir" && as_dir=. 4312 for ac_exec_ext in '' $ac_executable_extensions; do 4313 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4314 ac_cv_prog_CC="${ac_tool_prefix}cc" 4315 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4316 break 2 4317 fi 4318done 4319 done 4320IFS=$as_save_IFS 4321 4322fi 4323fi 4324CC=$ac_cv_prog_CC 4325if test -n "$CC"; then 4326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4327$as_echo "$CC" >&6; } 4328else 4329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4330$as_echo "no" >&6; } 4331fi 4332 4333 4334 fi 4335fi 4336if test -z "$CC"; then 4337 # Extract the first word of "cc", so it can be a program name with args. 4338set dummy cc; ac_word=$2 4339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4340$as_echo_n "checking for $ac_word... " >&6; } 4341if test "${ac_cv_prog_CC+set}" = set; then : 4342 $as_echo_n "(cached) " >&6 4343else 4344 if test -n "$CC"; then 4345 ac_cv_prog_CC="$CC" # Let the user override the test. 4346else 4347 ac_prog_rejected=no 4348as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4349for as_dir in $PATH 4350do 4351 IFS=$as_save_IFS 4352 test -z "$as_dir" && as_dir=. 4353 for ac_exec_ext in '' $ac_executable_extensions; do 4354 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4355 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4356 ac_prog_rejected=yes 4357 continue 4358 fi 4359 ac_cv_prog_CC="cc" 4360 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4361 break 2 4362 fi 4363done 4364 done 4365IFS=$as_save_IFS 4366 4367if test $ac_prog_rejected = yes; then 4368 # We found a bogon in the path, so make sure we never use it. 4369 set dummy $ac_cv_prog_CC 4370 shift 4371 if test $# != 0; then 4372 # We chose a different compiler from the bogus one. 4373 # However, it has the same basename, so the bogon will be chosen 4374 # first if we set CC to just the basename; use the full file name. 4375 shift 4376 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4377 fi 4378fi 4379fi 4380fi 4381CC=$ac_cv_prog_CC 4382if test -n "$CC"; then 4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4384$as_echo "$CC" >&6; } 4385else 4386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4387$as_echo "no" >&6; } 4388fi 4389 4390 4391fi 4392if test -z "$CC"; then 4393 if test -n "$ac_tool_prefix"; then 4394 for ac_prog in cl.exe 4395 do 4396 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4397set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4398{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4399$as_echo_n "checking for $ac_word... " >&6; } 4400if test "${ac_cv_prog_CC+set}" = set; then : 4401 $as_echo_n "(cached) " >&6 4402else 4403 if test -n "$CC"; then 4404 ac_cv_prog_CC="$CC" # Let the user override the test. 4405else 4406as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4407for as_dir in $PATH 4408do 4409 IFS=$as_save_IFS 4410 test -z "$as_dir" && as_dir=. 4411 for ac_exec_ext in '' $ac_executable_extensions; do 4412 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4413 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4414 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4415 break 2 4416 fi 4417done 4418 done 4419IFS=$as_save_IFS 4420 4421fi 4422fi 4423CC=$ac_cv_prog_CC 4424if test -n "$CC"; then 4425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4426$as_echo "$CC" >&6; } 4427else 4428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4429$as_echo "no" >&6; } 4430fi 4431 4432 4433 test -n "$CC" && break 4434 done 4435fi 4436if test -z "$CC"; then 4437 ac_ct_CC=$CC 4438 for ac_prog in cl.exe 4439do 4440 # Extract the first word of "$ac_prog", so it can be a program name with args. 4441set dummy $ac_prog; ac_word=$2 4442{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4443$as_echo_n "checking for $ac_word... " >&6; } 4444if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4445 $as_echo_n "(cached) " >&6 4446else 4447 if test -n "$ac_ct_CC"; then 4448 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4449else 4450as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4451for as_dir in $PATH 4452do 4453 IFS=$as_save_IFS 4454 test -z "$as_dir" && as_dir=. 4455 for ac_exec_ext in '' $ac_executable_extensions; do 4456 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4457 ac_cv_prog_ac_ct_CC="$ac_prog" 4458 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4459 break 2 4460 fi 4461done 4462 done 4463IFS=$as_save_IFS 4464 4465fi 4466fi 4467ac_ct_CC=$ac_cv_prog_ac_ct_CC 4468if test -n "$ac_ct_CC"; then 4469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4470$as_echo "$ac_ct_CC" >&6; } 4471else 4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4473$as_echo "no" >&6; } 4474fi 4475 4476 4477 test -n "$ac_ct_CC" && break 4478done 4479 4480 if test "x$ac_ct_CC" = x; then 4481 CC="" 4482 else 4483 case $cross_compiling:$ac_tool_warned in 4484yes:) 4485{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4486$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4487ac_tool_warned=yes ;; 4488esac 4489 CC=$ac_ct_CC 4490 fi 4491fi 4492 4493fi 4494 4495 4496test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4497$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4498as_fn_error "no acceptable C compiler found in \$PATH 4499See \`config.log' for more details." "$LINENO" 5; } 4500 4501# Provide some information about the compiler. 4502$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4503set X $ac_compile 4504ac_compiler=$2 4505for ac_option in --version -v -V -qversion; do 4506 { { ac_try="$ac_compiler $ac_option >&5" 4507case "(($ac_try" in 4508 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4509 *) ac_try_echo=$ac_try;; 4510esac 4511eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4512$as_echo "$ac_try_echo"; } >&5 4513 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4514 ac_status=$? 4515 if test -s conftest.err; then 4516 sed '10a\ 4517... rest of stderr output deleted ... 4518 10q' conftest.err >conftest.er1 4519 cat conftest.er1 >&5 4520 rm -f conftest.er1 conftest.err 4521 fi 4522 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4523 test $ac_status = 0; } 4524done 4525 4526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4527$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4528if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4529 $as_echo_n "(cached) " >&6 4530else 4531 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4532/* end confdefs.h. */ 4533 4534int 4535main () 4536{ 4537#ifndef __GNUC__ 4538 choke me 4539#endif 4540 4541 ; 4542 return 0; 4543} 4544_ACEOF 4545if ac_fn_c_try_compile "$LINENO"; then : 4546 ac_compiler_gnu=yes 4547else 4548 ac_compiler_gnu=no 4549fi 4550rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4551ac_cv_c_compiler_gnu=$ac_compiler_gnu 4552 4553fi 4554{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4555$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4556if test $ac_compiler_gnu = yes; then 4557 GCC=yes 4558else 4559 GCC= 4560fi 4561ac_test_CFLAGS=${CFLAGS+set} 4562ac_save_CFLAGS=$CFLAGS 4563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4564$as_echo_n "checking whether $CC accepts -g... " >&6; } 4565if test "${ac_cv_prog_cc_g+set}" = set; then : 4566 $as_echo_n "(cached) " >&6 4567else 4568 ac_save_c_werror_flag=$ac_c_werror_flag 4569 ac_c_werror_flag=yes 4570 ac_cv_prog_cc_g=no 4571 CFLAGS="-g" 4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4573/* end confdefs.h. */ 4574 4575int 4576main () 4577{ 4578 4579 ; 4580 return 0; 4581} 4582_ACEOF 4583if ac_fn_c_try_compile "$LINENO"; then : 4584 ac_cv_prog_cc_g=yes 4585else 4586 CFLAGS="" 4587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4588/* end confdefs.h. */ 4589 4590int 4591main () 4592{ 4593 4594 ; 4595 return 0; 4596} 4597_ACEOF 4598if ac_fn_c_try_compile "$LINENO"; then : 4599 4600else 4601 ac_c_werror_flag=$ac_save_c_werror_flag 4602 CFLAGS="-g" 4603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4604/* end confdefs.h. */ 4605 4606int 4607main () 4608{ 4609 4610 ; 4611 return 0; 4612} 4613_ACEOF 4614if ac_fn_c_try_compile "$LINENO"; then : 4615 ac_cv_prog_cc_g=yes 4616fi 4617rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4618fi 4619rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4620fi 4621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4622 ac_c_werror_flag=$ac_save_c_werror_flag 4623fi 4624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4625$as_echo "$ac_cv_prog_cc_g" >&6; } 4626if test "$ac_test_CFLAGS" = set; then 4627 CFLAGS=$ac_save_CFLAGS 4628elif test $ac_cv_prog_cc_g = yes; then 4629 if test "$GCC" = yes; then 4630 CFLAGS="-g -O2" 4631 else 4632 CFLAGS="-g" 4633 fi 4634else 4635 if test "$GCC" = yes; then 4636 CFLAGS="-O2" 4637 else 4638 CFLAGS= 4639 fi 4640fi 4641{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4642$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4643if test "${ac_cv_prog_cc_c89+set}" = set; then : 4644 $as_echo_n "(cached) " >&6 4645else 4646 ac_cv_prog_cc_c89=no 4647ac_save_CC=$CC 4648cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4649/* end confdefs.h. */ 4650#include <stdarg.h> 4651#include <stdio.h> 4652#include <sys/types.h> 4653#include <sys/stat.h> 4654/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4655struct buf { int x; }; 4656FILE * (*rcsopen) (struct buf *, struct stat *, int); 4657static char *e (p, i) 4658 char **p; 4659 int i; 4660{ 4661 return p[i]; 4662} 4663static char *f (char * (*g) (char **, int), char **p, ...) 4664{ 4665 char *s; 4666 va_list v; 4667 va_start (v,p); 4668 s = g (p, va_arg (v,int)); 4669 va_end (v); 4670 return s; 4671} 4672 4673/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4674 function prototypes and stuff, but not '\xHH' hex character constants. 4675 These don't provoke an error unfortunately, instead are silently treated 4676 as 'x'. The following induces an error, until -std is added to get 4677 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4678 array size at least. It's necessary to write '\x00'==0 to get something 4679 that's true only with -std. */ 4680int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4681 4682/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4683 inside strings and character constants. */ 4684#define FOO(x) 'x' 4685int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4686 4687int test (int i, double x); 4688struct s1 {int (*f) (int a);}; 4689struct s2 {int (*f) (double a);}; 4690int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4691int argc; 4692char **argv; 4693int 4694main () 4695{ 4696return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4697 ; 4698 return 0; 4699} 4700_ACEOF 4701for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4702 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4703do 4704 CC="$ac_save_CC $ac_arg" 4705 if ac_fn_c_try_compile "$LINENO"; then : 4706 ac_cv_prog_cc_c89=$ac_arg 4707fi 4708rm -f core conftest.err conftest.$ac_objext 4709 test "x$ac_cv_prog_cc_c89" != "xno" && break 4710done 4711rm -f conftest.$ac_ext 4712CC=$ac_save_CC 4713 4714fi 4715# AC_CACHE_VAL 4716case "x$ac_cv_prog_cc_c89" in 4717 x) 4718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4719$as_echo "none needed" >&6; } ;; 4720 xno) 4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4722$as_echo "unsupported" >&6; } ;; 4723 *) 4724 CC="$CC $ac_cv_prog_cc_c89" 4725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4726$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4727esac 4728if test "x$ac_cv_prog_cc_c89" != xno; then : 4729 4730fi 4731 4732ac_ext=c 4733ac_cpp='$CPP $CPPFLAGS' 4734ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4735ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4736ac_compiler_gnu=$ac_cv_c_compiler_gnu 4737 4738 4739 4740if test "x$CC" != xcc; then 4741 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC and cc understand -c and -o together" >&5 4742$as_echo_n "checking whether $CC and cc understand -c and -o together... " >&6; } 4743else 4744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cc understands -c and -o together" >&5 4745$as_echo_n "checking whether cc understands -c and -o together... " >&6; } 4746fi 4747set dummy $CC; ac_cc=`$as_echo "$2" | 4748 sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4749if { as_var=ac_cv_prog_cc_${ac_cc}_c_o; eval "test \"\${$as_var+set}\" = set"; }; then : 4750 $as_echo_n "(cached) " >&6 4751else 4752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4753/* end confdefs.h. */ 4754 4755int 4756main () 4757{ 4758 4759 ; 4760 return 0; 4761} 4762_ACEOF 4763# Make sure it works both with $CC and with simple cc. 4764# We do the test twice because some compilers refuse to overwrite an 4765# existing .o file with -o, though they will create one. 4766ac_try='$CC -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4767rm -f conftest2.* 4768if { { case "(($ac_try" in 4769 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4770 *) ac_try_echo=$ac_try;; 4771esac 4772eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4773$as_echo "$ac_try_echo"; } >&5 4774 (eval "$ac_try") 2>&5 4775 ac_status=$? 4776 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4777 test $ac_status = 0; } && 4778 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4779 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4780 *) ac_try_echo=$ac_try;; 4781esac 4782eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4783$as_echo "$ac_try_echo"; } >&5 4784 (eval "$ac_try") 2>&5 4785 ac_status=$? 4786 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4787 test $ac_status = 0; }; 4788then 4789 eval ac_cv_prog_cc_${ac_cc}_c_o=yes 4790 if test "x$CC" != xcc; then 4791 # Test first that cc exists at all. 4792 if { ac_try='cc -c conftest.$ac_ext >&5' 4793 { { case "(($ac_try" in 4794 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4795 *) ac_try_echo=$ac_try;; 4796esac 4797eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4798$as_echo "$ac_try_echo"; } >&5 4799 (eval "$ac_try") 2>&5 4800 ac_status=$? 4801 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4802 test $ac_status = 0; }; }; then 4803 ac_try='cc -c conftest.$ac_ext -o conftest2.$ac_objext >&5' 4804 rm -f conftest2.* 4805 if { { case "(($ac_try" in 4806 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4807 *) ac_try_echo=$ac_try;; 4808esac 4809eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4810$as_echo "$ac_try_echo"; } >&5 4811 (eval "$ac_try") 2>&5 4812 ac_status=$? 4813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4814 test $ac_status = 0; } && 4815 test -f conftest2.$ac_objext && { { case "(($ac_try" in 4816 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4817 *) ac_try_echo=$ac_try;; 4818esac 4819eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4820$as_echo "$ac_try_echo"; } >&5 4821 (eval "$ac_try") 2>&5 4822 ac_status=$? 4823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4824 test $ac_status = 0; }; 4825 then 4826 # cc works too. 4827 : 4828 else 4829 # cc exists but doesn't like -o. 4830 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4831 fi 4832 fi 4833 fi 4834else 4835 eval ac_cv_prog_cc_${ac_cc}_c_o=no 4836fi 4837rm -f core conftest* 4838 4839fi 4840if eval test \$ac_cv_prog_cc_${ac_cc}_c_o = yes; then 4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4842$as_echo "yes" >&6; } 4843else 4844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4845$as_echo "no" >&6; } 4846 4847$as_echo "#define NO_MINUS_C_MINUS_O 1" >>confdefs.h 4848 4849fi 4850 4851# FIXME: we rely on the cache variable name because 4852# there is no other way. 4853set dummy $CC 4854am_cc=`echo $2 | sed 's/[^a-zA-Z0-9_]/_/g;s/^[0-9]/_/'` 4855eval am_t=\$ac_cv_prog_cc_${am_cc}_c_o 4856if test "$am_t" != yes; then 4857 # Losing compiler, so override with the script. 4858 # FIXME: It is wrong to rewrite CC. 4859 # But if we don't then we get into trouble of one sort or another. 4860 # A longer-term fix would be to have automake use am__CC in this case, 4861 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4862 CC="$am_aux_dir/compile $CC" 4863fi 4864 4865 4866 4867 4868 4869# Newer automakes demand CCAS and CCASFLAGS. 4870: ${CCAS='$(CC)'} 4871: ${CCASFLAGS='$(CFLAGS)'} 4872 4873 4874 4875if test -n "$ac_tool_prefix"; then 4876 # Extract the first word of "${ac_tool_prefix}as", so it can be a program name with args. 4877set dummy ${ac_tool_prefix}as; ac_word=$2 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4879$as_echo_n "checking for $ac_word... " >&6; } 4880if test "${ac_cv_prog_AS+set}" = set; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 if test -n "$AS"; then 4884 ac_cv_prog_AS="$AS" # Let the user override the test. 4885else 4886as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4887for as_dir in $PATH 4888do 4889 IFS=$as_save_IFS 4890 test -z "$as_dir" && as_dir=. 4891 for ac_exec_ext in '' $ac_executable_extensions; do 4892 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4893 ac_cv_prog_AS="${ac_tool_prefix}as" 4894 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4895 break 2 4896 fi 4897done 4898 done 4899IFS=$as_save_IFS 4900 4901fi 4902fi 4903AS=$ac_cv_prog_AS 4904if test -n "$AS"; then 4905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AS" >&5 4906$as_echo "$AS" >&6; } 4907else 4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4909$as_echo "no" >&6; } 4910fi 4911 4912 4913fi 4914if test -z "$ac_cv_prog_AS"; then 4915 ac_ct_AS=$AS 4916 # Extract the first word of "as", so it can be a program name with args. 4917set dummy as; ac_word=$2 4918{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4919$as_echo_n "checking for $ac_word... " >&6; } 4920if test "${ac_cv_prog_ac_ct_AS+set}" = set; then : 4921 $as_echo_n "(cached) " >&6 4922else 4923 if test -n "$ac_ct_AS"; then 4924 ac_cv_prog_ac_ct_AS="$ac_ct_AS" # Let the user override the test. 4925else 4926as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4927for as_dir in $PATH 4928do 4929 IFS=$as_save_IFS 4930 test -z "$as_dir" && as_dir=. 4931 for ac_exec_ext in '' $ac_executable_extensions; do 4932 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4933 ac_cv_prog_ac_ct_AS="as" 4934 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4935 break 2 4936 fi 4937done 4938 done 4939IFS=$as_save_IFS 4940 4941fi 4942fi 4943ac_ct_AS=$ac_cv_prog_ac_ct_AS 4944if test -n "$ac_ct_AS"; then 4945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AS" >&5 4946$as_echo "$ac_ct_AS" >&6; } 4947else 4948 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4949$as_echo "no" >&6; } 4950fi 4951 4952 if test "x$ac_ct_AS" = x; then 4953 AS="" 4954 else 4955 case $cross_compiling:$ac_tool_warned in 4956yes:) 4957{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4958$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4959ac_tool_warned=yes ;; 4960esac 4961 AS=$ac_ct_AS 4962 fi 4963else 4964 AS="$ac_cv_prog_AS" 4965fi 4966 4967if test -n "$ac_tool_prefix"; then 4968 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 4969set dummy ${ac_tool_prefix}ar; ac_word=$2 4970{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4971$as_echo_n "checking for $ac_word... " >&6; } 4972if test "${ac_cv_prog_AR+set}" = set; then : 4973 $as_echo_n "(cached) " >&6 4974else 4975 if test -n "$AR"; then 4976 ac_cv_prog_AR="$AR" # Let the user override the test. 4977else 4978as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4979for as_dir in $PATH 4980do 4981 IFS=$as_save_IFS 4982 test -z "$as_dir" && as_dir=. 4983 for ac_exec_ext in '' $ac_executable_extensions; do 4984 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4985 ac_cv_prog_AR="${ac_tool_prefix}ar" 4986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4987 break 2 4988 fi 4989done 4990 done 4991IFS=$as_save_IFS 4992 4993fi 4994fi 4995AR=$ac_cv_prog_AR 4996if test -n "$AR"; then 4997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4998$as_echo "$AR" >&6; } 4999else 5000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5001$as_echo "no" >&6; } 5002fi 5003 5004 5005fi 5006if test -z "$ac_cv_prog_AR"; then 5007 ac_ct_AR=$AR 5008 # Extract the first word of "ar", so it can be a program name with args. 5009set dummy ar; ac_word=$2 5010{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5011$as_echo_n "checking for $ac_word... " >&6; } 5012if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 5013 $as_echo_n "(cached) " >&6 5014else 5015 if test -n "$ac_ct_AR"; then 5016 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 5017else 5018as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5019for as_dir in $PATH 5020do 5021 IFS=$as_save_IFS 5022 test -z "$as_dir" && as_dir=. 5023 for ac_exec_ext in '' $ac_executable_extensions; do 5024 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5025 ac_cv_prog_ac_ct_AR="ar" 5026 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5027 break 2 5028 fi 5029done 5030 done 5031IFS=$as_save_IFS 5032 5033fi 5034fi 5035ac_ct_AR=$ac_cv_prog_ac_ct_AR 5036if test -n "$ac_ct_AR"; then 5037 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 5038$as_echo "$ac_ct_AR" >&6; } 5039else 5040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5041$as_echo "no" >&6; } 5042fi 5043 5044 if test "x$ac_ct_AR" = x; then 5045 AR="" 5046 else 5047 case $cross_compiling:$ac_tool_warned in 5048yes:) 5049{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5050$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5051ac_tool_warned=yes ;; 5052esac 5053 AR=$ac_ct_AR 5054 fi 5055else 5056 AR="$ac_cv_prog_AR" 5057fi 5058 5059if test -n "$ac_tool_prefix"; then 5060 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5061set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5063$as_echo_n "checking for $ac_word... " >&6; } 5064if test "${ac_cv_prog_RANLIB+set}" = set; then : 5065 $as_echo_n "(cached) " >&6 5066else 5067 if test -n "$RANLIB"; then 5068 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5069else 5070as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5071for as_dir in $PATH 5072do 5073 IFS=$as_save_IFS 5074 test -z "$as_dir" && as_dir=. 5075 for ac_exec_ext in '' $ac_executable_extensions; do 5076 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5077 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5078 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5079 break 2 5080 fi 5081done 5082 done 5083IFS=$as_save_IFS 5084 5085fi 5086fi 5087RANLIB=$ac_cv_prog_RANLIB 5088if test -n "$RANLIB"; then 5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5090$as_echo "$RANLIB" >&6; } 5091else 5092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5093$as_echo "no" >&6; } 5094fi 5095 5096 5097fi 5098if test -z "$ac_cv_prog_RANLIB"; then 5099 ac_ct_RANLIB=$RANLIB 5100 # Extract the first word of "ranlib", so it can be a program name with args. 5101set dummy ranlib; ac_word=$2 5102{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5103$as_echo_n "checking for $ac_word... " >&6; } 5104if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 5105 $as_echo_n "(cached) " >&6 5106else 5107 if test -n "$ac_ct_RANLIB"; then 5108 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5109else 5110as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5111for as_dir in $PATH 5112do 5113 IFS=$as_save_IFS 5114 test -z "$as_dir" && as_dir=. 5115 for ac_exec_ext in '' $ac_executable_extensions; do 5116 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5117 ac_cv_prog_ac_ct_RANLIB="ranlib" 5118 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5119 break 2 5120 fi 5121done 5122 done 5123IFS=$as_save_IFS 5124 5125fi 5126fi 5127ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5128if test -n "$ac_ct_RANLIB"; then 5129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5130$as_echo "$ac_ct_RANLIB" >&6; } 5131else 5132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5133$as_echo "no" >&6; } 5134fi 5135 5136 if test "x$ac_ct_RANLIB" = x; then 5137 RANLIB=":" 5138 else 5139 case $cross_compiling:$ac_tool_warned in 5140yes:) 5141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5143ac_tool_warned=yes ;; 5144esac 5145 RANLIB=$ac_ct_RANLIB 5146 fi 5147else 5148 RANLIB="$ac_cv_prog_RANLIB" 5149fi 5150 5151 5152# Check we may build wrappers library 5153echo "test: bndmov %bnd0, %bnd1" > conftest.s 5154if { ac_try='$AS -o conftest.o conftest.s 1>&5' 5155 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5156 (eval $ac_try) 2>&5 5157 ac_status=$? 5158 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5159 test $ac_status = 0; }; } 5160then 5161 mpx_as=yes 5162else 5163 mpx_as=no 5164 echo "configure: no MPX support fo as" >&5 5165fi 5166rm -f conftest.o conftest.s 5167 if test "x$mpx_as" = "xyes"; then 5168 MPX_AS_SUPPORTED_TRUE= 5169 MPX_AS_SUPPORTED_FALSE='#' 5170else 5171 MPX_AS_SUPPORTED_TRUE='#' 5172 MPX_AS_SUPPORTED_FALSE= 5173fi 5174 5175 5176# Configure libtool 5177enable_dlopen=yes 5178 5179 5180 5181case `pwd` in 5182 *\ * | *\ *) 5183 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5184$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5185esac 5186 5187 5188 5189macro_version='2.2.7a' 5190macro_revision='1.3134' 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204ltmain="$ac_aux_dir/ltmain.sh" 5205 5206# Backslashify metacharacters that are still active within 5207# double-quoted strings. 5208sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5209 5210# Same as above, but do not quote variable references. 5211double_quote_subst='s/\(["`\\]\)/\\\1/g' 5212 5213# Sed substitution to delay expansion of an escaped shell variable in a 5214# double_quote_subst'ed string. 5215delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5216 5217# Sed substitution to delay expansion of an escaped single quote. 5218delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5219 5220# Sed substitution to avoid accidental globbing in evaled expressions 5221no_glob_subst='s/\*/\\\*/g' 5222 5223ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5224ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5225ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5226 5227{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5228$as_echo_n "checking how to print strings... " >&6; } 5229# Test print first, because it will be a builtin if present. 5230if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5231 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5232 ECHO='print -r --' 5233elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5234 ECHO='printf %s\n' 5235else 5236 # Use this function as a fallback that always works. 5237 func_fallback_echo () 5238 { 5239 eval 'cat <<_LTECHO_EOF 5240$1 5241_LTECHO_EOF' 5242 } 5243 ECHO='func_fallback_echo' 5244fi 5245 5246# func_echo_all arg... 5247# Invoke $ECHO with all args, space-separated. 5248func_echo_all () 5249{ 5250 $ECHO "" 5251} 5252 5253case "$ECHO" in 5254 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5255$as_echo "printf" >&6; } ;; 5256 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5257$as_echo "print -r" >&6; } ;; 5258 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5259$as_echo "cat" >&6; } ;; 5260esac 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5276$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5277if test "${ac_cv_path_SED+set}" = set; then : 5278 $as_echo_n "(cached) " >&6 5279else 5280 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5281 for ac_i in 1 2 3 4 5 6 7; do 5282 ac_script="$ac_script$as_nl$ac_script" 5283 done 5284 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5285 { ac_script=; unset ac_script;} 5286 if test -z "$SED"; then 5287 ac_path_SED_found=false 5288 # Loop through the user's path and test for each of PROGNAME-LIST 5289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5290for as_dir in $PATH 5291do 5292 IFS=$as_save_IFS 5293 test -z "$as_dir" && as_dir=. 5294 for ac_prog in sed gsed; do 5295 for ac_exec_ext in '' $ac_executable_extensions; do 5296 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5297 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5298# Check for GNU ac_path_SED and select it if it is found. 5299 # Check for GNU $ac_path_SED 5300case `"$ac_path_SED" --version 2>&1` in 5301*GNU*) 5302 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5303*) 5304 ac_count=0 5305 $as_echo_n 0123456789 >"conftest.in" 5306 while : 5307 do 5308 cat "conftest.in" "conftest.in" >"conftest.tmp" 5309 mv "conftest.tmp" "conftest.in" 5310 cp "conftest.in" "conftest.nl" 5311 $as_echo '' >> "conftest.nl" 5312 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5313 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5314 as_fn_arith $ac_count + 1 && ac_count=$as_val 5315 if test $ac_count -gt ${ac_path_SED_max-0}; then 5316 # Best one so far, save it but keep looking for a better one 5317 ac_cv_path_SED="$ac_path_SED" 5318 ac_path_SED_max=$ac_count 5319 fi 5320 # 10*(2^10) chars as input seems more than enough 5321 test $ac_count -gt 10 && break 5322 done 5323 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5324esac 5325 5326 $ac_path_SED_found && break 3 5327 done 5328 done 5329 done 5330IFS=$as_save_IFS 5331 if test -z "$ac_cv_path_SED"; then 5332 as_fn_error "no acceptable sed could be found in \$PATH" "$LINENO" 5 5333 fi 5334else 5335 ac_cv_path_SED=$SED 5336fi 5337 5338fi 5339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5340$as_echo "$ac_cv_path_SED" >&6; } 5341 SED="$ac_cv_path_SED" 5342 rm -f conftest.sed 5343 5344test -z "$SED" && SED=sed 5345Xsed="$SED -e 1s/^X//" 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5358$as_echo_n "checking for fgrep... " >&6; } 5359if test "${ac_cv_path_FGREP+set}" = set; then : 5360 $as_echo_n "(cached) " >&6 5361else 5362 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5363 then ac_cv_path_FGREP="$GREP -F" 5364 else 5365 if test -z "$FGREP"; then 5366 ac_path_FGREP_found=false 5367 # Loop through the user's path and test for each of PROGNAME-LIST 5368 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5369for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5370do 5371 IFS=$as_save_IFS 5372 test -z "$as_dir" && as_dir=. 5373 for ac_prog in fgrep; do 5374 for ac_exec_ext in '' $ac_executable_extensions; do 5375 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5376 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5377# Check for GNU ac_path_FGREP and select it if it is found. 5378 # Check for GNU $ac_path_FGREP 5379case `"$ac_path_FGREP" --version 2>&1` in 5380*GNU*) 5381 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5382*) 5383 ac_count=0 5384 $as_echo_n 0123456789 >"conftest.in" 5385 while : 5386 do 5387 cat "conftest.in" "conftest.in" >"conftest.tmp" 5388 mv "conftest.tmp" "conftest.in" 5389 cp "conftest.in" "conftest.nl" 5390 $as_echo 'FGREP' >> "conftest.nl" 5391 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5392 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5393 as_fn_arith $ac_count + 1 && ac_count=$as_val 5394 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5395 # Best one so far, save it but keep looking for a better one 5396 ac_cv_path_FGREP="$ac_path_FGREP" 5397 ac_path_FGREP_max=$ac_count 5398 fi 5399 # 10*(2^10) chars as input seems more than enough 5400 test $ac_count -gt 10 && break 5401 done 5402 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5403esac 5404 5405 $ac_path_FGREP_found && break 3 5406 done 5407 done 5408 done 5409IFS=$as_save_IFS 5410 if test -z "$ac_cv_path_FGREP"; then 5411 as_fn_error "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5412 fi 5413else 5414 ac_cv_path_FGREP=$FGREP 5415fi 5416 5417 fi 5418fi 5419{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5420$as_echo "$ac_cv_path_FGREP" >&6; } 5421 FGREP="$ac_cv_path_FGREP" 5422 5423 5424test -z "$GREP" && GREP=grep 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444# Check whether --with-gnu-ld was given. 5445if test "${with_gnu_ld+set}" = set; then : 5446 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5447else 5448 with_gnu_ld=no 5449fi 5450 5451ac_prog=ld 5452if test "$GCC" = yes; then 5453 # Check if gcc -print-prog-name=ld gives a path. 5454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5455$as_echo_n "checking for ld used by $CC... " >&6; } 5456 case $host in 5457 *-*-mingw*) 5458 # gcc leaves a trailing carriage return which upsets mingw 5459 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5460 *) 5461 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5462 esac 5463 case $ac_prog in 5464 # Accept absolute paths. 5465 [\\/]* | ?:[\\/]*) 5466 re_direlt='/[^/][^/]*/\.\./' 5467 # Canonicalize the pathname of ld 5468 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5469 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5470 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5471 done 5472 test -z "$LD" && LD="$ac_prog" 5473 ;; 5474 "") 5475 # If it fails, then pretend we aren't using GCC. 5476 ac_prog=ld 5477 ;; 5478 *) 5479 # If it is relative, then search for the first ld in PATH. 5480 with_gnu_ld=unknown 5481 ;; 5482 esac 5483elif test "$with_gnu_ld" = yes; then 5484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5485$as_echo_n "checking for GNU ld... " >&6; } 5486else 5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5488$as_echo_n "checking for non-GNU ld... " >&6; } 5489fi 5490if test "${lt_cv_path_LD+set}" = set; then : 5491 $as_echo_n "(cached) " >&6 5492else 5493 if test -z "$LD"; then 5494 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5495 for ac_dir in $PATH; do 5496 IFS="$lt_save_ifs" 5497 test -z "$ac_dir" && ac_dir=. 5498 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5499 lt_cv_path_LD="$ac_dir/$ac_prog" 5500 # Check to see if the program is GNU ld. I'd rather use --version, 5501 # but apparently some variants of GNU ld only accept -v. 5502 # Break only if it was the GNU/non-GNU ld that we prefer. 5503 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5504 *GNU* | *'with BFD'*) 5505 test "$with_gnu_ld" != no && break 5506 ;; 5507 *) 5508 test "$with_gnu_ld" != yes && break 5509 ;; 5510 esac 5511 fi 5512 done 5513 IFS="$lt_save_ifs" 5514else 5515 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5516fi 5517fi 5518 5519LD="$lt_cv_path_LD" 5520if test -n "$LD"; then 5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5522$as_echo "$LD" >&6; } 5523else 5524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5525$as_echo "no" >&6; } 5526fi 5527test -z "$LD" && as_fn_error "no acceptable ld found in \$PATH" "$LINENO" 5 5528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5529$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5530if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5531 $as_echo_n "(cached) " >&6 5532else 5533 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5534case `$LD -v 2>&1 </dev/null` in 5535*GNU* | *'with BFD'*) 5536 lt_cv_prog_gnu_ld=yes 5537 ;; 5538*) 5539 lt_cv_prog_gnu_ld=no 5540 ;; 5541esac 5542fi 5543{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5544$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5545with_gnu_ld=$lt_cv_prog_gnu_ld 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5556$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5557if test "${lt_cv_path_NM+set}" = set; then : 5558 $as_echo_n "(cached) " >&6 5559else 5560 if test -n "$NM"; then 5561 # Let the user override the test. 5562 lt_cv_path_NM="$NM" 5563else 5564 lt_nm_to_check="${ac_tool_prefix}nm" 5565 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5566 lt_nm_to_check="$lt_nm_to_check nm" 5567 fi 5568 for lt_tmp_nm in $lt_nm_to_check; do 5569 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5570 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5571 IFS="$lt_save_ifs" 5572 test -z "$ac_dir" && ac_dir=. 5573 tmp_nm="$ac_dir/$lt_tmp_nm" 5574 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5575 # Check to see if the nm accepts a BSD-compat flag. 5576 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5577 # nm: unknown option "B" ignored 5578 # Tru64's nm complains that /dev/null is an invalid object file 5579 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5580 */dev/null* | *'Invalid file or object type'*) 5581 lt_cv_path_NM="$tmp_nm -B" 5582 break 5583 ;; 5584 *) 5585 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5586 */dev/null*) 5587 lt_cv_path_NM="$tmp_nm -p" 5588 break 5589 ;; 5590 *) 5591 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5592 continue # so that we can try to find one that supports BSD flags 5593 ;; 5594 esac 5595 ;; 5596 esac 5597 fi 5598 done 5599 IFS="$lt_save_ifs" 5600 done 5601 : ${lt_cv_path_NM=no} 5602fi 5603fi 5604{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5605$as_echo "$lt_cv_path_NM" >&6; } 5606if test "$lt_cv_path_NM" != "no"; then 5607 NM="$lt_cv_path_NM" 5608else 5609 # Didn't find any BSD compatible name lister, look for dumpbin. 5610 if test -n "$DUMPBIN"; then : 5611 # Let the user override the test. 5612 else 5613 if test -n "$ac_tool_prefix"; then 5614 for ac_prog in dumpbin "link -dump" 5615 do 5616 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5617set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5619$as_echo_n "checking for $ac_word... " >&6; } 5620if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5621 $as_echo_n "(cached) " >&6 5622else 5623 if test -n "$DUMPBIN"; then 5624 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5625else 5626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5627for as_dir in $PATH 5628do 5629 IFS=$as_save_IFS 5630 test -z "$as_dir" && as_dir=. 5631 for ac_exec_ext in '' $ac_executable_extensions; do 5632 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5633 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5635 break 2 5636 fi 5637done 5638 done 5639IFS=$as_save_IFS 5640 5641fi 5642fi 5643DUMPBIN=$ac_cv_prog_DUMPBIN 5644if test -n "$DUMPBIN"; then 5645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5646$as_echo "$DUMPBIN" >&6; } 5647else 5648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5649$as_echo "no" >&6; } 5650fi 5651 5652 5653 test -n "$DUMPBIN" && break 5654 done 5655fi 5656if test -z "$DUMPBIN"; then 5657 ac_ct_DUMPBIN=$DUMPBIN 5658 for ac_prog in dumpbin "link -dump" 5659do 5660 # Extract the first word of "$ac_prog", so it can be a program name with args. 5661set dummy $ac_prog; ac_word=$2 5662{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5663$as_echo_n "checking for $ac_word... " >&6; } 5664if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5665 $as_echo_n "(cached) " >&6 5666else 5667 if test -n "$ac_ct_DUMPBIN"; then 5668 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5669else 5670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5671for as_dir in $PATH 5672do 5673 IFS=$as_save_IFS 5674 test -z "$as_dir" && as_dir=. 5675 for ac_exec_ext in '' $ac_executable_extensions; do 5676 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5677 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5678 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5679 break 2 5680 fi 5681done 5682 done 5683IFS=$as_save_IFS 5684 5685fi 5686fi 5687ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5688if test -n "$ac_ct_DUMPBIN"; then 5689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5690$as_echo "$ac_ct_DUMPBIN" >&6; } 5691else 5692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5693$as_echo "no" >&6; } 5694fi 5695 5696 5697 test -n "$ac_ct_DUMPBIN" && break 5698done 5699 5700 if test "x$ac_ct_DUMPBIN" = x; then 5701 DUMPBIN=":" 5702 else 5703 case $cross_compiling:$ac_tool_warned in 5704yes:) 5705{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5706$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5707ac_tool_warned=yes ;; 5708esac 5709 DUMPBIN=$ac_ct_DUMPBIN 5710 fi 5711fi 5712 5713 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5714 *COFF*) 5715 DUMPBIN="$DUMPBIN -symbols" 5716 ;; 5717 *) 5718 DUMPBIN=: 5719 ;; 5720 esac 5721 fi 5722 5723 if test "$DUMPBIN" != ":"; then 5724 NM="$DUMPBIN" 5725 fi 5726fi 5727test -z "$NM" && NM=nm 5728 5729 5730 5731 5732 5733 5734{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5735$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5736if test "${lt_cv_nm_interface+set}" = set; then : 5737 $as_echo_n "(cached) " >&6 5738else 5739 lt_cv_nm_interface="BSD nm" 5740 echo "int some_variable = 0;" > conftest.$ac_ext 5741 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5742 (eval "$ac_compile" 2>conftest.err) 5743 cat conftest.err >&5 5744 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5745 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5746 cat conftest.err >&5 5747 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5748 cat conftest.out >&5 5749 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5750 lt_cv_nm_interface="MS dumpbin" 5751 fi 5752 rm -f conftest* 5753fi 5754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5755$as_echo "$lt_cv_nm_interface" >&6; } 5756 5757{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5758$as_echo_n "checking whether ln -s works... " >&6; } 5759LN_S=$as_ln_s 5760if test "$LN_S" = "ln -s"; then 5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5762$as_echo "yes" >&6; } 5763else 5764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5765$as_echo "no, using $LN_S" >&6; } 5766fi 5767 5768# find the maximum length of command line arguments 5769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5770$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5771if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5772 $as_echo_n "(cached) " >&6 5773else 5774 i=0 5775 teststring="ABCD" 5776 5777 case $build_os in 5778 msdosdjgpp*) 5779 # On DJGPP, this test can blow up pretty badly due to problems in libc 5780 # (any single argument exceeding 2000 bytes causes a buffer overrun 5781 # during glob expansion). Even if it were fixed, the result of this 5782 # check would be larger than it should be. 5783 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5784 ;; 5785 5786 gnu*) 5787 # Under GNU Hurd, this test is not required because there is 5788 # no limit to the length of command line arguments. 5789 # Libtool will interpret -1 as no limit whatsoever 5790 lt_cv_sys_max_cmd_len=-1; 5791 ;; 5792 5793 cygwin* | mingw* | cegcc*) 5794 # On Win9x/ME, this test blows up -- it succeeds, but takes 5795 # about 5 minutes as the teststring grows exponentially. 5796 # Worse, since 9x/ME are not pre-emptively multitasking, 5797 # you end up with a "frozen" computer, even though with patience 5798 # the test eventually succeeds (with a max line length of 256k). 5799 # Instead, let's just punt: use the minimum linelength reported by 5800 # all of the supported platforms: 8192 (on NT/2K/XP). 5801 lt_cv_sys_max_cmd_len=8192; 5802 ;; 5803 5804 mint*) 5805 # On MiNT this can take a long time and run out of memory. 5806 lt_cv_sys_max_cmd_len=8192; 5807 ;; 5808 5809 amigaos*) 5810 # On AmigaOS with pdksh, this test takes hours, literally. 5811 # So we just punt and use a minimum line length of 8192. 5812 lt_cv_sys_max_cmd_len=8192; 5813 ;; 5814 5815 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5816 # This has been around since 386BSD, at least. Likely further. 5817 if test -x /sbin/sysctl; then 5818 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5819 elif test -x /usr/sbin/sysctl; then 5820 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5821 else 5822 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5823 fi 5824 # And add a safety zone 5825 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5826 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5827 ;; 5828 5829 interix*) 5830 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5831 lt_cv_sys_max_cmd_len=196608 5832 ;; 5833 5834 osf*) 5835 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5836 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5837 # nice to cause kernel panics so lets avoid the loop below. 5838 # First set a reasonable default. 5839 lt_cv_sys_max_cmd_len=16384 5840 # 5841 if test -x /sbin/sysconfig; then 5842 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5843 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5844 esac 5845 fi 5846 ;; 5847 sco3.2v5*) 5848 lt_cv_sys_max_cmd_len=102400 5849 ;; 5850 sysv5* | sco5v6* | sysv4.2uw2*) 5851 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5852 if test -n "$kargmax"; then 5853 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5854 else 5855 lt_cv_sys_max_cmd_len=32768 5856 fi 5857 ;; 5858 *) 5859 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5860 if test -n "$lt_cv_sys_max_cmd_len"; then 5861 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5862 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5863 else 5864 # Make teststring a little bigger before we do anything with it. 5865 # a 1K string should be a reasonable start. 5866 for i in 1 2 3 4 5 6 7 8 ; do 5867 teststring=$teststring$teststring 5868 done 5869 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5870 # If test is not a shell built-in, we'll probably end up computing a 5871 # maximum length that is only half of the actual maximum length, but 5872 # we can't tell. 5873 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5874 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5875 test $i != 17 # 1/2 MB should be enough 5876 do 5877 i=`expr $i + 1` 5878 teststring=$teststring$teststring 5879 done 5880 # Only check the string length outside the loop. 5881 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5882 teststring= 5883 # Add a significant safety factor because C++ compilers can tack on 5884 # massive amounts of additional arguments before passing them to the 5885 # linker. It appears as though 1/2 is a usable value. 5886 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5887 fi 5888 ;; 5889 esac 5890 5891fi 5892 5893if test -n $lt_cv_sys_max_cmd_len ; then 5894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5895$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5896else 5897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5898$as_echo "none" >&6; } 5899fi 5900max_cmd_len=$lt_cv_sys_max_cmd_len 5901 5902 5903 5904 5905 5906 5907: ${CP="cp -f"} 5908: ${MV="mv -f"} 5909: ${RM="rm -f"} 5910 5911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5912$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5913# Try some XSI features 5914xsi_shell=no 5915( _lt_dummy="a/b/c" 5916 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5917 = c,a/b,, \ 5918 && eval 'test $(( 1 + 1 )) -eq 2 \ 5919 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5920 && xsi_shell=yes 5921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5922$as_echo "$xsi_shell" >&6; } 5923 5924 5925{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5926$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5927lt_shell_append=no 5928( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5929 >/dev/null 2>&1 \ 5930 && lt_shell_append=yes 5931{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5932$as_echo "$lt_shell_append" >&6; } 5933 5934 5935if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5936 lt_unset=unset 5937else 5938 lt_unset=false 5939fi 5940 5941 5942 5943 5944 5945# test EBCDIC or ASCII 5946case `echo X|tr X '\101'` in 5947 A) # ASCII based system 5948 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5949 lt_SP2NL='tr \040 \012' 5950 lt_NL2SP='tr \015\012 \040\040' 5951 ;; 5952 *) # EBCDIC based system 5953 lt_SP2NL='tr \100 \n' 5954 lt_NL2SP='tr \r\n \100\100' 5955 ;; 5956esac 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 5967$as_echo_n "checking for $LD option to reload object files... " >&6; } 5968if test "${lt_cv_ld_reload_flag+set}" = set; then : 5969 $as_echo_n "(cached) " >&6 5970else 5971 lt_cv_ld_reload_flag='-r' 5972fi 5973{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 5974$as_echo "$lt_cv_ld_reload_flag" >&6; } 5975reload_flag=$lt_cv_ld_reload_flag 5976case $reload_flag in 5977"" | " "*) ;; 5978*) reload_flag=" $reload_flag" ;; 5979esac 5980reload_cmds='$LD$reload_flag -o $output$reload_objs' 5981case $host_os in 5982 darwin*) 5983 if test "$GCC" = yes; then 5984 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 5985 else 5986 reload_cmds='$LD$reload_flag -o $output$reload_objs' 5987 fi 5988 ;; 5989esac 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999if test -n "$ac_tool_prefix"; then 6000 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6001set dummy ${ac_tool_prefix}objdump; ac_word=$2 6002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6003$as_echo_n "checking for $ac_word... " >&6; } 6004if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6005 $as_echo_n "(cached) " >&6 6006else 6007 if test -n "$OBJDUMP"; then 6008 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6009else 6010as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6011for as_dir in $PATH 6012do 6013 IFS=$as_save_IFS 6014 test -z "$as_dir" && as_dir=. 6015 for ac_exec_ext in '' $ac_executable_extensions; do 6016 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6017 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6019 break 2 6020 fi 6021done 6022 done 6023IFS=$as_save_IFS 6024 6025fi 6026fi 6027OBJDUMP=$ac_cv_prog_OBJDUMP 6028if test -n "$OBJDUMP"; then 6029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6030$as_echo "$OBJDUMP" >&6; } 6031else 6032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6033$as_echo "no" >&6; } 6034fi 6035 6036 6037fi 6038if test -z "$ac_cv_prog_OBJDUMP"; then 6039 ac_ct_OBJDUMP=$OBJDUMP 6040 # Extract the first word of "objdump", so it can be a program name with args. 6041set dummy objdump; ac_word=$2 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6043$as_echo_n "checking for $ac_word... " >&6; } 6044if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6045 $as_echo_n "(cached) " >&6 6046else 6047 if test -n "$ac_ct_OBJDUMP"; then 6048 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6049else 6050as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6051for as_dir in $PATH 6052do 6053 IFS=$as_save_IFS 6054 test -z "$as_dir" && as_dir=. 6055 for ac_exec_ext in '' $ac_executable_extensions; do 6056 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6057 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6059 break 2 6060 fi 6061done 6062 done 6063IFS=$as_save_IFS 6064 6065fi 6066fi 6067ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6068if test -n "$ac_ct_OBJDUMP"; then 6069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6070$as_echo "$ac_ct_OBJDUMP" >&6; } 6071else 6072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6073$as_echo "no" >&6; } 6074fi 6075 6076 if test "x$ac_ct_OBJDUMP" = x; then 6077 OBJDUMP="false" 6078 else 6079 case $cross_compiling:$ac_tool_warned in 6080yes:) 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6082$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6083ac_tool_warned=yes ;; 6084esac 6085 OBJDUMP=$ac_ct_OBJDUMP 6086 fi 6087else 6088 OBJDUMP="$ac_cv_prog_OBJDUMP" 6089fi 6090 6091test -z "$OBJDUMP" && OBJDUMP=objdump 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6102$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6103if test "${lt_cv_deplibs_check_method+set}" = set; then : 6104 $as_echo_n "(cached) " >&6 6105else 6106 lt_cv_file_magic_cmd='$MAGIC_CMD' 6107lt_cv_file_magic_test_file= 6108lt_cv_deplibs_check_method='unknown' 6109# Need to set the preceding variable on all platforms that support 6110# interlibrary dependencies. 6111# 'none' -- dependencies not supported. 6112# `unknown' -- same as none, but documents that we really don't know. 6113# 'pass_all' -- all dependencies passed with no checks. 6114# 'test_compile' -- check by making test program. 6115# 'file_magic [[regex]]' -- check by looking for files in library path 6116# which responds to the $file_magic_cmd with a given extended regex. 6117# If you have `file' or equivalent on your system and you're not sure 6118# whether `pass_all' will *always* work, you probably want this one. 6119 6120case $host_os in 6121aix[4-9]*) 6122 lt_cv_deplibs_check_method=pass_all 6123 ;; 6124 6125beos*) 6126 lt_cv_deplibs_check_method=pass_all 6127 ;; 6128 6129bsdi[45]*) 6130 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6131 lt_cv_file_magic_cmd='/usr/bin/file -L' 6132 lt_cv_file_magic_test_file=/shlib/libc.so 6133 ;; 6134 6135cygwin*) 6136 # func_win32_libid is a shell function defined in ltmain.sh 6137 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6138 lt_cv_file_magic_cmd='func_win32_libid' 6139 ;; 6140 6141mingw* | pw32*) 6142 # Base MSYS/MinGW do not provide the 'file' command needed by 6143 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6144 # unless we find 'file', for example because we are cross-compiling. 6145 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6146 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6147 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6148 lt_cv_file_magic_cmd='func_win32_libid' 6149 else 6150 lt_cv_deplibs_check_method='file_magic file format pei*-i386(.*architecture: i386)?' 6151 lt_cv_file_magic_cmd='$OBJDUMP -f' 6152 fi 6153 ;; 6154 6155cegcc*) 6156 # use the weaker test based on 'objdump'. See mingw*. 6157 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6158 lt_cv_file_magic_cmd='$OBJDUMP -f' 6159 ;; 6160 6161darwin* | rhapsody*) 6162 lt_cv_deplibs_check_method=pass_all 6163 ;; 6164 6165freebsd* | dragonfly*) 6166 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6167 case $host_cpu in 6168 i*86 ) 6169 # Not sure whether the presence of OpenBSD here was a mistake. 6170 # Let's accept both of them until this is cleared up. 6171 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6172 lt_cv_file_magic_cmd=/usr/bin/file 6173 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6174 ;; 6175 esac 6176 else 6177 lt_cv_deplibs_check_method=pass_all 6178 fi 6179 ;; 6180 6181gnu*) 6182 lt_cv_deplibs_check_method=pass_all 6183 ;; 6184 6185haiku*) 6186 lt_cv_deplibs_check_method=pass_all 6187 ;; 6188 6189hpux10.20* | hpux11*) 6190 lt_cv_file_magic_cmd=/usr/bin/file 6191 case $host_cpu in 6192 ia64*) 6193 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6194 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6195 ;; 6196 hppa*64*) 6197 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]' 6198 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6199 ;; 6200 *) 6201 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6202 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6203 ;; 6204 esac 6205 ;; 6206 6207interix[3-9]*) 6208 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6209 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6210 ;; 6211 6212irix5* | irix6* | nonstopux*) 6213 case $LD in 6214 *-32|*"-32 ") libmagic=32-bit;; 6215 *-n32|*"-n32 ") libmagic=N32;; 6216 *-64|*"-64 ") libmagic=64-bit;; 6217 *) libmagic=never-match;; 6218 esac 6219 lt_cv_deplibs_check_method=pass_all 6220 ;; 6221 6222# This must be Linux ELF. 6223linux* | k*bsd*-gnu | kopensolaris*-gnu) 6224 lt_cv_deplibs_check_method=pass_all 6225 ;; 6226 6227netbsd*) 6228 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6229 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6230 else 6231 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6232 fi 6233 ;; 6234 6235newos6*) 6236 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6237 lt_cv_file_magic_cmd=/usr/bin/file 6238 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6239 ;; 6240 6241*nto* | *qnx*) 6242 lt_cv_deplibs_check_method=pass_all 6243 ;; 6244 6245openbsd*) 6246 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6247 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6248 else 6249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6250 fi 6251 ;; 6252 6253osf3* | osf4* | osf5*) 6254 lt_cv_deplibs_check_method=pass_all 6255 ;; 6256 6257rdos*) 6258 lt_cv_deplibs_check_method=pass_all 6259 ;; 6260 6261solaris*) 6262 lt_cv_deplibs_check_method=pass_all 6263 ;; 6264 6265sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6266 lt_cv_deplibs_check_method=pass_all 6267 ;; 6268 6269sysv4 | sysv4.3*) 6270 case $host_vendor in 6271 motorola) 6272 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]' 6273 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6274 ;; 6275 ncr) 6276 lt_cv_deplibs_check_method=pass_all 6277 ;; 6278 sequent) 6279 lt_cv_file_magic_cmd='/bin/file' 6280 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6281 ;; 6282 sni) 6283 lt_cv_file_magic_cmd='/bin/file' 6284 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6285 lt_cv_file_magic_test_file=/lib/libc.so 6286 ;; 6287 siemens) 6288 lt_cv_deplibs_check_method=pass_all 6289 ;; 6290 pc) 6291 lt_cv_deplibs_check_method=pass_all 6292 ;; 6293 esac 6294 ;; 6295 6296tpf*) 6297 lt_cv_deplibs_check_method=pass_all 6298 ;; 6299esac 6300 6301fi 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6303$as_echo "$lt_cv_deplibs_check_method" >&6; } 6304file_magic_cmd=$lt_cv_file_magic_cmd 6305deplibs_check_method=$lt_cv_deplibs_check_method 6306test -z "$deplibs_check_method" && deplibs_check_method=unknown 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319if test -n "$ac_tool_prefix"; then 6320 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6321set dummy ${ac_tool_prefix}ar; ac_word=$2 6322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6323$as_echo_n "checking for $ac_word... " >&6; } 6324if test "${ac_cv_prog_AR+set}" = set; then : 6325 $as_echo_n "(cached) " >&6 6326else 6327 if test -n "$AR"; then 6328 ac_cv_prog_AR="$AR" # Let the user override the test. 6329else 6330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6331for as_dir in $PATH 6332do 6333 IFS=$as_save_IFS 6334 test -z "$as_dir" && as_dir=. 6335 for ac_exec_ext in '' $ac_executable_extensions; do 6336 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6337 ac_cv_prog_AR="${ac_tool_prefix}ar" 6338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6339 break 2 6340 fi 6341done 6342 done 6343IFS=$as_save_IFS 6344 6345fi 6346fi 6347AR=$ac_cv_prog_AR 6348if test -n "$AR"; then 6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6350$as_echo "$AR" >&6; } 6351else 6352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6353$as_echo "no" >&6; } 6354fi 6355 6356 6357fi 6358if test -z "$ac_cv_prog_AR"; then 6359 ac_ct_AR=$AR 6360 # Extract the first word of "ar", so it can be a program name with args. 6361set dummy ar; ac_word=$2 6362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6363$as_echo_n "checking for $ac_word... " >&6; } 6364if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 if test -n "$ac_ct_AR"; then 6368 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6369else 6370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6371for as_dir in $PATH 6372do 6373 IFS=$as_save_IFS 6374 test -z "$as_dir" && as_dir=. 6375 for ac_exec_ext in '' $ac_executable_extensions; do 6376 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6377 ac_cv_prog_ac_ct_AR="ar" 6378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6379 break 2 6380 fi 6381done 6382 done 6383IFS=$as_save_IFS 6384 6385fi 6386fi 6387ac_ct_AR=$ac_cv_prog_ac_ct_AR 6388if test -n "$ac_ct_AR"; then 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6390$as_echo "$ac_ct_AR" >&6; } 6391else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6393$as_echo "no" >&6; } 6394fi 6395 6396 if test "x$ac_ct_AR" = x; then 6397 AR="false" 6398 else 6399 case $cross_compiling:$ac_tool_warned in 6400yes:) 6401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6403ac_tool_warned=yes ;; 6404esac 6405 AR=$ac_ct_AR 6406 fi 6407else 6408 AR="$ac_cv_prog_AR" 6409fi 6410 6411test -z "$AR" && AR=ar 6412test -z "$AR_FLAGS" && AR_FLAGS=cru 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424if test -n "$ac_tool_prefix"; then 6425 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6426set dummy ${ac_tool_prefix}strip; ac_word=$2 6427{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6428$as_echo_n "checking for $ac_word... " >&6; } 6429if test "${ac_cv_prog_STRIP+set}" = set; then : 6430 $as_echo_n "(cached) " >&6 6431else 6432 if test -n "$STRIP"; then 6433 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 6434else 6435as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6436for as_dir in $PATH 6437do 6438 IFS=$as_save_IFS 6439 test -z "$as_dir" && as_dir=. 6440 for ac_exec_ext in '' $ac_executable_extensions; do 6441 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6442 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 6443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6444 break 2 6445 fi 6446done 6447 done 6448IFS=$as_save_IFS 6449 6450fi 6451fi 6452STRIP=$ac_cv_prog_STRIP 6453if test -n "$STRIP"; then 6454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6455$as_echo "$STRIP" >&6; } 6456else 6457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6458$as_echo "no" >&6; } 6459fi 6460 6461 6462fi 6463if test -z "$ac_cv_prog_STRIP"; then 6464 ac_ct_STRIP=$STRIP 6465 # Extract the first word of "strip", so it can be a program name with args. 6466set dummy strip; ac_word=$2 6467{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6468$as_echo_n "checking for $ac_word... " >&6; } 6469if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 if test -n "$ac_ct_STRIP"; then 6473 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6474else 6475as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6476for as_dir in $PATH 6477do 6478 IFS=$as_save_IFS 6479 test -z "$as_dir" && as_dir=. 6480 for ac_exec_ext in '' $ac_executable_extensions; do 6481 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6482 ac_cv_prog_ac_ct_STRIP="strip" 6483 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6484 break 2 6485 fi 6486done 6487 done 6488IFS=$as_save_IFS 6489 6490fi 6491fi 6492ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6493if test -n "$ac_ct_STRIP"; then 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6495$as_echo "$ac_ct_STRIP" >&6; } 6496else 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6498$as_echo "no" >&6; } 6499fi 6500 6501 if test "x$ac_ct_STRIP" = x; then 6502 STRIP=":" 6503 else 6504 case $cross_compiling:$ac_tool_warned in 6505yes:) 6506{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6507$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6508ac_tool_warned=yes ;; 6509esac 6510 STRIP=$ac_ct_STRIP 6511 fi 6512else 6513 STRIP="$ac_cv_prog_STRIP" 6514fi 6515 6516test -z "$STRIP" && STRIP=: 6517 6518 6519 6520 6521 6522 6523if test -n "$ac_tool_prefix"; then 6524 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6525set dummy ${ac_tool_prefix}ranlib; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if test "${ac_cv_prog_RANLIB+set}" = set; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$RANLIB"; then 6532 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6541 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551RANLIB=$ac_cv_prog_RANLIB 6552if test -n "$RANLIB"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6554$as_echo "$RANLIB" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 6561fi 6562if test -z "$ac_cv_prog_RANLIB"; then 6563 ac_ct_RANLIB=$RANLIB 6564 # Extract the first word of "ranlib", so it can be a program name with args. 6565set dummy ranlib; ac_word=$2 6566{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6567$as_echo_n "checking for $ac_word... " >&6; } 6568if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 if test -n "$ac_ct_RANLIB"; then 6572 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6573else 6574as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6575for as_dir in $PATH 6576do 6577 IFS=$as_save_IFS 6578 test -z "$as_dir" && as_dir=. 6579 for ac_exec_ext in '' $ac_executable_extensions; do 6580 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6581 ac_cv_prog_ac_ct_RANLIB="ranlib" 6582 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6583 break 2 6584 fi 6585done 6586 done 6587IFS=$as_save_IFS 6588 6589fi 6590fi 6591ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6592if test -n "$ac_ct_RANLIB"; then 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6594$as_echo "$ac_ct_RANLIB" >&6; } 6595else 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6597$as_echo "no" >&6; } 6598fi 6599 6600 if test "x$ac_ct_RANLIB" = x; then 6601 RANLIB=":" 6602 else 6603 case $cross_compiling:$ac_tool_warned in 6604yes:) 6605{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6606$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6607ac_tool_warned=yes ;; 6608esac 6609 RANLIB=$ac_ct_RANLIB 6610 fi 6611else 6612 RANLIB="$ac_cv_prog_RANLIB" 6613fi 6614 6615test -z "$RANLIB" && RANLIB=: 6616 6617 6618 6619 6620 6621 6622# Determine commands to create old-style static archives. 6623old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6624old_postinstall_cmds='chmod 644 $oldlib' 6625old_postuninstall_cmds= 6626 6627if test -n "$RANLIB"; then 6628 case $host_os in 6629 openbsd*) 6630 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6631 ;; 6632 *) 6633 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6634 ;; 6635 esac 6636 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6637fi 6638 6639case $host_os in 6640 darwin*) 6641 lock_old_archive_extraction=yes ;; 6642 *) 6643 lock_old_archive_extraction=no ;; 6644esac 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684# If no C compiler was specified, use CC. 6685LTCC=${LTCC-"$CC"} 6686 6687# If no C compiler flags were specified, use CFLAGS. 6688LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6689 6690# Allow CC to be a program name with arguments. 6691compiler=$CC 6692 6693 6694# Check for command to grab the raw symbol name followed by C symbol from nm. 6695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6696$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6697if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6698 $as_echo_n "(cached) " >&6 6699else 6700 6701# These are sane defaults that work on at least a few old systems. 6702# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6703 6704# Character class describing NM global symbol codes. 6705symcode='[BCDEGRST]' 6706 6707# Regexp to match symbols that can be accessed directly from C. 6708sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6709 6710# Define system-specific variables. 6711case $host_os in 6712aix*) 6713 symcode='[BCDT]' 6714 ;; 6715cygwin* | mingw* | pw32* | cegcc*) 6716 symcode='[ABCDGISTW]' 6717 ;; 6718hpux*) 6719 if test "$host_cpu" = ia64; then 6720 symcode='[ABCDEGRST]' 6721 fi 6722 ;; 6723irix* | nonstopux*) 6724 symcode='[BCDEGRST]' 6725 ;; 6726osf*) 6727 symcode='[BCDEGQRST]' 6728 ;; 6729solaris*) 6730 symcode='[BDRT]' 6731 ;; 6732sco3.2v5*) 6733 symcode='[DT]' 6734 ;; 6735sysv4.2uw2*) 6736 symcode='[DT]' 6737 ;; 6738sysv5* | sco5v6* | unixware* | OpenUNIX*) 6739 symcode='[ABDT]' 6740 ;; 6741sysv4) 6742 symcode='[DFNSTU]' 6743 ;; 6744esac 6745 6746# If we're using GNU nm, then use its standard symbol codes. 6747case `$NM -V 2>&1` in 6748*GNU* | *'with BFD'*) 6749 symcode='[ABCDGIRSTW]' ;; 6750esac 6751 6752# Transform an extracted symbol line into a proper C declaration. 6753# Some systems (esp. on ia64) link data and code symbols differently, 6754# so use this general approach. 6755lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6756 6757# Transform an extracted symbol line into symbol name and symbol address 6758lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6759lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'" 6760 6761# Handle CRLF in mingw tool chain 6762opt_cr= 6763case $build_os in 6764mingw*) 6765 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6766 ;; 6767esac 6768 6769# Try without a prefix underscore, then with it. 6770for ac_symprfx in "" "_"; do 6771 6772 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6773 symxfrm="\\1 $ac_symprfx\\2 \\2" 6774 6775 # Write the raw and C identifiers. 6776 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6777 # Fake it for dumpbin and say T for any non-static function 6778 # and D for any global variable. 6779 # Also find C++ and __fastcall symbols from MSVC++, 6780 # which start with @ or ?. 6781 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6782" {last_section=section; section=\$ 3};"\ 6783" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6784" \$ 0!~/External *\|/{next};"\ 6785" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6786" {if(hide[section]) next};"\ 6787" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6788" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6789" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6790" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6791" ' prfx=^$ac_symprfx" 6792 else 6793 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6794 fi 6795 6796 # Check to see that the pipe works correctly. 6797 pipe_works=no 6798 6799 rm -f conftest* 6800 cat > conftest.$ac_ext <<_LT_EOF 6801#ifdef __cplusplus 6802extern "C" { 6803#endif 6804char nm_test_var; 6805void nm_test_func(void); 6806void nm_test_func(void){} 6807#ifdef __cplusplus 6808} 6809#endif 6810int main(){nm_test_var='a';nm_test_func();return(0);} 6811_LT_EOF 6812 6813 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6814 (eval $ac_compile) 2>&5 6815 ac_status=$? 6816 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6817 test $ac_status = 0; }; then 6818 # Now try to grab the symbols. 6819 nlist=conftest.nm 6820 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6821 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6822 ac_status=$? 6823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6824 test $ac_status = 0; } && test -s "$nlist"; then 6825 # Try sorting and uniquifying the output. 6826 if sort "$nlist" | uniq > "$nlist"T; then 6827 mv -f "$nlist"T "$nlist" 6828 else 6829 rm -f "$nlist"T 6830 fi 6831 6832 # Make sure that we snagged all the symbols we need. 6833 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6834 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6835 cat <<_LT_EOF > conftest.$ac_ext 6836#ifdef __cplusplus 6837extern "C" { 6838#endif 6839 6840_LT_EOF 6841 # Now generate the symbol file. 6842 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6843 6844 cat <<_LT_EOF >> conftest.$ac_ext 6845 6846/* The mapping between symbol names and symbols. */ 6847const struct { 6848 const char *name; 6849 void *address; 6850} 6851lt__PROGRAM__LTX_preloaded_symbols[] = 6852{ 6853 { "@PROGRAM@", (void *) 0 }, 6854_LT_EOF 6855 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6856 cat <<\_LT_EOF >> conftest.$ac_ext 6857 {0, (void *) 0} 6858}; 6859 6860/* This works around a problem in FreeBSD linker */ 6861#ifdef FREEBSD_WORKAROUND 6862static const void *lt_preloaded_setup() { 6863 return lt__PROGRAM__LTX_preloaded_symbols; 6864} 6865#endif 6866 6867#ifdef __cplusplus 6868} 6869#endif 6870_LT_EOF 6871 # Now try linking the two files. 6872 mv conftest.$ac_objext conftstm.$ac_objext 6873 lt_save_LIBS="$LIBS" 6874 lt_save_CFLAGS="$CFLAGS" 6875 LIBS="conftstm.$ac_objext" 6876 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6877 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6878 (eval $ac_link) 2>&5 6879 ac_status=$? 6880 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6881 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6882 pipe_works=yes 6883 fi 6884 LIBS="$lt_save_LIBS" 6885 CFLAGS="$lt_save_CFLAGS" 6886 else 6887 echo "cannot find nm_test_func in $nlist" >&5 6888 fi 6889 else 6890 echo "cannot find nm_test_var in $nlist" >&5 6891 fi 6892 else 6893 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6894 fi 6895 else 6896 echo "$progname: failed program was:" >&5 6897 cat conftest.$ac_ext >&5 6898 fi 6899 rm -rf conftest* conftst* 6900 6901 # Do not use the global_symbol_pipe unless it works. 6902 if test "$pipe_works" = yes; then 6903 break 6904 else 6905 lt_cv_sys_global_symbol_pipe= 6906 fi 6907done 6908 6909fi 6910 6911if test -z "$lt_cv_sys_global_symbol_pipe"; then 6912 lt_cv_sys_global_symbol_to_cdecl= 6913fi 6914if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6916$as_echo "failed" >&6; } 6917else 6918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6919$as_echo "ok" >&6; } 6920fi 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943# Check whether --enable-libtool-lock was given. 6944if test "${enable_libtool_lock+set}" = set; then : 6945 enableval=$enable_libtool_lock; 6946fi 6947 6948test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6949 6950# Some flags need to be propagated to the compiler or linker for good 6951# libtool support. 6952case $host in 6953ia64-*-hpux*) 6954 # Find out which ABI we are using. 6955 echo 'int i;' > conftest.$ac_ext 6956 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6957 (eval $ac_compile) 2>&5 6958 ac_status=$? 6959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6960 test $ac_status = 0; }; then 6961 case `/usr/bin/file conftest.$ac_objext` in 6962 *ELF-32*) 6963 HPUX_IA64_MODE="32" 6964 ;; 6965 *ELF-64*) 6966 HPUX_IA64_MODE="64" 6967 ;; 6968 esac 6969 fi 6970 rm -rf conftest* 6971 ;; 6972*-*-irix6*) 6973 # Find out which ABI we are using. 6974 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 6975 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6976 (eval $ac_compile) 2>&5 6977 ac_status=$? 6978 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6979 test $ac_status = 0; }; then 6980 if test "$lt_cv_prog_gnu_ld" = yes; then 6981 case `/usr/bin/file conftest.$ac_objext` in 6982 *32-bit*) 6983 LD="${LD-ld} -melf32bsmip" 6984 ;; 6985 *N32*) 6986 LD="${LD-ld} -melf32bmipn32" 6987 ;; 6988 *64-bit*) 6989 LD="${LD-ld} -melf64bmip" 6990 ;; 6991 esac 6992 else 6993 case `/usr/bin/file conftest.$ac_objext` in 6994 *32-bit*) 6995 LD="${LD-ld} -32" 6996 ;; 6997 *N32*) 6998 LD="${LD-ld} -n32" 6999 ;; 7000 *64-bit*) 7001 LD="${LD-ld} -64" 7002 ;; 7003 esac 7004 fi 7005 fi 7006 rm -rf conftest* 7007 ;; 7008 7009x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 7010s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7011 # Find out which ABI we are using. 7012 echo 'int i;' > conftest.$ac_ext 7013 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7014 (eval $ac_compile) 2>&5 7015 ac_status=$? 7016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7017 test $ac_status = 0; }; then 7018 case `/usr/bin/file conftest.o` in 7019 *32-bit*) 7020 case $host in 7021 x86_64-*kfreebsd*-gnu) 7022 LD="${LD-ld} -m elf_i386_fbsd" 7023 ;; 7024 x86_64-*linux*) 7025 case `/usr/bin/file conftest.o` in 7026 *x86-64*) 7027 LD="${LD-ld} -m elf32_x86_64" 7028 ;; 7029 *) 7030 LD="${LD-ld} -m elf_i386" 7031 ;; 7032 esac 7033 ;; 7034 powerpc64le-*linux*) 7035 LD="${LD-ld} -m elf32lppclinux" 7036 ;; 7037 powerpc64-*linux*) 7038 LD="${LD-ld} -m elf32ppclinux" 7039 ;; 7040 s390x-*linux*) 7041 LD="${LD-ld} -m elf_s390" 7042 ;; 7043 sparc64-*linux*) 7044 LD="${LD-ld} -m elf32_sparc" 7045 ;; 7046 esac 7047 ;; 7048 *64-bit*) 7049 case $host in 7050 x86_64-*kfreebsd*-gnu) 7051 LD="${LD-ld} -m elf_x86_64_fbsd" 7052 ;; 7053 x86_64-*linux*) 7054 LD="${LD-ld} -m elf_x86_64" 7055 ;; 7056 powerpcle-*linux*) 7057 LD="${LD-ld} -m elf64lppc" 7058 ;; 7059 powerpc-*linux*) 7060 LD="${LD-ld} -m elf64ppc" 7061 ;; 7062 s390*-*linux*|s390*-*tpf*) 7063 LD="${LD-ld} -m elf64_s390" 7064 ;; 7065 sparc*-*linux*) 7066 LD="${LD-ld} -m elf64_sparc" 7067 ;; 7068 esac 7069 ;; 7070 esac 7071 fi 7072 rm -rf conftest* 7073 ;; 7074 7075*-*-sco3.2v5*) 7076 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7077 SAVE_CFLAGS="$CFLAGS" 7078 CFLAGS="$CFLAGS -belf" 7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7080$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7081if test "${lt_cv_cc_needs_belf+set}" = set; then : 7082 $as_echo_n "(cached) " >&6 7083else 7084 ac_ext=c 7085ac_cpp='$CPP $CPPFLAGS' 7086ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7087ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7088ac_compiler_gnu=$ac_cv_c_compiler_gnu 7089 7090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7091/* end confdefs.h. */ 7092 7093int 7094main () 7095{ 7096 7097 ; 7098 return 0; 7099} 7100_ACEOF 7101if ac_fn_c_try_link "$LINENO"; then : 7102 lt_cv_cc_needs_belf=yes 7103else 7104 lt_cv_cc_needs_belf=no 7105fi 7106rm -f core conftest.err conftest.$ac_objext \ 7107 conftest$ac_exeext conftest.$ac_ext 7108 ac_ext=c 7109ac_cpp='$CPP $CPPFLAGS' 7110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7112ac_compiler_gnu=$ac_cv_c_compiler_gnu 7113 7114fi 7115{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7116$as_echo "$lt_cv_cc_needs_belf" >&6; } 7117 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7118 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7119 CFLAGS="$SAVE_CFLAGS" 7120 fi 7121 ;; 7122sparc*-*solaris*) 7123 # Find out which ABI we are using. 7124 echo 'int i;' > conftest.$ac_ext 7125 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7126 (eval $ac_compile) 2>&5 7127 ac_status=$? 7128 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7129 test $ac_status = 0; }; then 7130 case `/usr/bin/file conftest.o` in 7131 *64-bit*) 7132 case $lt_cv_prog_gnu_ld in 7133 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7134 *) 7135 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7136 LD="${LD-ld} -64" 7137 fi 7138 ;; 7139 esac 7140 ;; 7141 esac 7142 fi 7143 rm -rf conftest* 7144 ;; 7145esac 7146 7147need_locks="$enable_libtool_lock" 7148 7149 7150 case $host_os in 7151 rhapsody* | darwin*) 7152 if test -n "$ac_tool_prefix"; then 7153 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7154set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7155{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7156$as_echo_n "checking for $ac_word... " >&6; } 7157if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7158 $as_echo_n "(cached) " >&6 7159else 7160 if test -n "$DSYMUTIL"; then 7161 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7162else 7163as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7164for as_dir in $PATH 7165do 7166 IFS=$as_save_IFS 7167 test -z "$as_dir" && as_dir=. 7168 for ac_exec_ext in '' $ac_executable_extensions; do 7169 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7170 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7172 break 2 7173 fi 7174done 7175 done 7176IFS=$as_save_IFS 7177 7178fi 7179fi 7180DSYMUTIL=$ac_cv_prog_DSYMUTIL 7181if test -n "$DSYMUTIL"; then 7182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7183$as_echo "$DSYMUTIL" >&6; } 7184else 7185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7186$as_echo "no" >&6; } 7187fi 7188 7189 7190fi 7191if test -z "$ac_cv_prog_DSYMUTIL"; then 7192 ac_ct_DSYMUTIL=$DSYMUTIL 7193 # Extract the first word of "dsymutil", so it can be a program name with args. 7194set dummy dsymutil; ac_word=$2 7195{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7196$as_echo_n "checking for $ac_word... " >&6; } 7197if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7198 $as_echo_n "(cached) " >&6 7199else 7200 if test -n "$ac_ct_DSYMUTIL"; then 7201 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7202else 7203as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7204for as_dir in $PATH 7205do 7206 IFS=$as_save_IFS 7207 test -z "$as_dir" && as_dir=. 7208 for ac_exec_ext in '' $ac_executable_extensions; do 7209 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7210 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7211 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7212 break 2 7213 fi 7214done 7215 done 7216IFS=$as_save_IFS 7217 7218fi 7219fi 7220ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7221if test -n "$ac_ct_DSYMUTIL"; then 7222 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7223$as_echo "$ac_ct_DSYMUTIL" >&6; } 7224else 7225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7226$as_echo "no" >&6; } 7227fi 7228 7229 if test "x$ac_ct_DSYMUTIL" = x; then 7230 DSYMUTIL=":" 7231 else 7232 case $cross_compiling:$ac_tool_warned in 7233yes:) 7234{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7235$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7236ac_tool_warned=yes ;; 7237esac 7238 DSYMUTIL=$ac_ct_DSYMUTIL 7239 fi 7240else 7241 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7242fi 7243 7244 if test -n "$ac_tool_prefix"; then 7245 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7246set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7247{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7248$as_echo_n "checking for $ac_word... " >&6; } 7249if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7250 $as_echo_n "(cached) " >&6 7251else 7252 if test -n "$NMEDIT"; then 7253 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7254else 7255as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7256for as_dir in $PATH 7257do 7258 IFS=$as_save_IFS 7259 test -z "$as_dir" && as_dir=. 7260 for ac_exec_ext in '' $ac_executable_extensions; do 7261 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7262 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7263 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7264 break 2 7265 fi 7266done 7267 done 7268IFS=$as_save_IFS 7269 7270fi 7271fi 7272NMEDIT=$ac_cv_prog_NMEDIT 7273if test -n "$NMEDIT"; then 7274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7275$as_echo "$NMEDIT" >&6; } 7276else 7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7278$as_echo "no" >&6; } 7279fi 7280 7281 7282fi 7283if test -z "$ac_cv_prog_NMEDIT"; then 7284 ac_ct_NMEDIT=$NMEDIT 7285 # Extract the first word of "nmedit", so it can be a program name with args. 7286set dummy nmedit; ac_word=$2 7287{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7288$as_echo_n "checking for $ac_word... " >&6; } 7289if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7290 $as_echo_n "(cached) " >&6 7291else 7292 if test -n "$ac_ct_NMEDIT"; then 7293 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7294else 7295as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7296for as_dir in $PATH 7297do 7298 IFS=$as_save_IFS 7299 test -z "$as_dir" && as_dir=. 7300 for ac_exec_ext in '' $ac_executable_extensions; do 7301 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7302 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7303 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7304 break 2 7305 fi 7306done 7307 done 7308IFS=$as_save_IFS 7309 7310fi 7311fi 7312ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7313if test -n "$ac_ct_NMEDIT"; then 7314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7315$as_echo "$ac_ct_NMEDIT" >&6; } 7316else 7317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7318$as_echo "no" >&6; } 7319fi 7320 7321 if test "x$ac_ct_NMEDIT" = x; then 7322 NMEDIT=":" 7323 else 7324 case $cross_compiling:$ac_tool_warned in 7325yes:) 7326{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7327$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7328ac_tool_warned=yes ;; 7329esac 7330 NMEDIT=$ac_ct_NMEDIT 7331 fi 7332else 7333 NMEDIT="$ac_cv_prog_NMEDIT" 7334fi 7335 7336 if test -n "$ac_tool_prefix"; then 7337 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7338set dummy ${ac_tool_prefix}lipo; ac_word=$2 7339{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7340$as_echo_n "checking for $ac_word... " >&6; } 7341if test "${ac_cv_prog_LIPO+set}" = set; then : 7342 $as_echo_n "(cached) " >&6 7343else 7344 if test -n "$LIPO"; then 7345 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7346else 7347as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7348for as_dir in $PATH 7349do 7350 IFS=$as_save_IFS 7351 test -z "$as_dir" && as_dir=. 7352 for ac_exec_ext in '' $ac_executable_extensions; do 7353 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7354 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7355 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7356 break 2 7357 fi 7358done 7359 done 7360IFS=$as_save_IFS 7361 7362fi 7363fi 7364LIPO=$ac_cv_prog_LIPO 7365if test -n "$LIPO"; then 7366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7367$as_echo "$LIPO" >&6; } 7368else 7369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7370$as_echo "no" >&6; } 7371fi 7372 7373 7374fi 7375if test -z "$ac_cv_prog_LIPO"; then 7376 ac_ct_LIPO=$LIPO 7377 # Extract the first word of "lipo", so it can be a program name with args. 7378set dummy lipo; ac_word=$2 7379{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7380$as_echo_n "checking for $ac_word... " >&6; } 7381if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7382 $as_echo_n "(cached) " >&6 7383else 7384 if test -n "$ac_ct_LIPO"; then 7385 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7386else 7387as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7388for as_dir in $PATH 7389do 7390 IFS=$as_save_IFS 7391 test -z "$as_dir" && as_dir=. 7392 for ac_exec_ext in '' $ac_executable_extensions; do 7393 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7394 ac_cv_prog_ac_ct_LIPO="lipo" 7395 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7396 break 2 7397 fi 7398done 7399 done 7400IFS=$as_save_IFS 7401 7402fi 7403fi 7404ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7405if test -n "$ac_ct_LIPO"; then 7406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7407$as_echo "$ac_ct_LIPO" >&6; } 7408else 7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7410$as_echo "no" >&6; } 7411fi 7412 7413 if test "x$ac_ct_LIPO" = x; then 7414 LIPO=":" 7415 else 7416 case $cross_compiling:$ac_tool_warned in 7417yes:) 7418{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7419$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7420ac_tool_warned=yes ;; 7421esac 7422 LIPO=$ac_ct_LIPO 7423 fi 7424else 7425 LIPO="$ac_cv_prog_LIPO" 7426fi 7427 7428 if test -n "$ac_tool_prefix"; then 7429 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7430set dummy ${ac_tool_prefix}otool; ac_word=$2 7431{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7432$as_echo_n "checking for $ac_word... " >&6; } 7433if test "${ac_cv_prog_OTOOL+set}" = set; then : 7434 $as_echo_n "(cached) " >&6 7435else 7436 if test -n "$OTOOL"; then 7437 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7438else 7439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7440for as_dir in $PATH 7441do 7442 IFS=$as_save_IFS 7443 test -z "$as_dir" && as_dir=. 7444 for ac_exec_ext in '' $ac_executable_extensions; do 7445 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7446 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7447 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7448 break 2 7449 fi 7450done 7451 done 7452IFS=$as_save_IFS 7453 7454fi 7455fi 7456OTOOL=$ac_cv_prog_OTOOL 7457if test -n "$OTOOL"; then 7458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7459$as_echo "$OTOOL" >&6; } 7460else 7461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7462$as_echo "no" >&6; } 7463fi 7464 7465 7466fi 7467if test -z "$ac_cv_prog_OTOOL"; then 7468 ac_ct_OTOOL=$OTOOL 7469 # Extract the first word of "otool", so it can be a program name with args. 7470set dummy otool; ac_word=$2 7471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7472$as_echo_n "checking for $ac_word... " >&6; } 7473if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7474 $as_echo_n "(cached) " >&6 7475else 7476 if test -n "$ac_ct_OTOOL"; then 7477 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7478else 7479as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7480for as_dir in $PATH 7481do 7482 IFS=$as_save_IFS 7483 test -z "$as_dir" && as_dir=. 7484 for ac_exec_ext in '' $ac_executable_extensions; do 7485 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7486 ac_cv_prog_ac_ct_OTOOL="otool" 7487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7488 break 2 7489 fi 7490done 7491 done 7492IFS=$as_save_IFS 7493 7494fi 7495fi 7496ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7497if test -n "$ac_ct_OTOOL"; then 7498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7499$as_echo "$ac_ct_OTOOL" >&6; } 7500else 7501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7502$as_echo "no" >&6; } 7503fi 7504 7505 if test "x$ac_ct_OTOOL" = x; then 7506 OTOOL=":" 7507 else 7508 case $cross_compiling:$ac_tool_warned in 7509yes:) 7510{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7511$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7512ac_tool_warned=yes ;; 7513esac 7514 OTOOL=$ac_ct_OTOOL 7515 fi 7516else 7517 OTOOL="$ac_cv_prog_OTOOL" 7518fi 7519 7520 if test -n "$ac_tool_prefix"; then 7521 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7522set dummy ${ac_tool_prefix}otool64; ac_word=$2 7523{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7524$as_echo_n "checking for $ac_word... " >&6; } 7525if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7526 $as_echo_n "(cached) " >&6 7527else 7528 if test -n "$OTOOL64"; then 7529 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7530else 7531as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7532for as_dir in $PATH 7533do 7534 IFS=$as_save_IFS 7535 test -z "$as_dir" && as_dir=. 7536 for ac_exec_ext in '' $ac_executable_extensions; do 7537 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7538 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7540 break 2 7541 fi 7542done 7543 done 7544IFS=$as_save_IFS 7545 7546fi 7547fi 7548OTOOL64=$ac_cv_prog_OTOOL64 7549if test -n "$OTOOL64"; then 7550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7551$as_echo "$OTOOL64" >&6; } 7552else 7553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7554$as_echo "no" >&6; } 7555fi 7556 7557 7558fi 7559if test -z "$ac_cv_prog_OTOOL64"; then 7560 ac_ct_OTOOL64=$OTOOL64 7561 # Extract the first word of "otool64", so it can be a program name with args. 7562set dummy otool64; ac_word=$2 7563{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7564$as_echo_n "checking for $ac_word... " >&6; } 7565if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7566 $as_echo_n "(cached) " >&6 7567else 7568 if test -n "$ac_ct_OTOOL64"; then 7569 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7570else 7571as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7572for as_dir in $PATH 7573do 7574 IFS=$as_save_IFS 7575 test -z "$as_dir" && as_dir=. 7576 for ac_exec_ext in '' $ac_executable_extensions; do 7577 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7578 ac_cv_prog_ac_ct_OTOOL64="otool64" 7579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7580 break 2 7581 fi 7582done 7583 done 7584IFS=$as_save_IFS 7585 7586fi 7587fi 7588ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7589if test -n "$ac_ct_OTOOL64"; then 7590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7591$as_echo "$ac_ct_OTOOL64" >&6; } 7592else 7593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7594$as_echo "no" >&6; } 7595fi 7596 7597 if test "x$ac_ct_OTOOL64" = x; then 7598 OTOOL64=":" 7599 else 7600 case $cross_compiling:$ac_tool_warned in 7601yes:) 7602{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7603$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7604ac_tool_warned=yes ;; 7605esac 7606 OTOOL64=$ac_ct_OTOOL64 7607 fi 7608else 7609 OTOOL64="$ac_cv_prog_OTOOL64" 7610fi 7611 7612 7613 7614 7615 7616 7617 7618 7619 7620 7621 7622 7623 7624 7625 7626 7627 7628 7629 7630 7631 7632 7633 7634 7635 7636 7637 7638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7639$as_echo_n "checking for -single_module linker flag... " >&6; } 7640if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7641 $as_echo_n "(cached) " >&6 7642else 7643 lt_cv_apple_cc_single_mod=no 7644 if test -z "${LT_MULTI_MODULE}"; then 7645 # By default we will add the -single_module flag. You can override 7646 # by either setting the environment variable LT_MULTI_MODULE 7647 # non-empty at configure time, or by adding -multi_module to the 7648 # link flags. 7649 rm -rf libconftest.dylib* 7650 echo "int foo(void){return 1;}" > conftest.c 7651 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7652-dynamiclib -Wl,-single_module conftest.c" >&5 7653 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7654 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7655 _lt_result=$? 7656 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7657 lt_cv_apple_cc_single_mod=yes 7658 else 7659 cat conftest.err >&5 7660 fi 7661 rm -rf libconftest.dylib* 7662 rm -f conftest.* 7663 fi 7664fi 7665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7666$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7668$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7669if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7670 $as_echo_n "(cached) " >&6 7671else 7672 lt_cv_ld_exported_symbols_list=no 7673 save_LDFLAGS=$LDFLAGS 7674 echo "_main" > conftest.sym 7675 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7677/* end confdefs.h. */ 7678 7679int 7680main () 7681{ 7682 7683 ; 7684 return 0; 7685} 7686_ACEOF 7687if ac_fn_c_try_link "$LINENO"; then : 7688 lt_cv_ld_exported_symbols_list=yes 7689else 7690 lt_cv_ld_exported_symbols_list=no 7691fi 7692rm -f core conftest.err conftest.$ac_objext \ 7693 conftest$ac_exeext conftest.$ac_ext 7694 LDFLAGS="$save_LDFLAGS" 7695 7696fi 7697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7698$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7699 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7700$as_echo_n "checking for -force_load linker flag... " >&6; } 7701if test "${lt_cv_ld_force_load+set}" = set; then : 7702 $as_echo_n "(cached) " >&6 7703else 7704 lt_cv_ld_force_load=no 7705 cat > conftest.c << _LT_EOF 7706int forced_loaded() { return 2;} 7707_LT_EOF 7708 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7709 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7710 echo "$AR cru libconftest.a conftest.o" >&5 7711 $AR cru libconftest.a conftest.o 2>&5 7712 cat > conftest.c << _LT_EOF 7713int main() { return 0;} 7714_LT_EOF 7715 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7716 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7717 _lt_result=$? 7718 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7719 lt_cv_ld_force_load=yes 7720 else 7721 cat conftest.err >&5 7722 fi 7723 rm -f conftest.err libconftest.a conftest conftest.c 7724 rm -rf conftest.dSYM 7725 7726fi 7727{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7728$as_echo "$lt_cv_ld_force_load" >&6; } 7729 case $host_os in 7730 rhapsody* | darwin1.[012]) 7731 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7732 darwin1.*) 7733 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7734 darwin*) # darwin 5.x on 7735 # if running on 10.5 or later, the deployment target defaults 7736 # to the OS version, if on x86, and 10.4, the deployment 7737 # target defaults to 10.4. Don't you love it? 7738 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7739 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7740 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7741 10.[012][,.]*) 7742 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7743 10.*) 7744 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7745 esac 7746 ;; 7747 esac 7748 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7749 _lt_dar_single_mod='$single_module' 7750 fi 7751 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7752 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7753 else 7754 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7755 fi 7756 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7757 _lt_dsymutil='~$DSYMUTIL $lib || :' 7758 else 7759 _lt_dsymutil= 7760 fi 7761 ;; 7762 esac 7763 7764for ac_header in dlfcn.h 7765do : 7766 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7767" 7768if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7769 cat >>confdefs.h <<_ACEOF 7770#define HAVE_DLFCN_H 1 7771_ACEOF 7772 7773fi 7774 7775done 7776 7777 7778 7779 7780 7781# Set options 7782 7783 7784 7785 7786 enable_win32_dll=no 7787 7788 7789 # Check whether --enable-shared was given. 7790if test "${enable_shared+set}" = set; then : 7791 enableval=$enable_shared; p=${PACKAGE-default} 7792 case $enableval in 7793 yes) enable_shared=yes ;; 7794 no) enable_shared=no ;; 7795 *) 7796 enable_shared=no 7797 # Look at the argument we got. We use all the common list separators. 7798 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7799 for pkg in $enableval; do 7800 IFS="$lt_save_ifs" 7801 if test "X$pkg" = "X$p"; then 7802 enable_shared=yes 7803 fi 7804 done 7805 IFS="$lt_save_ifs" 7806 ;; 7807 esac 7808else 7809 enable_shared=yes 7810fi 7811 7812 7813 7814 7815 7816 7817 7818 7819 7820 # Check whether --enable-static was given. 7821if test "${enable_static+set}" = set; then : 7822 enableval=$enable_static; p=${PACKAGE-default} 7823 case $enableval in 7824 yes) enable_static=yes ;; 7825 no) enable_static=no ;; 7826 *) 7827 enable_static=no 7828 # Look at the argument we got. We use all the common list separators. 7829 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7830 for pkg in $enableval; do 7831 IFS="$lt_save_ifs" 7832 if test "X$pkg" = "X$p"; then 7833 enable_static=yes 7834 fi 7835 done 7836 IFS="$lt_save_ifs" 7837 ;; 7838 esac 7839else 7840 enable_static=yes 7841fi 7842 7843 7844 7845 7846 7847 7848 7849 7850 7851 7852# Check whether --with-pic was given. 7853if test "${with_pic+set}" = set; then : 7854 withval=$with_pic; pic_mode="$withval" 7855else 7856 pic_mode=default 7857fi 7858 7859 7860test -z "$pic_mode" && pic_mode=default 7861 7862 7863 7864 7865 7866 7867 7868 # Check whether --enable-fast-install was given. 7869if test "${enable_fast_install+set}" = set; then : 7870 enableval=$enable_fast_install; p=${PACKAGE-default} 7871 case $enableval in 7872 yes) enable_fast_install=yes ;; 7873 no) enable_fast_install=no ;; 7874 *) 7875 enable_fast_install=no 7876 # Look at the argument we got. We use all the common list separators. 7877 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7878 for pkg in $enableval; do 7879 IFS="$lt_save_ifs" 7880 if test "X$pkg" = "X$p"; then 7881 enable_fast_install=yes 7882 fi 7883 done 7884 IFS="$lt_save_ifs" 7885 ;; 7886 esac 7887else 7888 enable_fast_install=yes 7889fi 7890 7891 7892 7893 7894 7895 7896 7897 7898 7899 7900 7901# This can be used to rebuild libtool when needed 7902LIBTOOL_DEPS="$ltmain" 7903 7904# Always use our own libtool. 7905LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7906 7907 7908 7909 7910 7911 7912 7913 7914 7915 7916 7917 7918 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930 7931 7932test -z "$LN_S" && LN_S="ln -s" 7933 7934 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947if test -n "${ZSH_VERSION+set}" ; then 7948 setopt NO_GLOB_SUBST 7949fi 7950 7951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7952$as_echo_n "checking for objdir... " >&6; } 7953if test "${lt_cv_objdir+set}" = set; then : 7954 $as_echo_n "(cached) " >&6 7955else 7956 rm -f .libs 2>/dev/null 7957mkdir .libs 2>/dev/null 7958if test -d .libs; then 7959 lt_cv_objdir=.libs 7960else 7961 # MS-DOS does not allow filenames that begin with a dot. 7962 lt_cv_objdir=_libs 7963fi 7964rmdir .libs 2>/dev/null 7965fi 7966{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7967$as_echo "$lt_cv_objdir" >&6; } 7968objdir=$lt_cv_objdir 7969 7970 7971 7972 7973 7974cat >>confdefs.h <<_ACEOF 7975#define LT_OBJDIR "$lt_cv_objdir/" 7976_ACEOF 7977 7978 7979 7980 7981case $host_os in 7982aix3*) 7983 # AIX sometimes has problems with the GCC collect2 program. For some 7984 # reason, if we set the COLLECT_NAMES environment variable, the problems 7985 # vanish in a puff of smoke. 7986 if test "X${COLLECT_NAMES+set}" != Xset; then 7987 COLLECT_NAMES= 7988 export COLLECT_NAMES 7989 fi 7990 ;; 7991esac 7992 7993# Global variables: 7994ofile=libtool 7995can_build_shared=yes 7996 7997# All known linkers require a `.a' archive for static linking (except MSVC, 7998# which needs '.lib'). 7999libext=a 8000 8001with_gnu_ld="$lt_cv_prog_gnu_ld" 8002 8003old_CC="$CC" 8004old_CFLAGS="$CFLAGS" 8005 8006# Set sane defaults for various variables 8007test -z "$CC" && CC=cc 8008test -z "$LTCC" && LTCC=$CC 8009test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8010test -z "$LD" && LD=ld 8011test -z "$ac_objext" && ac_objext=o 8012 8013for cc_temp in $compiler""; do 8014 case $cc_temp in 8015 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8016 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8017 \-*) ;; 8018 *) break;; 8019 esac 8020done 8021cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8022 8023 8024# Only perform the check for file, if the check method requires it 8025test -z "$MAGIC_CMD" && MAGIC_CMD=file 8026case $deplibs_check_method in 8027file_magic*) 8028 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8030$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8031if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8032 $as_echo_n "(cached) " >&6 8033else 8034 case $MAGIC_CMD in 8035[\\/*] | ?:[\\/]*) 8036 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8037 ;; 8038*) 8039 lt_save_MAGIC_CMD="$MAGIC_CMD" 8040 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8041 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8042 for ac_dir in $ac_dummy; do 8043 IFS="$lt_save_ifs" 8044 test -z "$ac_dir" && ac_dir=. 8045 if test -f $ac_dir/${ac_tool_prefix}file; then 8046 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8047 if test -n "$file_magic_test_file"; then 8048 case $deplibs_check_method in 8049 "file_magic "*) 8050 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8051 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8052 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8053 $EGREP "$file_magic_regex" > /dev/null; then 8054 : 8055 else 8056 cat <<_LT_EOF 1>&2 8057 8058*** Warning: the command libtool uses to detect shared libraries, 8059*** $file_magic_cmd, produces output that libtool cannot recognize. 8060*** The result is that libtool may fail to recognize shared libraries 8061*** as such. This will affect the creation of libtool libraries that 8062*** depend on shared libraries, but programs linked with such libtool 8063*** libraries will work regardless of this problem. Nevertheless, you 8064*** may want to report the problem to your system manager and/or to 8065*** bug-libtool@gnu.org 8066 8067_LT_EOF 8068 fi ;; 8069 esac 8070 fi 8071 break 8072 fi 8073 done 8074 IFS="$lt_save_ifs" 8075 MAGIC_CMD="$lt_save_MAGIC_CMD" 8076 ;; 8077esac 8078fi 8079 8080MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8081if test -n "$MAGIC_CMD"; then 8082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8083$as_echo "$MAGIC_CMD" >&6; } 8084else 8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8086$as_echo "no" >&6; } 8087fi 8088 8089 8090 8091 8092 8093if test -z "$lt_cv_path_MAGIC_CMD"; then 8094 if test -n "$ac_tool_prefix"; then 8095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8096$as_echo_n "checking for file... " >&6; } 8097if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8098 $as_echo_n "(cached) " >&6 8099else 8100 case $MAGIC_CMD in 8101[\\/*] | ?:[\\/]*) 8102 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8103 ;; 8104*) 8105 lt_save_MAGIC_CMD="$MAGIC_CMD" 8106 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8107 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8108 for ac_dir in $ac_dummy; do 8109 IFS="$lt_save_ifs" 8110 test -z "$ac_dir" && ac_dir=. 8111 if test -f $ac_dir/file; then 8112 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8113 if test -n "$file_magic_test_file"; then 8114 case $deplibs_check_method in 8115 "file_magic "*) 8116 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8117 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8118 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8119 $EGREP "$file_magic_regex" > /dev/null; then 8120 : 8121 else 8122 cat <<_LT_EOF 1>&2 8123 8124*** Warning: the command libtool uses to detect shared libraries, 8125*** $file_magic_cmd, produces output that libtool cannot recognize. 8126*** The result is that libtool may fail to recognize shared libraries 8127*** as such. This will affect the creation of libtool libraries that 8128*** depend on shared libraries, but programs linked with such libtool 8129*** libraries will work regardless of this problem. Nevertheless, you 8130*** may want to report the problem to your system manager and/or to 8131*** bug-libtool@gnu.org 8132 8133_LT_EOF 8134 fi ;; 8135 esac 8136 fi 8137 break 8138 fi 8139 done 8140 IFS="$lt_save_ifs" 8141 MAGIC_CMD="$lt_save_MAGIC_CMD" 8142 ;; 8143esac 8144fi 8145 8146MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8147if test -n "$MAGIC_CMD"; then 8148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8149$as_echo "$MAGIC_CMD" >&6; } 8150else 8151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8152$as_echo "no" >&6; } 8153fi 8154 8155 8156 else 8157 MAGIC_CMD=: 8158 fi 8159fi 8160 8161 fi 8162 ;; 8163esac 8164 8165# Use C for the default configuration in the libtool script 8166 8167lt_save_CC="$CC" 8168ac_ext=c 8169ac_cpp='$CPP $CPPFLAGS' 8170ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8171ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8172ac_compiler_gnu=$ac_cv_c_compiler_gnu 8173 8174 8175# Source file extension for C test sources. 8176ac_ext=c 8177 8178# Object file extension for compiled C test sources. 8179objext=o 8180objext=$objext 8181 8182# Code to be used in simple compile tests 8183lt_simple_compile_test_code="int some_variable = 0;" 8184 8185# Code to be used in simple link tests 8186lt_simple_link_test_code='int main(){return(0);}' 8187 8188 8189 8190 8191 8192 8193 8194# If no C compiler was specified, use CC. 8195LTCC=${LTCC-"$CC"} 8196 8197# If no C compiler flags were specified, use CFLAGS. 8198LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8199 8200# Allow CC to be a program name with arguments. 8201compiler=$CC 8202 8203# Save the default compiler, since it gets overwritten when the other 8204# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8205compiler_DEFAULT=$CC 8206 8207# save warnings/boilerplate of simple test code 8208ac_outfile=conftest.$ac_objext 8209echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8210eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8211_lt_compiler_boilerplate=`cat conftest.err` 8212$RM conftest* 8213 8214ac_outfile=conftest.$ac_objext 8215echo "$lt_simple_link_test_code" >conftest.$ac_ext 8216eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8217_lt_linker_boilerplate=`cat conftest.err` 8218$RM -r conftest* 8219 8220 8221## CAVEAT EMPTOR: 8222## There is no encapsulation within the following macros, do not change 8223## the running order or otherwise move them around unless you know exactly 8224## what you are doing... 8225if test -n "$compiler"; then 8226 8227lt_prog_compiler_no_builtin_flag= 8228 8229if test "$GCC" = yes; then 8230 case $cc_basename in 8231 nvcc*) 8232 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8233 *) 8234 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8235 esac 8236 8237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8238$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8239if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8240 $as_echo_n "(cached) " >&6 8241else 8242 lt_cv_prog_compiler_rtti_exceptions=no 8243 ac_outfile=conftest.$ac_objext 8244 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8245 lt_compiler_flag="-fno-rtti -fno-exceptions" 8246 # Insert the option either (1) after the last *FLAGS variable, or 8247 # (2) before a word containing "conftest.", or (3) at the end. 8248 # Note that $ac_compile itself does not contain backslashes and begins 8249 # with a dollar sign (not a hyphen), so the echo should work correctly. 8250 # The option is referenced via a variable to avoid confusing sed. 8251 lt_compile=`echo "$ac_compile" | $SED \ 8252 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8253 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8254 -e 's:$: $lt_compiler_flag:'` 8255 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8256 (eval "$lt_compile" 2>conftest.err) 8257 ac_status=$? 8258 cat conftest.err >&5 8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8260 if (exit $ac_status) && test -s "$ac_outfile"; then 8261 # The compiler can only warn and ignore the option if not recognized 8262 # So say no if there are warnings other than the usual output. 8263 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8264 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8265 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8266 lt_cv_prog_compiler_rtti_exceptions=yes 8267 fi 8268 fi 8269 $RM conftest* 8270 8271fi 8272{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8273$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8274 8275if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8276 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8277else 8278 : 8279fi 8280 8281fi 8282 8283 8284 8285 8286 8287 8288 lt_prog_compiler_wl= 8289lt_prog_compiler_pic= 8290lt_prog_compiler_static= 8291 8292{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8293$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8294 8295 if test "$GCC" = yes; then 8296 lt_prog_compiler_wl='-Wl,' 8297 lt_prog_compiler_static='-static' 8298 8299 case $host_os in 8300 aix*) 8301 # All AIX code is PIC. 8302 if test "$host_cpu" = ia64; then 8303 # AIX 5 now supports IA64 processor 8304 lt_prog_compiler_static='-Bstatic' 8305 fi 8306 lt_prog_compiler_pic='-fPIC' 8307 ;; 8308 8309 amigaos*) 8310 case $host_cpu in 8311 powerpc) 8312 # see comment about AmigaOS4 .so support 8313 lt_prog_compiler_pic='-fPIC' 8314 ;; 8315 m68k) 8316 # FIXME: we need at least 68020 code to build shared libraries, but 8317 # adding the `-m68020' flag to GCC prevents building anything better, 8318 # like `-m68040'. 8319 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8320 ;; 8321 esac 8322 ;; 8323 8324 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8325 # PIC is the default for these OSes. 8326 ;; 8327 8328 mingw* | cygwin* | pw32* | os2* | cegcc*) 8329 # This hack is so that the source file can tell whether it is being 8330 # built for inclusion in a dll (and should export symbols for example). 8331 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8332 # (--disable-auto-import) libraries 8333 lt_prog_compiler_pic='-DDLL_EXPORT' 8334 ;; 8335 8336 darwin* | rhapsody*) 8337 # PIC is the default on this platform 8338 # Common symbols not allowed in MH_DYLIB files 8339 lt_prog_compiler_pic='-fno-common' 8340 ;; 8341 8342 haiku*) 8343 # PIC is the default for Haiku. 8344 # The "-static" flag exists, but is broken. 8345 lt_prog_compiler_static= 8346 ;; 8347 8348 hpux*) 8349 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8350 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8351 # sets the default TLS model and affects inlining. 8352 case $host_cpu in 8353 hppa*64*) 8354 # +Z the default 8355 ;; 8356 *) 8357 lt_prog_compiler_pic='-fPIC' 8358 ;; 8359 esac 8360 ;; 8361 8362 interix[3-9]*) 8363 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8364 # Instead, we relocate shared libraries at runtime. 8365 ;; 8366 8367 msdosdjgpp*) 8368 # Just because we use GCC doesn't mean we suddenly get shared libraries 8369 # on systems that don't support them. 8370 lt_prog_compiler_can_build_shared=no 8371 enable_shared=no 8372 ;; 8373 8374 *nto* | *qnx*) 8375 # QNX uses GNU C++, but need to define -shared option too, otherwise 8376 # it will coredump. 8377 lt_prog_compiler_pic='-fPIC -shared' 8378 ;; 8379 8380 sysv4*MP*) 8381 if test -d /usr/nec; then 8382 lt_prog_compiler_pic=-Kconform_pic 8383 fi 8384 ;; 8385 8386 *) 8387 lt_prog_compiler_pic='-fPIC' 8388 ;; 8389 esac 8390 8391 case $cc_basename in 8392 nvcc*) # Cuda Compiler Driver 2.2 8393 lt_prog_compiler_wl='-Xlinker ' 8394 lt_prog_compiler_pic='-Xcompiler -fPIC' 8395 ;; 8396 esac 8397 else 8398 # PORTME Check for flag to pass linker flags through the system compiler. 8399 case $host_os in 8400 aix*) 8401 lt_prog_compiler_wl='-Wl,' 8402 if test "$host_cpu" = ia64; then 8403 # AIX 5 now supports IA64 processor 8404 lt_prog_compiler_static='-Bstatic' 8405 else 8406 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8407 fi 8408 ;; 8409 8410 mingw* | cygwin* | pw32* | os2* | cegcc*) 8411 # This hack is so that the source file can tell whether it is being 8412 # built for inclusion in a dll (and should export symbols for example). 8413 lt_prog_compiler_pic='-DDLL_EXPORT' 8414 ;; 8415 8416 hpux9* | hpux10* | hpux11*) 8417 lt_prog_compiler_wl='-Wl,' 8418 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8419 # not for PA HP-UX. 8420 case $host_cpu in 8421 hppa*64*|ia64*) 8422 # +Z the default 8423 ;; 8424 *) 8425 lt_prog_compiler_pic='+Z' 8426 ;; 8427 esac 8428 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8429 lt_prog_compiler_static='${wl}-a ${wl}archive' 8430 ;; 8431 8432 irix5* | irix6* | nonstopux*) 8433 lt_prog_compiler_wl='-Wl,' 8434 # PIC (with -KPIC) is the default. 8435 lt_prog_compiler_static='-non_shared' 8436 ;; 8437 8438 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8439 case $cc_basename in 8440 # old Intel for x86_64 which still supported -KPIC. 8441 ecc*) 8442 lt_prog_compiler_wl='-Wl,' 8443 lt_prog_compiler_pic='-KPIC' 8444 lt_prog_compiler_static='-static' 8445 ;; 8446 # icc used to be incompatible with GCC. 8447 # ICC 10 doesn't accept -KPIC any more. 8448 icc* | ifort*) 8449 lt_prog_compiler_wl='-Wl,' 8450 lt_prog_compiler_pic='-fPIC' 8451 lt_prog_compiler_static='-static' 8452 ;; 8453 # Lahey Fortran 8.1. 8454 lf95*) 8455 lt_prog_compiler_wl='-Wl,' 8456 lt_prog_compiler_pic='--shared' 8457 lt_prog_compiler_static='--static' 8458 ;; 8459 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8460 # Portland Group compilers (*not* the Pentium gcc compiler, 8461 # which looks to be a dead project) 8462 lt_prog_compiler_wl='-Wl,' 8463 lt_prog_compiler_pic='-fpic' 8464 lt_prog_compiler_static='-Bstatic' 8465 ;; 8466 ccc*) 8467 lt_prog_compiler_wl='-Wl,' 8468 # All Alpha code is PIC. 8469 lt_prog_compiler_static='-non_shared' 8470 ;; 8471 xl* | bgxl* | bgf* | mpixl*) 8472 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8473 lt_prog_compiler_wl='-Wl,' 8474 lt_prog_compiler_pic='-qpic' 8475 lt_prog_compiler_static='-qstaticlink' 8476 ;; 8477 *) 8478 case `$CC -V 2>&1 | sed 5q` in 8479 *Sun\ F* | *Sun*Fortran*) 8480 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8481 lt_prog_compiler_pic='-KPIC' 8482 lt_prog_compiler_static='-Bstatic' 8483 lt_prog_compiler_wl='' 8484 ;; 8485 *Sun\ C*) 8486 # Sun C 5.9 8487 lt_prog_compiler_pic='-KPIC' 8488 lt_prog_compiler_static='-Bstatic' 8489 lt_prog_compiler_wl='-Wl,' 8490 ;; 8491 esac 8492 ;; 8493 esac 8494 ;; 8495 8496 newsos6) 8497 lt_prog_compiler_pic='-KPIC' 8498 lt_prog_compiler_static='-Bstatic' 8499 ;; 8500 8501 *nto* | *qnx*) 8502 # QNX uses GNU C++, but need to define -shared option too, otherwise 8503 # it will coredump. 8504 lt_prog_compiler_pic='-fPIC -shared' 8505 ;; 8506 8507 osf3* | osf4* | osf5*) 8508 lt_prog_compiler_wl='-Wl,' 8509 # All OSF/1 code is PIC. 8510 lt_prog_compiler_static='-non_shared' 8511 ;; 8512 8513 rdos*) 8514 lt_prog_compiler_static='-non_shared' 8515 ;; 8516 8517 solaris*) 8518 lt_prog_compiler_pic='-KPIC' 8519 lt_prog_compiler_static='-Bstatic' 8520 case $cc_basename in 8521 f77* | f90* | f95*) 8522 lt_prog_compiler_wl='-Qoption ld ';; 8523 *) 8524 lt_prog_compiler_wl='-Wl,';; 8525 esac 8526 ;; 8527 8528 sunos4*) 8529 lt_prog_compiler_wl='-Qoption ld ' 8530 lt_prog_compiler_pic='-PIC' 8531 lt_prog_compiler_static='-Bstatic' 8532 ;; 8533 8534 sysv4 | sysv4.2uw2* | sysv4.3*) 8535 lt_prog_compiler_wl='-Wl,' 8536 lt_prog_compiler_pic='-KPIC' 8537 lt_prog_compiler_static='-Bstatic' 8538 ;; 8539 8540 sysv4*MP*) 8541 if test -d /usr/nec ;then 8542 lt_prog_compiler_pic='-Kconform_pic' 8543 lt_prog_compiler_static='-Bstatic' 8544 fi 8545 ;; 8546 8547 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8548 lt_prog_compiler_wl='-Wl,' 8549 lt_prog_compiler_pic='-KPIC' 8550 lt_prog_compiler_static='-Bstatic' 8551 ;; 8552 8553 unicos*) 8554 lt_prog_compiler_wl='-Wl,' 8555 lt_prog_compiler_can_build_shared=no 8556 ;; 8557 8558 uts4*) 8559 lt_prog_compiler_pic='-pic' 8560 lt_prog_compiler_static='-Bstatic' 8561 ;; 8562 8563 *) 8564 lt_prog_compiler_can_build_shared=no 8565 ;; 8566 esac 8567 fi 8568 8569case $host_os in 8570 # For platforms which do not support PIC, -DPIC is meaningless: 8571 *djgpp*) 8572 lt_prog_compiler_pic= 8573 ;; 8574 *) 8575 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8576 ;; 8577esac 8578{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8579$as_echo "$lt_prog_compiler_pic" >&6; } 8580 8581 8582 8583 8584 8585 8586# 8587# Check to make sure the PIC flag actually works. 8588# 8589if test -n "$lt_prog_compiler_pic"; then 8590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8591$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8592if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8593 $as_echo_n "(cached) " >&6 8594else 8595 lt_cv_prog_compiler_pic_works=no 8596 ac_outfile=conftest.$ac_objext 8597 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8598 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8599 # Insert the option either (1) after the last *FLAGS variable, or 8600 # (2) before a word containing "conftest.", or (3) at the end. 8601 # Note that $ac_compile itself does not contain backslashes and begins 8602 # with a dollar sign (not a hyphen), so the echo should work correctly. 8603 # The option is referenced via a variable to avoid confusing sed. 8604 lt_compile=`echo "$ac_compile" | $SED \ 8605 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8606 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8607 -e 's:$: $lt_compiler_flag:'` 8608 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8609 (eval "$lt_compile" 2>conftest.err) 8610 ac_status=$? 8611 cat conftest.err >&5 8612 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8613 if (exit $ac_status) && test -s "$ac_outfile"; then 8614 # The compiler can only warn and ignore the option if not recognized 8615 # So say no if there are warnings other than the usual output. 8616 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8617 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8618 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8619 lt_cv_prog_compiler_pic_works=yes 8620 fi 8621 fi 8622 $RM conftest* 8623 8624fi 8625{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8626$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8627 8628if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8629 case $lt_prog_compiler_pic in 8630 "" | " "*) ;; 8631 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8632 esac 8633else 8634 lt_prog_compiler_pic= 8635 lt_prog_compiler_can_build_shared=no 8636fi 8637 8638fi 8639 8640 8641 8642 8643 8644 8645# 8646# Check to make sure the static flag actually works. 8647# 8648wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8650$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8651if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8652 $as_echo_n "(cached) " >&6 8653else 8654 lt_cv_prog_compiler_static_works=no 8655 save_LDFLAGS="$LDFLAGS" 8656 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8657 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8658 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8659 # The linker can only warn and ignore the option if not recognized 8660 # So say no if there are warnings 8661 if test -s conftest.err; then 8662 # Append any errors to the config.log. 8663 cat conftest.err 1>&5 8664 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8665 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8666 if diff conftest.exp conftest.er2 >/dev/null; then 8667 lt_cv_prog_compiler_static_works=yes 8668 fi 8669 else 8670 lt_cv_prog_compiler_static_works=yes 8671 fi 8672 fi 8673 $RM -r conftest* 8674 LDFLAGS="$save_LDFLAGS" 8675 8676fi 8677{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8678$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8679 8680if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8681 : 8682else 8683 lt_prog_compiler_static= 8684fi 8685 8686 8687 8688 8689 8690 8691 8692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8693$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8694if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8695 $as_echo_n "(cached) " >&6 8696else 8697 lt_cv_prog_compiler_c_o=no 8698 $RM -r conftest 2>/dev/null 8699 mkdir conftest 8700 cd conftest 8701 mkdir out 8702 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8703 8704 lt_compiler_flag="-o out/conftest2.$ac_objext" 8705 # Insert the option either (1) after the last *FLAGS variable, or 8706 # (2) before a word containing "conftest.", or (3) at the end. 8707 # Note that $ac_compile itself does not contain backslashes and begins 8708 # with a dollar sign (not a hyphen), so the echo should work correctly. 8709 lt_compile=`echo "$ac_compile" | $SED \ 8710 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8711 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8712 -e 's:$: $lt_compiler_flag:'` 8713 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8714 (eval "$lt_compile" 2>out/conftest.err) 8715 ac_status=$? 8716 cat out/conftest.err >&5 8717 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8718 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8719 then 8720 # The compiler can only warn and ignore the option if not recognized 8721 # So say no if there are warnings 8722 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8723 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8724 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8725 lt_cv_prog_compiler_c_o=yes 8726 fi 8727 fi 8728 chmod u+w . 2>&5 8729 $RM conftest* 8730 # SGI C++ compiler will create directory out/ii_files/ for 8731 # template instantiation 8732 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8733 $RM out/* && rmdir out 8734 cd .. 8735 $RM -r conftest 8736 $RM conftest* 8737 8738fi 8739{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8740$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8741 8742 8743 8744 8745 8746 8747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8748$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8749if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8750 $as_echo_n "(cached) " >&6 8751else 8752 lt_cv_prog_compiler_c_o=no 8753 $RM -r conftest 2>/dev/null 8754 mkdir conftest 8755 cd conftest 8756 mkdir out 8757 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8758 8759 lt_compiler_flag="-o out/conftest2.$ac_objext" 8760 # Insert the option either (1) after the last *FLAGS variable, or 8761 # (2) before a word containing "conftest.", or (3) at the end. 8762 # Note that $ac_compile itself does not contain backslashes and begins 8763 # with a dollar sign (not a hyphen), so the echo should work correctly. 8764 lt_compile=`echo "$ac_compile" | $SED \ 8765 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8766 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8767 -e 's:$: $lt_compiler_flag:'` 8768 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8769 (eval "$lt_compile" 2>out/conftest.err) 8770 ac_status=$? 8771 cat out/conftest.err >&5 8772 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8773 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8774 then 8775 # The compiler can only warn and ignore the option if not recognized 8776 # So say no if there are warnings 8777 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8778 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8779 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8780 lt_cv_prog_compiler_c_o=yes 8781 fi 8782 fi 8783 chmod u+w . 2>&5 8784 $RM conftest* 8785 # SGI C++ compiler will create directory out/ii_files/ for 8786 # template instantiation 8787 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8788 $RM out/* && rmdir out 8789 cd .. 8790 $RM -r conftest 8791 $RM conftest* 8792 8793fi 8794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8795$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8796 8797 8798 8799 8800hard_links="nottested" 8801if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8802 # do not overwrite the value of need_locks provided by the user 8803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8804$as_echo_n "checking if we can lock with hard links... " >&6; } 8805 hard_links=yes 8806 $RM conftest* 8807 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8808 touch conftest.a 8809 ln conftest.a conftest.b 2>&5 || hard_links=no 8810 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8812$as_echo "$hard_links" >&6; } 8813 if test "$hard_links" = no; then 8814 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8815$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8816 need_locks=warn 8817 fi 8818else 8819 need_locks=no 8820fi 8821 8822 8823 8824 8825 8826 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8828$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8829 8830 runpath_var= 8831 allow_undefined_flag= 8832 always_export_symbols=no 8833 archive_cmds= 8834 archive_expsym_cmds= 8835 compiler_needs_object=no 8836 enable_shared_with_static_runtimes=no 8837 export_dynamic_flag_spec= 8838 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8839 hardcode_automatic=no 8840 hardcode_direct=no 8841 hardcode_direct_absolute=no 8842 hardcode_libdir_flag_spec= 8843 hardcode_libdir_flag_spec_ld= 8844 hardcode_libdir_separator= 8845 hardcode_minus_L=no 8846 hardcode_shlibpath_var=unsupported 8847 inherit_rpath=no 8848 link_all_deplibs=unknown 8849 module_cmds= 8850 module_expsym_cmds= 8851 old_archive_from_new_cmds= 8852 old_archive_from_expsyms_cmds= 8853 thread_safe_flag_spec= 8854 whole_archive_flag_spec= 8855 # include_expsyms should be a list of space-separated symbols to be *always* 8856 # included in the symbol list 8857 include_expsyms= 8858 # exclude_expsyms can be an extended regexp of symbols to exclude 8859 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8860 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8861 # as well as any symbol that contains `d'. 8862 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8863 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8864 # platforms (ab)use it in PIC code, but their linkers get confused if 8865 # the symbol is explicitly referenced. Since portable code cannot 8866 # rely on this symbol name, it's probably fine to never include it in 8867 # preloaded symbol tables. 8868 # Exclude shared library initialization/finalization symbols. 8869 extract_expsyms_cmds= 8870 8871 case $host_os in 8872 cygwin* | mingw* | pw32* | cegcc*) 8873 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8874 # When not using gcc, we currently assume that we are using 8875 # Microsoft Visual C++. 8876 if test "$GCC" != yes; then 8877 with_gnu_ld=no 8878 fi 8879 ;; 8880 interix*) 8881 # we just hope/assume this is gcc and not c89 (= MSVC++) 8882 with_gnu_ld=yes 8883 ;; 8884 openbsd*) 8885 with_gnu_ld=no 8886 ;; 8887 esac 8888 8889 ld_shlibs=yes 8890 8891 # On some targets, GNU ld is compatible enough with the native linker 8892 # that we're better off using the native interface for both. 8893 lt_use_gnu_ld_interface=no 8894 if test "$with_gnu_ld" = yes; then 8895 case $host_os in 8896 aix*) 8897 # The AIX port of GNU ld has always aspired to compatibility 8898 # with the native linker. However, as the warning in the GNU ld 8899 # block says, versions before 2.19.5* couldn't really create working 8900 # shared libraries, regardless of the interface used. 8901 case `$LD -v 2>&1` in 8902 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8903 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8904 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8905 *) 8906 lt_use_gnu_ld_interface=yes 8907 ;; 8908 esac 8909 ;; 8910 *) 8911 lt_use_gnu_ld_interface=yes 8912 ;; 8913 esac 8914 fi 8915 8916 if test "$lt_use_gnu_ld_interface" = yes; then 8917 # If archive_cmds runs LD, not CC, wlarc should be empty 8918 wlarc='${wl}' 8919 8920 # Set some defaults for GNU ld with shared library support. These 8921 # are reset later if shared libraries are not supported. Putting them 8922 # here allows them to be overridden if necessary. 8923 runpath_var=LD_RUN_PATH 8924 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8925 export_dynamic_flag_spec='${wl}--export-dynamic' 8926 # ancient GNU ld didn't support --whole-archive et. al. 8927 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8928 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8929 else 8930 whole_archive_flag_spec= 8931 fi 8932 supports_anon_versioning=no 8933 case `$LD -v 2>&1` in 8934 *GNU\ gold*) supports_anon_versioning=yes ;; 8935 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8936 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8937 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8938 *\ 2.11.*) ;; # other 2.11 versions 8939 *) supports_anon_versioning=yes ;; 8940 esac 8941 8942 # See if GNU ld supports shared libraries. 8943 case $host_os in 8944 aix[3-9]*) 8945 # On AIX/PPC, the GNU linker is very broken 8946 if test "$host_cpu" != ia64; then 8947 ld_shlibs=no 8948 cat <<_LT_EOF 1>&2 8949 8950*** Warning: the GNU linker, at least up to release 2.19, is reported 8951*** to be unable to reliably create shared libraries on AIX. 8952*** Therefore, libtool is disabling shared libraries support. If you 8953*** really care for shared libraries, you may want to install binutils 8954*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8955*** You will then need to restart the configuration process. 8956 8957_LT_EOF 8958 fi 8959 ;; 8960 8961 amigaos*) 8962 case $host_cpu in 8963 powerpc) 8964 # see comment about AmigaOS4 .so support 8965 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8966 archive_expsym_cmds='' 8967 ;; 8968 m68k) 8969 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)' 8970 hardcode_libdir_flag_spec='-L$libdir' 8971 hardcode_minus_L=yes 8972 ;; 8973 esac 8974 ;; 8975 8976 beos*) 8977 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8978 allow_undefined_flag=unsupported 8979 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8980 # support --undefined. This deserves some investigation. FIXME 8981 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8982 else 8983 ld_shlibs=no 8984 fi 8985 ;; 8986 8987 cygwin* | mingw* | pw32* | cegcc*) 8988 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8989 # as there is no search path for DLLs. 8990 hardcode_libdir_flag_spec='-L$libdir' 8991 export_dynamic_flag_spec='${wl}--export-all-symbols' 8992 allow_undefined_flag=unsupported 8993 always_export_symbols=no 8994 enable_shared_with_static_runtimes=yes 8995 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 8996 8997 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8998 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8999 # If the export-symbols file already is a .def file (1st line 9000 # is EXPORTS), use it as is; otherwise, prepend... 9001 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9002 cp $export_symbols $output_objdir/$soname.def; 9003 else 9004 echo EXPORTS > $output_objdir/$soname.def; 9005 cat $export_symbols >> $output_objdir/$soname.def; 9006 fi~ 9007 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9008 else 9009 ld_shlibs=no 9010 fi 9011 ;; 9012 9013 haiku*) 9014 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9015 link_all_deplibs=yes 9016 ;; 9017 9018 interix[3-9]*) 9019 hardcode_direct=no 9020 hardcode_shlibpath_var=no 9021 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9022 export_dynamic_flag_spec='${wl}-E' 9023 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9024 # Instead, shared libraries are loaded at an image base (0x10000000 by 9025 # default) and relocated if they conflict, which is a slow very memory 9026 # consuming and fragmenting process. To avoid this, we pick a random, 9027 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9028 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9029 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9030 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' 9031 ;; 9032 9033 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9034 tmp_diet=no 9035 if test "$host_os" = linux-dietlibc; then 9036 case $cc_basename in 9037 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9038 esac 9039 fi 9040 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9041 && test "$tmp_diet" = no 9042 then 9043 tmp_addflag=' $pic_flag' 9044 tmp_sharedflag='-shared' 9045 case $cc_basename,$host_cpu in 9046 pgcc*) # Portland Group C compiler 9047 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9048 tmp_addflag=' $pic_flag' 9049 ;; 9050 pgf77* | pgf90* | pgf95* | pgfortran*) 9051 # Portland Group f77 and f90 compilers 9052 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9053 tmp_addflag=' $pic_flag -Mnomain' ;; 9054 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9055 tmp_addflag=' -i_dynamic' ;; 9056 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9057 tmp_addflag=' -i_dynamic -nofor_main' ;; 9058 ifc* | ifort*) # Intel Fortran compiler 9059 tmp_addflag=' -nofor_main' ;; 9060 lf95*) # Lahey Fortran 8.1 9061 whole_archive_flag_spec= 9062 tmp_sharedflag='--shared' ;; 9063 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9064 tmp_sharedflag='-qmkshrobj' 9065 tmp_addflag= ;; 9066 nvcc*) # Cuda Compiler Driver 2.2 9067 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9068 compiler_needs_object=yes 9069 ;; 9070 esac 9071 case `$CC -V 2>&1 | sed 5q` in 9072 *Sun\ C*) # Sun C 5.9 9073 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive' 9074 compiler_needs_object=yes 9075 tmp_sharedflag='-G' ;; 9076 *Sun\ F*) # Sun Fortran 8.3 9077 tmp_sharedflag='-G' ;; 9078 esac 9079 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9080 9081 if test "x$supports_anon_versioning" = xyes; then 9082 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9083 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9084 echo "local: *; };" >> $output_objdir/$libname.ver~ 9085 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9086 fi 9087 9088 case $cc_basename in 9089 xlf* | bgf* | bgxlf* | mpixlf*) 9090 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9091 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9092 hardcode_libdir_flag_spec= 9093 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9094 archive_cmds='$LD -shared $libobjs $deplibs $compiler_flags -soname $soname -o $lib' 9095 if test "x$supports_anon_versioning" = xyes; then 9096 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9097 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9098 echo "local: *; };" >> $output_objdir/$libname.ver~ 9099 $LD -shared $libobjs $deplibs $compiler_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9100 fi 9101 ;; 9102 esac 9103 else 9104 ld_shlibs=no 9105 fi 9106 ;; 9107 9108 netbsd*) 9109 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9110 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9111 wlarc= 9112 else 9113 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9114 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9115 fi 9116 ;; 9117 9118 solaris*) 9119 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9120 ld_shlibs=no 9121 cat <<_LT_EOF 1>&2 9122 9123*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9124*** create shared libraries on Solaris systems. Therefore, libtool 9125*** is disabling shared libraries support. We urge you to upgrade GNU 9126*** binutils to release 2.9.1 or newer. Another option is to modify 9127*** your PATH or compiler configuration so that the native linker is 9128*** used, and then restart. 9129 9130_LT_EOF 9131 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9132 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9133 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9134 else 9135 ld_shlibs=no 9136 fi 9137 ;; 9138 9139 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9140 case `$LD -v 2>&1` in 9141 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9142 ld_shlibs=no 9143 cat <<_LT_EOF 1>&2 9144 9145*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9146*** reliably create shared libraries on SCO systems. Therefore, libtool 9147*** is disabling shared libraries support. We urge you to upgrade GNU 9148*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9149*** your PATH or compiler configuration so that the native linker is 9150*** used, and then restart. 9151 9152_LT_EOF 9153 ;; 9154 *) 9155 # For security reasons, it is highly recommended that you always 9156 # use absolute paths for naming shared libraries, and exclude the 9157 # DT_RUNPATH tag from executables and libraries. But doing so 9158 # requires that you compile everything twice, which is a pain. 9159 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9160 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9161 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9162 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9163 else 9164 ld_shlibs=no 9165 fi 9166 ;; 9167 esac 9168 ;; 9169 9170 sunos4*) 9171 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9172 wlarc= 9173 hardcode_direct=yes 9174 hardcode_shlibpath_var=no 9175 ;; 9176 9177 *) 9178 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9179 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9180 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9181 else 9182 ld_shlibs=no 9183 fi 9184 ;; 9185 esac 9186 9187 if test "$ld_shlibs" = no; then 9188 runpath_var= 9189 hardcode_libdir_flag_spec= 9190 export_dynamic_flag_spec= 9191 whole_archive_flag_spec= 9192 fi 9193 else 9194 # PORTME fill in a description of your system's linker (not GNU ld) 9195 case $host_os in 9196 aix3*) 9197 allow_undefined_flag=unsupported 9198 always_export_symbols=yes 9199 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' 9200 # Note: this linker hardcodes the directories in LIBPATH if there 9201 # are no directories specified by -L. 9202 hardcode_minus_L=yes 9203 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9204 # Neither direct hardcoding nor static linking is supported with a 9205 # broken collect2. 9206 hardcode_direct=unsupported 9207 fi 9208 ;; 9209 9210 aix[4-9]*) 9211 if test "$host_cpu" = ia64; then 9212 # On IA64, the linker does run time linking by default, so we don't 9213 # have to do anything special. 9214 aix_use_runtimelinking=no 9215 exp_sym_flag='-Bexport' 9216 no_entry_flag="" 9217 else 9218 # If we're using GNU nm, then we don't want the "-C" option. 9219 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9220 # Also, AIX nm treats weak defined symbols like other global 9221 # defined symbols, whereas GNU nm marks them as "W". 9222 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9223 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols' 9224 else 9225 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' 9226 fi 9227 aix_use_runtimelinking=no 9228 9229 # Test if we are trying to use run time linking or normal 9230 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9231 # need to do runtime linking. 9232 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9233 for ld_flag in $LDFLAGS; do 9234 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9235 aix_use_runtimelinking=yes 9236 break 9237 fi 9238 done 9239 ;; 9240 esac 9241 9242 exp_sym_flag='-bexport' 9243 no_entry_flag='-bnoentry' 9244 fi 9245 9246 # When large executables or shared objects are built, AIX ld can 9247 # have problems creating the table of contents. If linking a library 9248 # or program results in "error TOC overflow" add -mminimal-toc to 9249 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9250 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9251 9252 archive_cmds='' 9253 hardcode_direct=yes 9254 hardcode_direct_absolute=yes 9255 hardcode_libdir_separator=':' 9256 link_all_deplibs=yes 9257 file_list_spec='${wl}-f,' 9258 9259 if test "$GCC" = yes; then 9260 case $host_os in aix4.[012]|aix4.[012].*) 9261 # We only want to do this on AIX 4.2 and lower, the check 9262 # below for broken collect2 doesn't work under 4.3+ 9263 collect2name=`${CC} -print-prog-name=collect2` 9264 if test -f "$collect2name" && 9265 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9266 then 9267 # We have reworked collect2 9268 : 9269 else 9270 # We have old collect2 9271 hardcode_direct=unsupported 9272 # It fails to find uninstalled libraries when the uninstalled 9273 # path is not listed in the libpath. Setting hardcode_minus_L 9274 # to unsupported forces relinking 9275 hardcode_minus_L=yes 9276 hardcode_libdir_flag_spec='-L$libdir' 9277 hardcode_libdir_separator= 9278 fi 9279 ;; 9280 esac 9281 shared_flag='-shared' 9282 if test "$aix_use_runtimelinking" = yes; then 9283 shared_flag="$shared_flag "'${wl}-G' 9284 fi 9285 else 9286 # not using gcc 9287 if test "$host_cpu" = ia64; then 9288 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9289 # chokes on -Wl,-G. The following line is correct: 9290 shared_flag='-G' 9291 else 9292 if test "$aix_use_runtimelinking" = yes; then 9293 shared_flag='${wl}-G' 9294 else 9295 shared_flag='${wl}-bM:SRE' 9296 fi 9297 fi 9298 fi 9299 9300 export_dynamic_flag_spec='${wl}-bexpall' 9301 # It seems that -bexpall does not export symbols beginning with 9302 # underscore (_), so it is better to generate a list of symbols to export. 9303 always_export_symbols=yes 9304 if test "$aix_use_runtimelinking" = yes; then 9305 # Warning - without using the other runtime loading flags (-brtl), 9306 # -berok will link without error, but may produce a broken library. 9307 allow_undefined_flag='-berok' 9308 # Determine the default libpath from the value encoded in an 9309 # empty executable. 9310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9311/* end confdefs.h. */ 9312 9313int 9314main () 9315{ 9316 9317 ; 9318 return 0; 9319} 9320_ACEOF 9321if ac_fn_c_try_link "$LINENO"; then : 9322 9323lt_aix_libpath_sed=' 9324 /Import File Strings/,/^$/ { 9325 /^0/ { 9326 s/^0 *\(.*\)$/\1/ 9327 p 9328 } 9329 }' 9330aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9331# Check for a 64-bit object if we didn't find anything. 9332if test -z "$aix_libpath"; then 9333 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9334fi 9335fi 9336rm -f core conftest.err conftest.$ac_objext \ 9337 conftest$ac_exeext conftest.$ac_ext 9338if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9339 9340 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9341 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag" 9342 else 9343 if test "$host_cpu" = ia64; then 9344 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9345 allow_undefined_flag="-z nodefs" 9346 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" 9347 else 9348 # Determine the default libpath from the value encoded in an 9349 # empty executable. 9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9351/* end confdefs.h. */ 9352 9353int 9354main () 9355{ 9356 9357 ; 9358 return 0; 9359} 9360_ACEOF 9361if ac_fn_c_try_link "$LINENO"; then : 9362 9363lt_aix_libpath_sed=' 9364 /Import File Strings/,/^$/ { 9365 /^0/ { 9366 s/^0 *\(.*\)$/\1/ 9367 p 9368 } 9369 }' 9370aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9371# Check for a 64-bit object if we didn't find anything. 9372if test -z "$aix_libpath"; then 9373 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9374fi 9375fi 9376rm -f core conftest.err conftest.$ac_objext \ 9377 conftest$ac_exeext conftest.$ac_ext 9378if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9379 9380 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9381 # Warning - without using the other run time loading flags, 9382 # -berok will link without error, but may produce a broken library. 9383 no_undefined_flag=' ${wl}-bernotok' 9384 allow_undefined_flag=' ${wl}-berok' 9385 if test "$with_gnu_ld" = yes; then 9386 # We only use this code for GNU lds that support --whole-archive. 9387 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9388 else 9389 # Exported symbols can be pulled into shared objects from archives 9390 whole_archive_flag_spec='$convenience' 9391 fi 9392 archive_cmds_need_lc=yes 9393 # This is similar to how AIX traditionally builds its shared libraries. 9394 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' 9395 fi 9396 fi 9397 ;; 9398 9399 amigaos*) 9400 case $host_cpu in 9401 powerpc) 9402 # see comment about AmigaOS4 .so support 9403 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9404 archive_expsym_cmds='' 9405 ;; 9406 m68k) 9407 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)' 9408 hardcode_libdir_flag_spec='-L$libdir' 9409 hardcode_minus_L=yes 9410 ;; 9411 esac 9412 ;; 9413 9414 bsdi[45]*) 9415 export_dynamic_flag_spec=-rdynamic 9416 ;; 9417 9418 cygwin* | mingw* | pw32* | cegcc*) 9419 # When not using gcc, we currently assume that we are using 9420 # Microsoft Visual C++. 9421 # hardcode_libdir_flag_spec is actually meaningless, as there is 9422 # no search path for DLLs. 9423 hardcode_libdir_flag_spec=' ' 9424 allow_undefined_flag=unsupported 9425 # Tell ltmain to make .lib files, not .a files. 9426 libext=lib 9427 # Tell ltmain to make .dll files, not .so files. 9428 shrext_cmds=".dll" 9429 # FIXME: Setting linknames here is a bad hack. 9430 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9431 # The linker will automatically build a .lib file if we build a DLL. 9432 old_archive_from_new_cmds='true' 9433 # FIXME: Should let the user specify the lib program. 9434 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9435 fix_srcfile_path='`cygpath -w "$srcfile"`' 9436 enable_shared_with_static_runtimes=yes 9437 ;; 9438 9439 darwin* | rhapsody*) 9440 9441 9442 archive_cmds_need_lc=no 9443 hardcode_direct=no 9444 hardcode_automatic=yes 9445 hardcode_shlibpath_var=unsupported 9446 if test "$lt_cv_ld_force_load" = "yes"; then 9447 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 9448 else 9449 whole_archive_flag_spec='' 9450 fi 9451 link_all_deplibs=yes 9452 allow_undefined_flag="$_lt_dar_allow_undefined" 9453 case $cc_basename in 9454 ifort*) _lt_dar_can_shared=yes ;; 9455 *) _lt_dar_can_shared=$GCC ;; 9456 esac 9457 if test "$_lt_dar_can_shared" = "yes"; then 9458 output_verbose_link_cmd=func_echo_all 9459 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9460 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9461 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}" 9462 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}" 9463 9464 else 9465 ld_shlibs=no 9466 fi 9467 9468 ;; 9469 9470 dgux*) 9471 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9472 hardcode_libdir_flag_spec='-L$libdir' 9473 hardcode_shlibpath_var=no 9474 ;; 9475 9476 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9477 # support. Future versions do this automatically, but an explicit c++rt0.o 9478 # does not break anything, and helps significantly (at the cost of a little 9479 # extra space). 9480 freebsd2.2*) 9481 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9482 hardcode_libdir_flag_spec='-R$libdir' 9483 hardcode_direct=yes 9484 hardcode_shlibpath_var=no 9485 ;; 9486 9487 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9488 freebsd2.*) 9489 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9490 hardcode_direct=yes 9491 hardcode_minus_L=yes 9492 hardcode_shlibpath_var=no 9493 ;; 9494 9495 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9496 freebsd* | dragonfly*) 9497 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9498 hardcode_libdir_flag_spec='-R$libdir' 9499 hardcode_direct=yes 9500 hardcode_shlibpath_var=no 9501 ;; 9502 9503 hpux9*) 9504 if test "$GCC" = yes; then 9505 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' 9506 else 9507 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' 9508 fi 9509 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9510 hardcode_libdir_separator=: 9511 hardcode_direct=yes 9512 9513 # hardcode_minus_L: Not really in the search PATH, 9514 # but as the default location of the library. 9515 hardcode_minus_L=yes 9516 export_dynamic_flag_spec='${wl}-E' 9517 ;; 9518 9519 hpux10*) 9520 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9521 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9522 else 9523 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9524 fi 9525 if test "$with_gnu_ld" = no; then 9526 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9527 hardcode_libdir_flag_spec_ld='+b $libdir' 9528 hardcode_libdir_separator=: 9529 hardcode_direct=yes 9530 hardcode_direct_absolute=yes 9531 export_dynamic_flag_spec='${wl}-E' 9532 # hardcode_minus_L: Not really in the search PATH, 9533 # but as the default location of the library. 9534 hardcode_minus_L=yes 9535 fi 9536 ;; 9537 9538 hpux11*) 9539 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9540 case $host_cpu in 9541 hppa*64*) 9542 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9543 ;; 9544 ia64*) 9545 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9546 ;; 9547 *) 9548 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9549 ;; 9550 esac 9551 else 9552 case $host_cpu in 9553 hppa*64*) 9554 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9555 ;; 9556 ia64*) 9557 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9558 ;; 9559 *) 9560 9561 # Older versions of the 11.00 compiler do not understand -b yet 9562 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9564$as_echo_n "checking if $CC understands -b... " >&6; } 9565if test "${lt_cv_prog_compiler__b+set}" = set; then : 9566 $as_echo_n "(cached) " >&6 9567else 9568 lt_cv_prog_compiler__b=no 9569 save_LDFLAGS="$LDFLAGS" 9570 LDFLAGS="$LDFLAGS -b" 9571 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9572 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9573 # The linker can only warn and ignore the option if not recognized 9574 # So say no if there are warnings 9575 if test -s conftest.err; then 9576 # Append any errors to the config.log. 9577 cat conftest.err 1>&5 9578 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9579 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9580 if diff conftest.exp conftest.er2 >/dev/null; then 9581 lt_cv_prog_compiler__b=yes 9582 fi 9583 else 9584 lt_cv_prog_compiler__b=yes 9585 fi 9586 fi 9587 $RM -r conftest* 9588 LDFLAGS="$save_LDFLAGS" 9589 9590fi 9591{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9592$as_echo "$lt_cv_prog_compiler__b" >&6; } 9593 9594if test x"$lt_cv_prog_compiler__b" = xyes; then 9595 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9596else 9597 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9598fi 9599 9600 ;; 9601 esac 9602 fi 9603 if test "$with_gnu_ld" = no; then 9604 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9605 hardcode_libdir_separator=: 9606 9607 case $host_cpu in 9608 hppa*64*|ia64*) 9609 hardcode_direct=no 9610 hardcode_shlibpath_var=no 9611 ;; 9612 *) 9613 hardcode_direct=yes 9614 hardcode_direct_absolute=yes 9615 export_dynamic_flag_spec='${wl}-E' 9616 9617 # hardcode_minus_L: Not really in the search PATH, 9618 # but as the default location of the library. 9619 hardcode_minus_L=yes 9620 ;; 9621 esac 9622 fi 9623 ;; 9624 9625 irix5* | irix6* | nonstopux*) 9626 if test "$GCC" = yes; then 9627 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9628 # Try to use the -exported_symbol ld option, if it does not 9629 # work, assume that -exports_file does not work either and 9630 # implicitly export all symbols. 9631 save_LDFLAGS="$LDFLAGS" 9632 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9634/* end confdefs.h. */ 9635int foo(void) {} 9636_ACEOF 9637if ac_fn_c_try_link "$LINENO"; then : 9638 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib' 9639 9640fi 9641rm -f core conftest.err conftest.$ac_objext \ 9642 conftest$ac_exeext conftest.$ac_ext 9643 LDFLAGS="$save_LDFLAGS" 9644 else 9645 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9646 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib' 9647 fi 9648 archive_cmds_need_lc='no' 9649 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9650 hardcode_libdir_separator=: 9651 inherit_rpath=yes 9652 link_all_deplibs=yes 9653 ;; 9654 9655 netbsd*) 9656 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9657 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9658 else 9659 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9660 fi 9661 hardcode_libdir_flag_spec='-R$libdir' 9662 hardcode_direct=yes 9663 hardcode_shlibpath_var=no 9664 ;; 9665 9666 newsos6) 9667 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9668 hardcode_direct=yes 9669 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9670 hardcode_libdir_separator=: 9671 hardcode_shlibpath_var=no 9672 ;; 9673 9674 *nto* | *qnx*) 9675 ;; 9676 9677 openbsd*) 9678 if test -f /usr/libexec/ld.so; then 9679 hardcode_direct=yes 9680 hardcode_shlibpath_var=no 9681 hardcode_direct_absolute=yes 9682 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9683 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9684 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9685 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9686 export_dynamic_flag_spec='${wl}-E' 9687 else 9688 case $host_os in 9689 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9690 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9691 hardcode_libdir_flag_spec='-R$libdir' 9692 ;; 9693 *) 9694 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9695 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9696 ;; 9697 esac 9698 fi 9699 else 9700 ld_shlibs=no 9701 fi 9702 ;; 9703 9704 os2*) 9705 hardcode_libdir_flag_spec='-L$libdir' 9706 hardcode_minus_L=yes 9707 allow_undefined_flag=unsupported 9708 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' 9709 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9710 ;; 9711 9712 osf3*) 9713 if test "$GCC" = yes; then 9714 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9715 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9716 else 9717 allow_undefined_flag=' -expect_unresolved \*' 9718 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9719 fi 9720 archive_cmds_need_lc='no' 9721 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9722 hardcode_libdir_separator=: 9723 ;; 9724 9725 osf4* | osf5*) # as osf3* with the addition of -msym flag 9726 if test "$GCC" = yes; then 9727 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9728 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib' 9729 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9730 else 9731 allow_undefined_flag=' -expect_unresolved \*' 9732 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib' 9733 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~ 9734 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp' 9735 9736 # Both c and cxx compiler support -rpath directly 9737 hardcode_libdir_flag_spec='-rpath $libdir' 9738 fi 9739 archive_cmds_need_lc='no' 9740 hardcode_libdir_separator=: 9741 ;; 9742 9743 solaris*) 9744 no_undefined_flag=' -z defs' 9745 if test "$GCC" = yes; then 9746 wlarc='${wl}' 9747 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9748 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9749 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9750 else 9751 case `$CC -V 2>&1` in 9752 *"Compilers 5.0"*) 9753 wlarc='' 9754 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9755 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9756 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9757 ;; 9758 *) 9759 wlarc='${wl}' 9760 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9761 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9762 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9763 ;; 9764 esac 9765 fi 9766 hardcode_libdir_flag_spec='-R$libdir' 9767 hardcode_shlibpath_var=no 9768 case $host_os in 9769 solaris2.[0-5] | solaris2.[0-5].*) ;; 9770 *) 9771 # The compiler driver will combine and reorder linker options, 9772 # but understands `-z linker_flag'. GCC discards it without `$wl', 9773 # but is careful enough not to reorder. 9774 # Supported since Solaris 2.6 (maybe 2.5.1?) 9775 if test "$GCC" = yes; then 9776 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9777 else 9778 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9779 fi 9780 ;; 9781 esac 9782 link_all_deplibs=yes 9783 ;; 9784 9785 sunos4*) 9786 if test "x$host_vendor" = xsequent; then 9787 # Use $CC to link under sequent, because it throws in some extra .o 9788 # files that make .init and .fini sections work. 9789 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9790 else 9791 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9792 fi 9793 hardcode_libdir_flag_spec='-L$libdir' 9794 hardcode_direct=yes 9795 hardcode_minus_L=yes 9796 hardcode_shlibpath_var=no 9797 ;; 9798 9799 sysv4) 9800 case $host_vendor in 9801 sni) 9802 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9803 hardcode_direct=yes # is this really true??? 9804 ;; 9805 siemens) 9806 ## LD is ld it makes a PLAMLIB 9807 ## CC just makes a GrossModule. 9808 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9809 reload_cmds='$CC -r -o $output$reload_objs' 9810 hardcode_direct=no 9811 ;; 9812 motorola) 9813 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9814 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9815 ;; 9816 esac 9817 runpath_var='LD_RUN_PATH' 9818 hardcode_shlibpath_var=no 9819 ;; 9820 9821 sysv4.3*) 9822 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9823 hardcode_shlibpath_var=no 9824 export_dynamic_flag_spec='-Bexport' 9825 ;; 9826 9827 sysv4*MP*) 9828 if test -d /usr/nec; then 9829 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9830 hardcode_shlibpath_var=no 9831 runpath_var=LD_RUN_PATH 9832 hardcode_runpath_var=yes 9833 ld_shlibs=yes 9834 fi 9835 ;; 9836 9837 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9838 no_undefined_flag='${wl}-z,text' 9839 archive_cmds_need_lc=no 9840 hardcode_shlibpath_var=no 9841 runpath_var='LD_RUN_PATH' 9842 9843 if test "$GCC" = yes; then 9844 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9845 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9846 else 9847 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9848 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9849 fi 9850 ;; 9851 9852 sysv5* | sco3.2v5* | sco5v6*) 9853 # Note: We can NOT use -z defs as we might desire, because we do not 9854 # link with -lc, and that would cause any symbols used from libc to 9855 # always be unresolved, which means just about no library would 9856 # ever link correctly. If we're not using GNU ld we use -z text 9857 # though, which does catch some bad symbols but isn't as heavy-handed 9858 # as -z defs. 9859 no_undefined_flag='${wl}-z,text' 9860 allow_undefined_flag='${wl}-z,nodefs' 9861 archive_cmds_need_lc=no 9862 hardcode_shlibpath_var=no 9863 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9864 hardcode_libdir_separator=':' 9865 link_all_deplibs=yes 9866 export_dynamic_flag_spec='${wl}-Bexport' 9867 runpath_var='LD_RUN_PATH' 9868 9869 if test "$GCC" = yes; then 9870 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9871 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9872 else 9873 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9874 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9875 fi 9876 ;; 9877 9878 uts4*) 9879 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9880 hardcode_libdir_flag_spec='-L$libdir' 9881 hardcode_shlibpath_var=no 9882 ;; 9883 9884 *) 9885 ld_shlibs=no 9886 ;; 9887 esac 9888 9889 if test x$host_vendor = xsni; then 9890 case $host in 9891 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9892 export_dynamic_flag_spec='${wl}-Blargedynsym' 9893 ;; 9894 esac 9895 fi 9896 fi 9897 9898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9899$as_echo "$ld_shlibs" >&6; } 9900test "$ld_shlibs" = no && can_build_shared=no 9901 9902with_gnu_ld=$with_gnu_ld 9903 9904 9905 9906 9907 9908 9909 9910 9911 9912 9913 9914 9915 9916 9917 9918# 9919# Do we need to explicitly link libc? 9920# 9921case "x$archive_cmds_need_lc" in 9922x|xyes) 9923 # Assume -lc should be added 9924 archive_cmds_need_lc=yes 9925 9926 if test "$enable_shared" = yes && test "$GCC" = yes; then 9927 case $archive_cmds in 9928 *'~'*) 9929 # FIXME: we may have to deal with multi-command sequences. 9930 ;; 9931 '$CC '*) 9932 # Test whether the compiler implicitly links with -lc since on some 9933 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9934 # to ld, don't add -lc before -lgcc. 9935 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9936$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9937if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9938 $as_echo_n "(cached) " >&6 9939else 9940 $RM conftest* 9941 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9942 9943 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9944 (eval $ac_compile) 2>&5 9945 ac_status=$? 9946 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9947 test $ac_status = 0; } 2>conftest.err; then 9948 soname=conftest 9949 lib=conftest 9950 libobjs=conftest.$ac_objext 9951 deplibs= 9952 wl=$lt_prog_compiler_wl 9953 pic_flag=$lt_prog_compiler_pic 9954 compiler_flags=-v 9955 linker_flags=-v 9956 verstring= 9957 output_objdir=. 9958 libname=conftest 9959 lt_save_allow_undefined_flag=$allow_undefined_flag 9960 allow_undefined_flag= 9961 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9962 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9963 ac_status=$? 9964 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9965 test $ac_status = 0; } 9966 then 9967 lt_cv_archive_cmds_need_lc=no 9968 else 9969 lt_cv_archive_cmds_need_lc=yes 9970 fi 9971 allow_undefined_flag=$lt_save_allow_undefined_flag 9972 else 9973 cat conftest.err 1>&5 9974 fi 9975 $RM conftest* 9976 9977fi 9978{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9979$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9980 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9981 ;; 9982 esac 9983 fi 9984 ;; 9985esac 9986 9987 9988 9989 9990 9991 9992 9993 9994 9995 9996 9997 9998 9999 10000 10001 10002 10003 10004 10005 10006 10007 10008 10009 10010 10011 10012 10013 10014 10015 10016 10017 10018 10019 10020 10021 10022 10023 10024 10025 10026 10027 10028 10029 10030 10031 10032 10033 10034 10035 10036 10037 10038 10039 10040 10041 10042 10043 10044 10045 10046 10047 10048 10049 10050 10051 10052 10053 10054 10055 10056 10057 10058 10059 10060 10061 10062 10063 10064 10065 10066 10067 10068 10069 10070 10071 10072 10073 10074 10075 10076 10077 10078 10079 10080 10081 10082 10083 10084 10085 10086 10087 10088 10089 10090 10091 10092 10093 10094 10095 10096 10097 10098 10099 10100 10101 10102 10103 10104 10105 10106 10107 10108 10109 10110 10111 10112 10113 10114 10115 10116 10117 10118 10119 10120 10121 10122 10123 10124 10125 10126 10127 10128 10129 10130 10131 10132 10133 10134 10135 10136 10137 10138 10139 10140 10141 10142 10143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10144$as_echo_n "checking dynamic linker characteristics... " >&6; } 10145 10146if test "$GCC" = yes; then 10147 case $host_os in 10148 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10149 *) lt_awk_arg="/^libraries:/" ;; 10150 esac 10151 case $host_os in 10152 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10153 *) lt_sed_strip_eq="s,=/,/,g" ;; 10154 esac 10155 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10156 case $lt_search_path_spec in 10157 *\;*) 10158 # if the path contains ";" then we assume it to be the separator 10159 # otherwise default to the standard path separator (i.e. ":") - it is 10160 # assumed that no part of a normal pathname contains ";" but that should 10161 # okay in the real world where ";" in dirpaths is itself problematic. 10162 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10163 ;; 10164 *) 10165 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10166 ;; 10167 esac 10168 # Ok, now we have the path, separated by spaces, we can step through it 10169 # and add multilib dir if necessary. 10170 lt_tmp_lt_search_path_spec= 10171 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10172 for lt_sys_path in $lt_search_path_spec; do 10173 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10174 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10175 else 10176 test -d "$lt_sys_path" && \ 10177 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10178 fi 10179 done 10180 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10181BEGIN {RS=" "; FS="/|\n";} { 10182 lt_foo=""; 10183 lt_count=0; 10184 for (lt_i = NF; lt_i > 0; lt_i--) { 10185 if ($lt_i != "" && $lt_i != ".") { 10186 if ($lt_i == "..") { 10187 lt_count++; 10188 } else { 10189 if (lt_count == 0) { 10190 lt_foo="/" $lt_i lt_foo; 10191 } else { 10192 lt_count--; 10193 } 10194 } 10195 } 10196 } 10197 if (lt_foo != "") { lt_freq[lt_foo]++; } 10198 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10199}'` 10200 # AWK program above erroneously prepends '/' to C:/dos/paths 10201 # for these hosts. 10202 case $host_os in 10203 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10204 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10205 esac 10206 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10207else 10208 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10209fi 10210library_names_spec= 10211libname_spec='lib$name' 10212soname_spec= 10213shrext_cmds=".so" 10214postinstall_cmds= 10215postuninstall_cmds= 10216finish_cmds= 10217finish_eval= 10218shlibpath_var= 10219shlibpath_overrides_runpath=unknown 10220version_type=none 10221dynamic_linker="$host_os ld.so" 10222sys_lib_dlsearch_path_spec="/lib /usr/lib" 10223need_lib_prefix=unknown 10224hardcode_into_libs=no 10225 10226# when you set need_version to no, make sure it does not cause -set_version 10227# flags to be left without arguments 10228need_version=unknown 10229 10230case $host_os in 10231aix3*) 10232 version_type=linux 10233 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10234 shlibpath_var=LIBPATH 10235 10236 # AIX 3 has no versioning support, so we append a major version to the name. 10237 soname_spec='${libname}${release}${shared_ext}$major' 10238 ;; 10239 10240aix[4-9]*) 10241 version_type=linux 10242 need_lib_prefix=no 10243 need_version=no 10244 hardcode_into_libs=yes 10245 if test "$host_cpu" = ia64; then 10246 # AIX 5 supports IA64 10247 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10248 shlibpath_var=LD_LIBRARY_PATH 10249 else 10250 # With GCC up to 2.95.x, collect2 would create an import file 10251 # for dependence libraries. The import file would start with 10252 # the line `#! .'. This would cause the generated library to 10253 # depend on `.', always an invalid library. This was fixed in 10254 # development snapshots of GCC prior to 3.0. 10255 case $host_os in 10256 aix4 | aix4.[01] | aix4.[01].*) 10257 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10258 echo ' yes ' 10259 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10260 : 10261 else 10262 can_build_shared=no 10263 fi 10264 ;; 10265 esac 10266 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10267 # soname into executable. Probably we can add versioning support to 10268 # collect2, so additional links can be useful in future. 10269 if test "$aix_use_runtimelinking" = yes; then 10270 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10271 # instead of lib<name>.a to let people know that these are not 10272 # typical AIX shared libraries. 10273 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10274 else 10275 # We preserve .a as extension for shared libraries through AIX4.2 10276 # and later when we are not doing run time linking. 10277 library_names_spec='${libname}${release}.a $libname.a' 10278 soname_spec='${libname}${release}${shared_ext}$major' 10279 fi 10280 shlibpath_var=LIBPATH 10281 fi 10282 ;; 10283 10284amigaos*) 10285 case $host_cpu in 10286 powerpc) 10287 # Since July 2007 AmigaOS4 officially supports .so libraries. 10288 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10289 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10290 ;; 10291 m68k) 10292 library_names_spec='$libname.ixlibrary $libname.a' 10293 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10294 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done' 10295 ;; 10296 esac 10297 ;; 10298 10299beos*) 10300 library_names_spec='${libname}${shared_ext}' 10301 dynamic_linker="$host_os ld.so" 10302 shlibpath_var=LIBRARY_PATH 10303 ;; 10304 10305bsdi[45]*) 10306 version_type=linux 10307 need_version=no 10308 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10309 soname_spec='${libname}${release}${shared_ext}$major' 10310 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10311 shlibpath_var=LD_LIBRARY_PATH 10312 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10313 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10314 # the default ld.so.conf also contains /usr/contrib/lib and 10315 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10316 # libtool to hard-code these into programs 10317 ;; 10318 10319cygwin* | mingw* | pw32* | cegcc*) 10320 version_type=windows 10321 shrext_cmds=".dll" 10322 need_version=no 10323 need_lib_prefix=no 10324 10325 case $GCC,$host_os in 10326 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10327 library_names_spec='$libname.dll.a' 10328 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10329 postinstall_cmds='base_file=`basename \${file}`~ 10330 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10331 dldir=$destdir/`dirname \$dlpath`~ 10332 test -d \$dldir || mkdir -p \$dldir~ 10333 $install_prog $dir/$dlname \$dldir/$dlname~ 10334 chmod a+x \$dldir/$dlname~ 10335 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10336 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10337 fi' 10338 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10339 dlpath=$dir/\$dldll~ 10340 $RM \$dlpath' 10341 shlibpath_overrides_runpath=yes 10342 10343 case $host_os in 10344 cygwin*) 10345 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10346 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10347 10348 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10349 ;; 10350 mingw* | cegcc*) 10351 # MinGW DLLs use traditional 'lib' prefix 10352 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10353 ;; 10354 pw32*) 10355 # pw32 DLLs use 'pw' prefix rather than 'lib' 10356 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10357 ;; 10358 esac 10359 ;; 10360 10361 *) 10362 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10363 ;; 10364 esac 10365 dynamic_linker='Win32 ld.exe' 10366 # FIXME: first we should search . and the directory the executable is in 10367 shlibpath_var=PATH 10368 ;; 10369 10370darwin* | rhapsody*) 10371 dynamic_linker="$host_os dyld" 10372 version_type=darwin 10373 need_lib_prefix=no 10374 need_version=no 10375 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10376 soname_spec='${libname}${release}${major}$shared_ext' 10377 shlibpath_overrides_runpath=yes 10378 shlibpath_var=DYLD_LIBRARY_PATH 10379 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10380 10381 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10382 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10383 ;; 10384 10385dgux*) 10386 version_type=linux 10387 need_lib_prefix=no 10388 need_version=no 10389 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10390 soname_spec='${libname}${release}${shared_ext}$major' 10391 shlibpath_var=LD_LIBRARY_PATH 10392 ;; 10393 10394freebsd* | dragonfly*) 10395 # DragonFly does not have aout. When/if they implement a new 10396 # versioning mechanism, adjust this. 10397 if test -x /usr/bin/objformat; then 10398 objformat=`/usr/bin/objformat` 10399 else 10400 case $host_os in 10401 freebsd[23].*) objformat=aout ;; 10402 *) objformat=elf ;; 10403 esac 10404 fi 10405 version_type=freebsd-$objformat 10406 case $version_type in 10407 freebsd-elf*) 10408 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10409 need_version=no 10410 need_lib_prefix=no 10411 ;; 10412 freebsd-*) 10413 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10414 need_version=yes 10415 ;; 10416 esac 10417 shlibpath_var=LD_LIBRARY_PATH 10418 case $host_os in 10419 freebsd2.*) 10420 shlibpath_overrides_runpath=yes 10421 ;; 10422 freebsd3.[01]* | freebsdelf3.[01]*) 10423 shlibpath_overrides_runpath=yes 10424 hardcode_into_libs=yes 10425 ;; 10426 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10427 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10428 shlibpath_overrides_runpath=no 10429 hardcode_into_libs=yes 10430 ;; 10431 *) # from 4.6 on, and DragonFly 10432 shlibpath_overrides_runpath=yes 10433 hardcode_into_libs=yes 10434 ;; 10435 esac 10436 ;; 10437 10438gnu*) 10439 version_type=linux 10440 need_lib_prefix=no 10441 need_version=no 10442 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10443 soname_spec='${libname}${release}${shared_ext}$major' 10444 shlibpath_var=LD_LIBRARY_PATH 10445 hardcode_into_libs=yes 10446 ;; 10447 10448haiku*) 10449 version_type=linux 10450 need_lib_prefix=no 10451 need_version=no 10452 dynamic_linker="$host_os runtime_loader" 10453 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10454 soname_spec='${libname}${release}${shared_ext}$major' 10455 shlibpath_var=LIBRARY_PATH 10456 shlibpath_overrides_runpath=yes 10457 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/beos/system/lib' 10458 hardcode_into_libs=yes 10459 ;; 10460 10461hpux9* | hpux10* | hpux11*) 10462 # Give a soname corresponding to the major version so that dld.sl refuses to 10463 # link against other versions. 10464 version_type=sunos 10465 need_lib_prefix=no 10466 need_version=no 10467 case $host_cpu in 10468 ia64*) 10469 shrext_cmds='.so' 10470 hardcode_into_libs=yes 10471 dynamic_linker="$host_os dld.so" 10472 shlibpath_var=LD_LIBRARY_PATH 10473 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10474 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10475 soname_spec='${libname}${release}${shared_ext}$major' 10476 if test "X$HPUX_IA64_MODE" = X32; then 10477 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10478 else 10479 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10480 fi 10481 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10482 ;; 10483 hppa*64*) 10484 shrext_cmds='.sl' 10485 hardcode_into_libs=yes 10486 dynamic_linker="$host_os dld.sl" 10487 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10488 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10489 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10490 soname_spec='${libname}${release}${shared_ext}$major' 10491 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10492 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10493 ;; 10494 *) 10495 shrext_cmds='.sl' 10496 dynamic_linker="$host_os dld.sl" 10497 shlibpath_var=SHLIB_PATH 10498 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10499 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10500 soname_spec='${libname}${release}${shared_ext}$major' 10501 ;; 10502 esac 10503 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10504 postinstall_cmds='chmod 555 $lib' 10505 # or fails outright, so override atomically: 10506 install_override_mode=555 10507 ;; 10508 10509interix[3-9]*) 10510 version_type=linux 10511 need_lib_prefix=no 10512 need_version=no 10513 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10514 soname_spec='${libname}${release}${shared_ext}$major' 10515 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10516 shlibpath_var=LD_LIBRARY_PATH 10517 shlibpath_overrides_runpath=no 10518 hardcode_into_libs=yes 10519 ;; 10520 10521irix5* | irix6* | nonstopux*) 10522 case $host_os in 10523 nonstopux*) version_type=nonstopux ;; 10524 *) 10525 if test "$lt_cv_prog_gnu_ld" = yes; then 10526 version_type=linux 10527 else 10528 version_type=irix 10529 fi ;; 10530 esac 10531 need_lib_prefix=no 10532 need_version=no 10533 soname_spec='${libname}${release}${shared_ext}$major' 10534 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10535 case $host_os in 10536 irix5* | nonstopux*) 10537 libsuff= shlibsuff= 10538 ;; 10539 *) 10540 case $LD in # libtool.m4 will add one of these switches to LD 10541 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10542 libsuff= shlibsuff= libmagic=32-bit;; 10543 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10544 libsuff=32 shlibsuff=N32 libmagic=N32;; 10545 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10546 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10547 *) libsuff= shlibsuff= libmagic=never-match;; 10548 esac 10549 ;; 10550 esac 10551 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10552 shlibpath_overrides_runpath=no 10553 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10554 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10555 hardcode_into_libs=yes 10556 ;; 10557 10558# No shared lib support for Linux oldld, aout, or coff. 10559linux*oldld* | linux*aout* | linux*coff*) 10560 dynamic_linker=no 10561 ;; 10562 10563# This must be Linux ELF. 10564linux* | k*bsd*-gnu | kopensolaris*-gnu) 10565 version_type=linux 10566 need_lib_prefix=no 10567 need_version=no 10568 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10569 soname_spec='${libname}${release}${shared_ext}$major' 10570 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10571 shlibpath_var=LD_LIBRARY_PATH 10572 shlibpath_overrides_runpath=no 10573 10574 # Some binutils ld are patched to set DT_RUNPATH 10575 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10576 $as_echo_n "(cached) " >&6 10577else 10578 lt_cv_shlibpath_overrides_runpath=no 10579 save_LDFLAGS=$LDFLAGS 10580 save_libdir=$libdir 10581 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10582 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10583 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10584/* end confdefs.h. */ 10585 10586int 10587main () 10588{ 10589 10590 ; 10591 return 0; 10592} 10593_ACEOF 10594if ac_fn_c_try_link "$LINENO"; then : 10595 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10596 lt_cv_shlibpath_overrides_runpath=yes 10597fi 10598fi 10599rm -f core conftest.err conftest.$ac_objext \ 10600 conftest$ac_exeext conftest.$ac_ext 10601 LDFLAGS=$save_LDFLAGS 10602 libdir=$save_libdir 10603 10604fi 10605 10606 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10607 10608 # This implies no fast_install, which is unacceptable. 10609 # Some rework will be needed to allow for fast_install 10610 # before this can be enabled. 10611 hardcode_into_libs=yes 10612 10613 # Append ld.so.conf contents to the search path 10614 if test -f /etc/ld.so.conf; then 10615 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '` 10616 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10617 fi 10618 10619 # We used to test for /lib/ld.so.1 and disable shared libraries on 10620 # powerpc, because MkLinux only supported shared libraries with the 10621 # GNU dynamic linker. Since this was broken with cross compilers, 10622 # most powerpc-linux boxes support dynamic linking these days and 10623 # people can always --disable-shared, the test was removed, and we 10624 # assume the GNU/Linux dynamic linker is in use. 10625 dynamic_linker='GNU/Linux ld.so' 10626 ;; 10627 10628netbsd*) 10629 version_type=sunos 10630 need_lib_prefix=no 10631 need_version=no 10632 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10633 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10634 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10635 dynamic_linker='NetBSD (a.out) ld.so' 10636 else 10637 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10638 soname_spec='${libname}${release}${shared_ext}$major' 10639 dynamic_linker='NetBSD ld.elf_so' 10640 fi 10641 shlibpath_var=LD_LIBRARY_PATH 10642 shlibpath_overrides_runpath=yes 10643 hardcode_into_libs=yes 10644 ;; 10645 10646newsos6) 10647 version_type=linux 10648 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10649 shlibpath_var=LD_LIBRARY_PATH 10650 shlibpath_overrides_runpath=yes 10651 ;; 10652 10653*nto* | *qnx*) 10654 version_type=qnx 10655 need_lib_prefix=no 10656 need_version=no 10657 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10658 soname_spec='${libname}${release}${shared_ext}$major' 10659 shlibpath_var=LD_LIBRARY_PATH 10660 shlibpath_overrides_runpath=no 10661 hardcode_into_libs=yes 10662 dynamic_linker='ldqnx.so' 10663 ;; 10664 10665openbsd*) 10666 version_type=sunos 10667 sys_lib_dlsearch_path_spec="/usr/lib" 10668 need_lib_prefix=no 10669 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10670 case $host_os in 10671 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10672 *) need_version=no ;; 10673 esac 10674 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10675 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10676 shlibpath_var=LD_LIBRARY_PATH 10677 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10678 case $host_os in 10679 openbsd2.[89] | openbsd2.[89].*) 10680 shlibpath_overrides_runpath=no 10681 ;; 10682 *) 10683 shlibpath_overrides_runpath=yes 10684 ;; 10685 esac 10686 else 10687 shlibpath_overrides_runpath=yes 10688 fi 10689 ;; 10690 10691os2*) 10692 libname_spec='$name' 10693 shrext_cmds=".dll" 10694 need_lib_prefix=no 10695 library_names_spec='$libname${shared_ext} $libname.a' 10696 dynamic_linker='OS/2 ld.exe' 10697 shlibpath_var=LIBPATH 10698 ;; 10699 10700osf3* | osf4* | osf5*) 10701 version_type=osf 10702 need_lib_prefix=no 10703 need_version=no 10704 soname_spec='${libname}${release}${shared_ext}$major' 10705 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10706 shlibpath_var=LD_LIBRARY_PATH 10707 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10708 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10709 ;; 10710 10711rdos*) 10712 dynamic_linker=no 10713 ;; 10714 10715solaris*) 10716 version_type=linux 10717 need_lib_prefix=no 10718 need_version=no 10719 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10720 soname_spec='${libname}${release}${shared_ext}$major' 10721 shlibpath_var=LD_LIBRARY_PATH 10722 shlibpath_overrides_runpath=yes 10723 hardcode_into_libs=yes 10724 # ldd complains unless libraries are executable 10725 postinstall_cmds='chmod +x $lib' 10726 ;; 10727 10728sunos4*) 10729 version_type=sunos 10730 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10731 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10732 shlibpath_var=LD_LIBRARY_PATH 10733 shlibpath_overrides_runpath=yes 10734 if test "$with_gnu_ld" = yes; then 10735 need_lib_prefix=no 10736 fi 10737 need_version=yes 10738 ;; 10739 10740sysv4 | sysv4.3*) 10741 version_type=linux 10742 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10743 soname_spec='${libname}${release}${shared_ext}$major' 10744 shlibpath_var=LD_LIBRARY_PATH 10745 case $host_vendor in 10746 sni) 10747 shlibpath_overrides_runpath=no 10748 need_lib_prefix=no 10749 runpath_var=LD_RUN_PATH 10750 ;; 10751 siemens) 10752 need_lib_prefix=no 10753 ;; 10754 motorola) 10755 need_lib_prefix=no 10756 need_version=no 10757 shlibpath_overrides_runpath=no 10758 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10759 ;; 10760 esac 10761 ;; 10762 10763sysv4*MP*) 10764 if test -d /usr/nec ;then 10765 version_type=linux 10766 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10767 soname_spec='$libname${shared_ext}.$major' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 fi 10770 ;; 10771 10772sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10773 version_type=freebsd-elf 10774 need_lib_prefix=no 10775 need_version=no 10776 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10777 soname_spec='${libname}${release}${shared_ext}$major' 10778 shlibpath_var=LD_LIBRARY_PATH 10779 shlibpath_overrides_runpath=yes 10780 hardcode_into_libs=yes 10781 if test "$with_gnu_ld" = yes; then 10782 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10783 else 10784 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10785 case $host_os in 10786 sco3.2v5*) 10787 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10788 ;; 10789 esac 10790 fi 10791 sys_lib_dlsearch_path_spec='/usr/lib' 10792 ;; 10793 10794tpf*) 10795 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10796 version_type=linux 10797 need_lib_prefix=no 10798 need_version=no 10799 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10800 shlibpath_var=LD_LIBRARY_PATH 10801 shlibpath_overrides_runpath=no 10802 hardcode_into_libs=yes 10803 ;; 10804 10805uts4*) 10806 version_type=linux 10807 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10808 soname_spec='${libname}${release}${shared_ext}$major' 10809 shlibpath_var=LD_LIBRARY_PATH 10810 ;; 10811 10812*) 10813 dynamic_linker=no 10814 ;; 10815esac 10816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10817$as_echo "$dynamic_linker" >&6; } 10818test "$dynamic_linker" = no && can_build_shared=no 10819 10820variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10821if test "$GCC" = yes; then 10822 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10823fi 10824 10825if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10826 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10827fi 10828if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10829 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10830fi 10831 10832 10833 10834 10835 10836 10837 10838 10839 10840 10841 10842 10843 10844 10845 10846 10847 10848 10849 10850 10851 10852 10853 10854 10855 10856 10857 10858 10859 10860 10861 10862 10863 10864 10865 10866 10867 10868 10869 10870 10871 10872 10873 10874 10875 10876 10877 10878 10879 10880 10881 10882 10883 10884 10885 10886 10887 10888 10889 10890 10891 10892 10893 10894 10895 10896 10897 10898 10899 10900 10901 10902 10903 10904 10905 10906 10907 10908 10909 10910 10911 10912 10913 10914 10915 10916 10917 10918 10919 10920 10921 10922 10923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10924$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10925hardcode_action= 10926if test -n "$hardcode_libdir_flag_spec" || 10927 test -n "$runpath_var" || 10928 test "X$hardcode_automatic" = "Xyes" ; then 10929 10930 # We can hardcode non-existent directories. 10931 if test "$hardcode_direct" != no && 10932 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10933 # have to relink, otherwise we might link with an installed library 10934 # when we should be linking with a yet-to-be-installed one 10935 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10936 test "$hardcode_minus_L" != no; then 10937 # Linking always hardcodes the temporary library directory. 10938 hardcode_action=relink 10939 else 10940 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10941 hardcode_action=immediate 10942 fi 10943else 10944 # We cannot hardcode anything, or else we can only hardcode existing 10945 # directories. 10946 hardcode_action=unsupported 10947fi 10948{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10949$as_echo "$hardcode_action" >&6; } 10950 10951if test "$hardcode_action" = relink || 10952 test "$inherit_rpath" = yes; then 10953 # Fast installation is not supported 10954 enable_fast_install=no 10955elif test "$shlibpath_overrides_runpath" = yes || 10956 test "$enable_shared" = no; then 10957 # Fast installation is not necessary 10958 enable_fast_install=needless 10959fi 10960 10961 10962 10963 10964 10965 10966 if test "x$enable_dlopen" != xyes; then 10967 enable_dlopen=unknown 10968 enable_dlopen_self=unknown 10969 enable_dlopen_self_static=unknown 10970else 10971 lt_cv_dlopen=no 10972 lt_cv_dlopen_libs= 10973 10974 case $host_os in 10975 beos*) 10976 lt_cv_dlopen="load_add_on" 10977 lt_cv_dlopen_libs= 10978 lt_cv_dlopen_self=yes 10979 ;; 10980 10981 mingw* | pw32* | cegcc*) 10982 lt_cv_dlopen="LoadLibrary" 10983 lt_cv_dlopen_libs= 10984 ;; 10985 10986 cygwin*) 10987 lt_cv_dlopen="dlopen" 10988 lt_cv_dlopen_libs= 10989 ;; 10990 10991 darwin*) 10992 # if libdl is installed we need to link against it 10993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10994$as_echo_n "checking for dlopen in -ldl... " >&6; } 10995if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 10996 $as_echo_n "(cached) " >&6 10997else 10998 ac_check_lib_save_LIBS=$LIBS 10999LIBS="-ldl $LIBS" 11000cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11001/* end confdefs.h. */ 11002 11003/* Override any GCC internal prototype to avoid an error. 11004 Use char because int might match the return type of a GCC 11005 builtin and then its argument prototype would still apply. */ 11006#ifdef __cplusplus 11007extern "C" 11008#endif 11009char dlopen (); 11010int 11011main () 11012{ 11013return dlopen (); 11014 ; 11015 return 0; 11016} 11017_ACEOF 11018if ac_fn_c_try_link "$LINENO"; then : 11019 ac_cv_lib_dl_dlopen=yes 11020else 11021 ac_cv_lib_dl_dlopen=no 11022fi 11023rm -f core conftest.err conftest.$ac_objext \ 11024 conftest$ac_exeext conftest.$ac_ext 11025LIBS=$ac_check_lib_save_LIBS 11026fi 11027{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11028$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11029if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11030 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11031else 11032 11033 lt_cv_dlopen="dyld" 11034 lt_cv_dlopen_libs= 11035 lt_cv_dlopen_self=yes 11036 11037fi 11038 11039 ;; 11040 11041 *) 11042 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11043if test "x$ac_cv_func_shl_load" = x""yes; then : 11044 lt_cv_dlopen="shl_load" 11045else 11046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11047$as_echo_n "checking for shl_load in -ldld... " >&6; } 11048if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11049 $as_echo_n "(cached) " >&6 11050else 11051 ac_check_lib_save_LIBS=$LIBS 11052LIBS="-ldld $LIBS" 11053cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11054/* end confdefs.h. */ 11055 11056/* Override any GCC internal prototype to avoid an error. 11057 Use char because int might match the return type of a GCC 11058 builtin and then its argument prototype would still apply. */ 11059#ifdef __cplusplus 11060extern "C" 11061#endif 11062char shl_load (); 11063int 11064main () 11065{ 11066return shl_load (); 11067 ; 11068 return 0; 11069} 11070_ACEOF 11071if ac_fn_c_try_link "$LINENO"; then : 11072 ac_cv_lib_dld_shl_load=yes 11073else 11074 ac_cv_lib_dld_shl_load=no 11075fi 11076rm -f core conftest.err conftest.$ac_objext \ 11077 conftest$ac_exeext conftest.$ac_ext 11078LIBS=$ac_check_lib_save_LIBS 11079fi 11080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11081$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11082if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11083 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11084else 11085 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11086if test "x$ac_cv_func_dlopen" = x""yes; then : 11087 lt_cv_dlopen="dlopen" 11088else 11089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11090$as_echo_n "checking for dlopen in -ldl... " >&6; } 11091if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11092 $as_echo_n "(cached) " >&6 11093else 11094 ac_check_lib_save_LIBS=$LIBS 11095LIBS="-ldl $LIBS" 11096cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11097/* end confdefs.h. */ 11098 11099/* Override any GCC internal prototype to avoid an error. 11100 Use char because int might match the return type of a GCC 11101 builtin and then its argument prototype would still apply. */ 11102#ifdef __cplusplus 11103extern "C" 11104#endif 11105char dlopen (); 11106int 11107main () 11108{ 11109return dlopen (); 11110 ; 11111 return 0; 11112} 11113_ACEOF 11114if ac_fn_c_try_link "$LINENO"; then : 11115 ac_cv_lib_dl_dlopen=yes 11116else 11117 ac_cv_lib_dl_dlopen=no 11118fi 11119rm -f core conftest.err conftest.$ac_objext \ 11120 conftest$ac_exeext conftest.$ac_ext 11121LIBS=$ac_check_lib_save_LIBS 11122fi 11123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11124$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11125if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11126 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11127else 11128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11129$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11130if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11131 $as_echo_n "(cached) " >&6 11132else 11133 ac_check_lib_save_LIBS=$LIBS 11134LIBS="-lsvld $LIBS" 11135cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11136/* end confdefs.h. */ 11137 11138/* Override any GCC internal prototype to avoid an error. 11139 Use char because int might match the return type of a GCC 11140 builtin and then its argument prototype would still apply. */ 11141#ifdef __cplusplus 11142extern "C" 11143#endif 11144char dlopen (); 11145int 11146main () 11147{ 11148return dlopen (); 11149 ; 11150 return 0; 11151} 11152_ACEOF 11153if ac_fn_c_try_link "$LINENO"; then : 11154 ac_cv_lib_svld_dlopen=yes 11155else 11156 ac_cv_lib_svld_dlopen=no 11157fi 11158rm -f core conftest.err conftest.$ac_objext \ 11159 conftest$ac_exeext conftest.$ac_ext 11160LIBS=$ac_check_lib_save_LIBS 11161fi 11162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11163$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11164if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11165 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11166else 11167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11168$as_echo_n "checking for dld_link in -ldld... " >&6; } 11169if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11170 $as_echo_n "(cached) " >&6 11171else 11172 ac_check_lib_save_LIBS=$LIBS 11173LIBS="-ldld $LIBS" 11174cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11175/* end confdefs.h. */ 11176 11177/* Override any GCC internal prototype to avoid an error. 11178 Use char because int might match the return type of a GCC 11179 builtin and then its argument prototype would still apply. */ 11180#ifdef __cplusplus 11181extern "C" 11182#endif 11183char dld_link (); 11184int 11185main () 11186{ 11187return dld_link (); 11188 ; 11189 return 0; 11190} 11191_ACEOF 11192if ac_fn_c_try_link "$LINENO"; then : 11193 ac_cv_lib_dld_dld_link=yes 11194else 11195 ac_cv_lib_dld_dld_link=no 11196fi 11197rm -f core conftest.err conftest.$ac_objext \ 11198 conftest$ac_exeext conftest.$ac_ext 11199LIBS=$ac_check_lib_save_LIBS 11200fi 11201{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11202$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11203if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11204 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11205fi 11206 11207 11208fi 11209 11210 11211fi 11212 11213 11214fi 11215 11216 11217fi 11218 11219 11220fi 11221 11222 ;; 11223 esac 11224 11225 if test "x$lt_cv_dlopen" != xno; then 11226 enable_dlopen=yes 11227 else 11228 enable_dlopen=no 11229 fi 11230 11231 case $lt_cv_dlopen in 11232 dlopen) 11233 save_CPPFLAGS="$CPPFLAGS" 11234 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11235 11236 save_LDFLAGS="$LDFLAGS" 11237 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11238 11239 save_LIBS="$LIBS" 11240 LIBS="$lt_cv_dlopen_libs $LIBS" 11241 11242 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11243$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11244if test "${lt_cv_dlopen_self+set}" = set; then : 11245 $as_echo_n "(cached) " >&6 11246else 11247 if test "$cross_compiling" = yes; then : 11248 lt_cv_dlopen_self=cross 11249else 11250 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11251 lt_status=$lt_dlunknown 11252 cat > conftest.$ac_ext <<_LT_EOF 11253#line 11253 "configure" 11254#include "confdefs.h" 11255 11256#if HAVE_DLFCN_H 11257#include <dlfcn.h> 11258#endif 11259 11260#include <stdio.h> 11261 11262#ifdef RTLD_GLOBAL 11263# define LT_DLGLOBAL RTLD_GLOBAL 11264#else 11265# ifdef DL_GLOBAL 11266# define LT_DLGLOBAL DL_GLOBAL 11267# else 11268# define LT_DLGLOBAL 0 11269# endif 11270#endif 11271 11272/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11273 find out it does not work in some platform. */ 11274#ifndef LT_DLLAZY_OR_NOW 11275# ifdef RTLD_LAZY 11276# define LT_DLLAZY_OR_NOW RTLD_LAZY 11277# else 11278# ifdef DL_LAZY 11279# define LT_DLLAZY_OR_NOW DL_LAZY 11280# else 11281# ifdef RTLD_NOW 11282# define LT_DLLAZY_OR_NOW RTLD_NOW 11283# else 11284# ifdef DL_NOW 11285# define LT_DLLAZY_OR_NOW DL_NOW 11286# else 11287# define LT_DLLAZY_OR_NOW 0 11288# endif 11289# endif 11290# endif 11291# endif 11292#endif 11293 11294/* When -fvisbility=hidden is used, assume the code has been annotated 11295 correspondingly for the symbols needed. */ 11296#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11297void fnord () __attribute__((visibility("default"))); 11298#endif 11299 11300void fnord () { int i=42; } 11301int main () 11302{ 11303 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11304 int status = $lt_dlunknown; 11305 11306 if (self) 11307 { 11308 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11309 else 11310 { 11311 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11312 else puts (dlerror ()); 11313 } 11314 /* dlclose (self); */ 11315 } 11316 else 11317 puts (dlerror ()); 11318 11319 return status; 11320} 11321_LT_EOF 11322 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11323 (eval $ac_link) 2>&5 11324 ac_status=$? 11325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11326 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11327 (./conftest; exit; ) >&5 2>/dev/null 11328 lt_status=$? 11329 case x$lt_status in 11330 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11331 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11332 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11333 esac 11334 else : 11335 # compilation failed 11336 lt_cv_dlopen_self=no 11337 fi 11338fi 11339rm -fr conftest* 11340 11341 11342fi 11343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11344$as_echo "$lt_cv_dlopen_self" >&6; } 11345 11346 if test "x$lt_cv_dlopen_self" = xyes; then 11347 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11349$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11350if test "${lt_cv_dlopen_self_static+set}" = set; then : 11351 $as_echo_n "(cached) " >&6 11352else 11353 if test "$cross_compiling" = yes; then : 11354 lt_cv_dlopen_self_static=cross 11355else 11356 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11357 lt_status=$lt_dlunknown 11358 cat > conftest.$ac_ext <<_LT_EOF 11359#line 11359 "configure" 11360#include "confdefs.h" 11361 11362#if HAVE_DLFCN_H 11363#include <dlfcn.h> 11364#endif 11365 11366#include <stdio.h> 11367 11368#ifdef RTLD_GLOBAL 11369# define LT_DLGLOBAL RTLD_GLOBAL 11370#else 11371# ifdef DL_GLOBAL 11372# define LT_DLGLOBAL DL_GLOBAL 11373# else 11374# define LT_DLGLOBAL 0 11375# endif 11376#endif 11377 11378/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11379 find out it does not work in some platform. */ 11380#ifndef LT_DLLAZY_OR_NOW 11381# ifdef RTLD_LAZY 11382# define LT_DLLAZY_OR_NOW RTLD_LAZY 11383# else 11384# ifdef DL_LAZY 11385# define LT_DLLAZY_OR_NOW DL_LAZY 11386# else 11387# ifdef RTLD_NOW 11388# define LT_DLLAZY_OR_NOW RTLD_NOW 11389# else 11390# ifdef DL_NOW 11391# define LT_DLLAZY_OR_NOW DL_NOW 11392# else 11393# define LT_DLLAZY_OR_NOW 0 11394# endif 11395# endif 11396# endif 11397# endif 11398#endif 11399 11400/* When -fvisbility=hidden is used, assume the code has been annotated 11401 correspondingly for the symbols needed. */ 11402#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11403void fnord () __attribute__((visibility("default"))); 11404#endif 11405 11406void fnord () { int i=42; } 11407int main () 11408{ 11409 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11410 int status = $lt_dlunknown; 11411 11412 if (self) 11413 { 11414 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11415 else 11416 { 11417 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11418 else puts (dlerror ()); 11419 } 11420 /* dlclose (self); */ 11421 } 11422 else 11423 puts (dlerror ()); 11424 11425 return status; 11426} 11427_LT_EOF 11428 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11429 (eval $ac_link) 2>&5 11430 ac_status=$? 11431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11432 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11433 (./conftest; exit; ) >&5 2>/dev/null 11434 lt_status=$? 11435 case x$lt_status in 11436 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11437 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11438 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11439 esac 11440 else : 11441 # compilation failed 11442 lt_cv_dlopen_self_static=no 11443 fi 11444fi 11445rm -fr conftest* 11446 11447 11448fi 11449{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11450$as_echo "$lt_cv_dlopen_self_static" >&6; } 11451 fi 11452 11453 CPPFLAGS="$save_CPPFLAGS" 11454 LDFLAGS="$save_LDFLAGS" 11455 LIBS="$save_LIBS" 11456 ;; 11457 esac 11458 11459 case $lt_cv_dlopen_self in 11460 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11461 *) enable_dlopen_self=unknown ;; 11462 esac 11463 11464 case $lt_cv_dlopen_self_static in 11465 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11466 *) enable_dlopen_self_static=unknown ;; 11467 esac 11468fi 11469 11470 11471 11472 11473 11474 11475 11476 11477 11478 11479 11480 11481 11482 11483 11484 11485 11486striplib= 11487old_striplib= 11488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11489$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11490if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11491 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11492 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11494$as_echo "yes" >&6; } 11495else 11496# FIXME - insert some real tests, host_os isn't really good enough 11497 case $host_os in 11498 darwin*) 11499 if test -n "$STRIP" ; then 11500 striplib="$STRIP -x" 11501 old_striplib="$STRIP -S" 11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11503$as_echo "yes" >&6; } 11504 else 11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11506$as_echo "no" >&6; } 11507 fi 11508 ;; 11509 *) 11510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11511$as_echo "no" >&6; } 11512 ;; 11513 esac 11514fi 11515 11516 11517 11518 11519 11520 11521 11522 11523 11524 11525 11526 11527 # Report which library types will actually be built 11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11529$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11531$as_echo "$can_build_shared" >&6; } 11532 11533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11534$as_echo_n "checking whether to build shared libraries... " >&6; } 11535 test "$can_build_shared" = "no" && enable_shared=no 11536 11537 # On AIX, shared libraries and static libraries use the same namespace, and 11538 # are all built from PIC. 11539 case $host_os in 11540 aix3*) 11541 test "$enable_shared" = yes && enable_static=no 11542 if test -n "$RANLIB"; then 11543 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11544 postinstall_cmds='$RANLIB $lib' 11545 fi 11546 ;; 11547 11548 aix[4-9]*) 11549 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11550 test "$enable_shared" = yes && enable_static=no 11551 fi 11552 ;; 11553 esac 11554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11555$as_echo "$enable_shared" >&6; } 11556 11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11558$as_echo_n "checking whether to build static libraries... " >&6; } 11559 # Make sure either enable_shared or enable_static is yes. 11560 test "$enable_shared" = yes || enable_static=yes 11561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11562$as_echo "$enable_static" >&6; } 11563 11564 11565 11566 11567fi 11568ac_ext=c 11569ac_cpp='$CPP $CPPFLAGS' 11570ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11571ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11572ac_compiler_gnu=$ac_cv_c_compiler_gnu 11573 11574CC="$lt_save_CC" 11575 11576 11577 11578 11579 11580 11581 11582 11583 11584 11585 11586 11587 11588 ac_config_commands="$ac_config_commands libtool" 11589 11590 11591 11592 11593# Only expand once: 11594 11595 11596 11597 11598 11599XCFLAGS="-Wall -Wextra" 11600 11601 11602if test "${multilib}" = "yes"; then 11603 multilib_arg="--enable-multilib" 11604else 11605 multilib_arg= 11606fi 11607 11608ac_config_files="$ac_config_files Makefile libmpx.spec" 11609 11610ac_config_headers="$ac_config_headers config.h" 11611 11612ac_config_files="$ac_config_files mpxrt/Makefile mpxwrap/Makefile" 11613 11614 11615cat >confcache <<\_ACEOF 11616# This file is a shell script that caches the results of configure 11617# tests run on this system so they can be shared between configure 11618# scripts and configure runs, see configure's option --config-cache. 11619# It is not useful on other systems. If it contains results you don't 11620# want to keep, you may remove or edit it. 11621# 11622# config.status only pays attention to the cache file if you give it 11623# the --recheck option to rerun configure. 11624# 11625# `ac_cv_env_foo' variables (set or unset) will be overridden when 11626# loading this file, other *unset* `ac_cv_foo' will be assigned the 11627# following values. 11628 11629_ACEOF 11630 11631# The following way of writing the cache mishandles newlines in values, 11632# but we know of no workaround that is simple, portable, and efficient. 11633# So, we kill variables containing newlines. 11634# Ultrix sh set writes to stderr and can't be redirected directly, 11635# and sets the high bit in the cache file unless we assign to the vars. 11636( 11637 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 11638 eval ac_val=\$$ac_var 11639 case $ac_val in #( 11640 *${as_nl}*) 11641 case $ac_var in #( 11642 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 11643$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 11644 esac 11645 case $ac_var in #( 11646 _ | IFS | as_nl) ;; #( 11647 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 11648 *) { eval $ac_var=; unset $ac_var;} ;; 11649 esac ;; 11650 esac 11651 done 11652 11653 (set) 2>&1 | 11654 case $as_nl`(ac_space=' '; set) 2>&1` in #( 11655 *${as_nl}ac_space=\ *) 11656 # `set' does not quote correctly, so add quotes: double-quote 11657 # substitution turns \\\\ into \\, and sed turns \\ into \. 11658 sed -n \ 11659 "s/'/'\\\\''/g; 11660 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 11661 ;; #( 11662 *) 11663 # `set' quotes correctly as required by POSIX, so do not add quotes. 11664 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 11665 ;; 11666 esac | 11667 sort 11668) | 11669 sed ' 11670 /^ac_cv_env_/b end 11671 t clear 11672 :clear 11673 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 11674 t end 11675 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 11676 :end' >>confcache 11677if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 11678 if test -w "$cache_file"; then 11679 test "x$cache_file" != "x/dev/null" && 11680 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 11681$as_echo "$as_me: updating cache $cache_file" >&6;} 11682 cat confcache >$cache_file 11683 else 11684 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 11685$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 11686 fi 11687fi 11688rm -f confcache 11689 11690test "x$prefix" = xNONE && prefix=$ac_default_prefix 11691# Let make expand exec_prefix. 11692test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 11693 11694DEFS=-DHAVE_CONFIG_H 11695 11696ac_libobjs= 11697ac_ltlibobjs= 11698for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 11699 # 1. Remove the extension, and $U if already installed. 11700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 11701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 11702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 11703 # will be set to the directory where LIBOBJS objects are built. 11704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 11705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 11706done 11707LIBOBJS=$ac_libobjs 11708 11709LTLIBOBJS=$ac_ltlibobjs 11710 11711 11712if test -z "${LIBMPX_SUPPORTED_TRUE}" && test -z "${LIBMPX_SUPPORTED_FALSE}"; then 11713 as_fn_error "conditional \"LIBMPX_SUPPORTED\" was never defined. 11714Usually this means the macro was only invoked conditionally." "$LINENO" 5 11715fi 11716 if test -n "$EXEEXT"; then 11717 am__EXEEXT_TRUE= 11718 am__EXEEXT_FALSE='#' 11719else 11720 am__EXEEXT_TRUE='#' 11721 am__EXEEXT_FALSE= 11722fi 11723 11724if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then 11725 as_fn_error "conditional \"MAINTAINER_MODE\" was never defined. 11726Usually this means the macro was only invoked conditionally." "$LINENO" 5 11727fi 11728if test -z "${MPX_AS_SUPPORTED_TRUE}" && test -z "${MPX_AS_SUPPORTED_FALSE}"; then 11729 as_fn_error "conditional \"MPX_AS_SUPPORTED\" was never defined. 11730Usually this means the macro was only invoked conditionally." "$LINENO" 5 11731fi 11732 11733: ${CONFIG_STATUS=./config.status} 11734ac_write_fail=0 11735ac_clean_files_save=$ac_clean_files 11736ac_clean_files="$ac_clean_files $CONFIG_STATUS" 11737{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 11738$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 11739as_write_fail=0 11740cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 11741#! $SHELL 11742# Generated by $as_me. 11743# Run this file to recreate the current configuration. 11744# Compiler output produced by configure, useful for debugging 11745# configure, is in config.log if it exists. 11746 11747debug=false 11748ac_cs_recheck=false 11749ac_cs_silent=false 11750 11751SHELL=\${CONFIG_SHELL-$SHELL} 11752export SHELL 11753_ASEOF 11754cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 11755## -------------------- ## 11756## M4sh Initialization. ## 11757## -------------------- ## 11758 11759# Be more Bourne compatible 11760DUALCASE=1; export DUALCASE # for MKS sh 11761if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 11762 emulate sh 11763 NULLCMD=: 11764 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 11765 # is contrary to our usage. Disable this feature. 11766 alias -g '${1+"$@"}'='"$@"' 11767 setopt NO_GLOB_SUBST 11768else 11769 case `(set -o) 2>/dev/null` in #( 11770 *posix*) : 11771 set -o posix ;; #( 11772 *) : 11773 ;; 11774esac 11775fi 11776 11777 11778as_nl=' 11779' 11780export as_nl 11781# Printing a long string crashes Solaris 7 /usr/bin/printf. 11782as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 11783as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 11784as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 11785# Prefer a ksh shell builtin over an external printf program on Solaris, 11786# but without wasting forks for bash or zsh. 11787if test -z "$BASH_VERSION$ZSH_VERSION" \ 11788 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 11789 as_echo='print -r --' 11790 as_echo_n='print -rn --' 11791elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 11792 as_echo='printf %s\n' 11793 as_echo_n='printf %s' 11794else 11795 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 11796 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 11797 as_echo_n='/usr/ucb/echo -n' 11798 else 11799 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 11800 as_echo_n_body='eval 11801 arg=$1; 11802 case $arg in #( 11803 *"$as_nl"*) 11804 expr "X$arg" : "X\\(.*\\)$as_nl"; 11805 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 11806 esac; 11807 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 11808 ' 11809 export as_echo_n_body 11810 as_echo_n='sh -c $as_echo_n_body as_echo' 11811 fi 11812 export as_echo_body 11813 as_echo='sh -c $as_echo_body as_echo' 11814fi 11815 11816# The user is always right. 11817if test "${PATH_SEPARATOR+set}" != set; then 11818 PATH_SEPARATOR=: 11819 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 11820 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 11821 PATH_SEPARATOR=';' 11822 } 11823fi 11824 11825 11826# IFS 11827# We need space, tab and new line, in precisely that order. Quoting is 11828# there to prevent editors from complaining about space-tab. 11829# (If _AS_PATH_WALK were called with IFS unset, it would disable word 11830# splitting by setting IFS to empty value.) 11831IFS=" "" $as_nl" 11832 11833# Find who we are. Look in the path if we contain no directory separator. 11834case $0 in #(( 11835 *[\\/]* ) as_myself=$0 ;; 11836 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11837for as_dir in $PATH 11838do 11839 IFS=$as_save_IFS 11840 test -z "$as_dir" && as_dir=. 11841 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 11842 done 11843IFS=$as_save_IFS 11844 11845 ;; 11846esac 11847# We did not find ourselves, most probably we were run as `sh COMMAND' 11848# in which case we are not to be found in the path. 11849if test "x$as_myself" = x; then 11850 as_myself=$0 11851fi 11852if test ! -f "$as_myself"; then 11853 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 11854 exit 1 11855fi 11856 11857# Unset variables that we do not need and which cause bugs (e.g. in 11858# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 11859# suppresses any "Segmentation fault" message there. '((' could 11860# trigger a bug in pdksh 5.2.14. 11861for as_var in BASH_ENV ENV MAIL MAILPATH 11862do eval test x\${$as_var+set} = xset \ 11863 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 11864done 11865PS1='$ ' 11866PS2='> ' 11867PS4='+ ' 11868 11869# NLS nuisances. 11870LC_ALL=C 11871export LC_ALL 11872LANGUAGE=C 11873export LANGUAGE 11874 11875# CDPATH. 11876(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 11877 11878 11879# as_fn_error ERROR [LINENO LOG_FD] 11880# --------------------------------- 11881# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 11882# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 11883# script with status $?, using 1 if that was 0. 11884as_fn_error () 11885{ 11886 as_status=$?; test $as_status -eq 0 && as_status=1 11887 if test "$3"; then 11888 as_lineno=${as_lineno-"$2"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 11889 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3 11890 fi 11891 $as_echo "$as_me: error: $1" >&2 11892 as_fn_exit $as_status 11893} # as_fn_error 11894 11895 11896# as_fn_set_status STATUS 11897# ----------------------- 11898# Set $? to STATUS, without forking. 11899as_fn_set_status () 11900{ 11901 return $1 11902} # as_fn_set_status 11903 11904# as_fn_exit STATUS 11905# ----------------- 11906# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 11907as_fn_exit () 11908{ 11909 set +e 11910 as_fn_set_status $1 11911 exit $1 11912} # as_fn_exit 11913 11914# as_fn_unset VAR 11915# --------------- 11916# Portably unset VAR. 11917as_fn_unset () 11918{ 11919 { eval $1=; unset $1;} 11920} 11921as_unset=as_fn_unset 11922# as_fn_append VAR VALUE 11923# ---------------------- 11924# Append the text in VALUE to the end of the definition contained in VAR. Take 11925# advantage of any shell optimizations that allow amortized linear growth over 11926# repeated appends, instead of the typical quadratic growth present in naive 11927# implementations. 11928if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 11929 eval 'as_fn_append () 11930 { 11931 eval $1+=\$2 11932 }' 11933else 11934 as_fn_append () 11935 { 11936 eval $1=\$$1\$2 11937 } 11938fi # as_fn_append 11939 11940# as_fn_arith ARG... 11941# ------------------ 11942# Perform arithmetic evaluation on the ARGs, and store the result in the 11943# global $as_val. Take advantage of shells that can avoid forks. The arguments 11944# must be portable across $(()) and expr. 11945if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 11946 eval 'as_fn_arith () 11947 { 11948 as_val=$(( $* )) 11949 }' 11950else 11951 as_fn_arith () 11952 { 11953 as_val=`expr "$@" || test $? -eq 1` 11954 } 11955fi # as_fn_arith 11956 11957 11958if expr a : '\(a\)' >/dev/null 2>&1 && 11959 test "X`expr 00001 : '.*\(...\)'`" = X001; then 11960 as_expr=expr 11961else 11962 as_expr=false 11963fi 11964 11965if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 11966 as_basename=basename 11967else 11968 as_basename=false 11969fi 11970 11971if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 11972 as_dirname=dirname 11973else 11974 as_dirname=false 11975fi 11976 11977as_me=`$as_basename -- "$0" || 11978$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 11979 X"$0" : 'X\(//\)$' \| \ 11980 X"$0" : 'X\(/\)' \| . 2>/dev/null || 11981$as_echo X/"$0" | 11982 sed '/^.*\/\([^/][^/]*\)\/*$/{ 11983 s//\1/ 11984 q 11985 } 11986 /^X\/\(\/\/\)$/{ 11987 s//\1/ 11988 q 11989 } 11990 /^X\/\(\/\).*/{ 11991 s//\1/ 11992 q 11993 } 11994 s/.*/./; q'` 11995 11996# Avoid depending upon Character Ranges. 11997as_cr_letters='abcdefghijklmnopqrstuvwxyz' 11998as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 11999as_cr_Letters=$as_cr_letters$as_cr_LETTERS 12000as_cr_digits='0123456789' 12001as_cr_alnum=$as_cr_Letters$as_cr_digits 12002 12003ECHO_C= ECHO_N= ECHO_T= 12004case `echo -n x` in #((((( 12005-n*) 12006 case `echo 'xy\c'` in 12007 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 12008 xy) ECHO_C='\c';; 12009 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 12010 ECHO_T=' ';; 12011 esac;; 12012*) 12013 ECHO_N='-n';; 12014esac 12015 12016rm -f conf$$ conf$$.exe conf$$.file 12017if test -d conf$$.dir; then 12018 rm -f conf$$.dir/conf$$.file 12019else 12020 rm -f conf$$.dir 12021 mkdir conf$$.dir 2>/dev/null 12022fi 12023if (echo >conf$$.file) 2>/dev/null; then 12024 if ln -s conf$$.file conf$$ 2>/dev/null; then 12025 as_ln_s='ln -s' 12026 # ... but there are two gotchas: 12027 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 12028 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 12029 # In both cases, we have to default to `cp -p'. 12030 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 12031 as_ln_s='cp -p' 12032 elif ln conf$$.file conf$$ 2>/dev/null; then 12033 as_ln_s=ln 12034 else 12035 as_ln_s='cp -p' 12036 fi 12037else 12038 as_ln_s='cp -p' 12039fi 12040rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 12041rmdir conf$$.dir 2>/dev/null 12042 12043 12044# as_fn_mkdir_p 12045# ------------- 12046# Create "$as_dir" as a directory, including parents if necessary. 12047as_fn_mkdir_p () 12048{ 12049 12050 case $as_dir in #( 12051 -*) as_dir=./$as_dir;; 12052 esac 12053 test -d "$as_dir" || eval $as_mkdir_p || { 12054 as_dirs= 12055 while :; do 12056 case $as_dir in #( 12057 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 12058 *) as_qdir=$as_dir;; 12059 esac 12060 as_dirs="'$as_qdir' $as_dirs" 12061 as_dir=`$as_dirname -- "$as_dir" || 12062$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12063 X"$as_dir" : 'X\(//\)[^/]' \| \ 12064 X"$as_dir" : 'X\(//\)$' \| \ 12065 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 12066$as_echo X"$as_dir" | 12067 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12068 s//\1/ 12069 q 12070 } 12071 /^X\(\/\/\)[^/].*/{ 12072 s//\1/ 12073 q 12074 } 12075 /^X\(\/\/\)$/{ 12076 s//\1/ 12077 q 12078 } 12079 /^X\(\/\).*/{ 12080 s//\1/ 12081 q 12082 } 12083 s/.*/./; q'` 12084 test -d "$as_dir" && break 12085 done 12086 test -z "$as_dirs" || eval "mkdir $as_dirs" 12087 } || test -d "$as_dir" || as_fn_error "cannot create directory $as_dir" 12088 12089 12090} # as_fn_mkdir_p 12091if mkdir -p . 2>/dev/null; then 12092 as_mkdir_p='mkdir -p "$as_dir"' 12093else 12094 test -d ./-p && rmdir ./-p 12095 as_mkdir_p=false 12096fi 12097 12098if test -x / >/dev/null 2>&1; then 12099 as_test_x='test -x' 12100else 12101 if ls -dL / >/dev/null 2>&1; then 12102 as_ls_L_option=L 12103 else 12104 as_ls_L_option= 12105 fi 12106 as_test_x=' 12107 eval sh -c '\'' 12108 if test -d "$1"; then 12109 test -d "$1/."; 12110 else 12111 case $1 in #( 12112 -*)set "./$1";; 12113 esac; 12114 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 12115 ???[sx]*):;;*)false;;esac;fi 12116 '\'' sh 12117 ' 12118fi 12119as_executable_p=$as_test_x 12120 12121# Sed expression to map a string onto a valid CPP name. 12122as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 12123 12124# Sed expression to map a string onto a valid variable name. 12125as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 12126 12127 12128exec 6>&1 12129## ----------------------------------- ## 12130## Main body of $CONFIG_STATUS script. ## 12131## ----------------------------------- ## 12132_ASEOF 12133test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 12134 12135cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12136# Save the log message, to keep $0 and so on meaningful, and to 12137# report actual input values of CONFIG_FILES etc. instead of their 12138# values after options handling. 12139ac_log=" 12140This file was extended by package-unused $as_me version-unused, which was 12141generated by GNU Autoconf 2.64. Invocation command line was 12142 12143 CONFIG_FILES = $CONFIG_FILES 12144 CONFIG_HEADERS = $CONFIG_HEADERS 12145 CONFIG_LINKS = $CONFIG_LINKS 12146 CONFIG_COMMANDS = $CONFIG_COMMANDS 12147 $ $0 $@ 12148 12149on `(hostname || uname -n) 2>/dev/null | sed 1q` 12150" 12151 12152_ACEOF 12153 12154case $ac_config_files in *" 12155"*) set x $ac_config_files; shift; ac_config_files=$*;; 12156esac 12157 12158case $ac_config_headers in *" 12159"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 12160esac 12161 12162 12163cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12164# Files that config.status was made for. 12165config_files="$ac_config_files" 12166config_headers="$ac_config_headers" 12167config_commands="$ac_config_commands" 12168 12169_ACEOF 12170 12171cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12172ac_cs_usage="\ 12173\`$as_me' instantiates files and other configuration actions 12174from templates according to the current configuration. Unless the files 12175and actions are specified as TAGs, all are instantiated by default. 12176 12177Usage: $0 [OPTION]... [TAG]... 12178 12179 -h, --help print this help, then exit 12180 -V, --version print version number and configuration settings, then exit 12181 -q, --quiet, --silent 12182 do not print progress messages 12183 -d, --debug don't remove temporary files 12184 --recheck update $as_me by reconfiguring in the same conditions 12185 --file=FILE[:TEMPLATE] 12186 instantiate the configuration file FILE 12187 --header=FILE[:TEMPLATE] 12188 instantiate the configuration header FILE 12189 12190Configuration files: 12191$config_files 12192 12193Configuration headers: 12194$config_headers 12195 12196Configuration commands: 12197$config_commands 12198 12199Report bugs to <libmpx>." 12200 12201_ACEOF 12202cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12203ac_cs_version="\\ 12204package-unused config.status version-unused 12205configured by $0, generated by GNU Autoconf 2.64, 12206 with options \\"`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\" 12207 12208Copyright (C) 2009 Free Software Foundation, Inc. 12209This config.status script is free software; the Free Software Foundation 12210gives unlimited permission to copy, distribute and modify it." 12211 12212ac_pwd='$ac_pwd' 12213srcdir='$srcdir' 12214INSTALL='$INSTALL' 12215MKDIR_P='$MKDIR_P' 12216AWK='$AWK' 12217test -n "\$AWK" || AWK=awk 12218_ACEOF 12219 12220cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12221# The default lists apply if the user does not specify any file. 12222ac_need_defaults=: 12223while test $# != 0 12224do 12225 case $1 in 12226 --*=*) 12227 ac_option=`expr "X$1" : 'X\([^=]*\)='` 12228 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 12229 ac_shift=: 12230 ;; 12231 *) 12232 ac_option=$1 12233 ac_optarg=$2 12234 ac_shift=shift 12235 ;; 12236 esac 12237 12238 case $ac_option in 12239 # Handling of the options. 12240 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 12241 ac_cs_recheck=: ;; 12242 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 12243 $as_echo "$ac_cs_version"; exit ;; 12244 --debug | --debu | --deb | --de | --d | -d ) 12245 debug=: ;; 12246 --file | --fil | --fi | --f ) 12247 $ac_shift 12248 case $ac_optarg in 12249 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12250 esac 12251 as_fn_append CONFIG_FILES " '$ac_optarg'" 12252 ac_need_defaults=false;; 12253 --header | --heade | --head | --hea ) 12254 $ac_shift 12255 case $ac_optarg in 12256 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 12257 esac 12258 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 12259 ac_need_defaults=false;; 12260 --he | --h) 12261 # Conflict between --help and --header 12262 as_fn_error "ambiguous option: \`$1' 12263Try \`$0 --help' for more information.";; 12264 --help | --hel | -h ) 12265 $as_echo "$ac_cs_usage"; exit ;; 12266 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 12267 | -silent | --silent | --silen | --sile | --sil | --si | --s) 12268 ac_cs_silent=: ;; 12269 12270 # This is an error. 12271 -*) as_fn_error "unrecognized option: \`$1' 12272Try \`$0 --help' for more information." ;; 12273 12274 *) as_fn_append ac_config_targets " $1" 12275 ac_need_defaults=false ;; 12276 12277 esac 12278 shift 12279done 12280 12281ac_configure_extra_args= 12282 12283if $ac_cs_silent; then 12284 exec 6>/dev/null 12285 ac_configure_extra_args="$ac_configure_extra_args --silent" 12286fi 12287 12288_ACEOF 12289cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12290if \$ac_cs_recheck; then 12291 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 12292 shift 12293 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 12294 CONFIG_SHELL='$SHELL' 12295 export CONFIG_SHELL 12296 exec "\$@" 12297fi 12298 12299_ACEOF 12300cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12301exec 5>>config.log 12302{ 12303 echo 12304 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 12305## Running $as_me. ## 12306_ASBOX 12307 $as_echo "$ac_log" 12308} >&5 12309 12310_ACEOF 12311cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12312# 12313# INIT-COMMANDS 12314# 12315 12316srcdir="$srcdir" 12317host="$host" 12318target="$target" 12319with_multisubdir="$with_multisubdir" 12320with_multisrctop="$with_multisrctop" 12321with_target_subdir="$with_target_subdir" 12322ac_configure_args="${multilib_arg} ${ac_configure_args}" 12323multi_basedir="$multi_basedir" 12324CONFIG_SHELL=${CONFIG_SHELL-/bin/sh} 12325CC="$CC" 12326CXX="$CXX" 12327GFORTRAN="$GFORTRAN" 12328GCJ="$GCJ" 12329 12330 12331# The HP-UX ksh and POSIX shell print the target directory to stdout 12332# if CDPATH is set. 12333(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 12334 12335sed_quote_subst='$sed_quote_subst' 12336double_quote_subst='$double_quote_subst' 12337delay_variable_subst='$delay_variable_subst' 12338macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 12339macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 12340enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 12341enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 12342pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 12343enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 12344SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 12345ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 12346host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 12347host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 12348host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 12349build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 12350build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 12351build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 12352SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 12353Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 12354GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 12355EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 12356FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 12357LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 12358NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 12359LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 12360max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 12361ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 12362exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 12363lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 12364lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 12365lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 12366reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 12367reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 12368OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 12369deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 12370file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 12371AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 12372AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 12373STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 12374RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 12375old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12376old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12377old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 12378lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 12379CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 12380CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 12381compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 12382GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 12383lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 12384lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 12385lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 12386lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`' 12387objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 12388MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 12389lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 12390lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 12391lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 12392lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 12393lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 12394need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 12395DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 12396NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 12397LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 12398OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 12399OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 12400libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 12401shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 12402extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12403archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 12404enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 12405export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 12406whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 12407compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 12408old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 12409old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 12410archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 12411archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12412module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 12413module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 12414with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 12415allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 12416no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 12417hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 12418hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 12419hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 12420hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 12421hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 12422hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 12423hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 12424hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 12425inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 12426link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 12427fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 12428always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 12429export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 12430exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 12431include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 12432prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 12433file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 12434variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 12435need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 12436need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 12437version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 12438runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 12439shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 12440shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 12441libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 12442library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 12443soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 12444install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 12445postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 12446postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 12447finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 12448finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 12449hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 12450sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 12451sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 12452hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 12453enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 12454enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 12455enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 12456old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 12457striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 12458 12459LTCC='$LTCC' 12460LTCFLAGS='$LTCFLAGS' 12461compiler='$compiler_DEFAULT' 12462 12463# A function that is used when there is no print builtin or printf. 12464func_fallback_echo () 12465{ 12466 eval 'cat <<_LTECHO_EOF 12467\$1 12468_LTECHO_EOF' 12469} 12470 12471# Quote evaled strings. 12472for var in SHELL \ 12473ECHO \ 12474SED \ 12475GREP \ 12476EGREP \ 12477FGREP \ 12478LD \ 12479NM \ 12480LN_S \ 12481lt_SP2NL \ 12482lt_NL2SP \ 12483reload_flag \ 12484OBJDUMP \ 12485deplibs_check_method \ 12486file_magic_cmd \ 12487AR \ 12488AR_FLAGS \ 12489STRIP \ 12490RANLIB \ 12491CC \ 12492CFLAGS \ 12493compiler \ 12494lt_cv_sys_global_symbol_pipe \ 12495lt_cv_sys_global_symbol_to_cdecl \ 12496lt_cv_sys_global_symbol_to_c_name_address \ 12497lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 12498lt_prog_compiler_no_builtin_flag \ 12499lt_prog_compiler_wl \ 12500lt_prog_compiler_pic \ 12501lt_prog_compiler_static \ 12502lt_cv_prog_compiler_c_o \ 12503need_locks \ 12504DSYMUTIL \ 12505NMEDIT \ 12506LIPO \ 12507OTOOL \ 12508OTOOL64 \ 12509shrext_cmds \ 12510export_dynamic_flag_spec \ 12511whole_archive_flag_spec \ 12512compiler_needs_object \ 12513with_gnu_ld \ 12514allow_undefined_flag \ 12515no_undefined_flag \ 12516hardcode_libdir_flag_spec \ 12517hardcode_libdir_flag_spec_ld \ 12518hardcode_libdir_separator \ 12519fix_srcfile_path \ 12520exclude_expsyms \ 12521include_expsyms \ 12522file_list_spec \ 12523variables_saved_for_relink \ 12524libname_spec \ 12525library_names_spec \ 12526soname_spec \ 12527install_override_mode \ 12528finish_eval \ 12529old_striplib \ 12530striplib; do 12531 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12532 *[\\\\\\\`\\"\\\$]*) 12533 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 12534 ;; 12535 *) 12536 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12537 ;; 12538 esac 12539done 12540 12541# Double-quote double-evaled strings. 12542for var in reload_cmds \ 12543old_postinstall_cmds \ 12544old_postuninstall_cmds \ 12545old_archive_cmds \ 12546extract_expsyms_cmds \ 12547old_archive_from_new_cmds \ 12548old_archive_from_expsyms_cmds \ 12549archive_cmds \ 12550archive_expsym_cmds \ 12551module_cmds \ 12552module_expsym_cmds \ 12553export_symbols_cmds \ 12554prelink_cmds \ 12555postinstall_cmds \ 12556postuninstall_cmds \ 12557finish_cmds \ 12558sys_lib_search_path_spec \ 12559sys_lib_dlsearch_path_spec; do 12560 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 12561 *[\\\\\\\`\\"\\\$]*) 12562 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 12563 ;; 12564 *) 12565 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 12566 ;; 12567 esac 12568done 12569 12570ac_aux_dir='$ac_aux_dir' 12571xsi_shell='$xsi_shell' 12572lt_shell_append='$lt_shell_append' 12573 12574# See if we are running on zsh, and set the options which allow our 12575# commands through without removal of \ escapes INIT. 12576if test -n "\${ZSH_VERSION+set}" ; then 12577 setopt NO_GLOB_SUBST 12578fi 12579 12580 12581 PACKAGE='$PACKAGE' 12582 VERSION='$VERSION' 12583 TIMESTAMP='$TIMESTAMP' 12584 RM='$RM' 12585 ofile='$ofile' 12586 12587 12588 12589 12590_ACEOF 12591 12592cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12593 12594# Handling of arguments. 12595for ac_config_target in $ac_config_targets 12596do 12597 case $ac_config_target in 12598 "default-1") CONFIG_COMMANDS="$CONFIG_COMMANDS default-1" ;; 12599 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 12600 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 12601 "libmpx.spec") CONFIG_FILES="$CONFIG_FILES libmpx.spec" ;; 12602 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 12603 "mpxrt/Makefile") CONFIG_FILES="$CONFIG_FILES mpxrt/Makefile" ;; 12604 "mpxwrap/Makefile") CONFIG_FILES="$CONFIG_FILES mpxwrap/Makefile" ;; 12605 12606 *) as_fn_error "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 12607 esac 12608done 12609 12610 12611# If the user did not use the arguments to specify the items to instantiate, 12612# then the envvar interface is used. Set only those that are not. 12613# We use the long form for the default assignment because of an extremely 12614# bizarre bug on SunOS 4.1.3. 12615if $ac_need_defaults; then 12616 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 12617 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 12618 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 12619fi 12620 12621# Have a temporary directory for convenience. Make it in the build tree 12622# simply because there is no reason against having it here, and in addition, 12623# creating and moving files from /tmp can sometimes cause problems. 12624# Hook for its removal unless debugging. 12625# Note that there is a small window in which the directory will not be cleaned: 12626# after its creation but before its name has been assigned to `$tmp'. 12627$debug || 12628{ 12629 tmp= 12630 trap 'exit_status=$? 12631 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 12632' 0 12633 trap 'as_fn_exit 1' 1 2 13 15 12634} 12635# Create a (secure) tmp directory for tmp files. 12636 12637{ 12638 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 12639 test -n "$tmp" && test -d "$tmp" 12640} || 12641{ 12642 tmp=./conf$$-$RANDOM 12643 (umask 077 && mkdir "$tmp") 12644} || as_fn_error "cannot create a temporary directory in ." "$LINENO" 5 12645 12646# Set up the scripts for CONFIG_FILES section. 12647# No need to generate them if there are no CONFIG_FILES. 12648# This happens for instance with `./config.status config.h'. 12649if test -n "$CONFIG_FILES"; then 12650 12651 12652ac_cr=`echo X | tr X '\015'` 12653# On cygwin, bash can eat \r inside `` if the user requested igncr. 12654# But we know of no other shell where ac_cr would be empty at this 12655# point, so we can use a bashism as a fallback. 12656if test "x$ac_cr" = x; then 12657 eval ac_cr=\$\'\\r\' 12658fi 12659ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 12660if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 12661 ac_cs_awk_cr='\r' 12662else 12663 ac_cs_awk_cr=$ac_cr 12664fi 12665 12666echo 'BEGIN {' >"$tmp/subs1.awk" && 12667_ACEOF 12668 12669 12670{ 12671 echo "cat >conf$$subs.awk <<_ACEOF" && 12672 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 12673 echo "_ACEOF" 12674} >conf$$subs.sh || 12675 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12676ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'` 12677ac_delim='%!_!# ' 12678for ac_last_try in false false false false false :; do 12679 . ./conf$$subs.sh || 12680 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12681 12682 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 12683 if test $ac_delim_n = $ac_delim_num; then 12684 break 12685 elif $ac_last_try; then 12686 as_fn_error "could not make $CONFIG_STATUS" "$LINENO" 5 12687 else 12688 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12689 fi 12690done 12691rm -f conf$$subs.sh 12692 12693cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12694cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 12695_ACEOF 12696sed -n ' 12697h 12698s/^/S["/; s/!.*/"]=/ 12699p 12700g 12701s/^[^!]*!// 12702:repl 12703t repl 12704s/'"$ac_delim"'$// 12705t delim 12706:nl 12707h 12708s/\(.\{148\}\).*/\1/ 12709t more1 12710s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 12711p 12712n 12713b repl 12714:more1 12715s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12716p 12717g 12718s/.\{148\}// 12719t nl 12720:delim 12721h 12722s/\(.\{148\}\).*/\1/ 12723t more2 12724s/["\\]/\\&/g; s/^/"/; s/$/"/ 12725p 12726b 12727:more2 12728s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 12729p 12730g 12731s/.\{148\}// 12732t delim 12733' <conf$$subs.awk | sed ' 12734/^[^""]/{ 12735 N 12736 s/\n// 12737} 12738' >>$CONFIG_STATUS || ac_write_fail=1 12739rm -f conf$$subs.awk 12740cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12741_ACAWK 12742cat >>"\$tmp/subs1.awk" <<_ACAWK && 12743 for (key in S) S_is_set[key] = 1 12744 FS = "" 12745 12746} 12747{ 12748 line = $ 0 12749 nfields = split(line, field, "@") 12750 substed = 0 12751 len = length(field[1]) 12752 for (i = 2; i < nfields; i++) { 12753 key = field[i] 12754 keylen = length(key) 12755 if (S_is_set[key]) { 12756 value = S[key] 12757 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 12758 len += length(value) + length(field[++i]) 12759 substed = 1 12760 } else 12761 len += 1 + keylen 12762 } 12763 12764 print line 12765} 12766 12767_ACAWK 12768_ACEOF 12769cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12770if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 12771 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 12772else 12773 cat 12774fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 12775 || as_fn_error "could not setup config files machinery" "$LINENO" 5 12776_ACEOF 12777 12778# VPATH may cause trouble with some makes, so we remove $(srcdir), 12779# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and 12780# trailing colons and then remove the whole line if VPATH becomes empty 12781# (actually we leave an empty line to preserve line numbers). 12782if test "x$srcdir" = x.; then 12783 ac_vpsub='/^[ ]*VPATH[ ]*=/{ 12784s/:*\$(srcdir):*/:/ 12785s/:*\${srcdir}:*/:/ 12786s/:*@srcdir@:*/:/ 12787s/^\([^=]*=[ ]*\):*/\1/ 12788s/:*$// 12789s/^[^=]*=[ ]*$// 12790}' 12791fi 12792 12793cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12794fi # test -n "$CONFIG_FILES" 12795 12796# Set up the scripts for CONFIG_HEADERS section. 12797# No need to generate them if there are no CONFIG_HEADERS. 12798# This happens for instance with `./config.status Makefile'. 12799if test -n "$CONFIG_HEADERS"; then 12800cat >"$tmp/defines.awk" <<\_ACAWK || 12801BEGIN { 12802_ACEOF 12803 12804# Transform confdefs.h into an awk script `defines.awk', embedded as 12805# here-document in config.status, that substitutes the proper values into 12806# config.h.in to produce config.h. 12807 12808# Create a delimiter string that does not exist in confdefs.h, to ease 12809# handling of long lines. 12810ac_delim='%!_!# ' 12811for ac_last_try in false false :; do 12812 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 12813 if test -z "$ac_t"; then 12814 break 12815 elif $ac_last_try; then 12816 as_fn_error "could not make $CONFIG_HEADERS" "$LINENO" 5 12817 else 12818 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 12819 fi 12820done 12821 12822# For the awk script, D is an array of macro values keyed by name, 12823# likewise P contains macro parameters if any. Preserve backslash 12824# newline sequences. 12825 12826ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 12827sed -n ' 12828s/.\{148\}/&'"$ac_delim"'/g 12829t rset 12830:rset 12831s/^[ ]*#[ ]*define[ ][ ]*/ / 12832t def 12833d 12834:def 12835s/\\$// 12836t bsnl 12837s/["\\]/\\&/g 12838s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12839D["\1"]=" \3"/p 12840s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 12841d 12842:bsnl 12843s/["\\]/\\&/g 12844s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 12845D["\1"]=" \3\\\\\\n"\\/p 12846t cont 12847s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 12848t cont 12849d 12850:cont 12851n 12852s/.\{148\}/&'"$ac_delim"'/g 12853t clear 12854:clear 12855s/\\$// 12856t bsnlc 12857s/["\\]/\\&/g; s/^/"/; s/$/"/p 12858d 12859:bsnlc 12860s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 12861b cont 12862' <confdefs.h | sed ' 12863s/'"$ac_delim"'/"\\\ 12864"/g' >>$CONFIG_STATUS || ac_write_fail=1 12865 12866cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 12867 for (key in D) D_is_set[key] = 1 12868 FS = "" 12869} 12870/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 12871 line = \$ 0 12872 split(line, arg, " ") 12873 if (arg[1] == "#") { 12874 defundef = arg[2] 12875 mac1 = arg[3] 12876 } else { 12877 defundef = substr(arg[1], 2) 12878 mac1 = arg[2] 12879 } 12880 split(mac1, mac2, "(") #) 12881 macro = mac2[1] 12882 prefix = substr(line, 1, index(line, defundef) - 1) 12883 if (D_is_set[macro]) { 12884 # Preserve the white space surrounding the "#". 12885 print prefix "define", macro P[macro] D[macro] 12886 next 12887 } else { 12888 # Replace #undef with comments. This is necessary, for example, 12889 # in the case of _POSIX_SOURCE, which is predefined and required 12890 # on some systems where configure will not decide to define it. 12891 if (defundef == "undef") { 12892 print "/*", prefix defundef, macro, "*/" 12893 next 12894 } 12895 } 12896} 12897{ print } 12898_ACAWK 12899_ACEOF 12900cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 12901 as_fn_error "could not setup config headers machinery" "$LINENO" 5 12902fi # test -n "$CONFIG_HEADERS" 12903 12904 12905eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 12906shift 12907for ac_tag 12908do 12909 case $ac_tag in 12910 :[FHLC]) ac_mode=$ac_tag; continue;; 12911 esac 12912 case $ac_mode$ac_tag in 12913 :[FHL]*:*);; 12914 :L* | :C*:*) as_fn_error "invalid tag \`$ac_tag'" "$LINENO" 5;; 12915 :[FH]-) ac_tag=-:-;; 12916 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 12917 esac 12918 ac_save_IFS=$IFS 12919 IFS=: 12920 set x $ac_tag 12921 IFS=$ac_save_IFS 12922 shift 12923 ac_file=$1 12924 shift 12925 12926 case $ac_mode in 12927 :L) ac_source=$1;; 12928 :[FH]) 12929 ac_file_inputs= 12930 for ac_f 12931 do 12932 case $ac_f in 12933 -) ac_f="$tmp/stdin";; 12934 *) # Look for the file first in the build tree, then in the source tree 12935 # (if the path is not absolute). The absolute path cannot be DOS-style, 12936 # because $ac_f cannot contain `:'. 12937 test -f "$ac_f" || 12938 case $ac_f in 12939 [\\/$]*) false;; 12940 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 12941 esac || 12942 as_fn_error "cannot find input file: \`$ac_f'" "$LINENO" 5;; 12943 esac 12944 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 12945 as_fn_append ac_file_inputs " '$ac_f'" 12946 done 12947 12948 # Let's still pretend it is `configure' which instantiates (i.e., don't 12949 # use $as_me), people would be surprised to read: 12950 # /* config.h. Generated by config.status. */ 12951 configure_input='Generated from '` 12952 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 12953 `' by configure.' 12954 if test x"$ac_file" != x-; then 12955 configure_input="$ac_file. $configure_input" 12956 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 12957$as_echo "$as_me: creating $ac_file" >&6;} 12958 fi 12959 # Neutralize special characters interpreted by sed in replacement strings. 12960 case $configure_input in #( 12961 *\&* | *\|* | *\\* ) 12962 ac_sed_conf_input=`$as_echo "$configure_input" | 12963 sed 's/[\\\\&|]/\\\\&/g'`;; #( 12964 *) ac_sed_conf_input=$configure_input;; 12965 esac 12966 12967 case $ac_tag in 12968 *:-:* | *:-) cat >"$tmp/stdin" \ 12969 || as_fn_error "could not create $ac_file" "$LINENO" 5 ;; 12970 esac 12971 ;; 12972 esac 12973 12974 ac_dir=`$as_dirname -- "$ac_file" || 12975$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 12976 X"$ac_file" : 'X\(//\)[^/]' \| \ 12977 X"$ac_file" : 'X\(//\)$' \| \ 12978 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 12979$as_echo X"$ac_file" | 12980 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 12981 s//\1/ 12982 q 12983 } 12984 /^X\(\/\/\)[^/].*/{ 12985 s//\1/ 12986 q 12987 } 12988 /^X\(\/\/\)$/{ 12989 s//\1/ 12990 q 12991 } 12992 /^X\(\/\).*/{ 12993 s//\1/ 12994 q 12995 } 12996 s/.*/./; q'` 12997 as_dir="$ac_dir"; as_fn_mkdir_p 12998 ac_builddir=. 12999 13000case "$ac_dir" in 13001.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 13002*) 13003 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 13004 # A ".." for each directory in $ac_dir_suffix. 13005 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 13006 case $ac_top_builddir_sub in 13007 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 13008 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 13009 esac ;; 13010esac 13011ac_abs_top_builddir=$ac_pwd 13012ac_abs_builddir=$ac_pwd$ac_dir_suffix 13013# for backward compatibility: 13014ac_top_builddir=$ac_top_build_prefix 13015 13016case $srcdir in 13017 .) # We are building in place. 13018 ac_srcdir=. 13019 ac_top_srcdir=$ac_top_builddir_sub 13020 ac_abs_top_srcdir=$ac_pwd ;; 13021 [\\/]* | ?:[\\/]* ) # Absolute name. 13022 ac_srcdir=$srcdir$ac_dir_suffix; 13023 ac_top_srcdir=$srcdir 13024 ac_abs_top_srcdir=$srcdir ;; 13025 *) # Relative name. 13026 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 13027 ac_top_srcdir=$ac_top_build_prefix$srcdir 13028 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 13029esac 13030ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 13031 13032 13033 case $ac_mode in 13034 :F) 13035 # 13036 # CONFIG_FILE 13037 # 13038 13039 case $INSTALL in 13040 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 13041 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 13042 esac 13043 ac_MKDIR_P=$MKDIR_P 13044 case $MKDIR_P in 13045 [\\/$]* | ?:[\\/]* ) ;; 13046 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 13047 esac 13048_ACEOF 13049 13050cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13051# If the template does not know about datarootdir, expand it. 13052# FIXME: This hack should be removed a few years after 2.60. 13053ac_datarootdir_hack=; ac_datarootdir_seen= 13054ac_sed_dataroot=' 13055/datarootdir/ { 13056 p 13057 q 13058} 13059/@datadir@/p 13060/@docdir@/p 13061/@infodir@/p 13062/@localedir@/p 13063/@mandir@/p' 13064case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 13065*datarootdir*) ac_datarootdir_seen=yes;; 13066*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 13067 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 13068$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 13069_ACEOF 13070cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13071 ac_datarootdir_hack=' 13072 s&@datadir@&$datadir&g 13073 s&@docdir@&$docdir&g 13074 s&@infodir@&$infodir&g 13075 s&@localedir@&$localedir&g 13076 s&@mandir@&$mandir&g 13077 s&\\\${datarootdir}&$datarootdir&g' ;; 13078esac 13079_ACEOF 13080 13081# Neutralize VPATH when `$srcdir' = `.'. 13082# Shell code in configure.ac might set extrasub. 13083# FIXME: do we really want to maintain this feature? 13084cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 13085ac_sed_extra="$ac_vpsub 13086$extrasub 13087_ACEOF 13088cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 13089:t 13090/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 13091s|@configure_input@|$ac_sed_conf_input|;t t 13092s&@top_builddir@&$ac_top_builddir_sub&;t t 13093s&@top_build_prefix@&$ac_top_build_prefix&;t t 13094s&@srcdir@&$ac_srcdir&;t t 13095s&@abs_srcdir@&$ac_abs_srcdir&;t t 13096s&@top_srcdir@&$ac_top_srcdir&;t t 13097s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 13098s&@builddir@&$ac_builddir&;t t 13099s&@abs_builddir@&$ac_abs_builddir&;t t 13100s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 13101s&@INSTALL@&$ac_INSTALL&;t t 13102s&@MKDIR_P@&$ac_MKDIR_P&;t t 13103$ac_datarootdir_hack 13104" 13105eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 13106 || as_fn_error "could not create $ac_file" "$LINENO" 5 13107 13108test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 13109 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 13110 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 13111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13112which seems to be undefined. Please make sure it is defined." >&5 13113$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 13114which seems to be undefined. Please make sure it is defined." >&2;} 13115 13116 rm -f "$tmp/stdin" 13117 case $ac_file in 13118 -) cat "$tmp/out" && rm -f "$tmp/out";; 13119 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 13120 esac \ 13121 || as_fn_error "could not create $ac_file" "$LINENO" 5 13122 ;; 13123 :H) 13124 # 13125 # CONFIG_HEADER 13126 # 13127 if test x"$ac_file" != x-; then 13128 { 13129 $as_echo "/* $configure_input */" \ 13130 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 13131 } >"$tmp/config.h" \ 13132 || as_fn_error "could not create $ac_file" "$LINENO" 5 13133 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 13134 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 13135$as_echo "$as_me: $ac_file is unchanged" >&6;} 13136 else 13137 rm -f "$ac_file" 13138 mv "$tmp/config.h" "$ac_file" \ 13139 || as_fn_error "could not create $ac_file" "$LINENO" 5 13140 fi 13141 else 13142 $as_echo "/* $configure_input */" \ 13143 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 13144 || as_fn_error "could not create -" "$LINENO" 5 13145 fi 13146# Compute "$ac_file"'s index in $config_headers. 13147_am_arg="$ac_file" 13148_am_stamp_count=1 13149for _am_header in $config_headers :; do 13150 case $_am_header in 13151 $_am_arg | $_am_arg:* ) 13152 break ;; 13153 * ) 13154 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 13155 esac 13156done 13157echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 13158$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 13159 X"$_am_arg" : 'X\(//\)[^/]' \| \ 13160 X"$_am_arg" : 'X\(//\)$' \| \ 13161 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 13162$as_echo X"$_am_arg" | 13163 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 13164 s//\1/ 13165 q 13166 } 13167 /^X\(\/\/\)[^/].*/{ 13168 s//\1/ 13169 q 13170 } 13171 /^X\(\/\/\)$/{ 13172 s//\1/ 13173 q 13174 } 13175 /^X\(\/\).*/{ 13176 s//\1/ 13177 q 13178 } 13179 s/.*/./; q'`/stamp-h$_am_stamp_count 13180 ;; 13181 13182 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 13183$as_echo "$as_me: executing $ac_file commands" >&6;} 13184 ;; 13185 esac 13186 13187 13188 case $ac_file$ac_mode in 13189 "default-1":C) 13190# Only add multilib support code if we just rebuilt the top-level 13191# Makefile. 13192case " $CONFIG_FILES " in 13193 *" Makefile "*) 13194 ac_file=Makefile . ${multi_basedir}/config-ml.in 13195 ;; 13196esac ;; 13197 "libtool":C) 13198 13199 # See if we are running on zsh, and set the options which allow our 13200 # commands through without removal of \ escapes. 13201 if test -n "${ZSH_VERSION+set}" ; then 13202 setopt NO_GLOB_SUBST 13203 fi 13204 13205 cfgfile="${ofile}T" 13206 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 13207 $RM "$cfgfile" 13208 13209 cat <<_LT_EOF >> "$cfgfile" 13210#! $SHELL 13211 13212# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 13213# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 13214# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 13215# NOTE: Changes made to this file will be lost: look at ltmain.sh. 13216# 13217# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 13218# 2006, 2007, 2008, 2009 Free Software Foundation, Inc. 13219# Written by Gordon Matzigkeit, 1996 13220# 13221# This file is part of GNU Libtool. 13222# 13223# GNU Libtool is free software; you can redistribute it and/or 13224# modify it under the terms of the GNU General Public License as 13225# published by the Free Software Foundation; either version 2 of 13226# the License, or (at your option) any later version. 13227# 13228# As a special exception to the GNU General Public License, 13229# if you distribute this file as part of a program or library that 13230# is built using GNU Libtool, you may include this file under the 13231# same distribution terms that you use for the rest of that program. 13232# 13233# GNU Libtool is distributed in the hope that it will be useful, 13234# but WITHOUT ANY WARRANTY; without even the implied warranty of 13235# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13236# GNU General Public License for more details. 13237# 13238# You should have received a copy of the GNU General Public License 13239# along with GNU Libtool; see the file COPYING. If not, a copy 13240# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 13241# obtained by writing to the Free Software Foundation, Inc., 13242# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 13243 13244 13245# The names of the tagged configurations supported by this script. 13246available_tags="" 13247 13248# ### BEGIN LIBTOOL CONFIG 13249 13250# Which release of libtool.m4 was used? 13251macro_version=$macro_version 13252macro_revision=$macro_revision 13253 13254# Whether or not to build shared libraries. 13255build_libtool_libs=$enable_shared 13256 13257# Whether or not to build static libraries. 13258build_old_libs=$enable_static 13259 13260# What type of objects to build. 13261pic_mode=$pic_mode 13262 13263# Whether or not to optimize for fast installation. 13264fast_install=$enable_fast_install 13265 13266# Shell to use when invoking shell scripts. 13267SHELL=$lt_SHELL 13268 13269# An echo program that protects backslashes. 13270ECHO=$lt_ECHO 13271 13272# The host system. 13273host_alias=$host_alias 13274host=$host 13275host_os=$host_os 13276 13277# The build system. 13278build_alias=$build_alias 13279build=$build 13280build_os=$build_os 13281 13282# A sed program that does not truncate output. 13283SED=$lt_SED 13284 13285# Sed that helps us avoid accidentally triggering echo(1) options like -n. 13286Xsed="\$SED -e 1s/^X//" 13287 13288# A grep program that handles long lines. 13289GREP=$lt_GREP 13290 13291# An ERE matcher. 13292EGREP=$lt_EGREP 13293 13294# A literal string matcher. 13295FGREP=$lt_FGREP 13296 13297# A BSD- or MS-compatible name lister. 13298NM=$lt_NM 13299 13300# Whether we need soft or hard links. 13301LN_S=$lt_LN_S 13302 13303# What is the maximum length of a command? 13304max_cmd_len=$max_cmd_len 13305 13306# Object file suffix (normally "o"). 13307objext=$ac_objext 13308 13309# Executable file suffix (normally ""). 13310exeext=$exeext 13311 13312# whether the shell understands "unset". 13313lt_unset=$lt_unset 13314 13315# turn spaces into newlines. 13316SP2NL=$lt_lt_SP2NL 13317 13318# turn newlines into spaces. 13319NL2SP=$lt_lt_NL2SP 13320 13321# An object symbol dumper. 13322OBJDUMP=$lt_OBJDUMP 13323 13324# Method to check whether dependent libraries are shared objects. 13325deplibs_check_method=$lt_deplibs_check_method 13326 13327# Command to use when deplibs_check_method == "file_magic". 13328file_magic_cmd=$lt_file_magic_cmd 13329 13330# The archiver. 13331AR=$lt_AR 13332AR_FLAGS=$lt_AR_FLAGS 13333 13334# A symbol stripping program. 13335STRIP=$lt_STRIP 13336 13337# Commands used to install an old-style archive. 13338RANLIB=$lt_RANLIB 13339old_postinstall_cmds=$lt_old_postinstall_cmds 13340old_postuninstall_cmds=$lt_old_postuninstall_cmds 13341 13342# Whether to use a lock for old archive extraction. 13343lock_old_archive_extraction=$lock_old_archive_extraction 13344 13345# A C compiler. 13346LTCC=$lt_CC 13347 13348# LTCC compiler flags. 13349LTCFLAGS=$lt_CFLAGS 13350 13351# Take the output of nm and produce a listing of raw symbols and C names. 13352global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 13353 13354# Transform the output of nm in a proper C declaration. 13355global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 13356 13357# Transform the output of nm in a C name address pair. 13358global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 13359 13360# Transform the output of nm in a C name address pair when lib prefix is needed. 13361global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 13362 13363# The name of the directory that contains temporary libtool files. 13364objdir=$objdir 13365 13366# Used to examine libraries when file_magic_cmd begins with "file". 13367MAGIC_CMD=$MAGIC_CMD 13368 13369# Must we lock files when doing compilation? 13370need_locks=$lt_need_locks 13371 13372# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 13373DSYMUTIL=$lt_DSYMUTIL 13374 13375# Tool to change global to local symbols on Mac OS X. 13376NMEDIT=$lt_NMEDIT 13377 13378# Tool to manipulate fat objects and archives on Mac OS X. 13379LIPO=$lt_LIPO 13380 13381# ldd/readelf like tool for Mach-O binaries on Mac OS X. 13382OTOOL=$lt_OTOOL 13383 13384# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 13385OTOOL64=$lt_OTOOL64 13386 13387# Old archive suffix (normally "a"). 13388libext=$libext 13389 13390# Shared library suffix (normally ".so"). 13391shrext_cmds=$lt_shrext_cmds 13392 13393# The commands to extract the exported symbol list from a shared archive. 13394extract_expsyms_cmds=$lt_extract_expsyms_cmds 13395 13396# Variables whose values should be saved in libtool wrapper scripts and 13397# restored at link time. 13398variables_saved_for_relink=$lt_variables_saved_for_relink 13399 13400# Do we need the "lib" prefix for modules? 13401need_lib_prefix=$need_lib_prefix 13402 13403# Do we need a version for libraries? 13404need_version=$need_version 13405 13406# Library versioning type. 13407version_type=$version_type 13408 13409# Shared library runtime path variable. 13410runpath_var=$runpath_var 13411 13412# Shared library path variable. 13413shlibpath_var=$shlibpath_var 13414 13415# Is shlibpath searched before the hard-coded library search path? 13416shlibpath_overrides_runpath=$shlibpath_overrides_runpath 13417 13418# Format of library name prefix. 13419libname_spec=$lt_libname_spec 13420 13421# List of archive names. First name is the real one, the rest are links. 13422# The last name is the one that the linker finds with -lNAME 13423library_names_spec=$lt_library_names_spec 13424 13425# The coded name of the library, if different from the real name. 13426soname_spec=$lt_soname_spec 13427 13428# Permission mode override for installation of shared libraries. 13429install_override_mode=$lt_install_override_mode 13430 13431# Command to use after installation of a shared archive. 13432postinstall_cmds=$lt_postinstall_cmds 13433 13434# Command to use after uninstallation of a shared archive. 13435postuninstall_cmds=$lt_postuninstall_cmds 13436 13437# Commands used to finish a libtool library installation in a directory. 13438finish_cmds=$lt_finish_cmds 13439 13440# As "finish_cmds", except a single script fragment to be evaled but 13441# not shown. 13442finish_eval=$lt_finish_eval 13443 13444# Whether we should hardcode library paths into libraries. 13445hardcode_into_libs=$hardcode_into_libs 13446 13447# Compile-time system search path for libraries. 13448sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 13449 13450# Run-time system search path for libraries. 13451sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 13452 13453# Whether dlopen is supported. 13454dlopen_support=$enable_dlopen 13455 13456# Whether dlopen of programs is supported. 13457dlopen_self=$enable_dlopen_self 13458 13459# Whether dlopen of statically linked programs is supported. 13460dlopen_self_static=$enable_dlopen_self_static 13461 13462# Commands to strip libraries. 13463old_striplib=$lt_old_striplib 13464striplib=$lt_striplib 13465 13466 13467# The linker used to build libraries. 13468LD=$lt_LD 13469 13470# How to create reloadable object files. 13471reload_flag=$lt_reload_flag 13472reload_cmds=$lt_reload_cmds 13473 13474# Commands used to build an old-style archive. 13475old_archive_cmds=$lt_old_archive_cmds 13476 13477# A language specific compiler. 13478CC=$lt_compiler 13479 13480# Is the compiler the GNU compiler? 13481with_gcc=$GCC 13482 13483# Compiler flag to turn off builtin functions. 13484no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 13485 13486# How to pass a linker flag through the compiler. 13487wl=$lt_lt_prog_compiler_wl 13488 13489# Additional compiler flags for building library objects. 13490pic_flag=$lt_lt_prog_compiler_pic 13491 13492# Compiler flag to prevent dynamic linking. 13493link_static_flag=$lt_lt_prog_compiler_static 13494 13495# Does compiler simultaneously support -c and -o options? 13496compiler_c_o=$lt_lt_cv_prog_compiler_c_o 13497 13498# Whether or not to add -lc for building shared libraries. 13499build_libtool_need_lc=$archive_cmds_need_lc 13500 13501# Whether or not to disallow shared libs when runtime libs are static. 13502allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 13503 13504# Compiler flag to allow reflexive dlopens. 13505export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 13506 13507# Compiler flag to generate shared objects directly from archives. 13508whole_archive_flag_spec=$lt_whole_archive_flag_spec 13509 13510# Whether the compiler copes with passing no objects directly. 13511compiler_needs_object=$lt_compiler_needs_object 13512 13513# Create an old-style archive from a shared archive. 13514old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 13515 13516# Create a temporary old-style archive to link instead of a shared archive. 13517old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 13518 13519# Commands used to build a shared archive. 13520archive_cmds=$lt_archive_cmds 13521archive_expsym_cmds=$lt_archive_expsym_cmds 13522 13523# Commands used to build a loadable module if different from building 13524# a shared archive. 13525module_cmds=$lt_module_cmds 13526module_expsym_cmds=$lt_module_expsym_cmds 13527 13528# Whether we are building with GNU ld or not. 13529with_gnu_ld=$lt_with_gnu_ld 13530 13531# Flag that allows shared libraries with undefined symbols to be built. 13532allow_undefined_flag=$lt_allow_undefined_flag 13533 13534# Flag that enforces no undefined symbols. 13535no_undefined_flag=$lt_no_undefined_flag 13536 13537# Flag to hardcode \$libdir into a binary during linking. 13538# This must work even if \$libdir does not exist 13539hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 13540 13541# If ld is used when linking, flag to hardcode \$libdir into a binary 13542# during linking. This must work even if \$libdir does not exist. 13543hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 13544 13545# Whether we need a single "-rpath" flag with a separated argument. 13546hardcode_libdir_separator=$lt_hardcode_libdir_separator 13547 13548# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13549# DIR into the resulting binary. 13550hardcode_direct=$hardcode_direct 13551 13552# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 13553# DIR into the resulting binary and the resulting library dependency is 13554# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 13555# library is relocated. 13556hardcode_direct_absolute=$hardcode_direct_absolute 13557 13558# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 13559# into the resulting binary. 13560hardcode_minus_L=$hardcode_minus_L 13561 13562# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 13563# into the resulting binary. 13564hardcode_shlibpath_var=$hardcode_shlibpath_var 13565 13566# Set to "yes" if building a shared library automatically hardcodes DIR 13567# into the library and all subsequent libraries and executables linked 13568# against it. 13569hardcode_automatic=$hardcode_automatic 13570 13571# Set to yes if linker adds runtime paths of dependent libraries 13572# to runtime path list. 13573inherit_rpath=$inherit_rpath 13574 13575# Whether libtool must link a program against all its dependency libraries. 13576link_all_deplibs=$link_all_deplibs 13577 13578# Fix the shell variable \$srcfile for the compiler. 13579fix_srcfile_path=$lt_fix_srcfile_path 13580 13581# Set to "yes" if exported symbols are required. 13582always_export_symbols=$always_export_symbols 13583 13584# The commands to list exported symbols. 13585export_symbols_cmds=$lt_export_symbols_cmds 13586 13587# Symbols that should not be listed in the preloaded symbols. 13588exclude_expsyms=$lt_exclude_expsyms 13589 13590# Symbols that must always be exported. 13591include_expsyms=$lt_include_expsyms 13592 13593# Commands necessary for linking programs (against libraries) with templates. 13594prelink_cmds=$lt_prelink_cmds 13595 13596# Specify filename containing input files. 13597file_list_spec=$lt_file_list_spec 13598 13599# How to hardcode a shared library path into an executable. 13600hardcode_action=$hardcode_action 13601 13602# ### END LIBTOOL CONFIG 13603 13604_LT_EOF 13605 13606 case $host_os in 13607 aix3*) 13608 cat <<\_LT_EOF >> "$cfgfile" 13609# AIX sometimes has problems with the GCC collect2 program. For some 13610# reason, if we set the COLLECT_NAMES environment variable, the problems 13611# vanish in a puff of smoke. 13612if test "X${COLLECT_NAMES+set}" != Xset; then 13613 COLLECT_NAMES= 13614 export COLLECT_NAMES 13615fi 13616_LT_EOF 13617 ;; 13618 esac 13619 13620 13621ltmain="$ac_aux_dir/ltmain.sh" 13622 13623 13624 # We use sed instead of cat because bash on DJGPP gets confused if 13625 # if finds mixed CR/LF and LF-only lines. Since sed operates in 13626 # text mode, it properly converts lines to CR/LF. This bash problem 13627 # is reportedly fixed, but why not run on old versions too? 13628 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 13629 || (rm -f "$cfgfile"; exit 1) 13630 13631 case $xsi_shell in 13632 yes) 13633 cat << \_LT_EOF >> "$cfgfile" 13634 13635# func_dirname file append nondir_replacement 13636# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13637# otherwise set result to NONDIR_REPLACEMENT. 13638func_dirname () 13639{ 13640 case ${1} in 13641 */*) func_dirname_result="${1%/*}${2}" ;; 13642 * ) func_dirname_result="${3}" ;; 13643 esac 13644} 13645 13646# func_basename file 13647func_basename () 13648{ 13649 func_basename_result="${1##*/}" 13650} 13651 13652# func_dirname_and_basename file append nondir_replacement 13653# perform func_basename and func_dirname in a single function 13654# call: 13655# dirname: Compute the dirname of FILE. If nonempty, 13656# add APPEND to the result, otherwise set result 13657# to NONDIR_REPLACEMENT. 13658# value returned in "$func_dirname_result" 13659# basename: Compute filename of FILE. 13660# value retuned in "$func_basename_result" 13661# Implementation must be kept synchronized with func_dirname 13662# and func_basename. For efficiency, we do not delegate to 13663# those functions but instead duplicate the functionality here. 13664func_dirname_and_basename () 13665{ 13666 case ${1} in 13667 */*) func_dirname_result="${1%/*}${2}" ;; 13668 * ) func_dirname_result="${3}" ;; 13669 esac 13670 func_basename_result="${1##*/}" 13671} 13672 13673# func_stripname prefix suffix name 13674# strip PREFIX and SUFFIX off of NAME. 13675# PREFIX and SUFFIX must not contain globbing or regex special 13676# characters, hashes, percent signs, but SUFFIX may contain a leading 13677# dot (in which case that matches only a dot). 13678func_stripname () 13679{ 13680 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 13681 # positional parameters, so assign one to ordinary parameter first. 13682 func_stripname_result=${3} 13683 func_stripname_result=${func_stripname_result#"${1}"} 13684 func_stripname_result=${func_stripname_result%"${2}"} 13685} 13686 13687# func_opt_split 13688func_opt_split () 13689{ 13690 func_opt_split_opt=${1%%=*} 13691 func_opt_split_arg=${1#*=} 13692} 13693 13694# func_lo2o object 13695func_lo2o () 13696{ 13697 case ${1} in 13698 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 13699 *) func_lo2o_result=${1} ;; 13700 esac 13701} 13702 13703# func_xform libobj-or-source 13704func_xform () 13705{ 13706 func_xform_result=${1%.*}.lo 13707} 13708 13709# func_arith arithmetic-term... 13710func_arith () 13711{ 13712 func_arith_result=$(( $* )) 13713} 13714 13715# func_len string 13716# STRING may not start with a hyphen. 13717func_len () 13718{ 13719 func_len_result=${#1} 13720} 13721 13722_LT_EOF 13723 ;; 13724 *) # Bourne compatible functions. 13725 cat << \_LT_EOF >> "$cfgfile" 13726 13727# func_dirname file append nondir_replacement 13728# Compute the dirname of FILE. If nonempty, add APPEND to the result, 13729# otherwise set result to NONDIR_REPLACEMENT. 13730func_dirname () 13731{ 13732 # Extract subdirectory from the argument. 13733 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 13734 if test "X$func_dirname_result" = "X${1}"; then 13735 func_dirname_result="${3}" 13736 else 13737 func_dirname_result="$func_dirname_result${2}" 13738 fi 13739} 13740 13741# func_basename file 13742func_basename () 13743{ 13744 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 13745} 13746 13747 13748# func_stripname prefix suffix name 13749# strip PREFIX and SUFFIX off of NAME. 13750# PREFIX and SUFFIX must not contain globbing or regex special 13751# characters, hashes, percent signs, but SUFFIX may contain a leading 13752# dot (in which case that matches only a dot). 13753# func_strip_suffix prefix name 13754func_stripname () 13755{ 13756 case ${2} in 13757 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 13758 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 13759 esac 13760} 13761 13762# sed scripts: 13763my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 13764my_sed_long_arg='1s/^-[^=]*=//' 13765 13766# func_opt_split 13767func_opt_split () 13768{ 13769 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 13770 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 13771} 13772 13773# func_lo2o object 13774func_lo2o () 13775{ 13776 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 13777} 13778 13779# func_xform libobj-or-source 13780func_xform () 13781{ 13782 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 13783} 13784 13785# func_arith arithmetic-term... 13786func_arith () 13787{ 13788 func_arith_result=`expr "$@"` 13789} 13790 13791# func_len string 13792# STRING may not start with a hyphen. 13793func_len () 13794{ 13795 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 13796} 13797 13798_LT_EOF 13799esac 13800 13801case $lt_shell_append in 13802 yes) 13803 cat << \_LT_EOF >> "$cfgfile" 13804 13805# func_append var value 13806# Append VALUE to the end of shell variable VAR. 13807func_append () 13808{ 13809 eval "$1+=\$2" 13810} 13811_LT_EOF 13812 ;; 13813 *) 13814 cat << \_LT_EOF >> "$cfgfile" 13815 13816# func_append var value 13817# Append VALUE to the end of shell variable VAR. 13818func_append () 13819{ 13820 eval "$1=\$$1\$2" 13821} 13822 13823_LT_EOF 13824 ;; 13825 esac 13826 13827 13828 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 13829 || (rm -f "$cfgfile"; exit 1) 13830 13831 mv -f "$cfgfile" "$ofile" || 13832 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 13833 chmod +x "$ofile" 13834 13835 ;; 13836 "mpxrt/Makefile":F) cat > vpsed$$ << \_EOF 13837s!`test -f '$<' || echo '$(srcdir)/'`!! 13838_EOF 13839 sed -f vpsed$$ $ac_file > tmp$$ 13840 mv tmp$$ $ac_file 13841 rm vpsed$$ 13842 echo 'MULTISUBDIR =' >> $ac_file 13843 ml_norecursion=yes 13844 . ${multi_basedir}/config-ml.in 13845 { ml_norecursion=; unset ml_norecursion;} 13846 ;; 13847 "mpxwrap/Makefile":F) cat > vpsed$$ << \_EOF 13848s!`test -f '$<' || echo '$(srcdir)/'`!! 13849_EOF 13850 sed -f vpsed$$ $ac_file > tmp$$ 13851 mv tmp$$ $ac_file 13852 rm vpsed$$ 13853 echo 'MULTISUBDIR =' >> $ac_file 13854 ml_norecursion=yes 13855 . ${multi_basedir}/config-ml.in 13856 { ml_norecursion=; unset ml_norecursion;} 13857 ;; 13858 13859 esac 13860done # for ac_tag 13861 13862 13863as_fn_exit 0 13864_ACEOF 13865ac_clean_files=$ac_clean_files_save 13866 13867test $ac_write_fail = 0 || 13868 as_fn_error "write failure creating $CONFIG_STATUS" "$LINENO" 5 13869 13870 13871# configure is writing to config.log, and then calls config.status. 13872# config.status does its own redirection, appending to config.log. 13873# Unfortunately, on DOS this fails, as config.log is still kept open 13874# by configure, so config.status won't be able to write to it; its 13875# output is simply discarded. So we exec the FD to /dev/null, 13876# effectively closing config.log, so it can be properly (re)opened and 13877# appended to by config.status. When coming back to configure, we 13878# need to make the FD available again. 13879if test "$no_create" != yes; then 13880 ac_cs_success=: 13881 ac_config_status_args= 13882 test "$silent" = yes && 13883 ac_config_status_args="$ac_config_status_args --quiet" 13884 exec 5>/dev/null 13885 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 13886 exec 5>>config.log 13887 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 13888 # would make configure fail if this is the last instruction. 13889 $ac_cs_success || as_fn_exit $? 13890fi 13891if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 13892 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 13893$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 13894fi 13895 13896