1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.66 for pcp 0.10. 4# 5# Report bugs to <courier-users@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001, 9# 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software 10# Foundation, Inc. 11# 12# 13# This configure script is free software; the Free Software Foundation 14# gives unlimited permission to copy, distribute and modify it. 15## -------------------- ## 16## M4sh Initialization. ## 17## -------------------- ## 18 19# Be more Bourne compatible 20DUALCASE=1; export DUALCASE # for MKS sh 21if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22 emulate sh 23 NULLCMD=: 24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 25 # is contrary to our usage. Disable this feature. 26 alias -g '${1+"$@"}'='"$@"' 27 setopt NO_GLOB_SUBST 28else 29 case `(set -o) 2>/dev/null` in #( 30 *posix*) : 31 set -o posix ;; #( 32 *) : 33 ;; 34esac 35fi 36 37 38as_nl=' 39' 40export as_nl 41# Printing a long string crashes Solaris 7 /usr/bin/printf. 42as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 43as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 44as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 45# Prefer a ksh shell builtin over an external printf program on Solaris, 46# but without wasting forks for bash or zsh. 47if test -z "$BASH_VERSION$ZSH_VERSION" \ 48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 49 as_echo='print -r --' 50 as_echo_n='print -rn --' 51elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 52 as_echo='printf %s\n' 53 as_echo_n='printf %s' 54else 55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 56 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 57 as_echo_n='/usr/ucb/echo -n' 58 else 59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 60 as_echo_n_body='eval 61 arg=$1; 62 case $arg in #( 63 *"$as_nl"*) 64 expr "X$arg" : "X\\(.*\\)$as_nl"; 65 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 66 esac; 67 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 68 ' 69 export as_echo_n_body 70 as_echo_n='sh -c $as_echo_n_body as_echo' 71 fi 72 export as_echo_body 73 as_echo='sh -c $as_echo_body as_echo' 74fi 75 76# The user is always right. 77if test "${PATH_SEPARATOR+set}" != set; then 78 PATH_SEPARATOR=: 79 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 80 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 81 PATH_SEPARATOR=';' 82 } 83fi 84 85 86# IFS 87# We need space, tab and new line, in precisely that order. Quoting is 88# there to prevent editors from complaining about space-tab. 89# (If _AS_PATH_WALK were called with IFS unset, it would disable word 90# splitting by setting IFS to empty value.) 91IFS=" "" $as_nl" 92 93# Find who we are. Look in the path if we contain no directory separator. 94case $0 in #(( 95 *[\\/]* ) as_myself=$0 ;; 96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 97for as_dir in $PATH 98do 99 IFS=$as_save_IFS 100 test -z "$as_dir" && as_dir=. 101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 102 done 103IFS=$as_save_IFS 104 105 ;; 106esac 107# We did not find ourselves, most probably we were run as `sh COMMAND' 108# in which case we are not to be found in the path. 109if test "x$as_myself" = x; then 110 as_myself=$0 111fi 112if test ! -f "$as_myself"; then 113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 114 exit 1 115fi 116 117# Unset variables that we do not need and which cause bugs (e.g. in 118# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 119# suppresses any "Segmentation fault" message there. '((' could 120# trigger a bug in pdksh 5.2.14. 121for as_var in BASH_ENV ENV MAIL MAILPATH 122do eval test x\${$as_var+set} = xset \ 123 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 124done 125PS1='$ ' 126PS2='> ' 127PS4='+ ' 128 129# NLS nuisances. 130LC_ALL=C 131export LC_ALL 132LANGUAGE=C 133export LANGUAGE 134 135# CDPATH. 136(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 137 138if test "x$CONFIG_SHELL" = x; then 139 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 140 emulate sh 141 NULLCMD=: 142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 143 # is contrary to our usage. Disable this feature. 144 alias -g '\${1+\"\$@\"}'='\"\$@\"' 145 setopt NO_GLOB_SUBST 146else 147 case \`(set -o) 2>/dev/null\` in #( 148 *posix*) : 149 set -o posix ;; #( 150 *) : 151 ;; 152esac 153fi 154" 155 as_required="as_fn_return () { (exit \$1); } 156as_fn_success () { as_fn_return 0; } 157as_fn_failure () { as_fn_return 1; } 158as_fn_ret_success () { return 0; } 159as_fn_ret_failure () { return 1; } 160 161exitcode=0 162as_fn_success || { exitcode=1; echo as_fn_success failed.; } 163as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 164as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 165as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 166if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 167 168else 169 exitcode=1; echo positional parameters were not saved. 170fi 171test x\$exitcode = x0 || exit 1" 172 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 173 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 176test \$(( 1 + 1 )) = 2 || exit 1 177 178 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 179 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 180 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 181 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 182 PATH=/empty FPATH=/empty; export PATH FPATH 183 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 184 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1" 185 if (eval "$as_required") 2>/dev/null; then : 186 as_have_required=yes 187else 188 as_have_required=no 189fi 190 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 191 192else 193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 194as_found=false 195for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 196do 197 IFS=$as_save_IFS 198 test -z "$as_dir" && as_dir=. 199 as_found=: 200 case $as_dir in #( 201 /*) 202 for as_base in sh bash ksh sh5; do 203 # Try only shells that exist, to save several forks. 204 as_shell=$as_dir/$as_base 205 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 206 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 207 CONFIG_SHELL=$as_shell as_have_required=yes 208 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 209 break 2 210fi 211fi 212 done;; 213 esac 214 as_found=false 215done 216$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 217 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 218 CONFIG_SHELL=$SHELL as_have_required=yes 219fi; } 220IFS=$as_save_IFS 221 222 223 if test "x$CONFIG_SHELL" != x; then : 224 # We cannot yet assume a decent shell, so we have to provide a 225 # neutralization value for shells without unset; and this also 226 # works around shells that cannot unset nonexistent variables. 227 BASH_ENV=/dev/null 228 ENV=/dev/null 229 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 230 export CONFIG_SHELL 231 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"} 232fi 233 234 if test x$as_have_required = xno; then : 235 $as_echo "$0: This script requires a shell more modern than all" 236 $as_echo "$0: the shells that I found on your system." 237 if test x${ZSH_VERSION+set} = xset ; then 238 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 239 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 240 else 241 $as_echo "$0: Please tell bug-autoconf@gnu.org and 242$0: courier-users@lists.sourceforge.net about your system, 243$0: including any error possibly output before this 244$0: message. Then install a modern shell, or manually run 245$0: the script under such a shell if you do have one." 246 fi 247 exit 1 248fi 249fi 250fi 251SHELL=${CONFIG_SHELL-/bin/sh} 252export SHELL 253# Unset more variables known to interfere with behavior of common tools. 254CLICOLOR_FORCE= GREP_OPTIONS= 255unset CLICOLOR_FORCE GREP_OPTIONS 256 257## --------------------- ## 258## M4sh Shell Functions. ## 259## --------------------- ## 260# as_fn_unset VAR 261# --------------- 262# Portably unset VAR. 263as_fn_unset () 264{ 265 { eval $1=; unset $1;} 266} 267as_unset=as_fn_unset 268 269# as_fn_set_status STATUS 270# ----------------------- 271# Set $? to STATUS, without forking. 272as_fn_set_status () 273{ 274 return $1 275} # as_fn_set_status 276 277# as_fn_exit STATUS 278# ----------------- 279# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 280as_fn_exit () 281{ 282 set +e 283 as_fn_set_status $1 284 exit $1 285} # as_fn_exit 286 287# as_fn_mkdir_p 288# ------------- 289# Create "$as_dir" as a directory, including parents if necessary. 290as_fn_mkdir_p () 291{ 292 293 case $as_dir in #( 294 -*) as_dir=./$as_dir;; 295 esac 296 test -d "$as_dir" || eval $as_mkdir_p || { 297 as_dirs= 298 while :; do 299 case $as_dir in #( 300 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 301 *) as_qdir=$as_dir;; 302 esac 303 as_dirs="'$as_qdir' $as_dirs" 304 as_dir=`$as_dirname -- "$as_dir" || 305$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 306 X"$as_dir" : 'X\(//\)[^/]' \| \ 307 X"$as_dir" : 'X\(//\)$' \| \ 308 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 309$as_echo X"$as_dir" | 310 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 311 s//\1/ 312 q 313 } 314 /^X\(\/\/\)[^/].*/{ 315 s//\1/ 316 q 317 } 318 /^X\(\/\/\)$/{ 319 s//\1/ 320 q 321 } 322 /^X\(\/\).*/{ 323 s//\1/ 324 q 325 } 326 s/.*/./; q'` 327 test -d "$as_dir" && break 328 done 329 test -z "$as_dirs" || eval "mkdir $as_dirs" 330 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 331 332 333} # as_fn_mkdir_p 334# as_fn_append VAR VALUE 335# ---------------------- 336# Append the text in VALUE to the end of the definition contained in VAR. Take 337# advantage of any shell optimizations that allow amortized linear growth over 338# repeated appends, instead of the typical quadratic growth present in naive 339# implementations. 340if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 341 eval 'as_fn_append () 342 { 343 eval $1+=\$2 344 }' 345else 346 as_fn_append () 347 { 348 eval $1=\$$1\$2 349 } 350fi # as_fn_append 351 352# as_fn_arith ARG... 353# ------------------ 354# Perform arithmetic evaluation on the ARGs, and store the result in the 355# global $as_val. Take advantage of shells that can avoid forks. The arguments 356# must be portable across $(()) and expr. 357if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 358 eval 'as_fn_arith () 359 { 360 as_val=$(( $* )) 361 }' 362else 363 as_fn_arith () 364 { 365 as_val=`expr "$@" || test $? -eq 1` 366 } 367fi # as_fn_arith 368 369 370# as_fn_error STATUS ERROR [LINENO LOG_FD] 371# ---------------------------------------- 372# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 373# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 374# script with STATUS, using 1 if that was 0. 375as_fn_error () 376{ 377 as_status=$1; test $as_status -eq 0 && as_status=1 378 if test "$4"; then 379 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 380 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 381 fi 382 $as_echo "$as_me: error: $2" >&2 383 as_fn_exit $as_status 384} # as_fn_error 385 386if expr a : '\(a\)' >/dev/null 2>&1 && 387 test "X`expr 00001 : '.*\(...\)'`" = X001; then 388 as_expr=expr 389else 390 as_expr=false 391fi 392 393if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 394 as_basename=basename 395else 396 as_basename=false 397fi 398 399if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 400 as_dirname=dirname 401else 402 as_dirname=false 403fi 404 405as_me=`$as_basename -- "$0" || 406$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 407 X"$0" : 'X\(//\)$' \| \ 408 X"$0" : 'X\(/\)' \| . 2>/dev/null || 409$as_echo X/"$0" | 410 sed '/^.*\/\([^/][^/]*\)\/*$/{ 411 s//\1/ 412 q 413 } 414 /^X\/\(\/\/\)$/{ 415 s//\1/ 416 q 417 } 418 /^X\/\(\/\).*/{ 419 s//\1/ 420 q 421 } 422 s/.*/./; q'` 423 424# Avoid depending upon Character Ranges. 425as_cr_letters='abcdefghijklmnopqrstuvwxyz' 426as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 427as_cr_Letters=$as_cr_letters$as_cr_LETTERS 428as_cr_digits='0123456789' 429as_cr_alnum=$as_cr_Letters$as_cr_digits 430 431 432 as_lineno_1=$LINENO as_lineno_1a=$LINENO 433 as_lineno_2=$LINENO as_lineno_2a=$LINENO 434 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 435 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 436 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 437 sed -n ' 438 p 439 /[$]LINENO/= 440 ' <$as_myself | 441 sed ' 442 s/[$]LINENO.*/&-/ 443 t lineno 444 b 445 :lineno 446 N 447 :loop 448 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 449 t loop 450 s/-\n.*// 451 ' >$as_me.lineno && 452 chmod +x "$as_me.lineno" || 453 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 454 455 # Don't try to exec as it changes $[0], causing all sort of problems 456 # (the dirname of $[0] is not the place where we might find the 457 # original and so on. Autoconf is especially sensitive to this). 458 . "./$as_me.lineno" 459 # Exit status is that of the last command. 460 exit 461} 462 463ECHO_C= ECHO_N= ECHO_T= 464case `echo -n x` in #((((( 465-n*) 466 case `echo 'xy\c'` in 467 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 468 xy) ECHO_C='\c';; 469 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 470 ECHO_T=' ';; 471 esac;; 472*) 473 ECHO_N='-n';; 474esac 475 476rm -f conf$$ conf$$.exe conf$$.file 477if test -d conf$$.dir; then 478 rm -f conf$$.dir/conf$$.file 479else 480 rm -f conf$$.dir 481 mkdir conf$$.dir 2>/dev/null 482fi 483if (echo >conf$$.file) 2>/dev/null; then 484 if ln -s conf$$.file conf$$ 2>/dev/null; then 485 as_ln_s='ln -s' 486 # ... but there are two gotchas: 487 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 488 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 489 # In both cases, we have to default to `cp -p'. 490 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 491 as_ln_s='cp -p' 492 elif ln conf$$.file conf$$ 2>/dev/null; then 493 as_ln_s=ln 494 else 495 as_ln_s='cp -p' 496 fi 497else 498 as_ln_s='cp -p' 499fi 500rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 501rmdir conf$$.dir 2>/dev/null 502 503if mkdir -p . 2>/dev/null; then 504 as_mkdir_p='mkdir -p "$as_dir"' 505else 506 test -d ./-p && rmdir ./-p 507 as_mkdir_p=false 508fi 509 510if test -x / >/dev/null 2>&1; then 511 as_test_x='test -x' 512else 513 if ls -dL / >/dev/null 2>&1; then 514 as_ls_L_option=L 515 else 516 as_ls_L_option= 517 fi 518 as_test_x=' 519 eval sh -c '\'' 520 if test -d "$1"; then 521 test -d "$1/."; 522 else 523 case $1 in #( 524 -*)set "./$1";; 525 esac; 526 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 527 ???[sx]*):;;*)false;;esac;fi 528 '\'' sh 529 ' 530fi 531as_executable_p=$as_test_x 532 533# Sed expression to map a string onto a valid CPP name. 534as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 535 536# Sed expression to map a string onto a valid variable name. 537as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 538 539SHELL=${CONFIG_SHELL-/bin/sh} 540 541 542test -n "$DJDIR" || exec 7<&0 </dev/null 543exec 6>&1 544 545# Name of the host. 546# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 547# so uname gets run too. 548ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 549 550# 551# Initializations. 552# 553ac_default_prefix=/usr/local 554ac_clean_files= 555ac_config_libobj_dir=. 556LIBOBJS= 557cross_compiling=no 558subdirs= 559MFLAGS= 560MAKEFLAGS= 561 562# Identity of this package. 563PACKAGE_NAME='pcp' 564PACKAGE_TARNAME='pcp' 565PACKAGE_VERSION='0.10' 566PACKAGE_STRING='pcp 0.10' 567PACKAGE_BUGREPORT='courier-users@lists.sourceforge.net' 568PACKAGE_URL='' 569 570ac_unique_file="pcp.h" 571# Factoring default headers for most tests. 572ac_includes_default="\ 573#include <stdio.h> 574#ifdef HAVE_SYS_TYPES_H 575# include <sys/types.h> 576#endif 577#ifdef HAVE_SYS_STAT_H 578# include <sys/stat.h> 579#endif 580#ifdef STDC_HEADERS 581# include <stdlib.h> 582# include <stddef.h> 583#else 584# ifdef HAVE_STDLIB_H 585# include <stdlib.h> 586# endif 587#endif 588#ifdef HAVE_STRING_H 589# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 590# include <memory.h> 591# endif 592# include <string.h> 593#endif 594#ifdef HAVE_STRINGS_H 595# include <strings.h> 596#endif 597#ifdef HAVE_INTTYPES_H 598# include <inttypes.h> 599#endif 600#ifdef HAVE_STDINT_H 601# include <stdint.h> 602#endif 603#ifdef HAVE_UNISTD_H 604# include <unistd.h> 605#endif" 606 607gt_needs= 608ac_header_list= 609gl_use_threads_default= 610ac_subst_vars='am__EXEEXT_FALSE 611am__EXEEXT_TRUE 612LTLIBOBJS 613LIBOBJS 614EFENCE 615mailgroup 616localcacheowner 617TIMEOUT 618localpcpdcachedir 619calendardir 620SENDIT 621NETLIBS 622LDAUTH 623CPPAUTH 624COURIERAUTHCONFIG 625POSUB 626LTLIBINTL 627LIBINTL 628INTLLIBS 629INTL_LIBTOOL_SUFFIX_PREFIX 630INTLOBJS 631GENCAT 632INSTOBJEXT 633DATADIRNAME 634CATOBJEXT 635USE_INCLUDED_LIBINTL 636BUILD_INCLUDED_LIBINTL 637LTLIBC 638WINDRES 639WOE32 640WOE32DLL 641HAVE_WPRINTF 642HAVE_NEWLOCALE 643HAVE_SNPRINTF 644HAVE_ASPRINTF 645HAVE_POSIX_PRINTF 646INTL_DEFAULT_VERBOSITY 647INTL_MACOSX_LIBS 648GLIBC21 649INTLBISON 650LTLIBICONV 651LIBICONV 652LTLIBMULTITHREAD 653LIBMULTITHREAD 654LTLIBTHREAD 655LIBTHREAD 656LIBPTH_PREFIX 657LTLIBPTH 658LIBPTH 659PRI_MACROS_BROKEN 660ALLOCA 661HAVE_VISIBILITY 662CFLAG_VISIBILITY 663GLIBC2 664XGETTEXT_EXTRA_OPTIONS 665MSGMERGE 666XGETTEXT_015 667XGETTEXT 668GMSGFMT_015 669MSGFMT_015 670GMSGFMT 671MSGFMT 672GETTEXT_MACRO_VERSION 673USE_NLS 674PERL 675OTOOL64 676OTOOL 677LIPO 678NMEDIT 679DSYMUTIL 680RANLIB 681AR 682OBJDUMP 683LN_S 684NM 685ac_ct_DUMPBIN 686DUMPBIN 687LD 688FGREP 689SED 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698LIBTOOL 699EGREP 700GREP 701CPP 702am__fastdepCC_FALSE 703am__fastdepCC_TRUE 704CCDEPMODE 705AMDEPBACKSLASH 706AMDEP_FALSE 707AMDEP_TRUE 708am__quote 709am__include 710DEPDIR 711OBJEXT 712EXEEXT 713ac_ct_CC 714CPPFLAGS 715LDFLAGS 716CFLAGS 717CC 718am__untar 719am__tar 720AMTAR 721am__leading_dot 722SET_MAKE 723AWK 724mkdir_p 725MKDIR_P 726INSTALL_STRIP_PROGRAM 727STRIP 728install_sh 729MAKEINFO 730AUTOHEADER 731AUTOMAKE 732AUTOCONF 733ACLOCAL 734VERSION 735PACKAGE 736CYGPATH_W 737am__isrc 738INSTALL_DATA 739INSTALL_SCRIPT 740INSTALL_PROGRAM 741target_alias 742host_alias 743build_alias 744LIBS 745ECHO_T 746ECHO_N 747ECHO_C 748DEFS 749mandir 750localedir 751libdir 752psdir 753pdfdir 754dvidir 755htmldir 756infodir 757docdir 758oldincludedir 759includedir 760localstatedir 761sharedstatedir 762sysconfdir 763datadir 764datarootdir 765libexecdir 766sbindir 767bindir 768program_transform_name 769prefix 770exec_prefix 771PACKAGE_URL 772PACKAGE_BUGREPORT 773PACKAGE_STRING 774PACKAGE_VERSION 775PACKAGE_TARNAME 776PACKAGE_NAME 777PATH_SEPARATOR 778SHELL' 779ac_subst_files='' 780ac_user_opts=' 781enable_option_checking 782enable_dependency_tracking 783enable_shared 784enable_static 785with_pic 786enable_fast_install 787with_gnu_ld 788enable_libtool_lock 789enable_nls 790enable_threads 791enable_rpath 792with_libpth_prefix 793with_libiconv_prefix 794with_included_gettext 795with_libintl_prefix 796with_calendardir 797with_calendarpurge 798enable_hardtimeout 799with_cacheowner 800with_mailgroup 801' 802 ac_precious_vars='build_alias 803host_alias 804target_alias 805CC 806CFLAGS 807LDFLAGS 808LIBS 809CPPFLAGS 810CPP' 811 812 813# Initialize some variables set by options. 814ac_init_help= 815ac_init_version=false 816ac_unrecognized_opts= 817ac_unrecognized_sep= 818# The variables have the same names as the options, with 819# dashes changed to underlines. 820cache_file=/dev/null 821exec_prefix=NONE 822no_create= 823no_recursion= 824prefix=NONE 825program_prefix=NONE 826program_suffix=NONE 827program_transform_name=s,x,x, 828silent= 829site= 830srcdir= 831verbose= 832x_includes=NONE 833x_libraries=NONE 834 835# Installation directory options. 836# These are left unexpanded so users can "make install exec_prefix=/foo" 837# and all the variables that are supposed to be based on exec_prefix 838# by default will actually change. 839# Use braces instead of parens because sh, perl, etc. also accept them. 840# (The list follows the same order as the GNU Coding Standards.) 841bindir='${exec_prefix}/bin' 842sbindir='${exec_prefix}/sbin' 843libexecdir='${exec_prefix}/libexec' 844datarootdir='${prefix}/share' 845datadir='${datarootdir}' 846sysconfdir='${prefix}/etc' 847sharedstatedir='${prefix}/com' 848localstatedir='${prefix}/var' 849includedir='${prefix}/include' 850oldincludedir='/usr/include' 851docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 852infodir='${datarootdir}/info' 853htmldir='${docdir}' 854dvidir='${docdir}' 855pdfdir='${docdir}' 856psdir='${docdir}' 857libdir='${exec_prefix}/lib' 858localedir='${datarootdir}/locale' 859mandir='${datarootdir}/man' 860 861ac_prev= 862ac_dashdash= 863for ac_option 864do 865 # If the previous option needs an argument, assign it. 866 if test -n "$ac_prev"; then 867 eval $ac_prev=\$ac_option 868 ac_prev= 869 continue 870 fi 871 872 case $ac_option in 873 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 874 *) ac_optarg=yes ;; 875 esac 876 877 # Accept the important Cygnus configure options, so we can diagnose typos. 878 879 case $ac_dashdash$ac_option in 880 --) 881 ac_dashdash=yes ;; 882 883 -bindir | --bindir | --bindi | --bind | --bin | --bi) 884 ac_prev=bindir ;; 885 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 886 bindir=$ac_optarg ;; 887 888 -build | --build | --buil | --bui | --bu) 889 ac_prev=build_alias ;; 890 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 891 build_alias=$ac_optarg ;; 892 893 -cache-file | --cache-file | --cache-fil | --cache-fi \ 894 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 895 ac_prev=cache_file ;; 896 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 897 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 898 cache_file=$ac_optarg ;; 899 900 --config-cache | -C) 901 cache_file=config.cache ;; 902 903 -datadir | --datadir | --datadi | --datad) 904 ac_prev=datadir ;; 905 -datadir=* | --datadir=* | --datadi=* | --datad=*) 906 datadir=$ac_optarg ;; 907 908 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 909 | --dataroo | --dataro | --datar) 910 ac_prev=datarootdir ;; 911 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 912 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 913 datarootdir=$ac_optarg ;; 914 915 -disable-* | --disable-*) 916 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 917 # Reject names that are not valid shell variable names. 918 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 919 as_fn_error $? "invalid feature name: $ac_useropt" 920 ac_useropt_orig=$ac_useropt 921 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 922 case $ac_user_opts in 923 *" 924"enable_$ac_useropt" 925"*) ;; 926 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 927 ac_unrecognized_sep=', ';; 928 esac 929 eval enable_$ac_useropt=no ;; 930 931 -docdir | --docdir | --docdi | --doc | --do) 932 ac_prev=docdir ;; 933 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 934 docdir=$ac_optarg ;; 935 936 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 937 ac_prev=dvidir ;; 938 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 939 dvidir=$ac_optarg ;; 940 941 -enable-* | --enable-*) 942 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 943 # Reject names that are not valid shell variable names. 944 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 945 as_fn_error $? "invalid feature name: $ac_useropt" 946 ac_useropt_orig=$ac_useropt 947 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 948 case $ac_user_opts in 949 *" 950"enable_$ac_useropt" 951"*) ;; 952 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 953 ac_unrecognized_sep=', ';; 954 esac 955 eval enable_$ac_useropt=\$ac_optarg ;; 956 957 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 958 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 959 | --exec | --exe | --ex) 960 ac_prev=exec_prefix ;; 961 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 962 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 963 | --exec=* | --exe=* | --ex=*) 964 exec_prefix=$ac_optarg ;; 965 966 -gas | --gas | --ga | --g) 967 # Obsolete; use --with-gas. 968 with_gas=yes ;; 969 970 -help | --help | --hel | --he | -h) 971 ac_init_help=long ;; 972 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 973 ac_init_help=recursive ;; 974 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 975 ac_init_help=short ;; 976 977 -host | --host | --hos | --ho) 978 ac_prev=host_alias ;; 979 -host=* | --host=* | --hos=* | --ho=*) 980 host_alias=$ac_optarg ;; 981 982 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 983 ac_prev=htmldir ;; 984 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 985 | --ht=*) 986 htmldir=$ac_optarg ;; 987 988 -includedir | --includedir | --includedi | --included | --include \ 989 | --includ | --inclu | --incl | --inc) 990 ac_prev=includedir ;; 991 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 992 | --includ=* | --inclu=* | --incl=* | --inc=*) 993 includedir=$ac_optarg ;; 994 995 -infodir | --infodir | --infodi | --infod | --info | --inf) 996 ac_prev=infodir ;; 997 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 998 infodir=$ac_optarg ;; 999 1000 -libdir | --libdir | --libdi | --libd) 1001 ac_prev=libdir ;; 1002 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1003 libdir=$ac_optarg ;; 1004 1005 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1006 | --libexe | --libex | --libe) 1007 ac_prev=libexecdir ;; 1008 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1009 | --libexe=* | --libex=* | --libe=*) 1010 libexecdir=$ac_optarg ;; 1011 1012 -localedir | --localedir | --localedi | --localed | --locale) 1013 ac_prev=localedir ;; 1014 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1015 localedir=$ac_optarg ;; 1016 1017 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1018 | --localstate | --localstat | --localsta | --localst | --locals) 1019 ac_prev=localstatedir ;; 1020 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1021 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1022 localstatedir=$ac_optarg ;; 1023 1024 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1025 ac_prev=mandir ;; 1026 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1027 mandir=$ac_optarg ;; 1028 1029 -nfp | --nfp | --nf) 1030 # Obsolete; use --without-fp. 1031 with_fp=no ;; 1032 1033 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1034 | --no-cr | --no-c | -n) 1035 no_create=yes ;; 1036 1037 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1038 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1039 no_recursion=yes ;; 1040 1041 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1042 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1043 | --oldin | --oldi | --old | --ol | --o) 1044 ac_prev=oldincludedir ;; 1045 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1046 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1047 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1048 oldincludedir=$ac_optarg ;; 1049 1050 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1051 ac_prev=prefix ;; 1052 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1053 prefix=$ac_optarg ;; 1054 1055 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1056 | --program-pre | --program-pr | --program-p) 1057 ac_prev=program_prefix ;; 1058 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1059 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1060 program_prefix=$ac_optarg ;; 1061 1062 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1063 | --program-suf | --program-su | --program-s) 1064 ac_prev=program_suffix ;; 1065 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1066 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1067 program_suffix=$ac_optarg ;; 1068 1069 -program-transform-name | --program-transform-name \ 1070 | --program-transform-nam | --program-transform-na \ 1071 | --program-transform-n | --program-transform- \ 1072 | --program-transform | --program-transfor \ 1073 | --program-transfo | --program-transf \ 1074 | --program-trans | --program-tran \ 1075 | --progr-tra | --program-tr | --program-t) 1076 ac_prev=program_transform_name ;; 1077 -program-transform-name=* | --program-transform-name=* \ 1078 | --program-transform-nam=* | --program-transform-na=* \ 1079 | --program-transform-n=* | --program-transform-=* \ 1080 | --program-transform=* | --program-transfor=* \ 1081 | --program-transfo=* | --program-transf=* \ 1082 | --program-trans=* | --program-tran=* \ 1083 | --progr-tra=* | --program-tr=* | --program-t=*) 1084 program_transform_name=$ac_optarg ;; 1085 1086 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1087 ac_prev=pdfdir ;; 1088 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1089 pdfdir=$ac_optarg ;; 1090 1091 -psdir | --psdir | --psdi | --psd | --ps) 1092 ac_prev=psdir ;; 1093 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1094 psdir=$ac_optarg ;; 1095 1096 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1097 | -silent | --silent | --silen | --sile | --sil) 1098 silent=yes ;; 1099 1100 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1101 ac_prev=sbindir ;; 1102 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1103 | --sbi=* | --sb=*) 1104 sbindir=$ac_optarg ;; 1105 1106 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1107 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1108 | --sharedst | --shareds | --shared | --share | --shar \ 1109 | --sha | --sh) 1110 ac_prev=sharedstatedir ;; 1111 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1112 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1113 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1114 | --sha=* | --sh=*) 1115 sharedstatedir=$ac_optarg ;; 1116 1117 -site | --site | --sit) 1118 ac_prev=site ;; 1119 -site=* | --site=* | --sit=*) 1120 site=$ac_optarg ;; 1121 1122 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1123 ac_prev=srcdir ;; 1124 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1125 srcdir=$ac_optarg ;; 1126 1127 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1128 | --syscon | --sysco | --sysc | --sys | --sy) 1129 ac_prev=sysconfdir ;; 1130 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1131 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1132 sysconfdir=$ac_optarg ;; 1133 1134 -target | --target | --targe | --targ | --tar | --ta | --t) 1135 ac_prev=target_alias ;; 1136 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1137 target_alias=$ac_optarg ;; 1138 1139 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1140 verbose=yes ;; 1141 1142 -version | --version | --versio | --versi | --vers | -V) 1143 ac_init_version=: ;; 1144 1145 -with-* | --with-*) 1146 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1147 # Reject names that are not valid shell variable names. 1148 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1149 as_fn_error $? "invalid package name: $ac_useropt" 1150 ac_useropt_orig=$ac_useropt 1151 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1152 case $ac_user_opts in 1153 *" 1154"with_$ac_useropt" 1155"*) ;; 1156 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1157 ac_unrecognized_sep=', ';; 1158 esac 1159 eval with_$ac_useropt=\$ac_optarg ;; 1160 1161 -without-* | --without-*) 1162 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1163 # Reject names that are not valid shell variable names. 1164 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1165 as_fn_error $? "invalid package name: $ac_useropt" 1166 ac_useropt_orig=$ac_useropt 1167 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1168 case $ac_user_opts in 1169 *" 1170"with_$ac_useropt" 1171"*) ;; 1172 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1173 ac_unrecognized_sep=', ';; 1174 esac 1175 eval with_$ac_useropt=no ;; 1176 1177 --x) 1178 # Obsolete; use --with-x. 1179 with_x=yes ;; 1180 1181 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1182 | --x-incl | --x-inc | --x-in | --x-i) 1183 ac_prev=x_includes ;; 1184 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1185 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1186 x_includes=$ac_optarg ;; 1187 1188 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1189 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1190 ac_prev=x_libraries ;; 1191 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1192 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1193 x_libraries=$ac_optarg ;; 1194 1195 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1196Try \`$0 --help' for more information" 1197 ;; 1198 1199 *=*) 1200 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1201 # Reject names that are not valid shell variable names. 1202 case $ac_envvar in #( 1203 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1204 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1205 esac 1206 eval $ac_envvar=\$ac_optarg 1207 export $ac_envvar ;; 1208 1209 *) 1210 # FIXME: should be removed in autoconf 3.0. 1211 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1212 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1213 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1214 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} 1215 ;; 1216 1217 esac 1218done 1219 1220if test -n "$ac_prev"; then 1221 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1222 as_fn_error $? "missing argument to $ac_option" 1223fi 1224 1225if test -n "$ac_unrecognized_opts"; then 1226 case $enable_option_checking in 1227 no) ;; 1228 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1229 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1230 esac 1231fi 1232 1233# Check all directory arguments for consistency. 1234for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1235 datadir sysconfdir sharedstatedir localstatedir includedir \ 1236 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1237 libdir localedir mandir 1238do 1239 eval ac_val=\$$ac_var 1240 # Remove trailing slashes. 1241 case $ac_val in 1242 */ ) 1243 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1244 eval $ac_var=\$ac_val;; 1245 esac 1246 # Be sure to have absolute directory names. 1247 case $ac_val in 1248 [\\/$]* | ?:[\\/]* ) continue;; 1249 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1250 esac 1251 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1252done 1253 1254# There might be people who depend on the old broken behavior: `$host' 1255# used to hold the argument of --host etc. 1256# FIXME: To remove some day. 1257build=$build_alias 1258host=$host_alias 1259target=$target_alias 1260 1261# FIXME: To remove some day. 1262if test "x$host_alias" != x; then 1263 if test "x$build_alias" = x; then 1264 cross_compiling=maybe 1265 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host. 1266 If a cross compiler is detected then cross compile mode will be used" >&2 1267 elif test "x$build_alias" != "x$host_alias"; then 1268 cross_compiling=yes 1269 fi 1270fi 1271 1272ac_tool_prefix= 1273test -n "$host_alias" && ac_tool_prefix=$host_alias- 1274 1275test "$silent" = yes && exec 6>/dev/null 1276 1277 1278ac_pwd=`pwd` && test -n "$ac_pwd" && 1279ac_ls_di=`ls -di .` && 1280ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1281 as_fn_error $? "working directory cannot be determined" 1282test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1283 as_fn_error $? "pwd does not report name of working directory" 1284 1285 1286# Find the source files, if location was not specified. 1287if test -z "$srcdir"; then 1288 ac_srcdir_defaulted=yes 1289 # Try the directory containing this script, then the parent directory. 1290 ac_confdir=`$as_dirname -- "$as_myself" || 1291$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1292 X"$as_myself" : 'X\(//\)[^/]' \| \ 1293 X"$as_myself" : 'X\(//\)$' \| \ 1294 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1295$as_echo X"$as_myself" | 1296 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1297 s//\1/ 1298 q 1299 } 1300 /^X\(\/\/\)[^/].*/{ 1301 s//\1/ 1302 q 1303 } 1304 /^X\(\/\/\)$/{ 1305 s//\1/ 1306 q 1307 } 1308 /^X\(\/\).*/{ 1309 s//\1/ 1310 q 1311 } 1312 s/.*/./; q'` 1313 srcdir=$ac_confdir 1314 if test ! -r "$srcdir/$ac_unique_file"; then 1315 srcdir=.. 1316 fi 1317else 1318 ac_srcdir_defaulted=no 1319fi 1320if test ! -r "$srcdir/$ac_unique_file"; then 1321 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1322 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1323fi 1324ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1325ac_abs_confdir=`( 1326 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1327 pwd)` 1328# When building in place, set srcdir=. 1329if test "$ac_abs_confdir" = "$ac_pwd"; then 1330 srcdir=. 1331fi 1332# Remove unnecessary trailing slashes from srcdir. 1333# Double slashes in file names in object file debugging info 1334# mess up M-x gdb in Emacs. 1335case $srcdir in 1336*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1337esac 1338for ac_var in $ac_precious_vars; do 1339 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1340 eval ac_env_${ac_var}_value=\$${ac_var} 1341 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1342 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1343done 1344 1345# 1346# Report the --help message. 1347# 1348if test "$ac_init_help" = "long"; then 1349 # Omit some internal or obsolete options to make the list less imposing. 1350 # This message is too long to be a string in the A/UX 3.1 sh. 1351 cat <<_ACEOF 1352\`configure' configures pcp 0.10 to adapt to many kinds of systems. 1353 1354Usage: $0 [OPTION]... [VAR=VALUE]... 1355 1356To assign environment variables (e.g., CC, CFLAGS...), specify them as 1357VAR=VALUE. See below for descriptions of some of the useful variables. 1358 1359Defaults for the options are specified in brackets. 1360 1361Configuration: 1362 -h, --help display this help and exit 1363 --help=short display options specific to this package 1364 --help=recursive display the short help of all the included packages 1365 -V, --version display version information and exit 1366 -q, --quiet, --silent do not print \`checking ...' messages 1367 --cache-file=FILE cache test results in FILE [disabled] 1368 -C, --config-cache alias for \`--cache-file=config.cache' 1369 -n, --no-create do not create output files 1370 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1371 1372Installation directories: 1373 --prefix=PREFIX install architecture-independent files in PREFIX 1374 [$ac_default_prefix] 1375 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1376 [PREFIX] 1377 1378By default, \`make install' will install all the files in 1379\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1380an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1381for instance \`--prefix=\$HOME'. 1382 1383For better control, use the options below. 1384 1385Fine tuning of the installation directories: 1386 --bindir=DIR user executables [EPREFIX/bin] 1387 --sbindir=DIR system admin executables [EPREFIX/sbin] 1388 --libexecdir=DIR program executables [EPREFIX/libexec] 1389 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1390 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1391 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1392 --libdir=DIR object code libraries [EPREFIX/lib] 1393 --includedir=DIR C header files [PREFIX/include] 1394 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1395 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1396 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1397 --infodir=DIR info documentation [DATAROOTDIR/info] 1398 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1399 --mandir=DIR man documentation [DATAROOTDIR/man] 1400 --docdir=DIR documentation root [DATAROOTDIR/doc/pcp] 1401 --htmldir=DIR html documentation [DOCDIR] 1402 --dvidir=DIR dvi documentation [DOCDIR] 1403 --pdfdir=DIR pdf documentation [DOCDIR] 1404 --psdir=DIR ps documentation [DOCDIR] 1405_ACEOF 1406 1407 cat <<\_ACEOF 1408 1409Program names: 1410 --program-prefix=PREFIX prepend PREFIX to installed program names 1411 --program-suffix=SUFFIX append SUFFIX to installed program names 1412 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1413 1414System types: 1415 --build=BUILD configure for building on BUILD [guessed] 1416 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1417_ACEOF 1418fi 1419 1420if test -n "$ac_init_help"; then 1421 case $ac_init_help in 1422 short | recursive ) echo "Configuration of pcp 0.10:";; 1423 esac 1424 cat <<\_ACEOF 1425 1426Optional Features: 1427 --disable-option-checking ignore unrecognized --enable/--with options 1428 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1429 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1430 --disable-dependency-tracking speeds up one-time build 1431 --enable-dependency-tracking do not reject slow dependency extractors 1432 --enable-shared[=PKGS] build shared libraries [default=yes] 1433 --enable-static[=PKGS] build static libraries [default=yes] 1434 --enable-fast-install[=PKGS] 1435 optimize for fast installation [default=yes] 1436 --disable-libtool-lock avoid locking (might break parallel builds) 1437 --disable-nls do not use Native Language Support 1438 --enable-threads={posix|solaris|pth|win32} 1439 specify multithreading API 1440 --disable-threads build without multithread safety 1441 --disable-rpath do not hardcode runtime library paths 1442 --enable-hardtimeout=n Timeout after n seconds (min 1800) 1443 1444Optional Packages: 1445 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1446 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1447 --with-pic try to use only PIC/non-PIC objects [default=use 1448 both] 1449 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1450 --with-gnu-ld assume the C compiler uses GNU ld default=no 1451 --with-libpth-prefix[=DIR] search for libpth in DIR/include and DIR/lib 1452 --without-libpth-prefix don't search for libpth in includedir and libdir 1453 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1454 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1455 --with-included-gettext use the GNU gettext library included here 1456 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1457 --without-libintl-prefix don't search for libintl in includedir and libdir 1458 --with-calendardir=path - use path instead of prefix/var/spool/calendar 1459 --with-calendarpurge=N - purge past events over N days old (default: 30) 1460 --with-cacheowner=user Owner of the cache directory (default: bin) 1461 1462 1463Some influential environment variables: 1464 CC C compiler command 1465 CFLAGS C compiler flags 1466 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1467 nonstandard directory <lib dir> 1468 LIBS libraries to pass to the linker, e.g. -l<library> 1469 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1470 you have headers in a nonstandard directory <include dir> 1471 CPP C preprocessor 1472 1473Use these variables to override the choices made by `configure' or to help 1474it to find libraries and programs with nonstandard names/locations. 1475 1476Report bugs to <courier-users@lists.sourceforge.net>. 1477_ACEOF 1478ac_status=$? 1479fi 1480 1481if test "$ac_init_help" = "recursive"; then 1482 # If there are subdirs, report their specific --help. 1483 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1484 test -d "$ac_dir" || 1485 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1486 continue 1487 ac_builddir=. 1488 1489case "$ac_dir" in 1490.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1491*) 1492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1493 # A ".." for each directory in $ac_dir_suffix. 1494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1495 case $ac_top_builddir_sub in 1496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1498 esac ;; 1499esac 1500ac_abs_top_builddir=$ac_pwd 1501ac_abs_builddir=$ac_pwd$ac_dir_suffix 1502# for backward compatibility: 1503ac_top_builddir=$ac_top_build_prefix 1504 1505case $srcdir in 1506 .) # We are building in place. 1507 ac_srcdir=. 1508 ac_top_srcdir=$ac_top_builddir_sub 1509 ac_abs_top_srcdir=$ac_pwd ;; 1510 [\\/]* | ?:[\\/]* ) # Absolute name. 1511 ac_srcdir=$srcdir$ac_dir_suffix; 1512 ac_top_srcdir=$srcdir 1513 ac_abs_top_srcdir=$srcdir ;; 1514 *) # Relative name. 1515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1516 ac_top_srcdir=$ac_top_build_prefix$srcdir 1517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1518esac 1519ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1520 1521 cd "$ac_dir" || { ac_status=$?; continue; } 1522 # Check for guested configure. 1523 if test -f "$ac_srcdir/configure.gnu"; then 1524 echo && 1525 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1526 elif test -f "$ac_srcdir/configure"; then 1527 echo && 1528 $SHELL "$ac_srcdir/configure" --help=recursive 1529 else 1530 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1531 fi || ac_status=$? 1532 cd "$ac_pwd" || { ac_status=$?; break; } 1533 done 1534fi 1535 1536test -n "$ac_init_help" && exit $ac_status 1537if $ac_init_version; then 1538 cat <<\_ACEOF 1539pcp configure 0.10 1540generated by GNU Autoconf 2.66 1541 1542Copyright (C) 2010 Free Software Foundation, Inc. 1543This configure script is free software; the Free Software Foundation 1544gives unlimited permission to copy, distribute and modify it. 1545_ACEOF 1546 exit 1547fi 1548 1549## ------------------------ ## 1550## Autoconf initialization. ## 1551## ------------------------ ## 1552 1553# ac_fn_c_try_compile LINENO 1554# -------------------------- 1555# Try to compile conftest.$ac_ext, and return whether this succeeded. 1556ac_fn_c_try_compile () 1557{ 1558 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1559 rm -f conftest.$ac_objext 1560 if { { ac_try="$ac_compile" 1561case "(($ac_try" in 1562 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1563 *) ac_try_echo=$ac_try;; 1564esac 1565eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1566$as_echo "$ac_try_echo"; } >&5 1567 (eval "$ac_compile") 2>conftest.err 1568 ac_status=$? 1569 if test -s conftest.err; then 1570 grep -v '^ *+' conftest.err >conftest.er1 1571 cat conftest.er1 >&5 1572 mv -f conftest.er1 conftest.err 1573 fi 1574 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1575 test $ac_status = 0; } && { 1576 test -z "$ac_c_werror_flag" || 1577 test ! -s conftest.err 1578 } && test -s conftest.$ac_objext; then : 1579 ac_retval=0 1580else 1581 $as_echo "$as_me: failed program was:" >&5 1582sed 's/^/| /' conftest.$ac_ext >&5 1583 1584 ac_retval=1 1585fi 1586 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1587 as_fn_set_status $ac_retval 1588 1589} # ac_fn_c_try_compile 1590 1591# ac_fn_c_try_cpp LINENO 1592# ---------------------- 1593# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1594ac_fn_c_try_cpp () 1595{ 1596 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1597 if { { ac_try="$ac_cpp conftest.$ac_ext" 1598case "(($ac_try" in 1599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1600 *) ac_try_echo=$ac_try;; 1601esac 1602eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1603$as_echo "$ac_try_echo"; } >&5 1604 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1605 ac_status=$? 1606 if test -s conftest.err; then 1607 grep -v '^ *+' conftest.err >conftest.er1 1608 cat conftest.er1 >&5 1609 mv -f conftest.er1 conftest.err 1610 fi 1611 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1612 test $ac_status = 0; } >/dev/null && { 1613 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1614 test ! -s conftest.err 1615 }; then : 1616 ac_retval=0 1617else 1618 $as_echo "$as_me: failed program was:" >&5 1619sed 's/^/| /' conftest.$ac_ext >&5 1620 1621 ac_retval=1 1622fi 1623 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1624 as_fn_set_status $ac_retval 1625 1626} # ac_fn_c_try_cpp 1627 1628# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1629# ------------------------------------------------------- 1630# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1631# the include files in INCLUDES and setting the cache variable VAR 1632# accordingly. 1633ac_fn_c_check_header_mongrel () 1634{ 1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1636 if eval "test \"\${$3+set}\"" = set; then : 1637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1638$as_echo_n "checking for $2... " >&6; } 1639if eval "test \"\${$3+set}\"" = set; then : 1640 $as_echo_n "(cached) " >&6 1641fi 1642eval ac_res=\$$3 1643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1644$as_echo "$ac_res" >&6; } 1645else 1646 # Is the header compilable? 1647{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1648$as_echo_n "checking $2 usability... " >&6; } 1649cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1650/* end confdefs.h. */ 1651$4 1652#include <$2> 1653_ACEOF 1654if ac_fn_c_try_compile "$LINENO"; then : 1655 ac_header_compiler=yes 1656else 1657 ac_header_compiler=no 1658fi 1659rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1660{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1661$as_echo "$ac_header_compiler" >&6; } 1662 1663# Is the header present? 1664{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1665$as_echo_n "checking $2 presence... " >&6; } 1666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1667/* end confdefs.h. */ 1668#include <$2> 1669_ACEOF 1670if ac_fn_c_try_cpp "$LINENO"; then : 1671 ac_header_preproc=yes 1672else 1673 ac_header_preproc=no 1674fi 1675rm -f conftest.err conftest.$ac_ext 1676{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 1677$as_echo "$ac_header_preproc" >&6; } 1678 1679# So? What about this header? 1680case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 1681 yes:no: ) 1682 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 1683$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1685$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1686 ;; 1687 no:yes:* ) 1688 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 1689$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 1690 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 1691$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 1692 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 1693$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 1694 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 1695$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 1696 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 1697$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 1698( $as_echo "## -------------------------------------------------- ## 1699## Report this to courier-users@lists.sourceforge.net ## 1700## -------------------------------------------------- ##" 1701 ) | sed "s/^/$as_me: WARNING: /" >&2 1702 ;; 1703esac 1704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1705$as_echo_n "checking for $2... " >&6; } 1706if eval "test \"\${$3+set}\"" = set; then : 1707 $as_echo_n "(cached) " >&6 1708else 1709 eval "$3=\$ac_header_compiler" 1710fi 1711eval ac_res=\$$3 1712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1713$as_echo "$ac_res" >&6; } 1714fi 1715 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1716 1717} # ac_fn_c_check_header_mongrel 1718 1719# ac_fn_c_try_run LINENO 1720# ---------------------- 1721# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1722# that executables *can* be run. 1723ac_fn_c_try_run () 1724{ 1725 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1726 if { { ac_try="$ac_link" 1727case "(($ac_try" in 1728 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1729 *) ac_try_echo=$ac_try;; 1730esac 1731eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1732$as_echo "$ac_try_echo"; } >&5 1733 (eval "$ac_link") 2>&5 1734 ac_status=$? 1735 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1736 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1737 { { case "(($ac_try" in 1738 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1739 *) ac_try_echo=$ac_try;; 1740esac 1741eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1742$as_echo "$ac_try_echo"; } >&5 1743 (eval "$ac_try") 2>&5 1744 ac_status=$? 1745 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1746 test $ac_status = 0; }; }; then : 1747 ac_retval=0 1748else 1749 $as_echo "$as_me: program exited with status $ac_status" >&5 1750 $as_echo "$as_me: failed program was:" >&5 1751sed 's/^/| /' conftest.$ac_ext >&5 1752 1753 ac_retval=$ac_status 1754fi 1755 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1756 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1757 as_fn_set_status $ac_retval 1758 1759} # ac_fn_c_try_run 1760 1761# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1762# ------------------------------------------------------- 1763# Tests whether HEADER exists and can be compiled using the include files in 1764# INCLUDES, setting the cache variable VAR accordingly. 1765ac_fn_c_check_header_compile () 1766{ 1767 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1769$as_echo_n "checking for $2... " >&6; } 1770if eval "test \"\${$3+set}\"" = set; then : 1771 $as_echo_n "(cached) " >&6 1772else 1773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1774/* end confdefs.h. */ 1775$4 1776#include <$2> 1777_ACEOF 1778if ac_fn_c_try_compile "$LINENO"; then : 1779 eval "$3=yes" 1780else 1781 eval "$3=no" 1782fi 1783rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1784fi 1785eval ac_res=\$$3 1786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1787$as_echo "$ac_res" >&6; } 1788 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1789 1790} # ac_fn_c_check_header_compile 1791 1792# ac_fn_c_try_link LINENO 1793# ----------------------- 1794# Try to link conftest.$ac_ext, and return whether this succeeded. 1795ac_fn_c_try_link () 1796{ 1797 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1798 rm -f conftest.$ac_objext conftest$ac_exeext 1799 if { { ac_try="$ac_link" 1800case "(($ac_try" in 1801 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1802 *) ac_try_echo=$ac_try;; 1803esac 1804eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1805$as_echo "$ac_try_echo"; } >&5 1806 (eval "$ac_link") 2>conftest.err 1807 ac_status=$? 1808 if test -s conftest.err; then 1809 grep -v '^ *+' conftest.err >conftest.er1 1810 cat conftest.er1 >&5 1811 mv -f conftest.er1 conftest.err 1812 fi 1813 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1814 test $ac_status = 0; } && { 1815 test -z "$ac_c_werror_flag" || 1816 test ! -s conftest.err 1817 } && test -s conftest$ac_exeext && { 1818 test "$cross_compiling" = yes || 1819 $as_test_x conftest$ac_exeext 1820 }; then : 1821 ac_retval=0 1822else 1823 $as_echo "$as_me: failed program was:" >&5 1824sed 's/^/| /' conftest.$ac_ext >&5 1825 1826 ac_retval=1 1827fi 1828 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1829 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1830 # interfere with the next link command; also delete a directory that is 1831 # left behind by Apple's compiler. We do this before executing the actions. 1832 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1833 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1834 as_fn_set_status $ac_retval 1835 1836} # ac_fn_c_try_link 1837 1838# ac_fn_c_check_func LINENO FUNC VAR 1839# ---------------------------------- 1840# Tests whether FUNC exists, setting the cache variable VAR accordingly 1841ac_fn_c_check_func () 1842{ 1843 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1845$as_echo_n "checking for $2... " >&6; } 1846if eval "test \"\${$3+set}\"" = set; then : 1847 $as_echo_n "(cached) " >&6 1848else 1849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1850/* end confdefs.h. */ 1851/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1852 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1853#define $2 innocuous_$2 1854 1855/* System header to define __stub macros and hopefully few prototypes, 1856 which can conflict with char $2 (); below. 1857 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1858 <limits.h> exists even on freestanding compilers. */ 1859 1860#ifdef __STDC__ 1861# include <limits.h> 1862#else 1863# include <assert.h> 1864#endif 1865 1866#undef $2 1867 1868/* Override any GCC internal prototype to avoid an error. 1869 Use char because int might match the return type of a GCC 1870 builtin and then its argument prototype would still apply. */ 1871#ifdef __cplusplus 1872extern "C" 1873#endif 1874char $2 (); 1875/* The GNU C library defines this for functions which it implements 1876 to always fail with ENOSYS. Some functions are actually named 1877 something starting with __ and the normal name is an alias. */ 1878#if defined __stub_$2 || defined __stub___$2 1879choke me 1880#endif 1881 1882int 1883main () 1884{ 1885return $2 (); 1886 ; 1887 return 0; 1888} 1889_ACEOF 1890if ac_fn_c_try_link "$LINENO"; then : 1891 eval "$3=yes" 1892else 1893 eval "$3=no" 1894fi 1895rm -f core conftest.err conftest.$ac_objext \ 1896 conftest$ac_exeext conftest.$ac_ext 1897fi 1898eval ac_res=\$$3 1899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1900$as_echo "$ac_res" >&6; } 1901 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1902 1903} # ac_fn_c_check_func 1904 1905# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 1906# ------------------------------------------- 1907# Tests whether TYPE exists after having included INCLUDES, setting cache 1908# variable VAR accordingly. 1909ac_fn_c_check_type () 1910{ 1911 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1913$as_echo_n "checking for $2... " >&6; } 1914if eval "test \"\${$3+set}\"" = set; then : 1915 $as_echo_n "(cached) " >&6 1916else 1917 eval "$3=no" 1918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1919/* end confdefs.h. */ 1920$4 1921int 1922main () 1923{ 1924if (sizeof ($2)) 1925 return 0; 1926 ; 1927 return 0; 1928} 1929_ACEOF 1930if ac_fn_c_try_compile "$LINENO"; then : 1931 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1932/* end confdefs.h. */ 1933$4 1934int 1935main () 1936{ 1937if (sizeof (($2))) 1938 return 0; 1939 ; 1940 return 0; 1941} 1942_ACEOF 1943if ac_fn_c_try_compile "$LINENO"; then : 1944 1945else 1946 eval "$3=yes" 1947fi 1948rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1949fi 1950rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1951fi 1952eval ac_res=\$$3 1953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1954$as_echo "$ac_res" >&6; } 1955 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 1956 1957} # ac_fn_c_check_type 1958 1959# ac_fn_c_compute_int LINENO EXPR VAR INCLUDES 1960# -------------------------------------------- 1961# Tries to find the compile-time value of EXPR in a program that includes 1962# INCLUDES, setting VAR accordingly. Returns whether the value could be 1963# computed 1964ac_fn_c_compute_int () 1965{ 1966 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1967 if test "$cross_compiling" = yes; then 1968 # Depending upon the size, compute the lo and hi bounds. 1969cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1970/* end confdefs.h. */ 1971$4 1972int 1973main () 1974{ 1975static int test_array [1 - 2 * !(($2) >= 0)]; 1976test_array [0] = 0 1977 1978 ; 1979 return 0; 1980} 1981_ACEOF 1982if ac_fn_c_try_compile "$LINENO"; then : 1983 ac_lo=0 ac_mid=0 1984 while :; do 1985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1986/* end confdefs.h. */ 1987$4 1988int 1989main () 1990{ 1991static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 1992test_array [0] = 0 1993 1994 ; 1995 return 0; 1996} 1997_ACEOF 1998if ac_fn_c_try_compile "$LINENO"; then : 1999 ac_hi=$ac_mid; break 2000else 2001 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2002 if test $ac_lo -le $ac_mid; then 2003 ac_lo= ac_hi= 2004 break 2005 fi 2006 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2007fi 2008rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2009 done 2010else 2011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2012/* end confdefs.h. */ 2013$4 2014int 2015main () 2016{ 2017static int test_array [1 - 2 * !(($2) < 0)]; 2018test_array [0] = 0 2019 2020 ; 2021 return 0; 2022} 2023_ACEOF 2024if ac_fn_c_try_compile "$LINENO"; then : 2025 ac_hi=-1 ac_mid=-1 2026 while :; do 2027 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2028/* end confdefs.h. */ 2029$4 2030int 2031main () 2032{ 2033static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2034test_array [0] = 0 2035 2036 ; 2037 return 0; 2038} 2039_ACEOF 2040if ac_fn_c_try_compile "$LINENO"; then : 2041 ac_lo=$ac_mid; break 2042else 2043 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2044 if test $ac_mid -le $ac_hi; then 2045 ac_lo= ac_hi= 2046 break 2047 fi 2048 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2049fi 2050rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2051 done 2052else 2053 ac_lo= ac_hi= 2054fi 2055rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2056fi 2057rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2058# Binary search between lo and hi bounds. 2059while test "x$ac_lo" != "x$ac_hi"; do 2060 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$4 2064int 2065main () 2066{ 2067static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2068test_array [0] = 0 2069 2070 ; 2071 return 0; 2072} 2073_ACEOF 2074if ac_fn_c_try_compile "$LINENO"; then : 2075 ac_hi=$ac_mid 2076else 2077 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2078fi 2079rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2080done 2081case $ac_lo in #(( 2082?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2083'') ac_retval=1 ;; 2084esac 2085 else 2086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2087/* end confdefs.h. */ 2088$4 2089static long int longval () { return $2; } 2090static unsigned long int ulongval () { return $2; } 2091#include <stdio.h> 2092#include <stdlib.h> 2093int 2094main () 2095{ 2096 2097 FILE *f = fopen ("conftest.val", "w"); 2098 if (! f) 2099 return 1; 2100 if (($2) < 0) 2101 { 2102 long int i = longval (); 2103 if (i != ($2)) 2104 return 1; 2105 fprintf (f, "%ld", i); 2106 } 2107 else 2108 { 2109 unsigned long int i = ulongval (); 2110 if (i != ($2)) 2111 return 1; 2112 fprintf (f, "%lu", i); 2113 } 2114 /* Do not output a trailing newline, as this causes \r\n confusion 2115 on some platforms. */ 2116 return ferror (f) || fclose (f) != 0; 2117 2118 ; 2119 return 0; 2120} 2121_ACEOF 2122if ac_fn_c_try_run "$LINENO"; then : 2123 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2124else 2125 ac_retval=1 2126fi 2127rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2128 conftest.$ac_objext conftest.beam conftest.$ac_ext 2129rm -f conftest.val 2130 2131 fi 2132 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;} 2133 as_fn_set_status $ac_retval 2134 2135} # ac_fn_c_compute_int 2136cat >config.log <<_ACEOF 2137This file contains any messages produced by compilers while 2138running configure, to aid debugging if configure makes a mistake. 2139 2140It was created by pcp $as_me 0.10, which was 2141generated by GNU Autoconf 2.66. Invocation command line was 2142 2143 $ $0 $@ 2144 2145_ACEOF 2146exec 5>>config.log 2147{ 2148cat <<_ASUNAME 2149## --------- ## 2150## Platform. ## 2151## --------- ## 2152 2153hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2154uname -m = `(uname -m) 2>/dev/null || echo unknown` 2155uname -r = `(uname -r) 2>/dev/null || echo unknown` 2156uname -s = `(uname -s) 2>/dev/null || echo unknown` 2157uname -v = `(uname -v) 2>/dev/null || echo unknown` 2158 2159/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2160/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2161 2162/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2163/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2164/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2165/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2166/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2167/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2168/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2169 2170_ASUNAME 2171 2172as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2173for as_dir in $PATH 2174do 2175 IFS=$as_save_IFS 2176 test -z "$as_dir" && as_dir=. 2177 $as_echo "PATH: $as_dir" 2178 done 2179IFS=$as_save_IFS 2180 2181} >&5 2182 2183cat >&5 <<_ACEOF 2184 2185 2186## ----------- ## 2187## Core tests. ## 2188## ----------- ## 2189 2190_ACEOF 2191 2192 2193# Keep a trace of the command line. 2194# Strip out --no-create and --no-recursion so they do not pile up. 2195# Strip out --silent because we don't want to record it for future runs. 2196# Also quote any args containing shell meta-characters. 2197# Make two passes to allow for proper duplicate-argument suppression. 2198ac_configure_args= 2199ac_configure_args0= 2200ac_configure_args1= 2201ac_must_keep_next=false 2202for ac_pass in 1 2 2203do 2204 for ac_arg 2205 do 2206 case $ac_arg in 2207 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2208 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2209 | -silent | --silent | --silen | --sile | --sil) 2210 continue ;; 2211 *\'*) 2212 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2213 esac 2214 case $ac_pass in 2215 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2216 2) 2217 as_fn_append ac_configure_args1 " '$ac_arg'" 2218 if test $ac_must_keep_next = true; then 2219 ac_must_keep_next=false # Got value, back to normal. 2220 else 2221 case $ac_arg in 2222 *=* | --config-cache | -C | -disable-* | --disable-* \ 2223 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2224 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2225 | -with-* | --with-* | -without-* | --without-* | --x) 2226 case "$ac_configure_args0 " in 2227 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2228 esac 2229 ;; 2230 -* ) ac_must_keep_next=true ;; 2231 esac 2232 fi 2233 as_fn_append ac_configure_args " '$ac_arg'" 2234 ;; 2235 esac 2236 done 2237done 2238{ ac_configure_args0=; unset ac_configure_args0;} 2239{ ac_configure_args1=; unset ac_configure_args1;} 2240 2241# When interrupted or exit'd, cleanup temporary files, and complete 2242# config.log. We remove comments because anyway the quotes in there 2243# would cause problems or look ugly. 2244# WARNING: Use '\'' to represent an apostrophe within the trap. 2245# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2246trap 'exit_status=$? 2247 # Save into config.log some information that might help in debugging. 2248 { 2249 echo 2250 2251 $as_echo "## ---------------- ## 2252## Cache variables. ## 2253## ---------------- ##" 2254 echo 2255 # The following way of writing the cache mishandles newlines in values, 2256( 2257 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2258 eval ac_val=\$$ac_var 2259 case $ac_val in #( 2260 *${as_nl}*) 2261 case $ac_var in #( 2262 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2263$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2264 esac 2265 case $ac_var in #( 2266 _ | IFS | as_nl) ;; #( 2267 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2268 *) { eval $ac_var=; unset $ac_var;} ;; 2269 esac ;; 2270 esac 2271 done 2272 (set) 2>&1 | 2273 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2274 *${as_nl}ac_space=\ *) 2275 sed -n \ 2276 "s/'\''/'\''\\\\'\'''\''/g; 2277 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2278 ;; #( 2279 *) 2280 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2281 ;; 2282 esac | 2283 sort 2284) 2285 echo 2286 2287 $as_echo "## ----------------- ## 2288## Output variables. ## 2289## ----------------- ##" 2290 echo 2291 for ac_var in $ac_subst_vars 2292 do 2293 eval ac_val=\$$ac_var 2294 case $ac_val in 2295 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2296 esac 2297 $as_echo "$ac_var='\''$ac_val'\''" 2298 done | sort 2299 echo 2300 2301 if test -n "$ac_subst_files"; then 2302 $as_echo "## ------------------- ## 2303## File substitutions. ## 2304## ------------------- ##" 2305 echo 2306 for ac_var in $ac_subst_files 2307 do 2308 eval ac_val=\$$ac_var 2309 case $ac_val in 2310 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2311 esac 2312 $as_echo "$ac_var='\''$ac_val'\''" 2313 done | sort 2314 echo 2315 fi 2316 2317 if test -s confdefs.h; then 2318 $as_echo "## ----------- ## 2319## confdefs.h. ## 2320## ----------- ##" 2321 echo 2322 cat confdefs.h 2323 echo 2324 fi 2325 test "$ac_signal" != 0 && 2326 $as_echo "$as_me: caught signal $ac_signal" 2327 $as_echo "$as_me: exit $exit_status" 2328 } >&5 2329 rm -f core *.core core.conftest.* && 2330 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2331 exit $exit_status 2332' 0 2333for ac_signal in 1 2 13 15; do 2334 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2335done 2336ac_signal=0 2337 2338# confdefs.h avoids OS command line length limits that DEFS can exceed. 2339rm -f -r conftest* confdefs.h 2340 2341$as_echo "/* confdefs.h */" > confdefs.h 2342 2343# Predefined preprocessor variables. 2344 2345cat >>confdefs.h <<_ACEOF 2346#define PACKAGE_NAME "$PACKAGE_NAME" 2347_ACEOF 2348 2349cat >>confdefs.h <<_ACEOF 2350#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2351_ACEOF 2352 2353cat >>confdefs.h <<_ACEOF 2354#define PACKAGE_VERSION "$PACKAGE_VERSION" 2355_ACEOF 2356 2357cat >>confdefs.h <<_ACEOF 2358#define PACKAGE_STRING "$PACKAGE_STRING" 2359_ACEOF 2360 2361cat >>confdefs.h <<_ACEOF 2362#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2363_ACEOF 2364 2365cat >>confdefs.h <<_ACEOF 2366#define PACKAGE_URL "$PACKAGE_URL" 2367_ACEOF 2368 2369 2370# Let the site file select an alternate cache file if it wants to. 2371# Prefer an explicitly selected file to automatically selected ones. 2372ac_site_file1=NONE 2373ac_site_file2=NONE 2374if test -n "$CONFIG_SITE"; then 2375 # We do not want a PATH search for config.site. 2376 case $CONFIG_SITE in #(( 2377 -*) ac_site_file1=./$CONFIG_SITE;; 2378 */*) ac_site_file1=$CONFIG_SITE;; 2379 *) ac_site_file1=./$CONFIG_SITE;; 2380 esac 2381elif test "x$prefix" != xNONE; then 2382 ac_site_file1=$prefix/share/config.site 2383 ac_site_file2=$prefix/etc/config.site 2384else 2385 ac_site_file1=$ac_default_prefix/share/config.site 2386 ac_site_file2=$ac_default_prefix/etc/config.site 2387fi 2388for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2389do 2390 test "x$ac_site_file" = xNONE && continue 2391 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2392 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2393$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2394 sed 's/^/| /' "$ac_site_file" >&5 2395 . "$ac_site_file" \ 2396 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2397$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2398as_fn_error $? "failed to load site script $ac_site_file 2399See \`config.log' for more details" "$LINENO" 5; } 2400 fi 2401done 2402 2403if test -r "$cache_file"; then 2404 # Some versions of bash will fail to source /dev/null (special files 2405 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2406 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2407 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2408$as_echo "$as_me: loading cache $cache_file" >&6;} 2409 case $cache_file in 2410 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2411 *) . "./$cache_file";; 2412 esac 2413 fi 2414else 2415 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2416$as_echo "$as_me: creating cache $cache_file" >&6;} 2417 >$cache_file 2418fi 2419 2420gt_needs="$gt_needs " 2421as_fn_append ac_header_list " stdlib.h" 2422as_fn_append ac_header_list " unistd.h" 2423as_fn_append ac_header_list " sys/param.h" 2424# Check that the precious variables saved in the cache have kept the same 2425# value. 2426ac_cache_corrupted=false 2427for ac_var in $ac_precious_vars; do 2428 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2429 eval ac_new_set=\$ac_env_${ac_var}_set 2430 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2431 eval ac_new_val=\$ac_env_${ac_var}_value 2432 case $ac_old_set,$ac_new_set in 2433 set,) 2434 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2435$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2436 ac_cache_corrupted=: ;; 2437 ,set) 2438 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2439$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2440 ac_cache_corrupted=: ;; 2441 ,);; 2442 *) 2443 if test "x$ac_old_val" != "x$ac_new_val"; then 2444 # differences in whitespace do not lead to failure. 2445 ac_old_val_w=`echo x $ac_old_val` 2446 ac_new_val_w=`echo x $ac_new_val` 2447 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2448 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2449$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2450 ac_cache_corrupted=: 2451 else 2452 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2453$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2454 eval $ac_var=\$ac_old_val 2455 fi 2456 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2457$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2458 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2459$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2460 fi;; 2461 esac 2462 # Pass precious variables to config.status. 2463 if test "$ac_new_set" = set; then 2464 case $ac_new_val in 2465 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2466 *) ac_arg=$ac_var=$ac_new_val ;; 2467 esac 2468 case " $ac_configure_args " in 2469 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2470 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2471 esac 2472 fi 2473done 2474if $ac_cache_corrupted; then 2475 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2476$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2477 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2478$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2479 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2480fi 2481## -------------------- ## 2482## Main body of script. ## 2483## -------------------- ## 2484 2485ac_ext=c 2486ac_cpp='$CPP $CPPFLAGS' 2487ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2488ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2489ac_compiler_gnu=$ac_cv_c_compiler_gnu 2490 2491 2492 2493>confdefs.h # Kill PACKAGE_ macros 2494 2495 2496am__api_version='1.11' 2497 2498ac_aux_dir= 2499for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2500 if test -f "$ac_dir/install-sh"; then 2501 ac_aux_dir=$ac_dir 2502 ac_install_sh="$ac_aux_dir/install-sh -c" 2503 break 2504 elif test -f "$ac_dir/install.sh"; then 2505 ac_aux_dir=$ac_dir 2506 ac_install_sh="$ac_aux_dir/install.sh -c" 2507 break 2508 elif test -f "$ac_dir/shtool"; then 2509 ac_aux_dir=$ac_dir 2510 ac_install_sh="$ac_aux_dir/shtool install -c" 2511 break 2512 fi 2513done 2514if test -z "$ac_aux_dir"; then 2515 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2516fi 2517 2518# These three variables are undocumented and unsupported, 2519# and are intended to be withdrawn in a future Autoconf release. 2520# They can cause serious problems if a builder's source tree is in a directory 2521# whose full name contains unusual characters. 2522ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2523ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2524ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2525 2526 2527# Find a good install program. We prefer a C program (faster), 2528# so one script is as good as another. But avoid the broken or 2529# incompatible versions: 2530# SysV /etc/install, /usr/sbin/install 2531# SunOS /usr/etc/install 2532# IRIX /sbin/install 2533# AIX /bin/install 2534# AmigaOS /C/install, which installs bootblocks on floppy discs 2535# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2536# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2537# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2538# OS/2's system install, which has a completely different semantic 2539# ./install, which can be erroneously created by make from ./install.sh. 2540# Reject install programs that cannot install multiple files. 2541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2542$as_echo_n "checking for a BSD-compatible install... " >&6; } 2543if test -z "$INSTALL"; then 2544if test "${ac_cv_path_install+set}" = set; then : 2545 $as_echo_n "(cached) " >&6 2546else 2547 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2548for as_dir in $PATH 2549do 2550 IFS=$as_save_IFS 2551 test -z "$as_dir" && as_dir=. 2552 # Account for people who put trailing slashes in PATH elements. 2553case $as_dir/ in #(( 2554 ./ | .// | /[cC]/* | \ 2555 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2556 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2557 /usr/ucb/* ) ;; 2558 *) 2559 # OSF1 and SCO ODT 3.0 have their own names for install. 2560 # Don't use installbsd from OSF since it installs stuff as root 2561 # by default. 2562 for ac_prog in ginstall scoinst install; do 2563 for ac_exec_ext in '' $ac_executable_extensions; do 2564 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then 2565 if test $ac_prog = install && 2566 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2567 # AIX install. It has an incompatible calling convention. 2568 : 2569 elif test $ac_prog = install && 2570 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2571 # program-specific install script used by HP pwplus--don't use. 2572 : 2573 else 2574 rm -rf conftest.one conftest.two conftest.dir 2575 echo one > conftest.one 2576 echo two > conftest.two 2577 mkdir conftest.dir 2578 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2579 test -s conftest.one && test -s conftest.two && 2580 test -s conftest.dir/conftest.one && 2581 test -s conftest.dir/conftest.two 2582 then 2583 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2584 break 3 2585 fi 2586 fi 2587 fi 2588 done 2589 done 2590 ;; 2591esac 2592 2593 done 2594IFS=$as_save_IFS 2595 2596rm -rf conftest.one conftest.two conftest.dir 2597 2598fi 2599 if test "${ac_cv_path_install+set}" = set; then 2600 INSTALL=$ac_cv_path_install 2601 else 2602 # As a last resort, use the slow shell script. Don't cache a 2603 # value for INSTALL within a source directory, because that will 2604 # break other packages using the cache if that directory is 2605 # removed, or if the value is a relative name. 2606 INSTALL=$ac_install_sh 2607 fi 2608fi 2609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 2610$as_echo "$INSTALL" >&6; } 2611 2612# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 2613# It thinks the first close brace ends the variable substitution. 2614test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 2615 2616test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 2617 2618test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 2619 2620{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 2621$as_echo_n "checking whether build environment is sane... " >&6; } 2622# Just in case 2623sleep 1 2624echo timestamp > conftest.file 2625# Reject unsafe characters in $srcdir or the absolute working directory 2626# name. Accept space and tab only in the latter. 2627am_lf=' 2628' 2629case `pwd` in 2630 *[\\\"\#\$\&\'\`$am_lf]*) 2631 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 2632esac 2633case $srcdir in 2634 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 2635 as_fn_error $? "unsafe srcdir value: \`$srcdir'" "$LINENO" 5;; 2636esac 2637 2638# Do `set' in a subshell so we don't clobber the current shell's 2639# arguments. Must try -L first in case configure is actually a 2640# symlink; some systems play weird games with the mod time of symlinks 2641# (eg FreeBSD returns the mod time of the symlink's containing 2642# directory). 2643if ( 2644 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 2645 if test "$*" = "X"; then 2646 # -L didn't work. 2647 set X `ls -t "$srcdir/configure" conftest.file` 2648 fi 2649 rm -f conftest.file 2650 if test "$*" != "X $srcdir/configure conftest.file" \ 2651 && test "$*" != "X conftest.file $srcdir/configure"; then 2652 2653 # If neither matched, then we have a broken ls. This can happen 2654 # if, for instance, CONFIG_SHELL is bash and it inherits a 2655 # broken ls alias from the environment. This has actually 2656 # happened. Such a system could not be considered "sane". 2657 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 2658alias in your environment" "$LINENO" 5 2659 fi 2660 2661 test "$2" = conftest.file 2662 ) 2663then 2664 # Ok. 2665 : 2666else 2667 as_fn_error $? "newly created file is older than distributed files! 2668Check your system clock" "$LINENO" 5 2669fi 2670{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2671$as_echo "yes" >&6; } 2672test "$program_prefix" != NONE && 2673 program_transform_name="s&^&$program_prefix&;$program_transform_name" 2674# Use a double $ so make ignores it. 2675test "$program_suffix" != NONE && 2676 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 2677# Double any \ or $. 2678# By default was `s,x,x', remove it if useless. 2679ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 2680program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 2681 2682# expand $ac_aux_dir to an absolute path 2683am_aux_dir=`cd $ac_aux_dir && pwd` 2684 2685if test x"${MISSING+set}" != xset; then 2686 case $am_aux_dir in 2687 *\ * | *\ *) 2688 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 2689 *) 2690 MISSING="\${SHELL} $am_aux_dir/missing" ;; 2691 esac 2692fi 2693# Use eval to expand $SHELL 2694if eval "$MISSING --run true"; then 2695 am_missing_run="$MISSING --run " 2696else 2697 am_missing_run= 2698 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5 2699$as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} 2700fi 2701 2702if test x"${install_sh}" != xset; then 2703 case $am_aux_dir in 2704 *\ * | *\ *) 2705 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 2706 *) 2707 install_sh="\${SHELL} $am_aux_dir/install-sh" 2708 esac 2709fi 2710 2711# Installed binaries are usually stripped using `strip' when the user 2712# run `make install-strip'. However `strip' might not be the right 2713# tool to use in cross-compilation environments, therefore Automake 2714# will honor the `STRIP' environment variable to overrule this program. 2715if test "$cross_compiling" != no; then 2716 if test -n "$ac_tool_prefix"; then 2717 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 2718set dummy ${ac_tool_prefix}strip; ac_word=$2 2719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2720$as_echo_n "checking for $ac_word... " >&6; } 2721if test "${ac_cv_prog_STRIP+set}" = set; then : 2722 $as_echo_n "(cached) " >&6 2723else 2724 if test -n "$STRIP"; then 2725 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 2726else 2727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2728for as_dir in $PATH 2729do 2730 IFS=$as_save_IFS 2731 test -z "$as_dir" && as_dir=. 2732 for ac_exec_ext in '' $ac_executable_extensions; do 2733 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2734 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 2735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2736 break 2 2737 fi 2738done 2739 done 2740IFS=$as_save_IFS 2741 2742fi 2743fi 2744STRIP=$ac_cv_prog_STRIP 2745if test -n "$STRIP"; then 2746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 2747$as_echo "$STRIP" >&6; } 2748else 2749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2750$as_echo "no" >&6; } 2751fi 2752 2753 2754fi 2755if test -z "$ac_cv_prog_STRIP"; then 2756 ac_ct_STRIP=$STRIP 2757 # Extract the first word of "strip", so it can be a program name with args. 2758set dummy strip; ac_word=$2 2759{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2760$as_echo_n "checking for $ac_word... " >&6; } 2761if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 2762 $as_echo_n "(cached) " >&6 2763else 2764 if test -n "$ac_ct_STRIP"; then 2765 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 2766else 2767as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2768for as_dir in $PATH 2769do 2770 IFS=$as_save_IFS 2771 test -z "$as_dir" && as_dir=. 2772 for ac_exec_ext in '' $ac_executable_extensions; do 2773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2774 ac_cv_prog_ac_ct_STRIP="strip" 2775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2776 break 2 2777 fi 2778done 2779 done 2780IFS=$as_save_IFS 2781 2782fi 2783fi 2784ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 2785if test -n "$ac_ct_STRIP"; then 2786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 2787$as_echo "$ac_ct_STRIP" >&6; } 2788else 2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2790$as_echo "no" >&6; } 2791fi 2792 2793 if test "x$ac_ct_STRIP" = x; then 2794 STRIP=":" 2795 else 2796 case $cross_compiling:$ac_tool_warned in 2797yes:) 2798{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2799$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2800ac_tool_warned=yes ;; 2801esac 2802 STRIP=$ac_ct_STRIP 2803 fi 2804else 2805 STRIP="$ac_cv_prog_STRIP" 2806fi 2807 2808fi 2809INSTALL_STRIP_PROGRAM="install -s -m 555 -s" 2810 2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 2812$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 2813if test -z "$MKDIR_P"; then 2814 if test "${ac_cv_path_mkdir+set}" = set; then : 2815 $as_echo_n "(cached) " >&6 2816else 2817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2818for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 2819do 2820 IFS=$as_save_IFS 2821 test -z "$as_dir" && as_dir=. 2822 for ac_prog in mkdir gmkdir; do 2823 for ac_exec_ext in '' $ac_executable_extensions; do 2824 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } || continue 2825 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 2826 'mkdir (GNU coreutils) '* | \ 2827 'mkdir (coreutils) '* | \ 2828 'mkdir (fileutils) '4.1*) 2829 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 2830 break 3;; 2831 esac 2832 done 2833 done 2834 done 2835IFS=$as_save_IFS 2836 2837fi 2838 2839 test -d ./--version && rmdir ./--version 2840 if test "${ac_cv_path_mkdir+set}" = set; then 2841 MKDIR_P="$ac_cv_path_mkdir -p" 2842 else 2843 # As a last resort, use the slow shell script. Don't cache a 2844 # value for MKDIR_P within a source directory, because that will 2845 # break other packages using the cache if that directory is 2846 # removed, or if the value is a relative name. 2847 MKDIR_P="$ac_install_sh -d" 2848 fi 2849fi 2850{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 2851$as_echo "$MKDIR_P" >&6; } 2852 2853mkdir_p="$MKDIR_P" 2854case $mkdir_p in 2855 [\\/$]* | ?:[\\/]*) ;; 2856 */*) mkdir_p="\$(top_builddir)/$mkdir_p" ;; 2857esac 2858 2859for ac_prog in gawk mawk nawk awk 2860do 2861 # Extract the first word of "$ac_prog", so it can be a program name with args. 2862set dummy $ac_prog; ac_word=$2 2863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2864$as_echo_n "checking for $ac_word... " >&6; } 2865if test "${ac_cv_prog_AWK+set}" = set; then : 2866 $as_echo_n "(cached) " >&6 2867else 2868 if test -n "$AWK"; then 2869 ac_cv_prog_AWK="$AWK" # Let the user override the test. 2870else 2871as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2872for as_dir in $PATH 2873do 2874 IFS=$as_save_IFS 2875 test -z "$as_dir" && as_dir=. 2876 for ac_exec_ext in '' $ac_executable_extensions; do 2877 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 2878 ac_cv_prog_AWK="$ac_prog" 2879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2880 break 2 2881 fi 2882done 2883 done 2884IFS=$as_save_IFS 2885 2886fi 2887fi 2888AWK=$ac_cv_prog_AWK 2889if test -n "$AWK"; then 2890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 2891$as_echo "$AWK" >&6; } 2892else 2893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2894$as_echo "no" >&6; } 2895fi 2896 2897 2898 test -n "$AWK" && break 2899done 2900 2901{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 2902$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 2903set x ${MAKE-make} 2904ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 2905if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\"" = set; then : 2906 $as_echo_n "(cached) " >&6 2907else 2908 cat >conftest.make <<\_ACEOF 2909SHELL = /bin/sh 2910all: 2911 @echo '@@@%%%=$(MAKE)=@@@%%%' 2912_ACEOF 2913# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 2914case `${MAKE-make} -f conftest.make 2>/dev/null` in 2915 *@@@%%%=?*=@@@%%%*) 2916 eval ac_cv_prog_make_${ac_make}_set=yes;; 2917 *) 2918 eval ac_cv_prog_make_${ac_make}_set=no;; 2919esac 2920rm -f conftest.make 2921fi 2922if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 2924$as_echo "yes" >&6; } 2925 SET_MAKE= 2926else 2927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2928$as_echo "no" >&6; } 2929 SET_MAKE="MAKE=${MAKE-make}" 2930fi 2931 2932rm -rf .tst 2>/dev/null 2933mkdir .tst 2>/dev/null 2934if test -d .tst; then 2935 am__leading_dot=. 2936else 2937 am__leading_dot=_ 2938fi 2939rmdir .tst 2>/dev/null 2940 2941if test "`cd $srcdir && pwd`" != "`pwd`"; then 2942 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 2943 # is not polluted with repeated "-I." 2944 am__isrc=' -I$(srcdir)' 2945 # test to see if srcdir already configured 2946 if test -f $srcdir/config.status; then 2947 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 2948 fi 2949fi 2950 2951# test whether we have cygpath 2952if test -z "$CYGPATH_W"; then 2953 if (cygpath --version) >/dev/null 2>/dev/null; then 2954 CYGPATH_W='cygpath -w' 2955 else 2956 CYGPATH_W=echo 2957 fi 2958fi 2959 2960 2961# Define the identity of the package. 2962 PACKAGE='pcp' 2963 VERSION='0.10' 2964 2965 2966# Some tools Automake needs. 2967 2968ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 2969 2970 2971AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 2972 2973 2974AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 2975 2976 2977AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 2978 2979 2980MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 2981 2982# We need awk for the "check" target. The system "awk" is bad on 2983# some platforms. 2984# Always define AMTAR for backward compatibility. 2985 2986AMTAR=${AMTAR-"${am_missing_run}tar"} 2987 2988am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' 2989 2990 2991 2992 2993 2994ac_config_headers="$ac_config_headers config.h" 2995 2996 2997DEPDIR="${am__leading_dot}deps" 2998 2999ac_config_commands="$ac_config_commands depfiles" 3000 3001 3002am_make=${MAKE-make} 3003cat > confinc << 'END' 3004am__doit: 3005 @echo this is the am__doit target 3006.PHONY: am__doit 3007END 3008# If we don't find an include directive, just comment out the code. 3009{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 3010$as_echo_n "checking for style of include used by $am_make... " >&6; } 3011am__include="#" 3012am__quote= 3013_am_result=none 3014# First try GNU make style include. 3015echo "include confinc" > confmf 3016# Ignore all kinds of additional output from `make'. 3017case `$am_make -s -f confmf 2> /dev/null` in #( 3018*the\ am__doit\ target*) 3019 am__include=include 3020 am__quote= 3021 _am_result=GNU 3022 ;; 3023esac 3024# Now try BSD make style include. 3025if test "$am__include" = "#"; then 3026 echo '.include "confinc"' > confmf 3027 case `$am_make -s -f confmf 2> /dev/null` in #( 3028 *the\ am__doit\ target*) 3029 am__include=.include 3030 am__quote="\"" 3031 _am_result=BSD 3032 ;; 3033 esac 3034fi 3035 3036 3037{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 3038$as_echo "$_am_result" >&6; } 3039rm -f confinc confmf 3040 3041# Check whether --enable-dependency-tracking was given. 3042if test "${enable_dependency_tracking+set}" = set; then : 3043 enableval=$enable_dependency_tracking; 3044fi 3045 3046if test "x$enable_dependency_tracking" != xno; then 3047 am_depcomp="$ac_aux_dir/depcomp" 3048 AMDEPBACKSLASH='\' 3049fi 3050 if test "x$enable_dependency_tracking" != xno; then 3051 AMDEP_TRUE= 3052 AMDEP_FALSE='#' 3053else 3054 AMDEP_TRUE='#' 3055 AMDEP_FALSE= 3056fi 3057 3058 3059ac_ext=c 3060ac_cpp='$CPP $CPPFLAGS' 3061ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3062ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3063ac_compiler_gnu=$ac_cv_c_compiler_gnu 3064if test -n "$ac_tool_prefix"; then 3065 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3066set dummy ${ac_tool_prefix}gcc; ac_word=$2 3067{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3068$as_echo_n "checking for $ac_word... " >&6; } 3069if test "${ac_cv_prog_CC+set}" = set; then : 3070 $as_echo_n "(cached) " >&6 3071else 3072 if test -n "$CC"; then 3073 ac_cv_prog_CC="$CC" # Let the user override the test. 3074else 3075as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3076for as_dir in $PATH 3077do 3078 IFS=$as_save_IFS 3079 test -z "$as_dir" && as_dir=. 3080 for ac_exec_ext in '' $ac_executable_extensions; do 3081 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3082 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3083 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3084 break 2 3085 fi 3086done 3087 done 3088IFS=$as_save_IFS 3089 3090fi 3091fi 3092CC=$ac_cv_prog_CC 3093if test -n "$CC"; then 3094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3095$as_echo "$CC" >&6; } 3096else 3097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3098$as_echo "no" >&6; } 3099fi 3100 3101 3102fi 3103if test -z "$ac_cv_prog_CC"; then 3104 ac_ct_CC=$CC 3105 # Extract the first word of "gcc", so it can be a program name with args. 3106set dummy gcc; ac_word=$2 3107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3108$as_echo_n "checking for $ac_word... " >&6; } 3109if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3110 $as_echo_n "(cached) " >&6 3111else 3112 if test -n "$ac_ct_CC"; then 3113 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3114else 3115as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3116for as_dir in $PATH 3117do 3118 IFS=$as_save_IFS 3119 test -z "$as_dir" && as_dir=. 3120 for ac_exec_ext in '' $ac_executable_extensions; do 3121 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3122 ac_cv_prog_ac_ct_CC="gcc" 3123 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3124 break 2 3125 fi 3126done 3127 done 3128IFS=$as_save_IFS 3129 3130fi 3131fi 3132ac_ct_CC=$ac_cv_prog_ac_ct_CC 3133if test -n "$ac_ct_CC"; then 3134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3135$as_echo "$ac_ct_CC" >&6; } 3136else 3137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3138$as_echo "no" >&6; } 3139fi 3140 3141 if test "x$ac_ct_CC" = x; then 3142 CC="" 3143 else 3144 case $cross_compiling:$ac_tool_warned in 3145yes:) 3146{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3147$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3148ac_tool_warned=yes ;; 3149esac 3150 CC=$ac_ct_CC 3151 fi 3152else 3153 CC="$ac_cv_prog_CC" 3154fi 3155 3156if test -z "$CC"; then 3157 if test -n "$ac_tool_prefix"; then 3158 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3159set dummy ${ac_tool_prefix}cc; ac_word=$2 3160{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3161$as_echo_n "checking for $ac_word... " >&6; } 3162if test "${ac_cv_prog_CC+set}" = set; then : 3163 $as_echo_n "(cached) " >&6 3164else 3165 if test -n "$CC"; then 3166 ac_cv_prog_CC="$CC" # Let the user override the test. 3167else 3168as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3169for as_dir in $PATH 3170do 3171 IFS=$as_save_IFS 3172 test -z "$as_dir" && as_dir=. 3173 for ac_exec_ext in '' $ac_executable_extensions; do 3174 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3175 ac_cv_prog_CC="${ac_tool_prefix}cc" 3176 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3177 break 2 3178 fi 3179done 3180 done 3181IFS=$as_save_IFS 3182 3183fi 3184fi 3185CC=$ac_cv_prog_CC 3186if test -n "$CC"; then 3187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3188$as_echo "$CC" >&6; } 3189else 3190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3191$as_echo "no" >&6; } 3192fi 3193 3194 3195 fi 3196fi 3197if test -z "$CC"; then 3198 # Extract the first word of "cc", so it can be a program name with args. 3199set dummy cc; ac_word=$2 3200{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3201$as_echo_n "checking for $ac_word... " >&6; } 3202if test "${ac_cv_prog_CC+set}" = set; then : 3203 $as_echo_n "(cached) " >&6 3204else 3205 if test -n "$CC"; then 3206 ac_cv_prog_CC="$CC" # Let the user override the test. 3207else 3208 ac_prog_rejected=no 3209as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3210for as_dir in $PATH 3211do 3212 IFS=$as_save_IFS 3213 test -z "$as_dir" && as_dir=. 3214 for ac_exec_ext in '' $ac_executable_extensions; do 3215 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3216 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3217 ac_prog_rejected=yes 3218 continue 3219 fi 3220 ac_cv_prog_CC="cc" 3221 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3222 break 2 3223 fi 3224done 3225 done 3226IFS=$as_save_IFS 3227 3228if test $ac_prog_rejected = yes; then 3229 # We found a bogon in the path, so make sure we never use it. 3230 set dummy $ac_cv_prog_CC 3231 shift 3232 if test $# != 0; then 3233 # We chose a different compiler from the bogus one. 3234 # However, it has the same basename, so the bogon will be chosen 3235 # first if we set CC to just the basename; use the full file name. 3236 shift 3237 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3238 fi 3239fi 3240fi 3241fi 3242CC=$ac_cv_prog_CC 3243if test -n "$CC"; then 3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3245$as_echo "$CC" >&6; } 3246else 3247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3248$as_echo "no" >&6; } 3249fi 3250 3251 3252fi 3253if test -z "$CC"; then 3254 if test -n "$ac_tool_prefix"; then 3255 for ac_prog in cl.exe 3256 do 3257 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3258set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3259{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3260$as_echo_n "checking for $ac_word... " >&6; } 3261if test "${ac_cv_prog_CC+set}" = set; then : 3262 $as_echo_n "(cached) " >&6 3263else 3264 if test -n "$CC"; then 3265 ac_cv_prog_CC="$CC" # Let the user override the test. 3266else 3267as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3268for as_dir in $PATH 3269do 3270 IFS=$as_save_IFS 3271 test -z "$as_dir" && as_dir=. 3272 for ac_exec_ext in '' $ac_executable_extensions; do 3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3274 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3276 break 2 3277 fi 3278done 3279 done 3280IFS=$as_save_IFS 3281 3282fi 3283fi 3284CC=$ac_cv_prog_CC 3285if test -n "$CC"; then 3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3287$as_echo "$CC" >&6; } 3288else 3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3290$as_echo "no" >&6; } 3291fi 3292 3293 3294 test -n "$CC" && break 3295 done 3296fi 3297if test -z "$CC"; then 3298 ac_ct_CC=$CC 3299 for ac_prog in cl.exe 3300do 3301 # Extract the first word of "$ac_prog", so it can be a program name with args. 3302set dummy $ac_prog; ac_word=$2 3303{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3304$as_echo_n "checking for $ac_word... " >&6; } 3305if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 3306 $as_echo_n "(cached) " >&6 3307else 3308 if test -n "$ac_ct_CC"; then 3309 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3310else 3311as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3312for as_dir in $PATH 3313do 3314 IFS=$as_save_IFS 3315 test -z "$as_dir" && as_dir=. 3316 for ac_exec_ext in '' $ac_executable_extensions; do 3317 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 3318 ac_cv_prog_ac_ct_CC="$ac_prog" 3319 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3320 break 2 3321 fi 3322done 3323 done 3324IFS=$as_save_IFS 3325 3326fi 3327fi 3328ac_ct_CC=$ac_cv_prog_ac_ct_CC 3329if test -n "$ac_ct_CC"; then 3330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3331$as_echo "$ac_ct_CC" >&6; } 3332else 3333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3334$as_echo "no" >&6; } 3335fi 3336 3337 3338 test -n "$ac_ct_CC" && break 3339done 3340 3341 if test "x$ac_ct_CC" = x; then 3342 CC="" 3343 else 3344 case $cross_compiling:$ac_tool_warned in 3345yes:) 3346{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3347$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3348ac_tool_warned=yes ;; 3349esac 3350 CC=$ac_ct_CC 3351 fi 3352fi 3353 3354fi 3355 3356 3357test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3358$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3359as_fn_error $? "no acceptable C compiler found in \$PATH 3360See \`config.log' for more details" "$LINENO" 5; } 3361 3362# Provide some information about the compiler. 3363$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3364set X $ac_compile 3365ac_compiler=$2 3366for ac_option in --version -v -V -qversion; do 3367 { { ac_try="$ac_compiler $ac_option >&5" 3368case "(($ac_try" in 3369 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3370 *) ac_try_echo=$ac_try;; 3371esac 3372eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3373$as_echo "$ac_try_echo"; } >&5 3374 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3375 ac_status=$? 3376 if test -s conftest.err; then 3377 sed '10a\ 3378... rest of stderr output deleted ... 3379 10q' conftest.err >conftest.er1 3380 cat conftest.er1 >&5 3381 fi 3382 rm -f conftest.er1 conftest.err 3383 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3384 test $ac_status = 0; } 3385done 3386 3387cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3388/* end confdefs.h. */ 3389 3390int 3391main () 3392{ 3393 3394 ; 3395 return 0; 3396} 3397_ACEOF 3398ac_clean_files_save=$ac_clean_files 3399ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3400# Try to create an executable without -o first, disregard a.out. 3401# It will help us diagnose broken compilers, and finding out an intuition 3402# of exeext. 3403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3404$as_echo_n "checking whether the C compiler works... " >&6; } 3405ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3406 3407# The possible output files: 3408ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3409 3410ac_rmfiles= 3411for ac_file in $ac_files 3412do 3413 case $ac_file in 3414 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3415 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3416 esac 3417done 3418rm -f $ac_rmfiles 3419 3420if { { ac_try="$ac_link_default" 3421case "(($ac_try" in 3422 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3423 *) ac_try_echo=$ac_try;; 3424esac 3425eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3426$as_echo "$ac_try_echo"; } >&5 3427 (eval "$ac_link_default") 2>&5 3428 ac_status=$? 3429 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3430 test $ac_status = 0; }; then : 3431 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3432# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3433# in a Makefile. We should not override ac_cv_exeext if it was cached, 3434# so that the user can short-circuit this test for compilers unknown to 3435# Autoconf. 3436for ac_file in $ac_files '' 3437do 3438 test -f "$ac_file" || continue 3439 case $ac_file in 3440 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3441 ;; 3442 [ab].out ) 3443 # We found the default executable, but exeext='' is most 3444 # certainly right. 3445 break;; 3446 *.* ) 3447 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3448 then :; else 3449 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3450 fi 3451 # We set ac_cv_exeext here because the later test for it is not 3452 # safe: cross compilers may not add the suffix if given an `-o' 3453 # argument, so we may need to know it at that point already. 3454 # Even if this section looks crufty: it has the advantage of 3455 # actually working. 3456 break;; 3457 * ) 3458 break;; 3459 esac 3460done 3461test "$ac_cv_exeext" = no && ac_cv_exeext= 3462 3463else 3464 ac_file='' 3465fi 3466if test -z "$ac_file"; then : 3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3468$as_echo "no" >&6; } 3469$as_echo "$as_me: failed program was:" >&5 3470sed 's/^/| /' conftest.$ac_ext >&5 3471 3472{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3473$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3474as_fn_error 77 "C compiler cannot create executables 3475See \`config.log' for more details" "$LINENO" 5; } 3476else 3477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3478$as_echo "yes" >&6; } 3479fi 3480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3481$as_echo_n "checking for C compiler default output file name... " >&6; } 3482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3483$as_echo "$ac_file" >&6; } 3484ac_exeext=$ac_cv_exeext 3485 3486rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3487ac_clean_files=$ac_clean_files_save 3488{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3489$as_echo_n "checking for suffix of executables... " >&6; } 3490if { { ac_try="$ac_link" 3491case "(($ac_try" in 3492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3493 *) ac_try_echo=$ac_try;; 3494esac 3495eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3496$as_echo "$ac_try_echo"; } >&5 3497 (eval "$ac_link") 2>&5 3498 ac_status=$? 3499 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3500 test $ac_status = 0; }; then : 3501 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3502# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3503# work properly (i.e., refer to `conftest.exe'), while it won't with 3504# `rm'. 3505for ac_file in conftest.exe conftest conftest.*; do 3506 test -f "$ac_file" || continue 3507 case $ac_file in 3508 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3509 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3510 break;; 3511 * ) break;; 3512 esac 3513done 3514else 3515 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3516$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3517as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3518See \`config.log' for more details" "$LINENO" 5; } 3519fi 3520rm -f conftest conftest$ac_cv_exeext 3521{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3522$as_echo "$ac_cv_exeext" >&6; } 3523 3524rm -f conftest.$ac_ext 3525EXEEXT=$ac_cv_exeext 3526ac_exeext=$EXEEXT 3527cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3528/* end confdefs.h. */ 3529#include <stdio.h> 3530int 3531main () 3532{ 3533FILE *f = fopen ("conftest.out", "w"); 3534 return ferror (f) || fclose (f) != 0; 3535 3536 ; 3537 return 0; 3538} 3539_ACEOF 3540ac_clean_files="$ac_clean_files conftest.out" 3541# Check that the compiler produces executables we can run. If not, either 3542# the compiler is broken, or we cross compile. 3543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3544$as_echo_n "checking whether we are cross compiling... " >&6; } 3545if test "$cross_compiling" != yes; then 3546 { { ac_try="$ac_link" 3547case "(($ac_try" in 3548 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3549 *) ac_try_echo=$ac_try;; 3550esac 3551eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3552$as_echo "$ac_try_echo"; } >&5 3553 (eval "$ac_link") 2>&5 3554 ac_status=$? 3555 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3556 test $ac_status = 0; } 3557 if { ac_try='./conftest$ac_cv_exeext' 3558 { { case "(($ac_try" in 3559 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3560 *) ac_try_echo=$ac_try;; 3561esac 3562eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3563$as_echo "$ac_try_echo"; } >&5 3564 (eval "$ac_try") 2>&5 3565 ac_status=$? 3566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3567 test $ac_status = 0; }; }; then 3568 cross_compiling=no 3569 else 3570 if test "$cross_compiling" = maybe; then 3571 cross_compiling=yes 3572 else 3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3574$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3575as_fn_error $? "cannot run C compiled programs. 3576If you meant to cross compile, use \`--host'. 3577See \`config.log' for more details" "$LINENO" 5; } 3578 fi 3579 fi 3580fi 3581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3582$as_echo "$cross_compiling" >&6; } 3583 3584rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3585ac_clean_files=$ac_clean_files_save 3586{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3587$as_echo_n "checking for suffix of object files... " >&6; } 3588if test "${ac_cv_objext+set}" = set; then : 3589 $as_echo_n "(cached) " >&6 3590else 3591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3592/* end confdefs.h. */ 3593 3594int 3595main () 3596{ 3597 3598 ; 3599 return 0; 3600} 3601_ACEOF 3602rm -f conftest.o conftest.obj 3603if { { ac_try="$ac_compile" 3604case "(($ac_try" in 3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3606 *) ac_try_echo=$ac_try;; 3607esac 3608eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3609$as_echo "$ac_try_echo"; } >&5 3610 (eval "$ac_compile") 2>&5 3611 ac_status=$? 3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3613 test $ac_status = 0; }; then : 3614 for ac_file in conftest.o conftest.obj conftest.*; do 3615 test -f "$ac_file" || continue; 3616 case $ac_file in 3617 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3618 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3619 break;; 3620 esac 3621done 3622else 3623 $as_echo "$as_me: failed program was:" >&5 3624sed 's/^/| /' conftest.$ac_ext >&5 3625 3626{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3627$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3628as_fn_error $? "cannot compute suffix of object files: cannot compile 3629See \`config.log' for more details" "$LINENO" 5; } 3630fi 3631rm -f conftest.$ac_cv_objext conftest.$ac_ext 3632fi 3633{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3634$as_echo "$ac_cv_objext" >&6; } 3635OBJEXT=$ac_cv_objext 3636ac_objext=$OBJEXT 3637{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3638$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3639if test "${ac_cv_c_compiler_gnu+set}" = set; then : 3640 $as_echo_n "(cached) " >&6 3641else 3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3643/* end confdefs.h. */ 3644 3645int 3646main () 3647{ 3648#ifndef __GNUC__ 3649 choke me 3650#endif 3651 3652 ; 3653 return 0; 3654} 3655_ACEOF 3656if ac_fn_c_try_compile "$LINENO"; then : 3657 ac_compiler_gnu=yes 3658else 3659 ac_compiler_gnu=no 3660fi 3661rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3662ac_cv_c_compiler_gnu=$ac_compiler_gnu 3663 3664fi 3665{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3666$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3667if test $ac_compiler_gnu = yes; then 3668 GCC=yes 3669else 3670 GCC= 3671fi 3672ac_test_CFLAGS=${CFLAGS+set} 3673ac_save_CFLAGS=$CFLAGS 3674{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3675$as_echo_n "checking whether $CC accepts -g... " >&6; } 3676if test "${ac_cv_prog_cc_g+set}" = set; then : 3677 $as_echo_n "(cached) " >&6 3678else 3679 ac_save_c_werror_flag=$ac_c_werror_flag 3680 ac_c_werror_flag=yes 3681 ac_cv_prog_cc_g=no 3682 CFLAGS="-g" 3683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3684/* end confdefs.h. */ 3685 3686int 3687main () 3688{ 3689 3690 ; 3691 return 0; 3692} 3693_ACEOF 3694if ac_fn_c_try_compile "$LINENO"; then : 3695 ac_cv_prog_cc_g=yes 3696else 3697 CFLAGS="" 3698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3699/* end confdefs.h. */ 3700 3701int 3702main () 3703{ 3704 3705 ; 3706 return 0; 3707} 3708_ACEOF 3709if ac_fn_c_try_compile "$LINENO"; then : 3710 3711else 3712 ac_c_werror_flag=$ac_save_c_werror_flag 3713 CFLAGS="-g" 3714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3715/* end confdefs.h. */ 3716 3717int 3718main () 3719{ 3720 3721 ; 3722 return 0; 3723} 3724_ACEOF 3725if ac_fn_c_try_compile "$LINENO"; then : 3726 ac_cv_prog_cc_g=yes 3727fi 3728rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3729fi 3730rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3731fi 3732rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3733 ac_c_werror_flag=$ac_save_c_werror_flag 3734fi 3735{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3736$as_echo "$ac_cv_prog_cc_g" >&6; } 3737if test "$ac_test_CFLAGS" = set; then 3738 CFLAGS=$ac_save_CFLAGS 3739elif test $ac_cv_prog_cc_g = yes; then 3740 if test "$GCC" = yes; then 3741 CFLAGS="-g -O2" 3742 else 3743 CFLAGS="-g" 3744 fi 3745else 3746 if test "$GCC" = yes; then 3747 CFLAGS="-O2" 3748 else 3749 CFLAGS= 3750 fi 3751fi 3752{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3753$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3754if test "${ac_cv_prog_cc_c89+set}" = set; then : 3755 $as_echo_n "(cached) " >&6 3756else 3757 ac_cv_prog_cc_c89=no 3758ac_save_CC=$CC 3759cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3760/* end confdefs.h. */ 3761#include <stdarg.h> 3762#include <stdio.h> 3763#include <sys/types.h> 3764#include <sys/stat.h> 3765/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3766struct buf { int x; }; 3767FILE * (*rcsopen) (struct buf *, struct stat *, int); 3768static char *e (p, i) 3769 char **p; 3770 int i; 3771{ 3772 return p[i]; 3773} 3774static char *f (char * (*g) (char **, int), char **p, ...) 3775{ 3776 char *s; 3777 va_list v; 3778 va_start (v,p); 3779 s = g (p, va_arg (v,int)); 3780 va_end (v); 3781 return s; 3782} 3783 3784/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3785 function prototypes and stuff, but not '\xHH' hex character constants. 3786 These don't provoke an error unfortunately, instead are silently treated 3787 as 'x'. The following induces an error, until -std is added to get 3788 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3789 array size at least. It's necessary to write '\x00'==0 to get something 3790 that's true only with -std. */ 3791int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3792 3793/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3794 inside strings and character constants. */ 3795#define FOO(x) 'x' 3796int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3797 3798int test (int i, double x); 3799struct s1 {int (*f) (int a);}; 3800struct s2 {int (*f) (double a);}; 3801int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3802int argc; 3803char **argv; 3804int 3805main () 3806{ 3807return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3808 ; 3809 return 0; 3810} 3811_ACEOF 3812for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3813 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3814do 3815 CC="$ac_save_CC $ac_arg" 3816 if ac_fn_c_try_compile "$LINENO"; then : 3817 ac_cv_prog_cc_c89=$ac_arg 3818fi 3819rm -f core conftest.err conftest.$ac_objext 3820 test "x$ac_cv_prog_cc_c89" != "xno" && break 3821done 3822rm -f conftest.$ac_ext 3823CC=$ac_save_CC 3824 3825fi 3826# AC_CACHE_VAL 3827case "x$ac_cv_prog_cc_c89" in 3828 x) 3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3830$as_echo "none needed" >&6; } ;; 3831 xno) 3832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3833$as_echo "unsupported" >&6; } ;; 3834 *) 3835 CC="$CC $ac_cv_prog_cc_c89" 3836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3837$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3838esac 3839if test "x$ac_cv_prog_cc_c89" != xno; then : 3840 3841fi 3842 3843ac_ext=c 3844ac_cpp='$CPP $CPPFLAGS' 3845ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3846ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3847ac_compiler_gnu=$ac_cv_c_compiler_gnu 3848 3849depcc="$CC" am_compiler_list= 3850 3851{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 3852$as_echo_n "checking dependency style of $depcc... " >&6; } 3853if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 3854 $as_echo_n "(cached) " >&6 3855else 3856 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 3857 # We make a subdir and do the tests there. Otherwise we can end up 3858 # making bogus files that we don't know about and never remove. For 3859 # instance it was reported that on HP-UX the gcc test will end up 3860 # making a dummy file named `D' -- because `-MD' means `put the output 3861 # in D'. 3862 mkdir conftest.dir 3863 # Copy depcomp to subdir because otherwise we won't find it if we're 3864 # using a relative directory. 3865 cp "$am_depcomp" conftest.dir 3866 cd conftest.dir 3867 # We will build objects and dependencies in a subdirectory because 3868 # it helps to detect inapplicable dependency modes. For instance 3869 # both Tru64's cc and ICC support -MD to output dependencies as a 3870 # side effect of compilation, but ICC will put the dependencies in 3871 # the current directory while Tru64 will put them in the object 3872 # directory. 3873 mkdir sub 3874 3875 am_cv_CC_dependencies_compiler_type=none 3876 if test "$am_compiler_list" = ""; then 3877 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 3878 fi 3879 am__universal=false 3880 case " $depcc " in #( 3881 *\ -arch\ *\ -arch\ *) am__universal=true ;; 3882 esac 3883 3884 for depmode in $am_compiler_list; do 3885 # Setup a source with many dependencies, because some compilers 3886 # like to wrap large dependency lists on column 80 (with \), and 3887 # we should not choose a depcomp mode which is confused by this. 3888 # 3889 # We need to recreate these files for each test, as the compiler may 3890 # overwrite some of them when testing with obscure command lines. 3891 # This happens at least with the AIX C compiler. 3892 : > sub/conftest.c 3893 for i in 1 2 3 4 5 6; do 3894 echo '#include "conftst'$i'.h"' >> sub/conftest.c 3895 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 3896 # Solaris 8's {/usr,}/bin/sh. 3897 touch sub/conftst$i.h 3898 done 3899 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 3900 3901 # We check with `-c' and `-o' for the sake of the "dashmstdout" 3902 # mode. It turns out that the SunPro C++ compiler does not properly 3903 # handle `-M -o', and we need to detect this. Also, some Intel 3904 # versions had trouble with output in subdirs 3905 am__obj=sub/conftest.${OBJEXT-o} 3906 am__minus_obj="-o $am__obj" 3907 case $depmode in 3908 gcc) 3909 # This depmode causes a compiler race in universal mode. 3910 test "$am__universal" = false || continue 3911 ;; 3912 nosideeffect) 3913 # after this tag, mechanisms are not by side-effect, so they'll 3914 # only be used when explicitly requested 3915 if test "x$enable_dependency_tracking" = xyes; then 3916 continue 3917 else 3918 break 3919 fi 3920 ;; 3921 msvisualcpp | msvcmsys) 3922 # This compiler won't grok `-c -o', but also, the minuso test has 3923 # not run yet. These depmodes are late enough in the game, and 3924 # so weak that their functioning should not be impacted. 3925 am__obj=conftest.${OBJEXT-o} 3926 am__minus_obj= 3927 ;; 3928 none) break ;; 3929 esac 3930 if depmode=$depmode \ 3931 source=sub/conftest.c object=$am__obj \ 3932 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 3933 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 3934 >/dev/null 2>conftest.err && 3935 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 3936 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 3937 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 3938 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 3939 # icc doesn't choke on unknown options, it will just issue warnings 3940 # or remarks (even with -Werror). So we grep stderr for any message 3941 # that says an option was ignored or not supported. 3942 # When given -MP, icc 7.0 and 7.1 complain thusly: 3943 # icc: Command line warning: ignoring option '-M'; no argument required 3944 # The diagnosis changed in icc 8.0: 3945 # icc: Command line remark: option '-MP' not supported 3946 if (grep 'ignoring option' conftest.err || 3947 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 3948 am_cv_CC_dependencies_compiler_type=$depmode 3949 break 3950 fi 3951 fi 3952 done 3953 3954 cd .. 3955 rm -rf conftest.dir 3956else 3957 am_cv_CC_dependencies_compiler_type=none 3958fi 3959 3960fi 3961{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 3962$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 3963CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 3964 3965 if 3966 test "x$enable_dependency_tracking" != xno \ 3967 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 3968 am__fastdepCC_TRUE= 3969 am__fastdepCC_FALSE='#' 3970else 3971 am__fastdepCC_TRUE='#' 3972 am__fastdepCC_FALSE= 3973fi 3974 3975 3976 3977ac_ext=c 3978ac_cpp='$CPP $CPPFLAGS' 3979ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3980ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3981ac_compiler_gnu=$ac_cv_c_compiler_gnu 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 3983$as_echo_n "checking how to run the C preprocessor... " >&6; } 3984# On Suns, sometimes $CPP names a directory. 3985if test -n "$CPP" && test -d "$CPP"; then 3986 CPP= 3987fi 3988if test -z "$CPP"; then 3989 if test "${ac_cv_prog_CPP+set}" = set; then : 3990 $as_echo_n "(cached) " >&6 3991else 3992 # Double quotes because CPP needs to be expanded 3993 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 3994 do 3995 ac_preproc_ok=false 3996for ac_c_preproc_warn_flag in '' yes 3997do 3998 # Use a header file that comes with gcc, so configuring glibc 3999 # with a fresh cross-compiler works. 4000 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4001 # <limits.h> exists even on freestanding compilers. 4002 # On the NeXT, cc -E runs the code through the compiler's parser, 4003 # not just through cpp. "Syntax error" is here to catch this case. 4004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4005/* end confdefs.h. */ 4006#ifdef __STDC__ 4007# include <limits.h> 4008#else 4009# include <assert.h> 4010#endif 4011 Syntax error 4012_ACEOF 4013if ac_fn_c_try_cpp "$LINENO"; then : 4014 4015else 4016 # Broken: fails on valid input. 4017continue 4018fi 4019rm -f conftest.err conftest.$ac_ext 4020 4021 # OK, works on sane cases. Now check whether nonexistent headers 4022 # can be detected and how. 4023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4024/* end confdefs.h. */ 4025#include <ac_nonexistent.h> 4026_ACEOF 4027if ac_fn_c_try_cpp "$LINENO"; then : 4028 # Broken: success on invalid input. 4029continue 4030else 4031 # Passes both tests. 4032ac_preproc_ok=: 4033break 4034fi 4035rm -f conftest.err conftest.$ac_ext 4036 4037done 4038# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4039rm -f conftest.err conftest.$ac_ext 4040if $ac_preproc_ok; then : 4041 break 4042fi 4043 4044 done 4045 ac_cv_prog_CPP=$CPP 4046 4047fi 4048 CPP=$ac_cv_prog_CPP 4049else 4050 ac_cv_prog_CPP=$CPP 4051fi 4052{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 4053$as_echo "$CPP" >&6; } 4054ac_preproc_ok=false 4055for ac_c_preproc_warn_flag in '' yes 4056do 4057 # Use a header file that comes with gcc, so configuring glibc 4058 # with a fresh cross-compiler works. 4059 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 4060 # <limits.h> exists even on freestanding compilers. 4061 # On the NeXT, cc -E runs the code through the compiler's parser, 4062 # not just through cpp. "Syntax error" is here to catch this case. 4063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4064/* end confdefs.h. */ 4065#ifdef __STDC__ 4066# include <limits.h> 4067#else 4068# include <assert.h> 4069#endif 4070 Syntax error 4071_ACEOF 4072if ac_fn_c_try_cpp "$LINENO"; then : 4073 4074else 4075 # Broken: fails on valid input. 4076continue 4077fi 4078rm -f conftest.err conftest.$ac_ext 4079 4080 # OK, works on sane cases. Now check whether nonexistent headers 4081 # can be detected and how. 4082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4083/* end confdefs.h. */ 4084#include <ac_nonexistent.h> 4085_ACEOF 4086if ac_fn_c_try_cpp "$LINENO"; then : 4087 # Broken: success on invalid input. 4088continue 4089else 4090 # Passes both tests. 4091ac_preproc_ok=: 4092break 4093fi 4094rm -f conftest.err conftest.$ac_ext 4095 4096done 4097# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 4098rm -f conftest.err conftest.$ac_ext 4099if $ac_preproc_ok; then : 4100 4101else 4102 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4103$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4104as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 4105See \`config.log' for more details" "$LINENO" 5; } 4106fi 4107 4108ac_ext=c 4109ac_cpp='$CPP $CPPFLAGS' 4110ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4111ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4112ac_compiler_gnu=$ac_cv_c_compiler_gnu 4113 4114 4115{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 4116$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 4117if test "${ac_cv_path_GREP+set}" = set; then : 4118 $as_echo_n "(cached) " >&6 4119else 4120 if test -z "$GREP"; then 4121 ac_path_GREP_found=false 4122 # Loop through the user's path and test for each of PROGNAME-LIST 4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4124for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4125do 4126 IFS=$as_save_IFS 4127 test -z "$as_dir" && as_dir=. 4128 for ac_prog in grep ggrep; do 4129 for ac_exec_ext in '' $ac_executable_extensions; do 4130 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 4131 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue 4132# Check for GNU ac_path_GREP and select it if it is found. 4133 # Check for GNU $ac_path_GREP 4134case `"$ac_path_GREP" --version 2>&1` in 4135*GNU*) 4136 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 4137*) 4138 ac_count=0 4139 $as_echo_n 0123456789 >"conftest.in" 4140 while : 4141 do 4142 cat "conftest.in" "conftest.in" >"conftest.tmp" 4143 mv "conftest.tmp" "conftest.in" 4144 cp "conftest.in" "conftest.nl" 4145 $as_echo 'GREP' >> "conftest.nl" 4146 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4147 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4148 as_fn_arith $ac_count + 1 && ac_count=$as_val 4149 if test $ac_count -gt ${ac_path_GREP_max-0}; then 4150 # Best one so far, save it but keep looking for a better one 4151 ac_cv_path_GREP="$ac_path_GREP" 4152 ac_path_GREP_max=$ac_count 4153 fi 4154 # 10*(2^10) chars as input seems more than enough 4155 test $ac_count -gt 10 && break 4156 done 4157 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4158esac 4159 4160 $ac_path_GREP_found && break 3 4161 done 4162 done 4163 done 4164IFS=$as_save_IFS 4165 if test -z "$ac_cv_path_GREP"; then 4166 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4167 fi 4168else 4169 ac_cv_path_GREP=$GREP 4170fi 4171 4172fi 4173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 4174$as_echo "$ac_cv_path_GREP" >&6; } 4175 GREP="$ac_cv_path_GREP" 4176 4177 4178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 4179$as_echo_n "checking for egrep... " >&6; } 4180if test "${ac_cv_path_EGREP+set}" = set; then : 4181 $as_echo_n "(cached) " >&6 4182else 4183 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 4184 then ac_cv_path_EGREP="$GREP -E" 4185 else 4186 if test -z "$EGREP"; then 4187 ac_path_EGREP_found=false 4188 # Loop through the user's path and test for each of PROGNAME-LIST 4189 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4190for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 4191do 4192 IFS=$as_save_IFS 4193 test -z "$as_dir" && as_dir=. 4194 for ac_prog in egrep; do 4195 for ac_exec_ext in '' $ac_executable_extensions; do 4196 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 4197 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue 4198# Check for GNU ac_path_EGREP and select it if it is found. 4199 # Check for GNU $ac_path_EGREP 4200case `"$ac_path_EGREP" --version 2>&1` in 4201*GNU*) 4202 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 4203*) 4204 ac_count=0 4205 $as_echo_n 0123456789 >"conftest.in" 4206 while : 4207 do 4208 cat "conftest.in" "conftest.in" >"conftest.tmp" 4209 mv "conftest.tmp" "conftest.in" 4210 cp "conftest.in" "conftest.nl" 4211 $as_echo 'EGREP' >> "conftest.nl" 4212 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 4213 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 4214 as_fn_arith $ac_count + 1 && ac_count=$as_val 4215 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 4216 # Best one so far, save it but keep looking for a better one 4217 ac_cv_path_EGREP="$ac_path_EGREP" 4218 ac_path_EGREP_max=$ac_count 4219 fi 4220 # 10*(2^10) chars as input seems more than enough 4221 test $ac_count -gt 10 && break 4222 done 4223 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 4224esac 4225 4226 $ac_path_EGREP_found && break 3 4227 done 4228 done 4229 done 4230IFS=$as_save_IFS 4231 if test -z "$ac_cv_path_EGREP"; then 4232 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 4233 fi 4234else 4235 ac_cv_path_EGREP=$EGREP 4236fi 4237 4238 fi 4239fi 4240{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 4241$as_echo "$ac_cv_path_EGREP" >&6; } 4242 EGREP="$ac_cv_path_EGREP" 4243 4244 4245{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 4246$as_echo_n "checking for ANSI C header files... " >&6; } 4247if test "${ac_cv_header_stdc+set}" = set; then : 4248 $as_echo_n "(cached) " >&6 4249else 4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4251/* end confdefs.h. */ 4252#include <stdlib.h> 4253#include <stdarg.h> 4254#include <string.h> 4255#include <float.h> 4256 4257int 4258main () 4259{ 4260 4261 ; 4262 return 0; 4263} 4264_ACEOF 4265if ac_fn_c_try_compile "$LINENO"; then : 4266 ac_cv_header_stdc=yes 4267else 4268 ac_cv_header_stdc=no 4269fi 4270rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4271 4272if test $ac_cv_header_stdc = yes; then 4273 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 4274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4275/* end confdefs.h. */ 4276#include <string.h> 4277 4278_ACEOF 4279if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4280 $EGREP "memchr" >/dev/null 2>&1; then : 4281 4282else 4283 ac_cv_header_stdc=no 4284fi 4285rm -f conftest* 4286 4287fi 4288 4289if test $ac_cv_header_stdc = yes; then 4290 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 4291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4292/* end confdefs.h. */ 4293#include <stdlib.h> 4294 4295_ACEOF 4296if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 4297 $EGREP "free" >/dev/null 2>&1; then : 4298 4299else 4300 ac_cv_header_stdc=no 4301fi 4302rm -f conftest* 4303 4304fi 4305 4306if test $ac_cv_header_stdc = yes; then 4307 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 4308 if test "$cross_compiling" = yes; then : 4309 : 4310else 4311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4312/* end confdefs.h. */ 4313#include <ctype.h> 4314#include <stdlib.h> 4315#if ((' ' & 0x0FF) == 0x020) 4316# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 4317# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 4318#else 4319# define ISLOWER(c) \ 4320 (('a' <= (c) && (c) <= 'i') \ 4321 || ('j' <= (c) && (c) <= 'r') \ 4322 || ('s' <= (c) && (c) <= 'z')) 4323# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 4324#endif 4325 4326#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 4327int 4328main () 4329{ 4330 int i; 4331 for (i = 0; i < 256; i++) 4332 if (XOR (islower (i), ISLOWER (i)) 4333 || toupper (i) != TOUPPER (i)) 4334 return 2; 4335 return 0; 4336} 4337_ACEOF 4338if ac_fn_c_try_run "$LINENO"; then : 4339 4340else 4341 ac_cv_header_stdc=no 4342fi 4343rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 4344 conftest.$ac_objext conftest.beam conftest.$ac_ext 4345fi 4346 4347fi 4348fi 4349{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 4350$as_echo "$ac_cv_header_stdc" >&6; } 4351if test $ac_cv_header_stdc = yes; then 4352 4353$as_echo "#define STDC_HEADERS 1" >>confdefs.h 4354 4355fi 4356 4357# On IRIX 5.3, sys/types and inttypes.h are conflicting. 4358for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 4359 inttypes.h stdint.h unistd.h 4360do : 4361 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 4362ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 4363" 4364if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 4365 cat >>confdefs.h <<_ACEOF 4366#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 4367_ACEOF 4368 4369fi 4370 4371done 4372 4373 4374 4375 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default" 4376if test "x$ac_cv_header_minix_config_h" = x""yes; then : 4377 MINIX=yes 4378else 4379 MINIX= 4380fi 4381 4382 4383 if test "$MINIX" = yes; then 4384 4385$as_echo "#define _POSIX_SOURCE 1" >>confdefs.h 4386 4387 4388$as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h 4389 4390 4391$as_echo "#define _MINIX 1" >>confdefs.h 4392 4393 fi 4394 4395 4396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5 4397$as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; } 4398if test "${ac_cv_safe_to_define___extensions__+set}" = set; then : 4399 $as_echo_n "(cached) " >&6 4400else 4401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4402/* end confdefs.h. */ 4403 4404# define __EXTENSIONS__ 1 4405 $ac_includes_default 4406int 4407main () 4408{ 4409 4410 ; 4411 return 0; 4412} 4413_ACEOF 4414if ac_fn_c_try_compile "$LINENO"; then : 4415 ac_cv_safe_to_define___extensions__=yes 4416else 4417 ac_cv_safe_to_define___extensions__=no 4418fi 4419rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4420fi 4421{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5 4422$as_echo "$ac_cv_safe_to_define___extensions__" >&6; } 4423 test $ac_cv_safe_to_define___extensions__ = yes && 4424 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h 4425 4426 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h 4427 4428 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h 4429 4430 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h 4431 4432 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h 4433 4434 4435ac_ext=c 4436ac_cpp='$CPP $CPPFLAGS' 4437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4439ac_compiler_gnu=$ac_cv_c_compiler_gnu 4440if test -n "$ac_tool_prefix"; then 4441 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 4442set dummy ${ac_tool_prefix}gcc; ac_word=$2 4443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4444$as_echo_n "checking for $ac_word... " >&6; } 4445if test "${ac_cv_prog_CC+set}" = set; then : 4446 $as_echo_n "(cached) " >&6 4447else 4448 if test -n "$CC"; then 4449 ac_cv_prog_CC="$CC" # Let the user override the test. 4450else 4451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4452for as_dir in $PATH 4453do 4454 IFS=$as_save_IFS 4455 test -z "$as_dir" && as_dir=. 4456 for ac_exec_ext in '' $ac_executable_extensions; do 4457 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4458 ac_cv_prog_CC="${ac_tool_prefix}gcc" 4459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4460 break 2 4461 fi 4462done 4463 done 4464IFS=$as_save_IFS 4465 4466fi 4467fi 4468CC=$ac_cv_prog_CC 4469if test -n "$CC"; then 4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4471$as_echo "$CC" >&6; } 4472else 4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4474$as_echo "no" >&6; } 4475fi 4476 4477 4478fi 4479if test -z "$ac_cv_prog_CC"; then 4480 ac_ct_CC=$CC 4481 # Extract the first word of "gcc", so it can be a program name with args. 4482set dummy gcc; ac_word=$2 4483{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4484$as_echo_n "checking for $ac_word... " >&6; } 4485if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4486 $as_echo_n "(cached) " >&6 4487else 4488 if test -n "$ac_ct_CC"; then 4489 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4490else 4491as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4492for as_dir in $PATH 4493do 4494 IFS=$as_save_IFS 4495 test -z "$as_dir" && as_dir=. 4496 for ac_exec_ext in '' $ac_executable_extensions; do 4497 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4498 ac_cv_prog_ac_ct_CC="gcc" 4499 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4500 break 2 4501 fi 4502done 4503 done 4504IFS=$as_save_IFS 4505 4506fi 4507fi 4508ac_ct_CC=$ac_cv_prog_ac_ct_CC 4509if test -n "$ac_ct_CC"; then 4510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4511$as_echo "$ac_ct_CC" >&6; } 4512else 4513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4514$as_echo "no" >&6; } 4515fi 4516 4517 if test "x$ac_ct_CC" = x; then 4518 CC="" 4519 else 4520 case $cross_compiling:$ac_tool_warned in 4521yes:) 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4523$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4524ac_tool_warned=yes ;; 4525esac 4526 CC=$ac_ct_CC 4527 fi 4528else 4529 CC="$ac_cv_prog_CC" 4530fi 4531 4532if test -z "$CC"; then 4533 if test -n "$ac_tool_prefix"; then 4534 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 4535set dummy ${ac_tool_prefix}cc; ac_word=$2 4536{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4537$as_echo_n "checking for $ac_word... " >&6; } 4538if test "${ac_cv_prog_CC+set}" = set; then : 4539 $as_echo_n "(cached) " >&6 4540else 4541 if test -n "$CC"; then 4542 ac_cv_prog_CC="$CC" # Let the user override the test. 4543else 4544as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4545for as_dir in $PATH 4546do 4547 IFS=$as_save_IFS 4548 test -z "$as_dir" && as_dir=. 4549 for ac_exec_ext in '' $ac_executable_extensions; do 4550 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4551 ac_cv_prog_CC="${ac_tool_prefix}cc" 4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4553 break 2 4554 fi 4555done 4556 done 4557IFS=$as_save_IFS 4558 4559fi 4560fi 4561CC=$ac_cv_prog_CC 4562if test -n "$CC"; then 4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4564$as_echo "$CC" >&6; } 4565else 4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4567$as_echo "no" >&6; } 4568fi 4569 4570 4571 fi 4572fi 4573if test -z "$CC"; then 4574 # Extract the first word of "cc", so it can be a program name with args. 4575set dummy cc; ac_word=$2 4576{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4577$as_echo_n "checking for $ac_word... " >&6; } 4578if test "${ac_cv_prog_CC+set}" = set; then : 4579 $as_echo_n "(cached) " >&6 4580else 4581 if test -n "$CC"; then 4582 ac_cv_prog_CC="$CC" # Let the user override the test. 4583else 4584 ac_prog_rejected=no 4585as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4586for as_dir in $PATH 4587do 4588 IFS=$as_save_IFS 4589 test -z "$as_dir" && as_dir=. 4590 for ac_exec_ext in '' $ac_executable_extensions; do 4591 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4592 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 4593 ac_prog_rejected=yes 4594 continue 4595 fi 4596 ac_cv_prog_CC="cc" 4597 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4598 break 2 4599 fi 4600done 4601 done 4602IFS=$as_save_IFS 4603 4604if test $ac_prog_rejected = yes; then 4605 # We found a bogon in the path, so make sure we never use it. 4606 set dummy $ac_cv_prog_CC 4607 shift 4608 if test $# != 0; then 4609 # We chose a different compiler from the bogus one. 4610 # However, it has the same basename, so the bogon will be chosen 4611 # first if we set CC to just the basename; use the full file name. 4612 shift 4613 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 4614 fi 4615fi 4616fi 4617fi 4618CC=$ac_cv_prog_CC 4619if test -n "$CC"; then 4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4621$as_echo "$CC" >&6; } 4622else 4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4624$as_echo "no" >&6; } 4625fi 4626 4627 4628fi 4629if test -z "$CC"; then 4630 if test -n "$ac_tool_prefix"; then 4631 for ac_prog in cl.exe 4632 do 4633 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4634set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4635{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4636$as_echo_n "checking for $ac_word... " >&6; } 4637if test "${ac_cv_prog_CC+set}" = set; then : 4638 $as_echo_n "(cached) " >&6 4639else 4640 if test -n "$CC"; then 4641 ac_cv_prog_CC="$CC" # Let the user override the test. 4642else 4643as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4644for as_dir in $PATH 4645do 4646 IFS=$as_save_IFS 4647 test -z "$as_dir" && as_dir=. 4648 for ac_exec_ext in '' $ac_executable_extensions; do 4649 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4650 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 4651 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4652 break 2 4653 fi 4654done 4655 done 4656IFS=$as_save_IFS 4657 4658fi 4659fi 4660CC=$ac_cv_prog_CC 4661if test -n "$CC"; then 4662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 4663$as_echo "$CC" >&6; } 4664else 4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4666$as_echo "no" >&6; } 4667fi 4668 4669 4670 test -n "$CC" && break 4671 done 4672fi 4673if test -z "$CC"; then 4674 ac_ct_CC=$CC 4675 for ac_prog in cl.exe 4676do 4677 # Extract the first word of "$ac_prog", so it can be a program name with args. 4678set dummy $ac_prog; ac_word=$2 4679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4680$as_echo_n "checking for $ac_word... " >&6; } 4681if test "${ac_cv_prog_ac_ct_CC+set}" = set; then : 4682 $as_echo_n "(cached) " >&6 4683else 4684 if test -n "$ac_ct_CC"; then 4685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 4686else 4687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4688for as_dir in $PATH 4689do 4690 IFS=$as_save_IFS 4691 test -z "$as_dir" && as_dir=. 4692 for ac_exec_ext in '' $ac_executable_extensions; do 4693 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 4694 ac_cv_prog_ac_ct_CC="$ac_prog" 4695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4696 break 2 4697 fi 4698done 4699 done 4700IFS=$as_save_IFS 4701 4702fi 4703fi 4704ac_ct_CC=$ac_cv_prog_ac_ct_CC 4705if test -n "$ac_ct_CC"; then 4706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 4707$as_echo "$ac_ct_CC" >&6; } 4708else 4709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4710$as_echo "no" >&6; } 4711fi 4712 4713 4714 test -n "$ac_ct_CC" && break 4715done 4716 4717 if test "x$ac_ct_CC" = x; then 4718 CC="" 4719 else 4720 case $cross_compiling:$ac_tool_warned in 4721yes:) 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4723$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4724ac_tool_warned=yes ;; 4725esac 4726 CC=$ac_ct_CC 4727 fi 4728fi 4729 4730fi 4731 4732 4733test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4734$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4735as_fn_error $? "no acceptable C compiler found in \$PATH 4736See \`config.log' for more details" "$LINENO" 5; } 4737 4738# Provide some information about the compiler. 4739$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 4740set X $ac_compile 4741ac_compiler=$2 4742for ac_option in --version -v -V -qversion; do 4743 { { ac_try="$ac_compiler $ac_option >&5" 4744case "(($ac_try" in 4745 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4746 *) ac_try_echo=$ac_try;; 4747esac 4748eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4749$as_echo "$ac_try_echo"; } >&5 4750 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4751 ac_status=$? 4752 if test -s conftest.err; then 4753 sed '10a\ 4754... rest of stderr output deleted ... 4755 10q' conftest.err >conftest.er1 4756 cat conftest.er1 >&5 4757 fi 4758 rm -f conftest.er1 conftest.err 4759 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4760 test $ac_status = 0; } 4761done 4762 4763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4764$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4765if test "${ac_cv_c_compiler_gnu+set}" = set; then : 4766 $as_echo_n "(cached) " >&6 4767else 4768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4769/* end confdefs.h. */ 4770 4771int 4772main () 4773{ 4774#ifndef __GNUC__ 4775 choke me 4776#endif 4777 4778 ; 4779 return 0; 4780} 4781_ACEOF 4782if ac_fn_c_try_compile "$LINENO"; then : 4783 ac_compiler_gnu=yes 4784else 4785 ac_compiler_gnu=no 4786fi 4787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4788ac_cv_c_compiler_gnu=$ac_compiler_gnu 4789 4790fi 4791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4792$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4793if test $ac_compiler_gnu = yes; then 4794 GCC=yes 4795else 4796 GCC= 4797fi 4798ac_test_CFLAGS=${CFLAGS+set} 4799ac_save_CFLAGS=$CFLAGS 4800{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4801$as_echo_n "checking whether $CC accepts -g... " >&6; } 4802if test "${ac_cv_prog_cc_g+set}" = set; then : 4803 $as_echo_n "(cached) " >&6 4804else 4805 ac_save_c_werror_flag=$ac_c_werror_flag 4806 ac_c_werror_flag=yes 4807 ac_cv_prog_cc_g=no 4808 CFLAGS="-g" 4809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4810/* end confdefs.h. */ 4811 4812int 4813main () 4814{ 4815 4816 ; 4817 return 0; 4818} 4819_ACEOF 4820if ac_fn_c_try_compile "$LINENO"; then : 4821 ac_cv_prog_cc_g=yes 4822else 4823 CFLAGS="" 4824 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4825/* end confdefs.h. */ 4826 4827int 4828main () 4829{ 4830 4831 ; 4832 return 0; 4833} 4834_ACEOF 4835if ac_fn_c_try_compile "$LINENO"; then : 4836 4837else 4838 ac_c_werror_flag=$ac_save_c_werror_flag 4839 CFLAGS="-g" 4840 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4841/* end confdefs.h. */ 4842 4843int 4844main () 4845{ 4846 4847 ; 4848 return 0; 4849} 4850_ACEOF 4851if ac_fn_c_try_compile "$LINENO"; then : 4852 ac_cv_prog_cc_g=yes 4853fi 4854rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4855fi 4856rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4857fi 4858rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4859 ac_c_werror_flag=$ac_save_c_werror_flag 4860fi 4861{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4862$as_echo "$ac_cv_prog_cc_g" >&6; } 4863if test "$ac_test_CFLAGS" = set; then 4864 CFLAGS=$ac_save_CFLAGS 4865elif test $ac_cv_prog_cc_g = yes; then 4866 if test "$GCC" = yes; then 4867 CFLAGS="-g -O2" 4868 else 4869 CFLAGS="-g" 4870 fi 4871else 4872 if test "$GCC" = yes; then 4873 CFLAGS="-O2" 4874 else 4875 CFLAGS= 4876 fi 4877fi 4878{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4879$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4880if test "${ac_cv_prog_cc_c89+set}" = set; then : 4881 $as_echo_n "(cached) " >&6 4882else 4883 ac_cv_prog_cc_c89=no 4884ac_save_CC=$CC 4885cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4886/* end confdefs.h. */ 4887#include <stdarg.h> 4888#include <stdio.h> 4889#include <sys/types.h> 4890#include <sys/stat.h> 4891/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4892struct buf { int x; }; 4893FILE * (*rcsopen) (struct buf *, struct stat *, int); 4894static char *e (p, i) 4895 char **p; 4896 int i; 4897{ 4898 return p[i]; 4899} 4900static char *f (char * (*g) (char **, int), char **p, ...) 4901{ 4902 char *s; 4903 va_list v; 4904 va_start (v,p); 4905 s = g (p, va_arg (v,int)); 4906 va_end (v); 4907 return s; 4908} 4909 4910/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4911 function prototypes and stuff, but not '\xHH' hex character constants. 4912 These don't provoke an error unfortunately, instead are silently treated 4913 as 'x'. The following induces an error, until -std is added to get 4914 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4915 array size at least. It's necessary to write '\x00'==0 to get something 4916 that's true only with -std. */ 4917int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4918 4919/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4920 inside strings and character constants. */ 4921#define FOO(x) 'x' 4922int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4923 4924int test (int i, double x); 4925struct s1 {int (*f) (int a);}; 4926struct s2 {int (*f) (double a);}; 4927int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4928int argc; 4929char **argv; 4930int 4931main () 4932{ 4933return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4934 ; 4935 return 0; 4936} 4937_ACEOF 4938for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4939 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4940do 4941 CC="$ac_save_CC $ac_arg" 4942 if ac_fn_c_try_compile "$LINENO"; then : 4943 ac_cv_prog_cc_c89=$ac_arg 4944fi 4945rm -f core conftest.err conftest.$ac_objext 4946 test "x$ac_cv_prog_cc_c89" != "xno" && break 4947done 4948rm -f conftest.$ac_ext 4949CC=$ac_save_CC 4950 4951fi 4952# AC_CACHE_VAL 4953case "x$ac_cv_prog_cc_c89" in 4954 x) 4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4956$as_echo "none needed" >&6; } ;; 4957 xno) 4958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4959$as_echo "unsupported" >&6; } ;; 4960 *) 4961 CC="$CC $ac_cv_prog_cc_c89" 4962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4963$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4964esac 4965if test "x$ac_cv_prog_cc_c89" != xno; then : 4966 4967fi 4968 4969ac_ext=c 4970ac_cpp='$CPP $CPPFLAGS' 4971ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4972ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4973ac_compiler_gnu=$ac_cv_c_compiler_gnu 4974 4975depcc="$CC" am_compiler_list= 4976 4977{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4978$as_echo_n "checking dependency style of $depcc... " >&6; } 4979if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then : 4980 $as_echo_n "(cached) " >&6 4981else 4982 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4983 # We make a subdir and do the tests there. Otherwise we can end up 4984 # making bogus files that we don't know about and never remove. For 4985 # instance it was reported that on HP-UX the gcc test will end up 4986 # making a dummy file named `D' -- because `-MD' means `put the output 4987 # in D'. 4988 mkdir conftest.dir 4989 # Copy depcomp to subdir because otherwise we won't find it if we're 4990 # using a relative directory. 4991 cp "$am_depcomp" conftest.dir 4992 cd conftest.dir 4993 # We will build objects and dependencies in a subdirectory because 4994 # it helps to detect inapplicable dependency modes. For instance 4995 # both Tru64's cc and ICC support -MD to output dependencies as a 4996 # side effect of compilation, but ICC will put the dependencies in 4997 # the current directory while Tru64 will put them in the object 4998 # directory. 4999 mkdir sub 5000 5001 am_cv_CC_dependencies_compiler_type=none 5002 if test "$am_compiler_list" = ""; then 5003 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 5004 fi 5005 am__universal=false 5006 case " $depcc " in #( 5007 *\ -arch\ *\ -arch\ *) am__universal=true ;; 5008 esac 5009 5010 for depmode in $am_compiler_list; do 5011 # Setup a source with many dependencies, because some compilers 5012 # like to wrap large dependency lists on column 80 (with \), and 5013 # we should not choose a depcomp mode which is confused by this. 5014 # 5015 # We need to recreate these files for each test, as the compiler may 5016 # overwrite some of them when testing with obscure command lines. 5017 # This happens at least with the AIX C compiler. 5018 : > sub/conftest.c 5019 for i in 1 2 3 4 5 6; do 5020 echo '#include "conftst'$i'.h"' >> sub/conftest.c 5021 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with 5022 # Solaris 8's {/usr,}/bin/sh. 5023 touch sub/conftst$i.h 5024 done 5025 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 5026 5027 # We check with `-c' and `-o' for the sake of the "dashmstdout" 5028 # mode. It turns out that the SunPro C++ compiler does not properly 5029 # handle `-M -o', and we need to detect this. Also, some Intel 5030 # versions had trouble with output in subdirs 5031 am__obj=sub/conftest.${OBJEXT-o} 5032 am__minus_obj="-o $am__obj" 5033 case $depmode in 5034 gcc) 5035 # This depmode causes a compiler race in universal mode. 5036 test "$am__universal" = false || continue 5037 ;; 5038 nosideeffect) 5039 # after this tag, mechanisms are not by side-effect, so they'll 5040 # only be used when explicitly requested 5041 if test "x$enable_dependency_tracking" = xyes; then 5042 continue 5043 else 5044 break 5045 fi 5046 ;; 5047 msvisualcpp | msvcmsys) 5048 # This compiler won't grok `-c -o', but also, the minuso test has 5049 # not run yet. These depmodes are late enough in the game, and 5050 # so weak that their functioning should not be impacted. 5051 am__obj=conftest.${OBJEXT-o} 5052 am__minus_obj= 5053 ;; 5054 none) break ;; 5055 esac 5056 if depmode=$depmode \ 5057 source=sub/conftest.c object=$am__obj \ 5058 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 5059 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 5060 >/dev/null 2>conftest.err && 5061 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 5062 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 5063 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 5064 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 5065 # icc doesn't choke on unknown options, it will just issue warnings 5066 # or remarks (even with -Werror). So we grep stderr for any message 5067 # that says an option was ignored or not supported. 5068 # When given -MP, icc 7.0 and 7.1 complain thusly: 5069 # icc: Command line warning: ignoring option '-M'; no argument required 5070 # The diagnosis changed in icc 8.0: 5071 # icc: Command line remark: option '-MP' not supported 5072 if (grep 'ignoring option' conftest.err || 5073 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 5074 am_cv_CC_dependencies_compiler_type=$depmode 5075 break 5076 fi 5077 fi 5078 done 5079 5080 cd .. 5081 rm -rf conftest.dir 5082else 5083 am_cv_CC_dependencies_compiler_type=none 5084fi 5085 5086fi 5087{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 5088$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 5089CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 5090 5091 if 5092 test "x$enable_dependency_tracking" != xno \ 5093 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 5094 am__fastdepCC_TRUE= 5095 am__fastdepCC_FALSE='#' 5096else 5097 am__fastdepCC_TRUE='#' 5098 am__fastdepCC_FALSE= 5099fi 5100 5101 5102for ac_prog in gawk mawk nawk awk 5103do 5104 # Extract the first word of "$ac_prog", so it can be a program name with args. 5105set dummy $ac_prog; ac_word=$2 5106{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5107$as_echo_n "checking for $ac_word... " >&6; } 5108if test "${ac_cv_prog_AWK+set}" = set; then : 5109 $as_echo_n "(cached) " >&6 5110else 5111 if test -n "$AWK"; then 5112 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5113else 5114as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5115for as_dir in $PATH 5116do 5117 IFS=$as_save_IFS 5118 test -z "$as_dir" && as_dir=. 5119 for ac_exec_ext in '' $ac_executable_extensions; do 5120 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5121 ac_cv_prog_AWK="$ac_prog" 5122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5123 break 2 5124 fi 5125done 5126 done 5127IFS=$as_save_IFS 5128 5129fi 5130fi 5131AWK=$ac_cv_prog_AWK 5132if test -n "$AWK"; then 5133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5134$as_echo "$AWK" >&6; } 5135else 5136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5137$as_echo "no" >&6; } 5138fi 5139 5140 5141 test -n "$AWK" && break 5142done 5143 5144 5145enable_dlopen=yes 5146 5147 5148 5149case `pwd` in 5150 *\ * | *\ *) 5151 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5152$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5153esac 5154 5155 5156 5157macro_version='2.2.10' 5158macro_revision='1.3175' 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172ltmain="$ac_aux_dir/ltmain.sh" 5173 5174# Make sure we can run config.sub. 5175$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5176 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5177 5178{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5179$as_echo_n "checking build system type... " >&6; } 5180if test "${ac_cv_build+set}" = set; then : 5181 $as_echo_n "(cached) " >&6 5182else 5183 ac_build_alias=$build_alias 5184test "x$ac_build_alias" = x && 5185 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5186test "x$ac_build_alias" = x && 5187 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5188ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5189 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5190 5191fi 5192{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5193$as_echo "$ac_cv_build" >&6; } 5194case $ac_cv_build in 5195*-*-*) ;; 5196*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5197esac 5198build=$ac_cv_build 5199ac_save_IFS=$IFS; IFS='-' 5200set x $ac_cv_build 5201shift 5202build_cpu=$1 5203build_vendor=$2 5204shift; shift 5205# Remember, the first character of IFS is used to create $*, 5206# except with old shells: 5207build_os=$* 5208IFS=$ac_save_IFS 5209case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5210 5211 5212{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5213$as_echo_n "checking host system type... " >&6; } 5214if test "${ac_cv_host+set}" = set; then : 5215 $as_echo_n "(cached) " >&6 5216else 5217 if test "x$host_alias" = x; then 5218 ac_cv_host=$ac_cv_build 5219else 5220 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5221 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5222fi 5223 5224fi 5225{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5226$as_echo "$ac_cv_host" >&6; } 5227case $ac_cv_host in 5228*-*-*) ;; 5229*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5230esac 5231host=$ac_cv_host 5232ac_save_IFS=$IFS; IFS='-' 5233set x $ac_cv_host 5234shift 5235host_cpu=$1 5236host_vendor=$2 5237shift; shift 5238# Remember, the first character of IFS is used to create $*, 5239# except with old shells: 5240host_os=$* 5241IFS=$ac_save_IFS 5242case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5243 5244 5245# Backslashify metacharacters that are still active within 5246# double-quoted strings. 5247sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5248 5249# Same as above, but do not quote variable references. 5250double_quote_subst='s/\(["`\\]\)/\\\1/g' 5251 5252# Sed substitution to delay expansion of an escaped shell variable in a 5253# double_quote_subst'ed string. 5254delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5255 5256# Sed substitution to delay expansion of an escaped single quote. 5257delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5258 5259# Sed substitution to avoid accidental globbing in evaled expressions 5260no_glob_subst='s/\*/\\\*/g' 5261 5262ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5263ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5264ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5265 5266{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5267$as_echo_n "checking how to print strings... " >&6; } 5268# Test print first, because it will be a builtin if present. 5269if test "X`print -r -- -n 2>/dev/null`" = X-n && \ 5270 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5271 ECHO='print -r --' 5272elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5273 ECHO='printf %s\n' 5274else 5275 # Use this function as a fallback that always works. 5276 func_fallback_echo () 5277 { 5278 eval 'cat <<_LTECHO_EOF 5279$1 5280_LTECHO_EOF' 5281 } 5282 ECHO='func_fallback_echo' 5283fi 5284 5285# func_echo_all arg... 5286# Invoke $ECHO with all args, space-separated. 5287func_echo_all () 5288{ 5289 $ECHO "" 5290} 5291 5292case "$ECHO" in 5293 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5294$as_echo "printf" >&6; } ;; 5295 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5296$as_echo "print -r" >&6; } ;; 5297 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5298$as_echo "cat" >&6; } ;; 5299esac 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5315$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5316if test "${ac_cv_path_SED+set}" = set; then : 5317 $as_echo_n "(cached) " >&6 5318else 5319 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5320 for ac_i in 1 2 3 4 5 6 7; do 5321 ac_script="$ac_script$as_nl$ac_script" 5322 done 5323 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5324 { ac_script=; unset ac_script;} 5325 if test -z "$SED"; then 5326 ac_path_SED_found=false 5327 # Loop through the user's path and test for each of PROGNAME-LIST 5328 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5329for as_dir in $PATH 5330do 5331 IFS=$as_save_IFS 5332 test -z "$as_dir" && as_dir=. 5333 for ac_prog in sed gsed; do 5334 for ac_exec_ext in '' $ac_executable_extensions; do 5335 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5336 { test -f "$ac_path_SED" && $as_test_x "$ac_path_SED"; } || continue 5337# Check for GNU ac_path_SED and select it if it is found. 5338 # Check for GNU $ac_path_SED 5339case `"$ac_path_SED" --version 2>&1` in 5340*GNU*) 5341 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5342*) 5343 ac_count=0 5344 $as_echo_n 0123456789 >"conftest.in" 5345 while : 5346 do 5347 cat "conftest.in" "conftest.in" >"conftest.tmp" 5348 mv "conftest.tmp" "conftest.in" 5349 cp "conftest.in" "conftest.nl" 5350 $as_echo '' >> "conftest.nl" 5351 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5352 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5353 as_fn_arith $ac_count + 1 && ac_count=$as_val 5354 if test $ac_count -gt ${ac_path_SED_max-0}; then 5355 # Best one so far, save it but keep looking for a better one 5356 ac_cv_path_SED="$ac_path_SED" 5357 ac_path_SED_max=$ac_count 5358 fi 5359 # 10*(2^10) chars as input seems more than enough 5360 test $ac_count -gt 10 && break 5361 done 5362 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5363esac 5364 5365 $ac_path_SED_found && break 3 5366 done 5367 done 5368 done 5369IFS=$as_save_IFS 5370 if test -z "$ac_cv_path_SED"; then 5371 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5372 fi 5373else 5374 ac_cv_path_SED=$SED 5375fi 5376 5377fi 5378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5379$as_echo "$ac_cv_path_SED" >&6; } 5380 SED="$ac_cv_path_SED" 5381 rm -f conftest.sed 5382 5383test -z "$SED" && SED=sed 5384Xsed="$SED -e 1s/^X//" 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5397$as_echo_n "checking for fgrep... " >&6; } 5398if test "${ac_cv_path_FGREP+set}" = set; then : 5399 $as_echo_n "(cached) " >&6 5400else 5401 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5402 then ac_cv_path_FGREP="$GREP -F" 5403 else 5404 if test -z "$FGREP"; then 5405 ac_path_FGREP_found=false 5406 # Loop through the user's path and test for each of PROGNAME-LIST 5407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5408for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5409do 5410 IFS=$as_save_IFS 5411 test -z "$as_dir" && as_dir=. 5412 for ac_prog in fgrep; do 5413 for ac_exec_ext in '' $ac_executable_extensions; do 5414 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5415 { test -f "$ac_path_FGREP" && $as_test_x "$ac_path_FGREP"; } || continue 5416# Check for GNU ac_path_FGREP and select it if it is found. 5417 # Check for GNU $ac_path_FGREP 5418case `"$ac_path_FGREP" --version 2>&1` in 5419*GNU*) 5420 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5421*) 5422 ac_count=0 5423 $as_echo_n 0123456789 >"conftest.in" 5424 while : 5425 do 5426 cat "conftest.in" "conftest.in" >"conftest.tmp" 5427 mv "conftest.tmp" "conftest.in" 5428 cp "conftest.in" "conftest.nl" 5429 $as_echo 'FGREP' >> "conftest.nl" 5430 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5431 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5432 as_fn_arith $ac_count + 1 && ac_count=$as_val 5433 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5434 # Best one so far, save it but keep looking for a better one 5435 ac_cv_path_FGREP="$ac_path_FGREP" 5436 ac_path_FGREP_max=$ac_count 5437 fi 5438 # 10*(2^10) chars as input seems more than enough 5439 test $ac_count -gt 10 && break 5440 done 5441 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5442esac 5443 5444 $ac_path_FGREP_found && break 3 5445 done 5446 done 5447 done 5448IFS=$as_save_IFS 5449 if test -z "$ac_cv_path_FGREP"; then 5450 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5451 fi 5452else 5453 ac_cv_path_FGREP=$FGREP 5454fi 5455 5456 fi 5457fi 5458{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5459$as_echo "$ac_cv_path_FGREP" >&6; } 5460 FGREP="$ac_cv_path_FGREP" 5461 5462 5463test -z "$GREP" && GREP=grep 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483# Check whether --with-gnu-ld was given. 5484if test "${with_gnu_ld+set}" = set; then : 5485 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 5486else 5487 with_gnu_ld=no 5488fi 5489 5490ac_prog=ld 5491if test "$GCC" = yes; then 5492 # Check if gcc -print-prog-name=ld gives a path. 5493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5494$as_echo_n "checking for ld used by $CC... " >&6; } 5495 case $host in 5496 *-*-mingw*) 5497 # gcc leaves a trailing carriage return which upsets mingw 5498 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5499 *) 5500 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5501 esac 5502 case $ac_prog in 5503 # Accept absolute paths. 5504 [\\/]* | ?:[\\/]*) 5505 re_direlt='/[^/][^/]*/\.\./' 5506 # Canonicalize the pathname of ld 5507 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5508 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5509 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5510 done 5511 test -z "$LD" && LD="$ac_prog" 5512 ;; 5513 "") 5514 # If it fails, then pretend we aren't using GCC. 5515 ac_prog=ld 5516 ;; 5517 *) 5518 # If it is relative, then search for the first ld in PATH. 5519 with_gnu_ld=unknown 5520 ;; 5521 esac 5522elif test "$with_gnu_ld" = yes; then 5523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5524$as_echo_n "checking for GNU ld... " >&6; } 5525else 5526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5527$as_echo_n "checking for non-GNU ld... " >&6; } 5528fi 5529if test "${lt_cv_path_LD+set}" = set; then : 5530 $as_echo_n "(cached) " >&6 5531else 5532 if test -z "$LD"; then 5533 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5534 for ac_dir in $PATH; do 5535 IFS="$lt_save_ifs" 5536 test -z "$ac_dir" && ac_dir=. 5537 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5538 lt_cv_path_LD="$ac_dir/$ac_prog" 5539 # Check to see if the program is GNU ld. I'd rather use --version, 5540 # but apparently some variants of GNU ld only accept -v. 5541 # Break only if it was the GNU/non-GNU ld that we prefer. 5542 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 5543 *GNU* | *'with BFD'*) 5544 test "$with_gnu_ld" != no && break 5545 ;; 5546 *) 5547 test "$with_gnu_ld" != yes && break 5548 ;; 5549 esac 5550 fi 5551 done 5552 IFS="$lt_save_ifs" 5553else 5554 lt_cv_path_LD="$LD" # Let the user override the test with a path. 5555fi 5556fi 5557 5558LD="$lt_cv_path_LD" 5559if test -n "$LD"; then 5560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 5561$as_echo "$LD" >&6; } 5562else 5563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5564$as_echo "no" >&6; } 5565fi 5566test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 5567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 5568$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 5569if test "${lt_cv_prog_gnu_ld+set}" = set; then : 5570 $as_echo_n "(cached) " >&6 5571else 5572 # I'd rather use --version here, but apparently some GNU lds only accept -v. 5573case `$LD -v 2>&1 </dev/null` in 5574*GNU* | *'with BFD'*) 5575 lt_cv_prog_gnu_ld=yes 5576 ;; 5577*) 5578 lt_cv_prog_gnu_ld=no 5579 ;; 5580esac 5581fi 5582{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 5583$as_echo "$lt_cv_prog_gnu_ld" >&6; } 5584with_gnu_ld=$lt_cv_prog_gnu_ld 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 5595$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 5596if test "${lt_cv_path_NM+set}" = set; then : 5597 $as_echo_n "(cached) " >&6 5598else 5599 if test -n "$NM"; then 5600 # Let the user override the test. 5601 lt_cv_path_NM="$NM" 5602else 5603 lt_nm_to_check="${ac_tool_prefix}nm" 5604 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 5605 lt_nm_to_check="$lt_nm_to_check nm" 5606 fi 5607 for lt_tmp_nm in $lt_nm_to_check; do 5608 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 5609 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 5610 IFS="$lt_save_ifs" 5611 test -z "$ac_dir" && ac_dir=. 5612 tmp_nm="$ac_dir/$lt_tmp_nm" 5613 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then 5614 # Check to see if the nm accepts a BSD-compat flag. 5615 # Adding the `sed 1q' prevents false positives on HP-UX, which says: 5616 # nm: unknown option "B" ignored 5617 # Tru64's nm complains that /dev/null is an invalid object file 5618 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in 5619 */dev/null* | *'Invalid file or object type'*) 5620 lt_cv_path_NM="$tmp_nm -B" 5621 break 5622 ;; 5623 *) 5624 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 5625 */dev/null*) 5626 lt_cv_path_NM="$tmp_nm -p" 5627 break 5628 ;; 5629 *) 5630 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 5631 continue # so that we can try to find one that supports BSD flags 5632 ;; 5633 esac 5634 ;; 5635 esac 5636 fi 5637 done 5638 IFS="$lt_save_ifs" 5639 done 5640 : ${lt_cv_path_NM=no} 5641fi 5642fi 5643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 5644$as_echo "$lt_cv_path_NM" >&6; } 5645if test "$lt_cv_path_NM" != "no"; then 5646 NM="$lt_cv_path_NM" 5647else 5648 # Didn't find any BSD compatible name lister, look for dumpbin. 5649 if test -n "$DUMPBIN"; then : 5650 # Let the user override the test. 5651 else 5652 if test -n "$ac_tool_prefix"; then 5653 for ac_prog in dumpbin "link -dump" 5654 do 5655 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 5656set dummy $ac_tool_prefix$ac_prog; ac_word=$2 5657{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5658$as_echo_n "checking for $ac_word... " >&6; } 5659if test "${ac_cv_prog_DUMPBIN+set}" = set; then : 5660 $as_echo_n "(cached) " >&6 5661else 5662 if test -n "$DUMPBIN"; then 5663 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 5664else 5665as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5666for as_dir in $PATH 5667do 5668 IFS=$as_save_IFS 5669 test -z "$as_dir" && as_dir=. 5670 for ac_exec_ext in '' $ac_executable_extensions; do 5671 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5672 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 5673 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5674 break 2 5675 fi 5676done 5677 done 5678IFS=$as_save_IFS 5679 5680fi 5681fi 5682DUMPBIN=$ac_cv_prog_DUMPBIN 5683if test -n "$DUMPBIN"; then 5684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 5685$as_echo "$DUMPBIN" >&6; } 5686else 5687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5688$as_echo "no" >&6; } 5689fi 5690 5691 5692 test -n "$DUMPBIN" && break 5693 done 5694fi 5695if test -z "$DUMPBIN"; then 5696 ac_ct_DUMPBIN=$DUMPBIN 5697 for ac_prog in dumpbin "link -dump" 5698do 5699 # Extract the first word of "$ac_prog", so it can be a program name with args. 5700set dummy $ac_prog; ac_word=$2 5701{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5702$as_echo_n "checking for $ac_word... " >&6; } 5703if test "${ac_cv_prog_ac_ct_DUMPBIN+set}" = set; then : 5704 $as_echo_n "(cached) " >&6 5705else 5706 if test -n "$ac_ct_DUMPBIN"; then 5707 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 5708else 5709as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5710for as_dir in $PATH 5711do 5712 IFS=$as_save_IFS 5713 test -z "$as_dir" && as_dir=. 5714 for ac_exec_ext in '' $ac_executable_extensions; do 5715 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 5716 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 5717 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5718 break 2 5719 fi 5720done 5721 done 5722IFS=$as_save_IFS 5723 5724fi 5725fi 5726ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 5727if test -n "$ac_ct_DUMPBIN"; then 5728 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 5729$as_echo "$ac_ct_DUMPBIN" >&6; } 5730else 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5732$as_echo "no" >&6; } 5733fi 5734 5735 5736 test -n "$ac_ct_DUMPBIN" && break 5737done 5738 5739 if test "x$ac_ct_DUMPBIN" = x; then 5740 DUMPBIN=":" 5741 else 5742 case $cross_compiling:$ac_tool_warned in 5743yes:) 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5745$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5746ac_tool_warned=yes ;; 5747esac 5748 DUMPBIN=$ac_ct_DUMPBIN 5749 fi 5750fi 5751 5752 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in 5753 *COFF*) 5754 DUMPBIN="$DUMPBIN -symbols" 5755 ;; 5756 *) 5757 DUMPBIN=: 5758 ;; 5759 esac 5760 fi 5761 5762 if test "$DUMPBIN" != ":"; then 5763 NM="$DUMPBIN" 5764 fi 5765fi 5766test -z "$NM" && NM=nm 5767 5768 5769 5770 5771 5772 5773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 5774$as_echo_n "checking the name lister ($NM) interface... " >&6; } 5775if test "${lt_cv_nm_interface+set}" = set; then : 5776 $as_echo_n "(cached) " >&6 5777else 5778 lt_cv_nm_interface="BSD nm" 5779 echo "int some_variable = 0;" > conftest.$ac_ext 5780 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 5781 (eval "$ac_compile" 2>conftest.err) 5782 cat conftest.err >&5 5783 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 5784 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 5785 cat conftest.err >&5 5786 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 5787 cat conftest.out >&5 5788 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 5789 lt_cv_nm_interface="MS dumpbin" 5790 fi 5791 rm -f conftest* 5792fi 5793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 5794$as_echo "$lt_cv_nm_interface" >&6; } 5795 5796{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 5797$as_echo_n "checking whether ln -s works... " >&6; } 5798LN_S=$as_ln_s 5799if test "$LN_S" = "ln -s"; then 5800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5801$as_echo "yes" >&6; } 5802else 5803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 5804$as_echo "no, using $LN_S" >&6; } 5805fi 5806 5807# find the maximum length of command line arguments 5808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 5809$as_echo_n "checking the maximum length of command line arguments... " >&6; } 5810if test "${lt_cv_sys_max_cmd_len+set}" = set; then : 5811 $as_echo_n "(cached) " >&6 5812else 5813 i=0 5814 teststring="ABCD" 5815 5816 case $build_os in 5817 msdosdjgpp*) 5818 # On DJGPP, this test can blow up pretty badly due to problems in libc 5819 # (any single argument exceeding 2000 bytes causes a buffer overrun 5820 # during glob expansion). Even if it were fixed, the result of this 5821 # check would be larger than it should be. 5822 lt_cv_sys_max_cmd_len=12288; # 12K is about right 5823 ;; 5824 5825 gnu*) 5826 # Under GNU Hurd, this test is not required because there is 5827 # no limit to the length of command line arguments. 5828 # Libtool will interpret -1 as no limit whatsoever 5829 lt_cv_sys_max_cmd_len=-1; 5830 ;; 5831 5832 cygwin* | mingw* | cegcc*) 5833 # On Win9x/ME, this test blows up -- it succeeds, but takes 5834 # about 5 minutes as the teststring grows exponentially. 5835 # Worse, since 9x/ME are not pre-emptively multitasking, 5836 # you end up with a "frozen" computer, even though with patience 5837 # the test eventually succeeds (with a max line length of 256k). 5838 # Instead, let's just punt: use the minimum linelength reported by 5839 # all of the supported platforms: 8192 (on NT/2K/XP). 5840 lt_cv_sys_max_cmd_len=8192; 5841 ;; 5842 5843 mint*) 5844 # On MiNT this can take a long time and run out of memory. 5845 lt_cv_sys_max_cmd_len=8192; 5846 ;; 5847 5848 amigaos*) 5849 # On AmigaOS with pdksh, this test takes hours, literally. 5850 # So we just punt and use a minimum line length of 8192. 5851 lt_cv_sys_max_cmd_len=8192; 5852 ;; 5853 5854 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*) 5855 # This has been around since 386BSD, at least. Likely further. 5856 if test -x /sbin/sysctl; then 5857 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 5858 elif test -x /usr/sbin/sysctl; then 5859 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 5860 else 5861 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 5862 fi 5863 # And add a safety zone 5864 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5865 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5866 ;; 5867 5868 interix*) 5869 # We know the value 262144 and hardcode it with a safety zone (like BSD) 5870 lt_cv_sys_max_cmd_len=196608 5871 ;; 5872 5873 osf*) 5874 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 5875 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 5876 # nice to cause kernel panics so lets avoid the loop below. 5877 # First set a reasonable default. 5878 lt_cv_sys_max_cmd_len=16384 5879 # 5880 if test -x /sbin/sysconfig; then 5881 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 5882 *1*) lt_cv_sys_max_cmd_len=-1 ;; 5883 esac 5884 fi 5885 ;; 5886 sco3.2v5*) 5887 lt_cv_sys_max_cmd_len=102400 5888 ;; 5889 sysv5* | sco5v6* | sysv4.2uw2*) 5890 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 5891 if test -n "$kargmax"; then 5892 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 5893 else 5894 lt_cv_sys_max_cmd_len=32768 5895 fi 5896 ;; 5897 *) 5898 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 5899 if test -n "$lt_cv_sys_max_cmd_len"; then 5900 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 5901 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 5902 else 5903 # Make teststring a little bigger before we do anything with it. 5904 # a 1K string should be a reasonable start. 5905 for i in 1 2 3 4 5 6 7 8 ; do 5906 teststring=$teststring$teststring 5907 done 5908 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 5909 # If test is not a shell built-in, we'll probably end up computing a 5910 # maximum length that is only half of the actual maximum length, but 5911 # we can't tell. 5912 while { test "X"`func_fallback_echo "$teststring$teststring" 2>/dev/null` \ 5913 = "X$teststring$teststring"; } >/dev/null 2>&1 && 5914 test $i != 17 # 1/2 MB should be enough 5915 do 5916 i=`expr $i + 1` 5917 teststring=$teststring$teststring 5918 done 5919 # Only check the string length outside the loop. 5920 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 5921 teststring= 5922 # Add a significant safety factor because C++ compilers can tack on 5923 # massive amounts of additional arguments before passing them to the 5924 # linker. It appears as though 1/2 is a usable value. 5925 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 5926 fi 5927 ;; 5928 esac 5929 5930fi 5931 5932if test -n $lt_cv_sys_max_cmd_len ; then 5933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 5934$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 5935else 5936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 5937$as_echo "none" >&6; } 5938fi 5939max_cmd_len=$lt_cv_sys_max_cmd_len 5940 5941 5942 5943 5944 5945 5946: ${CP="cp -f"} 5947: ${MV="mv -f"} 5948: ${RM="rm -f"} 5949 5950{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5 5951$as_echo_n "checking whether the shell understands some XSI constructs... " >&6; } 5952# Try some XSI features 5953xsi_shell=no 5954( _lt_dummy="a/b/c" 5955 test "${_lt_dummy##*/},${_lt_dummy%/*},"${_lt_dummy%"$_lt_dummy"}, \ 5956 = c,a/b,, \ 5957 && eval 'test $(( 1 + 1 )) -eq 2 \ 5958 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \ 5959 && xsi_shell=yes 5960{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5 5961$as_echo "$xsi_shell" >&6; } 5962 5963 5964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5 5965$as_echo_n "checking whether the shell understands \"+=\"... " >&6; } 5966lt_shell_append=no 5967( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \ 5968 >/dev/null 2>&1 \ 5969 && lt_shell_append=yes 5970{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5 5971$as_echo "$lt_shell_append" >&6; } 5972 5973 5974if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 5975 lt_unset=unset 5976else 5977 lt_unset=false 5978fi 5979 5980 5981 5982 5983 5984# test EBCDIC or ASCII 5985case `echo X|tr X '\101'` in 5986 A) # ASCII based system 5987 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 5988 lt_SP2NL='tr \040 \012' 5989 lt_NL2SP='tr \015\012 \040\040' 5990 ;; 5991 *) # EBCDIC based system 5992 lt_SP2NL='tr \100 \n' 5993 lt_NL2SP='tr \r\n \100\100' 5994 ;; 5995esac 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6006$as_echo_n "checking for $LD option to reload object files... " >&6; } 6007if test "${lt_cv_ld_reload_flag+set}" = set; then : 6008 $as_echo_n "(cached) " >&6 6009else 6010 lt_cv_ld_reload_flag='-r' 6011fi 6012{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6013$as_echo "$lt_cv_ld_reload_flag" >&6; } 6014reload_flag=$lt_cv_ld_reload_flag 6015case $reload_flag in 6016"" | " "*) ;; 6017*) reload_flag=" $reload_flag" ;; 6018esac 6019reload_cmds='$LD$reload_flag -o $output$reload_objs' 6020case $host_os in 6021 darwin*) 6022 if test "$GCC" = yes; then 6023 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs' 6024 else 6025 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6026 fi 6027 ;; 6028esac 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038if test -n "$ac_tool_prefix"; then 6039 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6040set dummy ${ac_tool_prefix}objdump; ac_word=$2 6041{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6042$as_echo_n "checking for $ac_word... " >&6; } 6043if test "${ac_cv_prog_OBJDUMP+set}" = set; then : 6044 $as_echo_n "(cached) " >&6 6045else 6046 if test -n "$OBJDUMP"; then 6047 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6048else 6049as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6050for as_dir in $PATH 6051do 6052 IFS=$as_save_IFS 6053 test -z "$as_dir" && as_dir=. 6054 for ac_exec_ext in '' $ac_executable_extensions; do 6055 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6056 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6057 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6058 break 2 6059 fi 6060done 6061 done 6062IFS=$as_save_IFS 6063 6064fi 6065fi 6066OBJDUMP=$ac_cv_prog_OBJDUMP 6067if test -n "$OBJDUMP"; then 6068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6069$as_echo "$OBJDUMP" >&6; } 6070else 6071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6072$as_echo "no" >&6; } 6073fi 6074 6075 6076fi 6077if test -z "$ac_cv_prog_OBJDUMP"; then 6078 ac_ct_OBJDUMP=$OBJDUMP 6079 # Extract the first word of "objdump", so it can be a program name with args. 6080set dummy objdump; ac_word=$2 6081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6082$as_echo_n "checking for $ac_word... " >&6; } 6083if test "${ac_cv_prog_ac_ct_OBJDUMP+set}" = set; then : 6084 $as_echo_n "(cached) " >&6 6085else 6086 if test -n "$ac_ct_OBJDUMP"; then 6087 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6088else 6089as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6090for as_dir in $PATH 6091do 6092 IFS=$as_save_IFS 6093 test -z "$as_dir" && as_dir=. 6094 for ac_exec_ext in '' $ac_executable_extensions; do 6095 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6096 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6098 break 2 6099 fi 6100done 6101 done 6102IFS=$as_save_IFS 6103 6104fi 6105fi 6106ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6107if test -n "$ac_ct_OBJDUMP"; then 6108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6109$as_echo "$ac_ct_OBJDUMP" >&6; } 6110else 6111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6112$as_echo "no" >&6; } 6113fi 6114 6115 if test "x$ac_ct_OBJDUMP" = x; then 6116 OBJDUMP="false" 6117 else 6118 case $cross_compiling:$ac_tool_warned in 6119yes:) 6120{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6121$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6122ac_tool_warned=yes ;; 6123esac 6124 OBJDUMP=$ac_ct_OBJDUMP 6125 fi 6126else 6127 OBJDUMP="$ac_cv_prog_OBJDUMP" 6128fi 6129 6130test -z "$OBJDUMP" && OBJDUMP=objdump 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6141$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6142if test "${lt_cv_deplibs_check_method+set}" = set; then : 6143 $as_echo_n "(cached) " >&6 6144else 6145 lt_cv_file_magic_cmd='$MAGIC_CMD' 6146lt_cv_file_magic_test_file= 6147lt_cv_deplibs_check_method='unknown' 6148# Need to set the preceding variable on all platforms that support 6149# interlibrary dependencies. 6150# 'none' -- dependencies not supported. 6151# `unknown' -- same as none, but documents that we really don't know. 6152# 'pass_all' -- all dependencies passed with no checks. 6153# 'test_compile' -- check by making test program. 6154# 'file_magic [[regex]]' -- check by looking for files in library path 6155# which responds to the $file_magic_cmd with a given extended regex. 6156# If you have `file' or equivalent on your system and you're not sure 6157# whether `pass_all' will *always* work, you probably want this one. 6158 6159case $host_os in 6160aix[4-9]*) 6161 lt_cv_deplibs_check_method=pass_all 6162 ;; 6163 6164beos*) 6165 lt_cv_deplibs_check_method=pass_all 6166 ;; 6167 6168bsdi[45]*) 6169 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6170 lt_cv_file_magic_cmd='/usr/bin/file -L' 6171 lt_cv_file_magic_test_file=/shlib/libc.so 6172 ;; 6173 6174cygwin*) 6175 # func_win32_libid is a shell function defined in ltmain.sh 6176 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6177 lt_cv_file_magic_cmd='func_win32_libid' 6178 ;; 6179 6180mingw* | pw32*) 6181 # Base MSYS/MinGW do not provide the 'file' command needed by 6182 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6183 # unless we find 'file', for example because we are cross-compiling. 6184 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin. 6185 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then 6186 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6187 lt_cv_file_magic_cmd='func_win32_libid' 6188 else 6189 # Keep this pattern in sync with the one in func_win32_libid. 6190 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6191 lt_cv_file_magic_cmd='$OBJDUMP -f' 6192 fi 6193 ;; 6194 6195cegcc*) 6196 # use the weaker test based on 'objdump'. See mingw*. 6197 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6198 lt_cv_file_magic_cmd='$OBJDUMP -f' 6199 ;; 6200 6201darwin* | rhapsody*) 6202 lt_cv_deplibs_check_method=pass_all 6203 ;; 6204 6205freebsd* | dragonfly*) 6206 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6207 case $host_cpu in 6208 i*86 ) 6209 # Not sure whether the presence of OpenBSD here was a mistake. 6210 # Let's accept both of them until this is cleared up. 6211 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6212 lt_cv_file_magic_cmd=/usr/bin/file 6213 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6214 ;; 6215 esac 6216 else 6217 lt_cv_deplibs_check_method=pass_all 6218 fi 6219 ;; 6220 6221gnu*) 6222 lt_cv_deplibs_check_method=pass_all 6223 ;; 6224 6225haiku*) 6226 lt_cv_deplibs_check_method=pass_all 6227 ;; 6228 6229hpux10.20* | hpux11*) 6230 lt_cv_file_magic_cmd=/usr/bin/file 6231 case $host_cpu in 6232 ia64*) 6233 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6234 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6235 ;; 6236 hppa*64*) 6237 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]' 6238 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6239 ;; 6240 *) 6241 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6242 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6243 ;; 6244 esac 6245 ;; 6246 6247interix[3-9]*) 6248 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6249 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6250 ;; 6251 6252irix5* | irix6* | nonstopux*) 6253 case $LD in 6254 *-32|*"-32 ") libmagic=32-bit;; 6255 *-n32|*"-n32 ") libmagic=N32;; 6256 *-64|*"-64 ") libmagic=64-bit;; 6257 *) libmagic=never-match;; 6258 esac 6259 lt_cv_deplibs_check_method=pass_all 6260 ;; 6261 6262# This must be Linux ELF. 6263linux* | k*bsd*-gnu | kopensolaris*-gnu) 6264 lt_cv_deplibs_check_method=pass_all 6265 ;; 6266 6267netbsd*) 6268 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6269 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6270 else 6271 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6272 fi 6273 ;; 6274 6275newos6*) 6276 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6277 lt_cv_file_magic_cmd=/usr/bin/file 6278 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6279 ;; 6280 6281*nto* | *qnx*) 6282 lt_cv_deplibs_check_method=pass_all 6283 ;; 6284 6285openbsd*) 6286 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 6287 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6288 else 6289 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6290 fi 6291 ;; 6292 6293osf3* | osf4* | osf5*) 6294 lt_cv_deplibs_check_method=pass_all 6295 ;; 6296 6297rdos*) 6298 lt_cv_deplibs_check_method=pass_all 6299 ;; 6300 6301solaris*) 6302 lt_cv_deplibs_check_method=pass_all 6303 ;; 6304 6305sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6306 lt_cv_deplibs_check_method=pass_all 6307 ;; 6308 6309sysv4 | sysv4.3*) 6310 case $host_vendor in 6311 motorola) 6312 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]' 6313 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6314 ;; 6315 ncr) 6316 lt_cv_deplibs_check_method=pass_all 6317 ;; 6318 sequent) 6319 lt_cv_file_magic_cmd='/bin/file' 6320 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6321 ;; 6322 sni) 6323 lt_cv_file_magic_cmd='/bin/file' 6324 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6325 lt_cv_file_magic_test_file=/lib/libc.so 6326 ;; 6327 siemens) 6328 lt_cv_deplibs_check_method=pass_all 6329 ;; 6330 pc) 6331 lt_cv_deplibs_check_method=pass_all 6332 ;; 6333 esac 6334 ;; 6335 6336tpf*) 6337 lt_cv_deplibs_check_method=pass_all 6338 ;; 6339esac 6340 6341fi 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6343$as_echo "$lt_cv_deplibs_check_method" >&6; } 6344file_magic_cmd=$lt_cv_file_magic_cmd 6345deplibs_check_method=$lt_cv_deplibs_check_method 6346test -z "$deplibs_check_method" && deplibs_check_method=unknown 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359if test -n "$ac_tool_prefix"; then 6360 # Extract the first word of "${ac_tool_prefix}ar", so it can be a program name with args. 6361set dummy ${ac_tool_prefix}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_AR+set}" = set; then : 6365 $as_echo_n "(cached) " >&6 6366else 6367 if test -n "$AR"; then 6368 ac_cv_prog_AR="$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_AR="${ac_tool_prefix}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 6387AR=$ac_cv_prog_AR 6388if test -n "$AR"; then 6389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 6390$as_echo "$AR" >&6; } 6391else 6392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6393$as_echo "no" >&6; } 6394fi 6395 6396 6397fi 6398if test -z "$ac_cv_prog_AR"; then 6399 ac_ct_AR=$AR 6400 # Extract the first word of "ar", so it can be a program name with args. 6401set dummy ar; ac_word=$2 6402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6403$as_echo_n "checking for $ac_word... " >&6; } 6404if test "${ac_cv_prog_ac_ct_AR+set}" = set; then : 6405 $as_echo_n "(cached) " >&6 6406else 6407 if test -n "$ac_ct_AR"; then 6408 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 6409else 6410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6411for as_dir in $PATH 6412do 6413 IFS=$as_save_IFS 6414 test -z "$as_dir" && as_dir=. 6415 for ac_exec_ext in '' $ac_executable_extensions; do 6416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6417 ac_cv_prog_ac_ct_AR="ar" 6418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6419 break 2 6420 fi 6421done 6422 done 6423IFS=$as_save_IFS 6424 6425fi 6426fi 6427ac_ct_AR=$ac_cv_prog_ac_ct_AR 6428if test -n "$ac_ct_AR"; then 6429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 6430$as_echo "$ac_ct_AR" >&6; } 6431else 6432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6433$as_echo "no" >&6; } 6434fi 6435 6436 if test "x$ac_ct_AR" = x; then 6437 AR="false" 6438 else 6439 case $cross_compiling:$ac_tool_warned in 6440yes:) 6441{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6442$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6443ac_tool_warned=yes ;; 6444esac 6445 AR=$ac_ct_AR 6446 fi 6447else 6448 AR="$ac_cv_prog_AR" 6449fi 6450 6451test -z "$AR" && AR=ar 6452test -z "$AR_FLAGS" && AR_FLAGS=cru 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464if test -n "$ac_tool_prefix"; then 6465 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 6466set dummy ${ac_tool_prefix}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_STRIP+set}" = set; then : 6470 $as_echo_n "(cached) " >&6 6471else 6472 if test -n "$STRIP"; then 6473 ac_cv_prog_STRIP="$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_STRIP="${ac_tool_prefix}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 6492STRIP=$ac_cv_prog_STRIP 6493if test -n "$STRIP"; then 6494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 6495$as_echo "$STRIP" >&6; } 6496else 6497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6498$as_echo "no" >&6; } 6499fi 6500 6501 6502fi 6503if test -z "$ac_cv_prog_STRIP"; then 6504 ac_ct_STRIP=$STRIP 6505 # Extract the first word of "strip", so it can be a program name with args. 6506set dummy strip; ac_word=$2 6507{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6508$as_echo_n "checking for $ac_word... " >&6; } 6509if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then : 6510 $as_echo_n "(cached) " >&6 6511else 6512 if test -n "$ac_ct_STRIP"; then 6513 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 6514else 6515as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6516for as_dir in $PATH 6517do 6518 IFS=$as_save_IFS 6519 test -z "$as_dir" && as_dir=. 6520 for ac_exec_ext in '' $ac_executable_extensions; do 6521 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6522 ac_cv_prog_ac_ct_STRIP="strip" 6523 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6524 break 2 6525 fi 6526done 6527 done 6528IFS=$as_save_IFS 6529 6530fi 6531fi 6532ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 6533if test -n "$ac_ct_STRIP"; then 6534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 6535$as_echo "$ac_ct_STRIP" >&6; } 6536else 6537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6538$as_echo "no" >&6; } 6539fi 6540 6541 if test "x$ac_ct_STRIP" = x; then 6542 STRIP=":" 6543 else 6544 case $cross_compiling:$ac_tool_warned in 6545yes:) 6546{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6547$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6548ac_tool_warned=yes ;; 6549esac 6550 STRIP=$ac_ct_STRIP 6551 fi 6552else 6553 STRIP="$ac_cv_prog_STRIP" 6554fi 6555 6556test -z "$STRIP" && STRIP=: 6557 6558 6559 6560 6561 6562 6563if test -n "$ac_tool_prefix"; then 6564 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 6565set dummy ${ac_tool_prefix}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_RANLIB+set}" = set; then : 6569 $as_echo_n "(cached) " >&6 6570else 6571 if test -n "$RANLIB"; then 6572 ac_cv_prog_RANLIB="$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_RANLIB="${ac_tool_prefix}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 6591RANLIB=$ac_cv_prog_RANLIB 6592if test -n "$RANLIB"; then 6593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 6594$as_echo "$RANLIB" >&6; } 6595else 6596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6597$as_echo "no" >&6; } 6598fi 6599 6600 6601fi 6602if test -z "$ac_cv_prog_RANLIB"; then 6603 ac_ct_RANLIB=$RANLIB 6604 # Extract the first word of "ranlib", so it can be a program name with args. 6605set dummy ranlib; ac_word=$2 6606{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6607$as_echo_n "checking for $ac_word... " >&6; } 6608if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 6609 $as_echo_n "(cached) " >&6 6610else 6611 if test -n "$ac_ct_RANLIB"; then 6612 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 6613else 6614as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6615for as_dir in $PATH 6616do 6617 IFS=$as_save_IFS 6618 test -z "$as_dir" && as_dir=. 6619 for ac_exec_ext in '' $ac_executable_extensions; do 6620 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 6621 ac_cv_prog_ac_ct_RANLIB="ranlib" 6622 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6623 break 2 6624 fi 6625done 6626 done 6627IFS=$as_save_IFS 6628 6629fi 6630fi 6631ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 6632if test -n "$ac_ct_RANLIB"; then 6633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 6634$as_echo "$ac_ct_RANLIB" >&6; } 6635else 6636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6637$as_echo "no" >&6; } 6638fi 6639 6640 if test "x$ac_ct_RANLIB" = x; then 6641 RANLIB=":" 6642 else 6643 case $cross_compiling:$ac_tool_warned in 6644yes:) 6645{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6646$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6647ac_tool_warned=yes ;; 6648esac 6649 RANLIB=$ac_ct_RANLIB 6650 fi 6651else 6652 RANLIB="$ac_cv_prog_RANLIB" 6653fi 6654 6655test -z "$RANLIB" && RANLIB=: 6656 6657 6658 6659 6660 6661 6662# Determine commands to create old-style static archives. 6663old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 6664old_postinstall_cmds='chmod 644 $oldlib' 6665old_postuninstall_cmds= 6666 6667if test -n "$RANLIB"; then 6668 case $host_os in 6669 openbsd*) 6670 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$oldlib" 6671 ;; 6672 *) 6673 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$oldlib" 6674 ;; 6675 esac 6676 old_archive_cmds="$old_archive_cmds~\$RANLIB \$oldlib" 6677fi 6678 6679case $host_os in 6680 darwin*) 6681 lock_old_archive_extraction=yes ;; 6682 *) 6683 lock_old_archive_extraction=no ;; 6684esac 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724# If no C compiler was specified, use CC. 6725LTCC=${LTCC-"$CC"} 6726 6727# If no C compiler flags were specified, use CFLAGS. 6728LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 6729 6730# Allow CC to be a program name with arguments. 6731compiler=$CC 6732 6733 6734# Check for command to grab the raw symbol name followed by C symbol from nm. 6735{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 6736$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 6737if test "${lt_cv_sys_global_symbol_pipe+set}" = set; then : 6738 $as_echo_n "(cached) " >&6 6739else 6740 6741# These are sane defaults that work on at least a few old systems. 6742# [They come from Ultrix. What could be older than Ultrix?!! ;)] 6743 6744# Character class describing NM global symbol codes. 6745symcode='[BCDEGRST]' 6746 6747# Regexp to match symbols that can be accessed directly from C. 6748sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 6749 6750# Define system-specific variables. 6751case $host_os in 6752aix*) 6753 symcode='[BCDT]' 6754 ;; 6755cygwin* | mingw* | pw32* | cegcc*) 6756 symcode='[ABCDGISTW]' 6757 ;; 6758hpux*) 6759 if test "$host_cpu" = ia64; then 6760 symcode='[ABCDEGRST]' 6761 fi 6762 ;; 6763irix* | nonstopux*) 6764 symcode='[BCDEGRST]' 6765 ;; 6766osf*) 6767 symcode='[BCDEGQRST]' 6768 ;; 6769solaris*) 6770 symcode='[BDRT]' 6771 ;; 6772sco3.2v5*) 6773 symcode='[DT]' 6774 ;; 6775sysv4.2uw2*) 6776 symcode='[DT]' 6777 ;; 6778sysv5* | sco5v6* | unixware* | OpenUNIX*) 6779 symcode='[ABDT]' 6780 ;; 6781sysv4) 6782 symcode='[DFNSTU]' 6783 ;; 6784esac 6785 6786# If we're using GNU nm, then use its standard symbol codes. 6787case `$NM -V 2>&1` in 6788*GNU* | *'with BFD'*) 6789 symcode='[ABCDGIRSTW]' ;; 6790esac 6791 6792# Transform an extracted symbol line into a proper C declaration. 6793# Some systems (esp. on ia64) link data and code symbols differently, 6794# so use this general approach. 6795lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'" 6796 6797# Transform an extracted symbol line into symbol name and symbol address 6798lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\) $/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'" 6799lt_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'" 6800 6801# Handle CRLF in mingw tool chain 6802opt_cr= 6803case $build_os in 6804mingw*) 6805 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 6806 ;; 6807esac 6808 6809# Try without a prefix underscore, then with it. 6810for ac_symprfx in "" "_"; do 6811 6812 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 6813 symxfrm="\\1 $ac_symprfx\\2 \\2" 6814 6815 # Write the raw and C identifiers. 6816 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 6817 # Fake it for dumpbin and say T for any non-static function 6818 # and D for any global variable. 6819 # Also find C++ and __fastcall symbols from MSVC++, 6820 # which start with @ or ?. 6821 lt_cv_sys_global_symbol_pipe="$AWK '"\ 6822" {last_section=section; section=\$ 3};"\ 6823" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 6824" \$ 0!~/External *\|/{next};"\ 6825" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 6826" {if(hide[section]) next};"\ 6827" {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\ 6828" {split(\$ 0, a, /\||\r/); split(a[2], s)};"\ 6829" s[1]~/^[@?]/{print s[1], s[1]; next};"\ 6830" s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\ 6831" ' prfx=^$ac_symprfx" 6832 else 6833 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 6834 fi 6835 6836 # Check to see that the pipe works correctly. 6837 pipe_works=no 6838 6839 rm -f conftest* 6840 cat > conftest.$ac_ext <<_LT_EOF 6841#ifdef __cplusplus 6842extern "C" { 6843#endif 6844char nm_test_var; 6845void nm_test_func(void); 6846void nm_test_func(void){} 6847#ifdef __cplusplus 6848} 6849#endif 6850int main(){nm_test_var='a';nm_test_func();return(0);} 6851_LT_EOF 6852 6853 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6854 (eval $ac_compile) 2>&5 6855 ac_status=$? 6856 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6857 test $ac_status = 0; }; then 6858 # Now try to grab the symbols. 6859 nlist=conftest.nm 6860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 6861 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 6862 ac_status=$? 6863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6864 test $ac_status = 0; } && test -s "$nlist"; then 6865 # Try sorting and uniquifying the output. 6866 if sort "$nlist" | uniq > "$nlist"T; then 6867 mv -f "$nlist"T "$nlist" 6868 else 6869 rm -f "$nlist"T 6870 fi 6871 6872 # Make sure that we snagged all the symbols we need. 6873 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 6874 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 6875 cat <<_LT_EOF > conftest.$ac_ext 6876#ifdef __cplusplus 6877extern "C" { 6878#endif 6879 6880_LT_EOF 6881 # Now generate the symbol file. 6882 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 6883 6884 cat <<_LT_EOF >> conftest.$ac_ext 6885 6886/* The mapping between symbol names and symbols. */ 6887const struct { 6888 const char *name; 6889 void *address; 6890} 6891lt__PROGRAM__LTX_preloaded_symbols[] = 6892{ 6893 { "@PROGRAM@", (void *) 0 }, 6894_LT_EOF 6895 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 6896 cat <<\_LT_EOF >> conftest.$ac_ext 6897 {0, (void *) 0} 6898}; 6899 6900/* This works around a problem in FreeBSD linker */ 6901#ifdef FREEBSD_WORKAROUND 6902static const void *lt_preloaded_setup() { 6903 return lt__PROGRAM__LTX_preloaded_symbols; 6904} 6905#endif 6906 6907#ifdef __cplusplus 6908} 6909#endif 6910_LT_EOF 6911 # Now try linking the two files. 6912 mv conftest.$ac_objext conftstm.$ac_objext 6913 lt_save_LIBS="$LIBS" 6914 lt_save_CFLAGS="$CFLAGS" 6915 LIBS="conftstm.$ac_objext" 6916 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 6917 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 6918 (eval $ac_link) 2>&5 6919 ac_status=$? 6920 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6921 test $ac_status = 0; } && test -s conftest${ac_exeext}; then 6922 pipe_works=yes 6923 fi 6924 LIBS="$lt_save_LIBS" 6925 CFLAGS="$lt_save_CFLAGS" 6926 else 6927 echo "cannot find nm_test_func in $nlist" >&5 6928 fi 6929 else 6930 echo "cannot find nm_test_var in $nlist" >&5 6931 fi 6932 else 6933 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 6934 fi 6935 else 6936 echo "$progname: failed program was:" >&5 6937 cat conftest.$ac_ext >&5 6938 fi 6939 rm -rf conftest* conftst* 6940 6941 # Do not use the global_symbol_pipe unless it works. 6942 if test "$pipe_works" = yes; then 6943 break 6944 else 6945 lt_cv_sys_global_symbol_pipe= 6946 fi 6947done 6948 6949fi 6950 6951if test -z "$lt_cv_sys_global_symbol_pipe"; then 6952 lt_cv_sys_global_symbol_to_cdecl= 6953fi 6954if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 6956$as_echo "failed" >&6; } 6957else 6958 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 6959$as_echo "ok" >&6; } 6960fi 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983# Check whether --enable-libtool-lock was given. 6984if test "${enable_libtool_lock+set}" = set; then : 6985 enableval=$enable_libtool_lock; 6986fi 6987 6988test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes 6989 6990# Some flags need to be propagated to the compiler or linker for good 6991# libtool support. 6992case $host in 6993ia64-*-hpux*) 6994 # Find out which ABI we are using. 6995 echo 'int i;' > conftest.$ac_ext 6996 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6997 (eval $ac_compile) 2>&5 6998 ac_status=$? 6999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7000 test $ac_status = 0; }; then 7001 case `/usr/bin/file conftest.$ac_objext` in 7002 *ELF-32*) 7003 HPUX_IA64_MODE="32" 7004 ;; 7005 *ELF-64*) 7006 HPUX_IA64_MODE="64" 7007 ;; 7008 esac 7009 fi 7010 rm -rf conftest* 7011 ;; 7012*-*-irix6*) 7013 # Find out which ABI we are using. 7014 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7015 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7016 (eval $ac_compile) 2>&5 7017 ac_status=$? 7018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7019 test $ac_status = 0; }; then 7020 if test "$lt_cv_prog_gnu_ld" = yes; then 7021 case `/usr/bin/file conftest.$ac_objext` in 7022 *32-bit*) 7023 LD="${LD-ld} -melf32bsmip" 7024 ;; 7025 *N32*) 7026 LD="${LD-ld} -melf32bmipn32" 7027 ;; 7028 *64-bit*) 7029 LD="${LD-ld} -melf64bmip" 7030 ;; 7031 esac 7032 else 7033 case `/usr/bin/file conftest.$ac_objext` in 7034 *32-bit*) 7035 LD="${LD-ld} -32" 7036 ;; 7037 *N32*) 7038 LD="${LD-ld} -n32" 7039 ;; 7040 *64-bit*) 7041 LD="${LD-ld} -64" 7042 ;; 7043 esac 7044 fi 7045 fi 7046 rm -rf conftest* 7047 ;; 7048 7049x86_64-*kfreebsd*-gnu|x86_64-*linux*|ppc*-*linux*|powerpc*-*linux*| \ 7050s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 7051 # Find out which ABI we are using. 7052 echo 'int i;' > conftest.$ac_ext 7053 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7054 (eval $ac_compile) 2>&5 7055 ac_status=$? 7056 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7057 test $ac_status = 0; }; then 7058 case `/usr/bin/file conftest.o` in 7059 *32-bit*) 7060 case $host in 7061 x86_64-*kfreebsd*-gnu) 7062 LD="${LD-ld} -m elf_i386_fbsd" 7063 ;; 7064 x86_64-*linux*) 7065 LD="${LD-ld} -m elf_i386" 7066 ;; 7067 ppc64-*linux*|powerpc64-*linux*) 7068 LD="${LD-ld} -m elf32ppclinux" 7069 ;; 7070 s390x-*linux*) 7071 LD="${LD-ld} -m elf_s390" 7072 ;; 7073 sparc64-*linux*) 7074 LD="${LD-ld} -m elf32_sparc" 7075 ;; 7076 esac 7077 ;; 7078 *64-bit*) 7079 case $host in 7080 x86_64-*kfreebsd*-gnu) 7081 LD="${LD-ld} -m elf_x86_64_fbsd" 7082 ;; 7083 x86_64-*linux*) 7084 LD="${LD-ld} -m elf_x86_64" 7085 ;; 7086 ppc*-*linux*|powerpc*-*linux*) 7087 LD="${LD-ld} -m elf64ppc" 7088 ;; 7089 s390*-*linux*|s390*-*tpf*) 7090 LD="${LD-ld} -m elf64_s390" 7091 ;; 7092 sparc*-*linux*) 7093 LD="${LD-ld} -m elf64_sparc" 7094 ;; 7095 esac 7096 ;; 7097 esac 7098 fi 7099 rm -rf conftest* 7100 ;; 7101 7102*-*-sco3.2v5*) 7103 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 7104 SAVE_CFLAGS="$CFLAGS" 7105 CFLAGS="$CFLAGS -belf" 7106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 7107$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 7108if test "${lt_cv_cc_needs_belf+set}" = set; then : 7109 $as_echo_n "(cached) " >&6 7110else 7111 ac_ext=c 7112ac_cpp='$CPP $CPPFLAGS' 7113ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7114ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7115ac_compiler_gnu=$ac_cv_c_compiler_gnu 7116 7117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7118/* end confdefs.h. */ 7119 7120int 7121main () 7122{ 7123 7124 ; 7125 return 0; 7126} 7127_ACEOF 7128if ac_fn_c_try_link "$LINENO"; then : 7129 lt_cv_cc_needs_belf=yes 7130else 7131 lt_cv_cc_needs_belf=no 7132fi 7133rm -f core conftest.err conftest.$ac_objext \ 7134 conftest$ac_exeext conftest.$ac_ext 7135 ac_ext=c 7136ac_cpp='$CPP $CPPFLAGS' 7137ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7138ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7139ac_compiler_gnu=$ac_cv_c_compiler_gnu 7140 7141fi 7142{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 7143$as_echo "$lt_cv_cc_needs_belf" >&6; } 7144 if test x"$lt_cv_cc_needs_belf" != x"yes"; then 7145 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 7146 CFLAGS="$SAVE_CFLAGS" 7147 fi 7148 ;; 7149sparc*-*solaris*) 7150 # Find out which ABI we are using. 7151 echo 'int i;' > conftest.$ac_ext 7152 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7153 (eval $ac_compile) 2>&5 7154 ac_status=$? 7155 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7156 test $ac_status = 0; }; then 7157 case `/usr/bin/file conftest.o` in 7158 *64-bit*) 7159 case $lt_cv_prog_gnu_ld in 7160 yes*) LD="${LD-ld} -m elf64_sparc" ;; 7161 *) 7162 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 7163 LD="${LD-ld} -64" 7164 fi 7165 ;; 7166 esac 7167 ;; 7168 esac 7169 fi 7170 rm -rf conftest* 7171 ;; 7172esac 7173 7174need_locks="$enable_libtool_lock" 7175 7176 7177 case $host_os in 7178 rhapsody* | darwin*) 7179 if test -n "$ac_tool_prefix"; then 7180 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 7181set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 7182{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7183$as_echo_n "checking for $ac_word... " >&6; } 7184if test "${ac_cv_prog_DSYMUTIL+set}" = set; then : 7185 $as_echo_n "(cached) " >&6 7186else 7187 if test -n "$DSYMUTIL"; then 7188 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 7189else 7190as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7191for as_dir in $PATH 7192do 7193 IFS=$as_save_IFS 7194 test -z "$as_dir" && as_dir=. 7195 for ac_exec_ext in '' $ac_executable_extensions; do 7196 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7197 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 7198 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7199 break 2 7200 fi 7201done 7202 done 7203IFS=$as_save_IFS 7204 7205fi 7206fi 7207DSYMUTIL=$ac_cv_prog_DSYMUTIL 7208if test -n "$DSYMUTIL"; then 7209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 7210$as_echo "$DSYMUTIL" >&6; } 7211else 7212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7213$as_echo "no" >&6; } 7214fi 7215 7216 7217fi 7218if test -z "$ac_cv_prog_DSYMUTIL"; then 7219 ac_ct_DSYMUTIL=$DSYMUTIL 7220 # Extract the first word of "dsymutil", so it can be a program name with args. 7221set dummy dsymutil; ac_word=$2 7222{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7223$as_echo_n "checking for $ac_word... " >&6; } 7224if test "${ac_cv_prog_ac_ct_DSYMUTIL+set}" = set; then : 7225 $as_echo_n "(cached) " >&6 7226else 7227 if test -n "$ac_ct_DSYMUTIL"; then 7228 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 7229else 7230as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7231for as_dir in $PATH 7232do 7233 IFS=$as_save_IFS 7234 test -z "$as_dir" && as_dir=. 7235 for ac_exec_ext in '' $ac_executable_extensions; do 7236 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7237 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7239 break 2 7240 fi 7241done 7242 done 7243IFS=$as_save_IFS 7244 7245fi 7246fi 7247ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 7248if test -n "$ac_ct_DSYMUTIL"; then 7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 7250$as_echo "$ac_ct_DSYMUTIL" >&6; } 7251else 7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7253$as_echo "no" >&6; } 7254fi 7255 7256 if test "x$ac_ct_DSYMUTIL" = x; then 7257 DSYMUTIL=":" 7258 else 7259 case $cross_compiling:$ac_tool_warned in 7260yes:) 7261{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7262$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7263ac_tool_warned=yes ;; 7264esac 7265 DSYMUTIL=$ac_ct_DSYMUTIL 7266 fi 7267else 7268 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 7269fi 7270 7271 if test -n "$ac_tool_prefix"; then 7272 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 7273set dummy ${ac_tool_prefix}nmedit; ac_word=$2 7274{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7275$as_echo_n "checking for $ac_word... " >&6; } 7276if test "${ac_cv_prog_NMEDIT+set}" = set; then : 7277 $as_echo_n "(cached) " >&6 7278else 7279 if test -n "$NMEDIT"; then 7280 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 7281else 7282as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7283for as_dir in $PATH 7284do 7285 IFS=$as_save_IFS 7286 test -z "$as_dir" && as_dir=. 7287 for ac_exec_ext in '' $ac_executable_extensions; do 7288 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7289 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 7290 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7291 break 2 7292 fi 7293done 7294 done 7295IFS=$as_save_IFS 7296 7297fi 7298fi 7299NMEDIT=$ac_cv_prog_NMEDIT 7300if test -n "$NMEDIT"; then 7301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 7302$as_echo "$NMEDIT" >&6; } 7303else 7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7305$as_echo "no" >&6; } 7306fi 7307 7308 7309fi 7310if test -z "$ac_cv_prog_NMEDIT"; then 7311 ac_ct_NMEDIT=$NMEDIT 7312 # Extract the first word of "nmedit", so it can be a program name with args. 7313set dummy nmedit; ac_word=$2 7314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7315$as_echo_n "checking for $ac_word... " >&6; } 7316if test "${ac_cv_prog_ac_ct_NMEDIT+set}" = set; then : 7317 $as_echo_n "(cached) " >&6 7318else 7319 if test -n "$ac_ct_NMEDIT"; then 7320 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 7321else 7322as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7323for as_dir in $PATH 7324do 7325 IFS=$as_save_IFS 7326 test -z "$as_dir" && as_dir=. 7327 for ac_exec_ext in '' $ac_executable_extensions; do 7328 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7329 ac_cv_prog_ac_ct_NMEDIT="nmedit" 7330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7331 break 2 7332 fi 7333done 7334 done 7335IFS=$as_save_IFS 7336 7337fi 7338fi 7339ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 7340if test -n "$ac_ct_NMEDIT"; then 7341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 7342$as_echo "$ac_ct_NMEDIT" >&6; } 7343else 7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7345$as_echo "no" >&6; } 7346fi 7347 7348 if test "x$ac_ct_NMEDIT" = x; then 7349 NMEDIT=":" 7350 else 7351 case $cross_compiling:$ac_tool_warned in 7352yes:) 7353{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7354$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7355ac_tool_warned=yes ;; 7356esac 7357 NMEDIT=$ac_ct_NMEDIT 7358 fi 7359else 7360 NMEDIT="$ac_cv_prog_NMEDIT" 7361fi 7362 7363 if test -n "$ac_tool_prefix"; then 7364 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 7365set dummy ${ac_tool_prefix}lipo; ac_word=$2 7366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7367$as_echo_n "checking for $ac_word... " >&6; } 7368if test "${ac_cv_prog_LIPO+set}" = set; then : 7369 $as_echo_n "(cached) " >&6 7370else 7371 if test -n "$LIPO"; then 7372 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 7373else 7374as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7375for as_dir in $PATH 7376do 7377 IFS=$as_save_IFS 7378 test -z "$as_dir" && as_dir=. 7379 for ac_exec_ext in '' $ac_executable_extensions; do 7380 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7381 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 7382 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7383 break 2 7384 fi 7385done 7386 done 7387IFS=$as_save_IFS 7388 7389fi 7390fi 7391LIPO=$ac_cv_prog_LIPO 7392if test -n "$LIPO"; then 7393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 7394$as_echo "$LIPO" >&6; } 7395else 7396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7397$as_echo "no" >&6; } 7398fi 7399 7400 7401fi 7402if test -z "$ac_cv_prog_LIPO"; then 7403 ac_ct_LIPO=$LIPO 7404 # Extract the first word of "lipo", so it can be a program name with args. 7405set dummy lipo; ac_word=$2 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7407$as_echo_n "checking for $ac_word... " >&6; } 7408if test "${ac_cv_prog_ac_ct_LIPO+set}" = set; then : 7409 $as_echo_n "(cached) " >&6 7410else 7411 if test -n "$ac_ct_LIPO"; then 7412 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 7413else 7414as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7415for as_dir in $PATH 7416do 7417 IFS=$as_save_IFS 7418 test -z "$as_dir" && as_dir=. 7419 for ac_exec_ext in '' $ac_executable_extensions; do 7420 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7421 ac_cv_prog_ac_ct_LIPO="lipo" 7422 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7423 break 2 7424 fi 7425done 7426 done 7427IFS=$as_save_IFS 7428 7429fi 7430fi 7431ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 7432if test -n "$ac_ct_LIPO"; then 7433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 7434$as_echo "$ac_ct_LIPO" >&6; } 7435else 7436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7437$as_echo "no" >&6; } 7438fi 7439 7440 if test "x$ac_ct_LIPO" = x; then 7441 LIPO=":" 7442 else 7443 case $cross_compiling:$ac_tool_warned in 7444yes:) 7445{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7446$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7447ac_tool_warned=yes ;; 7448esac 7449 LIPO=$ac_ct_LIPO 7450 fi 7451else 7452 LIPO="$ac_cv_prog_LIPO" 7453fi 7454 7455 if test -n "$ac_tool_prefix"; then 7456 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 7457set dummy ${ac_tool_prefix}otool; ac_word=$2 7458{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7459$as_echo_n "checking for $ac_word... " >&6; } 7460if test "${ac_cv_prog_OTOOL+set}" = set; then : 7461 $as_echo_n "(cached) " >&6 7462else 7463 if test -n "$OTOOL"; then 7464 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 7465else 7466as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7467for as_dir in $PATH 7468do 7469 IFS=$as_save_IFS 7470 test -z "$as_dir" && as_dir=. 7471 for ac_exec_ext in '' $ac_executable_extensions; do 7472 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7473 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 7474 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7475 break 2 7476 fi 7477done 7478 done 7479IFS=$as_save_IFS 7480 7481fi 7482fi 7483OTOOL=$ac_cv_prog_OTOOL 7484if test -n "$OTOOL"; then 7485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 7486$as_echo "$OTOOL" >&6; } 7487else 7488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7489$as_echo "no" >&6; } 7490fi 7491 7492 7493fi 7494if test -z "$ac_cv_prog_OTOOL"; then 7495 ac_ct_OTOOL=$OTOOL 7496 # Extract the first word of "otool", so it can be a program name with args. 7497set dummy otool; ac_word=$2 7498{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7499$as_echo_n "checking for $ac_word... " >&6; } 7500if test "${ac_cv_prog_ac_ct_OTOOL+set}" = set; then : 7501 $as_echo_n "(cached) " >&6 7502else 7503 if test -n "$ac_ct_OTOOL"; then 7504 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 7505else 7506as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7507for as_dir in $PATH 7508do 7509 IFS=$as_save_IFS 7510 test -z "$as_dir" && as_dir=. 7511 for ac_exec_ext in '' $ac_executable_extensions; do 7512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7513 ac_cv_prog_ac_ct_OTOOL="otool" 7514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7515 break 2 7516 fi 7517done 7518 done 7519IFS=$as_save_IFS 7520 7521fi 7522fi 7523ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 7524if test -n "$ac_ct_OTOOL"; then 7525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 7526$as_echo "$ac_ct_OTOOL" >&6; } 7527else 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7529$as_echo "no" >&6; } 7530fi 7531 7532 if test "x$ac_ct_OTOOL" = x; then 7533 OTOOL=":" 7534 else 7535 case $cross_compiling:$ac_tool_warned in 7536yes:) 7537{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7538$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7539ac_tool_warned=yes ;; 7540esac 7541 OTOOL=$ac_ct_OTOOL 7542 fi 7543else 7544 OTOOL="$ac_cv_prog_OTOOL" 7545fi 7546 7547 if test -n "$ac_tool_prefix"; then 7548 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 7549set dummy ${ac_tool_prefix}otool64; ac_word=$2 7550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7551$as_echo_n "checking for $ac_word... " >&6; } 7552if test "${ac_cv_prog_OTOOL64+set}" = set; then : 7553 $as_echo_n "(cached) " >&6 7554else 7555 if test -n "$OTOOL64"; then 7556 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 7557else 7558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7559for as_dir in $PATH 7560do 7561 IFS=$as_save_IFS 7562 test -z "$as_dir" && as_dir=. 7563 for ac_exec_ext in '' $ac_executable_extensions; do 7564 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7565 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 7566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7567 break 2 7568 fi 7569done 7570 done 7571IFS=$as_save_IFS 7572 7573fi 7574fi 7575OTOOL64=$ac_cv_prog_OTOOL64 7576if test -n "$OTOOL64"; then 7577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 7578$as_echo "$OTOOL64" >&6; } 7579else 7580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7581$as_echo "no" >&6; } 7582fi 7583 7584 7585fi 7586if test -z "$ac_cv_prog_OTOOL64"; then 7587 ac_ct_OTOOL64=$OTOOL64 7588 # Extract the first word of "otool64", so it can be a program name with args. 7589set dummy otool64; ac_word=$2 7590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7591$as_echo_n "checking for $ac_word... " >&6; } 7592if test "${ac_cv_prog_ac_ct_OTOOL64+set}" = set; then : 7593 $as_echo_n "(cached) " >&6 7594else 7595 if test -n "$ac_ct_OTOOL64"; then 7596 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 7597else 7598as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7599for as_dir in $PATH 7600do 7601 IFS=$as_save_IFS 7602 test -z "$as_dir" && as_dir=. 7603 for ac_exec_ext in '' $ac_executable_extensions; do 7604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 7605 ac_cv_prog_ac_ct_OTOOL64="otool64" 7606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7607 break 2 7608 fi 7609done 7610 done 7611IFS=$as_save_IFS 7612 7613fi 7614fi 7615ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 7616if test -n "$ac_ct_OTOOL64"; then 7617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 7618$as_echo "$ac_ct_OTOOL64" >&6; } 7619else 7620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7621$as_echo "no" >&6; } 7622fi 7623 7624 if test "x$ac_ct_OTOOL64" = x; then 7625 OTOOL64=":" 7626 else 7627 case $cross_compiling:$ac_tool_warned in 7628yes:) 7629{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7630$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7631ac_tool_warned=yes ;; 7632esac 7633 OTOOL64=$ac_ct_OTOOL64 7634 fi 7635else 7636 OTOOL64="$ac_cv_prog_OTOOL64" 7637fi 7638 7639 7640 7641 7642 7643 7644 7645 7646 7647 7648 7649 7650 7651 7652 7653 7654 7655 7656 7657 7658 7659 7660 7661 7662 7663 7664 7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 7666$as_echo_n "checking for -single_module linker flag... " >&6; } 7667if test "${lt_cv_apple_cc_single_mod+set}" = set; then : 7668 $as_echo_n "(cached) " >&6 7669else 7670 lt_cv_apple_cc_single_mod=no 7671 if test -z "${LT_MULTI_MODULE}"; then 7672 # By default we will add the -single_module flag. You can override 7673 # by either setting the environment variable LT_MULTI_MODULE 7674 # non-empty at configure time, or by adding -multi_module to the 7675 # link flags. 7676 rm -rf libconftest.dylib* 7677 echo "int foo(void){return 1;}" > conftest.c 7678 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7679-dynamiclib -Wl,-single_module conftest.c" >&5 7680 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 7681 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 7682 _lt_result=$? 7683 if test -f libconftest.dylib && test ! -s conftest.err && test $_lt_result = 0; then 7684 lt_cv_apple_cc_single_mod=yes 7685 else 7686 cat conftest.err >&5 7687 fi 7688 rm -rf libconftest.dylib* 7689 rm -f conftest.* 7690 fi 7691fi 7692{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 7693$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 7694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 7695$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 7696if test "${lt_cv_ld_exported_symbols_list+set}" = set; then : 7697 $as_echo_n "(cached) " >&6 7698else 7699 lt_cv_ld_exported_symbols_list=no 7700 save_LDFLAGS=$LDFLAGS 7701 echo "_main" > conftest.sym 7702 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 7703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7704/* end confdefs.h. */ 7705 7706int 7707main () 7708{ 7709 7710 ; 7711 return 0; 7712} 7713_ACEOF 7714if ac_fn_c_try_link "$LINENO"; then : 7715 lt_cv_ld_exported_symbols_list=yes 7716else 7717 lt_cv_ld_exported_symbols_list=no 7718fi 7719rm -f core conftest.err conftest.$ac_objext \ 7720 conftest$ac_exeext conftest.$ac_ext 7721 LDFLAGS="$save_LDFLAGS" 7722 7723fi 7724{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 7725$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 7726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 7727$as_echo_n "checking for -force_load linker flag... " >&6; } 7728if test "${lt_cv_ld_force_load+set}" = set; then : 7729 $as_echo_n "(cached) " >&6 7730else 7731 lt_cv_ld_force_load=no 7732 cat > conftest.c << _LT_EOF 7733int forced_loaded() { return 2;} 7734_LT_EOF 7735 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 7736 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 7737 echo "$AR cru libconftest.a conftest.o" >&5 7738 $AR cru libconftest.a conftest.o 2>&5 7739 echo "$RANLIB libconftest.a" >&5 7740 $RANLIB libconftest.a 2>&5 7741 cat > conftest.c << _LT_EOF 7742int main() { return 0;} 7743_LT_EOF 7744 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 7745 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 7746 _lt_result=$? 7747 if test -f conftest && test ! -s conftest.err && test $_lt_result = 0 && $GREP forced_load conftest 2>&1 >/dev/null; then 7748 lt_cv_ld_force_load=yes 7749 else 7750 cat conftest.err >&5 7751 fi 7752 rm -f conftest.err libconftest.a conftest conftest.c 7753 rm -rf conftest.dSYM 7754 7755fi 7756{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 7757$as_echo "$lt_cv_ld_force_load" >&6; } 7758 case $host_os in 7759 rhapsody* | darwin1.[012]) 7760 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;; 7761 darwin1.*) 7762 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7763 darwin*) # darwin 5.x on 7764 # if running on 10.5 or later, the deployment target defaults 7765 # to the OS version, if on x86, and 10.4, the deployment 7766 # target defaults to 10.4. Don't you love it? 7767 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 7768 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 7769 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7770 10.[012]*) 7771 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;; 7772 10.*) 7773 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;; 7774 esac 7775 ;; 7776 esac 7777 if test "$lt_cv_apple_cc_single_mod" = "yes"; then 7778 _lt_dar_single_mod='$single_module' 7779 fi 7780 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then 7781 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym' 7782 else 7783 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}' 7784 fi 7785 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then 7786 _lt_dsymutil='~$DSYMUTIL $lib || :' 7787 else 7788 _lt_dsymutil= 7789 fi 7790 ;; 7791 esac 7792 7793for ac_header in dlfcn.h 7794do : 7795 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7796" 7797if test "x$ac_cv_header_dlfcn_h" = x""yes; then : 7798 cat >>confdefs.h <<_ACEOF 7799#define HAVE_DLFCN_H 1 7800_ACEOF 7801 7802fi 7803 7804done 7805 7806 7807 7808 7809 7810# Set options 7811 7812 7813 7814 7815 enable_win32_dll=no 7816 7817 7818 # Check whether --enable-shared was given. 7819if test "${enable_shared+set}" = set; then : 7820 enableval=$enable_shared; p=${PACKAGE-default} 7821 case $enableval in 7822 yes) enable_shared=yes ;; 7823 no) enable_shared=no ;; 7824 *) 7825 enable_shared=no 7826 # Look at the argument we got. We use all the common list separators. 7827 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7828 for pkg in $enableval; do 7829 IFS="$lt_save_ifs" 7830 if test "X$pkg" = "X$p"; then 7831 enable_shared=yes 7832 fi 7833 done 7834 IFS="$lt_save_ifs" 7835 ;; 7836 esac 7837else 7838 enable_shared=yes 7839fi 7840 7841 7842 7843 7844 7845 7846 7847 7848 7849 # Check whether --enable-static was given. 7850if test "${enable_static+set}" = set; then : 7851 enableval=$enable_static; p=${PACKAGE-default} 7852 case $enableval in 7853 yes) enable_static=yes ;; 7854 no) enable_static=no ;; 7855 *) 7856 enable_static=no 7857 # Look at the argument we got. We use all the common list separators. 7858 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7859 for pkg in $enableval; do 7860 IFS="$lt_save_ifs" 7861 if test "X$pkg" = "X$p"; then 7862 enable_static=yes 7863 fi 7864 done 7865 IFS="$lt_save_ifs" 7866 ;; 7867 esac 7868else 7869 enable_static=yes 7870fi 7871 7872 7873 7874 7875 7876 7877 7878 7879 7880 7881# Check whether --with-pic was given. 7882if test "${with_pic+set}" = set; then : 7883 withval=$with_pic; pic_mode="$withval" 7884else 7885 pic_mode=default 7886fi 7887 7888 7889test -z "$pic_mode" && pic_mode=default 7890 7891 7892 7893 7894 7895 7896 7897 # Check whether --enable-fast-install was given. 7898if test "${enable_fast_install+set}" = set; then : 7899 enableval=$enable_fast_install; p=${PACKAGE-default} 7900 case $enableval in 7901 yes) enable_fast_install=yes ;; 7902 no) enable_fast_install=no ;; 7903 *) 7904 enable_fast_install=no 7905 # Look at the argument we got. We use all the common list separators. 7906 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR," 7907 for pkg in $enableval; do 7908 IFS="$lt_save_ifs" 7909 if test "X$pkg" = "X$p"; then 7910 enable_fast_install=yes 7911 fi 7912 done 7913 IFS="$lt_save_ifs" 7914 ;; 7915 esac 7916else 7917 enable_fast_install=yes 7918fi 7919 7920 7921 7922 7923 7924 7925 7926 7927 7928 7929 7930# This can be used to rebuild libtool when needed 7931LIBTOOL_DEPS="$ltmain" 7932 7933# Always use our own libtool. 7934LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7935 7936 7937 7938 7939 7940 7941 7942 7943 7944 7945 7946 7947 7948 7949 7950 7951 7952 7953 7954 7955 7956 7957 7958 7959 7960 7961test -z "$LN_S" && LN_S="ln -s" 7962 7963 7964 7965 7966 7967 7968 7969 7970 7971 7972 7973 7974 7975 7976if test -n "${ZSH_VERSION+set}" ; then 7977 setopt NO_GLOB_SUBST 7978fi 7979 7980{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7981$as_echo_n "checking for objdir... " >&6; } 7982if test "${lt_cv_objdir+set}" = set; then : 7983 $as_echo_n "(cached) " >&6 7984else 7985 rm -f .libs 2>/dev/null 7986mkdir .libs 2>/dev/null 7987if test -d .libs; then 7988 lt_cv_objdir=.libs 7989else 7990 # MS-DOS does not allow filenames that begin with a dot. 7991 lt_cv_objdir=_libs 7992fi 7993rmdir .libs 2>/dev/null 7994fi 7995{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7996$as_echo "$lt_cv_objdir" >&6; } 7997objdir=$lt_cv_objdir 7998 7999 8000 8001 8002 8003cat >>confdefs.h <<_ACEOF 8004#define LT_OBJDIR "$lt_cv_objdir/" 8005_ACEOF 8006 8007 8008 8009 8010case $host_os in 8011aix3*) 8012 # AIX sometimes has problems with the GCC collect2 program. For some 8013 # reason, if we set the COLLECT_NAMES environment variable, the problems 8014 # vanish in a puff of smoke. 8015 if test "X${COLLECT_NAMES+set}" != Xset; then 8016 COLLECT_NAMES= 8017 export COLLECT_NAMES 8018 fi 8019 ;; 8020esac 8021 8022# Global variables: 8023ofile=libtool 8024can_build_shared=yes 8025 8026# All known linkers require a `.a' archive for static linking (except MSVC, 8027# which needs '.lib'). 8028libext=a 8029 8030with_gnu_ld="$lt_cv_prog_gnu_ld" 8031 8032old_CC="$CC" 8033old_CFLAGS="$CFLAGS" 8034 8035# Set sane defaults for various variables 8036test -z "$CC" && CC=cc 8037test -z "$LTCC" && LTCC=$CC 8038test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 8039test -z "$LD" && LD=ld 8040test -z "$ac_objext" && ac_objext=o 8041 8042for cc_temp in $compiler""; do 8043 case $cc_temp in 8044 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 8045 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 8046 \-*) ;; 8047 *) break;; 8048 esac 8049done 8050cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 8051 8052 8053# Only perform the check for file, if the check method requires it 8054test -z "$MAGIC_CMD" && MAGIC_CMD=file 8055case $deplibs_check_method in 8056file_magic*) 8057 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 8058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 8059$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 8060if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8061 $as_echo_n "(cached) " >&6 8062else 8063 case $MAGIC_CMD in 8064[\\/*] | ?:[\\/]*) 8065 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8066 ;; 8067*) 8068 lt_save_MAGIC_CMD="$MAGIC_CMD" 8069 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8070 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8071 for ac_dir in $ac_dummy; do 8072 IFS="$lt_save_ifs" 8073 test -z "$ac_dir" && ac_dir=. 8074 if test -f $ac_dir/${ac_tool_prefix}file; then 8075 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file" 8076 if test -n "$file_magic_test_file"; then 8077 case $deplibs_check_method in 8078 "file_magic "*) 8079 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8080 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8081 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8082 $EGREP "$file_magic_regex" > /dev/null; then 8083 : 8084 else 8085 cat <<_LT_EOF 1>&2 8086 8087*** Warning: the command libtool uses to detect shared libraries, 8088*** $file_magic_cmd, produces output that libtool cannot recognize. 8089*** The result is that libtool may fail to recognize shared libraries 8090*** as such. This will affect the creation of libtool libraries that 8091*** depend on shared libraries, but programs linked with such libtool 8092*** libraries will work regardless of this problem. Nevertheless, you 8093*** may want to report the problem to your system manager and/or to 8094*** bug-libtool@gnu.org 8095 8096_LT_EOF 8097 fi ;; 8098 esac 8099 fi 8100 break 8101 fi 8102 done 8103 IFS="$lt_save_ifs" 8104 MAGIC_CMD="$lt_save_MAGIC_CMD" 8105 ;; 8106esac 8107fi 8108 8109MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8110if test -n "$MAGIC_CMD"; then 8111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8112$as_echo "$MAGIC_CMD" >&6; } 8113else 8114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8115$as_echo "no" >&6; } 8116fi 8117 8118 8119 8120 8121 8122if test -z "$lt_cv_path_MAGIC_CMD"; then 8123 if test -n "$ac_tool_prefix"; then 8124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 8125$as_echo_n "checking for file... " >&6; } 8126if test "${lt_cv_path_MAGIC_CMD+set}" = set; then : 8127 $as_echo_n "(cached) " >&6 8128else 8129 case $MAGIC_CMD in 8130[\\/*] | ?:[\\/]*) 8131 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path. 8132 ;; 8133*) 8134 lt_save_MAGIC_CMD="$MAGIC_CMD" 8135 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 8136 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 8137 for ac_dir in $ac_dummy; do 8138 IFS="$lt_save_ifs" 8139 test -z "$ac_dir" && ac_dir=. 8140 if test -f $ac_dir/file; then 8141 lt_cv_path_MAGIC_CMD="$ac_dir/file" 8142 if test -n "$file_magic_test_file"; then 8143 case $deplibs_check_method in 8144 "file_magic "*) 8145 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 8146 MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8147 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 8148 $EGREP "$file_magic_regex" > /dev/null; then 8149 : 8150 else 8151 cat <<_LT_EOF 1>&2 8152 8153*** Warning: the command libtool uses to detect shared libraries, 8154*** $file_magic_cmd, produces output that libtool cannot recognize. 8155*** The result is that libtool may fail to recognize shared libraries 8156*** as such. This will affect the creation of libtool libraries that 8157*** depend on shared libraries, but programs linked with such libtool 8158*** libraries will work regardless of this problem. Nevertheless, you 8159*** may want to report the problem to your system manager and/or to 8160*** bug-libtool@gnu.org 8161 8162_LT_EOF 8163 fi ;; 8164 esac 8165 fi 8166 break 8167 fi 8168 done 8169 IFS="$lt_save_ifs" 8170 MAGIC_CMD="$lt_save_MAGIC_CMD" 8171 ;; 8172esac 8173fi 8174 8175MAGIC_CMD="$lt_cv_path_MAGIC_CMD" 8176if test -n "$MAGIC_CMD"; then 8177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 8178$as_echo "$MAGIC_CMD" >&6; } 8179else 8180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8181$as_echo "no" >&6; } 8182fi 8183 8184 8185 else 8186 MAGIC_CMD=: 8187 fi 8188fi 8189 8190 fi 8191 ;; 8192esac 8193 8194# Use C for the default configuration in the libtool script 8195 8196lt_save_CC="$CC" 8197ac_ext=c 8198ac_cpp='$CPP $CPPFLAGS' 8199ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8200ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8201ac_compiler_gnu=$ac_cv_c_compiler_gnu 8202 8203 8204# Source file extension for C test sources. 8205ac_ext=c 8206 8207# Object file extension for compiled C test sources. 8208objext=o 8209objext=$objext 8210 8211# Code to be used in simple compile tests 8212lt_simple_compile_test_code="int some_variable = 0;" 8213 8214# Code to be used in simple link tests 8215lt_simple_link_test_code='int main(){return(0);}' 8216 8217 8218 8219 8220 8221 8222 8223# If no C compiler was specified, use CC. 8224LTCC=${LTCC-"$CC"} 8225 8226# If no C compiler flags were specified, use CFLAGS. 8227LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 8228 8229# Allow CC to be a program name with arguments. 8230compiler=$CC 8231 8232# Save the default compiler, since it gets overwritten when the other 8233# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 8234compiler_DEFAULT=$CC 8235 8236# save warnings/boilerplate of simple test code 8237ac_outfile=conftest.$ac_objext 8238echo "$lt_simple_compile_test_code" >conftest.$ac_ext 8239eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8240_lt_compiler_boilerplate=`cat conftest.err` 8241$RM conftest* 8242 8243ac_outfile=conftest.$ac_objext 8244echo "$lt_simple_link_test_code" >conftest.$ac_ext 8245eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 8246_lt_linker_boilerplate=`cat conftest.err` 8247$RM -r conftest* 8248 8249 8250if test -n "$compiler"; then 8251 8252lt_prog_compiler_no_builtin_flag= 8253 8254if test "$GCC" = yes; then 8255 case $cc_basename in 8256 nvcc*) 8257 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 8258 *) 8259 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 8260 esac 8261 8262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 8263$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 8264if test "${lt_cv_prog_compiler_rtti_exceptions+set}" = set; then : 8265 $as_echo_n "(cached) " >&6 8266else 8267 lt_cv_prog_compiler_rtti_exceptions=no 8268 ac_outfile=conftest.$ac_objext 8269 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8270 lt_compiler_flag="-fno-rtti -fno-exceptions" 8271 # Insert the option either (1) after the last *FLAGS variable, or 8272 # (2) before a word containing "conftest.", or (3) at the end. 8273 # Note that $ac_compile itself does not contain backslashes and begins 8274 # with a dollar sign (not a hyphen), so the echo should work correctly. 8275 # The option is referenced via a variable to avoid confusing sed. 8276 lt_compile=`echo "$ac_compile" | $SED \ 8277 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8278 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8279 -e 's:$: $lt_compiler_flag:'` 8280 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8281 (eval "$lt_compile" 2>conftest.err) 8282 ac_status=$? 8283 cat conftest.err >&5 8284 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8285 if (exit $ac_status) && test -s "$ac_outfile"; then 8286 # The compiler can only warn and ignore the option if not recognized 8287 # So say no if there are warnings other than the usual output. 8288 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8289 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8290 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8291 lt_cv_prog_compiler_rtti_exceptions=yes 8292 fi 8293 fi 8294 $RM conftest* 8295 8296fi 8297{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 8298$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 8299 8300if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then 8301 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 8302else 8303 : 8304fi 8305 8306fi 8307 8308 8309 8310 8311 8312 8313 lt_prog_compiler_wl= 8314lt_prog_compiler_pic= 8315lt_prog_compiler_static= 8316 8317{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8318$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8319 8320 if test "$GCC" = yes; then 8321 lt_prog_compiler_wl='-Wl,' 8322 lt_prog_compiler_static='-static' 8323 8324 case $host_os in 8325 aix*) 8326 # All AIX code is PIC. 8327 if test "$host_cpu" = ia64; then 8328 # AIX 5 now supports IA64 processor 8329 lt_prog_compiler_static='-Bstatic' 8330 fi 8331 ;; 8332 8333 amigaos*) 8334 case $host_cpu in 8335 powerpc) 8336 # see comment about AmigaOS4 .so support 8337 lt_prog_compiler_pic='-fPIC' 8338 ;; 8339 m68k) 8340 # FIXME: we need at least 68020 code to build shared libraries, but 8341 # adding the `-m68020' flag to GCC prevents building anything better, 8342 # like `-m68040'. 8343 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 8344 ;; 8345 esac 8346 ;; 8347 8348 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 8349 # PIC is the default for these OSes. 8350 ;; 8351 8352 mingw* | cygwin* | pw32* | os2* | cegcc*) 8353 # This hack is so that the source file can tell whether it is being 8354 # built for inclusion in a dll (and should export symbols for example). 8355 # Although the cygwin gcc ignores -fPIC, still need this for old-style 8356 # (--disable-auto-import) libraries 8357 lt_prog_compiler_pic='-DDLL_EXPORT' 8358 ;; 8359 8360 darwin* | rhapsody*) 8361 # PIC is the default on this platform 8362 # Common symbols not allowed in MH_DYLIB files 8363 lt_prog_compiler_pic='-fno-common' 8364 ;; 8365 8366 haiku*) 8367 # PIC is the default for Haiku. 8368 # The "-static" flag exists, but is broken. 8369 lt_prog_compiler_static= 8370 ;; 8371 8372 hpux*) 8373 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 8374 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 8375 # sets the default TLS model and affects inlining. 8376 case $host_cpu in 8377 hppa*64*) 8378 # +Z the default 8379 ;; 8380 *) 8381 lt_prog_compiler_pic='-fPIC' 8382 ;; 8383 esac 8384 ;; 8385 8386 interix[3-9]*) 8387 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 8388 # Instead, we relocate shared libraries at runtime. 8389 ;; 8390 8391 msdosdjgpp*) 8392 # Just because we use GCC doesn't mean we suddenly get shared libraries 8393 # on systems that don't support them. 8394 lt_prog_compiler_can_build_shared=no 8395 enable_shared=no 8396 ;; 8397 8398 *nto* | *qnx*) 8399 # QNX uses GNU C++, but need to define -shared option too, otherwise 8400 # it will coredump. 8401 lt_prog_compiler_pic='-fPIC -shared' 8402 ;; 8403 8404 sysv4*MP*) 8405 if test -d /usr/nec; then 8406 lt_prog_compiler_pic=-Kconform_pic 8407 fi 8408 ;; 8409 8410 *) 8411 lt_prog_compiler_pic='-fPIC' 8412 ;; 8413 esac 8414 8415 case $cc_basename in 8416 nvcc*) # Cuda Compiler Driver 2.2 8417 lt_prog_compiler_wl='-Xlinker ' 8418 lt_prog_compiler_pic='-Xcompiler -fPIC' 8419 ;; 8420 esac 8421 else 8422 # PORTME Check for flag to pass linker flags through the system compiler. 8423 case $host_os in 8424 aix*) 8425 lt_prog_compiler_wl='-Wl,' 8426 if test "$host_cpu" = ia64; then 8427 # AIX 5 now supports IA64 processor 8428 lt_prog_compiler_static='-Bstatic' 8429 else 8430 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 8431 fi 8432 ;; 8433 8434 mingw* | cygwin* | pw32* | os2* | cegcc*) 8435 # This hack is so that the source file can tell whether it is being 8436 # built for inclusion in a dll (and should export symbols for example). 8437 lt_prog_compiler_pic='-DDLL_EXPORT' 8438 ;; 8439 8440 hpux9* | hpux10* | hpux11*) 8441 lt_prog_compiler_wl='-Wl,' 8442 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 8443 # not for PA HP-UX. 8444 case $host_cpu in 8445 hppa*64*|ia64*) 8446 # +Z the default 8447 ;; 8448 *) 8449 lt_prog_compiler_pic='+Z' 8450 ;; 8451 esac 8452 # Is there a better lt_prog_compiler_static that works with the bundled CC? 8453 lt_prog_compiler_static='${wl}-a ${wl}archive' 8454 ;; 8455 8456 irix5* | irix6* | nonstopux*) 8457 lt_prog_compiler_wl='-Wl,' 8458 # PIC (with -KPIC) is the default. 8459 lt_prog_compiler_static='-non_shared' 8460 ;; 8461 8462 linux* | k*bsd*-gnu | kopensolaris*-gnu) 8463 case $cc_basename in 8464 # old Intel for x86_64 which still supported -KPIC. 8465 ecc*) 8466 lt_prog_compiler_wl='-Wl,' 8467 lt_prog_compiler_pic='-KPIC' 8468 lt_prog_compiler_static='-static' 8469 ;; 8470 # icc used to be incompatible with GCC. 8471 # ICC 10 doesn't accept -KPIC any more. 8472 icc* | ifort*) 8473 lt_prog_compiler_wl='-Wl,' 8474 lt_prog_compiler_pic='-fPIC' 8475 lt_prog_compiler_static='-static' 8476 ;; 8477 # Lahey Fortran 8.1. 8478 lf95*) 8479 lt_prog_compiler_wl='-Wl,' 8480 lt_prog_compiler_pic='--shared' 8481 lt_prog_compiler_static='--static' 8482 ;; 8483 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 8484 # Portland Group compilers (*not* the Pentium gcc compiler, 8485 # which looks to be a dead project) 8486 lt_prog_compiler_wl='-Wl,' 8487 lt_prog_compiler_pic='-fpic' 8488 lt_prog_compiler_static='-Bstatic' 8489 ;; 8490 ccc*) 8491 lt_prog_compiler_wl='-Wl,' 8492 # All Alpha code is PIC. 8493 lt_prog_compiler_static='-non_shared' 8494 ;; 8495 xl* | bgxl* | bgf* | mpixl*) 8496 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 8497 lt_prog_compiler_wl='-Wl,' 8498 lt_prog_compiler_pic='-qpic' 8499 lt_prog_compiler_static='-qstaticlink' 8500 ;; 8501 *) 8502 case `$CC -V 2>&1 | sed 5q` in 8503 *Sun\ F* | *Sun*Fortran*) 8504 # Sun Fortran 8.3 passes all unrecognized flags to the linker 8505 lt_prog_compiler_pic='-KPIC' 8506 lt_prog_compiler_static='-Bstatic' 8507 lt_prog_compiler_wl='' 8508 ;; 8509 *Sun\ C*) 8510 # Sun C 5.9 8511 lt_prog_compiler_pic='-KPIC' 8512 lt_prog_compiler_static='-Bstatic' 8513 lt_prog_compiler_wl='-Wl,' 8514 ;; 8515 esac 8516 ;; 8517 esac 8518 ;; 8519 8520 newsos6) 8521 lt_prog_compiler_pic='-KPIC' 8522 lt_prog_compiler_static='-Bstatic' 8523 ;; 8524 8525 *nto* | *qnx*) 8526 # QNX uses GNU C++, but need to define -shared option too, otherwise 8527 # it will coredump. 8528 lt_prog_compiler_pic='-fPIC -shared' 8529 ;; 8530 8531 osf3* | osf4* | osf5*) 8532 lt_prog_compiler_wl='-Wl,' 8533 # All OSF/1 code is PIC. 8534 lt_prog_compiler_static='-non_shared' 8535 ;; 8536 8537 rdos*) 8538 lt_prog_compiler_static='-non_shared' 8539 ;; 8540 8541 solaris*) 8542 lt_prog_compiler_pic='-KPIC' 8543 lt_prog_compiler_static='-Bstatic' 8544 case $cc_basename in 8545 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8546 lt_prog_compiler_wl='-Qoption ld ';; 8547 *) 8548 lt_prog_compiler_wl='-Wl,';; 8549 esac 8550 ;; 8551 8552 sunos4*) 8553 lt_prog_compiler_wl='-Qoption ld ' 8554 lt_prog_compiler_pic='-PIC' 8555 lt_prog_compiler_static='-Bstatic' 8556 ;; 8557 8558 sysv4 | sysv4.2uw2* | sysv4.3*) 8559 lt_prog_compiler_wl='-Wl,' 8560 lt_prog_compiler_pic='-KPIC' 8561 lt_prog_compiler_static='-Bstatic' 8562 ;; 8563 8564 sysv4*MP*) 8565 if test -d /usr/nec ;then 8566 lt_prog_compiler_pic='-Kconform_pic' 8567 lt_prog_compiler_static='-Bstatic' 8568 fi 8569 ;; 8570 8571 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8572 lt_prog_compiler_wl='-Wl,' 8573 lt_prog_compiler_pic='-KPIC' 8574 lt_prog_compiler_static='-Bstatic' 8575 ;; 8576 8577 unicos*) 8578 lt_prog_compiler_wl='-Wl,' 8579 lt_prog_compiler_can_build_shared=no 8580 ;; 8581 8582 uts4*) 8583 lt_prog_compiler_pic='-pic' 8584 lt_prog_compiler_static='-Bstatic' 8585 ;; 8586 8587 *) 8588 lt_prog_compiler_can_build_shared=no 8589 ;; 8590 esac 8591 fi 8592 8593case $host_os in 8594 # For platforms which do not support PIC, -DPIC is meaningless: 8595 *djgpp*) 8596 lt_prog_compiler_pic= 8597 ;; 8598 *) 8599 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8600 ;; 8601esac 8602{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_prog_compiler_pic" >&5 8603$as_echo "$lt_prog_compiler_pic" >&6; } 8604 8605 8606 8607 8608 8609 8610# 8611# Check to make sure the PIC flag actually works. 8612# 8613if test -n "$lt_prog_compiler_pic"; then 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8615$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8616if test "${lt_cv_prog_compiler_pic_works+set}" = set; then : 8617 $as_echo_n "(cached) " >&6 8618else 8619 lt_cv_prog_compiler_pic_works=no 8620 ac_outfile=conftest.$ac_objext 8621 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8622 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" 8623 # Insert the option either (1) after the last *FLAGS variable, or 8624 # (2) before a word containing "conftest.", or (3) at the end. 8625 # Note that $ac_compile itself does not contain backslashes and begins 8626 # with a dollar sign (not a hyphen), so the echo should work correctly. 8627 # The option is referenced via a variable to avoid confusing sed. 8628 lt_compile=`echo "$ac_compile" | $SED \ 8629 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8630 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8631 -e 's:$: $lt_compiler_flag:'` 8632 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8633 (eval "$lt_compile" 2>conftest.err) 8634 ac_status=$? 8635 cat conftest.err >&5 8636 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8637 if (exit $ac_status) && test -s "$ac_outfile"; then 8638 # The compiler can only warn and ignore the option if not recognized 8639 # So say no if there are warnings other than the usual output. 8640 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8641 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8642 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8643 lt_cv_prog_compiler_pic_works=yes 8644 fi 8645 fi 8646 $RM conftest* 8647 8648fi 8649{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8650$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8651 8652if test x"$lt_cv_prog_compiler_pic_works" = xyes; then 8653 case $lt_prog_compiler_pic in 8654 "" | " "*) ;; 8655 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8656 esac 8657else 8658 lt_prog_compiler_pic= 8659 lt_prog_compiler_can_build_shared=no 8660fi 8661 8662fi 8663 8664 8665 8666 8667 8668 8669# 8670# Check to make sure the static flag actually works. 8671# 8672wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8674$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8675if test "${lt_cv_prog_compiler_static_works+set}" = set; then : 8676 $as_echo_n "(cached) " >&6 8677else 8678 lt_cv_prog_compiler_static_works=no 8679 save_LDFLAGS="$LDFLAGS" 8680 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8681 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8682 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8683 # The linker can only warn and ignore the option if not recognized 8684 # So say no if there are warnings 8685 if test -s conftest.err; then 8686 # Append any errors to the config.log. 8687 cat conftest.err 1>&5 8688 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8689 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8690 if diff conftest.exp conftest.er2 >/dev/null; then 8691 lt_cv_prog_compiler_static_works=yes 8692 fi 8693 else 8694 lt_cv_prog_compiler_static_works=yes 8695 fi 8696 fi 8697 $RM -r conftest* 8698 LDFLAGS="$save_LDFLAGS" 8699 8700fi 8701{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8702$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8703 8704if test x"$lt_cv_prog_compiler_static_works" = xyes; then 8705 : 8706else 8707 lt_prog_compiler_static= 8708fi 8709 8710 8711 8712 8713 8714 8715 8716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8717$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8718if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8719 $as_echo_n "(cached) " >&6 8720else 8721 lt_cv_prog_compiler_c_o=no 8722 $RM -r conftest 2>/dev/null 8723 mkdir conftest 8724 cd conftest 8725 mkdir out 8726 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8727 8728 lt_compiler_flag="-o out/conftest2.$ac_objext" 8729 # Insert the option either (1) after the last *FLAGS variable, or 8730 # (2) before a word containing "conftest.", or (3) at the end. 8731 # Note that $ac_compile itself does not contain backslashes and begins 8732 # with a dollar sign (not a hyphen), so the echo should work correctly. 8733 lt_compile=`echo "$ac_compile" | $SED \ 8734 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8735 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8736 -e 's:$: $lt_compiler_flag:'` 8737 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8738 (eval "$lt_compile" 2>out/conftest.err) 8739 ac_status=$? 8740 cat out/conftest.err >&5 8741 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8742 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8743 then 8744 # The compiler can only warn and ignore the option if not recognized 8745 # So say no if there are warnings 8746 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8747 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8748 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8749 lt_cv_prog_compiler_c_o=yes 8750 fi 8751 fi 8752 chmod u+w . 2>&5 8753 $RM conftest* 8754 # SGI C++ compiler will create directory out/ii_files/ for 8755 # template instantiation 8756 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8757 $RM out/* && rmdir out 8758 cd .. 8759 $RM -r conftest 8760 $RM conftest* 8761 8762fi 8763{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8764$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8765 8766 8767 8768 8769 8770 8771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8772$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8773if test "${lt_cv_prog_compiler_c_o+set}" = set; then : 8774 $as_echo_n "(cached) " >&6 8775else 8776 lt_cv_prog_compiler_c_o=no 8777 $RM -r conftest 2>/dev/null 8778 mkdir conftest 8779 cd conftest 8780 mkdir out 8781 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8782 8783 lt_compiler_flag="-o out/conftest2.$ac_objext" 8784 # Insert the option either (1) after the last *FLAGS variable, or 8785 # (2) before a word containing "conftest.", or (3) at the end. 8786 # Note that $ac_compile itself does not contain backslashes and begins 8787 # with a dollar sign (not a hyphen), so the echo should work correctly. 8788 lt_compile=`echo "$ac_compile" | $SED \ 8789 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8790 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8791 -e 's:$: $lt_compiler_flag:'` 8792 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8793 (eval "$lt_compile" 2>out/conftest.err) 8794 ac_status=$? 8795 cat out/conftest.err >&5 8796 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8797 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8798 then 8799 # The compiler can only warn and ignore the option if not recognized 8800 # So say no if there are warnings 8801 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8802 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8803 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8804 lt_cv_prog_compiler_c_o=yes 8805 fi 8806 fi 8807 chmod u+w . 2>&5 8808 $RM conftest* 8809 # SGI C++ compiler will create directory out/ii_files/ for 8810 # template instantiation 8811 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8812 $RM out/* && rmdir out 8813 cd .. 8814 $RM -r conftest 8815 $RM conftest* 8816 8817fi 8818{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8819$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8820 8821 8822 8823 8824hard_links="nottested" 8825if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then 8826 # do not overwrite the value of need_locks provided by the user 8827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8828$as_echo_n "checking if we can lock with hard links... " >&6; } 8829 hard_links=yes 8830 $RM conftest* 8831 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8832 touch conftest.a 8833 ln conftest.a conftest.b 2>&5 || hard_links=no 8834 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8836$as_echo "$hard_links" >&6; } 8837 if test "$hard_links" = no; then 8838 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5 8839$as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;} 8840 need_locks=warn 8841 fi 8842else 8843 need_locks=no 8844fi 8845 8846 8847 8848 8849 8850 8851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8852$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8853 8854 runpath_var= 8855 allow_undefined_flag= 8856 always_export_symbols=no 8857 archive_cmds= 8858 archive_expsym_cmds= 8859 compiler_needs_object=no 8860 enable_shared_with_static_runtimes=no 8861 export_dynamic_flag_spec= 8862 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8863 hardcode_automatic=no 8864 hardcode_direct=no 8865 hardcode_direct_absolute=no 8866 hardcode_libdir_flag_spec= 8867 hardcode_libdir_flag_spec_ld= 8868 hardcode_libdir_separator= 8869 hardcode_minus_L=no 8870 hardcode_shlibpath_var=unsupported 8871 inherit_rpath=no 8872 link_all_deplibs=unknown 8873 module_cmds= 8874 module_expsym_cmds= 8875 old_archive_from_new_cmds= 8876 old_archive_from_expsyms_cmds= 8877 thread_safe_flag_spec= 8878 whole_archive_flag_spec= 8879 # include_expsyms should be a list of space-separated symbols to be *always* 8880 # included in the symbol list 8881 include_expsyms= 8882 # exclude_expsyms can be an extended regexp of symbols to exclude 8883 # it will be wrapped by ` (' and `)$', so one must not match beginning or 8884 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc', 8885 # as well as any symbol that contains `d'. 8886 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8887 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8888 # platforms (ab)use it in PIC code, but their linkers get confused if 8889 # the symbol is explicitly referenced. Since portable code cannot 8890 # rely on this symbol name, it's probably fine to never include it in 8891 # preloaded symbol tables. 8892 # Exclude shared library initialization/finalization symbols. 8893 extract_expsyms_cmds= 8894 8895 case $host_os in 8896 cygwin* | mingw* | pw32* | cegcc*) 8897 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8898 # When not using gcc, we currently assume that we are using 8899 # Microsoft Visual C++. 8900 if test "$GCC" != yes; then 8901 with_gnu_ld=no 8902 fi 8903 ;; 8904 interix*) 8905 # we just hope/assume this is gcc and not c89 (= MSVC++) 8906 with_gnu_ld=yes 8907 ;; 8908 openbsd*) 8909 with_gnu_ld=no 8910 ;; 8911 esac 8912 8913 ld_shlibs=yes 8914 8915 # On some targets, GNU ld is compatible enough with the native linker 8916 # that we're better off using the native interface for both. 8917 lt_use_gnu_ld_interface=no 8918 if test "$with_gnu_ld" = yes; then 8919 case $host_os in 8920 aix*) 8921 # The AIX port of GNU ld has always aspired to compatibility 8922 # with the native linker. However, as the warning in the GNU ld 8923 # block says, versions before 2.19.5* couldn't really create working 8924 # shared libraries, regardless of the interface used. 8925 case `$LD -v 2>&1` in 8926 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8927 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8928 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8929 *) 8930 lt_use_gnu_ld_interface=yes 8931 ;; 8932 esac 8933 ;; 8934 *) 8935 lt_use_gnu_ld_interface=yes 8936 ;; 8937 esac 8938 fi 8939 8940 if test "$lt_use_gnu_ld_interface" = yes; then 8941 # If archive_cmds runs LD, not CC, wlarc should be empty 8942 wlarc='${wl}' 8943 8944 # Set some defaults for GNU ld with shared library support. These 8945 # are reset later if shared libraries are not supported. Putting them 8946 # here allows them to be overridden if necessary. 8947 runpath_var=LD_RUN_PATH 8948 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 8949 export_dynamic_flag_spec='${wl}--export-dynamic' 8950 # ancient GNU ld didn't support --whole-archive et. al. 8951 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8952 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive' 8953 else 8954 whole_archive_flag_spec= 8955 fi 8956 supports_anon_versioning=no 8957 case `$LD -v 2>&1` in 8958 *GNU\ gold*) supports_anon_versioning=yes ;; 8959 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8960 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8961 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8962 *\ 2.11.*) ;; # other 2.11 versions 8963 *) supports_anon_versioning=yes ;; 8964 esac 8965 8966 # See if GNU ld supports shared libraries. 8967 case $host_os in 8968 aix[3-9]*) 8969 # On AIX/PPC, the GNU linker is very broken 8970 if test "$host_cpu" != ia64; then 8971 ld_shlibs=no 8972 cat <<_LT_EOF 1>&2 8973 8974*** Warning: the GNU linker, at least up to release 2.19, is reported 8975*** to be unable to reliably create shared libraries on AIX. 8976*** Therefore, libtool is disabling shared libraries support. If you 8977*** really care for shared libraries, you may want to install binutils 8978*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8979*** You will then need to restart the configuration process. 8980 8981_LT_EOF 8982 fi 8983 ;; 8984 8985 amigaos*) 8986 case $host_cpu in 8987 powerpc) 8988 # see comment about AmigaOS4 .so support 8989 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 8990 archive_expsym_cmds='' 8991 ;; 8992 m68k) 8993 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)' 8994 hardcode_libdir_flag_spec='-L$libdir' 8995 hardcode_minus_L=yes 8996 ;; 8997 esac 8998 ;; 8999 9000 beos*) 9001 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9002 allow_undefined_flag=unsupported 9003 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 9004 # support --undefined. This deserves some investigation. FIXME 9005 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9006 else 9007 ld_shlibs=no 9008 fi 9009 ;; 9010 9011 cygwin* | mingw* | pw32* | cegcc*) 9012 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 9013 # as there is no search path for DLLs. 9014 hardcode_libdir_flag_spec='-L$libdir' 9015 export_dynamic_flag_spec='${wl}--export-all-symbols' 9016 allow_undefined_flag=unsupported 9017 always_export_symbols=no 9018 enable_shared_with_static_runtimes=yes 9019 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9020 9021 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 9022 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9023 # If the export-symbols file already is a .def file (1st line 9024 # is EXPORTS), use it as is; otherwise, prepend... 9025 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then 9026 cp $export_symbols $output_objdir/$soname.def; 9027 else 9028 echo EXPORTS > $output_objdir/$soname.def; 9029 cat $export_symbols >> $output_objdir/$soname.def; 9030 fi~ 9031 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 9032 else 9033 ld_shlibs=no 9034 fi 9035 ;; 9036 9037 haiku*) 9038 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9039 link_all_deplibs=yes 9040 ;; 9041 9042 interix[3-9]*) 9043 hardcode_direct=no 9044 hardcode_shlibpath_var=no 9045 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9046 export_dynamic_flag_spec='${wl}-E' 9047 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 9048 # Instead, shared libraries are loaded at an image base (0x10000000 by 9049 # default) and relocated if they conflict, which is a slow very memory 9050 # consuming and fragmenting process. To avoid this, we pick a random, 9051 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 9052 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 9053 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 9054 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' 9055 ;; 9056 9057 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 9058 tmp_diet=no 9059 if test "$host_os" = linux-dietlibc; then 9060 case $cc_basename in 9061 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 9062 esac 9063 fi 9064 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 9065 && test "$tmp_diet" = no 9066 then 9067 tmp_addflag= 9068 tmp_sharedflag='-shared' 9069 case $cc_basename,$host_cpu in 9070 pgcc*) # Portland Group C compiler 9071 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' 9072 tmp_addflag=' $pic_flag' 9073 ;; 9074 pgf77* | pgf90* | pgf95* | pgfortran*) 9075 # Portland Group f77 and f90 compilers 9076 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' 9077 tmp_addflag=' $pic_flag -Mnomain' ;; 9078 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 9079 tmp_addflag=' -i_dynamic' ;; 9080 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 9081 tmp_addflag=' -i_dynamic -nofor_main' ;; 9082 ifc* | ifort*) # Intel Fortran compiler 9083 tmp_addflag=' -nofor_main' ;; 9084 lf95*) # Lahey Fortran 8.1 9085 whole_archive_flag_spec= 9086 tmp_sharedflag='--shared' ;; 9087 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 9088 tmp_sharedflag='-qmkshrobj' 9089 tmp_addflag= ;; 9090 nvcc*) # Cuda Compiler Driver 2.2 9091 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' 9092 compiler_needs_object=yes 9093 ;; 9094 esac 9095 case `$CC -V 2>&1 | sed 5q` in 9096 *Sun\ C*) # Sun C 5.9 9097 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' 9098 compiler_needs_object=yes 9099 tmp_sharedflag='-G' ;; 9100 *Sun\ F*) # Sun Fortran 8.3 9101 tmp_sharedflag='-G' ;; 9102 esac 9103 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9104 9105 if test "x$supports_anon_versioning" = xyes; then 9106 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9107 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9108 echo "local: *; };" >> $output_objdir/$libname.ver~ 9109 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib' 9110 fi 9111 9112 case $cc_basename in 9113 xlf* | bgf* | bgxlf* | mpixlf*) 9114 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 9115 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 9116 hardcode_libdir_flag_spec= 9117 hardcode_libdir_flag_spec_ld='-rpath $libdir' 9118 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 9119 if test "x$supports_anon_versioning" = xyes; then 9120 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 9121 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 9122 echo "local: *; };" >> $output_objdir/$libname.ver~ 9123 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 9124 fi 9125 ;; 9126 esac 9127 else 9128 ld_shlibs=no 9129 fi 9130 ;; 9131 9132 netbsd*) 9133 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9134 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 9135 wlarc= 9136 else 9137 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9138 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9139 fi 9140 ;; 9141 9142 solaris*) 9143 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 9144 ld_shlibs=no 9145 cat <<_LT_EOF 1>&2 9146 9147*** Warning: The releases 2.8.* of the GNU linker cannot reliably 9148*** create shared libraries on Solaris systems. Therefore, libtool 9149*** is disabling shared libraries support. We urge you to upgrade GNU 9150*** binutils to release 2.9.1 or newer. Another option is to modify 9151*** your PATH or compiler configuration so that the native linker is 9152*** used, and then restart. 9153 9154_LT_EOF 9155 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9156 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9157 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9158 else 9159 ld_shlibs=no 9160 fi 9161 ;; 9162 9163 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 9164 case `$LD -v 2>&1` in 9165 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 9166 ld_shlibs=no 9167 cat <<_LT_EOF 1>&2 9168 9169*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not 9170*** reliably create shared libraries on SCO systems. Therefore, libtool 9171*** is disabling shared libraries support. We urge you to upgrade GNU 9172*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 9173*** your PATH or compiler configuration so that the native linker is 9174*** used, and then restart. 9175 9176_LT_EOF 9177 ;; 9178 *) 9179 # For security reasons, it is highly recommended that you always 9180 # use absolute paths for naming shared libraries, and exclude the 9181 # DT_RUNPATH tag from executables and libraries. But doing so 9182 # requires that you compile everything twice, which is a pain. 9183 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9184 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9185 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9186 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9187 else 9188 ld_shlibs=no 9189 fi 9190 ;; 9191 esac 9192 ;; 9193 9194 sunos4*) 9195 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9196 wlarc= 9197 hardcode_direct=yes 9198 hardcode_shlibpath_var=no 9199 ;; 9200 9201 *) 9202 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 9203 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9204 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib' 9205 else 9206 ld_shlibs=no 9207 fi 9208 ;; 9209 esac 9210 9211 if test "$ld_shlibs" = no; then 9212 runpath_var= 9213 hardcode_libdir_flag_spec= 9214 export_dynamic_flag_spec= 9215 whole_archive_flag_spec= 9216 fi 9217 else 9218 # PORTME fill in a description of your system's linker (not GNU ld) 9219 case $host_os in 9220 aix3*) 9221 allow_undefined_flag=unsupported 9222 always_export_symbols=yes 9223 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' 9224 # Note: this linker hardcodes the directories in LIBPATH if there 9225 # are no directories specified by -L. 9226 hardcode_minus_L=yes 9227 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then 9228 # Neither direct hardcoding nor static linking is supported with a 9229 # broken collect2. 9230 hardcode_direct=unsupported 9231 fi 9232 ;; 9233 9234 aix[4-9]*) 9235 if test "$host_cpu" = ia64; then 9236 # On IA64, the linker does run time linking by default, so we don't 9237 # have to do anything special. 9238 aix_use_runtimelinking=no 9239 exp_sym_flag='-Bexport' 9240 no_entry_flag="" 9241 else 9242 # If we're using GNU nm, then we don't want the "-C" option. 9243 # -C means demangle to AIX nm, but means don't demangle with GNU nm 9244 # Also, AIX nm treats weak defined symbols like other global 9245 # defined symbols, whereas GNU nm marks them as "W". 9246 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 9247 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' 9248 else 9249 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' 9250 fi 9251 aix_use_runtimelinking=no 9252 9253 # Test if we are trying to use run time linking or normal 9254 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 9255 # need to do runtime linking. 9256 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 9257 for ld_flag in $LDFLAGS; do 9258 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then 9259 aix_use_runtimelinking=yes 9260 break 9261 fi 9262 done 9263 ;; 9264 esac 9265 9266 exp_sym_flag='-bexport' 9267 no_entry_flag='-bnoentry' 9268 fi 9269 9270 # When large executables or shared objects are built, AIX ld can 9271 # have problems creating the table of contents. If linking a library 9272 # or program results in "error TOC overflow" add -mminimal-toc to 9273 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 9274 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 9275 9276 archive_cmds='' 9277 hardcode_direct=yes 9278 hardcode_direct_absolute=yes 9279 hardcode_libdir_separator=':' 9280 link_all_deplibs=yes 9281 file_list_spec='${wl}-f,' 9282 9283 if test "$GCC" = yes; then 9284 case $host_os in aix4.[012]|aix4.[012].*) 9285 # We only want to do this on AIX 4.2 and lower, the check 9286 # below for broken collect2 doesn't work under 4.3+ 9287 collect2name=`${CC} -print-prog-name=collect2` 9288 if test -f "$collect2name" && 9289 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 9290 then 9291 # We have reworked collect2 9292 : 9293 else 9294 # We have old collect2 9295 hardcode_direct=unsupported 9296 # It fails to find uninstalled libraries when the uninstalled 9297 # path is not listed in the libpath. Setting hardcode_minus_L 9298 # to unsupported forces relinking 9299 hardcode_minus_L=yes 9300 hardcode_libdir_flag_spec='-L$libdir' 9301 hardcode_libdir_separator= 9302 fi 9303 ;; 9304 esac 9305 shared_flag='-shared' 9306 if test "$aix_use_runtimelinking" = yes; then 9307 shared_flag="$shared_flag "'${wl}-G' 9308 fi 9309 else 9310 # not using gcc 9311 if test "$host_cpu" = ia64; then 9312 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 9313 # chokes on -Wl,-G. The following line is correct: 9314 shared_flag='-G' 9315 else 9316 if test "$aix_use_runtimelinking" = yes; then 9317 shared_flag='${wl}-G' 9318 else 9319 shared_flag='${wl}-bM:SRE' 9320 fi 9321 fi 9322 fi 9323 9324 export_dynamic_flag_spec='${wl}-bexpall' 9325 # It seems that -bexpall does not export symbols beginning with 9326 # underscore (_), so it is better to generate a list of symbols to export. 9327 always_export_symbols=yes 9328 if test "$aix_use_runtimelinking" = yes; then 9329 # Warning - without using the other runtime loading flags (-brtl), 9330 # -berok will link without error, but may produce a broken library. 9331 allow_undefined_flag='-berok' 9332 # Determine the default libpath from the value encoded in an 9333 # empty executable. 9334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9335/* end confdefs.h. */ 9336 9337int 9338main () 9339{ 9340 9341 ; 9342 return 0; 9343} 9344_ACEOF 9345if ac_fn_c_try_link "$LINENO"; then : 9346 9347lt_aix_libpath_sed=' 9348 /Import File Strings/,/^$/ { 9349 /^0/ { 9350 s/^0 *\(.*\)$/\1/ 9351 p 9352 } 9353 }' 9354aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9355# Check for a 64-bit object if we didn't find anything. 9356if test -z "$aix_libpath"; then 9357 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9358fi 9359fi 9360rm -f core conftest.err conftest.$ac_objext \ 9361 conftest$ac_exeext conftest.$ac_ext 9362if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9363 9364 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9365 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" 9366 else 9367 if test "$host_cpu" = ia64; then 9368 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib' 9369 allow_undefined_flag="-z nodefs" 9370 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" 9371 else 9372 # Determine the default libpath from the value encoded in an 9373 # empty executable. 9374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9375/* end confdefs.h. */ 9376 9377int 9378main () 9379{ 9380 9381 ; 9382 return 0; 9383} 9384_ACEOF 9385if ac_fn_c_try_link "$LINENO"; then : 9386 9387lt_aix_libpath_sed=' 9388 /Import File Strings/,/^$/ { 9389 /^0/ { 9390 s/^0 *\(.*\)$/\1/ 9391 p 9392 } 9393 }' 9394aix_libpath=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9395# Check for a 64-bit object if we didn't find anything. 9396if test -z "$aix_libpath"; then 9397 aix_libpath=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 9398fi 9399fi 9400rm -f core conftest.err conftest.$ac_objext \ 9401 conftest$ac_exeext conftest.$ac_ext 9402if test -z "$aix_libpath"; then aix_libpath="/usr/lib:/lib"; fi 9403 9404 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath" 9405 # Warning - without using the other run time loading flags, 9406 # -berok will link without error, but may produce a broken library. 9407 no_undefined_flag=' ${wl}-bernotok' 9408 allow_undefined_flag=' ${wl}-berok' 9409 if test "$with_gnu_ld" = yes; then 9410 # We only use this code for GNU lds that support --whole-archive. 9411 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive' 9412 else 9413 # Exported symbols can be pulled into shared objects from archives 9414 whole_archive_flag_spec='$convenience' 9415 fi 9416 archive_cmds_need_lc=yes 9417 # This is similar to how AIX traditionally builds its shared libraries. 9418 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' 9419 fi 9420 fi 9421 ;; 9422 9423 amigaos*) 9424 case $host_cpu in 9425 powerpc) 9426 # see comment about AmigaOS4 .so support 9427 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib' 9428 archive_expsym_cmds='' 9429 ;; 9430 m68k) 9431 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)' 9432 hardcode_libdir_flag_spec='-L$libdir' 9433 hardcode_minus_L=yes 9434 ;; 9435 esac 9436 ;; 9437 9438 bsdi[45]*) 9439 export_dynamic_flag_spec=-rdynamic 9440 ;; 9441 9442 cygwin* | mingw* | pw32* | cegcc*) 9443 # When not using gcc, we currently assume that we are using 9444 # Microsoft Visual C++. 9445 # hardcode_libdir_flag_spec is actually meaningless, as there is 9446 # no search path for DLLs. 9447 hardcode_libdir_flag_spec=' ' 9448 allow_undefined_flag=unsupported 9449 # Tell ltmain to make .lib files, not .a files. 9450 libext=lib 9451 # Tell ltmain to make .dll files, not .so files. 9452 shrext_cmds=".dll" 9453 # FIXME: Setting linknames here is a bad hack. 9454 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9455 # The linker will automatically build a .lib file if we build a DLL. 9456 old_archive_from_new_cmds='true' 9457 # FIXME: Should let the user specify the lib program. 9458 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9459 fix_srcfile_path='`cygpath -w "$srcfile"`' 9460 enable_shared_with_static_runtimes=yes 9461 ;; 9462 9463 darwin* | rhapsody*) 9464 9465 9466 archive_cmds_need_lc=no 9467 hardcode_direct=no 9468 hardcode_automatic=yes 9469 hardcode_shlibpath_var=unsupported 9470 if test "$lt_cv_ld_force_load" = "yes"; then 9471 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\"`' 9472 else 9473 whole_archive_flag_spec='' 9474 fi 9475 link_all_deplibs=yes 9476 allow_undefined_flag="$_lt_dar_allow_undefined" 9477 case $cc_basename in 9478 ifort*) _lt_dar_can_shared=yes ;; 9479 *) _lt_dar_can_shared=$GCC ;; 9480 esac 9481 if test "$_lt_dar_can_shared" = "yes"; then 9482 output_verbose_link_cmd=func_echo_all 9483 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}" 9484 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}" 9485 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}" 9486 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}" 9487 9488 else 9489 ld_shlibs=no 9490 fi 9491 9492 ;; 9493 9494 dgux*) 9495 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9496 hardcode_libdir_flag_spec='-L$libdir' 9497 hardcode_shlibpath_var=no 9498 ;; 9499 9500 freebsd1*) 9501 ld_shlibs=no 9502 ;; 9503 9504 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9505 # support. Future versions do this automatically, but an explicit c++rt0.o 9506 # does not break anything, and helps significantly (at the cost of a little 9507 # extra space). 9508 freebsd2.2*) 9509 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9510 hardcode_libdir_flag_spec='-R$libdir' 9511 hardcode_direct=yes 9512 hardcode_shlibpath_var=no 9513 ;; 9514 9515 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9516 freebsd2*) 9517 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9518 hardcode_direct=yes 9519 hardcode_minus_L=yes 9520 hardcode_shlibpath_var=no 9521 ;; 9522 9523 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9524 freebsd* | dragonfly*) 9525 archive_cmds='$CC -shared -o $lib $libobjs $deplibs $compiler_flags' 9526 hardcode_libdir_flag_spec='-R$libdir' 9527 hardcode_direct=yes 9528 hardcode_shlibpath_var=no 9529 ;; 9530 9531 hpux9*) 9532 if test "$GCC" = yes; then 9533 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' 9534 else 9535 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' 9536 fi 9537 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9538 hardcode_libdir_separator=: 9539 hardcode_direct=yes 9540 9541 # hardcode_minus_L: Not really in the search PATH, 9542 # but as the default location of the library. 9543 hardcode_minus_L=yes 9544 export_dynamic_flag_spec='${wl}-E' 9545 ;; 9546 9547 hpux10*) 9548 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9549 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9550 else 9551 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9552 fi 9553 if test "$with_gnu_ld" = no; then 9554 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9555 hardcode_libdir_flag_spec_ld='+b $libdir' 9556 hardcode_libdir_separator=: 9557 hardcode_direct=yes 9558 hardcode_direct_absolute=yes 9559 export_dynamic_flag_spec='${wl}-E' 9560 # hardcode_minus_L: Not really in the search PATH, 9561 # but as the default location of the library. 9562 hardcode_minus_L=yes 9563 fi 9564 ;; 9565 9566 hpux11*) 9567 if test "$GCC" = yes && test "$with_gnu_ld" = no; then 9568 case $host_cpu in 9569 hppa*64*) 9570 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9571 ;; 9572 ia64*) 9573 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9574 ;; 9575 *) 9576 archive_cmds='$CC -shared -fPIC ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9577 ;; 9578 esac 9579 else 9580 case $host_cpu in 9581 hppa*64*) 9582 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9583 ;; 9584 ia64*) 9585 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9586 ;; 9587 *) 9588 9589 # Older versions of the 11.00 compiler do not understand -b yet 9590 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9592$as_echo_n "checking if $CC understands -b... " >&6; } 9593if test "${lt_cv_prog_compiler__b+set}" = set; then : 9594 $as_echo_n "(cached) " >&6 9595else 9596 lt_cv_prog_compiler__b=no 9597 save_LDFLAGS="$LDFLAGS" 9598 LDFLAGS="$LDFLAGS -b" 9599 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9600 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9601 # The linker can only warn and ignore the option if not recognized 9602 # So say no if there are warnings 9603 if test -s conftest.err; then 9604 # Append any errors to the config.log. 9605 cat conftest.err 1>&5 9606 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9607 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9608 if diff conftest.exp conftest.er2 >/dev/null; then 9609 lt_cv_prog_compiler__b=yes 9610 fi 9611 else 9612 lt_cv_prog_compiler__b=yes 9613 fi 9614 fi 9615 $RM -r conftest* 9616 LDFLAGS="$save_LDFLAGS" 9617 9618fi 9619{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9620$as_echo "$lt_cv_prog_compiler__b" >&6; } 9621 9622if test x"$lt_cv_prog_compiler__b" = xyes; then 9623 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9624else 9625 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9626fi 9627 9628 ;; 9629 esac 9630 fi 9631 if test "$with_gnu_ld" = no; then 9632 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir' 9633 hardcode_libdir_separator=: 9634 9635 case $host_cpu in 9636 hppa*64*|ia64*) 9637 hardcode_direct=no 9638 hardcode_shlibpath_var=no 9639 ;; 9640 *) 9641 hardcode_direct=yes 9642 hardcode_direct_absolute=yes 9643 export_dynamic_flag_spec='${wl}-E' 9644 9645 # hardcode_minus_L: Not really in the search PATH, 9646 # but as the default location of the library. 9647 hardcode_minus_L=yes 9648 ;; 9649 esac 9650 fi 9651 ;; 9652 9653 irix5* | irix6* | nonstopux*) 9654 if test "$GCC" = yes; then 9655 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' 9656 # Try to use the -exported_symbol ld option, if it does not 9657 # work, assume that -exports_file does not work either and 9658 # implicitly export all symbols. 9659 save_LDFLAGS="$LDFLAGS" 9660 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null" 9661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9662/* end confdefs.h. */ 9663int foo(void) {} 9664_ACEOF 9665if ac_fn_c_try_link "$LINENO"; then : 9666 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' 9667 9668fi 9669rm -f core conftest.err conftest.$ac_objext \ 9670 conftest$ac_exeext conftest.$ac_ext 9671 LDFLAGS="$save_LDFLAGS" 9672 else 9673 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' 9674 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' 9675 fi 9676 archive_cmds_need_lc='no' 9677 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9678 hardcode_libdir_separator=: 9679 inherit_rpath=yes 9680 link_all_deplibs=yes 9681 ;; 9682 9683 netbsd*) 9684 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9685 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9686 else 9687 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9688 fi 9689 hardcode_libdir_flag_spec='-R$libdir' 9690 hardcode_direct=yes 9691 hardcode_shlibpath_var=no 9692 ;; 9693 9694 newsos6) 9695 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9696 hardcode_direct=yes 9697 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9698 hardcode_libdir_separator=: 9699 hardcode_shlibpath_var=no 9700 ;; 9701 9702 *nto* | *qnx*) 9703 ;; 9704 9705 openbsd*) 9706 if test -f /usr/libexec/ld.so; then 9707 hardcode_direct=yes 9708 hardcode_shlibpath_var=no 9709 hardcode_direct_absolute=yes 9710 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 9711 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9712 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols' 9713 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9714 export_dynamic_flag_spec='${wl}-E' 9715 else 9716 case $host_os in 9717 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*) 9718 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9719 hardcode_libdir_flag_spec='-R$libdir' 9720 ;; 9721 *) 9722 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9723 hardcode_libdir_flag_spec='${wl}-rpath,$libdir' 9724 ;; 9725 esac 9726 fi 9727 else 9728 ld_shlibs=no 9729 fi 9730 ;; 9731 9732 os2*) 9733 hardcode_libdir_flag_spec='-L$libdir' 9734 hardcode_minus_L=yes 9735 allow_undefined_flag=unsupported 9736 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' 9737 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def' 9738 ;; 9739 9740 osf3*) 9741 if test "$GCC" = yes; then 9742 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9743 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' 9744 else 9745 allow_undefined_flag=' -expect_unresolved \*' 9746 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' 9747 fi 9748 archive_cmds_need_lc='no' 9749 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9750 hardcode_libdir_separator=: 9751 ;; 9752 9753 osf4* | osf5*) # as osf3* with the addition of -msym flag 9754 if test "$GCC" = yes; then 9755 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*' 9756 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' 9757 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir' 9758 else 9759 allow_undefined_flag=' -expect_unresolved \*' 9760 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' 9761 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~ 9762 $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' 9763 9764 # Both c and cxx compiler support -rpath directly 9765 hardcode_libdir_flag_spec='-rpath $libdir' 9766 fi 9767 archive_cmds_need_lc='no' 9768 hardcode_libdir_separator=: 9769 ;; 9770 9771 solaris*) 9772 no_undefined_flag=' -z defs' 9773 if test "$GCC" = yes; then 9774 wlarc='${wl}' 9775 archive_cmds='$CC -shared ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags' 9776 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9777 $CC -shared ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9778 else 9779 case `$CC -V 2>&1` in 9780 *"Compilers 5.0"*) 9781 wlarc='' 9782 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags' 9783 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9784 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9785 ;; 9786 *) 9787 wlarc='${wl}' 9788 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9789 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9790 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9791 ;; 9792 esac 9793 fi 9794 hardcode_libdir_flag_spec='-R$libdir' 9795 hardcode_shlibpath_var=no 9796 case $host_os in 9797 solaris2.[0-5] | solaris2.[0-5].*) ;; 9798 *) 9799 # The compiler driver will combine and reorder linker options, 9800 # but understands `-z linker_flag'. GCC discards it without `$wl', 9801 # but is careful enough not to reorder. 9802 # Supported since Solaris 2.6 (maybe 2.5.1?) 9803 if test "$GCC" = yes; then 9804 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract' 9805 else 9806 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9807 fi 9808 ;; 9809 esac 9810 link_all_deplibs=yes 9811 ;; 9812 9813 sunos4*) 9814 if test "x$host_vendor" = xsequent; then 9815 # Use $CC to link under sequent, because it throws in some extra .o 9816 # files that make .init and .fini sections work. 9817 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9818 else 9819 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9820 fi 9821 hardcode_libdir_flag_spec='-L$libdir' 9822 hardcode_direct=yes 9823 hardcode_minus_L=yes 9824 hardcode_shlibpath_var=no 9825 ;; 9826 9827 sysv4) 9828 case $host_vendor in 9829 sni) 9830 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9831 hardcode_direct=yes # is this really true??? 9832 ;; 9833 siemens) 9834 ## LD is ld it makes a PLAMLIB 9835 ## CC just makes a GrossModule. 9836 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9837 reload_cmds='$CC -r -o $output$reload_objs' 9838 hardcode_direct=no 9839 ;; 9840 motorola) 9841 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9842 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9843 ;; 9844 esac 9845 runpath_var='LD_RUN_PATH' 9846 hardcode_shlibpath_var=no 9847 ;; 9848 9849 sysv4.3*) 9850 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9851 hardcode_shlibpath_var=no 9852 export_dynamic_flag_spec='-Bexport' 9853 ;; 9854 9855 sysv4*MP*) 9856 if test -d /usr/nec; then 9857 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9858 hardcode_shlibpath_var=no 9859 runpath_var=LD_RUN_PATH 9860 hardcode_runpath_var=yes 9861 ld_shlibs=yes 9862 fi 9863 ;; 9864 9865 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9866 no_undefined_flag='${wl}-z,text' 9867 archive_cmds_need_lc=no 9868 hardcode_shlibpath_var=no 9869 runpath_var='LD_RUN_PATH' 9870 9871 if test "$GCC" = yes; then 9872 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9873 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9874 else 9875 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9876 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9877 fi 9878 ;; 9879 9880 sysv5* | sco3.2v5* | sco5v6*) 9881 # Note: We can NOT use -z defs as we might desire, because we do not 9882 # link with -lc, and that would cause any symbols used from libc to 9883 # always be unresolved, which means just about no library would 9884 # ever link correctly. If we're not using GNU ld we use -z text 9885 # though, which does catch some bad symbols but isn't as heavy-handed 9886 # as -z defs. 9887 no_undefined_flag='${wl}-z,text' 9888 allow_undefined_flag='${wl}-z,nodefs' 9889 archive_cmds_need_lc=no 9890 hardcode_shlibpath_var=no 9891 hardcode_libdir_flag_spec='${wl}-R,$libdir' 9892 hardcode_libdir_separator=':' 9893 link_all_deplibs=yes 9894 export_dynamic_flag_spec='${wl}-Bexport' 9895 runpath_var='LD_RUN_PATH' 9896 9897 if test "$GCC" = yes; then 9898 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9899 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9900 else 9901 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9902 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9903 fi 9904 ;; 9905 9906 uts4*) 9907 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9908 hardcode_libdir_flag_spec='-L$libdir' 9909 hardcode_shlibpath_var=no 9910 ;; 9911 9912 *) 9913 ld_shlibs=no 9914 ;; 9915 esac 9916 9917 if test x$host_vendor = xsni; then 9918 case $host in 9919 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9920 export_dynamic_flag_spec='${wl}-Blargedynsym' 9921 ;; 9922 esac 9923 fi 9924 fi 9925 9926{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9927$as_echo "$ld_shlibs" >&6; } 9928test "$ld_shlibs" = no && can_build_shared=no 9929 9930with_gnu_ld=$with_gnu_ld 9931 9932 9933 9934 9935 9936 9937 9938 9939 9940 9941 9942 9943 9944 9945 9946# 9947# Do we need to explicitly link libc? 9948# 9949case "x$archive_cmds_need_lc" in 9950x|xyes) 9951 # Assume -lc should be added 9952 archive_cmds_need_lc=yes 9953 9954 if test "$enable_shared" = yes && test "$GCC" = yes; then 9955 case $archive_cmds in 9956 *'~'*) 9957 # FIXME: we may have to deal with multi-command sequences. 9958 ;; 9959 '$CC '*) 9960 # Test whether the compiler implicitly links with -lc since on some 9961 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9962 # to ld, don't add -lc before -lgcc. 9963 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9964$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9965if test "${lt_cv_archive_cmds_need_lc+set}" = set; then : 9966 $as_echo_n "(cached) " >&6 9967else 9968 $RM conftest* 9969 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9970 9971 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9972 (eval $ac_compile) 2>&5 9973 ac_status=$? 9974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9975 test $ac_status = 0; } 2>conftest.err; then 9976 soname=conftest 9977 lib=conftest 9978 libobjs=conftest.$ac_objext 9979 deplibs= 9980 wl=$lt_prog_compiler_wl 9981 pic_flag=$lt_prog_compiler_pic 9982 compiler_flags=-v 9983 linker_flags=-v 9984 verstring= 9985 output_objdir=. 9986 libname=conftest 9987 lt_save_allow_undefined_flag=$allow_undefined_flag 9988 allow_undefined_flag= 9989 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9990 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9991 ac_status=$? 9992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9993 test $ac_status = 0; } 9994 then 9995 lt_cv_archive_cmds_need_lc=no 9996 else 9997 lt_cv_archive_cmds_need_lc=yes 9998 fi 9999 allow_undefined_flag=$lt_save_allow_undefined_flag 10000 else 10001 cat conftest.err 1>&5 10002 fi 10003 $RM conftest* 10004 10005fi 10006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 10007$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 10008 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 10009 ;; 10010 esac 10011 fi 10012 ;; 10013esac 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 10144 10145 10146 10147 10148 10149 10150 10151 10152 10153 10154 10155 10156 10157 10158 10159 10160 10161 10162 10163 10164 10165 10166 10167 10168 10169 10170 10171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 10172$as_echo_n "checking dynamic linker characteristics... " >&6; } 10173 10174if test "$GCC" = yes; then 10175 case $host_os in 10176 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;; 10177 *) lt_awk_arg="/^libraries:/" ;; 10178 esac 10179 case $host_os in 10180 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;; 10181 *) lt_sed_strip_eq="s,=/,/,g" ;; 10182 esac 10183 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 10184 case $lt_search_path_spec in 10185 *\;*) 10186 # if the path contains ";" then we assume it to be the separator 10187 # otherwise default to the standard path separator (i.e. ":") - it is 10188 # assumed that no part of a normal pathname contains ";" but that should 10189 # okay in the real world where ";" in dirpaths is itself problematic. 10190 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 10191 ;; 10192 *) 10193 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 10194 ;; 10195 esac 10196 # Ok, now we have the path, separated by spaces, we can step through it 10197 # and add multilib dir if necessary. 10198 lt_tmp_lt_search_path_spec= 10199 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 10200 for lt_sys_path in $lt_search_path_spec; do 10201 if test -d "$lt_sys_path/$lt_multi_os_dir"; then 10202 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir" 10203 else 10204 test -d "$lt_sys_path" && \ 10205 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 10206 fi 10207 done 10208 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 10209BEGIN {RS=" "; FS="/|\n";} { 10210 lt_foo=""; 10211 lt_count=0; 10212 for (lt_i = NF; lt_i > 0; lt_i--) { 10213 if ($lt_i != "" && $lt_i != ".") { 10214 if ($lt_i == "..") { 10215 lt_count++; 10216 } else { 10217 if (lt_count == 0) { 10218 lt_foo="/" $lt_i lt_foo; 10219 } else { 10220 lt_count--; 10221 } 10222 } 10223 } 10224 } 10225 if (lt_foo != "") { lt_freq[lt_foo]++; } 10226 if (lt_freq[lt_foo] == 1) { print lt_foo; } 10227}'` 10228 # AWK program above erroneously prepends '/' to C:/dos/paths 10229 # for these hosts. 10230 case $host_os in 10231 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 10232 $SED 's,/\([A-Za-z]:\),\1,g'` ;; 10233 esac 10234 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 10235else 10236 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10237fi 10238library_names_spec= 10239libname_spec='lib$name' 10240soname_spec= 10241shrext_cmds=".so" 10242postinstall_cmds= 10243postuninstall_cmds= 10244finish_cmds= 10245finish_eval= 10246shlibpath_var= 10247shlibpath_overrides_runpath=unknown 10248version_type=none 10249dynamic_linker="$host_os ld.so" 10250sys_lib_dlsearch_path_spec="/lib /usr/lib" 10251need_lib_prefix=unknown 10252hardcode_into_libs=no 10253 10254# when you set need_version to no, make sure it does not cause -set_version 10255# flags to be left without arguments 10256need_version=unknown 10257 10258case $host_os in 10259aix3*) 10260 version_type=linux 10261 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a' 10262 shlibpath_var=LIBPATH 10263 10264 # AIX 3 has no versioning support, so we append a major version to the name. 10265 soname_spec='${libname}${release}${shared_ext}$major' 10266 ;; 10267 10268aix[4-9]*) 10269 version_type=linux 10270 need_lib_prefix=no 10271 need_version=no 10272 hardcode_into_libs=yes 10273 if test "$host_cpu" = ia64; then 10274 # AIX 5 supports IA64 10275 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}' 10276 shlibpath_var=LD_LIBRARY_PATH 10277 else 10278 # With GCC up to 2.95.x, collect2 would create an import file 10279 # for dependence libraries. The import file would start with 10280 # the line `#! .'. This would cause the generated library to 10281 # depend on `.', always an invalid library. This was fixed in 10282 # development snapshots of GCC prior to 3.0. 10283 case $host_os in 10284 aix4 | aix4.[01] | aix4.[01].*) 10285 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 10286 echo ' yes ' 10287 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then 10288 : 10289 else 10290 can_build_shared=no 10291 fi 10292 ;; 10293 esac 10294 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct 10295 # soname into executable. Probably we can add versioning support to 10296 # collect2, so additional links can be useful in future. 10297 if test "$aix_use_runtimelinking" = yes; then 10298 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 10299 # instead of lib<name>.a to let people know that these are not 10300 # typical AIX shared libraries. 10301 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10302 else 10303 # We preserve .a as extension for shared libraries through AIX4.2 10304 # and later when we are not doing run time linking. 10305 library_names_spec='${libname}${release}.a $libname.a' 10306 soname_spec='${libname}${release}${shared_ext}$major' 10307 fi 10308 shlibpath_var=LIBPATH 10309 fi 10310 ;; 10311 10312amigaos*) 10313 case $host_cpu in 10314 powerpc) 10315 # Since July 2007 AmigaOS4 officially supports .so libraries. 10316 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10317 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10318 ;; 10319 m68k) 10320 library_names_spec='$libname.ixlibrary $libname.a' 10321 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10322 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' 10323 ;; 10324 esac 10325 ;; 10326 10327beos*) 10328 library_names_spec='${libname}${shared_ext}' 10329 dynamic_linker="$host_os ld.so" 10330 shlibpath_var=LIBRARY_PATH 10331 ;; 10332 10333bsdi[45]*) 10334 version_type=linux 10335 need_version=no 10336 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10337 soname_spec='${libname}${release}${shared_ext}$major' 10338 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10339 shlibpath_var=LD_LIBRARY_PATH 10340 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10341 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10342 # the default ld.so.conf also contains /usr/contrib/lib and 10343 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10344 # libtool to hard-code these into programs 10345 ;; 10346 10347cygwin* | mingw* | pw32* | cegcc*) 10348 version_type=windows 10349 shrext_cmds=".dll" 10350 need_version=no 10351 need_lib_prefix=no 10352 10353 case $GCC,$host_os in 10354 yes,cygwin* | yes,mingw* | yes,pw32* | yes,cegcc*) 10355 library_names_spec='$libname.dll.a' 10356 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10357 postinstall_cmds='base_file=`basename \${file}`~ 10358 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~ 10359 dldir=$destdir/`dirname \$dlpath`~ 10360 test -d \$dldir || mkdir -p \$dldir~ 10361 $install_prog $dir/$dlname \$dldir/$dlname~ 10362 chmod a+x \$dldir/$dlname~ 10363 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10364 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10365 fi' 10366 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10367 dlpath=$dir/\$dldll~ 10368 $RM \$dlpath' 10369 shlibpath_overrides_runpath=yes 10370 10371 case $host_os in 10372 cygwin*) 10373 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10374 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10375 10376 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10377 ;; 10378 mingw* | cegcc*) 10379 # MinGW DLLs use traditional 'lib' prefix 10380 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10381 ;; 10382 pw32*) 10383 # pw32 DLLs use 'pw' prefix rather than 'lib' 10384 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}' 10385 ;; 10386 esac 10387 ;; 10388 10389 *) 10390 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib' 10391 ;; 10392 esac 10393 dynamic_linker='Win32 ld.exe' 10394 # FIXME: first we should search . and the directory the executable is in 10395 shlibpath_var=PATH 10396 ;; 10397 10398darwin* | rhapsody*) 10399 dynamic_linker="$host_os dyld" 10400 version_type=darwin 10401 need_lib_prefix=no 10402 need_version=no 10403 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext' 10404 soname_spec='${libname}${release}${major}$shared_ext' 10405 shlibpath_overrides_runpath=yes 10406 shlibpath_var=DYLD_LIBRARY_PATH 10407 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10408 10409 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10410 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10411 ;; 10412 10413dgux*) 10414 version_type=linux 10415 need_lib_prefix=no 10416 need_version=no 10417 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext' 10418 soname_spec='${libname}${release}${shared_ext}$major' 10419 shlibpath_var=LD_LIBRARY_PATH 10420 ;; 10421 10422freebsd1*) 10423 dynamic_linker=no 10424 ;; 10425 10426freebsd* | dragonfly*) 10427 # DragonFly does not have aout. When/if they implement a new 10428 # versioning mechanism, adjust this. 10429 if test -x /usr/bin/objformat; then 10430 objformat=`/usr/bin/objformat` 10431 else 10432 case $host_os in 10433 freebsd[123]*) objformat=aout ;; 10434 *) objformat=elf ;; 10435 esac 10436 fi 10437 version_type=freebsd-$objformat 10438 case $version_type in 10439 freebsd-elf*) 10440 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10441 need_version=no 10442 need_lib_prefix=no 10443 ;; 10444 freebsd-*) 10445 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix' 10446 need_version=yes 10447 ;; 10448 esac 10449 shlibpath_var=LD_LIBRARY_PATH 10450 case $host_os in 10451 freebsd2*) 10452 shlibpath_overrides_runpath=yes 10453 ;; 10454 freebsd3.[01]* | freebsdelf3.[01]*) 10455 shlibpath_overrides_runpath=yes 10456 hardcode_into_libs=yes 10457 ;; 10458 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10459 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10460 shlibpath_overrides_runpath=no 10461 hardcode_into_libs=yes 10462 ;; 10463 *) # from 4.6 on, and DragonFly 10464 shlibpath_overrides_runpath=yes 10465 hardcode_into_libs=yes 10466 ;; 10467 esac 10468 ;; 10469 10470gnu*) 10471 version_type=linux 10472 need_lib_prefix=no 10473 need_version=no 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 shlibpath_var=LD_LIBRARY_PATH 10477 hardcode_into_libs=yes 10478 ;; 10479 10480haiku*) 10481 version_type=linux 10482 need_lib_prefix=no 10483 need_version=no 10484 dynamic_linker="$host_os runtime_loader" 10485 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}' 10486 soname_spec='${libname}${release}${shared_ext}$major' 10487 shlibpath_var=LIBRARY_PATH 10488 shlibpath_overrides_runpath=yes 10489 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10490 hardcode_into_libs=yes 10491 ;; 10492 10493hpux9* | hpux10* | hpux11*) 10494 # Give a soname corresponding to the major version so that dld.sl refuses to 10495 # link against other versions. 10496 version_type=sunos 10497 need_lib_prefix=no 10498 need_version=no 10499 case $host_cpu in 10500 ia64*) 10501 shrext_cmds='.so' 10502 hardcode_into_libs=yes 10503 dynamic_linker="$host_os dld.so" 10504 shlibpath_var=LD_LIBRARY_PATH 10505 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10506 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10507 soname_spec='${libname}${release}${shared_ext}$major' 10508 if test "X$HPUX_IA64_MODE" = X32; then 10509 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10510 else 10511 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10512 fi 10513 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10514 ;; 10515 hppa*64*) 10516 shrext_cmds='.sl' 10517 hardcode_into_libs=yes 10518 dynamic_linker="$host_os dld.sl" 10519 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10520 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10521 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10522 soname_spec='${libname}${release}${shared_ext}$major' 10523 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10524 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10525 ;; 10526 *) 10527 shrext_cmds='.sl' 10528 dynamic_linker="$host_os dld.sl" 10529 shlibpath_var=SHLIB_PATH 10530 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10531 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10532 soname_spec='${libname}${release}${shared_ext}$major' 10533 ;; 10534 esac 10535 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10536 postinstall_cmds='chmod 555 $lib' 10537 # or fails outright, so override atomically: 10538 install_override_mode=555 10539 ;; 10540 10541interix[3-9]*) 10542 version_type=linux 10543 need_lib_prefix=no 10544 need_version=no 10545 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10546 soname_spec='${libname}${release}${shared_ext}$major' 10547 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10548 shlibpath_var=LD_LIBRARY_PATH 10549 shlibpath_overrides_runpath=no 10550 hardcode_into_libs=yes 10551 ;; 10552 10553irix5* | irix6* | nonstopux*) 10554 case $host_os in 10555 nonstopux*) version_type=nonstopux ;; 10556 *) 10557 if test "$lt_cv_prog_gnu_ld" = yes; then 10558 version_type=linux 10559 else 10560 version_type=irix 10561 fi ;; 10562 esac 10563 need_lib_prefix=no 10564 need_version=no 10565 soname_spec='${libname}${release}${shared_ext}$major' 10566 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}' 10567 case $host_os in 10568 irix5* | nonstopux*) 10569 libsuff= shlibsuff= 10570 ;; 10571 *) 10572 case $LD in # libtool.m4 will add one of these switches to LD 10573 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10574 libsuff= shlibsuff= libmagic=32-bit;; 10575 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10576 libsuff=32 shlibsuff=N32 libmagic=N32;; 10577 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10578 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10579 *) libsuff= shlibsuff= libmagic=never-match;; 10580 esac 10581 ;; 10582 esac 10583 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10584 shlibpath_overrides_runpath=no 10585 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}" 10586 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}" 10587 hardcode_into_libs=yes 10588 ;; 10589 10590# No shared lib support for Linux oldld, aout, or coff. 10591linux*oldld* | linux*aout* | linux*coff*) 10592 dynamic_linker=no 10593 ;; 10594 10595# This must be Linux ELF. 10596linux* | k*bsd*-gnu | kopensolaris*-gnu) 10597 version_type=linux 10598 need_lib_prefix=no 10599 need_version=no 10600 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10601 soname_spec='${libname}${release}${shared_ext}$major' 10602 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10603 shlibpath_var=LD_LIBRARY_PATH 10604 shlibpath_overrides_runpath=no 10605 10606 # Some binutils ld are patched to set DT_RUNPATH 10607 if test "${lt_cv_shlibpath_overrides_runpath+set}" = set; then : 10608 $as_echo_n "(cached) " >&6 10609else 10610 lt_cv_shlibpath_overrides_runpath=no 10611 save_LDFLAGS=$LDFLAGS 10612 save_libdir=$libdir 10613 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10614 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10616/* end confdefs.h. */ 10617 10618int 10619main () 10620{ 10621 10622 ; 10623 return 0; 10624} 10625_ACEOF 10626if ac_fn_c_try_link "$LINENO"; then : 10627 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10628 lt_cv_shlibpath_overrides_runpath=yes 10629fi 10630fi 10631rm -f core conftest.err conftest.$ac_objext \ 10632 conftest$ac_exeext conftest.$ac_ext 10633 LDFLAGS=$save_LDFLAGS 10634 libdir=$save_libdir 10635 10636fi 10637 10638 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10639 10640 # This implies no fast_install, which is unacceptable. 10641 # Some rework will be needed to allow for fast_install 10642 # before this can be enabled. 10643 hardcode_into_libs=yes 10644 10645 # Add ABI-specific directories to the system library path. 10646 sys_lib_dlsearch_path_spec="/lib64 /usr/lib64 /lib /usr/lib" 10647 10648 # Append ld.so.conf contents to the search path 10649 if test -f /etc/ld.so.conf; then 10650 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' ' '` 10651 sys_lib_dlsearch_path_spec="$sys_lib_dlsearch_path_spec $lt_ld_extra" 10652 10653 fi 10654 10655 # We used to test for /lib/ld.so.1 and disable shared libraries on 10656 # powerpc, because MkLinux only supported shared libraries with the 10657 # GNU dynamic linker. Since this was broken with cross compilers, 10658 # most powerpc-linux boxes support dynamic linking these days and 10659 # people can always --disable-shared, the test was removed, and we 10660 # assume the GNU/Linux dynamic linker is in use. 10661 dynamic_linker='GNU/Linux ld.so' 10662 ;; 10663 10664netbsd*) 10665 version_type=sunos 10666 need_lib_prefix=no 10667 need_version=no 10668 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10669 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10670 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10671 dynamic_linker='NetBSD (a.out) ld.so' 10672 else 10673 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}' 10674 soname_spec='${libname}${release}${shared_ext}$major' 10675 dynamic_linker='NetBSD ld.elf_so' 10676 fi 10677 shlibpath_var=LD_LIBRARY_PATH 10678 shlibpath_overrides_runpath=yes 10679 hardcode_into_libs=yes 10680 ;; 10681 10682newsos6) 10683 version_type=linux 10684 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10685 shlibpath_var=LD_LIBRARY_PATH 10686 shlibpath_overrides_runpath=yes 10687 ;; 10688 10689*nto* | *qnx*) 10690 version_type=qnx 10691 need_lib_prefix=no 10692 need_version=no 10693 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10694 soname_spec='${libname}${release}${shared_ext}$major' 10695 shlibpath_var=LD_LIBRARY_PATH 10696 shlibpath_overrides_runpath=no 10697 hardcode_into_libs=yes 10698 dynamic_linker='ldqnx.so' 10699 ;; 10700 10701openbsd*) 10702 version_type=sunos 10703 sys_lib_dlsearch_path_spec="/usr/lib" 10704 need_lib_prefix=no 10705 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs. 10706 case $host_os in 10707 openbsd3.3 | openbsd3.3.*) need_version=yes ;; 10708 *) need_version=no ;; 10709 esac 10710 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10711 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10712 shlibpath_var=LD_LIBRARY_PATH 10713 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then 10714 case $host_os in 10715 openbsd2.[89] | openbsd2.[89].*) 10716 shlibpath_overrides_runpath=no 10717 ;; 10718 *) 10719 shlibpath_overrides_runpath=yes 10720 ;; 10721 esac 10722 else 10723 shlibpath_overrides_runpath=yes 10724 fi 10725 ;; 10726 10727os2*) 10728 libname_spec='$name' 10729 shrext_cmds=".dll" 10730 need_lib_prefix=no 10731 library_names_spec='$libname${shared_ext} $libname.a' 10732 dynamic_linker='OS/2 ld.exe' 10733 shlibpath_var=LIBPATH 10734 ;; 10735 10736osf3* | osf4* | osf5*) 10737 version_type=osf 10738 need_lib_prefix=no 10739 need_version=no 10740 soname_spec='${libname}${release}${shared_ext}$major' 10741 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10742 shlibpath_var=LD_LIBRARY_PATH 10743 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10744 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec" 10745 ;; 10746 10747rdos*) 10748 dynamic_linker=no 10749 ;; 10750 10751solaris*) 10752 version_type=linux 10753 need_lib_prefix=no 10754 need_version=no 10755 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10756 soname_spec='${libname}${release}${shared_ext}$major' 10757 shlibpath_var=LD_LIBRARY_PATH 10758 shlibpath_overrides_runpath=yes 10759 hardcode_into_libs=yes 10760 # ldd complains unless libraries are executable 10761 postinstall_cmds='chmod +x $lib' 10762 ;; 10763 10764sunos4*) 10765 version_type=sunos 10766 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix' 10767 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10768 shlibpath_var=LD_LIBRARY_PATH 10769 shlibpath_overrides_runpath=yes 10770 if test "$with_gnu_ld" = yes; then 10771 need_lib_prefix=no 10772 fi 10773 need_version=yes 10774 ;; 10775 10776sysv4 | sysv4.3*) 10777 version_type=linux 10778 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10779 soname_spec='${libname}${release}${shared_ext}$major' 10780 shlibpath_var=LD_LIBRARY_PATH 10781 case $host_vendor in 10782 sni) 10783 shlibpath_overrides_runpath=no 10784 need_lib_prefix=no 10785 runpath_var=LD_RUN_PATH 10786 ;; 10787 siemens) 10788 need_lib_prefix=no 10789 ;; 10790 motorola) 10791 need_lib_prefix=no 10792 need_version=no 10793 shlibpath_overrides_runpath=no 10794 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10795 ;; 10796 esac 10797 ;; 10798 10799sysv4*MP*) 10800 if test -d /usr/nec ;then 10801 version_type=linux 10802 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}' 10803 soname_spec='$libname${shared_ext}.$major' 10804 shlibpath_var=LD_LIBRARY_PATH 10805 fi 10806 ;; 10807 10808sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10809 version_type=freebsd-elf 10810 need_lib_prefix=no 10811 need_version=no 10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}' 10813 soname_spec='${libname}${release}${shared_ext}$major' 10814 shlibpath_var=LD_LIBRARY_PATH 10815 shlibpath_overrides_runpath=yes 10816 hardcode_into_libs=yes 10817 if test "$with_gnu_ld" = yes; then 10818 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10819 else 10820 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10821 case $host_os in 10822 sco3.2v5*) 10823 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10824 ;; 10825 esac 10826 fi 10827 sys_lib_dlsearch_path_spec='/usr/lib' 10828 ;; 10829 10830tpf*) 10831 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10832 version_type=linux 10833 need_lib_prefix=no 10834 need_version=no 10835 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10836 shlibpath_var=LD_LIBRARY_PATH 10837 shlibpath_overrides_runpath=no 10838 hardcode_into_libs=yes 10839 ;; 10840 10841uts4*) 10842 version_type=linux 10843 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}' 10844 soname_spec='${libname}${release}${shared_ext}$major' 10845 shlibpath_var=LD_LIBRARY_PATH 10846 ;; 10847 10848*) 10849 dynamic_linker=no 10850 ;; 10851esac 10852{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10853$as_echo "$dynamic_linker" >&6; } 10854test "$dynamic_linker" = no && can_build_shared=no 10855 10856variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10857if test "$GCC" = yes; then 10858 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10859fi 10860 10861if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then 10862 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec" 10863fi 10864if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then 10865 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec" 10866fi 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 10924 10925 10926 10927 10928 10929 10930 10931 10932 10933 10934 10935 10936 10937 10938 10939 10940 10941 10942 10943 10944 10945 10946 10947 10948 10949 10950 10951 10952 10953 10954 10955 10956 10957 10958 10959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10960$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10961hardcode_action= 10962if test -n "$hardcode_libdir_flag_spec" || 10963 test -n "$runpath_var" || 10964 test "X$hardcode_automatic" = "Xyes" ; then 10965 10966 # We can hardcode non-existent directories. 10967 if test "$hardcode_direct" != no && 10968 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10969 # have to relink, otherwise we might link with an installed library 10970 # when we should be linking with a yet-to-be-installed one 10971 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no && 10972 test "$hardcode_minus_L" != no; then 10973 # Linking always hardcodes the temporary library directory. 10974 hardcode_action=relink 10975 else 10976 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10977 hardcode_action=immediate 10978 fi 10979else 10980 # We cannot hardcode anything, or else we can only hardcode existing 10981 # directories. 10982 hardcode_action=unsupported 10983fi 10984{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10985$as_echo "$hardcode_action" >&6; } 10986 10987if test "$hardcode_action" = relink || 10988 test "$inherit_rpath" = yes; then 10989 # Fast installation is not supported 10990 enable_fast_install=no 10991elif test "$shlibpath_overrides_runpath" = yes || 10992 test "$enable_shared" = no; then 10993 # Fast installation is not necessary 10994 enable_fast_install=needless 10995fi 10996 10997 10998 10999 11000 11001 11002 if test "x$enable_dlopen" != xyes; then 11003 enable_dlopen=unknown 11004 enable_dlopen_self=unknown 11005 enable_dlopen_self_static=unknown 11006else 11007 lt_cv_dlopen=no 11008 lt_cv_dlopen_libs= 11009 11010 case $host_os in 11011 beos*) 11012 lt_cv_dlopen="load_add_on" 11013 lt_cv_dlopen_libs= 11014 lt_cv_dlopen_self=yes 11015 ;; 11016 11017 mingw* | pw32* | cegcc*) 11018 lt_cv_dlopen="LoadLibrary" 11019 lt_cv_dlopen_libs= 11020 ;; 11021 11022 cygwin*) 11023 lt_cv_dlopen="dlopen" 11024 lt_cv_dlopen_libs= 11025 ;; 11026 11027 darwin*) 11028 # if libdl is installed we need to link against it 11029 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11030$as_echo_n "checking for dlopen in -ldl... " >&6; } 11031if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11032 $as_echo_n "(cached) " >&6 11033else 11034 ac_check_lib_save_LIBS=$LIBS 11035LIBS="-ldl $LIBS" 11036cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11037/* end confdefs.h. */ 11038 11039/* Override any GCC internal prototype to avoid an error. 11040 Use char because int might match the return type of a GCC 11041 builtin and then its argument prototype would still apply. */ 11042#ifdef __cplusplus 11043extern "C" 11044#endif 11045char dlopen (); 11046int 11047main () 11048{ 11049return dlopen (); 11050 ; 11051 return 0; 11052} 11053_ACEOF 11054if ac_fn_c_try_link "$LINENO"; then : 11055 ac_cv_lib_dl_dlopen=yes 11056else 11057 ac_cv_lib_dl_dlopen=no 11058fi 11059rm -f core conftest.err conftest.$ac_objext \ 11060 conftest$ac_exeext conftest.$ac_ext 11061LIBS=$ac_check_lib_save_LIBS 11062fi 11063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11064$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11065if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11066 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11067else 11068 11069 lt_cv_dlopen="dyld" 11070 lt_cv_dlopen_libs= 11071 lt_cv_dlopen_self=yes 11072 11073fi 11074 11075 ;; 11076 11077 *) 11078 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 11079if test "x$ac_cv_func_shl_load" = x""yes; then : 11080 lt_cv_dlopen="shl_load" 11081else 11082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 11083$as_echo_n "checking for shl_load in -ldld... " >&6; } 11084if test "${ac_cv_lib_dld_shl_load+set}" = set; then : 11085 $as_echo_n "(cached) " >&6 11086else 11087 ac_check_lib_save_LIBS=$LIBS 11088LIBS="-ldld $LIBS" 11089cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11090/* end confdefs.h. */ 11091 11092/* Override any GCC internal prototype to avoid an error. 11093 Use char because int might match the return type of a GCC 11094 builtin and then its argument prototype would still apply. */ 11095#ifdef __cplusplus 11096extern "C" 11097#endif 11098char shl_load (); 11099int 11100main () 11101{ 11102return shl_load (); 11103 ; 11104 return 0; 11105} 11106_ACEOF 11107if ac_fn_c_try_link "$LINENO"; then : 11108 ac_cv_lib_dld_shl_load=yes 11109else 11110 ac_cv_lib_dld_shl_load=no 11111fi 11112rm -f core conftest.err conftest.$ac_objext \ 11113 conftest$ac_exeext conftest.$ac_ext 11114LIBS=$ac_check_lib_save_LIBS 11115fi 11116{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 11117$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 11118if test "x$ac_cv_lib_dld_shl_load" = x""yes; then : 11119 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld" 11120else 11121 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 11122if test "x$ac_cv_func_dlopen" = x""yes; then : 11123 lt_cv_dlopen="dlopen" 11124else 11125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 11126$as_echo_n "checking for dlopen in -ldl... " >&6; } 11127if test "${ac_cv_lib_dl_dlopen+set}" = set; then : 11128 $as_echo_n "(cached) " >&6 11129else 11130 ac_check_lib_save_LIBS=$LIBS 11131LIBS="-ldl $LIBS" 11132cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11133/* end confdefs.h. */ 11134 11135/* Override any GCC internal prototype to avoid an error. 11136 Use char because int might match the return type of a GCC 11137 builtin and then its argument prototype would still apply. */ 11138#ifdef __cplusplus 11139extern "C" 11140#endif 11141char dlopen (); 11142int 11143main () 11144{ 11145return dlopen (); 11146 ; 11147 return 0; 11148} 11149_ACEOF 11150if ac_fn_c_try_link "$LINENO"; then : 11151 ac_cv_lib_dl_dlopen=yes 11152else 11153 ac_cv_lib_dl_dlopen=no 11154fi 11155rm -f core conftest.err conftest.$ac_objext \ 11156 conftest$ac_exeext conftest.$ac_ext 11157LIBS=$ac_check_lib_save_LIBS 11158fi 11159{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 11160$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 11161if test "x$ac_cv_lib_dl_dlopen" = x""yes; then : 11162 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl" 11163else 11164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 11165$as_echo_n "checking for dlopen in -lsvld... " >&6; } 11166if test "${ac_cv_lib_svld_dlopen+set}" = set; then : 11167 $as_echo_n "(cached) " >&6 11168else 11169 ac_check_lib_save_LIBS=$LIBS 11170LIBS="-lsvld $LIBS" 11171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11172/* end confdefs.h. */ 11173 11174/* Override any GCC internal prototype to avoid an error. 11175 Use char because int might match the return type of a GCC 11176 builtin and then its argument prototype would still apply. */ 11177#ifdef __cplusplus 11178extern "C" 11179#endif 11180char dlopen (); 11181int 11182main () 11183{ 11184return dlopen (); 11185 ; 11186 return 0; 11187} 11188_ACEOF 11189if ac_fn_c_try_link "$LINENO"; then : 11190 ac_cv_lib_svld_dlopen=yes 11191else 11192 ac_cv_lib_svld_dlopen=no 11193fi 11194rm -f core conftest.err conftest.$ac_objext \ 11195 conftest$ac_exeext conftest.$ac_ext 11196LIBS=$ac_check_lib_save_LIBS 11197fi 11198{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11199$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11200if test "x$ac_cv_lib_svld_dlopen" = x""yes; then : 11201 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld" 11202else 11203 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11204$as_echo_n "checking for dld_link in -ldld... " >&6; } 11205if test "${ac_cv_lib_dld_dld_link+set}" = set; then : 11206 $as_echo_n "(cached) " >&6 11207else 11208 ac_check_lib_save_LIBS=$LIBS 11209LIBS="-ldld $LIBS" 11210cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11211/* end confdefs.h. */ 11212 11213/* Override any GCC internal prototype to avoid an error. 11214 Use char because int might match the return type of a GCC 11215 builtin and then its argument prototype would still apply. */ 11216#ifdef __cplusplus 11217extern "C" 11218#endif 11219char dld_link (); 11220int 11221main () 11222{ 11223return dld_link (); 11224 ; 11225 return 0; 11226} 11227_ACEOF 11228if ac_fn_c_try_link "$LINENO"; then : 11229 ac_cv_lib_dld_dld_link=yes 11230else 11231 ac_cv_lib_dld_dld_link=no 11232fi 11233rm -f core conftest.err conftest.$ac_objext \ 11234 conftest$ac_exeext conftest.$ac_ext 11235LIBS=$ac_check_lib_save_LIBS 11236fi 11237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11238$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11239if test "x$ac_cv_lib_dld_dld_link" = x""yes; then : 11240 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld" 11241fi 11242 11243 11244fi 11245 11246 11247fi 11248 11249 11250fi 11251 11252 11253fi 11254 11255 11256fi 11257 11258 ;; 11259 esac 11260 11261 if test "x$lt_cv_dlopen" != xno; then 11262 enable_dlopen=yes 11263 else 11264 enable_dlopen=no 11265 fi 11266 11267 case $lt_cv_dlopen in 11268 dlopen) 11269 save_CPPFLAGS="$CPPFLAGS" 11270 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11271 11272 save_LDFLAGS="$LDFLAGS" 11273 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11274 11275 save_LIBS="$LIBS" 11276 LIBS="$lt_cv_dlopen_libs $LIBS" 11277 11278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11279$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11280if test "${lt_cv_dlopen_self+set}" = set; then : 11281 $as_echo_n "(cached) " >&6 11282else 11283 if test "$cross_compiling" = yes; then : 11284 lt_cv_dlopen_self=cross 11285else 11286 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11287 lt_status=$lt_dlunknown 11288 cat > conftest.$ac_ext <<_LT_EOF 11289#line $LINENO "configure" 11290#include "confdefs.h" 11291 11292#if HAVE_DLFCN_H 11293#include <dlfcn.h> 11294#endif 11295 11296#include <stdio.h> 11297 11298#ifdef RTLD_GLOBAL 11299# define LT_DLGLOBAL RTLD_GLOBAL 11300#else 11301# ifdef DL_GLOBAL 11302# define LT_DLGLOBAL DL_GLOBAL 11303# else 11304# define LT_DLGLOBAL 0 11305# endif 11306#endif 11307 11308/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11309 find out it does not work in some platform. */ 11310#ifndef LT_DLLAZY_OR_NOW 11311# ifdef RTLD_LAZY 11312# define LT_DLLAZY_OR_NOW RTLD_LAZY 11313# else 11314# ifdef DL_LAZY 11315# define LT_DLLAZY_OR_NOW DL_LAZY 11316# else 11317# ifdef RTLD_NOW 11318# define LT_DLLAZY_OR_NOW RTLD_NOW 11319# else 11320# ifdef DL_NOW 11321# define LT_DLLAZY_OR_NOW DL_NOW 11322# else 11323# define LT_DLLAZY_OR_NOW 0 11324# endif 11325# endif 11326# endif 11327# endif 11328#endif 11329 11330/* When -fvisbility=hidden is used, assume the code has been annotated 11331 correspondingly for the symbols needed. */ 11332#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11333void fnord () __attribute__((visibility("default"))); 11334#endif 11335 11336void fnord () { int i=42; } 11337int main () 11338{ 11339 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11340 int status = $lt_dlunknown; 11341 11342 if (self) 11343 { 11344 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11345 else 11346 { 11347 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11348 else puts (dlerror ()); 11349 } 11350 /* dlclose (self); */ 11351 } 11352 else 11353 puts (dlerror ()); 11354 11355 return status; 11356} 11357_LT_EOF 11358 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11359 (eval $ac_link) 2>&5 11360 ac_status=$? 11361 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11362 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11363 (./conftest; exit; ) >&5 2>/dev/null 11364 lt_status=$? 11365 case x$lt_status in 11366 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11367 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11368 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11369 esac 11370 else : 11371 # compilation failed 11372 lt_cv_dlopen_self=no 11373 fi 11374fi 11375rm -fr conftest* 11376 11377 11378fi 11379{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11380$as_echo "$lt_cv_dlopen_self" >&6; } 11381 11382 if test "x$lt_cv_dlopen_self" = xyes; then 11383 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11385$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11386if test "${lt_cv_dlopen_self_static+set}" = set; then : 11387 $as_echo_n "(cached) " >&6 11388else 11389 if test "$cross_compiling" = yes; then : 11390 lt_cv_dlopen_self_static=cross 11391else 11392 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11393 lt_status=$lt_dlunknown 11394 cat > conftest.$ac_ext <<_LT_EOF 11395#line $LINENO "configure" 11396#include "confdefs.h" 11397 11398#if HAVE_DLFCN_H 11399#include <dlfcn.h> 11400#endif 11401 11402#include <stdio.h> 11403 11404#ifdef RTLD_GLOBAL 11405# define LT_DLGLOBAL RTLD_GLOBAL 11406#else 11407# ifdef DL_GLOBAL 11408# define LT_DLGLOBAL DL_GLOBAL 11409# else 11410# define LT_DLGLOBAL 0 11411# endif 11412#endif 11413 11414/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11415 find out it does not work in some platform. */ 11416#ifndef LT_DLLAZY_OR_NOW 11417# ifdef RTLD_LAZY 11418# define LT_DLLAZY_OR_NOW RTLD_LAZY 11419# else 11420# ifdef DL_LAZY 11421# define LT_DLLAZY_OR_NOW DL_LAZY 11422# else 11423# ifdef RTLD_NOW 11424# define LT_DLLAZY_OR_NOW RTLD_NOW 11425# else 11426# ifdef DL_NOW 11427# define LT_DLLAZY_OR_NOW DL_NOW 11428# else 11429# define LT_DLLAZY_OR_NOW 0 11430# endif 11431# endif 11432# endif 11433# endif 11434#endif 11435 11436/* When -fvisbility=hidden is used, assume the code has been annotated 11437 correspondingly for the symbols needed. */ 11438#if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11439void fnord () __attribute__((visibility("default"))); 11440#endif 11441 11442void fnord () { int i=42; } 11443int main () 11444{ 11445 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11446 int status = $lt_dlunknown; 11447 11448 if (self) 11449 { 11450 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11451 else 11452 { 11453 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11454 else puts (dlerror ()); 11455 } 11456 /* dlclose (self); */ 11457 } 11458 else 11459 puts (dlerror ()); 11460 11461 return status; 11462} 11463_LT_EOF 11464 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11465 (eval $ac_link) 2>&5 11466 ac_status=$? 11467 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11468 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then 11469 (./conftest; exit; ) >&5 2>/dev/null 11470 lt_status=$? 11471 case x$lt_status in 11472 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11473 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11474 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11475 esac 11476 else : 11477 # compilation failed 11478 lt_cv_dlopen_self_static=no 11479 fi 11480fi 11481rm -fr conftest* 11482 11483 11484fi 11485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11486$as_echo "$lt_cv_dlopen_self_static" >&6; } 11487 fi 11488 11489 CPPFLAGS="$save_CPPFLAGS" 11490 LDFLAGS="$save_LDFLAGS" 11491 LIBS="$save_LIBS" 11492 ;; 11493 esac 11494 11495 case $lt_cv_dlopen_self in 11496 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11497 *) enable_dlopen_self=unknown ;; 11498 esac 11499 11500 case $lt_cv_dlopen_self_static in 11501 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11502 *) enable_dlopen_self_static=unknown ;; 11503 esac 11504fi 11505 11506 11507 11508 11509 11510 11511 11512 11513 11514 11515 11516 11517 11518 11519 11520 11521 11522striplib= 11523old_striplib= 11524{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11525$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11526if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11527 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11528 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11530$as_echo "yes" >&6; } 11531else 11532# FIXME - insert some real tests, host_os isn't really good enough 11533 case $host_os in 11534 darwin*) 11535 if test -n "$STRIP" ; then 11536 striplib="$STRIP -x" 11537 old_striplib="$STRIP -S" 11538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11539$as_echo "yes" >&6; } 11540 else 11541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11542$as_echo "no" >&6; } 11543 fi 11544 ;; 11545 *) 11546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11547$as_echo "no" >&6; } 11548 ;; 11549 esac 11550fi 11551 11552 11553 11554 11555 11556 11557 11558 11559 11560 11561 11562 11563 # Report which library types will actually be built 11564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11565$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11567$as_echo "$can_build_shared" >&6; } 11568 11569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11570$as_echo_n "checking whether to build shared libraries... " >&6; } 11571 test "$can_build_shared" = "no" && enable_shared=no 11572 11573 # On AIX, shared libraries and static libraries use the same namespace, and 11574 # are all built from PIC. 11575 case $host_os in 11576 aix3*) 11577 test "$enable_shared" = yes && enable_static=no 11578 if test -n "$RANLIB"; then 11579 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11580 postinstall_cmds='$RANLIB $lib' 11581 fi 11582 ;; 11583 11584 aix[4-9]*) 11585 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then 11586 test "$enable_shared" = yes && enable_static=no 11587 fi 11588 ;; 11589 esac 11590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11591$as_echo "$enable_shared" >&6; } 11592 11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11594$as_echo_n "checking whether to build static libraries... " >&6; } 11595 # Make sure either enable_shared or enable_static is yes. 11596 test "$enable_shared" = yes || enable_static=yes 11597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11598$as_echo "$enable_static" >&6; } 11599 11600 11601 11602 11603fi 11604ac_ext=c 11605ac_cpp='$CPP $CPPFLAGS' 11606ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11607ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11608ac_compiler_gnu=$ac_cv_c_compiler_gnu 11609 11610CC="$lt_save_CC" 11611 11612 11613 11614 11615 11616 11617 11618 11619 11620 11621 11622 11623 11624 ac_config_commands="$ac_config_commands libtool" 11625 11626 11627 11628 11629# Only expand once: 11630 11631 11632for ac_prog in perl5 perl 11633do 11634 # Extract the first word of "$ac_prog", so it can be a program name with args. 11635set dummy $ac_prog; ac_word=$2 11636{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11637$as_echo_n "checking for $ac_word... " >&6; } 11638if test "${ac_cv_path_PERL+set}" = set; then : 11639 $as_echo_n "(cached) " >&6 11640else 11641 case $PERL in 11642 [\\/]* | ?:[\\/]*) 11643 ac_cv_path_PERL="$PERL" # Let the user override the test with a path. 11644 ;; 11645 *) 11646 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11647for as_dir in $PATH 11648do 11649 IFS=$as_save_IFS 11650 test -z "$as_dir" && as_dir=. 11651 for ac_exec_ext in '' $ac_executable_extensions; do 11652 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11653 ac_cv_path_PERL="$as_dir/$ac_word$ac_exec_ext" 11654 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11655 break 2 11656 fi 11657done 11658 done 11659IFS=$as_save_IFS 11660 11661 ;; 11662esac 11663fi 11664PERL=$ac_cv_path_PERL 11665if test -n "$PERL"; then 11666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5 11667$as_echo "$PERL" >&6; } 11668else 11669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11670$as_echo "no" >&6; } 11671fi 11672 11673 11674 test -n "$PERL" && break 11675done 11676test -n "$PERL" || PERL="perl" 11677 11678 11679CFLAGS="-I.. -I${srcdir}/.. $CFLAGS" 11680ALL_LINGUAS="" 11681 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 11683$as_echo_n "checking whether NLS is requested... " >&6; } 11684 # Check whether --enable-nls was given. 11685if test "${enable_nls+set}" = set; then : 11686 enableval=$enable_nls; USE_NLS=$enableval 11687else 11688 USE_NLS=yes 11689fi 11690 11691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 11692$as_echo "$USE_NLS" >&6; } 11693 11694 11695 11696 11697 GETTEXT_MACRO_VERSION=0.18 11698 11699 11700 11701 11702# Prepare PATH_SEPARATOR. 11703# The user is always right. 11704if test "${PATH_SEPARATOR+set}" != set; then 11705 echo "#! /bin/sh" >conf$$.sh 11706 echo "exit 0" >>conf$$.sh 11707 chmod +x conf$$.sh 11708 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11709 PATH_SEPARATOR=';' 11710 else 11711 PATH_SEPARATOR=: 11712 fi 11713 rm -f conf$$.sh 11714fi 11715 11716# Find out how to test for executable files. Don't use a zero-byte file, 11717# as systems may use methods other than mode bits to determine executability. 11718cat >conf$$.file <<_ASEOF 11719#! /bin/sh 11720exit 0 11721_ASEOF 11722chmod +x conf$$.file 11723if test -x conf$$.file >/dev/null 2>&1; then 11724 ac_executable_p="test -x" 11725else 11726 ac_executable_p="test -f" 11727fi 11728rm -f conf$$.file 11729 11730# Extract the first word of "msgfmt", so it can be a program name with args. 11731set dummy msgfmt; ac_word=$2 11732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11733$as_echo_n "checking for $ac_word... " >&6; } 11734if test "${ac_cv_path_MSGFMT+set}" = set; then : 11735 $as_echo_n "(cached) " >&6 11736else 11737 case "$MSGFMT" in 11738 [\\/]* | ?:[\\/]*) 11739 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 11740 ;; 11741 *) 11742 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11743 for ac_dir in $PATH; do 11744 IFS="$ac_save_IFS" 11745 test -z "$ac_dir" && ac_dir=. 11746 for ac_exec_ext in '' $ac_executable_extensions; do 11747 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11748 echo "$as_me: trying $ac_dir/$ac_word..." >&5 11749 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 11750 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11751 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 11752 break 2 11753 fi 11754 fi 11755 done 11756 done 11757 IFS="$ac_save_IFS" 11758 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 11759 ;; 11760esac 11761fi 11762MSGFMT="$ac_cv_path_MSGFMT" 11763if test "$MSGFMT" != ":"; then 11764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 11765$as_echo "$MSGFMT" >&6; } 11766else 11767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11768$as_echo "no" >&6; } 11769fi 11770 11771 # Extract the first word of "gmsgfmt", so it can be a program name with args. 11772set dummy gmsgfmt; ac_word=$2 11773{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11774$as_echo_n "checking for $ac_word... " >&6; } 11775if test "${ac_cv_path_GMSGFMT+set}" = set; then : 11776 $as_echo_n "(cached) " >&6 11777else 11778 case $GMSGFMT in 11779 [\\/]* | ?:[\\/]*) 11780 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 11781 ;; 11782 *) 11783 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11784for as_dir in $PATH 11785do 11786 IFS=$as_save_IFS 11787 test -z "$as_dir" && as_dir=. 11788 for ac_exec_ext in '' $ac_executable_extensions; do 11789 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 11790 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 11791 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11792 break 2 11793 fi 11794done 11795 done 11796IFS=$as_save_IFS 11797 11798 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 11799 ;; 11800esac 11801fi 11802GMSGFMT=$ac_cv_path_GMSGFMT 11803if test -n "$GMSGFMT"; then 11804 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 11805$as_echo "$GMSGFMT" >&6; } 11806else 11807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11808$as_echo "no" >&6; } 11809fi 11810 11811 11812 11813 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 11814 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 11815 *) MSGFMT_015=$MSGFMT ;; 11816 esac 11817 11818 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 11819 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 11820 *) GMSGFMT_015=$GMSGFMT ;; 11821 esac 11822 11823 11824 11825# Prepare PATH_SEPARATOR. 11826# The user is always right. 11827if test "${PATH_SEPARATOR+set}" != set; then 11828 echo "#! /bin/sh" >conf$$.sh 11829 echo "exit 0" >>conf$$.sh 11830 chmod +x conf$$.sh 11831 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11832 PATH_SEPARATOR=';' 11833 else 11834 PATH_SEPARATOR=: 11835 fi 11836 rm -f conf$$.sh 11837fi 11838 11839# Find out how to test for executable files. Don't use a zero-byte file, 11840# as systems may use methods other than mode bits to determine executability. 11841cat >conf$$.file <<_ASEOF 11842#! /bin/sh 11843exit 0 11844_ASEOF 11845chmod +x conf$$.file 11846if test -x conf$$.file >/dev/null 2>&1; then 11847 ac_executable_p="test -x" 11848else 11849 ac_executable_p="test -f" 11850fi 11851rm -f conf$$.file 11852 11853# Extract the first word of "xgettext", so it can be a program name with args. 11854set dummy xgettext; ac_word=$2 11855{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11856$as_echo_n "checking for $ac_word... " >&6; } 11857if test "${ac_cv_path_XGETTEXT+set}" = set; then : 11858 $as_echo_n "(cached) " >&6 11859else 11860 case "$XGETTEXT" in 11861 [\\/]* | ?:[\\/]*) 11862 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 11863 ;; 11864 *) 11865 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11866 for ac_dir in $PATH; do 11867 IFS="$ac_save_IFS" 11868 test -z "$ac_dir" && ac_dir=. 11869 for ac_exec_ext in '' $ac_executable_extensions; do 11870 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11871 echo "$as_me: trying $ac_dir/$ac_word..." >&5 11872 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 11873 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 11874 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 11875 break 2 11876 fi 11877 fi 11878 done 11879 done 11880 IFS="$ac_save_IFS" 11881 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 11882 ;; 11883esac 11884fi 11885XGETTEXT="$ac_cv_path_XGETTEXT" 11886if test "$XGETTEXT" != ":"; then 11887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 11888$as_echo "$XGETTEXT" >&6; } 11889else 11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11891$as_echo "no" >&6; } 11892fi 11893 11894 rm -f messages.po 11895 11896 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 11897 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 11898 *) XGETTEXT_015=$XGETTEXT ;; 11899 esac 11900 11901 11902 11903# Prepare PATH_SEPARATOR. 11904# The user is always right. 11905if test "${PATH_SEPARATOR+set}" != set; then 11906 echo "#! /bin/sh" >conf$$.sh 11907 echo "exit 0" >>conf$$.sh 11908 chmod +x conf$$.sh 11909 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 11910 PATH_SEPARATOR=';' 11911 else 11912 PATH_SEPARATOR=: 11913 fi 11914 rm -f conf$$.sh 11915fi 11916 11917# Find out how to test for executable files. Don't use a zero-byte file, 11918# as systems may use methods other than mode bits to determine executability. 11919cat >conf$$.file <<_ASEOF 11920#! /bin/sh 11921exit 0 11922_ASEOF 11923chmod +x conf$$.file 11924if test -x conf$$.file >/dev/null 2>&1; then 11925 ac_executable_p="test -x" 11926else 11927 ac_executable_p="test -f" 11928fi 11929rm -f conf$$.file 11930 11931# Extract the first word of "msgmerge", so it can be a program name with args. 11932set dummy msgmerge; ac_word=$2 11933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11934$as_echo_n "checking for $ac_word... " >&6; } 11935if test "${ac_cv_path_MSGMERGE+set}" = set; then : 11936 $as_echo_n "(cached) " >&6 11937else 11938 case "$MSGMERGE" in 11939 [\\/]* | ?:[\\/]*) 11940 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 11941 ;; 11942 *) 11943 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 11944 for ac_dir in $PATH; do 11945 IFS="$ac_save_IFS" 11946 test -z "$ac_dir" && ac_dir=. 11947 for ac_exec_ext in '' $ac_executable_extensions; do 11948 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 11949 echo "$as_me: trying $ac_dir/$ac_word..." >&5 11950 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 11951 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 11952 break 2 11953 fi 11954 fi 11955 done 11956 done 11957 IFS="$ac_save_IFS" 11958 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 11959 ;; 11960esac 11961fi 11962MSGMERGE="$ac_cv_path_MSGMERGE" 11963if test "$MSGMERGE" != ":"; then 11964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 11965$as_echo "$MSGMERGE" >&6; } 11966else 11967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11968$as_echo "no" >&6; } 11969fi 11970 11971 11972 test -n "$localedir" || localedir='${datadir}/locale' 11973 11974 11975 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 11976 11977 11978 ac_config_commands="$ac_config_commands po-directories" 11979 11980 11981 11982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2 or newer" >&5 11983$as_echo_n "checking whether we are using the GNU C Library 2 or newer... " >&6; } 11984if test "${ac_cv_gnu_library_2+set}" = set; then : 11985 $as_echo_n "(cached) " >&6 11986else 11987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11988/* end confdefs.h. */ 11989 11990#include <features.h> 11991#ifdef __GNU_LIBRARY__ 11992 #if (__GLIBC__ >= 2) 11993 Lucky GNU user 11994 #endif 11995#endif 11996 11997_ACEOF 11998if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 11999 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 12000 ac_cv_gnu_library_2=yes 12001else 12002 ac_cv_gnu_library_2=no 12003fi 12004rm -f conftest* 12005 12006 12007 12008fi 12009{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2" >&5 12010$as_echo "$ac_cv_gnu_library_2" >&6; } 12011 12012 GLIBC2="$ac_cv_gnu_library_2" 12013 12014 12015if test -n "$ac_tool_prefix"; then 12016 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 12017set dummy ${ac_tool_prefix}ranlib; ac_word=$2 12018{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12019$as_echo_n "checking for $ac_word... " >&6; } 12020if test "${ac_cv_prog_RANLIB+set}" = set; then : 12021 $as_echo_n "(cached) " >&6 12022else 12023 if test -n "$RANLIB"; then 12024 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 12025else 12026as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12027for as_dir in $PATH 12028do 12029 IFS=$as_save_IFS 12030 test -z "$as_dir" && as_dir=. 12031 for ac_exec_ext in '' $ac_executable_extensions; do 12032 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12033 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 12034 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12035 break 2 12036 fi 12037done 12038 done 12039IFS=$as_save_IFS 12040 12041fi 12042fi 12043RANLIB=$ac_cv_prog_RANLIB 12044if test -n "$RANLIB"; then 12045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 12046$as_echo "$RANLIB" >&6; } 12047else 12048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12049$as_echo "no" >&6; } 12050fi 12051 12052 12053fi 12054if test -z "$ac_cv_prog_RANLIB"; then 12055 ac_ct_RANLIB=$RANLIB 12056 # Extract the first word of "ranlib", so it can be a program name with args. 12057set dummy ranlib; ac_word=$2 12058{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12059$as_echo_n "checking for $ac_word... " >&6; } 12060if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then : 12061 $as_echo_n "(cached) " >&6 12062else 12063 if test -n "$ac_ct_RANLIB"; then 12064 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 12065else 12066as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12067for as_dir in $PATH 12068do 12069 IFS=$as_save_IFS 12070 test -z "$as_dir" && as_dir=. 12071 for ac_exec_ext in '' $ac_executable_extensions; do 12072 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 12073 ac_cv_prog_ac_ct_RANLIB="ranlib" 12074 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12075 break 2 12076 fi 12077done 12078 done 12079IFS=$as_save_IFS 12080 12081fi 12082fi 12083ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 12084if test -n "$ac_ct_RANLIB"; then 12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 12086$as_echo "$ac_ct_RANLIB" >&6; } 12087else 12088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12089$as_echo "no" >&6; } 12090fi 12091 12092 if test "x$ac_ct_RANLIB" = x; then 12093 RANLIB=":" 12094 else 12095 case $cross_compiling:$ac_tool_warned in 12096yes:) 12097{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 12098$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 12099ac_tool_warned=yes ;; 12100esac 12101 RANLIB=$ac_ct_RANLIB 12102 fi 12103else 12104 RANLIB="$ac_cv_prog_RANLIB" 12105fi 12106 12107 12108 12109 CFLAG_VISIBILITY= 12110 HAVE_VISIBILITY=0 12111 if test -n "$GCC"; then 12112 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the -Werror option is usable" >&5 12113$as_echo_n "checking whether the -Werror option is usable... " >&6; } 12114 if test "${gl_cv_cc_vis_werror+set}" = set; then : 12115 $as_echo_n "(cached) " >&6 12116else 12117 12118 gl_save_CFLAGS="$CFLAGS" 12119 CFLAGS="$CFLAGS -Werror" 12120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12121/* end confdefs.h. */ 12122 12123int 12124main () 12125{ 12126 12127 ; 12128 return 0; 12129} 12130_ACEOF 12131if ac_fn_c_try_compile "$LINENO"; then : 12132 gl_cv_cc_vis_werror=yes 12133else 12134 gl_cv_cc_vis_werror=no 12135fi 12136rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12137 CFLAGS="$gl_save_CFLAGS" 12138fi 12139 12140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_vis_werror" >&5 12141$as_echo "$gl_cv_cc_vis_werror" >&6; } 12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for simple visibility declarations" >&5 12143$as_echo_n "checking for simple visibility declarations... " >&6; } 12144 if test "${gl_cv_cc_visibility+set}" = set; then : 12145 $as_echo_n "(cached) " >&6 12146else 12147 12148 gl_save_CFLAGS="$CFLAGS" 12149 CFLAGS="$CFLAGS -fvisibility=hidden" 12150 if test $gl_cv_cc_vis_werror = yes; then 12151 CFLAGS="$CFLAGS -Werror" 12152 fi 12153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12154/* end confdefs.h. */ 12155extern __attribute__((__visibility__("hidden"))) int hiddenvar; 12156 extern __attribute__((__visibility__("default"))) int exportedvar; 12157 extern __attribute__((__visibility__("hidden"))) int hiddenfunc (void); 12158 extern __attribute__((__visibility__("default"))) int exportedfunc (void); 12159 void dummyfunc (void) {} 12160int 12161main () 12162{ 12163 12164 ; 12165 return 0; 12166} 12167_ACEOF 12168if ac_fn_c_try_compile "$LINENO"; then : 12169 gl_cv_cc_visibility=yes 12170else 12171 gl_cv_cc_visibility=no 12172fi 12173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12174 CFLAGS="$gl_save_CFLAGS" 12175fi 12176 12177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_cc_visibility" >&5 12178$as_echo "$gl_cv_cc_visibility" >&6; } 12179 if test $gl_cv_cc_visibility = yes; then 12180 CFLAG_VISIBILITY="-fvisibility=hidden" 12181 HAVE_VISIBILITY=1 12182 fi 12183 fi 12184 12185 12186 12187cat >>confdefs.h <<_ACEOF 12188#define HAVE_VISIBILITY $HAVE_VISIBILITY 12189_ACEOF 12190 12191 12192{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5 12193$as_echo_n "checking for inline... " >&6; } 12194if test "${ac_cv_c_inline+set}" = set; then : 12195 $as_echo_n "(cached) " >&6 12196else 12197 ac_cv_c_inline=no 12198for ac_kw in inline __inline__ __inline; do 12199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12200/* end confdefs.h. */ 12201#ifndef __cplusplus 12202typedef int foo_t; 12203static $ac_kw foo_t static_foo () {return 0; } 12204$ac_kw foo_t foo () {return 0; } 12205#endif 12206 12207_ACEOF 12208if ac_fn_c_try_compile "$LINENO"; then : 12209 ac_cv_c_inline=$ac_kw 12210fi 12211rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12212 test "$ac_cv_c_inline" != no && break 12213done 12214 12215fi 12216{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5 12217$as_echo "$ac_cv_c_inline" >&6; } 12218 12219case $ac_cv_c_inline in 12220 inline | yes) ;; 12221 *) 12222 case $ac_cv_c_inline in 12223 no) ac_val=;; 12224 *) ac_val=$ac_cv_c_inline;; 12225 esac 12226 cat >>confdefs.h <<_ACEOF 12227#ifndef __cplusplus 12228#define inline $ac_val 12229#endif 12230_ACEOF 12231 ;; 12232esac 12233 12234ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 12235if test "x$ac_cv_type_size_t" = x""yes; then : 12236 12237else 12238 12239cat >>confdefs.h <<_ACEOF 12240#define size_t unsigned int 12241_ACEOF 12242 12243fi 12244 12245 12246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdint.h" >&5 12247$as_echo_n "checking for stdint.h... " >&6; } 12248if test "${gl_cv_header_stdint_h+set}" = set; then : 12249 $as_echo_n "(cached) " >&6 12250else 12251 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12252/* end confdefs.h. */ 12253#include <sys/types.h> 12254#include <stdint.h> 12255int 12256main () 12257{ 12258uintmax_t i = (uintmax_t) -1; return !i; 12259 ; 12260 return 0; 12261} 12262_ACEOF 12263if ac_fn_c_try_compile "$LINENO"; then : 12264 gl_cv_header_stdint_h=yes 12265else 12266 gl_cv_header_stdint_h=no 12267fi 12268rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12269fi 12270{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_stdint_h" >&5 12271$as_echo "$gl_cv_header_stdint_h" >&6; } 12272 if test $gl_cv_header_stdint_h = yes; then 12273 12274cat >>confdefs.h <<_ACEOF 12275#define HAVE_STDINT_H_WITH_UINTMAX 1 12276_ACEOF 12277 12278 fi 12279 12280# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 12281# for constant arguments. Useless! 12282{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 12283$as_echo_n "checking for working alloca.h... " >&6; } 12284if test "${ac_cv_working_alloca_h+set}" = set; then : 12285 $as_echo_n "(cached) " >&6 12286else 12287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12288/* end confdefs.h. */ 12289#include <alloca.h> 12290int 12291main () 12292{ 12293char *p = (char *) alloca (2 * sizeof (int)); 12294 if (p) return 0; 12295 ; 12296 return 0; 12297} 12298_ACEOF 12299if ac_fn_c_try_link "$LINENO"; then : 12300 ac_cv_working_alloca_h=yes 12301else 12302 ac_cv_working_alloca_h=no 12303fi 12304rm -f core conftest.err conftest.$ac_objext \ 12305 conftest$ac_exeext conftest.$ac_ext 12306fi 12307{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 12308$as_echo "$ac_cv_working_alloca_h" >&6; } 12309if test $ac_cv_working_alloca_h = yes; then 12310 12311$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 12312 12313fi 12314 12315{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 12316$as_echo_n "checking for alloca... " >&6; } 12317if test "${ac_cv_func_alloca_works+set}" = set; then : 12318 $as_echo_n "(cached) " >&6 12319else 12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12321/* end confdefs.h. */ 12322#ifdef __GNUC__ 12323# define alloca __builtin_alloca 12324#else 12325# ifdef _MSC_VER 12326# include <malloc.h> 12327# define alloca _alloca 12328# else 12329# ifdef HAVE_ALLOCA_H 12330# include <alloca.h> 12331# else 12332# ifdef _AIX 12333 #pragma alloca 12334# else 12335# ifndef alloca /* predefined by HP cc +Olibcalls */ 12336char *alloca (); 12337# endif 12338# endif 12339# endif 12340# endif 12341#endif 12342 12343int 12344main () 12345{ 12346char *p = (char *) alloca (1); 12347 if (p) return 0; 12348 ; 12349 return 0; 12350} 12351_ACEOF 12352if ac_fn_c_try_link "$LINENO"; then : 12353 ac_cv_func_alloca_works=yes 12354else 12355 ac_cv_func_alloca_works=no 12356fi 12357rm -f core conftest.err conftest.$ac_objext \ 12358 conftest$ac_exeext conftest.$ac_ext 12359fi 12360{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 12361$as_echo "$ac_cv_func_alloca_works" >&6; } 12362 12363if test $ac_cv_func_alloca_works = yes; then 12364 12365$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 12366 12367else 12368 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 12369# that cause trouble. Some versions do not even contain alloca or 12370# contain a buggy version. If you still want to use their alloca, 12371# use ar to extract alloca.o from them instead of compiling alloca.c. 12372 12373ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 12374 12375$as_echo "#define C_ALLOCA 1" >>confdefs.h 12376 12377 12378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 12379$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 12380if test "${ac_cv_os_cray+set}" = set; then : 12381 $as_echo_n "(cached) " >&6 12382else 12383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12384/* end confdefs.h. */ 12385#if defined CRAY && ! defined CRAY2 12386webecray 12387#else 12388wenotbecray 12389#endif 12390 12391_ACEOF 12392if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12393 $EGREP "webecray" >/dev/null 2>&1; then : 12394 ac_cv_os_cray=yes 12395else 12396 ac_cv_os_cray=no 12397fi 12398rm -f conftest* 12399 12400fi 12401{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 12402$as_echo "$ac_cv_os_cray" >&6; } 12403if test $ac_cv_os_cray = yes; then 12404 for ac_func in _getb67 GETB67 getb67; do 12405 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 12406ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 12407if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 12408 12409cat >>confdefs.h <<_ACEOF 12410#define CRAY_STACKSEG_END $ac_func 12411_ACEOF 12412 12413 break 12414fi 12415 12416 done 12417fi 12418 12419{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 12420$as_echo_n "checking stack direction for C alloca... " >&6; } 12421if test "${ac_cv_c_stack_direction+set}" = set; then : 12422 $as_echo_n "(cached) " >&6 12423else 12424 if test "$cross_compiling" = yes; then : 12425 ac_cv_c_stack_direction=0 12426else 12427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12428/* end confdefs.h. */ 12429$ac_includes_default 12430int 12431find_stack_direction () 12432{ 12433 static char *addr = 0; 12434 auto char dummy; 12435 if (addr == 0) 12436 { 12437 addr = &dummy; 12438 return find_stack_direction (); 12439 } 12440 else 12441 return (&dummy > addr) ? 1 : -1; 12442} 12443 12444int 12445main () 12446{ 12447 return find_stack_direction () < 0; 12448} 12449_ACEOF 12450if ac_fn_c_try_run "$LINENO"; then : 12451 ac_cv_c_stack_direction=1 12452else 12453 ac_cv_c_stack_direction=-1 12454fi 12455rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12456 conftest.$ac_objext conftest.beam conftest.$ac_ext 12457fi 12458 12459fi 12460{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 12461$as_echo "$ac_cv_c_stack_direction" >&6; } 12462cat >>confdefs.h <<_ACEOF 12463#define STACK_DIRECTION $ac_cv_c_stack_direction 12464_ACEOF 12465 12466 12467fi 12468 12469 12470 12471 12472 for ac_header in $ac_header_list 12473do : 12474 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 12475ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 12476" 12477if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 12478 cat >>confdefs.h <<_ACEOF 12479#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 12480_ACEOF 12481 12482fi 12483 12484done 12485 12486 12487 12488 12489 12490 12491 12492 12493for ac_func in getpagesize 12494do : 12495 ac_fn_c_check_func "$LINENO" "getpagesize" "ac_cv_func_getpagesize" 12496if test "x$ac_cv_func_getpagesize" = x""yes; then : 12497 cat >>confdefs.h <<_ACEOF 12498#define HAVE_GETPAGESIZE 1 12499_ACEOF 12500 12501fi 12502done 12503 12504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working mmap" >&5 12505$as_echo_n "checking for working mmap... " >&6; } 12506if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then : 12507 $as_echo_n "(cached) " >&6 12508else 12509 if test "$cross_compiling" = yes; then : 12510 ac_cv_func_mmap_fixed_mapped=no 12511else 12512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12513/* end confdefs.h. */ 12514$ac_includes_default 12515/* malloc might have been renamed as rpl_malloc. */ 12516#undef malloc 12517 12518/* Thanks to Mike Haertel and Jim Avera for this test. 12519 Here is a matrix of mmap possibilities: 12520 mmap private not fixed 12521 mmap private fixed at somewhere currently unmapped 12522 mmap private fixed at somewhere already mapped 12523 mmap shared not fixed 12524 mmap shared fixed at somewhere currently unmapped 12525 mmap shared fixed at somewhere already mapped 12526 For private mappings, we should verify that changes cannot be read() 12527 back from the file, nor mmap's back from the file at a different 12528 address. (There have been systems where private was not correctly 12529 implemented like the infamous i386 svr4.0, and systems where the 12530 VM page cache was not coherent with the file system buffer cache 12531 like early versions of FreeBSD and possibly contemporary NetBSD.) 12532 For shared mappings, we should conversely verify that changes get 12533 propagated back to all the places they're supposed to be. 12534 12535 Grep wants private fixed already mapped. 12536 The main things grep needs to know about mmap are: 12537 * does it exist and is it safe to write into the mmap'd area 12538 * how to use it (BSD variants) */ 12539 12540#include <fcntl.h> 12541#include <sys/mman.h> 12542 12543#if !defined STDC_HEADERS && !defined HAVE_STDLIB_H 12544char *malloc (); 12545#endif 12546 12547/* This mess was copied from the GNU getpagesize.h. */ 12548#ifndef HAVE_GETPAGESIZE 12549# ifdef _SC_PAGESIZE 12550# define getpagesize() sysconf(_SC_PAGESIZE) 12551# else /* no _SC_PAGESIZE */ 12552# ifdef HAVE_SYS_PARAM_H 12553# include <sys/param.h> 12554# ifdef EXEC_PAGESIZE 12555# define getpagesize() EXEC_PAGESIZE 12556# else /* no EXEC_PAGESIZE */ 12557# ifdef NBPG 12558# define getpagesize() NBPG * CLSIZE 12559# ifndef CLSIZE 12560# define CLSIZE 1 12561# endif /* no CLSIZE */ 12562# else /* no NBPG */ 12563# ifdef NBPC 12564# define getpagesize() NBPC 12565# else /* no NBPC */ 12566# ifdef PAGESIZE 12567# define getpagesize() PAGESIZE 12568# endif /* PAGESIZE */ 12569# endif /* no NBPC */ 12570# endif /* no NBPG */ 12571# endif /* no EXEC_PAGESIZE */ 12572# else /* no HAVE_SYS_PARAM_H */ 12573# define getpagesize() 8192 /* punt totally */ 12574# endif /* no HAVE_SYS_PARAM_H */ 12575# endif /* no _SC_PAGESIZE */ 12576 12577#endif /* no HAVE_GETPAGESIZE */ 12578 12579int 12580main () 12581{ 12582 char *data, *data2, *data3; 12583 const char *cdata2; 12584 int i, pagesize; 12585 int fd, fd2; 12586 12587 pagesize = getpagesize (); 12588 12589 /* First, make a file with some known garbage in it. */ 12590 data = (char *) malloc (pagesize); 12591 if (!data) 12592 return 1; 12593 for (i = 0; i < pagesize; ++i) 12594 *(data + i) = rand (); 12595 umask (0); 12596 fd = creat ("conftest.mmap", 0600); 12597 if (fd < 0) 12598 return 2; 12599 if (write (fd, data, pagesize) != pagesize) 12600 return 3; 12601 close (fd); 12602 12603 /* Next, check that the tail of a page is zero-filled. File must have 12604 non-zero length, otherwise we risk SIGBUS for entire page. */ 12605 fd2 = open ("conftest.txt", O_RDWR | O_CREAT | O_TRUNC, 0600); 12606 if (fd2 < 0) 12607 return 4; 12608 cdata2 = ""; 12609 if (write (fd2, cdata2, 1) != 1) 12610 return 5; 12611 data2 = (char *) mmap (0, pagesize, PROT_READ | PROT_WRITE, MAP_SHARED, fd2, 0L); 12612 if (data2 == MAP_FAILED) 12613 return 6; 12614 for (i = 0; i < pagesize; ++i) 12615 if (*(data2 + i)) 12616 return 7; 12617 close (fd2); 12618 if (munmap (data2, pagesize)) 12619 return 8; 12620 12621 /* Next, try to mmap the file at a fixed address which already has 12622 something else allocated at it. If we can, also make sure that 12623 we see the same garbage. */ 12624 fd = open ("conftest.mmap", O_RDWR); 12625 if (fd < 0) 12626 return 9; 12627 if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, 12628 MAP_PRIVATE | MAP_FIXED, fd, 0L)) 12629 return 10; 12630 for (i = 0; i < pagesize; ++i) 12631 if (*(data + i) != *(data2 + i)) 12632 return 11; 12633 12634 /* Finally, make sure that changes to the mapped area do not 12635 percolate back to the file as seen by read(). (This is a bug on 12636 some variants of i386 svr4.0.) */ 12637 for (i = 0; i < pagesize; ++i) 12638 *(data2 + i) = *(data2 + i) + 1; 12639 data3 = (char *) malloc (pagesize); 12640 if (!data3) 12641 return 12; 12642 if (read (fd, data3, pagesize) != pagesize) 12643 return 13; 12644 for (i = 0; i < pagesize; ++i) 12645 if (*(data + i) != *(data3 + i)) 12646 return 14; 12647 close (fd); 12648 return 0; 12649} 12650_ACEOF 12651if ac_fn_c_try_run "$LINENO"; then : 12652 ac_cv_func_mmap_fixed_mapped=yes 12653else 12654 ac_cv_func_mmap_fixed_mapped=no 12655fi 12656rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12657 conftest.$ac_objext conftest.beam conftest.$ac_ext 12658fi 12659 12660fi 12661{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_mmap_fixed_mapped" >&5 12662$as_echo "$ac_cv_func_mmap_fixed_mapped" >&6; } 12663if test $ac_cv_func_mmap_fixed_mapped = yes; then 12664 12665$as_echo "#define HAVE_MMAP 1" >>confdefs.h 12666 12667fi 12668rm -f conftest.mmap conftest.txt 12669 12670 12671 12672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether integer division by zero raises SIGFPE" >&5 12673$as_echo_n "checking whether integer division by zero raises SIGFPE... " >&6; } 12674if test "${gt_cv_int_divbyzero_sigfpe+set}" = set; then : 12675 $as_echo_n "(cached) " >&6 12676else 12677 12678 gt_cv_int_divbyzero_sigfpe= 12679 case "$host_os" in 12680 macos* | darwin[6-9]* | darwin[1-9][0-9]*) 12681 # On MacOS X 10.2 or newer, just assume the same as when cross- 12682 # compiling. If we were to perform the real test, 1 Crash Report 12683 # dialog window would pop up. 12684 case "$host_cpu" in 12685 i[34567]86 | x86_64) 12686 gt_cv_int_divbyzero_sigfpe="guessing yes" ;; 12687 esac 12688 ;; 12689 esac 12690 if test -z "$gt_cv_int_divbyzero_sigfpe"; then 12691 if test "$cross_compiling" = yes; then : 12692 12693 # Guess based on the CPU. 12694 case "$host_cpu" in 12695 alpha* | i[34567]86 | x86_64 | m68k | s390*) 12696 gt_cv_int_divbyzero_sigfpe="guessing yes";; 12697 *) 12698 gt_cv_int_divbyzero_sigfpe="guessing no";; 12699 esac 12700 12701else 12702 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12703/* end confdefs.h. */ 12704 12705#include <stdlib.h> 12706#include <signal.h> 12707 12708static void 12709sigfpe_handler (int sig) 12710{ 12711 /* Exit with code 0 if SIGFPE, with code 1 if any other signal. */ 12712 exit (sig != SIGFPE); 12713} 12714 12715int x = 1; 12716int y = 0; 12717int z; 12718int nan; 12719 12720int main () 12721{ 12722 signal (SIGFPE, sigfpe_handler); 12723/* IRIX and AIX (when "xlc -qcheck" is used) yield signal SIGTRAP. */ 12724#if (defined (__sgi) || defined (_AIX)) && defined (SIGTRAP) 12725 signal (SIGTRAP, sigfpe_handler); 12726#endif 12727/* Linux/SPARC yields signal SIGILL. */ 12728#if defined (__sparc__) && defined (__linux__) 12729 signal (SIGILL, sigfpe_handler); 12730#endif 12731 12732 z = x / y; 12733 nan = y / y; 12734 exit (1); 12735} 12736 12737_ACEOF 12738if ac_fn_c_try_run "$LINENO"; then : 12739 gt_cv_int_divbyzero_sigfpe=yes 12740else 12741 gt_cv_int_divbyzero_sigfpe=no 12742fi 12743rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 12744 conftest.$ac_objext conftest.beam conftest.$ac_ext 12745fi 12746 12747 fi 12748 12749fi 12750{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_int_divbyzero_sigfpe" >&5 12751$as_echo "$gt_cv_int_divbyzero_sigfpe" >&6; } 12752 case "$gt_cv_int_divbyzero_sigfpe" in 12753 *yes) value=1;; 12754 *) value=0;; 12755 esac 12756 12757cat >>confdefs.h <<_ACEOF 12758#define INTDIV0_RAISES_SIGFPE $value 12759_ACEOF 12760 12761 12762 12763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inttypes.h" >&5 12764$as_echo_n "checking for inttypes.h... " >&6; } 12765if test "${gl_cv_header_inttypes_h+set}" = set; then : 12766 $as_echo_n "(cached) " >&6 12767else 12768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12769/* end confdefs.h. */ 12770#include <sys/types.h> 12771#include <inttypes.h> 12772int 12773main () 12774{ 12775uintmax_t i = (uintmax_t) -1; return !i; 12776 ; 12777 return 0; 12778} 12779_ACEOF 12780if ac_fn_c_try_compile "$LINENO"; then : 12781 gl_cv_header_inttypes_h=yes 12782else 12783 gl_cv_header_inttypes_h=no 12784fi 12785rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12786fi 12787{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_inttypes_h" >&5 12788$as_echo "$gl_cv_header_inttypes_h" >&6; } 12789 if test $gl_cv_header_inttypes_h = yes; then 12790 12791cat >>confdefs.h <<_ACEOF 12792#define HAVE_INTTYPES_H_WITH_UINTMAX 1 12793_ACEOF 12794 12795 fi 12796 12797 12798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for unsigned long long int" >&5 12799$as_echo_n "checking for unsigned long long int... " >&6; } 12800if test "${ac_cv_type_unsigned_long_long_int+set}" = set; then : 12801 $as_echo_n "(cached) " >&6 12802else 12803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12804/* end confdefs.h. */ 12805 12806 /* For now, do not test the preprocessor; as of 2007 there are too many 12807 implementations with broken preprocessors. Perhaps this can 12808 be revisited in 2012. In the meantime, code should not expect 12809 #if to work with literals wider than 32 bits. */ 12810 /* Test literals. */ 12811 long long int ll = 9223372036854775807ll; 12812 long long int nll = -9223372036854775807LL; 12813 unsigned long long int ull = 18446744073709551615ULL; 12814 /* Test constant expressions. */ 12815 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 12816 ? 1 : -1)]; 12817 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 12818 ? 1 : -1)]; 12819 int i = 63; 12820int 12821main () 12822{ 12823/* Test availability of runtime routines for shift and division. */ 12824 long long int llmax = 9223372036854775807ll; 12825 unsigned long long int ullmax = 18446744073709551615ull; 12826 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 12827 | (llmax / ll) | (llmax % ll) 12828 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 12829 | (ullmax / ull) | (ullmax % ull)); 12830 ; 12831 return 0; 12832} 12833 12834_ACEOF 12835if ac_fn_c_try_link "$LINENO"; then : 12836 ac_cv_type_unsigned_long_long_int=yes 12837else 12838 ac_cv_type_unsigned_long_long_int=no 12839fi 12840rm -f core conftest.err conftest.$ac_objext \ 12841 conftest$ac_exeext conftest.$ac_ext 12842fi 12843{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_unsigned_long_long_int" >&5 12844$as_echo "$ac_cv_type_unsigned_long_long_int" >&6; } 12845 if test $ac_cv_type_unsigned_long_long_int = yes; then 12846 12847$as_echo "#define HAVE_UNSIGNED_LONG_LONG_INT 1" >>confdefs.h 12848 12849 fi 12850 12851 12852 12853 12854 if test $gl_cv_header_inttypes_h = no && test $gl_cv_header_stdint_h = no; then 12855 12856 test $ac_cv_type_unsigned_long_long_int = yes \ 12857 && ac_type='unsigned long long' \ 12858 || ac_type='unsigned long' 12859 12860cat >>confdefs.h <<_ACEOF 12861#define uintmax_t $ac_type 12862_ACEOF 12863 12864 else 12865 12866$as_echo "#define HAVE_UINTMAX_T 1" >>confdefs.h 12867 12868 fi 12869 12870 12871 for ac_header in inttypes.h 12872do : 12873 ac_fn_c_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default" 12874if test "x$ac_cv_header_inttypes_h" = x""yes; then : 12875 cat >>confdefs.h <<_ACEOF 12876#define HAVE_INTTYPES_H 1 12877_ACEOF 12878 12879fi 12880 12881done 12882 12883 if test $ac_cv_header_inttypes_h = yes; then 12884 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the inttypes.h PRIxNN macros are broken" >&5 12885$as_echo_n "checking whether the inttypes.h PRIxNN macros are broken... " >&6; } 12886if test "${gt_cv_inttypes_pri_broken+set}" = set; then : 12887 $as_echo_n "(cached) " >&6 12888else 12889 12890 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12891/* end confdefs.h. */ 12892#include <inttypes.h> 12893#ifdef PRId32 12894char *p = PRId32; 12895#endif 12896 12897int 12898main () 12899{ 12900 12901 ; 12902 return 0; 12903} 12904_ACEOF 12905if ac_fn_c_try_compile "$LINENO"; then : 12906 gt_cv_inttypes_pri_broken=no 12907else 12908 gt_cv_inttypes_pri_broken=yes 12909fi 12910rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 12911 12912fi 12913{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_inttypes_pri_broken" >&5 12914$as_echo "$gt_cv_inttypes_pri_broken" >&6; } 12915 fi 12916 if test "$gt_cv_inttypes_pri_broken" = yes; then 12917 12918cat >>confdefs.h <<_ACEOF 12919#define PRI_MACROS_BROKEN 1 12920_ACEOF 12921 12922 PRI_MACROS_BROKEN=1 12923 else 12924 PRI_MACROS_BROKEN=0 12925 fi 12926 12927 12928 12929 12930 12931 12932 12933 # Check whether --enable-threads was given. 12934if test "${enable_threads+set}" = set; then : 12935 enableval=$enable_threads; gl_use_threads=$enableval 12936else 12937 if test -n "$gl_use_threads_default"; then 12938 gl_use_threads="$gl_use_threads_default" 12939 else 12940 case "$host_os" in 12941 osf*) gl_use_threads=no ;; 12942 cygwin*) 12943 case `uname -r` in 12944 1.[0-5].*) gl_use_threads=no ;; 12945 *) gl_use_threads=yes ;; 12946 esac 12947 ;; 12948 *) gl_use_threads=yes ;; 12949 esac 12950 fi 12951 12952fi 12953 12954 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 12955 # For using <pthread.h>: 12956 case "$host_os" in 12957 osf*) 12958 # On OSF/1, the compiler needs the flag -D_REENTRANT so that it 12959 # groks <pthread.h>. cc also understands the flag -pthread, but 12960 # we don't use it because 1. gcc-2.95 doesn't understand -pthread, 12961 # 2. putting a flag into CPPFLAGS that has an effect on the linker 12962 # causes the AC_TRY_LINK test below to succeed unexpectedly, 12963 # leading to wrong values of LIBTHREAD and LTLIBTHREAD. 12964 CPPFLAGS="$CPPFLAGS -D_REENTRANT" 12965 ;; 12966 esac 12967 # Some systems optimize for single-threaded programs by default, and 12968 # need special flags to disable these optimizations. For example, the 12969 # definition of 'errno' in <errno.h>. 12970 case "$host_os" in 12971 aix* | freebsd*) CPPFLAGS="$CPPFLAGS -D_THREAD_SAFE" ;; 12972 solaris*) CPPFLAGS="$CPPFLAGS -D_REENTRANT" ;; 12973 esac 12974 fi 12975 12976 12977 12978 12979 12980 if test "X$prefix" = "XNONE"; then 12981 acl_final_prefix="$ac_default_prefix" 12982 else 12983 acl_final_prefix="$prefix" 12984 fi 12985 if test "X$exec_prefix" = "XNONE"; then 12986 acl_final_exec_prefix='${prefix}' 12987 else 12988 acl_final_exec_prefix="$exec_prefix" 12989 fi 12990 acl_save_prefix="$prefix" 12991 prefix="$acl_final_prefix" 12992 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12993 prefix="$acl_save_prefix" 12994 12995 12996# Check whether --with-gnu-ld was given. 12997if test "${with_gnu_ld+set}" = set; then : 12998 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12999else 13000 with_gnu_ld=no 13001fi 13002 13003# Prepare PATH_SEPARATOR. 13004# The user is always right. 13005if test "${PATH_SEPARATOR+set}" != set; then 13006 echo "#! /bin/sh" >conf$$.sh 13007 echo "exit 0" >>conf$$.sh 13008 chmod +x conf$$.sh 13009 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then 13010 PATH_SEPARATOR=';' 13011 else 13012 PATH_SEPARATOR=: 13013 fi 13014 rm -f conf$$.sh 13015fi 13016ac_prog=ld 13017if test "$GCC" = yes; then 13018 # Check if gcc -print-prog-name=ld gives a path. 13019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by GCC" >&5 13020$as_echo_n "checking for ld used by GCC... " >&6; } 13021 case $host in 13022 *-*-mingw*) 13023 # gcc leaves a trailing carriage return which upsets mingw 13024 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13025 *) 13026 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13027 esac 13028 case $ac_prog in 13029 # Accept absolute paths. 13030 [\\/]* | [A-Za-z]:[\\/]*) 13031 re_direlt='/[^/][^/]*/\.\./' 13032 # Canonicalize the path of ld 13033 ac_prog=`echo $ac_prog| sed 's%\\\\%/%g'` 13034 while echo $ac_prog | grep "$re_direlt" > /dev/null 2>&1; do 13035 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 13036 done 13037 test -z "$LD" && LD="$ac_prog" 13038 ;; 13039 "") 13040 # If it fails, then pretend we aren't using GCC. 13041 ac_prog=ld 13042 ;; 13043 *) 13044 # If it is relative, then search for the first ld in PATH. 13045 with_gnu_ld=unknown 13046 ;; 13047 esac 13048elif test "$with_gnu_ld" = yes; then 13049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13050$as_echo_n "checking for GNU ld... " >&6; } 13051else 13052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13053$as_echo_n "checking for non-GNU ld... " >&6; } 13054fi 13055if test "${acl_cv_path_LD+set}" = set; then : 13056 $as_echo_n "(cached) " >&6 13057else 13058 if test -z "$LD"; then 13059 IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}${PATH_SEPARATOR-:}" 13060 for ac_dir in $PATH; do 13061 test -z "$ac_dir" && ac_dir=. 13062 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13063 acl_cv_path_LD="$ac_dir/$ac_prog" 13064 # Check to see if the program is GNU ld. I'd rather use --version, 13065 # but apparently some GNU ld's only accept -v. 13066 # Break only if it was the GNU/non-GNU ld that we prefer. 13067 case `"$acl_cv_path_LD" -v 2>&1 < /dev/null` in 13068 *GNU* | *'with BFD'*) 13069 test "$with_gnu_ld" != no && break ;; 13070 *) 13071 test "$with_gnu_ld" != yes && break ;; 13072 esac 13073 fi 13074 done 13075 IFS="$ac_save_ifs" 13076else 13077 acl_cv_path_LD="$LD" # Let the user override the test with a path. 13078fi 13079fi 13080 13081LD="$acl_cv_path_LD" 13082if test -n "$LD"; then 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13084$as_echo "$LD" >&6; } 13085else 13086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13087$as_echo "no" >&6; } 13088fi 13089test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13091$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13092if test "${acl_cv_prog_gnu_ld+set}" = set; then : 13093 $as_echo_n "(cached) " >&6 13094else 13095 # I'd rather use --version here, but apparently some GNU ld's only accept -v. 13096case `$LD -v 2>&1 </dev/null` in 13097*GNU* | *'with BFD'*) 13098 acl_cv_prog_gnu_ld=yes ;; 13099*) 13100 acl_cv_prog_gnu_ld=no ;; 13101esac 13102fi 13103{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 13104$as_echo "$acl_cv_prog_gnu_ld" >&6; } 13105with_gnu_ld=$acl_cv_prog_gnu_ld 13106 13107 13108 13109 13110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 13111$as_echo_n "checking for shared library run path origin... " >&6; } 13112if test "${acl_cv_rpath+set}" = set; then : 13113 $as_echo_n "(cached) " >&6 13114else 13115 13116 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 13117 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 13118 . ./conftest.sh 13119 rm -f ./conftest.sh 13120 acl_cv_rpath=done 13121 13122fi 13123{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 13124$as_echo "$acl_cv_rpath" >&6; } 13125 wl="$acl_cv_wl" 13126 acl_libext="$acl_cv_libext" 13127 acl_shlibext="$acl_cv_shlibext" 13128 acl_libname_spec="$acl_cv_libname_spec" 13129 acl_library_names_spec="$acl_cv_library_names_spec" 13130 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 13131 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 13132 acl_hardcode_direct="$acl_cv_hardcode_direct" 13133 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 13134 # Check whether --enable-rpath was given. 13135if test "${enable_rpath+set}" = set; then : 13136 enableval=$enable_rpath; : 13137else 13138 enable_rpath=yes 13139fi 13140 13141 13142 13143 13144 acl_libdirstem=lib 13145 acl_libdirstem2= 13146 case "$host_os" in 13147 solaris*) 13148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 13149$as_echo_n "checking for 64-bit host... " >&6; } 13150if test "${gl_cv_solaris_64bit+set}" = set; then : 13151 $as_echo_n "(cached) " >&6 13152else 13153 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13154/* end confdefs.h. */ 13155 13156#ifdef _LP64 13157sixtyfour bits 13158#endif 13159 13160_ACEOF 13161if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13162 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 13163 gl_cv_solaris_64bit=yes 13164else 13165 gl_cv_solaris_64bit=no 13166fi 13167rm -f conftest* 13168 13169 13170fi 13171{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 13172$as_echo "$gl_cv_solaris_64bit" >&6; } 13173 if test $gl_cv_solaris_64bit = yes; then 13174 acl_libdirstem=lib/64 13175 case "$host_cpu" in 13176 sparc*) acl_libdirstem2=lib/sparcv9 ;; 13177 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 13178 esac 13179 fi 13180 ;; 13181 *) 13182 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 13183 if test -n "$searchpath"; then 13184 acl_save_IFS="${IFS= }"; IFS=":" 13185 for searchdir in $searchpath; do 13186 if test -d "$searchdir"; then 13187 case "$searchdir" in 13188 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 13189 */../ | */.. ) 13190 # Better ignore directories of this form. They are misleading. 13191 ;; 13192 *) searchdir=`cd "$searchdir" && pwd` 13193 case "$searchdir" in 13194 */lib64 ) acl_libdirstem=lib64 ;; 13195 esac ;; 13196 esac 13197 fi 13198 done 13199 IFS="$acl_save_IFS" 13200 fi 13201 ;; 13202 esac 13203 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 13204 13205 13206 13207 gl_threads_api=none 13208 LIBTHREAD= 13209 LTLIBTHREAD= 13210 LIBMULTITHREAD= 13211 LTLIBMULTITHREAD= 13212 if test "$gl_use_threads" != no; then 13213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether imported symbols can be declared weak" >&5 13214$as_echo_n "checking whether imported symbols can be declared weak... " >&6; } 13215if test "${gl_cv_have_weak+set}" = set; then : 13216 $as_echo_n "(cached) " >&6 13217else 13218 gl_cv_have_weak=no 13219 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13220/* end confdefs.h. */ 13221extern void xyzzy (); 13222#pragma weak xyzzy 13223int 13224main () 13225{ 13226xyzzy(); 13227 ; 13228 return 0; 13229} 13230_ACEOF 13231if ac_fn_c_try_link "$LINENO"; then : 13232 gl_cv_have_weak=maybe 13233fi 13234rm -f core conftest.err conftest.$ac_objext \ 13235 conftest$ac_exeext conftest.$ac_ext 13236 if test $gl_cv_have_weak = maybe; then 13237 if test "$cross_compiling" = yes; then : 13238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13239/* end confdefs.h. */ 13240#ifdef __ELF__ 13241 Extensible Linking Format 13242 #endif 13243 13244_ACEOF 13245if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 13246 $EGREP "Extensible Linking Format" >/dev/null 2>&1; then : 13247 gl_cv_have_weak="guessing yes" 13248else 13249 gl_cv_have_weak="guessing no" 13250fi 13251rm -f conftest* 13252 13253 13254else 13255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13256/* end confdefs.h. */ 13257 13258#include <stdio.h> 13259#pragma weak fputs 13260int main () 13261{ 13262 return (fputs == NULL); 13263} 13264_ACEOF 13265if ac_fn_c_try_run "$LINENO"; then : 13266 gl_cv_have_weak=yes 13267else 13268 gl_cv_have_weak=no 13269fi 13270rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13271 conftest.$ac_objext conftest.beam conftest.$ac_ext 13272fi 13273 13274 fi 13275 13276fi 13277{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_have_weak" >&5 13278$as_echo "$gl_cv_have_weak" >&6; } 13279 if test "$gl_use_threads" = yes || test "$gl_use_threads" = posix; then 13280 # On OSF/1, the compiler needs the flag -pthread or -D_REENTRANT so that 13281 # it groks <pthread.h>. It's added above, in gl_THREADLIB_EARLY_BODY. 13282 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 13283if test "x$ac_cv_header_pthread_h" = x""yes; then : 13284 gl_have_pthread_h=yes 13285else 13286 gl_have_pthread_h=no 13287fi 13288 13289 13290 if test "$gl_have_pthread_h" = yes; then 13291 # Other possible tests: 13292 # -lpthreads (FSU threads, PCthreads) 13293 # -lgthreads 13294 gl_have_pthread= 13295 # Test whether both pthread_mutex_lock and pthread_mutexattr_init exist 13296 # in libc. IRIX 6.5 has the first one in both libc and libpthread, but 13297 # the second one only in libpthread, and lock.c needs it. 13298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13299/* end confdefs.h. */ 13300#include <pthread.h> 13301int 13302main () 13303{ 13304pthread_mutex_lock((pthread_mutex_t*)0); 13305 pthread_mutexattr_init((pthread_mutexattr_t*)0); 13306 ; 13307 return 0; 13308} 13309_ACEOF 13310if ac_fn_c_try_link "$LINENO"; then : 13311 gl_have_pthread=yes 13312fi 13313rm -f core conftest.err conftest.$ac_objext \ 13314 conftest$ac_exeext conftest.$ac_ext 13315 # Test for libpthread by looking for pthread_kill. (Not pthread_self, 13316 # since it is defined as a macro on OSF/1.) 13317 if test -n "$gl_have_pthread"; then 13318 # The program links fine without libpthread. But it may actually 13319 # need to link with libpthread in order to create multiple threads. 13320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 13321$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 13322if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : 13323 $as_echo_n "(cached) " >&6 13324else 13325 ac_check_lib_save_LIBS=$LIBS 13326LIBS="-lpthread $LIBS" 13327cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13328/* end confdefs.h. */ 13329 13330/* Override any GCC internal prototype to avoid an error. 13331 Use char because int might match the return type of a GCC 13332 builtin and then its argument prototype would still apply. */ 13333#ifdef __cplusplus 13334extern "C" 13335#endif 13336char pthread_kill (); 13337int 13338main () 13339{ 13340return pthread_kill (); 13341 ; 13342 return 0; 13343} 13344_ACEOF 13345if ac_fn_c_try_link "$LINENO"; then : 13346 ac_cv_lib_pthread_pthread_kill=yes 13347else 13348 ac_cv_lib_pthread_pthread_kill=no 13349fi 13350rm -f core conftest.err conftest.$ac_objext \ 13351 conftest$ac_exeext conftest.$ac_ext 13352LIBS=$ac_check_lib_save_LIBS 13353fi 13354{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 13355$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 13356if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : 13357 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 13358 # On Solaris and HP-UX, most pthread functions exist also in libc. 13359 # Therefore pthread_in_use() needs to actually try to create a 13360 # thread: pthread_create from libc will fail, whereas 13361 # pthread_create will actually create a thread. 13362 case "$host_os" in 13363 solaris* | hpux*) 13364 13365$as_echo "#define PTHREAD_IN_USE_DETECTION_HARD 1" >>confdefs.h 13366 13367 esac 13368 13369fi 13370 13371 else 13372 # Some library is needed. Try libpthread and libc_r. 13373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lpthread" >&5 13374$as_echo_n "checking for pthread_kill in -lpthread... " >&6; } 13375if test "${ac_cv_lib_pthread_pthread_kill+set}" = set; then : 13376 $as_echo_n "(cached) " >&6 13377else 13378 ac_check_lib_save_LIBS=$LIBS 13379LIBS="-lpthread $LIBS" 13380cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13381/* end confdefs.h. */ 13382 13383/* Override any GCC internal prototype to avoid an error. 13384 Use char because int might match the return type of a GCC 13385 builtin and then its argument prototype would still apply. */ 13386#ifdef __cplusplus 13387extern "C" 13388#endif 13389char pthread_kill (); 13390int 13391main () 13392{ 13393return pthread_kill (); 13394 ; 13395 return 0; 13396} 13397_ACEOF 13398if ac_fn_c_try_link "$LINENO"; then : 13399 ac_cv_lib_pthread_pthread_kill=yes 13400else 13401 ac_cv_lib_pthread_pthread_kill=no 13402fi 13403rm -f core conftest.err conftest.$ac_objext \ 13404 conftest$ac_exeext conftest.$ac_ext 13405LIBS=$ac_check_lib_save_LIBS 13406fi 13407{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_kill" >&5 13408$as_echo "$ac_cv_lib_pthread_pthread_kill" >&6; } 13409if test "x$ac_cv_lib_pthread_pthread_kill" = x""yes; then : 13410 gl_have_pthread=yes 13411 LIBTHREAD=-lpthread LTLIBTHREAD=-lpthread 13412 LIBMULTITHREAD=-lpthread LTLIBMULTITHREAD=-lpthread 13413fi 13414 13415 if test -z "$gl_have_pthread"; then 13416 # For FreeBSD 4. 13417 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_kill in -lc_r" >&5 13418$as_echo_n "checking for pthread_kill in -lc_r... " >&6; } 13419if test "${ac_cv_lib_c_r_pthread_kill+set}" = set; then : 13420 $as_echo_n "(cached) " >&6 13421else 13422 ac_check_lib_save_LIBS=$LIBS 13423LIBS="-lc_r $LIBS" 13424cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13425/* end confdefs.h. */ 13426 13427/* Override any GCC internal prototype to avoid an error. 13428 Use char because int might match the return type of a GCC 13429 builtin and then its argument prototype would still apply. */ 13430#ifdef __cplusplus 13431extern "C" 13432#endif 13433char pthread_kill (); 13434int 13435main () 13436{ 13437return pthread_kill (); 13438 ; 13439 return 0; 13440} 13441_ACEOF 13442if ac_fn_c_try_link "$LINENO"; then : 13443 ac_cv_lib_c_r_pthread_kill=yes 13444else 13445 ac_cv_lib_c_r_pthread_kill=no 13446fi 13447rm -f core conftest.err conftest.$ac_objext \ 13448 conftest$ac_exeext conftest.$ac_ext 13449LIBS=$ac_check_lib_save_LIBS 13450fi 13451{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_c_r_pthread_kill" >&5 13452$as_echo "$ac_cv_lib_c_r_pthread_kill" >&6; } 13453if test "x$ac_cv_lib_c_r_pthread_kill" = x""yes; then : 13454 gl_have_pthread=yes 13455 LIBTHREAD=-lc_r LTLIBTHREAD=-lc_r 13456 LIBMULTITHREAD=-lc_r LTLIBMULTITHREAD=-lc_r 13457fi 13458 13459 fi 13460 fi 13461 if test -n "$gl_have_pthread"; then 13462 gl_threads_api=posix 13463 13464$as_echo "#define USE_POSIX_THREADS 1" >>confdefs.h 13465 13466 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 13467 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 13468 13469$as_echo "#define USE_POSIX_THREADS_WEAK 1" >>confdefs.h 13470 13471 LIBTHREAD= 13472 LTLIBTHREAD= 13473 fi 13474 fi 13475 fi 13476 fi 13477 fi 13478 if test -z "$gl_have_pthread"; then 13479 if test "$gl_use_threads" = yes || test "$gl_use_threads" = solaris; then 13480 gl_have_solaristhread= 13481 gl_save_LIBS="$LIBS" 13482 LIBS="$LIBS -lthread" 13483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13484/* end confdefs.h. */ 13485#include <thread.h> 13486#include <synch.h> 13487int 13488main () 13489{ 13490thr_self(); 13491 ; 13492 return 0; 13493} 13494_ACEOF 13495if ac_fn_c_try_link "$LINENO"; then : 13496 gl_have_solaristhread=yes 13497fi 13498rm -f core conftest.err conftest.$ac_objext \ 13499 conftest$ac_exeext conftest.$ac_ext 13500 LIBS="$gl_save_LIBS" 13501 if test -n "$gl_have_solaristhread"; then 13502 gl_threads_api=solaris 13503 LIBTHREAD=-lthread 13504 LTLIBTHREAD=-lthread 13505 LIBMULTITHREAD="$LIBTHREAD" 13506 LTLIBMULTITHREAD="$LTLIBTHREAD" 13507 13508$as_echo "#define USE_SOLARIS_THREADS 1" >>confdefs.h 13509 13510 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 13511 13512$as_echo "#define USE_SOLARIS_THREADS_WEAK 1" >>confdefs.h 13513 13514 LIBTHREAD= 13515 LTLIBTHREAD= 13516 fi 13517 fi 13518 fi 13519 fi 13520 if test "$gl_use_threads" = pth; then 13521 gl_save_CPPFLAGS="$CPPFLAGS" 13522 13523 13524 13525 13526 13527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libpth" >&5 13528$as_echo_n "checking how to link with libpth... " >&6; } 13529if test "${ac_cv_libpth_libs+set}" = set; then : 13530 $as_echo_n "(cached) " >&6 13531else 13532 13533 13534 13535 13536 13537 13538 13539 13540 use_additional=yes 13541 13542 acl_save_prefix="$prefix" 13543 prefix="$acl_final_prefix" 13544 acl_save_exec_prefix="$exec_prefix" 13545 exec_prefix="$acl_final_exec_prefix" 13546 13547 eval additional_includedir=\"$includedir\" 13548 eval additional_libdir=\"$libdir\" 13549 13550 exec_prefix="$acl_save_exec_prefix" 13551 prefix="$acl_save_prefix" 13552 13553 13554# Check whether --with-libpth-prefix was given. 13555if test "${with_libpth_prefix+set}" = set; then : 13556 withval=$with_libpth_prefix; 13557 if test "X$withval" = "Xno"; then 13558 use_additional=no 13559 else 13560 if test "X$withval" = "X"; then 13561 13562 acl_save_prefix="$prefix" 13563 prefix="$acl_final_prefix" 13564 acl_save_exec_prefix="$exec_prefix" 13565 exec_prefix="$acl_final_exec_prefix" 13566 13567 eval additional_includedir=\"$includedir\" 13568 eval additional_libdir=\"$libdir\" 13569 13570 exec_prefix="$acl_save_exec_prefix" 13571 prefix="$acl_save_prefix" 13572 13573 else 13574 additional_includedir="$withval/include" 13575 additional_libdir="$withval/$acl_libdirstem" 13576 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13577 && ! test -d "$withval/$acl_libdirstem"; then 13578 additional_libdir="$withval/$acl_libdirstem2" 13579 fi 13580 fi 13581 fi 13582 13583fi 13584 13585 LIBPTH= 13586 LTLIBPTH= 13587 INCPTH= 13588 LIBPTH_PREFIX= 13589 HAVE_LIBPTH= 13590 rpathdirs= 13591 ltrpathdirs= 13592 names_already_handled= 13593 names_next_round='pth ' 13594 while test -n "$names_next_round"; do 13595 names_this_round="$names_next_round" 13596 names_next_round= 13597 for name in $names_this_round; do 13598 already_handled= 13599 for n in $names_already_handled; do 13600 if test "$n" = "$name"; then 13601 already_handled=yes 13602 break 13603 fi 13604 done 13605 if test -z "$already_handled"; then 13606 names_already_handled="$names_already_handled $name" 13607 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 13608 eval value=\"\$HAVE_LIB$uppername\" 13609 if test -n "$value"; then 13610 if test "$value" = yes; then 13611 eval value=\"\$LIB$uppername\" 13612 test -z "$value" || LIBPTH="${LIBPTH}${LIBPTH:+ }$value" 13613 eval value=\"\$LTLIB$uppername\" 13614 test -z "$value" || LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$value" 13615 else 13616 : 13617 fi 13618 else 13619 found_dir= 13620 found_la= 13621 found_so= 13622 found_a= 13623 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13624 if test -n "$acl_shlibext"; then 13625 shrext=".$acl_shlibext" # typically: shrext=.so 13626 else 13627 shrext= 13628 fi 13629 if test $use_additional = yes; then 13630 dir="$additional_libdir" 13631 if test -n "$acl_shlibext"; then 13632 if test -f "$dir/$libname$shrext"; then 13633 found_dir="$dir" 13634 found_so="$dir/$libname$shrext" 13635 else 13636 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13637 ver=`(cd "$dir" && \ 13638 for f in "$libname$shrext".*; do echo "$f"; done \ 13639 | sed -e "s,^$libname$shrext\\\\.,," \ 13640 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13641 | sed 1q ) 2>/dev/null` 13642 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13643 found_dir="$dir" 13644 found_so="$dir/$libname$shrext.$ver" 13645 fi 13646 else 13647 eval library_names=\"$acl_library_names_spec\" 13648 for f in $library_names; do 13649 if test -f "$dir/$f"; then 13650 found_dir="$dir" 13651 found_so="$dir/$f" 13652 break 13653 fi 13654 done 13655 fi 13656 fi 13657 fi 13658 if test "X$found_dir" = "X"; then 13659 if test -f "$dir/$libname.$acl_libext"; then 13660 found_dir="$dir" 13661 found_a="$dir/$libname.$acl_libext" 13662 fi 13663 fi 13664 if test "X$found_dir" != "X"; then 13665 if test -f "$dir/$libname.la"; then 13666 found_la="$dir/$libname.la" 13667 fi 13668 fi 13669 fi 13670 if test "X$found_dir" = "X"; then 13671 for x in $LDFLAGS $LTLIBPTH; do 13672 13673 acl_save_prefix="$prefix" 13674 prefix="$acl_final_prefix" 13675 acl_save_exec_prefix="$exec_prefix" 13676 exec_prefix="$acl_final_exec_prefix" 13677 eval x=\"$x\" 13678 exec_prefix="$acl_save_exec_prefix" 13679 prefix="$acl_save_prefix" 13680 13681 case "$x" in 13682 -L*) 13683 dir=`echo "X$x" | sed -e 's/^X-L//'` 13684 if test -n "$acl_shlibext"; then 13685 if test -f "$dir/$libname$shrext"; then 13686 found_dir="$dir" 13687 found_so="$dir/$libname$shrext" 13688 else 13689 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13690 ver=`(cd "$dir" && \ 13691 for f in "$libname$shrext".*; do echo "$f"; done \ 13692 | sed -e "s,^$libname$shrext\\\\.,," \ 13693 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13694 | sed 1q ) 2>/dev/null` 13695 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13696 found_dir="$dir" 13697 found_so="$dir/$libname$shrext.$ver" 13698 fi 13699 else 13700 eval library_names=\"$acl_library_names_spec\" 13701 for f in $library_names; do 13702 if test -f "$dir/$f"; then 13703 found_dir="$dir" 13704 found_so="$dir/$f" 13705 break 13706 fi 13707 done 13708 fi 13709 fi 13710 fi 13711 if test "X$found_dir" = "X"; then 13712 if test -f "$dir/$libname.$acl_libext"; then 13713 found_dir="$dir" 13714 found_a="$dir/$libname.$acl_libext" 13715 fi 13716 fi 13717 if test "X$found_dir" != "X"; then 13718 if test -f "$dir/$libname.la"; then 13719 found_la="$dir/$libname.la" 13720 fi 13721 fi 13722 ;; 13723 esac 13724 if test "X$found_dir" != "X"; then 13725 break 13726 fi 13727 done 13728 fi 13729 if test "X$found_dir" != "X"; then 13730 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$found_dir -l$name" 13731 if test "X$found_so" != "X"; then 13732 if test "$enable_rpath" = no \ 13733 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13734 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13735 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 13736 else 13737 haveit= 13738 for x in $ltrpathdirs; do 13739 if test "X$x" = "X$found_dir"; then 13740 haveit=yes 13741 break 13742 fi 13743 done 13744 if test -z "$haveit"; then 13745 ltrpathdirs="$ltrpathdirs $found_dir" 13746 fi 13747 if test "$acl_hardcode_direct" = yes; then 13748 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 13749 else 13750 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13751 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 13752 haveit= 13753 for x in $rpathdirs; do 13754 if test "X$x" = "X$found_dir"; then 13755 haveit=yes 13756 break 13757 fi 13758 done 13759 if test -z "$haveit"; then 13760 rpathdirs="$rpathdirs $found_dir" 13761 fi 13762 else 13763 haveit= 13764 for x in $LDFLAGS $LIBPTH; do 13765 13766 acl_save_prefix="$prefix" 13767 prefix="$acl_final_prefix" 13768 acl_save_exec_prefix="$exec_prefix" 13769 exec_prefix="$acl_final_exec_prefix" 13770 eval x=\"$x\" 13771 exec_prefix="$acl_save_exec_prefix" 13772 prefix="$acl_save_prefix" 13773 13774 if test "X$x" = "X-L$found_dir"; then 13775 haveit=yes 13776 break 13777 fi 13778 done 13779 if test -z "$haveit"; then 13780 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir" 13781 fi 13782 if test "$acl_hardcode_minus_L" != no; then 13783 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_so" 13784 else 13785 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 13786 fi 13787 fi 13788 fi 13789 fi 13790 else 13791 if test "X$found_a" != "X"; then 13792 LIBPTH="${LIBPTH}${LIBPTH:+ }$found_a" 13793 else 13794 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$found_dir -l$name" 13795 fi 13796 fi 13797 additional_includedir= 13798 case "$found_dir" in 13799 */$acl_libdirstem | */$acl_libdirstem/) 13800 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13801 if test "$name" = 'pth'; then 13802 LIBPTH_PREFIX="$basedir" 13803 fi 13804 additional_includedir="$basedir/include" 13805 ;; 13806 */$acl_libdirstem2 | */$acl_libdirstem2/) 13807 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13808 if test "$name" = 'pth'; then 13809 LIBPTH_PREFIX="$basedir" 13810 fi 13811 additional_includedir="$basedir/include" 13812 ;; 13813 esac 13814 if test "X$additional_includedir" != "X"; then 13815 if test "X$additional_includedir" != "X/usr/include"; then 13816 haveit= 13817 if test "X$additional_includedir" = "X/usr/local/include"; then 13818 if test -n "$GCC"; then 13819 case $host_os in 13820 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13821 esac 13822 fi 13823 fi 13824 if test -z "$haveit"; then 13825 for x in $CPPFLAGS $INCPTH; do 13826 13827 acl_save_prefix="$prefix" 13828 prefix="$acl_final_prefix" 13829 acl_save_exec_prefix="$exec_prefix" 13830 exec_prefix="$acl_final_exec_prefix" 13831 eval x=\"$x\" 13832 exec_prefix="$acl_save_exec_prefix" 13833 prefix="$acl_save_prefix" 13834 13835 if test "X$x" = "X-I$additional_includedir"; then 13836 haveit=yes 13837 break 13838 fi 13839 done 13840 if test -z "$haveit"; then 13841 if test -d "$additional_includedir"; then 13842 INCPTH="${INCPTH}${INCPTH:+ }-I$additional_includedir" 13843 fi 13844 fi 13845 fi 13846 fi 13847 fi 13848 if test -n "$found_la"; then 13849 save_libdir="$libdir" 13850 case "$found_la" in 13851 */* | *\\*) . "$found_la" ;; 13852 *) . "./$found_la" ;; 13853 esac 13854 libdir="$save_libdir" 13855 for dep in $dependency_libs; do 13856 case "$dep" in 13857 -L*) 13858 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13859 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13860 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13861 haveit= 13862 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13863 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13864 if test -n "$GCC"; then 13865 case $host_os in 13866 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13867 esac 13868 fi 13869 fi 13870 if test -z "$haveit"; then 13871 haveit= 13872 for x in $LDFLAGS $LIBPTH; do 13873 13874 acl_save_prefix="$prefix" 13875 prefix="$acl_final_prefix" 13876 acl_save_exec_prefix="$exec_prefix" 13877 exec_prefix="$acl_final_exec_prefix" 13878 eval x=\"$x\" 13879 exec_prefix="$acl_save_exec_prefix" 13880 prefix="$acl_save_prefix" 13881 13882 if test "X$x" = "X-L$additional_libdir"; then 13883 haveit=yes 13884 break 13885 fi 13886 done 13887 if test -z "$haveit"; then 13888 if test -d "$additional_libdir"; then 13889 LIBPTH="${LIBPTH}${LIBPTH:+ }-L$additional_libdir" 13890 fi 13891 fi 13892 haveit= 13893 for x in $LDFLAGS $LTLIBPTH; do 13894 13895 acl_save_prefix="$prefix" 13896 prefix="$acl_final_prefix" 13897 acl_save_exec_prefix="$exec_prefix" 13898 exec_prefix="$acl_final_exec_prefix" 13899 eval x=\"$x\" 13900 exec_prefix="$acl_save_exec_prefix" 13901 prefix="$acl_save_prefix" 13902 13903 if test "X$x" = "X-L$additional_libdir"; then 13904 haveit=yes 13905 break 13906 fi 13907 done 13908 if test -z "$haveit"; then 13909 if test -d "$additional_libdir"; then 13910 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-L$additional_libdir" 13911 fi 13912 fi 13913 fi 13914 fi 13915 ;; 13916 -R*) 13917 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13918 if test "$enable_rpath" != no; then 13919 haveit= 13920 for x in $rpathdirs; do 13921 if test "X$x" = "X$dir"; then 13922 haveit=yes 13923 break 13924 fi 13925 done 13926 if test -z "$haveit"; then 13927 rpathdirs="$rpathdirs $dir" 13928 fi 13929 haveit= 13930 for x in $ltrpathdirs; do 13931 if test "X$x" = "X$dir"; then 13932 haveit=yes 13933 break 13934 fi 13935 done 13936 if test -z "$haveit"; then 13937 ltrpathdirs="$ltrpathdirs $dir" 13938 fi 13939 fi 13940 ;; 13941 -l*) 13942 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13943 ;; 13944 *.la) 13945 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13946 ;; 13947 *) 13948 LIBPTH="${LIBPTH}${LIBPTH:+ }$dep" 13949 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }$dep" 13950 ;; 13951 esac 13952 done 13953 fi 13954 else 13955 LIBPTH="${LIBPTH}${LIBPTH:+ }-l$name" 13956 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-l$name" 13957 fi 13958 fi 13959 fi 13960 done 13961 done 13962 if test "X$rpathdirs" != "X"; then 13963 if test -n "$acl_hardcode_libdir_separator"; then 13964 alldirs= 13965 for found_dir in $rpathdirs; do 13966 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 13967 done 13968 acl_save_libdir="$libdir" 13969 libdir="$alldirs" 13970 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13971 libdir="$acl_save_libdir" 13972 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 13973 else 13974 for found_dir in $rpathdirs; do 13975 acl_save_libdir="$libdir" 13976 libdir="$found_dir" 13977 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13978 libdir="$acl_save_libdir" 13979 LIBPTH="${LIBPTH}${LIBPTH:+ }$flag" 13980 done 13981 fi 13982 fi 13983 if test "X$ltrpathdirs" != "X"; then 13984 for found_dir in $ltrpathdirs; do 13985 LTLIBPTH="${LTLIBPTH}${LTLIBPTH:+ }-R$found_dir" 13986 done 13987 fi 13988 13989 13990 13991 13992 13993 13994 ac_cv_libpth_libs="$LIBPTH" 13995 ac_cv_libpth_ltlibs="$LTLIBPTH" 13996 ac_cv_libpth_cppflags="$INCPTH" 13997 ac_cv_libpth_prefix="$LIBPTH_PREFIX" 13998 13999fi 14000{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_libpth_libs" >&5 14001$as_echo "$ac_cv_libpth_libs" >&6; } 14002 LIBPTH="$ac_cv_libpth_libs" 14003 LTLIBPTH="$ac_cv_libpth_ltlibs" 14004 INCPTH="$ac_cv_libpth_cppflags" 14005 LIBPTH_PREFIX="$ac_cv_libpth_prefix" 14006 14007 for element in $INCPTH; do 14008 haveit= 14009 for x in $CPPFLAGS; do 14010 14011 acl_save_prefix="$prefix" 14012 prefix="$acl_final_prefix" 14013 acl_save_exec_prefix="$exec_prefix" 14014 exec_prefix="$acl_final_exec_prefix" 14015 eval x=\"$x\" 14016 exec_prefix="$acl_save_exec_prefix" 14017 prefix="$acl_save_prefix" 14018 14019 if test "X$x" = "X$element"; then 14020 haveit=yes 14021 break 14022 fi 14023 done 14024 if test -z "$haveit"; then 14025 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14026 fi 14027 done 14028 14029 14030 14031 14032 HAVE_LIBPTH=yes 14033 14034 14035 14036 gl_have_pth= 14037 gl_save_LIBS="$LIBS" 14038 LIBS="$LIBS -lpth" 14039 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14040/* end confdefs.h. */ 14041#include <pth.h> 14042int 14043main () 14044{ 14045pth_self(); 14046 ; 14047 return 0; 14048} 14049_ACEOF 14050if ac_fn_c_try_link "$LINENO"; then : 14051 gl_have_pth=yes 14052fi 14053rm -f core conftest.err conftest.$ac_objext \ 14054 conftest$ac_exeext conftest.$ac_ext 14055 LIBS="$gl_save_LIBS" 14056 if test -n "$gl_have_pth"; then 14057 gl_threads_api=pth 14058 LIBTHREAD="$LIBPTH" 14059 LTLIBTHREAD="$LTLIBPTH" 14060 LIBMULTITHREAD="$LIBTHREAD" 14061 LTLIBMULTITHREAD="$LTLIBTHREAD" 14062 14063$as_echo "#define USE_PTH_THREADS 1" >>confdefs.h 14064 14065 if test -n "$LIBMULTITHREAD" || test -n "$LTLIBMULTITHREAD"; then 14066 if case "$gl_cv_have_weak" in *yes) true;; *) false;; esac; then 14067 14068$as_echo "#define USE_PTH_THREADS_WEAK 1" >>confdefs.h 14069 14070 LIBTHREAD= 14071 LTLIBTHREAD= 14072 fi 14073 fi 14074 else 14075 CPPFLAGS="$gl_save_CPPFLAGS" 14076 fi 14077 fi 14078 if test -z "$gl_have_pthread"; then 14079 if test "$gl_use_threads" = yes || test "$gl_use_threads" = win32; then 14080 if { case "$host_os" in 14081 mingw*) true;; 14082 *) false;; 14083 esac 14084 }; then 14085 gl_threads_api=win32 14086 14087$as_echo "#define USE_WIN32_THREADS 1" >>confdefs.h 14088 14089 fi 14090 fi 14091 fi 14092 fi 14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for multithread API to use" >&5 14094$as_echo_n "checking for multithread API to use... " >&6; } 14095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_threads_api" >&5 14096$as_echo "$gl_threads_api" >&6; } 14097 14098 14099 14100 14101 14102 14103 14104 14105 14106 14107 14108 if test "$gl_threads_api" = posix; then 14109 # OSF/1 4.0 and MacOS X 10.1 lack the pthread_rwlock_t type and the 14110 # pthread_rwlock_* functions. 14111 ac_fn_c_check_type "$LINENO" "pthread_rwlock_t" "ac_cv_type_pthread_rwlock_t" "#include <pthread.h> 14112" 14113if test "x$ac_cv_type_pthread_rwlock_t" = x""yes; then : 14114 14115$as_echo "#define HAVE_PTHREAD_RWLOCK 1" >>confdefs.h 14116 14117fi 14118 14119 # glibc defines PTHREAD_MUTEX_RECURSIVE as enum, not as a macro. 14120 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14121/* end confdefs.h. */ 14122#include <pthread.h> 14123int 14124main () 14125{ 14126#if __FreeBSD__ == 4 14127error "No, in FreeBSD 4.0 recursive mutexes actually don't work." 14128#else 14129int x = (int)PTHREAD_MUTEX_RECURSIVE; 14130return !x; 14131#endif 14132 ; 14133 return 0; 14134} 14135_ACEOF 14136if ac_fn_c_try_compile "$LINENO"; then : 14137 14138$as_echo "#define HAVE_PTHREAD_MUTEX_RECURSIVE 1" >>confdefs.h 14139 14140fi 14141rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14142 fi 14143 14144 14145 14146 14147 14148 14149 14150 14151 14152 14153 14154 14155 14156 14157 14158 use_additional=yes 14159 14160 acl_save_prefix="$prefix" 14161 prefix="$acl_final_prefix" 14162 acl_save_exec_prefix="$exec_prefix" 14163 exec_prefix="$acl_final_exec_prefix" 14164 14165 eval additional_includedir=\"$includedir\" 14166 eval additional_libdir=\"$libdir\" 14167 14168 exec_prefix="$acl_save_exec_prefix" 14169 prefix="$acl_save_prefix" 14170 14171 14172# Check whether --with-libiconv-prefix was given. 14173if test "${with_libiconv_prefix+set}" = set; then : 14174 withval=$with_libiconv_prefix; 14175 if test "X$withval" = "Xno"; then 14176 use_additional=no 14177 else 14178 if test "X$withval" = "X"; then 14179 14180 acl_save_prefix="$prefix" 14181 prefix="$acl_final_prefix" 14182 acl_save_exec_prefix="$exec_prefix" 14183 exec_prefix="$acl_final_exec_prefix" 14184 14185 eval additional_includedir=\"$includedir\" 14186 eval additional_libdir=\"$libdir\" 14187 14188 exec_prefix="$acl_save_exec_prefix" 14189 prefix="$acl_save_prefix" 14190 14191 else 14192 additional_includedir="$withval/include" 14193 additional_libdir="$withval/$acl_libdirstem" 14194 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 14195 && ! test -d "$withval/$acl_libdirstem"; then 14196 additional_libdir="$withval/$acl_libdirstem2" 14197 fi 14198 fi 14199 fi 14200 14201fi 14202 14203 LIBICONV= 14204 LTLIBICONV= 14205 INCICONV= 14206 LIBICONV_PREFIX= 14207 HAVE_LIBICONV= 14208 rpathdirs= 14209 ltrpathdirs= 14210 names_already_handled= 14211 names_next_round='iconv ' 14212 while test -n "$names_next_round"; do 14213 names_this_round="$names_next_round" 14214 names_next_round= 14215 for name in $names_this_round; do 14216 already_handled= 14217 for n in $names_already_handled; do 14218 if test "$n" = "$name"; then 14219 already_handled=yes 14220 break 14221 fi 14222 done 14223 if test -z "$already_handled"; then 14224 names_already_handled="$names_already_handled $name" 14225 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 14226 eval value=\"\$HAVE_LIB$uppername\" 14227 if test -n "$value"; then 14228 if test "$value" = yes; then 14229 eval value=\"\$LIB$uppername\" 14230 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 14231 eval value=\"\$LTLIB$uppername\" 14232 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 14233 else 14234 : 14235 fi 14236 else 14237 found_dir= 14238 found_la= 14239 found_so= 14240 found_a= 14241 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 14242 if test -n "$acl_shlibext"; then 14243 shrext=".$acl_shlibext" # typically: shrext=.so 14244 else 14245 shrext= 14246 fi 14247 if test $use_additional = yes; then 14248 dir="$additional_libdir" 14249 if test -n "$acl_shlibext"; then 14250 if test -f "$dir/$libname$shrext"; then 14251 found_dir="$dir" 14252 found_so="$dir/$libname$shrext" 14253 else 14254 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14255 ver=`(cd "$dir" && \ 14256 for f in "$libname$shrext".*; do echo "$f"; done \ 14257 | sed -e "s,^$libname$shrext\\\\.,," \ 14258 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14259 | sed 1q ) 2>/dev/null` 14260 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14261 found_dir="$dir" 14262 found_so="$dir/$libname$shrext.$ver" 14263 fi 14264 else 14265 eval library_names=\"$acl_library_names_spec\" 14266 for f in $library_names; do 14267 if test -f "$dir/$f"; then 14268 found_dir="$dir" 14269 found_so="$dir/$f" 14270 break 14271 fi 14272 done 14273 fi 14274 fi 14275 fi 14276 if test "X$found_dir" = "X"; then 14277 if test -f "$dir/$libname.$acl_libext"; then 14278 found_dir="$dir" 14279 found_a="$dir/$libname.$acl_libext" 14280 fi 14281 fi 14282 if test "X$found_dir" != "X"; then 14283 if test -f "$dir/$libname.la"; then 14284 found_la="$dir/$libname.la" 14285 fi 14286 fi 14287 fi 14288 if test "X$found_dir" = "X"; then 14289 for x in $LDFLAGS $LTLIBICONV; do 14290 14291 acl_save_prefix="$prefix" 14292 prefix="$acl_final_prefix" 14293 acl_save_exec_prefix="$exec_prefix" 14294 exec_prefix="$acl_final_exec_prefix" 14295 eval x=\"$x\" 14296 exec_prefix="$acl_save_exec_prefix" 14297 prefix="$acl_save_prefix" 14298 14299 case "$x" in 14300 -L*) 14301 dir=`echo "X$x" | sed -e 's/^X-L//'` 14302 if test -n "$acl_shlibext"; then 14303 if test -f "$dir/$libname$shrext"; then 14304 found_dir="$dir" 14305 found_so="$dir/$libname$shrext" 14306 else 14307 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 14308 ver=`(cd "$dir" && \ 14309 for f in "$libname$shrext".*; do echo "$f"; done \ 14310 | sed -e "s,^$libname$shrext\\\\.,," \ 14311 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 14312 | sed 1q ) 2>/dev/null` 14313 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 14314 found_dir="$dir" 14315 found_so="$dir/$libname$shrext.$ver" 14316 fi 14317 else 14318 eval library_names=\"$acl_library_names_spec\" 14319 for f in $library_names; do 14320 if test -f "$dir/$f"; then 14321 found_dir="$dir" 14322 found_so="$dir/$f" 14323 break 14324 fi 14325 done 14326 fi 14327 fi 14328 fi 14329 if test "X$found_dir" = "X"; then 14330 if test -f "$dir/$libname.$acl_libext"; then 14331 found_dir="$dir" 14332 found_a="$dir/$libname.$acl_libext" 14333 fi 14334 fi 14335 if test "X$found_dir" != "X"; then 14336 if test -f "$dir/$libname.la"; then 14337 found_la="$dir/$libname.la" 14338 fi 14339 fi 14340 ;; 14341 esac 14342 if test "X$found_dir" != "X"; then 14343 break 14344 fi 14345 done 14346 fi 14347 if test "X$found_dir" != "X"; then 14348 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 14349 if test "X$found_so" != "X"; then 14350 if test "$enable_rpath" = no \ 14351 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 14352 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 14353 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14354 else 14355 haveit= 14356 for x in $ltrpathdirs; do 14357 if test "X$x" = "X$found_dir"; then 14358 haveit=yes 14359 break 14360 fi 14361 done 14362 if test -z "$haveit"; then 14363 ltrpathdirs="$ltrpathdirs $found_dir" 14364 fi 14365 if test "$acl_hardcode_direct" = yes; then 14366 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14367 else 14368 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 14369 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14370 haveit= 14371 for x in $rpathdirs; do 14372 if test "X$x" = "X$found_dir"; then 14373 haveit=yes 14374 break 14375 fi 14376 done 14377 if test -z "$haveit"; then 14378 rpathdirs="$rpathdirs $found_dir" 14379 fi 14380 else 14381 haveit= 14382 for x in $LDFLAGS $LIBICONV; do 14383 14384 acl_save_prefix="$prefix" 14385 prefix="$acl_final_prefix" 14386 acl_save_exec_prefix="$exec_prefix" 14387 exec_prefix="$acl_final_exec_prefix" 14388 eval x=\"$x\" 14389 exec_prefix="$acl_save_exec_prefix" 14390 prefix="$acl_save_prefix" 14391 14392 if test "X$x" = "X-L$found_dir"; then 14393 haveit=yes 14394 break 14395 fi 14396 done 14397 if test -z "$haveit"; then 14398 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 14399 fi 14400 if test "$acl_hardcode_minus_L" != no; then 14401 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 14402 else 14403 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14404 fi 14405 fi 14406 fi 14407 fi 14408 else 14409 if test "X$found_a" != "X"; then 14410 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 14411 else 14412 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 14413 fi 14414 fi 14415 additional_includedir= 14416 case "$found_dir" in 14417 */$acl_libdirstem | */$acl_libdirstem/) 14418 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 14419 if test "$name" = 'iconv'; then 14420 LIBICONV_PREFIX="$basedir" 14421 fi 14422 additional_includedir="$basedir/include" 14423 ;; 14424 */$acl_libdirstem2 | */$acl_libdirstem2/) 14425 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 14426 if test "$name" = 'iconv'; then 14427 LIBICONV_PREFIX="$basedir" 14428 fi 14429 additional_includedir="$basedir/include" 14430 ;; 14431 esac 14432 if test "X$additional_includedir" != "X"; then 14433 if test "X$additional_includedir" != "X/usr/include"; then 14434 haveit= 14435 if test "X$additional_includedir" = "X/usr/local/include"; then 14436 if test -n "$GCC"; then 14437 case $host_os in 14438 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14439 esac 14440 fi 14441 fi 14442 if test -z "$haveit"; then 14443 for x in $CPPFLAGS $INCICONV; do 14444 14445 acl_save_prefix="$prefix" 14446 prefix="$acl_final_prefix" 14447 acl_save_exec_prefix="$exec_prefix" 14448 exec_prefix="$acl_final_exec_prefix" 14449 eval x=\"$x\" 14450 exec_prefix="$acl_save_exec_prefix" 14451 prefix="$acl_save_prefix" 14452 14453 if test "X$x" = "X-I$additional_includedir"; then 14454 haveit=yes 14455 break 14456 fi 14457 done 14458 if test -z "$haveit"; then 14459 if test -d "$additional_includedir"; then 14460 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 14461 fi 14462 fi 14463 fi 14464 fi 14465 fi 14466 if test -n "$found_la"; then 14467 save_libdir="$libdir" 14468 case "$found_la" in 14469 */* | *\\*) . "$found_la" ;; 14470 *) . "./$found_la" ;; 14471 esac 14472 libdir="$save_libdir" 14473 for dep in $dependency_libs; do 14474 case "$dep" in 14475 -L*) 14476 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 14477 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 14478 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 14479 haveit= 14480 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 14481 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 14482 if test -n "$GCC"; then 14483 case $host_os in 14484 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 14485 esac 14486 fi 14487 fi 14488 if test -z "$haveit"; then 14489 haveit= 14490 for x in $LDFLAGS $LIBICONV; do 14491 14492 acl_save_prefix="$prefix" 14493 prefix="$acl_final_prefix" 14494 acl_save_exec_prefix="$exec_prefix" 14495 exec_prefix="$acl_final_exec_prefix" 14496 eval x=\"$x\" 14497 exec_prefix="$acl_save_exec_prefix" 14498 prefix="$acl_save_prefix" 14499 14500 if test "X$x" = "X-L$additional_libdir"; then 14501 haveit=yes 14502 break 14503 fi 14504 done 14505 if test -z "$haveit"; then 14506 if test -d "$additional_libdir"; then 14507 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 14508 fi 14509 fi 14510 haveit= 14511 for x in $LDFLAGS $LTLIBICONV; do 14512 14513 acl_save_prefix="$prefix" 14514 prefix="$acl_final_prefix" 14515 acl_save_exec_prefix="$exec_prefix" 14516 exec_prefix="$acl_final_exec_prefix" 14517 eval x=\"$x\" 14518 exec_prefix="$acl_save_exec_prefix" 14519 prefix="$acl_save_prefix" 14520 14521 if test "X$x" = "X-L$additional_libdir"; then 14522 haveit=yes 14523 break 14524 fi 14525 done 14526 if test -z "$haveit"; then 14527 if test -d "$additional_libdir"; then 14528 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 14529 fi 14530 fi 14531 fi 14532 fi 14533 ;; 14534 -R*) 14535 dir=`echo "X$dep" | sed -e 's/^X-R//'` 14536 if test "$enable_rpath" != no; then 14537 haveit= 14538 for x in $rpathdirs; do 14539 if test "X$x" = "X$dir"; then 14540 haveit=yes 14541 break 14542 fi 14543 done 14544 if test -z "$haveit"; then 14545 rpathdirs="$rpathdirs $dir" 14546 fi 14547 haveit= 14548 for x in $ltrpathdirs; do 14549 if test "X$x" = "X$dir"; then 14550 haveit=yes 14551 break 14552 fi 14553 done 14554 if test -z "$haveit"; then 14555 ltrpathdirs="$ltrpathdirs $dir" 14556 fi 14557 fi 14558 ;; 14559 -l*) 14560 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14561 ;; 14562 *.la) 14563 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14564 ;; 14565 *) 14566 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 14567 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 14568 ;; 14569 esac 14570 done 14571 fi 14572 else 14573 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 14574 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 14575 fi 14576 fi 14577 fi 14578 done 14579 done 14580 if test "X$rpathdirs" != "X"; then 14581 if test -n "$acl_hardcode_libdir_separator"; then 14582 alldirs= 14583 for found_dir in $rpathdirs; do 14584 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 14585 done 14586 acl_save_libdir="$libdir" 14587 libdir="$alldirs" 14588 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14589 libdir="$acl_save_libdir" 14590 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14591 else 14592 for found_dir in $rpathdirs; do 14593 acl_save_libdir="$libdir" 14594 libdir="$found_dir" 14595 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14596 libdir="$acl_save_libdir" 14597 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 14598 done 14599 fi 14600 fi 14601 if test "X$ltrpathdirs" != "X"; then 14602 for found_dir in $ltrpathdirs; do 14603 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 14604 done 14605 fi 14606 14607 14608 14609 14610 14611 14612 14613 14614 14615 14616 14617 14618 am_save_CPPFLAGS="$CPPFLAGS" 14619 14620 for element in $INCICONV; do 14621 haveit= 14622 for x in $CPPFLAGS; do 14623 14624 acl_save_prefix="$prefix" 14625 prefix="$acl_final_prefix" 14626 acl_save_exec_prefix="$exec_prefix" 14627 exec_prefix="$acl_final_exec_prefix" 14628 eval x=\"$x\" 14629 exec_prefix="$acl_save_exec_prefix" 14630 prefix="$acl_save_prefix" 14631 14632 if test "X$x" = "X$element"; then 14633 haveit=yes 14634 break 14635 fi 14636 done 14637 if test -z "$haveit"; then 14638 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14639 fi 14640 done 14641 14642 14643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 14644$as_echo_n "checking for iconv... " >&6; } 14645if test "${am_cv_func_iconv+set}" = set; then : 14646 $as_echo_n "(cached) " >&6 14647else 14648 14649 am_cv_func_iconv="no, consider installing GNU libiconv" 14650 am_cv_lib_iconv=no 14651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14652/* end confdefs.h. */ 14653#include <stdlib.h> 14654#include <iconv.h> 14655int 14656main () 14657{ 14658iconv_t cd = iconv_open("",""); 14659 iconv(cd,NULL,NULL,NULL,NULL); 14660 iconv_close(cd); 14661 ; 14662 return 0; 14663} 14664_ACEOF 14665if ac_fn_c_try_link "$LINENO"; then : 14666 am_cv_func_iconv=yes 14667fi 14668rm -f core conftest.err conftest.$ac_objext \ 14669 conftest$ac_exeext conftest.$ac_ext 14670 if test "$am_cv_func_iconv" != yes; then 14671 am_save_LIBS="$LIBS" 14672 LIBS="$LIBS $LIBICONV" 14673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14674/* end confdefs.h. */ 14675#include <stdlib.h> 14676#include <iconv.h> 14677int 14678main () 14679{ 14680iconv_t cd = iconv_open("",""); 14681 iconv(cd,NULL,NULL,NULL,NULL); 14682 iconv_close(cd); 14683 ; 14684 return 0; 14685} 14686_ACEOF 14687if ac_fn_c_try_link "$LINENO"; then : 14688 am_cv_lib_iconv=yes 14689 am_cv_func_iconv=yes 14690fi 14691rm -f core conftest.err conftest.$ac_objext \ 14692 conftest$ac_exeext conftest.$ac_ext 14693 LIBS="$am_save_LIBS" 14694 fi 14695 14696fi 14697{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 14698$as_echo "$am_cv_func_iconv" >&6; } 14699 if test "$am_cv_func_iconv" = yes; then 14700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 14701$as_echo_n "checking for working iconv... " >&6; } 14702if test "${am_cv_func_iconv_works+set}" = set; then : 14703 $as_echo_n "(cached) " >&6 14704else 14705 14706 am_save_LIBS="$LIBS" 14707 if test $am_cv_lib_iconv = yes; then 14708 LIBS="$LIBS $LIBICONV" 14709 fi 14710 if test "$cross_compiling" = yes; then : 14711 case "$host_os" in 14712 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 14713 *) am_cv_func_iconv_works="guessing yes" ;; 14714 esac 14715else 14716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14717/* end confdefs.h. */ 14718 14719#include <iconv.h> 14720#include <string.h> 14721int main () 14722{ 14723 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 14724 returns. */ 14725 { 14726 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 14727 if (cd_utf8_to_88591 != (iconv_t)(-1)) 14728 { 14729 static const char input[] = "\342\202\254"; /* EURO SIGN */ 14730 char buf[10]; 14731 const char *inptr = input; 14732 size_t inbytesleft = strlen (input); 14733 char *outptr = buf; 14734 size_t outbytesleft = sizeof (buf); 14735 size_t res = iconv (cd_utf8_to_88591, 14736 (char **) &inptr, &inbytesleft, 14737 &outptr, &outbytesleft); 14738 if (res == 0) 14739 return 1; 14740 } 14741 } 14742 /* Test against Solaris 10 bug: Failures are not distinguishable from 14743 successful returns. */ 14744 { 14745 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 14746 if (cd_ascii_to_88591 != (iconv_t)(-1)) 14747 { 14748 static const char input[] = "\263"; 14749 char buf[10]; 14750 const char *inptr = input; 14751 size_t inbytesleft = strlen (input); 14752 char *outptr = buf; 14753 size_t outbytesleft = sizeof (buf); 14754 size_t res = iconv (cd_ascii_to_88591, 14755 (char **) &inptr, &inbytesleft, 14756 &outptr, &outbytesleft); 14757 if (res == 0) 14758 return 1; 14759 } 14760 } 14761#if 0 /* This bug could be worked around by the caller. */ 14762 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 14763 { 14764 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 14765 if (cd_88591_to_utf8 != (iconv_t)(-1)) 14766 { 14767 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 14768 char buf[50]; 14769 const char *inptr = input; 14770 size_t inbytesleft = strlen (input); 14771 char *outptr = buf; 14772 size_t outbytesleft = sizeof (buf); 14773 size_t res = iconv (cd_88591_to_utf8, 14774 (char **) &inptr, &inbytesleft, 14775 &outptr, &outbytesleft); 14776 if ((int)res > 0) 14777 return 1; 14778 } 14779 } 14780#endif 14781 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 14782 provided. */ 14783 if (/* Try standardized names. */ 14784 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 14785 /* Try IRIX, OSF/1 names. */ 14786 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 14787 /* Try AIX names. */ 14788 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 14789 /* Try HP-UX names. */ 14790 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 14791 return 1; 14792 return 0; 14793} 14794_ACEOF 14795if ac_fn_c_try_run "$LINENO"; then : 14796 am_cv_func_iconv_works=yes 14797else 14798 am_cv_func_iconv_works=no 14799fi 14800rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 14801 conftest.$ac_objext conftest.beam conftest.$ac_ext 14802fi 14803 14804 LIBS="$am_save_LIBS" 14805 14806fi 14807{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 14808$as_echo "$am_cv_func_iconv_works" >&6; } 14809 case "$am_cv_func_iconv_works" in 14810 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 14811 *) am_func_iconv=yes ;; 14812 esac 14813 else 14814 am_func_iconv=no am_cv_lib_iconv=no 14815 fi 14816 if test "$am_func_iconv" = yes; then 14817 14818$as_echo "#define HAVE_ICONV 1" >>confdefs.h 14819 14820 fi 14821 if test "$am_cv_lib_iconv" = yes; then 14822 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 14823$as_echo_n "checking how to link with libiconv... " >&6; } 14824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 14825$as_echo "$LIBICONV" >&6; } 14826 else 14827 CPPFLAGS="$am_save_CPPFLAGS" 14828 LIBICONV= 14829 LTLIBICONV= 14830 fi 14831 14832 14833 14834 if test "$am_cv_func_iconv" = yes; then 14835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv declaration" >&5 14836$as_echo_n "checking for iconv declaration... " >&6; } 14837 if test "${am_cv_proto_iconv+set}" = set; then : 14838 $as_echo_n "(cached) " >&6 14839else 14840 14841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14842/* end confdefs.h. */ 14843 14844#include <stdlib.h> 14845#include <iconv.h> 14846extern 14847#ifdef __cplusplus 14848"C" 14849#endif 14850#if defined(__STDC__) || defined(__cplusplus) 14851size_t iconv (iconv_t cd, char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft); 14852#else 14853size_t iconv(); 14854#endif 14855 14856int 14857main () 14858{ 14859 14860 ; 14861 return 0; 14862} 14863_ACEOF 14864if ac_fn_c_try_compile "$LINENO"; then : 14865 am_cv_proto_iconv_arg1="" 14866else 14867 am_cv_proto_iconv_arg1="const" 14868fi 14869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14870 am_cv_proto_iconv="extern size_t iconv (iconv_t cd, $am_cv_proto_iconv_arg1 char * *inbuf, size_t *inbytesleft, char * *outbuf, size_t *outbytesleft);" 14871fi 14872 14873 am_cv_proto_iconv=`echo "$am_cv_proto_iconv" | tr -s ' ' | sed -e 's/( /(/'` 14874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: 14875 $am_cv_proto_iconv" >&5 14876$as_echo " 14877 $am_cv_proto_iconv" >&6; } 14878 14879cat >>confdefs.h <<_ACEOF 14880#define ICONV_CONST $am_cv_proto_iconv_arg1 14881_ACEOF 14882 14883 fi 14884 14885 14886 14887 14888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14889/* end confdefs.h. */ 14890int foo (int a) { a = __builtin_expect (a, 10); return a == 10 ? 0 : 1; } 14891int 14892main () 14893{ 14894 14895 ; 14896 return 0; 14897} 14898_ACEOF 14899if ac_fn_c_try_link "$LINENO"; then : 14900 14901$as_echo "#define HAVE_BUILTIN_EXPECT 1" >>confdefs.h 14902 14903fi 14904rm -f core conftest.err conftest.$ac_objext \ 14905 conftest$ac_exeext conftest.$ac_ext 14906 14907 for ac_header in argz.h inttypes.h limits.h unistd.h sys/param.h 14908do : 14909 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 14910ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 14911if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 14912 cat >>confdefs.h <<_ACEOF 14913#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 14914_ACEOF 14915 14916fi 14917 14918done 14919 14920 for ac_func in getcwd getegid geteuid getgid getuid mempcpy munmap \ 14921 stpcpy strcasecmp strdup strtoul tsearch uselocale argz_count \ 14922 argz_stringify argz_next __fsetlocking 14923do : 14924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 14925ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 14926if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 14927 cat >>confdefs.h <<_ACEOF 14928#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 14929_ACEOF 14930 14931fi 14932done 14933 14934 14935 14936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether feof_unlocked is declared" >&5 14937$as_echo_n "checking whether feof_unlocked is declared... " >&6; } 14938if test "${ac_cv_have_decl_feof_unlocked+set}" = set; then : 14939 $as_echo_n "(cached) " >&6 14940else 14941 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14942/* end confdefs.h. */ 14943#include <stdio.h> 14944int 14945main () 14946{ 14947 14948#ifndef feof_unlocked 14949 char *p = (char *) feof_unlocked; 14950#endif 14951 14952 ; 14953 return 0; 14954} 14955_ACEOF 14956if ac_fn_c_try_compile "$LINENO"; then : 14957 ac_cv_have_decl_feof_unlocked=yes 14958else 14959 ac_cv_have_decl_feof_unlocked=no 14960fi 14961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14962fi 14963{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_feof_unlocked" >&5 14964$as_echo "$ac_cv_have_decl_feof_unlocked" >&6; } 14965 if test $ac_cv_have_decl_feof_unlocked = yes; then 14966 gt_value=1 14967 else 14968 gt_value=0 14969 fi 14970 14971cat >>confdefs.h <<_ACEOF 14972#define HAVE_DECL_FEOF_UNLOCKED $gt_value 14973_ACEOF 14974 14975 14976 14977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether fgets_unlocked is declared" >&5 14978$as_echo_n "checking whether fgets_unlocked is declared... " >&6; } 14979if test "${ac_cv_have_decl_fgets_unlocked+set}" = set; then : 14980 $as_echo_n "(cached) " >&6 14981else 14982 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14983/* end confdefs.h. */ 14984#include <stdio.h> 14985int 14986main () 14987{ 14988 14989#ifndef fgets_unlocked 14990 char *p = (char *) fgets_unlocked; 14991#endif 14992 14993 ; 14994 return 0; 14995} 14996_ACEOF 14997if ac_fn_c_try_compile "$LINENO"; then : 14998 ac_cv_have_decl_fgets_unlocked=yes 14999else 15000 ac_cv_have_decl_fgets_unlocked=no 15001fi 15002rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15003fi 15004{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_fgets_unlocked" >&5 15005$as_echo "$ac_cv_have_decl_fgets_unlocked" >&6; } 15006 if test $ac_cv_have_decl_fgets_unlocked = yes; then 15007 gt_value=1 15008 else 15009 gt_value=0 15010 fi 15011 15012cat >>confdefs.h <<_ACEOF 15013#define HAVE_DECL_FGETS_UNLOCKED $gt_value 15014_ACEOF 15015 15016 15017 15018 15019 15020 for ac_prog in bison 15021do 15022 # Extract the first word of "$ac_prog", so it can be a program name with args. 15023set dummy $ac_prog; ac_word=$2 15024{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15025$as_echo_n "checking for $ac_word... " >&6; } 15026if test "${ac_cv_prog_INTLBISON+set}" = set; then : 15027 $as_echo_n "(cached) " >&6 15028else 15029 if test -n "$INTLBISON"; then 15030 ac_cv_prog_INTLBISON="$INTLBISON" # Let the user override the test. 15031else 15032as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15033for as_dir in $PATH 15034do 15035 IFS=$as_save_IFS 15036 test -z "$as_dir" && as_dir=. 15037 for ac_exec_ext in '' $ac_executable_extensions; do 15038 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15039 ac_cv_prog_INTLBISON="$ac_prog" 15040 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15041 break 2 15042 fi 15043done 15044 done 15045IFS=$as_save_IFS 15046 15047fi 15048fi 15049INTLBISON=$ac_cv_prog_INTLBISON 15050if test -n "$INTLBISON"; then 15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INTLBISON" >&5 15052$as_echo "$INTLBISON" >&6; } 15053else 15054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15055$as_echo "no" >&6; } 15056fi 15057 15058 15059 test -n "$INTLBISON" && break 15060done 15061 15062 if test -z "$INTLBISON"; then 15063 ac_verc_fail=yes 15064 else 15065 { $as_echo "$as_me:${as_lineno-$LINENO}: checking version of bison" >&5 15066$as_echo_n "checking version of bison... " >&6; } 15067 ac_prog_version=`$INTLBISON --version 2>&1 | sed -n 's/^.*GNU Bison.* \([0-9]*\.[0-9.]*\).*$/\1/p'` 15068 case $ac_prog_version in 15069 '') ac_prog_version="v. ?.??, bad"; ac_verc_fail=yes;; 15070 1.2[6-9]* | 1.[3-9][0-9]* | [2-9].*) 15071 ac_prog_version="$ac_prog_version, ok"; ac_verc_fail=no;; 15072 *) ac_prog_version="$ac_prog_version, bad"; ac_verc_fail=yes;; 15073 esac 15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_prog_version" >&5 15075$as_echo "$ac_prog_version" >&6; } 15076 fi 15077 if test $ac_verc_fail = yes; then 15078 INTLBISON=: 15079 fi 15080 15081 15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long long int" >&5 15083$as_echo_n "checking for long long int... " >&6; } 15084if test "${ac_cv_type_long_long_int+set}" = set; then : 15085 $as_echo_n "(cached) " >&6 15086else 15087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15088/* end confdefs.h. */ 15089 15090 /* For now, do not test the preprocessor; as of 2007 there are too many 15091 implementations with broken preprocessors. Perhaps this can 15092 be revisited in 2012. In the meantime, code should not expect 15093 #if to work with literals wider than 32 bits. */ 15094 /* Test literals. */ 15095 long long int ll = 9223372036854775807ll; 15096 long long int nll = -9223372036854775807LL; 15097 unsigned long long int ull = 18446744073709551615ULL; 15098 /* Test constant expressions. */ 15099 typedef int a[((-9223372036854775807LL < 0 && 0 < 9223372036854775807ll) 15100 ? 1 : -1)]; 15101 typedef int b[(18446744073709551615ULL <= (unsigned long long int) -1 15102 ? 1 : -1)]; 15103 int i = 63; 15104int 15105main () 15106{ 15107/* Test availability of runtime routines for shift and division. */ 15108 long long int llmax = 9223372036854775807ll; 15109 unsigned long long int ullmax = 18446744073709551615ull; 15110 return ((ll << 63) | (ll >> 63) | (ll < i) | (ll > i) 15111 | (llmax / ll) | (llmax % ll) 15112 | (ull << 63) | (ull >> 63) | (ull << i) | (ull >> i) 15113 | (ullmax / ull) | (ullmax % ull)); 15114 ; 15115 return 0; 15116} 15117 15118_ACEOF 15119if ac_fn_c_try_link "$LINENO"; then : 15120 if test "$cross_compiling" = yes; then : 15121 ac_cv_type_long_long_int=yes 15122else 15123 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15124/* end confdefs.h. */ 15125#include <limits.h> 15126 #ifndef LLONG_MAX 15127 # define HALF \ 15128 (1LL << (sizeof (long long int) * CHAR_BIT - 2)) 15129 # define LLONG_MAX (HALF - 1 + HALF) 15130 #endif 15131int 15132main () 15133{ 15134long long int n = 1; 15135 int i; 15136 for (i = 0; ; i++) 15137 { 15138 long long int m = n << i; 15139 if (m >> i != n) 15140 return 1; 15141 if (LLONG_MAX / 2 < m) 15142 break; 15143 } 15144 return 0; 15145 ; 15146 return 0; 15147} 15148_ACEOF 15149if ac_fn_c_try_run "$LINENO"; then : 15150 ac_cv_type_long_long_int=yes 15151else 15152 ac_cv_type_long_long_int=no 15153fi 15154rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15155 conftest.$ac_objext conftest.beam conftest.$ac_ext 15156fi 15157 15158else 15159 ac_cv_type_long_long_int=no 15160fi 15161rm -f core conftest.err conftest.$ac_objext \ 15162 conftest$ac_exeext conftest.$ac_ext 15163fi 15164{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_long_int" >&5 15165$as_echo "$ac_cv_type_long_long_int" >&6; } 15166 if test $ac_cv_type_long_long_int = yes; then 15167 15168$as_echo "#define HAVE_LONG_LONG_INT 1" >>confdefs.h 15169 15170 fi 15171 15172 15173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wchar_t" >&5 15174$as_echo_n "checking for wchar_t... " >&6; } 15175if test "${gt_cv_c_wchar_t+set}" = set; then : 15176 $as_echo_n "(cached) " >&6 15177else 15178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15179/* end confdefs.h. */ 15180#include <stddef.h> 15181 wchar_t foo = (wchar_t)'\0'; 15182int 15183main () 15184{ 15185 15186 ; 15187 return 0; 15188} 15189_ACEOF 15190if ac_fn_c_try_compile "$LINENO"; then : 15191 gt_cv_c_wchar_t=yes 15192else 15193 gt_cv_c_wchar_t=no 15194fi 15195rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15196fi 15197{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wchar_t" >&5 15198$as_echo "$gt_cv_c_wchar_t" >&6; } 15199 if test $gt_cv_c_wchar_t = yes; then 15200 15201$as_echo "#define HAVE_WCHAR_T 1" >>confdefs.h 15202 15203 fi 15204 15205 15206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wint_t" >&5 15207$as_echo_n "checking for wint_t... " >&6; } 15208if test "${gt_cv_c_wint_t+set}" = set; then : 15209 $as_echo_n "(cached) " >&6 15210else 15211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15212/* end confdefs.h. */ 15213 15214/* Tru64 with Desktop Toolkit C has a bug: <stdio.h> must be included before 15215 <wchar.h>. 15216 BSD/OS 4.0.1 has a bug: <stddef.h>, <stdio.h> and <time.h> must be included 15217 before <wchar.h>. */ 15218#include <stddef.h> 15219#include <stdio.h> 15220#include <time.h> 15221#include <wchar.h> 15222 wint_t foo = (wchar_t)'\0'; 15223int 15224main () 15225{ 15226 15227 ; 15228 return 0; 15229} 15230_ACEOF 15231if ac_fn_c_try_compile "$LINENO"; then : 15232 gt_cv_c_wint_t=yes 15233else 15234 gt_cv_c_wint_t=no 15235fi 15236rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15237fi 15238{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_wint_t" >&5 15239$as_echo "$gt_cv_c_wint_t" >&6; } 15240 if test $gt_cv_c_wint_t = yes; then 15241 15242$as_echo "#define HAVE_WINT_T 1" >>confdefs.h 15243 15244 fi 15245 15246 15247 15248 15249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for intmax_t" >&5 15250$as_echo_n "checking for intmax_t... " >&6; } 15251if test "${gt_cv_c_intmax_t+set}" = set; then : 15252 $as_echo_n "(cached) " >&6 15253else 15254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15255/* end confdefs.h. */ 15256 15257#include <stddef.h> 15258#include <stdlib.h> 15259#if HAVE_STDINT_H_WITH_UINTMAX 15260#include <stdint.h> 15261#endif 15262#if HAVE_INTTYPES_H_WITH_UINTMAX 15263#include <inttypes.h> 15264#endif 15265 15266int 15267main () 15268{ 15269intmax_t x = -1; 15270 return !x; 15271 ; 15272 return 0; 15273} 15274_ACEOF 15275if ac_fn_c_try_compile "$LINENO"; then : 15276 gt_cv_c_intmax_t=yes 15277else 15278 gt_cv_c_intmax_t=no 15279fi 15280rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15281fi 15282{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_c_intmax_t" >&5 15283$as_echo "$gt_cv_c_intmax_t" >&6; } 15284 if test $gt_cv_c_intmax_t = yes; then 15285 15286$as_echo "#define HAVE_INTMAX_T 1" >>confdefs.h 15287 15288 fi 15289 15290 15291 15292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether printf() supports POSIX/XSI format strings" >&5 15293$as_echo_n "checking whether printf() supports POSIX/XSI format strings... " >&6; } 15294if test "${gt_cv_func_printf_posix+set}" = set; then : 15295 $as_echo_n "(cached) " >&6 15296else 15297 15298 if test "$cross_compiling" = yes; then : 15299 15300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15301/* end confdefs.h. */ 15302 15303#if defined __NetBSD__ || defined __BEOS__ || defined _MSC_VER || defined __MINGW32__ || defined __CYGWIN__ 15304 notposix 15305#endif 15306 15307_ACEOF 15308if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15309 $EGREP "notposix" >/dev/null 2>&1; then : 15310 gt_cv_func_printf_posix="guessing no" 15311else 15312 gt_cv_func_printf_posix="guessing yes" 15313fi 15314rm -f conftest* 15315 15316 15317else 15318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15319/* end confdefs.h. */ 15320 15321#include <stdio.h> 15322#include <string.h> 15323/* The string "%2$d %1$d", with dollar characters protected from the shell's 15324 dollar expansion (possibly an autoconf bug). */ 15325static char format[] = { '%', '2', '$', 'd', ' ', '%', '1', '$', 'd', '\0' }; 15326static char buf[100]; 15327int main () 15328{ 15329 sprintf (buf, format, 33, 55); 15330 return (strcmp (buf, "55 33") != 0); 15331} 15332_ACEOF 15333if ac_fn_c_try_run "$LINENO"; then : 15334 gt_cv_func_printf_posix=yes 15335else 15336 gt_cv_func_printf_posix=no 15337fi 15338rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15339 conftest.$ac_objext conftest.beam conftest.$ac_ext 15340fi 15341 15342 15343fi 15344{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_printf_posix" >&5 15345$as_echo "$gt_cv_func_printf_posix" >&6; } 15346 case $gt_cv_func_printf_posix in 15347 *yes) 15348 15349$as_echo "#define HAVE_POSIX_PRINTF 1" >>confdefs.h 15350 15351 ;; 15352 esac 15353 15354 15355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C Library 2.1 or newer" >&5 15356$as_echo_n "checking whether we are using the GNU C Library 2.1 or newer... " >&6; } 15357if test "${ac_cv_gnu_library_2_1+set}" = set; then : 15358 $as_echo_n "(cached) " >&6 15359else 15360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15361/* end confdefs.h. */ 15362 15363#include <features.h> 15364#ifdef __GNU_LIBRARY__ 15365 #if (__GLIBC__ == 2 && __GLIBC_MINOR__ >= 1) || (__GLIBC__ > 2) 15366 Lucky GNU user 15367 #endif 15368#endif 15369 15370_ACEOF 15371if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15372 $EGREP "Lucky GNU user" >/dev/null 2>&1; then : 15373 ac_cv_gnu_library_2_1=yes 15374else 15375 ac_cv_gnu_library_2_1=no 15376fi 15377rm -f conftest* 15378 15379 15380 15381fi 15382{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_gnu_library_2_1" >&5 15383$as_echo "$ac_cv_gnu_library_2_1" >&6; } 15384 15385 GLIBC21="$ac_cv_gnu_library_2_1" 15386 15387 15388 15389 for ac_header in stdint.h 15390do : 15391 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 15392if test "x$ac_cv_header_stdint_h" = x""yes; then : 15393 cat >>confdefs.h <<_ACEOF 15394#define HAVE_STDINT_H 1 15395_ACEOF 15396 15397fi 15398 15399done 15400 15401 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SIZE_MAX" >&5 15402$as_echo_n "checking for SIZE_MAX... " >&6; } 15403if test "${gl_cv_size_max+set}" = set; then : 15404 $as_echo_n "(cached) " >&6 15405else 15406 15407 gl_cv_size_max= 15408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15409/* end confdefs.h. */ 15410 15411#include <limits.h> 15412#if HAVE_STDINT_H 15413#include <stdint.h> 15414#endif 15415#ifdef SIZE_MAX 15416Found it 15417#endif 15418 15419_ACEOF 15420if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 15421 $EGREP "Found it" >/dev/null 2>&1; then : 15422 gl_cv_size_max=yes 15423fi 15424rm -f conftest* 15425 15426 if test -z "$gl_cv_size_max"; then 15427 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) * CHAR_BIT - 1" "size_t_bits_minus_1" "#include <stddef.h> 15428#include <limits.h>"; then : 15429 15430else 15431 size_t_bits_minus_1= 15432fi 15433 15434 if ac_fn_c_compute_int "$LINENO" "sizeof (size_t) <= sizeof (unsigned int)" "fits_in_uint" "#include <stddef.h>"; then : 15435 15436else 15437 fits_in_uint= 15438fi 15439 15440 if test -n "$size_t_bits_minus_1" && test -n "$fits_in_uint"; then 15441 if test $fits_in_uint = 1; then 15442 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15443/* end confdefs.h. */ 15444#include <stddef.h> 15445 extern size_t foo; 15446 extern unsigned long foo; 15447 15448int 15449main () 15450{ 15451 15452 ; 15453 return 0; 15454} 15455_ACEOF 15456if ac_fn_c_try_compile "$LINENO"; then : 15457 fits_in_uint=0 15458fi 15459rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15460 fi 15461 if test $fits_in_uint = 1; then 15462 gl_cv_size_max="(((1U << $size_t_bits_minus_1) - 1) * 2 + 1)" 15463 else 15464 gl_cv_size_max="(((1UL << $size_t_bits_minus_1) - 1) * 2 + 1)" 15465 fi 15466 else 15467 gl_cv_size_max='((size_t)~(size_t)0)' 15468 fi 15469 fi 15470 15471fi 15472{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_size_max" >&5 15473$as_echo "$gl_cv_size_max" >&6; } 15474 if test "$gl_cv_size_max" != yes; then 15475 15476cat >>confdefs.h <<_ACEOF 15477#define SIZE_MAX $gl_cv_size_max 15478_ACEOF 15479 15480 fi 15481 15482 15483 15484 15485 15486 for ac_header in stdint.h 15487do : 15488 ac_fn_c_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default" 15489if test "x$ac_cv_header_stdint_h" = x""yes; then : 15490 cat >>confdefs.h <<_ACEOF 15491#define HAVE_STDINT_H 1 15492_ACEOF 15493 15494fi 15495 15496done 15497 15498 15499 15500 15501 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fcntl.h" >&5 15502$as_echo_n "checking for working fcntl.h... " >&6; } 15503if test "${gl_cv_header_working_fcntl_h+set}" = set; then : 15504 $as_echo_n "(cached) " >&6 15505else 15506 if test "$cross_compiling" = yes; then : 15507 gl_cv_header_working_fcntl_h=cross-compiling 15508else 15509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15510/* end confdefs.h. */ 15511#include <sys/types.h> 15512 #include <sys/stat.h> 15513 #include <unistd.h> 15514 #include <fcntl.h> 15515 #ifndef O_NOATIME 15516 #define O_NOATIME 0 15517 #endif 15518 #ifndef O_NOFOLLOW 15519 #define O_NOFOLLOW 0 15520 #endif 15521 static int const constants[] = 15522 { 15523 O_CREAT, O_EXCL, O_NOCTTY, O_TRUNC, O_APPEND, 15524 O_NONBLOCK, O_SYNC, O_ACCMODE, O_RDONLY, O_RDWR, O_WRONLY 15525 }; 15526 15527int 15528main () 15529{ 15530 15531 int status = !constants; 15532 { 15533 static char const sym[] = "conftest.sym"; 15534 if (symlink (".", sym) != 0 15535 || close (open (sym, O_RDONLY | O_NOFOLLOW)) == 0) 15536 status |= 32; 15537 unlink (sym); 15538 } 15539 { 15540 static char const file[] = "confdefs.h"; 15541 int fd = open (file, O_RDONLY | O_NOATIME); 15542 char c; 15543 struct stat st0, st1; 15544 if (fd < 0 15545 || fstat (fd, &st0) != 0 15546 || sleep (1) != 0 15547 || read (fd, &c, 1) != 1 15548 || close (fd) != 0 15549 || stat (file, &st1) != 0 15550 || st0.st_atime != st1.st_atime) 15551 status |= 64; 15552 } 15553 return status; 15554 ; 15555 return 0; 15556} 15557_ACEOF 15558if ac_fn_c_try_run "$LINENO"; then : 15559 gl_cv_header_working_fcntl_h=yes 15560else 15561 case $? in #( 15562 32) gl_cv_header_working_fcntl_h='no (bad O_NOFOLLOW)';; #( 15563 64) gl_cv_header_working_fcntl_h='no (bad O_NOATIME)';; #( 15564 96) gl_cv_header_working_fcntl_h='no (bad O_NOATIME, O_NOFOLLOW)';; #( 15565 *) gl_cv_header_working_fcntl_h='no';; 15566 esac 15567fi 15568rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 15569 conftest.$ac_objext conftest.beam conftest.$ac_ext 15570fi 15571 15572fi 15573{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_header_working_fcntl_h" >&5 15574$as_echo "$gl_cv_header_working_fcntl_h" >&6; } 15575 15576 case $gl_cv_header_working_fcntl_h in #( 15577 *O_NOATIME* | no | cross-compiling) ac_val=0;; #( 15578 *) ac_val=1;; 15579 esac 15580 15581cat >>confdefs.h <<_ACEOF 15582#define HAVE_WORKING_O_NOATIME $ac_val 15583_ACEOF 15584 15585 15586 case $gl_cv_header_working_fcntl_h in #( 15587 *O_NOFOLLOW* | no | cross-compiling) ac_val=0;; #( 15588 *) ac_val=1;; 15589 esac 15590 15591cat >>confdefs.h <<_ACEOF 15592#define HAVE_WORKING_O_NOFOLLOW $ac_val 15593_ACEOF 15594 15595 15596 15597 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 15598$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 15599if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 15600 $as_echo_n "(cached) " >&6 15601else 15602 gt_save_LIBS="$LIBS" 15603 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 15604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15605/* end confdefs.h. */ 15606#include <CoreFoundation/CFPreferences.h> 15607int 15608main () 15609{ 15610CFPreferencesCopyAppValue(NULL, NULL) 15611 ; 15612 return 0; 15613} 15614_ACEOF 15615if ac_fn_c_try_link "$LINENO"; then : 15616 gt_cv_func_CFPreferencesCopyAppValue=yes 15617else 15618 gt_cv_func_CFPreferencesCopyAppValue=no 15619fi 15620rm -f core conftest.err conftest.$ac_objext \ 15621 conftest$ac_exeext conftest.$ac_ext 15622 LIBS="$gt_save_LIBS" 15623fi 15624{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 15625$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 15626 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 15627 15628$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 15629 15630 fi 15631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 15632$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 15633if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 15634 $as_echo_n "(cached) " >&6 15635else 15636 gt_save_LIBS="$LIBS" 15637 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 15638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15639/* end confdefs.h. */ 15640#include <CoreFoundation/CFLocale.h> 15641int 15642main () 15643{ 15644CFLocaleCopyCurrent(); 15645 ; 15646 return 0; 15647} 15648_ACEOF 15649if ac_fn_c_try_link "$LINENO"; then : 15650 gt_cv_func_CFLocaleCopyCurrent=yes 15651else 15652 gt_cv_func_CFLocaleCopyCurrent=no 15653fi 15654rm -f core conftest.err conftest.$ac_objext \ 15655 conftest$ac_exeext conftest.$ac_ext 15656 LIBS="$gt_save_LIBS" 15657fi 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 15659$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 15660 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 15661 15662$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 15663 15664 fi 15665 INTL_MACOSX_LIBS= 15666 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 15667 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 15668 fi 15669 15670 15671 15672 15673 15674 15675 15676 case "$enable_silent_rules" in 15677 yes) INTL_DEFAULT_VERBOSITY=0;; 15678 no) INTL_DEFAULT_VERBOSITY=1;; 15679 *) INTL_DEFAULT_VERBOSITY=1;; 15680 esac 15681 15682 15683 ac_fn_c_check_type "$LINENO" "ptrdiff_t" "ac_cv_type_ptrdiff_t" "$ac_includes_default" 15684if test "x$ac_cv_type_ptrdiff_t" = x""yes; then : 15685 15686else 15687 15688$as_echo "#define ptrdiff_t long" >>confdefs.h 15689 15690 15691fi 15692 15693 for ac_header in stddef.h stdlib.h string.h 15694do : 15695 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 15696ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 15697if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 15698 cat >>confdefs.h <<_ACEOF 15699#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 15700_ACEOF 15701 15702fi 15703 15704done 15705 15706 for ac_func in asprintf fwprintf newlocale putenv setenv setlocale \ 15707 snprintf strnlen wcslen wcsnlen mbrtowc wcrtomb 15708do : 15709 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 15710ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 15711if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 15712 cat >>confdefs.h <<_ACEOF 15713#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 15714_ACEOF 15715 15716fi 15717done 15718 15719 15720 15721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snprintf is declared" >&5 15722$as_echo_n "checking whether _snprintf is declared... " >&6; } 15723if test "${ac_cv_have_decl__snprintf+set}" = set; then : 15724 $as_echo_n "(cached) " >&6 15725else 15726 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15727/* end confdefs.h. */ 15728#include <stdio.h> 15729int 15730main () 15731{ 15732 15733#ifndef _snprintf 15734 char *p = (char *) _snprintf; 15735#endif 15736 15737 ; 15738 return 0; 15739} 15740_ACEOF 15741if ac_fn_c_try_compile "$LINENO"; then : 15742 ac_cv_have_decl__snprintf=yes 15743else 15744 ac_cv_have_decl__snprintf=no 15745fi 15746rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15747fi 15748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snprintf" >&5 15749$as_echo "$ac_cv_have_decl__snprintf" >&6; } 15750 if test $ac_cv_have_decl__snprintf = yes; then 15751 gt_value=1 15752 else 15753 gt_value=0 15754 fi 15755 15756cat >>confdefs.h <<_ACEOF 15757#define HAVE_DECL__SNPRINTF $gt_value 15758_ACEOF 15759 15760 15761 15762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether _snwprintf is declared" >&5 15763$as_echo_n "checking whether _snwprintf is declared... " >&6; } 15764if test "${ac_cv_have_decl__snwprintf+set}" = set; then : 15765 $as_echo_n "(cached) " >&6 15766else 15767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15768/* end confdefs.h. */ 15769#include <stdio.h> 15770int 15771main () 15772{ 15773 15774#ifndef _snwprintf 15775 char *p = (char *) _snwprintf; 15776#endif 15777 15778 ; 15779 return 0; 15780} 15781_ACEOF 15782if ac_fn_c_try_compile "$LINENO"; then : 15783 ac_cv_have_decl__snwprintf=yes 15784else 15785 ac_cv_have_decl__snwprintf=no 15786fi 15787rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15788fi 15789{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl__snwprintf" >&5 15790$as_echo "$ac_cv_have_decl__snwprintf" >&6; } 15791 if test $ac_cv_have_decl__snwprintf = yes; then 15792 gt_value=1 15793 else 15794 gt_value=0 15795 fi 15796 15797cat >>confdefs.h <<_ACEOF 15798#define HAVE_DECL__SNWPRINTF $gt_value 15799_ACEOF 15800 15801 15802 15803 15804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getc_unlocked is declared" >&5 15805$as_echo_n "checking whether getc_unlocked is declared... " >&6; } 15806if test "${ac_cv_have_decl_getc_unlocked+set}" = set; then : 15807 $as_echo_n "(cached) " >&6 15808else 15809 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15810/* end confdefs.h. */ 15811#include <stdio.h> 15812int 15813main () 15814{ 15815 15816#ifndef getc_unlocked 15817 char *p = (char *) getc_unlocked; 15818#endif 15819 15820 ; 15821 return 0; 15822} 15823_ACEOF 15824if ac_fn_c_try_compile "$LINENO"; then : 15825 ac_cv_have_decl_getc_unlocked=yes 15826else 15827 ac_cv_have_decl_getc_unlocked=no 15828fi 15829rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15830fi 15831{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_have_decl_getc_unlocked" >&5 15832$as_echo "$ac_cv_have_decl_getc_unlocked" >&6; } 15833 if test $ac_cv_have_decl_getc_unlocked = yes; then 15834 gt_value=1 15835 else 15836 gt_value=0 15837 fi 15838 15839cat >>confdefs.h <<_ACEOF 15840#define HAVE_DECL_GETC_UNLOCKED $gt_value 15841_ACEOF 15842 15843 15844 15845 case $gt_cv_func_printf_posix in 15846 *yes) HAVE_POSIX_PRINTF=1 ;; 15847 *) HAVE_POSIX_PRINTF=0 ;; 15848 esac 15849 15850 if test "$ac_cv_func_asprintf" = yes; then 15851 HAVE_ASPRINTF=1 15852 else 15853 HAVE_ASPRINTF=0 15854 fi 15855 15856 if test "$ac_cv_func_snprintf" = yes; then 15857 HAVE_SNPRINTF=1 15858 else 15859 HAVE_SNPRINTF=0 15860 fi 15861 15862 if test "$ac_cv_func_newlocale" = yes; then 15863 HAVE_NEWLOCALE=1 15864 else 15865 HAVE_NEWLOCALE=0 15866 fi 15867 15868 if test "$ac_cv_func_wprintf" = yes; then 15869 HAVE_WPRINTF=1 15870 else 15871 HAVE_WPRINTF=0 15872 fi 15873 15874 15875 15876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nl_langinfo and CODESET" >&5 15877$as_echo_n "checking for nl_langinfo and CODESET... " >&6; } 15878if test "${am_cv_langinfo_codeset+set}" = set; then : 15879 $as_echo_n "(cached) " >&6 15880else 15881 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15882/* end confdefs.h. */ 15883#include <langinfo.h> 15884int 15885main () 15886{ 15887char* cs = nl_langinfo(CODESET); return !cs; 15888 ; 15889 return 0; 15890} 15891_ACEOF 15892if ac_fn_c_try_link "$LINENO"; then : 15893 am_cv_langinfo_codeset=yes 15894else 15895 am_cv_langinfo_codeset=no 15896fi 15897rm -f core conftest.err conftest.$ac_objext \ 15898 conftest$ac_exeext conftest.$ac_ext 15899 15900fi 15901{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_langinfo_codeset" >&5 15902$as_echo "$am_cv_langinfo_codeset" >&6; } 15903 if test $am_cv_langinfo_codeset = yes; then 15904 15905$as_echo "#define HAVE_LANGINFO_CODESET 1" >>confdefs.h 15906 15907 fi 15908 15909 15910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LC_MESSAGES" >&5 15911$as_echo_n "checking for LC_MESSAGES... " >&6; } 15912if test "${gt_cv_val_LC_MESSAGES+set}" = set; then : 15913 $as_echo_n "(cached) " >&6 15914else 15915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15916/* end confdefs.h. */ 15917#include <locale.h> 15918int 15919main () 15920{ 15921return LC_MESSAGES 15922 ; 15923 return 0; 15924} 15925_ACEOF 15926if ac_fn_c_try_link "$LINENO"; then : 15927 gt_cv_val_LC_MESSAGES=yes 15928else 15929 gt_cv_val_LC_MESSAGES=no 15930fi 15931rm -f core conftest.err conftest.$ac_objext \ 15932 conftest$ac_exeext conftest.$ac_ext 15933fi 15934{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_val_LC_MESSAGES" >&5 15935$as_echo "$gt_cv_val_LC_MESSAGES" >&6; } 15936 if test $gt_cv_val_LC_MESSAGES = yes; then 15937 15938$as_echo "#define HAVE_LC_MESSAGES 1" >>confdefs.h 15939 15940 fi 15941 15942 15943 if test "$enable_shared" = yes; then 15944 case "$host_os" in 15945 mingw* | cygwin*) is_woe32dll=yes ;; 15946 *) is_woe32dll=no ;; 15947 esac 15948 else 15949 is_woe32dll=no 15950 fi 15951 WOE32DLL=$is_woe32dll 15952 15953 15954 case "$host_os" in 15955 mingw* | cygwin*) is_woe32=yes ;; 15956 *) is_woe32=no ;; 15957 esac 15958 WOE32=$is_woe32 15959 15960 if test $WOE32 = yes; then 15961 if test -n "$ac_tool_prefix"; then 15962 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. 15963set dummy ${ac_tool_prefix}windres; ac_word=$2 15964{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15965$as_echo_n "checking for $ac_word... " >&6; } 15966if test "${ac_cv_prog_WINDRES+set}" = set; then : 15967 $as_echo_n "(cached) " >&6 15968else 15969 if test -n "$WINDRES"; then 15970 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. 15971else 15972as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15973for as_dir in $PATH 15974do 15975 IFS=$as_save_IFS 15976 test -z "$as_dir" && as_dir=. 15977 for ac_exec_ext in '' $ac_executable_extensions; do 15978 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 15979 ac_cv_prog_WINDRES="${ac_tool_prefix}windres" 15980 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15981 break 2 15982 fi 15983done 15984 done 15985IFS=$as_save_IFS 15986 15987fi 15988fi 15989WINDRES=$ac_cv_prog_WINDRES 15990if test -n "$WINDRES"; then 15991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 15992$as_echo "$WINDRES" >&6; } 15993else 15994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15995$as_echo "no" >&6; } 15996fi 15997 15998 15999fi 16000if test -z "$ac_cv_prog_WINDRES"; then 16001 ac_ct_WINDRES=$WINDRES 16002 # Extract the first word of "windres", so it can be a program name with args. 16003set dummy windres; ac_word=$2 16004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16005$as_echo_n "checking for $ac_word... " >&6; } 16006if test "${ac_cv_prog_ac_ct_WINDRES+set}" = set; then : 16007 $as_echo_n "(cached) " >&6 16008else 16009 if test -n "$ac_ct_WINDRES"; then 16010 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. 16011else 16012as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16013for as_dir in $PATH 16014do 16015 IFS=$as_save_IFS 16016 test -z "$as_dir" && as_dir=. 16017 for ac_exec_ext in '' $ac_executable_extensions; do 16018 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16019 ac_cv_prog_ac_ct_WINDRES="windres" 16020 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16021 break 2 16022 fi 16023done 16024 done 16025IFS=$as_save_IFS 16026 16027fi 16028fi 16029ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES 16030if test -n "$ac_ct_WINDRES"; then 16031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 16032$as_echo "$ac_ct_WINDRES" >&6; } 16033else 16034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16035$as_echo "no" >&6; } 16036fi 16037 16038 if test "x$ac_ct_WINDRES" = x; then 16039 WINDRES="" 16040 else 16041 case $cross_compiling:$ac_tool_warned in 16042yes:) 16043{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 16044$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 16045ac_tool_warned=yes ;; 16046esac 16047 WINDRES=$ac_ct_WINDRES 16048 fi 16049else 16050 WINDRES="$ac_cv_prog_WINDRES" 16051fi 16052 16053 fi 16054 16055 case "$host_os" in 16056 hpux*) LTLIBC="" ;; 16057 *) LTLIBC="-lc" ;; 16058 esac 16059 16060 16061 16062 16063 16064 16065 16066 16067 16068 16069 16070 16071 16072 16073 16074 16075 16076 16077 16078 16079 16080 16081 16082 16083 16084 16085 16086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 16087$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 16088if test "${gt_cv_func_CFPreferencesCopyAppValue+set}" = set; then : 16089 $as_echo_n "(cached) " >&6 16090else 16091 gt_save_LIBS="$LIBS" 16092 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 16093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16094/* end confdefs.h. */ 16095#include <CoreFoundation/CFPreferences.h> 16096int 16097main () 16098{ 16099CFPreferencesCopyAppValue(NULL, NULL) 16100 ; 16101 return 0; 16102} 16103_ACEOF 16104if ac_fn_c_try_link "$LINENO"; then : 16105 gt_cv_func_CFPreferencesCopyAppValue=yes 16106else 16107 gt_cv_func_CFPreferencesCopyAppValue=no 16108fi 16109rm -f core conftest.err conftest.$ac_objext \ 16110 conftest$ac_exeext conftest.$ac_ext 16111 LIBS="$gt_save_LIBS" 16112fi 16113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 16114$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 16115 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 16116 16117$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 16118 16119 fi 16120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 16121$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 16122if test "${gt_cv_func_CFLocaleCopyCurrent+set}" = set; then : 16123 $as_echo_n "(cached) " >&6 16124else 16125 gt_save_LIBS="$LIBS" 16126 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 16127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16128/* end confdefs.h. */ 16129#include <CoreFoundation/CFLocale.h> 16130int 16131main () 16132{ 16133CFLocaleCopyCurrent(); 16134 ; 16135 return 0; 16136} 16137_ACEOF 16138if ac_fn_c_try_link "$LINENO"; then : 16139 gt_cv_func_CFLocaleCopyCurrent=yes 16140else 16141 gt_cv_func_CFLocaleCopyCurrent=no 16142fi 16143rm -f core conftest.err conftest.$ac_objext \ 16144 conftest$ac_exeext conftest.$ac_ext 16145 LIBS="$gt_save_LIBS" 16146fi 16147{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 16148$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 16149 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 16150 16151$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 16152 16153 fi 16154 INTL_MACOSX_LIBS= 16155 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 16156 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 16157 fi 16158 16159 16160 16161 16162 16163 16164 BUILD_INCLUDED_LIBINTL=no 16165 USE_INCLUDED_LIBINTL=no 16166 16167 LIBINTL= 16168 LTLIBINTL= 16169 POSUB= 16170 16171 case " $gt_needs " in 16172 *" need-formatstring-macros "*) gt_api_version=3 ;; 16173 *" need-ngettext "*) gt_api_version=2 ;; 16174 *) gt_api_version=1 ;; 16175 esac 16176 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 16177 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 16178 16179 if test "$USE_NLS" = "yes"; then 16180 gt_use_preinstalled_gnugettext=no 16181 16182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether included gettext is requested" >&5 16183$as_echo_n "checking whether included gettext is requested... " >&6; } 16184 16185# Check whether --with-included-gettext was given. 16186if test "${with_included_gettext+set}" = set; then : 16187 withval=$with_included_gettext; nls_cv_force_use_gnu_gettext=$withval 16188else 16189 nls_cv_force_use_gnu_gettext=no 16190fi 16191 16192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $nls_cv_force_use_gnu_gettext" >&5 16193$as_echo "$nls_cv_force_use_gnu_gettext" >&6; } 16194 16195 nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" 16196 if test "$nls_cv_force_use_gnu_gettext" != "yes"; then 16197 16198 16199 if test $gt_api_version -ge 3; then 16200 gt_revision_test_code=' 16201#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 16202#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 16203#endif 16204typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 16205' 16206 else 16207 gt_revision_test_code= 16208 fi 16209 if test $gt_api_version -ge 2; then 16210 gt_expression_test_code=' + * ngettext ("", "", 0)' 16211 else 16212 gt_expression_test_code= 16213 fi 16214 16215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 16216$as_echo_n "checking for GNU gettext in libc... " >&6; } 16217if eval "test \"\${$gt_func_gnugettext_libc+set}\"" = set; then : 16218 $as_echo_n "(cached) " >&6 16219else 16220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16221/* end confdefs.h. */ 16222#include <libintl.h> 16223$gt_revision_test_code 16224extern int _nl_msg_cat_cntr; 16225extern int *_nl_domain_bindings; 16226int 16227main () 16228{ 16229bindtextdomain ("", ""); 16230return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 16231 ; 16232 return 0; 16233} 16234_ACEOF 16235if ac_fn_c_try_link "$LINENO"; then : 16236 eval "$gt_func_gnugettext_libc=yes" 16237else 16238 eval "$gt_func_gnugettext_libc=no" 16239fi 16240rm -f core conftest.err conftest.$ac_objext \ 16241 conftest$ac_exeext conftest.$ac_ext 16242fi 16243eval ac_res=\$$gt_func_gnugettext_libc 16244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16245$as_echo "$ac_res" >&6; } 16246 16247 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 16248 16249 16250 16251 16252 16253 16254 16255 16256 use_additional=yes 16257 16258 acl_save_prefix="$prefix" 16259 prefix="$acl_final_prefix" 16260 acl_save_exec_prefix="$exec_prefix" 16261 exec_prefix="$acl_final_exec_prefix" 16262 16263 eval additional_includedir=\"$includedir\" 16264 eval additional_libdir=\"$libdir\" 16265 16266 exec_prefix="$acl_save_exec_prefix" 16267 prefix="$acl_save_prefix" 16268 16269 16270# Check whether --with-libintl-prefix was given. 16271if test "${with_libintl_prefix+set}" = set; then : 16272 withval=$with_libintl_prefix; 16273 if test "X$withval" = "Xno"; then 16274 use_additional=no 16275 else 16276 if test "X$withval" = "X"; then 16277 16278 acl_save_prefix="$prefix" 16279 prefix="$acl_final_prefix" 16280 acl_save_exec_prefix="$exec_prefix" 16281 exec_prefix="$acl_final_exec_prefix" 16282 16283 eval additional_includedir=\"$includedir\" 16284 eval additional_libdir=\"$libdir\" 16285 16286 exec_prefix="$acl_save_exec_prefix" 16287 prefix="$acl_save_prefix" 16288 16289 else 16290 additional_includedir="$withval/include" 16291 additional_libdir="$withval/$acl_libdirstem" 16292 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 16293 && ! test -d "$withval/$acl_libdirstem"; then 16294 additional_libdir="$withval/$acl_libdirstem2" 16295 fi 16296 fi 16297 fi 16298 16299fi 16300 16301 LIBINTL= 16302 LTLIBINTL= 16303 INCINTL= 16304 LIBINTL_PREFIX= 16305 HAVE_LIBINTL= 16306 rpathdirs= 16307 ltrpathdirs= 16308 names_already_handled= 16309 names_next_round='intl ' 16310 while test -n "$names_next_round"; do 16311 names_this_round="$names_next_round" 16312 names_next_round= 16313 for name in $names_this_round; do 16314 already_handled= 16315 for n in $names_already_handled; do 16316 if test "$n" = "$name"; then 16317 already_handled=yes 16318 break 16319 fi 16320 done 16321 if test -z "$already_handled"; then 16322 names_already_handled="$names_already_handled $name" 16323 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./-|ABCDEFGHIJKLMNOPQRSTUVWXYZ___|'` 16324 eval value=\"\$HAVE_LIB$uppername\" 16325 if test -n "$value"; then 16326 if test "$value" = yes; then 16327 eval value=\"\$LIB$uppername\" 16328 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 16329 eval value=\"\$LTLIB$uppername\" 16330 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 16331 else 16332 : 16333 fi 16334 else 16335 found_dir= 16336 found_la= 16337 found_so= 16338 found_a= 16339 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 16340 if test -n "$acl_shlibext"; then 16341 shrext=".$acl_shlibext" # typically: shrext=.so 16342 else 16343 shrext= 16344 fi 16345 if test $use_additional = yes; then 16346 dir="$additional_libdir" 16347 if test -n "$acl_shlibext"; then 16348 if test -f "$dir/$libname$shrext"; then 16349 found_dir="$dir" 16350 found_so="$dir/$libname$shrext" 16351 else 16352 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16353 ver=`(cd "$dir" && \ 16354 for f in "$libname$shrext".*; do echo "$f"; done \ 16355 | sed -e "s,^$libname$shrext\\\\.,," \ 16356 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16357 | sed 1q ) 2>/dev/null` 16358 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16359 found_dir="$dir" 16360 found_so="$dir/$libname$shrext.$ver" 16361 fi 16362 else 16363 eval library_names=\"$acl_library_names_spec\" 16364 for f in $library_names; do 16365 if test -f "$dir/$f"; then 16366 found_dir="$dir" 16367 found_so="$dir/$f" 16368 break 16369 fi 16370 done 16371 fi 16372 fi 16373 fi 16374 if test "X$found_dir" = "X"; then 16375 if test -f "$dir/$libname.$acl_libext"; then 16376 found_dir="$dir" 16377 found_a="$dir/$libname.$acl_libext" 16378 fi 16379 fi 16380 if test "X$found_dir" != "X"; then 16381 if test -f "$dir/$libname.la"; then 16382 found_la="$dir/$libname.la" 16383 fi 16384 fi 16385 fi 16386 if test "X$found_dir" = "X"; then 16387 for x in $LDFLAGS $LTLIBINTL; do 16388 16389 acl_save_prefix="$prefix" 16390 prefix="$acl_final_prefix" 16391 acl_save_exec_prefix="$exec_prefix" 16392 exec_prefix="$acl_final_exec_prefix" 16393 eval x=\"$x\" 16394 exec_prefix="$acl_save_exec_prefix" 16395 prefix="$acl_save_prefix" 16396 16397 case "$x" in 16398 -L*) 16399 dir=`echo "X$x" | sed -e 's/^X-L//'` 16400 if test -n "$acl_shlibext"; then 16401 if test -f "$dir/$libname$shrext"; then 16402 found_dir="$dir" 16403 found_so="$dir/$libname$shrext" 16404 else 16405 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 16406 ver=`(cd "$dir" && \ 16407 for f in "$libname$shrext".*; do echo "$f"; done \ 16408 | sed -e "s,^$libname$shrext\\\\.,," \ 16409 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 16410 | sed 1q ) 2>/dev/null` 16411 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 16412 found_dir="$dir" 16413 found_so="$dir/$libname$shrext.$ver" 16414 fi 16415 else 16416 eval library_names=\"$acl_library_names_spec\" 16417 for f in $library_names; do 16418 if test -f "$dir/$f"; then 16419 found_dir="$dir" 16420 found_so="$dir/$f" 16421 break 16422 fi 16423 done 16424 fi 16425 fi 16426 fi 16427 if test "X$found_dir" = "X"; then 16428 if test -f "$dir/$libname.$acl_libext"; then 16429 found_dir="$dir" 16430 found_a="$dir/$libname.$acl_libext" 16431 fi 16432 fi 16433 if test "X$found_dir" != "X"; then 16434 if test -f "$dir/$libname.la"; then 16435 found_la="$dir/$libname.la" 16436 fi 16437 fi 16438 ;; 16439 esac 16440 if test "X$found_dir" != "X"; then 16441 break 16442 fi 16443 done 16444 fi 16445 if test "X$found_dir" != "X"; then 16446 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 16447 if test "X$found_so" != "X"; then 16448 if test "$enable_rpath" = no \ 16449 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 16450 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 16451 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16452 else 16453 haveit= 16454 for x in $ltrpathdirs; do 16455 if test "X$x" = "X$found_dir"; then 16456 haveit=yes 16457 break 16458 fi 16459 done 16460 if test -z "$haveit"; then 16461 ltrpathdirs="$ltrpathdirs $found_dir" 16462 fi 16463 if test "$acl_hardcode_direct" = yes; then 16464 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16465 else 16466 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 16467 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16468 haveit= 16469 for x in $rpathdirs; do 16470 if test "X$x" = "X$found_dir"; then 16471 haveit=yes 16472 break 16473 fi 16474 done 16475 if test -z "$haveit"; then 16476 rpathdirs="$rpathdirs $found_dir" 16477 fi 16478 else 16479 haveit= 16480 for x in $LDFLAGS $LIBINTL; do 16481 16482 acl_save_prefix="$prefix" 16483 prefix="$acl_final_prefix" 16484 acl_save_exec_prefix="$exec_prefix" 16485 exec_prefix="$acl_final_exec_prefix" 16486 eval x=\"$x\" 16487 exec_prefix="$acl_save_exec_prefix" 16488 prefix="$acl_save_prefix" 16489 16490 if test "X$x" = "X-L$found_dir"; then 16491 haveit=yes 16492 break 16493 fi 16494 done 16495 if test -z "$haveit"; then 16496 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 16497 fi 16498 if test "$acl_hardcode_minus_L" != no; then 16499 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 16500 else 16501 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 16502 fi 16503 fi 16504 fi 16505 fi 16506 else 16507 if test "X$found_a" != "X"; then 16508 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 16509 else 16510 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 16511 fi 16512 fi 16513 additional_includedir= 16514 case "$found_dir" in 16515 */$acl_libdirstem | */$acl_libdirstem/) 16516 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 16517 if test "$name" = 'intl'; then 16518 LIBINTL_PREFIX="$basedir" 16519 fi 16520 additional_includedir="$basedir/include" 16521 ;; 16522 */$acl_libdirstem2 | */$acl_libdirstem2/) 16523 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 16524 if test "$name" = 'intl'; then 16525 LIBINTL_PREFIX="$basedir" 16526 fi 16527 additional_includedir="$basedir/include" 16528 ;; 16529 esac 16530 if test "X$additional_includedir" != "X"; then 16531 if test "X$additional_includedir" != "X/usr/include"; then 16532 haveit= 16533 if test "X$additional_includedir" = "X/usr/local/include"; then 16534 if test -n "$GCC"; then 16535 case $host_os in 16536 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16537 esac 16538 fi 16539 fi 16540 if test -z "$haveit"; then 16541 for x in $CPPFLAGS $INCINTL; do 16542 16543 acl_save_prefix="$prefix" 16544 prefix="$acl_final_prefix" 16545 acl_save_exec_prefix="$exec_prefix" 16546 exec_prefix="$acl_final_exec_prefix" 16547 eval x=\"$x\" 16548 exec_prefix="$acl_save_exec_prefix" 16549 prefix="$acl_save_prefix" 16550 16551 if test "X$x" = "X-I$additional_includedir"; then 16552 haveit=yes 16553 break 16554 fi 16555 done 16556 if test -z "$haveit"; then 16557 if test -d "$additional_includedir"; then 16558 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 16559 fi 16560 fi 16561 fi 16562 fi 16563 fi 16564 if test -n "$found_la"; then 16565 save_libdir="$libdir" 16566 case "$found_la" in 16567 */* | *\\*) . "$found_la" ;; 16568 *) . "./$found_la" ;; 16569 esac 16570 libdir="$save_libdir" 16571 for dep in $dependency_libs; do 16572 case "$dep" in 16573 -L*) 16574 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 16575 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 16576 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 16577 haveit= 16578 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 16579 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 16580 if test -n "$GCC"; then 16581 case $host_os in 16582 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 16583 esac 16584 fi 16585 fi 16586 if test -z "$haveit"; then 16587 haveit= 16588 for x in $LDFLAGS $LIBINTL; do 16589 16590 acl_save_prefix="$prefix" 16591 prefix="$acl_final_prefix" 16592 acl_save_exec_prefix="$exec_prefix" 16593 exec_prefix="$acl_final_exec_prefix" 16594 eval x=\"$x\" 16595 exec_prefix="$acl_save_exec_prefix" 16596 prefix="$acl_save_prefix" 16597 16598 if test "X$x" = "X-L$additional_libdir"; then 16599 haveit=yes 16600 break 16601 fi 16602 done 16603 if test -z "$haveit"; then 16604 if test -d "$additional_libdir"; then 16605 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 16606 fi 16607 fi 16608 haveit= 16609 for x in $LDFLAGS $LTLIBINTL; do 16610 16611 acl_save_prefix="$prefix" 16612 prefix="$acl_final_prefix" 16613 acl_save_exec_prefix="$exec_prefix" 16614 exec_prefix="$acl_final_exec_prefix" 16615 eval x=\"$x\" 16616 exec_prefix="$acl_save_exec_prefix" 16617 prefix="$acl_save_prefix" 16618 16619 if test "X$x" = "X-L$additional_libdir"; then 16620 haveit=yes 16621 break 16622 fi 16623 done 16624 if test -z "$haveit"; then 16625 if test -d "$additional_libdir"; then 16626 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 16627 fi 16628 fi 16629 fi 16630 fi 16631 ;; 16632 -R*) 16633 dir=`echo "X$dep" | sed -e 's/^X-R//'` 16634 if test "$enable_rpath" != no; then 16635 haveit= 16636 for x in $rpathdirs; do 16637 if test "X$x" = "X$dir"; then 16638 haveit=yes 16639 break 16640 fi 16641 done 16642 if test -z "$haveit"; then 16643 rpathdirs="$rpathdirs $dir" 16644 fi 16645 haveit= 16646 for x in $ltrpathdirs; do 16647 if test "X$x" = "X$dir"; then 16648 haveit=yes 16649 break 16650 fi 16651 done 16652 if test -z "$haveit"; then 16653 ltrpathdirs="$ltrpathdirs $dir" 16654 fi 16655 fi 16656 ;; 16657 -l*) 16658 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 16659 ;; 16660 *.la) 16661 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 16662 ;; 16663 *) 16664 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 16665 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 16666 ;; 16667 esac 16668 done 16669 fi 16670 else 16671 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 16672 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 16673 fi 16674 fi 16675 fi 16676 done 16677 done 16678 if test "X$rpathdirs" != "X"; then 16679 if test -n "$acl_hardcode_libdir_separator"; then 16680 alldirs= 16681 for found_dir in $rpathdirs; do 16682 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 16683 done 16684 acl_save_libdir="$libdir" 16685 libdir="$alldirs" 16686 eval flag=\"$acl_hardcode_libdir_flag_spec\" 16687 libdir="$acl_save_libdir" 16688 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 16689 else 16690 for found_dir in $rpathdirs; do 16691 acl_save_libdir="$libdir" 16692 libdir="$found_dir" 16693 eval flag=\"$acl_hardcode_libdir_flag_spec\" 16694 libdir="$acl_save_libdir" 16695 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 16696 done 16697 fi 16698 fi 16699 if test "X$ltrpathdirs" != "X"; then 16700 for found_dir in $ltrpathdirs; do 16701 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 16702 done 16703 fi 16704 16705 16706 16707 16708 16709 16710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 16711$as_echo_n "checking for GNU gettext in libintl... " >&6; } 16712if eval "test \"\${$gt_func_gnugettext_libintl+set}\"" = set; then : 16713 $as_echo_n "(cached) " >&6 16714else 16715 gt_save_CPPFLAGS="$CPPFLAGS" 16716 CPPFLAGS="$CPPFLAGS $INCINTL" 16717 gt_save_LIBS="$LIBS" 16718 LIBS="$LIBS $LIBINTL" 16719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16720/* end confdefs.h. */ 16721#include <libintl.h> 16722$gt_revision_test_code 16723extern int _nl_msg_cat_cntr; 16724extern 16725#ifdef __cplusplus 16726"C" 16727#endif 16728const char *_nl_expand_alias (const char *); 16729int 16730main () 16731{ 16732bindtextdomain ("", ""); 16733return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 16734 ; 16735 return 0; 16736} 16737_ACEOF 16738if ac_fn_c_try_link "$LINENO"; then : 16739 eval "$gt_func_gnugettext_libintl=yes" 16740else 16741 eval "$gt_func_gnugettext_libintl=no" 16742fi 16743rm -f core conftest.err conftest.$ac_objext \ 16744 conftest$ac_exeext conftest.$ac_ext 16745 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 16746 LIBS="$LIBS $LIBICONV" 16747 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16748/* end confdefs.h. */ 16749#include <libintl.h> 16750$gt_revision_test_code 16751extern int _nl_msg_cat_cntr; 16752extern 16753#ifdef __cplusplus 16754"C" 16755#endif 16756const char *_nl_expand_alias (const char *); 16757int 16758main () 16759{ 16760bindtextdomain ("", ""); 16761return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 16762 ; 16763 return 0; 16764} 16765_ACEOF 16766if ac_fn_c_try_link "$LINENO"; then : 16767 LIBINTL="$LIBINTL $LIBICONV" 16768 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 16769 eval "$gt_func_gnugettext_libintl=yes" 16770 16771fi 16772rm -f core conftest.err conftest.$ac_objext \ 16773 conftest$ac_exeext conftest.$ac_ext 16774 fi 16775 CPPFLAGS="$gt_save_CPPFLAGS" 16776 LIBS="$gt_save_LIBS" 16777fi 16778eval ac_res=\$$gt_func_gnugettext_libintl 16779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 16780$as_echo "$ac_res" >&6; } 16781 fi 16782 16783 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 16784 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 16785 && test "$PACKAGE" != gettext-runtime \ 16786 && test "$PACKAGE" != gettext-tools; }; then 16787 gt_use_preinstalled_gnugettext=yes 16788 else 16789 LIBINTL= 16790 LTLIBINTL= 16791 INCINTL= 16792 fi 16793 16794 16795 if test "$gt_use_preinstalled_gnugettext" != "yes"; then 16796 nls_cv_use_gnu_gettext=yes 16797 fi 16798 fi 16799 16800 if test "$nls_cv_use_gnu_gettext" = "yes"; then 16801 BUILD_INCLUDED_LIBINTL=yes 16802 USE_INCLUDED_LIBINTL=yes 16803 LIBINTL="\${top_builddir}/intl/libintl.a $LIBICONV $LIBTHREAD" 16804 LTLIBINTL="\${top_builddir}/intl/libintl.a $LTLIBICONV $LTLIBTHREAD" 16805 LIBS=`echo " $LIBS " | sed -e 's/ -lintl / /' -e 's/^ //' -e 's/ $//'` 16806 fi 16807 16808 CATOBJEXT= 16809 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 16810 || test "$nls_cv_use_gnu_gettext" = "yes"; then 16811 CATOBJEXT=.gmo 16812 fi 16813 16814 16815 if test -n "$INTL_MACOSX_LIBS"; then 16816 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 16817 || test "$nls_cv_use_gnu_gettext" = "yes"; then 16818 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 16819 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 16820 fi 16821 fi 16822 16823 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 16824 || test "$nls_cv_use_gnu_gettext" = "yes"; then 16825 16826$as_echo "#define ENABLE_NLS 1" >>confdefs.h 16827 16828 else 16829 USE_NLS=no 16830 fi 16831 fi 16832 16833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 16834$as_echo_n "checking whether to use NLS... " >&6; } 16835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 16836$as_echo "$USE_NLS" >&6; } 16837 if test "$USE_NLS" = "yes"; then 16838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 16839$as_echo_n "checking where the gettext function comes from... " >&6; } 16840 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 16841 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 16842 gt_source="external libintl" 16843 else 16844 gt_source="libc" 16845 fi 16846 else 16847 gt_source="included intl directory" 16848 fi 16849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 16850$as_echo "$gt_source" >&6; } 16851 fi 16852 16853 if test "$USE_NLS" = "yes"; then 16854 16855 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 16856 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 16857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 16858$as_echo_n "checking how to link with libintl... " >&6; } 16859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 16860$as_echo "$LIBINTL" >&6; } 16861 16862 for element in $INCINTL; do 16863 haveit= 16864 for x in $CPPFLAGS; do 16865 16866 acl_save_prefix="$prefix" 16867 prefix="$acl_final_prefix" 16868 acl_save_exec_prefix="$exec_prefix" 16869 exec_prefix="$acl_final_exec_prefix" 16870 eval x=\"$x\" 16871 exec_prefix="$acl_save_exec_prefix" 16872 prefix="$acl_save_prefix" 16873 16874 if test "X$x" = "X$element"; then 16875 haveit=yes 16876 break 16877 fi 16878 done 16879 if test -z "$haveit"; then 16880 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 16881 fi 16882 done 16883 16884 fi 16885 16886 16887$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 16888 16889 16890$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 16891 16892 fi 16893 16894 POSUB=po 16895 fi 16896 16897 16898 if test "$PACKAGE" = gettext-runtime || test "$PACKAGE" = gettext-tools; then 16899 BUILD_INCLUDED_LIBINTL=yes 16900 fi 16901 16902 16903 16904 16905 16906 nls_cv_header_intl= 16907 nls_cv_header_libgt= 16908 16909 DATADIRNAME=share 16910 16911 16912 INSTOBJEXT=.mo 16913 16914 16915 GENCAT=gencat 16916 16917 16918 INTLOBJS= 16919 if test "$USE_INCLUDED_LIBINTL" = yes; then 16920 INTLOBJS="\$(GETTOBJS)" 16921 fi 16922 16923 16924 INTL_LIBTOOL_SUFFIX_PREFIX= 16925 16926 16927 16928 INTLLIBS="$LIBINTL" 16929 16930 16931 16932 16933 16934 16935 16936for ac_prog in courierauthconfig 16937do 16938 # Extract the first word of "$ac_prog", so it can be a program name with args. 16939set dummy $ac_prog; ac_word=$2 16940{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 16941$as_echo_n "checking for $ac_word... " >&6; } 16942if test "${ac_cv_path_COURIERAUTHCONFIG+set}" = set; then : 16943 $as_echo_n "(cached) " >&6 16944else 16945 case $COURIERAUTHCONFIG in 16946 [\\/]* | ?:[\\/]*) 16947 ac_cv_path_COURIERAUTHCONFIG="$COURIERAUTHCONFIG" # Let the user override the test with a path. 16948 ;; 16949 *) 16950 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 16951for as_dir in $PATH 16952do 16953 IFS=$as_save_IFS 16954 test -z "$as_dir" && as_dir=. 16955 for ac_exec_ext in '' $ac_executable_extensions; do 16956 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then 16957 ac_cv_path_COURIERAUTHCONFIG="$as_dir/$ac_word$ac_exec_ext" 16958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 16959 break 2 16960 fi 16961done 16962 done 16963IFS=$as_save_IFS 16964 16965 ;; 16966esac 16967fi 16968COURIERAUTHCONFIG=$ac_cv_path_COURIERAUTHCONFIG 16969if test -n "$COURIERAUTHCONFIG"; then 16970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COURIERAUTHCONFIG" >&5 16971$as_echo "$COURIERAUTHCONFIG" >&6; } 16972else 16973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 16974$as_echo "no" >&6; } 16975fi 16976 16977 16978 test -n "$COURIERAUTHCONFIG" && break 16979done 16980 16981 16982if test "$COURIERAUTHCONFIG" = "" 16983then 16984 as_fn_error $? "COURIERAUTHCONFIG not found" "$LINENO" 5 16985fi 16986 16987CPPAUTH="`$COURIERAUTHCONFIG --cppflags`" 16988LDAUTH="`$COURIERAUTHCONFIG --ldflags`" 16989 16990 16991 16992 16993USENSL=no 16994saveLIBS="$LIBS" 16995{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 16996$as_echo_n "checking for socket in -lsocket... " >&6; } 16997if test "${ac_cv_lib_socket_socket+set}" = set; then : 16998 $as_echo_n "(cached) " >&6 16999else 17000 ac_check_lib_save_LIBS=$LIBS 17001LIBS="-lsocket $LIBS" 17002cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17003/* end confdefs.h. */ 17004 17005/* Override any GCC internal prototype to avoid an error. 17006 Use char because int might match the return type of a GCC 17007 builtin and then its argument prototype would still apply. */ 17008#ifdef __cplusplus 17009extern "C" 17010#endif 17011char socket (); 17012int 17013main () 17014{ 17015return socket (); 17016 ; 17017 return 0; 17018} 17019_ACEOF 17020if ac_fn_c_try_link "$LINENO"; then : 17021 ac_cv_lib_socket_socket=yes 17022else 17023 ac_cv_lib_socket_socket=no 17024fi 17025rm -f core conftest.err conftest.$ac_objext \ 17026 conftest$ac_exeext conftest.$ac_ext 17027LIBS=$ac_check_lib_save_LIBS 17028fi 17029{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 17030$as_echo "$ac_cv_lib_socket_socket" >&6; } 17031if test "x$ac_cv_lib_socket_socket" = x""yes; then : 17032 result=yes 17033else 17034 result=no 17035fi 17036 17037if test $result = yes; then 17038 NETLIBS="-lsocket" 17039else 17040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5 17041$as_echo_n "checking for socket in -lsocket... " >&6; } 17042if test "${ac_cv_lib_socket_socket+set}" = set; then : 17043 $as_echo_n "(cached) " >&6 17044else 17045 ac_check_lib_save_LIBS=$LIBS 17046LIBS="-lsocket -lnsl $LIBS" 17047cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17048/* end confdefs.h. */ 17049 17050/* Override any GCC internal prototype to avoid an error. 17051 Use char because int might match the return type of a GCC 17052 builtin and then its argument prototype would still apply. */ 17053#ifdef __cplusplus 17054extern "C" 17055#endif 17056char socket (); 17057int 17058main () 17059{ 17060return socket (); 17061 ; 17062 return 0; 17063} 17064_ACEOF 17065if ac_fn_c_try_link "$LINENO"; then : 17066 ac_cv_lib_socket_socket=yes 17067else 17068 ac_cv_lib_socket_socket=no 17069fi 17070rm -f core conftest.err conftest.$ac_objext \ 17071 conftest$ac_exeext conftest.$ac_ext 17072LIBS=$ac_check_lib_save_LIBS 17073fi 17074{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5 17075$as_echo "$ac_cv_lib_socket_socket" >&6; } 17076if test "x$ac_cv_lib_socket_socket" = x""yes; then : 17077 result=yes 17078else 17079 result=no 17080fi 17081 17082 if test $result = yes; then 17083 NETLIBS = "-lsocket -lnsl" 17084 USENSL=yes 17085 else 17086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 17087$as_echo_n "checking for connect in -lsocket... " >&6; } 17088if test "${ac_cv_lib_socket_connect+set}" = set; then : 17089 $as_echo_n "(cached) " >&6 17090else 17091 ac_check_lib_save_LIBS=$LIBS 17092LIBS="-lsocket $LIBS" 17093cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17094/* end confdefs.h. */ 17095 17096/* Override any GCC internal prototype to avoid an error. 17097 Use char because int might match the return type of a GCC 17098 builtin and then its argument prototype would still apply. */ 17099#ifdef __cplusplus 17100extern "C" 17101#endif 17102char connect (); 17103int 17104main () 17105{ 17106return connect (); 17107 ; 17108 return 0; 17109} 17110_ACEOF 17111if ac_fn_c_try_link "$LINENO"; then : 17112 ac_cv_lib_socket_connect=yes 17113else 17114 ac_cv_lib_socket_connect=no 17115fi 17116rm -f core conftest.err conftest.$ac_objext \ 17117 conftest$ac_exeext conftest.$ac_ext 17118LIBS=$ac_check_lib_save_LIBS 17119fi 17120{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 17121$as_echo "$ac_cv_lib_socket_connect" >&6; } 17122if test "x$ac_cv_lib_socket_connect" = x""yes; then : 17123 result=yes 17124else 17125 result=no 17126fi 17127 17128 if test $result = yes; then 17129 NETLIBS="-lsocket" 17130 else 17131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 17132$as_echo_n "checking for connect in -lsocket... " >&6; } 17133if test "${ac_cv_lib_socket_connect+set}" = set; then : 17134 $as_echo_n "(cached) " >&6 17135else 17136 ac_check_lib_save_LIBS=$LIBS 17137LIBS="-lsocket -lnsl $LIBS" 17138cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17139/* end confdefs.h. */ 17140 17141/* Override any GCC internal prototype to avoid an error. 17142 Use char because int might match the return type of a GCC 17143 builtin and then its argument prototype would still apply. */ 17144#ifdef __cplusplus 17145extern "C" 17146#endif 17147char connect (); 17148int 17149main () 17150{ 17151return connect (); 17152 ; 17153 return 0; 17154} 17155_ACEOF 17156if ac_fn_c_try_link "$LINENO"; then : 17157 ac_cv_lib_socket_connect=yes 17158else 17159 ac_cv_lib_socket_connect=no 17160fi 17161rm -f core conftest.err conftest.$ac_objext \ 17162 conftest$ac_exeext conftest.$ac_ext 17163LIBS=$ac_check_lib_save_LIBS 17164fi 17165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 17166$as_echo "$ac_cv_lib_socket_connect" >&6; } 17167if test "x$ac_cv_lib_socket_connect" = x""yes; then : 17168 result=yes 17169else 17170 result=no 17171fi 17172 17173 if test $result = yes; then 17174 NETLIBS="-lsocket -lnsl" 17175 USENSL=yes 17176 fi 17177 fi 17178 fi 17179fi 17180 17181if test $USENSL != yes; then 17182 LIBS="$LIBS $NETLIBS" 17183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17184/* end confdefs.h. */ 17185 17186/* Override any GCC internal prototype to avoid an error. 17187 Use char because int might match the return type of a GCC 17188 builtin and then its argument prototype would still apply. */ 17189#ifdef __cplusplus 17190extern "C" 17191#endif 17192char inet_addr (); 17193int 17194main () 17195{ 17196return inet_addr (); 17197 ; 17198 return 0; 17199} 17200_ACEOF 17201if ac_fn_c_try_link "$LINENO"; then : 17202 : 17203else 17204 17205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inet_addr in -lnsl" >&5 17206$as_echo_n "checking for inet_addr in -lnsl... " >&6; } 17207if test "${ac_cv_lib_nsl_inet_addr+set}" = set; then : 17208 $as_echo_n "(cached) " >&6 17209else 17210 ac_check_lib_save_LIBS=$LIBS 17211LIBS="-lnsl $LIBS" 17212cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17213/* end confdefs.h. */ 17214 17215/* Override any GCC internal prototype to avoid an error. 17216 Use char because int might match the return type of a GCC 17217 builtin and then its argument prototype would still apply. */ 17218#ifdef __cplusplus 17219extern "C" 17220#endif 17221char inet_addr (); 17222int 17223main () 17224{ 17225return inet_addr (); 17226 ; 17227 return 0; 17228} 17229_ACEOF 17230if ac_fn_c_try_link "$LINENO"; then : 17231 ac_cv_lib_nsl_inet_addr=yes 17232else 17233 ac_cv_lib_nsl_inet_addr=no 17234fi 17235rm -f core conftest.err conftest.$ac_objext \ 17236 conftest$ac_exeext conftest.$ac_ext 17237LIBS=$ac_check_lib_save_LIBS 17238fi 17239{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_inet_addr" >&5 17240$as_echo "$ac_cv_lib_nsl_inet_addr" >&6; } 17241if test "x$ac_cv_lib_nsl_inet_addr" = x""yes; then : 17242 result=yes 17243else 17244 result=no 17245fi 17246 17247 if test $result = yes; then 17248 NETLIBS="$NETLIBS -lnsl" 17249 fi 17250 17251fi 17252rm -f core conftest.err conftest.$ac_objext \ 17253 conftest$ac_exeext conftest.$ac_ext 17254fi 17255 17256LIBS="$saveLIBS" 17257 17258echo $NETLIBS >pcp.libs 17259 17260 17261if test -d ${srcdir}/../courier 17262then 17263 scriptdir="$datadir/sqwebmail" 17264else 17265 scriptdir="$prefix" 17266fi 17267 17268SENDIT="$scriptdir/sendit.sh" 17269 17270 17271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 17272$as_echo_n "checking for ANSI C header files... " >&6; } 17273if test "${ac_cv_header_stdc+set}" = set; then : 17274 $as_echo_n "(cached) " >&6 17275else 17276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17277/* end confdefs.h. */ 17278#include <stdlib.h> 17279#include <stdarg.h> 17280#include <string.h> 17281#include <float.h> 17282 17283int 17284main () 17285{ 17286 17287 ; 17288 return 0; 17289} 17290_ACEOF 17291if ac_fn_c_try_compile "$LINENO"; then : 17292 ac_cv_header_stdc=yes 17293else 17294 ac_cv_header_stdc=no 17295fi 17296rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17297 17298if test $ac_cv_header_stdc = yes; then 17299 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 17300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17301/* end confdefs.h. */ 17302#include <string.h> 17303 17304_ACEOF 17305if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17306 $EGREP "memchr" >/dev/null 2>&1; then : 17307 17308else 17309 ac_cv_header_stdc=no 17310fi 17311rm -f conftest* 17312 17313fi 17314 17315if test $ac_cv_header_stdc = yes; then 17316 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 17317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17318/* end confdefs.h. */ 17319#include <stdlib.h> 17320 17321_ACEOF 17322if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17323 $EGREP "free" >/dev/null 2>&1; then : 17324 17325else 17326 ac_cv_header_stdc=no 17327fi 17328rm -f conftest* 17329 17330fi 17331 17332if test $ac_cv_header_stdc = yes; then 17333 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 17334 if test "$cross_compiling" = yes; then : 17335 : 17336else 17337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17338/* end confdefs.h. */ 17339#include <ctype.h> 17340#include <stdlib.h> 17341#if ((' ' & 0x0FF) == 0x020) 17342# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 17343# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 17344#else 17345# define ISLOWER(c) \ 17346 (('a' <= (c) && (c) <= 'i') \ 17347 || ('j' <= (c) && (c) <= 'r') \ 17348 || ('s' <= (c) && (c) <= 'z')) 17349# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 17350#endif 17351 17352#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 17353int 17354main () 17355{ 17356 int i; 17357 for (i = 0; i < 256; i++) 17358 if (XOR (islower (i), ISLOWER (i)) 17359 || toupper (i) != TOUPPER (i)) 17360 return 2; 17361 return 0; 17362} 17363_ACEOF 17364if ac_fn_c_try_run "$LINENO"; then : 17365 17366else 17367 ac_cv_header_stdc=no 17368fi 17369rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 17370 conftest.$ac_objext conftest.beam conftest.$ac_ext 17371fi 17372 17373fi 17374fi 17375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 17376$as_echo "$ac_cv_header_stdc" >&6; } 17377if test $ac_cv_header_stdc = yes; then 17378 17379$as_echo "#define STDC_HEADERS 1" >>confdefs.h 17380 17381fi 17382 17383for ac_header in fcntl.h sys/stat.h sys/time.h termios.h unistd.h 17384do : 17385 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 17386ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 17387if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17388 cat >>confdefs.h <<_ACEOF 17389#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 17390_ACEOF 17391 17392fi 17393 17394done 17395 17396ac_header_dirent=no 17397for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 17398 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 17399{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 17400$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 17401if eval "test \"\${$as_ac_Header+set}\"" = set; then : 17402 $as_echo_n "(cached) " >&6 17403else 17404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17405/* end confdefs.h. */ 17406#include <sys/types.h> 17407#include <$ac_hdr> 17408 17409int 17410main () 17411{ 17412if ((DIR *) 0) 17413return 0; 17414 ; 17415 return 0; 17416} 17417_ACEOF 17418if ac_fn_c_try_compile "$LINENO"; then : 17419 eval "$as_ac_Header=yes" 17420else 17421 eval "$as_ac_Header=no" 17422fi 17423rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17424fi 17425eval ac_res=\$$as_ac_Header 17426 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 17427$as_echo "$ac_res" >&6; } 17428if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 17429 cat >>confdefs.h <<_ACEOF 17430#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 17431_ACEOF 17432 17433ac_header_dirent=$ac_hdr; break 17434fi 17435 17436done 17437# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 17438if test $ac_header_dirent = dirent.h; then 17439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17440$as_echo_n "checking for library containing opendir... " >&6; } 17441if test "${ac_cv_search_opendir+set}" = set; then : 17442 $as_echo_n "(cached) " >&6 17443else 17444 ac_func_search_save_LIBS=$LIBS 17445cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17446/* end confdefs.h. */ 17447 17448/* Override any GCC internal prototype to avoid an error. 17449 Use char because int might match the return type of a GCC 17450 builtin and then its argument prototype would still apply. */ 17451#ifdef __cplusplus 17452extern "C" 17453#endif 17454char opendir (); 17455int 17456main () 17457{ 17458return opendir (); 17459 ; 17460 return 0; 17461} 17462_ACEOF 17463for ac_lib in '' dir; do 17464 if test -z "$ac_lib"; then 17465 ac_res="none required" 17466 else 17467 ac_res=-l$ac_lib 17468 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17469 fi 17470 if ac_fn_c_try_link "$LINENO"; then : 17471 ac_cv_search_opendir=$ac_res 17472fi 17473rm -f core conftest.err conftest.$ac_objext \ 17474 conftest$ac_exeext 17475 if test "${ac_cv_search_opendir+set}" = set; then : 17476 break 17477fi 17478done 17479if test "${ac_cv_search_opendir+set}" = set; then : 17480 17481else 17482 ac_cv_search_opendir=no 17483fi 17484rm conftest.$ac_ext 17485LIBS=$ac_func_search_save_LIBS 17486fi 17487{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17488$as_echo "$ac_cv_search_opendir" >&6; } 17489ac_res=$ac_cv_search_opendir 17490if test "$ac_res" != no; then : 17491 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17492 17493fi 17494 17495else 17496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 17497$as_echo_n "checking for library containing opendir... " >&6; } 17498if test "${ac_cv_search_opendir+set}" = set; then : 17499 $as_echo_n "(cached) " >&6 17500else 17501 ac_func_search_save_LIBS=$LIBS 17502cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17503/* end confdefs.h. */ 17504 17505/* Override any GCC internal prototype to avoid an error. 17506 Use char because int might match the return type of a GCC 17507 builtin and then its argument prototype would still apply. */ 17508#ifdef __cplusplus 17509extern "C" 17510#endif 17511char opendir (); 17512int 17513main () 17514{ 17515return opendir (); 17516 ; 17517 return 0; 17518} 17519_ACEOF 17520for ac_lib in '' x; do 17521 if test -z "$ac_lib"; then 17522 ac_res="none required" 17523 else 17524 ac_res=-l$ac_lib 17525 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 17526 fi 17527 if ac_fn_c_try_link "$LINENO"; then : 17528 ac_cv_search_opendir=$ac_res 17529fi 17530rm -f core conftest.err conftest.$ac_objext \ 17531 conftest$ac_exeext 17532 if test "${ac_cv_search_opendir+set}" = set; then : 17533 break 17534fi 17535done 17536if test "${ac_cv_search_opendir+set}" = set; then : 17537 17538else 17539 ac_cv_search_opendir=no 17540fi 17541rm conftest.$ac_ext 17542LIBS=$ac_func_search_save_LIBS 17543fi 17544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 17545$as_echo "$ac_cv_search_opendir" >&6; } 17546ac_res=$ac_cv_search_opendir 17547if test "$ac_res" != no; then : 17548 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 17549 17550fi 17551 17552fi 17553 17554{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 17555$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 17556if test "${ac_cv_header_time+set}" = set; then : 17557 $as_echo_n "(cached) " >&6 17558else 17559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17560/* end confdefs.h. */ 17561#include <sys/types.h> 17562#include <sys/time.h> 17563#include <time.h> 17564 17565int 17566main () 17567{ 17568if ((struct tm *) 0) 17569return 0; 17570 ; 17571 return 0; 17572} 17573_ACEOF 17574if ac_fn_c_try_compile "$LINENO"; then : 17575 ac_cv_header_time=yes 17576else 17577 ac_cv_header_time=no 17578fi 17579rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17580fi 17581{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 17582$as_echo "$ac_cv_header_time" >&6; } 17583if test $ac_cv_header_time = yes; then 17584 17585$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 17586 17587fi 17588 17589 17590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 17591$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 17592if test "${ac_cv_c_const+set}" = set; then : 17593 $as_echo_n "(cached) " >&6 17594else 17595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17596/* end confdefs.h. */ 17597 17598int 17599main () 17600{ 17601/* FIXME: Include the comments suggested by Paul. */ 17602#ifndef __cplusplus 17603 /* Ultrix mips cc rejects this. */ 17604 typedef int charset[2]; 17605 const charset cs; 17606 /* SunOS 4.1.1 cc rejects this. */ 17607 char const *const *pcpcc; 17608 char **ppc; 17609 /* NEC SVR4.0.2 mips cc rejects this. */ 17610 struct point {int x, y;}; 17611 static struct point const zero = {0,0}; 17612 /* AIX XL C 1.02.0.0 rejects this. 17613 It does not let you subtract one const X* pointer from another in 17614 an arm of an if-expression whose if-part is not a constant 17615 expression */ 17616 const char *g = "string"; 17617 pcpcc = &g + (g ? g-g : 0); 17618 /* HPUX 7.0 cc rejects these. */ 17619 ++pcpcc; 17620 ppc = (char**) pcpcc; 17621 pcpcc = (char const *const *) ppc; 17622 { /* SCO 3.2v4 cc rejects this. */ 17623 char *t; 17624 char const *s = 0 ? (char *) 0 : (char const *) 0; 17625 17626 *t++ = 0; 17627 if (s) return 0; 17628 } 17629 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 17630 int x[] = {25, 17}; 17631 const int *foo = &x[0]; 17632 ++foo; 17633 } 17634 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 17635 typedef const int *iptr; 17636 iptr p = 0; 17637 ++p; 17638 } 17639 { /* AIX XL C 1.02.0.0 rejects this saying 17640 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 17641 struct s { int j; const int *ap[3]; }; 17642 struct s *b; b->j = 5; 17643 } 17644 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 17645 const int foo = 10; 17646 if (!foo) return 0; 17647 } 17648 return !cs[0] && !zero.x; 17649#endif 17650 17651 ; 17652 return 0; 17653} 17654_ACEOF 17655if ac_fn_c_try_compile "$LINENO"; then : 17656 ac_cv_c_const=yes 17657else 17658 ac_cv_c_const=no 17659fi 17660rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17661fi 17662{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 17663$as_echo "$ac_cv_c_const" >&6; } 17664if test $ac_cv_c_const = no; then 17665 17666$as_echo "#define const /**/" >>confdefs.h 17667 17668fi 17669 17670{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 17671$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 17672if test "${ac_cv_type_uid_t+set}" = set; then : 17673 $as_echo_n "(cached) " >&6 17674else 17675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17676/* end confdefs.h. */ 17677#include <sys/types.h> 17678 17679_ACEOF 17680if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 17681 $EGREP "uid_t" >/dev/null 2>&1; then : 17682 ac_cv_type_uid_t=yes 17683else 17684 ac_cv_type_uid_t=no 17685fi 17686rm -f conftest* 17687 17688fi 17689{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 17690$as_echo "$ac_cv_type_uid_t" >&6; } 17691if test $ac_cv_type_uid_t = no; then 17692 17693$as_echo "#define uid_t int" >>confdefs.h 17694 17695 17696$as_echo "#define gid_t int" >>confdefs.h 17697 17698fi 17699 17700ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 17701if test "x$ac_cv_type_pid_t" = x""yes; then : 17702 17703else 17704 17705cat >>confdefs.h <<_ACEOF 17706#define pid_t int 17707_ACEOF 17708 17709fi 17710 17711{ $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5 17712$as_echo_n "checking return type of signal handlers... " >&6; } 17713if test "${ac_cv_type_signal+set}" = set; then : 17714 $as_echo_n "(cached) " >&6 17715else 17716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17717/* end confdefs.h. */ 17718#include <sys/types.h> 17719#include <signal.h> 17720 17721int 17722main () 17723{ 17724return *(signal (0, 0)) (0) == 1; 17725 ; 17726 return 0; 17727} 17728_ACEOF 17729if ac_fn_c_try_compile "$LINENO"; then : 17730 ac_cv_type_signal=int 17731else 17732 ac_cv_type_signal=void 17733fi 17734rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17735fi 17736{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5 17737$as_echo "$ac_cv_type_signal" >&6; } 17738 17739cat >>confdefs.h <<_ACEOF 17740#define RETSIGTYPE $ac_cv_type_signal 17741_ACEOF 17742 17743 17744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 17745$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 17746if test "${ac_cv_struct_tm+set}" = set; then : 17747 $as_echo_n "(cached) " >&6 17748else 17749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17750/* end confdefs.h. */ 17751#include <sys/types.h> 17752#include <time.h> 17753 17754int 17755main () 17756{ 17757struct tm tm; 17758 int *p = &tm.tm_sec; 17759 return !p; 17760 ; 17761 return 0; 17762} 17763_ACEOF 17764if ac_fn_c_try_compile "$LINENO"; then : 17765 ac_cv_struct_tm=time.h 17766else 17767 ac_cv_struct_tm=sys/time.h 17768fi 17769rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17770fi 17771{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 17772$as_echo "$ac_cv_struct_tm" >&6; } 17773if test $ac_cv_struct_tm = sys/time.h; then 17774 17775$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 17776 17777fi 17778 17779 17780{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t" >&5 17781$as_echo_n "checking for socklen_t... " >&6; } 17782if test "${pcpd_cv_hassocklen_t+set}" = set; then : 17783 $as_echo_n "(cached) " >&6 17784else 17785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17786/* end confdefs.h. */ 17787 17788#include <sys/types.h> 17789#include <sys/socket.h> 17790 17791socklen_t sl_t; 17792 17793_ACEOF 17794if ac_fn_c_try_compile "$LINENO"; then : 17795 pcpd_cv_hassocklen_t=yes 17796else 17797 pcpd_cv_hassocklen_t=no 17798fi 17799rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17800 17801fi 17802{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcpd_cv_hassocklen_t" >&5 17803$as_echo "$pcpd_cv_hassocklen_t" >&6; } 17804 17805socklen_t="int" 17806 17807if test $pcpd_cv_hassocklen_t = yes 17808then 17809 : 17810else 17811 17812cat >>confdefs.h <<_ACEOF 17813#define socklen_t int 17814_ACEOF 17815 17816fi 17817 17818for ac_func in gethostname strdup tcgetattr 17819do : 17820 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 17821ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 17822if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 17823 cat >>confdefs.h <<_ACEOF 17824#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 17825_ACEOF 17826 17827fi 17828done 17829 17830 17831 17832# Check whether --with-calendardir was given. 17833if test "${with_calendardir+set}" = set; then : 17834 withval=$with_calendardir; calendardir="$withval" 17835else 17836 calendardir="$localstatedir/calendar" 17837fi 17838 17839 17840 17841localpcpdcachedir="$calendardir/localcache" 17842 17843 17844 17845# Check whether --with-calendarpurge was given. 17846if test "${with_calendarpurge+set}" = set; then : 17847 withval=$with_calendarpurge; calendarpurge="$withval" 17848else 17849 calendarpurge=30 17850fi 17851 17852 17853 17854cat >>confdefs.h <<_ACEOF 17855#define CALENDARPURGE $calendarpurge 17856_ACEOF 17857 17858 17859# TODO 17860 17861# Check whether --enable-hardtimeout was given. 17862if test "${enable_hardtimeout+set}" = set; then : 17863 enableval=$enable_hardtimeout; TIMEOUT=$enableval 17864else 17865 TIMEOUT=1800 17866fi 17867 17868if test $TIMEOUT -lt 1800 17869then 17870 TIMEOUT=1800 17871fi 17872 17873 17874 17875# Check whether --with-cacheowner was given. 17876if test "${with_cacheowner+set}" = set; then : 17877 withval=$with_cacheowner; localcacheowner="$withval" 17878else 17879 localcacheowner="bin" 17880fi 17881 17882 17883 17884 17885cat >>confdefs.h <<_ACEOF 17886#define LOCALCACHEOWNER "$localcacheowner" 17887_ACEOF 17888 17889 17890 17891# Check whether --with-mailgroup was given. 17892if test "${with_mailgroup+set}" = set; then : 17893 withval=$with_mailgroup; mailgroup="$withval" 17894else 17895 for mailgroup in mail sys bin 17896 do 17897 if $PERL -e ' getgrnam("'$mailgroup'") && exit 0; exit 1;' 17898 then 17899 break; 17900 fi 17901 done 17902 17903fi 17904 17905 17906 17907cat >>confdefs.h <<_ACEOF 17908#define MAILGROUP "$mailgroup" 17909_ACEOF 17910 17911 17912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17913/* end confdefs.h. */ 17914 17915#include <signal.h> 17916#include <string.h> 17917#include <stdio.h> 17918 17919int 17920main () 17921{ 17922 17923struct sigaction sa; 17924 17925memset(&sa, 0, sizeof(sa)); 17926sa.sa_handler=SIG_IGN; 17927sa.sa_flags=SA_NOCLDWAIT; 17928sigaction(SIGCHLD, &sa, NULL); 17929 17930 ; 17931 return 0; 17932} 17933_ACEOF 17934if ac_fn_c_try_compile "$LINENO"; then : 17935 17936cat >>confdefs.h <<_ACEOF 17937#define USE_NOCLDWAIT 1 17938_ACEOF 17939 17940fi 17941rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 17942 17943if test -f $srcdir/.debug 17944then 17945 EFENCE="-lefence" 17946fi 17947 17948 17949if test x$GCC = xyes 17950then 17951 CFLAGS="-Wall $CFLAGS" 17952fi 17953 17954CPPFLAGS="-Iintl/ -I${srcdir}/intl $CPPFLAGS" 17955MKINSTALLDIRS="$mkdir_p" 17956ac_config_files="$ac_config_files Makefile po/Makefile.in intl/Makefile" 17957 17958cat >confcache <<\_ACEOF 17959# This file is a shell script that caches the results of configure 17960# tests run on this system so they can be shared between configure 17961# scripts and configure runs, see configure's option --config-cache. 17962# It is not useful on other systems. If it contains results you don't 17963# want to keep, you may remove or edit it. 17964# 17965# config.status only pays attention to the cache file if you give it 17966# the --recheck option to rerun configure. 17967# 17968# `ac_cv_env_foo' variables (set or unset) will be overridden when 17969# loading this file, other *unset* `ac_cv_foo' will be assigned the 17970# following values. 17971 17972_ACEOF 17973 17974# The following way of writing the cache mishandles newlines in values, 17975# but we know of no workaround that is simple, portable, and efficient. 17976# So, we kill variables containing newlines. 17977# Ultrix sh set writes to stderr and can't be redirected directly, 17978# and sets the high bit in the cache file unless we assign to the vars. 17979( 17980 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 17981 eval ac_val=\$$ac_var 17982 case $ac_val in #( 17983 *${as_nl}*) 17984 case $ac_var in #( 17985 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 17986$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 17987 esac 17988 case $ac_var in #( 17989 _ | IFS | as_nl) ;; #( 17990 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 17991 *) { eval $ac_var=; unset $ac_var;} ;; 17992 esac ;; 17993 esac 17994 done 17995 17996 (set) 2>&1 | 17997 case $as_nl`(ac_space=' '; set) 2>&1` in #( 17998 *${as_nl}ac_space=\ *) 17999 # `set' does not quote correctly, so add quotes: double-quote 18000 # substitution turns \\\\ into \\, and sed turns \\ into \. 18001 sed -n \ 18002 "s/'/'\\\\''/g; 18003 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 18004 ;; #( 18005 *) 18006 # `set' quotes correctly as required by POSIX, so do not add quotes. 18007 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 18008 ;; 18009 esac | 18010 sort 18011) | 18012 sed ' 18013 /^ac_cv_env_/b end 18014 t clear 18015 :clear 18016 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 18017 t end 18018 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 18019 :end' >>confcache 18020if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 18021 if test -w "$cache_file"; then 18022 test "x$cache_file" != "x/dev/null" && 18023 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 18024$as_echo "$as_me: updating cache $cache_file" >&6;} 18025 cat confcache >$cache_file 18026 else 18027 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 18028$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 18029 fi 18030fi 18031rm -f confcache 18032 18033test "x$prefix" = xNONE && prefix=$ac_default_prefix 18034# Let make expand exec_prefix. 18035test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 18036 18037DEFS=-DHAVE_CONFIG_H 18038 18039ac_libobjs= 18040ac_ltlibobjs= 18041U= 18042for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 18043 # 1. Remove the extension, and $U if already installed. 18044 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 18045 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 18046 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 18047 # will be set to the directory where LIBOBJS objects are built. 18048 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 18049 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 18050done 18051LIBOBJS=$ac_libobjs 18052 18053LTLIBOBJS=$ac_ltlibobjs 18054 18055 18056 if test -n "$EXEEXT"; then 18057 am__EXEEXT_TRUE= 18058 am__EXEEXT_FALSE='#' 18059else 18060 am__EXEEXT_TRUE='#' 18061 am__EXEEXT_FALSE= 18062fi 18063 18064if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 18065 as_fn_error $? "conditional \"AMDEP\" was never defined. 18066Usually this means the macro was only invoked conditionally." "$LINENO" 5 18067fi 18068if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18069 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18070Usually this means the macro was only invoked conditionally." "$LINENO" 5 18071fi 18072if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 18073 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 18074Usually this means the macro was only invoked conditionally." "$LINENO" 5 18075fi 18076 18077: ${CONFIG_STATUS=./config.status} 18078ac_write_fail=0 18079ac_clean_files_save=$ac_clean_files 18080ac_clean_files="$ac_clean_files $CONFIG_STATUS" 18081{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 18082$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 18083as_write_fail=0 18084cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 18085#! $SHELL 18086# Generated by $as_me. 18087# Run this file to recreate the current configuration. 18088# Compiler output produced by configure, useful for debugging 18089# configure, is in config.log if it exists. 18090 18091debug=false 18092ac_cs_recheck=false 18093ac_cs_silent=false 18094 18095SHELL=\${CONFIG_SHELL-$SHELL} 18096export SHELL 18097_ASEOF 18098cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 18099## -------------------- ## 18100## M4sh Initialization. ## 18101## -------------------- ## 18102 18103# Be more Bourne compatible 18104DUALCASE=1; export DUALCASE # for MKS sh 18105if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18106 emulate sh 18107 NULLCMD=: 18108 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 18109 # is contrary to our usage. Disable this feature. 18110 alias -g '${1+"$@"}'='"$@"' 18111 setopt NO_GLOB_SUBST 18112else 18113 case `(set -o) 2>/dev/null` in #( 18114 *posix*) : 18115 set -o posix ;; #( 18116 *) : 18117 ;; 18118esac 18119fi 18120 18121 18122as_nl=' 18123' 18124export as_nl 18125# Printing a long string crashes Solaris 7 /usr/bin/printf. 18126as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 18127as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 18128as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 18129# Prefer a ksh shell builtin over an external printf program on Solaris, 18130# but without wasting forks for bash or zsh. 18131if test -z "$BASH_VERSION$ZSH_VERSION" \ 18132 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 18133 as_echo='print -r --' 18134 as_echo_n='print -rn --' 18135elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 18136 as_echo='printf %s\n' 18137 as_echo_n='printf %s' 18138else 18139 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 18140 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 18141 as_echo_n='/usr/ucb/echo -n' 18142 else 18143 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 18144 as_echo_n_body='eval 18145 arg=$1; 18146 case $arg in #( 18147 *"$as_nl"*) 18148 expr "X$arg" : "X\\(.*\\)$as_nl"; 18149 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 18150 esac; 18151 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 18152 ' 18153 export as_echo_n_body 18154 as_echo_n='sh -c $as_echo_n_body as_echo' 18155 fi 18156 export as_echo_body 18157 as_echo='sh -c $as_echo_body as_echo' 18158fi 18159 18160# The user is always right. 18161if test "${PATH_SEPARATOR+set}" != set; then 18162 PATH_SEPARATOR=: 18163 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 18164 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 18165 PATH_SEPARATOR=';' 18166 } 18167fi 18168 18169 18170# IFS 18171# We need space, tab and new line, in precisely that order. Quoting is 18172# there to prevent editors from complaining about space-tab. 18173# (If _AS_PATH_WALK were called with IFS unset, it would disable word 18174# splitting by setting IFS to empty value.) 18175IFS=" "" $as_nl" 18176 18177# Find who we are. Look in the path if we contain no directory separator. 18178case $0 in #(( 18179 *[\\/]* ) as_myself=$0 ;; 18180 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18181for as_dir in $PATH 18182do 18183 IFS=$as_save_IFS 18184 test -z "$as_dir" && as_dir=. 18185 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 18186 done 18187IFS=$as_save_IFS 18188 18189 ;; 18190esac 18191# We did not find ourselves, most probably we were run as `sh COMMAND' 18192# in which case we are not to be found in the path. 18193if test "x$as_myself" = x; then 18194 as_myself=$0 18195fi 18196if test ! -f "$as_myself"; then 18197 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 18198 exit 1 18199fi 18200 18201# Unset variables that we do not need and which cause bugs (e.g. in 18202# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 18203# suppresses any "Segmentation fault" message there. '((' could 18204# trigger a bug in pdksh 5.2.14. 18205for as_var in BASH_ENV ENV MAIL MAILPATH 18206do eval test x\${$as_var+set} = xset \ 18207 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 18208done 18209PS1='$ ' 18210PS2='> ' 18211PS4='+ ' 18212 18213# NLS nuisances. 18214LC_ALL=C 18215export LC_ALL 18216LANGUAGE=C 18217export LANGUAGE 18218 18219# CDPATH. 18220(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18221 18222 18223# as_fn_error STATUS ERROR [LINENO LOG_FD] 18224# ---------------------------------------- 18225# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 18226# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 18227# script with STATUS, using 1 if that was 0. 18228as_fn_error () 18229{ 18230 as_status=$1; test $as_status -eq 0 && as_status=1 18231 if test "$4"; then 18232 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 18233 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 18234 fi 18235 $as_echo "$as_me: error: $2" >&2 18236 as_fn_exit $as_status 18237} # as_fn_error 18238 18239 18240# as_fn_set_status STATUS 18241# ----------------------- 18242# Set $? to STATUS, without forking. 18243as_fn_set_status () 18244{ 18245 return $1 18246} # as_fn_set_status 18247 18248# as_fn_exit STATUS 18249# ----------------- 18250# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 18251as_fn_exit () 18252{ 18253 set +e 18254 as_fn_set_status $1 18255 exit $1 18256} # as_fn_exit 18257 18258# as_fn_unset VAR 18259# --------------- 18260# Portably unset VAR. 18261as_fn_unset () 18262{ 18263 { eval $1=; unset $1;} 18264} 18265as_unset=as_fn_unset 18266# as_fn_append VAR VALUE 18267# ---------------------- 18268# Append the text in VALUE to the end of the definition contained in VAR. Take 18269# advantage of any shell optimizations that allow amortized linear growth over 18270# repeated appends, instead of the typical quadratic growth present in naive 18271# implementations. 18272if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 18273 eval 'as_fn_append () 18274 { 18275 eval $1+=\$2 18276 }' 18277else 18278 as_fn_append () 18279 { 18280 eval $1=\$$1\$2 18281 } 18282fi # as_fn_append 18283 18284# as_fn_arith ARG... 18285# ------------------ 18286# Perform arithmetic evaluation on the ARGs, and store the result in the 18287# global $as_val. Take advantage of shells that can avoid forks. The arguments 18288# must be portable across $(()) and expr. 18289if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 18290 eval 'as_fn_arith () 18291 { 18292 as_val=$(( $* )) 18293 }' 18294else 18295 as_fn_arith () 18296 { 18297 as_val=`expr "$@" || test $? -eq 1` 18298 } 18299fi # as_fn_arith 18300 18301 18302if expr a : '\(a\)' >/dev/null 2>&1 && 18303 test "X`expr 00001 : '.*\(...\)'`" = X001; then 18304 as_expr=expr 18305else 18306 as_expr=false 18307fi 18308 18309if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 18310 as_basename=basename 18311else 18312 as_basename=false 18313fi 18314 18315if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 18316 as_dirname=dirname 18317else 18318 as_dirname=false 18319fi 18320 18321as_me=`$as_basename -- "$0" || 18322$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 18323 X"$0" : 'X\(//\)$' \| \ 18324 X"$0" : 'X\(/\)' \| . 2>/dev/null || 18325$as_echo X/"$0" | 18326 sed '/^.*\/\([^/][^/]*\)\/*$/{ 18327 s//\1/ 18328 q 18329 } 18330 /^X\/\(\/\/\)$/{ 18331 s//\1/ 18332 q 18333 } 18334 /^X\/\(\/\).*/{ 18335 s//\1/ 18336 q 18337 } 18338 s/.*/./; q'` 18339 18340# Avoid depending upon Character Ranges. 18341as_cr_letters='abcdefghijklmnopqrstuvwxyz' 18342as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 18343as_cr_Letters=$as_cr_letters$as_cr_LETTERS 18344as_cr_digits='0123456789' 18345as_cr_alnum=$as_cr_Letters$as_cr_digits 18346 18347ECHO_C= ECHO_N= ECHO_T= 18348case `echo -n x` in #((((( 18349-n*) 18350 case `echo 'xy\c'` in 18351 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 18352 xy) ECHO_C='\c';; 18353 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 18354 ECHO_T=' ';; 18355 esac;; 18356*) 18357 ECHO_N='-n';; 18358esac 18359 18360rm -f conf$$ conf$$.exe conf$$.file 18361if test -d conf$$.dir; then 18362 rm -f conf$$.dir/conf$$.file 18363else 18364 rm -f conf$$.dir 18365 mkdir conf$$.dir 2>/dev/null 18366fi 18367if (echo >conf$$.file) 2>/dev/null; then 18368 if ln -s conf$$.file conf$$ 2>/dev/null; then 18369 as_ln_s='ln -s' 18370 # ... but there are two gotchas: 18371 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 18372 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 18373 # In both cases, we have to default to `cp -p'. 18374 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 18375 as_ln_s='cp -p' 18376 elif ln conf$$.file conf$$ 2>/dev/null; then 18377 as_ln_s=ln 18378 else 18379 as_ln_s='cp -p' 18380 fi 18381else 18382 as_ln_s='cp -p' 18383fi 18384rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 18385rmdir conf$$.dir 2>/dev/null 18386 18387 18388# as_fn_mkdir_p 18389# ------------- 18390# Create "$as_dir" as a directory, including parents if necessary. 18391as_fn_mkdir_p () 18392{ 18393 18394 case $as_dir in #( 18395 -*) as_dir=./$as_dir;; 18396 esac 18397 test -d "$as_dir" || eval $as_mkdir_p || { 18398 as_dirs= 18399 while :; do 18400 case $as_dir in #( 18401 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 18402 *) as_qdir=$as_dir;; 18403 esac 18404 as_dirs="'$as_qdir' $as_dirs" 18405 as_dir=`$as_dirname -- "$as_dir" || 18406$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 18407 X"$as_dir" : 'X\(//\)[^/]' \| \ 18408 X"$as_dir" : 'X\(//\)$' \| \ 18409 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 18410$as_echo X"$as_dir" | 18411 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 18412 s//\1/ 18413 q 18414 } 18415 /^X\(\/\/\)[^/].*/{ 18416 s//\1/ 18417 q 18418 } 18419 /^X\(\/\/\)$/{ 18420 s//\1/ 18421 q 18422 } 18423 /^X\(\/\).*/{ 18424 s//\1/ 18425 q 18426 } 18427 s/.*/./; q'` 18428 test -d "$as_dir" && break 18429 done 18430 test -z "$as_dirs" || eval "mkdir $as_dirs" 18431 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 18432 18433 18434} # as_fn_mkdir_p 18435if mkdir -p . 2>/dev/null; then 18436 as_mkdir_p='mkdir -p "$as_dir"' 18437else 18438 test -d ./-p && rmdir ./-p 18439 as_mkdir_p=false 18440fi 18441 18442if test -x / >/dev/null 2>&1; then 18443 as_test_x='test -x' 18444else 18445 if ls -dL / >/dev/null 2>&1; then 18446 as_ls_L_option=L 18447 else 18448 as_ls_L_option= 18449 fi 18450 as_test_x=' 18451 eval sh -c '\'' 18452 if test -d "$1"; then 18453 test -d "$1/."; 18454 else 18455 case $1 in #( 18456 -*)set "./$1";; 18457 esac; 18458 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #(( 18459 ???[sx]*):;;*)false;;esac;fi 18460 '\'' sh 18461 ' 18462fi 18463as_executable_p=$as_test_x 18464 18465# Sed expression to map a string onto a valid CPP name. 18466as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 18467 18468# Sed expression to map a string onto a valid variable name. 18469as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 18470 18471 18472exec 6>&1 18473## ----------------------------------- ## 18474## Main body of $CONFIG_STATUS script. ## 18475## ----------------------------------- ## 18476_ASEOF 18477test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 18478 18479cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18480# Save the log message, to keep $0 and so on meaningful, and to 18481# report actual input values of CONFIG_FILES etc. instead of their 18482# values after options handling. 18483ac_log=" 18484This file was extended by pcp $as_me 0.10, which was 18485generated by GNU Autoconf 2.66. Invocation command line was 18486 18487 CONFIG_FILES = $CONFIG_FILES 18488 CONFIG_HEADERS = $CONFIG_HEADERS 18489 CONFIG_LINKS = $CONFIG_LINKS 18490 CONFIG_COMMANDS = $CONFIG_COMMANDS 18491 $ $0 $@ 18492 18493on `(hostname || uname -n) 2>/dev/null | sed 1q` 18494" 18495 18496_ACEOF 18497 18498case $ac_config_files in *" 18499"*) set x $ac_config_files; shift; ac_config_files=$*;; 18500esac 18501 18502case $ac_config_headers in *" 18503"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 18504esac 18505 18506 18507cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18508# Files that config.status was made for. 18509config_files="$ac_config_files" 18510config_headers="$ac_config_headers" 18511config_commands="$ac_config_commands" 18512 18513_ACEOF 18514 18515cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18516ac_cs_usage="\ 18517\`$as_me' instantiates files and other configuration actions 18518from templates according to the current configuration. Unless the files 18519and actions are specified as TAGs, all are instantiated by default. 18520 18521Usage: $0 [OPTION]... [TAG]... 18522 18523 -h, --help print this help, then exit 18524 -V, --version print version number and configuration settings, then exit 18525 --config print configuration, then exit 18526 -q, --quiet, --silent 18527 do not print progress messages 18528 -d, --debug don't remove temporary files 18529 --recheck update $as_me by reconfiguring in the same conditions 18530 --file=FILE[:TEMPLATE] 18531 instantiate the configuration file FILE 18532 --header=FILE[:TEMPLATE] 18533 instantiate the configuration header FILE 18534 18535Configuration files: 18536$config_files 18537 18538Configuration headers: 18539$config_headers 18540 18541Configuration commands: 18542$config_commands 18543 18544Report bugs to <courier-users@lists.sourceforge.net>." 18545 18546_ACEOF 18547cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18548ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 18549ac_cs_version="\\ 18550pcp config.status 0.10 18551configured by $0, generated by GNU Autoconf 2.66, 18552 with options \\"\$ac_cs_config\\" 18553 18554Copyright (C) 2010 Free Software Foundation, Inc. 18555This config.status script is free software; the Free Software Foundation 18556gives unlimited permission to copy, distribute and modify it." 18557 18558ac_pwd='$ac_pwd' 18559srcdir='$srcdir' 18560INSTALL='$INSTALL' 18561MKDIR_P='$MKDIR_P' 18562AWK='$AWK' 18563test -n "\$AWK" || AWK=awk 18564_ACEOF 18565 18566cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18567# The default lists apply if the user does not specify any file. 18568ac_need_defaults=: 18569while test $# != 0 18570do 18571 case $1 in 18572 --*=*) 18573 ac_option=`expr "X$1" : 'X\([^=]*\)='` 18574 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 18575 ac_shift=: 18576 ;; 18577 *) 18578 ac_option=$1 18579 ac_optarg=$2 18580 ac_shift=shift 18581 ;; 18582 esac 18583 18584 case $ac_option in 18585 # Handling of the options. 18586 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 18587 ac_cs_recheck=: ;; 18588 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 18589 $as_echo "$ac_cs_version"; exit ;; 18590 --config | --confi | --conf | --con | --co | --c ) 18591 $as_echo "$ac_cs_config"; exit ;; 18592 --debug | --debu | --deb | --de | --d | -d ) 18593 debug=: ;; 18594 --file | --fil | --fi | --f ) 18595 $ac_shift 18596 case $ac_optarg in 18597 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18598 esac 18599 as_fn_append CONFIG_FILES " '$ac_optarg'" 18600 ac_need_defaults=false;; 18601 --header | --heade | --head | --hea ) 18602 $ac_shift 18603 case $ac_optarg in 18604 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 18605 esac 18606 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 18607 ac_need_defaults=false;; 18608 --he | --h) 18609 # Conflict between --help and --header 18610 as_fn_error $? "ambiguous option: \`$1' 18611Try \`$0 --help' for more information.";; 18612 --help | --hel | -h ) 18613 $as_echo "$ac_cs_usage"; exit ;; 18614 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 18615 | -silent | --silent | --silen | --sile | --sil | --si | --s) 18616 ac_cs_silent=: ;; 18617 18618 # This is an error. 18619 -*) as_fn_error $? "unrecognized option: \`$1' 18620Try \`$0 --help' for more information." ;; 18621 18622 *) as_fn_append ac_config_targets " $1" 18623 ac_need_defaults=false ;; 18624 18625 esac 18626 shift 18627done 18628 18629ac_configure_extra_args= 18630 18631if $ac_cs_silent; then 18632 exec 6>/dev/null 18633 ac_configure_extra_args="$ac_configure_extra_args --silent" 18634fi 18635 18636_ACEOF 18637cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18638if \$ac_cs_recheck; then 18639 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 18640 shift 18641 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 18642 CONFIG_SHELL='$SHELL' 18643 export CONFIG_SHELL 18644 exec "\$@" 18645fi 18646 18647_ACEOF 18648cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18649exec 5>>config.log 18650{ 18651 echo 18652 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 18653## Running $as_me. ## 18654_ASBOX 18655 $as_echo "$ac_log" 18656} >&5 18657 18658_ACEOF 18659cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 18660# 18661# INIT-COMMANDS 18662# 18663AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 18664 18665 18666# The HP-UX ksh and POSIX shell print the target directory to stdout 18667# if CDPATH is set. 18668(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 18669 18670sed_quote_subst='$sed_quote_subst' 18671double_quote_subst='$double_quote_subst' 18672delay_variable_subst='$delay_variable_subst' 18673macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 18674macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 18675enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 18676enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 18677pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 18678enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 18679SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 18680ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 18681host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 18682host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 18683host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 18684build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 18685build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 18686build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 18687SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 18688Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 18689GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 18690EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 18691FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 18692LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 18693NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 18694LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 18695max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 18696ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 18697exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 18698lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 18699lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 18700lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 18701reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 18702reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 18703OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 18704deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 18705file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 18706AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 18707AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 18708STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 18709RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 18710old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18711old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18712old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 18713lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 18714CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 18715CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 18716compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 18717GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 18718lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 18719lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 18720lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 18721lt_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"`' 18722objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 18723MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 18724lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 18725lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 18726lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 18727lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 18728lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 18729need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 18730DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 18731NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 18732LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 18733OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 18734OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 18735libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 18736shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 18737extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18738archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 18739enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 18740export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 18741whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 18742compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 18743old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 18744old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 18745archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 18746archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18747module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 18748module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 18749with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 18750allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 18751no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 18752hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 18753hardcode_libdir_flag_spec_ld='`$ECHO "$hardcode_libdir_flag_spec_ld" | $SED "$delay_single_quote_subst"`' 18754hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 18755hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 18756hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 18757hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 18758hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 18759hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 18760inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 18761link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 18762fix_srcfile_path='`$ECHO "$fix_srcfile_path" | $SED "$delay_single_quote_subst"`' 18763always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 18764export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 18765exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 18766include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 18767prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 18768file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 18769variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 18770need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 18771need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 18772version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 18773runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 18774shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 18775shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 18776libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 18777library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 18778soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 18779install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 18780postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 18781postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 18782finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 18783finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 18784hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 18785sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 18786sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`' 18787hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 18788enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 18789enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 18790enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 18791old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 18792striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 18793 18794LTCC='$LTCC' 18795LTCFLAGS='$LTCFLAGS' 18796compiler='$compiler_DEFAULT' 18797 18798# A function that is used when there is no print builtin or printf. 18799func_fallback_echo () 18800{ 18801 eval 'cat <<_LTECHO_EOF 18802\$1 18803_LTECHO_EOF' 18804} 18805 18806# Quote evaled strings. 18807for var in SHELL \ 18808ECHO \ 18809SED \ 18810GREP \ 18811EGREP \ 18812FGREP \ 18813LD \ 18814NM \ 18815LN_S \ 18816lt_SP2NL \ 18817lt_NL2SP \ 18818reload_flag \ 18819OBJDUMP \ 18820deplibs_check_method \ 18821file_magic_cmd \ 18822AR \ 18823AR_FLAGS \ 18824STRIP \ 18825RANLIB \ 18826CC \ 18827CFLAGS \ 18828compiler \ 18829lt_cv_sys_global_symbol_pipe \ 18830lt_cv_sys_global_symbol_to_cdecl \ 18831lt_cv_sys_global_symbol_to_c_name_address \ 18832lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 18833lt_prog_compiler_no_builtin_flag \ 18834lt_prog_compiler_wl \ 18835lt_prog_compiler_pic \ 18836lt_prog_compiler_static \ 18837lt_cv_prog_compiler_c_o \ 18838need_locks \ 18839DSYMUTIL \ 18840NMEDIT \ 18841LIPO \ 18842OTOOL \ 18843OTOOL64 \ 18844shrext_cmds \ 18845export_dynamic_flag_spec \ 18846whole_archive_flag_spec \ 18847compiler_needs_object \ 18848with_gnu_ld \ 18849allow_undefined_flag \ 18850no_undefined_flag \ 18851hardcode_libdir_flag_spec \ 18852hardcode_libdir_flag_spec_ld \ 18853hardcode_libdir_separator \ 18854fix_srcfile_path \ 18855exclude_expsyms \ 18856include_expsyms \ 18857file_list_spec \ 18858variables_saved_for_relink \ 18859libname_spec \ 18860library_names_spec \ 18861soname_spec \ 18862install_override_mode \ 18863finish_eval \ 18864old_striplib \ 18865striplib; do 18866 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18867 *[\\\\\\\`\\"\\\$]*) 18868 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" 18869 ;; 18870 *) 18871 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18872 ;; 18873 esac 18874done 18875 18876# Double-quote double-evaled strings. 18877for var in reload_cmds \ 18878old_postinstall_cmds \ 18879old_postuninstall_cmds \ 18880old_archive_cmds \ 18881extract_expsyms_cmds \ 18882old_archive_from_new_cmds \ 18883old_archive_from_expsyms_cmds \ 18884archive_cmds \ 18885archive_expsym_cmds \ 18886module_cmds \ 18887module_expsym_cmds \ 18888export_symbols_cmds \ 18889prelink_cmds \ 18890postinstall_cmds \ 18891postuninstall_cmds \ 18892finish_cmds \ 18893sys_lib_search_path_spec \ 18894sys_lib_dlsearch_path_spec; do 18895 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 18896 *[\\\\\\\`\\"\\\$]*) 18897 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" 18898 ;; 18899 *) 18900 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 18901 ;; 18902 esac 18903done 18904 18905ac_aux_dir='$ac_aux_dir' 18906xsi_shell='$xsi_shell' 18907lt_shell_append='$lt_shell_append' 18908 18909# See if we are running on zsh, and set the options which allow our 18910# commands through without removal of \ escapes INIT. 18911if test -n "\${ZSH_VERSION+set}" ; then 18912 setopt NO_GLOB_SUBST 18913fi 18914 18915 18916 PACKAGE='$PACKAGE' 18917 VERSION='$VERSION' 18918 TIMESTAMP='$TIMESTAMP' 18919 RM='$RM' 18920 ofile='$ofile' 18921 18922 18923 18924# Capture the value of obsolete ALL_LINGUAS because we need it to compute 18925 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 18926 # from automake < 1.5. 18927 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 18928 # Capture the value of LINGUAS because we need it to compute CATALOGS. 18929 LINGUAS="${LINGUAS-%UNSET%}" 18930 18931 18932_ACEOF 18933 18934cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 18935 18936# Handling of arguments. 18937for ac_config_target in $ac_config_targets 18938do 18939 case $ac_config_target in 18940 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; 18941 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 18942 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 18943 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 18944 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 18945 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 18946 "intl/Makefile") CONFIG_FILES="$CONFIG_FILES intl/Makefile" ;; 18947 18948 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 18949 esac 18950done 18951 18952 18953# If the user did not use the arguments to specify the items to instantiate, 18954# then the envvar interface is used. Set only those that are not. 18955# We use the long form for the default assignment because of an extremely 18956# bizarre bug on SunOS 4.1.3. 18957if $ac_need_defaults; then 18958 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 18959 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 18960 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 18961fi 18962 18963# Have a temporary directory for convenience. Make it in the build tree 18964# simply because there is no reason against having it here, and in addition, 18965# creating and moving files from /tmp can sometimes cause problems. 18966# Hook for its removal unless debugging. 18967# Note that there is a small window in which the directory will not be cleaned: 18968# after its creation but before its name has been assigned to `$tmp'. 18969$debug || 18970{ 18971 tmp= 18972 trap 'exit_status=$? 18973 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status 18974' 0 18975 trap 'as_fn_exit 1' 1 2 13 15 18976} 18977# Create a (secure) tmp directory for tmp files. 18978 18979{ 18980 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 18981 test -n "$tmp" && test -d "$tmp" 18982} || 18983{ 18984 tmp=./conf$$-$RANDOM 18985 (umask 077 && mkdir "$tmp") 18986} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 18987 18988# Set up the scripts for CONFIG_FILES section. 18989# No need to generate them if there are no CONFIG_FILES. 18990# This happens for instance with `./config.status config.h'. 18991if test -n "$CONFIG_FILES"; then 18992 18993 18994ac_cr=`echo X | tr X '\015'` 18995# On cygwin, bash can eat \r inside `` if the user requested igncr. 18996# But we know of no other shell where ac_cr would be empty at this 18997# point, so we can use a bashism as a fallback. 18998if test "x$ac_cr" = x; then 18999 eval ac_cr=\$\'\\r\' 19000fi 19001ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 19002if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 19003 ac_cs_awk_cr='\\r' 19004else 19005 ac_cs_awk_cr=$ac_cr 19006fi 19007 19008echo 'BEGIN {' >"$tmp/subs1.awk" && 19009_ACEOF 19010 19011 19012{ 19013 echo "cat >conf$$subs.awk <<_ACEOF" && 19014 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 19015 echo "_ACEOF" 19016} >conf$$subs.sh || 19017 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19018ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 19019ac_delim='%!_!# ' 19020for ac_last_try in false false false false false :; do 19021 . ./conf$$subs.sh || 19022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19023 19024 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 19025 if test $ac_delim_n = $ac_delim_num; then 19026 break 19027 elif $ac_last_try; then 19028 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 19029 else 19030 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19031 fi 19032done 19033rm -f conf$$subs.sh 19034 19035cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19036cat >>"\$tmp/subs1.awk" <<\\_ACAWK && 19037_ACEOF 19038sed -n ' 19039h 19040s/^/S["/; s/!.*/"]=/ 19041p 19042g 19043s/^[^!]*!// 19044:repl 19045t repl 19046s/'"$ac_delim"'$// 19047t delim 19048:nl 19049h 19050s/\(.\{148\}\)..*/\1/ 19051t more1 19052s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 19053p 19054n 19055b repl 19056:more1 19057s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19058p 19059g 19060s/.\{148\}// 19061t nl 19062:delim 19063h 19064s/\(.\{148\}\)..*/\1/ 19065t more2 19066s/["\\]/\\&/g; s/^/"/; s/$/"/ 19067p 19068b 19069:more2 19070s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 19071p 19072g 19073s/.\{148\}// 19074t delim 19075' <conf$$subs.awk | sed ' 19076/^[^""]/{ 19077 N 19078 s/\n// 19079} 19080' >>$CONFIG_STATUS || ac_write_fail=1 19081rm -f conf$$subs.awk 19082cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19083_ACAWK 19084cat >>"\$tmp/subs1.awk" <<_ACAWK && 19085 for (key in S) S_is_set[key] = 1 19086 FS = "" 19087 19088} 19089{ 19090 line = $ 0 19091 nfields = split(line, field, "@") 19092 substed = 0 19093 len = length(field[1]) 19094 for (i = 2; i < nfields; i++) { 19095 key = field[i] 19096 keylen = length(key) 19097 if (S_is_set[key]) { 19098 value = S[key] 19099 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 19100 len += length(value) + length(field[++i]) 19101 substed = 1 19102 } else 19103 len += 1 + keylen 19104 } 19105 19106 print line 19107} 19108 19109_ACAWK 19110_ACEOF 19111cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19112if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 19113 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 19114else 19115 cat 19116fi < "$tmp/subs1.awk" > "$tmp/subs.awk" \ 19117 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 19118_ACEOF 19119 19120# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 19121# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 19122# trailing colons and then remove the whole line if VPATH becomes empty 19123# (actually we leave an empty line to preserve line numbers). 19124if test "x$srcdir" = x.; then 19125 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 19126h 19127s/// 19128s/^/:/ 19129s/[ ]*$/:/ 19130s/:\$(srcdir):/:/g 19131s/:\${srcdir}:/:/g 19132s/:@srcdir@:/:/g 19133s/^:*// 19134s/:*$// 19135x 19136s/\(=[ ]*\).*/\1/ 19137G 19138s/\n// 19139s/^[^=]*=[ ]*$// 19140}' 19141fi 19142 19143cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19144fi # test -n "$CONFIG_FILES" 19145 19146# Set up the scripts for CONFIG_HEADERS section. 19147# No need to generate them if there are no CONFIG_HEADERS. 19148# This happens for instance with `./config.status Makefile'. 19149if test -n "$CONFIG_HEADERS"; then 19150cat >"$tmp/defines.awk" <<\_ACAWK || 19151BEGIN { 19152_ACEOF 19153 19154# Transform confdefs.h into an awk script `defines.awk', embedded as 19155# here-document in config.status, that substitutes the proper values into 19156# config.h.in to produce config.h. 19157 19158# Create a delimiter string that does not exist in confdefs.h, to ease 19159# handling of long lines. 19160ac_delim='%!_!# ' 19161for ac_last_try in false false :; do 19162 ac_t=`sed -n "/$ac_delim/p" confdefs.h` 19163 if test -z "$ac_t"; then 19164 break 19165 elif $ac_last_try; then 19166 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 19167 else 19168 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 19169 fi 19170done 19171 19172# For the awk script, D is an array of macro values keyed by name, 19173# likewise P contains macro parameters if any. Preserve backslash 19174# newline sequences. 19175 19176ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 19177sed -n ' 19178s/.\{148\}/&'"$ac_delim"'/g 19179t rset 19180:rset 19181s/^[ ]*#[ ]*define[ ][ ]*/ / 19182t def 19183d 19184:def 19185s/\\$// 19186t bsnl 19187s/["\\]/\\&/g 19188s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19189D["\1"]=" \3"/p 19190s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 19191d 19192:bsnl 19193s/["\\]/\\&/g 19194s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 19195D["\1"]=" \3\\\\\\n"\\/p 19196t cont 19197s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 19198t cont 19199d 19200:cont 19201n 19202s/.\{148\}/&'"$ac_delim"'/g 19203t clear 19204:clear 19205s/\\$// 19206t bsnlc 19207s/["\\]/\\&/g; s/^/"/; s/$/"/p 19208d 19209:bsnlc 19210s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 19211b cont 19212' <confdefs.h | sed ' 19213s/'"$ac_delim"'/"\\\ 19214"/g' >>$CONFIG_STATUS || ac_write_fail=1 19215 19216cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19217 for (key in D) D_is_set[key] = 1 19218 FS = "" 19219} 19220/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 19221 line = \$ 0 19222 split(line, arg, " ") 19223 if (arg[1] == "#") { 19224 defundef = arg[2] 19225 mac1 = arg[3] 19226 } else { 19227 defundef = substr(arg[1], 2) 19228 mac1 = arg[2] 19229 } 19230 split(mac1, mac2, "(") #) 19231 macro = mac2[1] 19232 prefix = substr(line, 1, index(line, defundef) - 1) 19233 if (D_is_set[macro]) { 19234 # Preserve the white space surrounding the "#". 19235 print prefix "define", macro P[macro] D[macro] 19236 next 19237 } else { 19238 # Replace #undef with comments. This is necessary, for example, 19239 # in the case of _POSIX_SOURCE, which is predefined and required 19240 # on some systems where configure will not decide to define it. 19241 if (defundef == "undef") { 19242 print "/*", prefix defundef, macro, "*/" 19243 next 19244 } 19245 } 19246} 19247{ print } 19248_ACAWK 19249_ACEOF 19250cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19251 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 19252fi # test -n "$CONFIG_HEADERS" 19253 19254 19255eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 19256shift 19257for ac_tag 19258do 19259 case $ac_tag in 19260 :[FHLC]) ac_mode=$ac_tag; continue;; 19261 esac 19262 case $ac_mode$ac_tag in 19263 :[FHL]*:*);; 19264 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 19265 :[FH]-) ac_tag=-:-;; 19266 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 19267 esac 19268 ac_save_IFS=$IFS 19269 IFS=: 19270 set x $ac_tag 19271 IFS=$ac_save_IFS 19272 shift 19273 ac_file=$1 19274 shift 19275 19276 case $ac_mode in 19277 :L) ac_source=$1;; 19278 :[FH]) 19279 ac_file_inputs= 19280 for ac_f 19281 do 19282 case $ac_f in 19283 -) ac_f="$tmp/stdin";; 19284 *) # Look for the file first in the build tree, then in the source tree 19285 # (if the path is not absolute). The absolute path cannot be DOS-style, 19286 # because $ac_f cannot contain `:'. 19287 test -f "$ac_f" || 19288 case $ac_f in 19289 [\\/$]*) false;; 19290 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 19291 esac || 19292 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 19293 esac 19294 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 19295 as_fn_append ac_file_inputs " '$ac_f'" 19296 done 19297 19298 # Let's still pretend it is `configure' which instantiates (i.e., don't 19299 # use $as_me), people would be surprised to read: 19300 # /* config.h. Generated by config.status. */ 19301 configure_input='Generated from '` 19302 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 19303 `' by configure.' 19304 if test x"$ac_file" != x-; then 19305 configure_input="$ac_file. $configure_input" 19306 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 19307$as_echo "$as_me: creating $ac_file" >&6;} 19308 fi 19309 # Neutralize special characters interpreted by sed in replacement strings. 19310 case $configure_input in #( 19311 *\&* | *\|* | *\\* ) 19312 ac_sed_conf_input=`$as_echo "$configure_input" | 19313 sed 's/[\\\\&|]/\\\\&/g'`;; #( 19314 *) ac_sed_conf_input=$configure_input;; 19315 esac 19316 19317 case $ac_tag in 19318 *:-:* | *:-) cat >"$tmp/stdin" \ 19319 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 19320 esac 19321 ;; 19322 esac 19323 19324 ac_dir=`$as_dirname -- "$ac_file" || 19325$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19326 X"$ac_file" : 'X\(//\)[^/]' \| \ 19327 X"$ac_file" : 'X\(//\)$' \| \ 19328 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 19329$as_echo X"$ac_file" | 19330 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19331 s//\1/ 19332 q 19333 } 19334 /^X\(\/\/\)[^/].*/{ 19335 s//\1/ 19336 q 19337 } 19338 /^X\(\/\/\)$/{ 19339 s//\1/ 19340 q 19341 } 19342 /^X\(\/\).*/{ 19343 s//\1/ 19344 q 19345 } 19346 s/.*/./; q'` 19347 as_dir="$ac_dir"; as_fn_mkdir_p 19348 ac_builddir=. 19349 19350case "$ac_dir" in 19351.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 19352*) 19353 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 19354 # A ".." for each directory in $ac_dir_suffix. 19355 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 19356 case $ac_top_builddir_sub in 19357 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 19358 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 19359 esac ;; 19360esac 19361ac_abs_top_builddir=$ac_pwd 19362ac_abs_builddir=$ac_pwd$ac_dir_suffix 19363# for backward compatibility: 19364ac_top_builddir=$ac_top_build_prefix 19365 19366case $srcdir in 19367 .) # We are building in place. 19368 ac_srcdir=. 19369 ac_top_srcdir=$ac_top_builddir_sub 19370 ac_abs_top_srcdir=$ac_pwd ;; 19371 [\\/]* | ?:[\\/]* ) # Absolute name. 19372 ac_srcdir=$srcdir$ac_dir_suffix; 19373 ac_top_srcdir=$srcdir 19374 ac_abs_top_srcdir=$srcdir ;; 19375 *) # Relative name. 19376 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 19377 ac_top_srcdir=$ac_top_build_prefix$srcdir 19378 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 19379esac 19380ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 19381 19382 19383 case $ac_mode in 19384 :F) 19385 # 19386 # CONFIG_FILE 19387 # 19388 19389 case $INSTALL in 19390 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 19391 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 19392 esac 19393 ac_MKDIR_P=$MKDIR_P 19394 case $MKDIR_P in 19395 [\\/$]* | ?:[\\/]* ) ;; 19396 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 19397 esac 19398_ACEOF 19399 19400cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19401# If the template does not know about datarootdir, expand it. 19402# FIXME: This hack should be removed a few years after 2.60. 19403ac_datarootdir_hack=; ac_datarootdir_seen= 19404ac_sed_dataroot=' 19405/datarootdir/ { 19406 p 19407 q 19408} 19409/@datadir@/p 19410/@docdir@/p 19411/@infodir@/p 19412/@localedir@/p 19413/@mandir@/p' 19414case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 19415*datarootdir*) ac_datarootdir_seen=yes;; 19416*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 19417 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 19418$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 19419_ACEOF 19420cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19421 ac_datarootdir_hack=' 19422 s&@datadir@&$datadir&g 19423 s&@docdir@&$docdir&g 19424 s&@infodir@&$infodir&g 19425 s&@localedir@&$localedir&g 19426 s&@mandir@&$mandir&g 19427 s&\\\${datarootdir}&$datarootdir&g' ;; 19428esac 19429_ACEOF 19430 19431# Neutralize VPATH when `$srcdir' = `.'. 19432# Shell code in configure.ac might set extrasub. 19433# FIXME: do we really want to maintain this feature? 19434cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 19435ac_sed_extra="$ac_vpsub 19436$extrasub 19437_ACEOF 19438cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 19439:t 19440/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 19441s|@configure_input@|$ac_sed_conf_input|;t t 19442s&@top_builddir@&$ac_top_builddir_sub&;t t 19443s&@top_build_prefix@&$ac_top_build_prefix&;t t 19444s&@srcdir@&$ac_srcdir&;t t 19445s&@abs_srcdir@&$ac_abs_srcdir&;t t 19446s&@top_srcdir@&$ac_top_srcdir&;t t 19447s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 19448s&@builddir@&$ac_builddir&;t t 19449s&@abs_builddir@&$ac_abs_builddir&;t t 19450s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 19451s&@INSTALL@&$ac_INSTALL&;t t 19452s&@MKDIR_P@&$ac_MKDIR_P&;t t 19453$ac_datarootdir_hack 19454" 19455eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.awk" >$tmp/out \ 19456 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19457 19458test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 19459 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } && 19460 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } && 19461 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19462which seems to be undefined. Please make sure it is defined" >&5 19463$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 19464which seems to be undefined. Please make sure it is defined" >&2;} 19465 19466 rm -f "$tmp/stdin" 19467 case $ac_file in 19468 -) cat "$tmp/out" && rm -f "$tmp/out";; 19469 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";; 19470 esac \ 19471 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19472 ;; 19473 :H) 19474 # 19475 # CONFIG_HEADER 19476 # 19477 if test x"$ac_file" != x-; then 19478 { 19479 $as_echo "/* $configure_input */" \ 19480 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" 19481 } >"$tmp/config.h" \ 19482 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19483 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then 19484 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 19485$as_echo "$as_me: $ac_file is unchanged" >&6;} 19486 else 19487 rm -f "$ac_file" 19488 mv "$tmp/config.h" "$ac_file" \ 19489 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 19490 fi 19491 else 19492 $as_echo "/* $configure_input */" \ 19493 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \ 19494 || as_fn_error $? "could not create -" "$LINENO" 5 19495 fi 19496# Compute "$ac_file"'s index in $config_headers. 19497_am_arg="$ac_file" 19498_am_stamp_count=1 19499for _am_header in $config_headers :; do 19500 case $_am_header in 19501 $_am_arg | $_am_arg:* ) 19502 break ;; 19503 * ) 19504 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 19505 esac 19506done 19507echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 19508$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19509 X"$_am_arg" : 'X\(//\)[^/]' \| \ 19510 X"$_am_arg" : 'X\(//\)$' \| \ 19511 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 19512$as_echo X"$_am_arg" | 19513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19514 s//\1/ 19515 q 19516 } 19517 /^X\(\/\/\)[^/].*/{ 19518 s//\1/ 19519 q 19520 } 19521 /^X\(\/\/\)$/{ 19522 s//\1/ 19523 q 19524 } 19525 /^X\(\/\).*/{ 19526 s//\1/ 19527 q 19528 } 19529 s/.*/./; q'`/stamp-h$_am_stamp_count 19530 ;; 19531 19532 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 19533$as_echo "$as_me: executing $ac_file commands" >&6;} 19534 ;; 19535 esac 19536 19537 19538 case $ac_file$ac_mode in 19539 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 19540 # Autoconf 2.62 quotes --file arguments for eval, but not when files 19541 # are listed without --file. Let's play safe and only enable the eval 19542 # if we detect the quoting. 19543 case $CONFIG_FILES in 19544 *\'*) eval set x "$CONFIG_FILES" ;; 19545 *) set x $CONFIG_FILES ;; 19546 esac 19547 shift 19548 for mf 19549 do 19550 # Strip MF so we end up with the name of the file. 19551 mf=`echo "$mf" | sed -e 's/:.*$//'` 19552 # Check whether this is an Automake generated Makefile or not. 19553 # We used to match only the files named `Makefile.in', but 19554 # some people rename them; so instead we look at the file content. 19555 # Grep'ing the first line is not enough: some people post-process 19556 # each Makefile.in and add a new line on top of each file to say so. 19557 # Grep'ing the whole file is not good either: AIX grep has a line 19558 # limit of 2048, but all sed's we know have understand at least 4000. 19559 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 19560 dirpart=`$as_dirname -- "$mf" || 19561$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19562 X"$mf" : 'X\(//\)[^/]' \| \ 19563 X"$mf" : 'X\(//\)$' \| \ 19564 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 19565$as_echo X"$mf" | 19566 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19567 s//\1/ 19568 q 19569 } 19570 /^X\(\/\/\)[^/].*/{ 19571 s//\1/ 19572 q 19573 } 19574 /^X\(\/\/\)$/{ 19575 s//\1/ 19576 q 19577 } 19578 /^X\(\/\).*/{ 19579 s//\1/ 19580 q 19581 } 19582 s/.*/./; q'` 19583 else 19584 continue 19585 fi 19586 # Extract the definition of DEPDIR, am__include, and am__quote 19587 # from the Makefile without running `make'. 19588 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 19589 test -z "$DEPDIR" && continue 19590 am__include=`sed -n 's/^am__include = //p' < "$mf"` 19591 test -z "am__include" && continue 19592 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 19593 # When using ansi2knr, U may be empty or an underscore; expand it 19594 U=`sed -n 's/^U = //p' < "$mf"` 19595 # Find all dependency output files, they are included files with 19596 # $(DEPDIR) in their names. We invoke sed twice because it is the 19597 # simplest approach to changing $(DEPDIR) to its actual value in the 19598 # expansion. 19599 for file in `sed -n " 19600 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 19601 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do 19602 # Make sure the directory exists. 19603 test -f "$dirpart/$file" && continue 19604 fdir=`$as_dirname -- "$file" || 19605$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 19606 X"$file" : 'X\(//\)[^/]' \| \ 19607 X"$file" : 'X\(//\)$' \| \ 19608 X"$file" : 'X\(/\)' \| . 2>/dev/null || 19609$as_echo X"$file" | 19610 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 19611 s//\1/ 19612 q 19613 } 19614 /^X\(\/\/\)[^/].*/{ 19615 s//\1/ 19616 q 19617 } 19618 /^X\(\/\/\)$/{ 19619 s//\1/ 19620 q 19621 } 19622 /^X\(\/\).*/{ 19623 s//\1/ 19624 q 19625 } 19626 s/.*/./; q'` 19627 as_dir=$dirpart/$fdir; as_fn_mkdir_p 19628 # echo "creating $dirpart/$file" 19629 echo '# dummy' > "$dirpart/$file" 19630 done 19631 done 19632} 19633 ;; 19634 "libtool":C) 19635 19636 # See if we are running on zsh, and set the options which allow our 19637 # commands through without removal of \ escapes. 19638 if test -n "${ZSH_VERSION+set}" ; then 19639 setopt NO_GLOB_SUBST 19640 fi 19641 19642 cfgfile="${ofile}T" 19643 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 19644 $RM "$cfgfile" 19645 19646 cat <<_LT_EOF >> "$cfgfile" 19647#! $SHELL 19648 19649# `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services. 19650# Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION 19651# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 19652# NOTE: Changes made to this file will be lost: look at ltmain.sh. 19653# 19654# Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005, 19655# 2006, 2007, 2008, 2009, 2010 Free Software Foundation, 19656# Inc. 19657# Written by Gordon Matzigkeit, 1996 19658# 19659# This file is part of GNU Libtool. 19660# 19661# GNU Libtool is free software; you can redistribute it and/or 19662# modify it under the terms of the GNU General Public License as 19663# published by the Free Software Foundation; either version 2 of 19664# the License, or (at your option) any later version. 19665# 19666# As a special exception to the GNU General Public License, 19667# if you distribute this file as part of a program or library that 19668# is built using GNU Libtool, you may include this file under the 19669# same distribution terms that you use for the rest of that program. 19670# 19671# GNU Libtool is distributed in the hope that it will be useful, 19672# but WITHOUT ANY WARRANTY; without even the implied warranty of 19673# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 19674# GNU General Public License for more details. 19675# 19676# You should have received a copy of the GNU General Public License 19677# along with GNU Libtool; see the file COPYING. If not, a copy 19678# can be downloaded from http://www.gnu.org/licenses/gpl.html, or 19679# obtained by writing to the Free Software Foundation, Inc., 19680# 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 19681 19682 19683# The names of the tagged configurations supported by this script. 19684available_tags="" 19685 19686# ### BEGIN LIBTOOL CONFIG 19687 19688# Which release of libtool.m4 was used? 19689macro_version=$macro_version 19690macro_revision=$macro_revision 19691 19692# Whether or not to build shared libraries. 19693build_libtool_libs=$enable_shared 19694 19695# Whether or not to build static libraries. 19696build_old_libs=$enable_static 19697 19698# What type of objects to build. 19699pic_mode=$pic_mode 19700 19701# Whether or not to optimize for fast installation. 19702fast_install=$enable_fast_install 19703 19704# Shell to use when invoking shell scripts. 19705SHELL=$lt_SHELL 19706 19707# An echo program that protects backslashes. 19708ECHO=$lt_ECHO 19709 19710# The host system. 19711host_alias=$host_alias 19712host=$host 19713host_os=$host_os 19714 19715# The build system. 19716build_alias=$build_alias 19717build=$build 19718build_os=$build_os 19719 19720# A sed program that does not truncate output. 19721SED=$lt_SED 19722 19723# Sed that helps us avoid accidentally triggering echo(1) options like -n. 19724Xsed="\$SED -e 1s/^X//" 19725 19726# A grep program that handles long lines. 19727GREP=$lt_GREP 19728 19729# An ERE matcher. 19730EGREP=$lt_EGREP 19731 19732# A literal string matcher. 19733FGREP=$lt_FGREP 19734 19735# A BSD- or MS-compatible name lister. 19736NM=$lt_NM 19737 19738# Whether we need soft or hard links. 19739LN_S=$lt_LN_S 19740 19741# What is the maximum length of a command? 19742max_cmd_len=$max_cmd_len 19743 19744# Object file suffix (normally "o"). 19745objext=$ac_objext 19746 19747# Executable file suffix (normally ""). 19748exeext=$exeext 19749 19750# whether the shell understands "unset". 19751lt_unset=$lt_unset 19752 19753# turn spaces into newlines. 19754SP2NL=$lt_lt_SP2NL 19755 19756# turn newlines into spaces. 19757NL2SP=$lt_lt_NL2SP 19758 19759# An object symbol dumper. 19760OBJDUMP=$lt_OBJDUMP 19761 19762# Method to check whether dependent libraries are shared objects. 19763deplibs_check_method=$lt_deplibs_check_method 19764 19765# Command to use when deplibs_check_method == "file_magic". 19766file_magic_cmd=$lt_file_magic_cmd 19767 19768# The archiver. 19769AR=$lt_AR 19770AR_FLAGS=$lt_AR_FLAGS 19771 19772# A symbol stripping program. 19773STRIP=$lt_STRIP 19774 19775# Commands used to install an old-style archive. 19776RANLIB=$lt_RANLIB 19777old_postinstall_cmds=$lt_old_postinstall_cmds 19778old_postuninstall_cmds=$lt_old_postuninstall_cmds 19779 19780# Whether to use a lock for old archive extraction. 19781lock_old_archive_extraction=$lock_old_archive_extraction 19782 19783# A C compiler. 19784LTCC=$lt_CC 19785 19786# LTCC compiler flags. 19787LTCFLAGS=$lt_CFLAGS 19788 19789# Take the output of nm and produce a listing of raw symbols and C names. 19790global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 19791 19792# Transform the output of nm in a proper C declaration. 19793global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 19794 19795# Transform the output of nm in a C name address pair. 19796global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 19797 19798# Transform the output of nm in a C name address pair when lib prefix is needed. 19799global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 19800 19801# The name of the directory that contains temporary libtool files. 19802objdir=$objdir 19803 19804# Used to examine libraries when file_magic_cmd begins with "file". 19805MAGIC_CMD=$MAGIC_CMD 19806 19807# Must we lock files when doing compilation? 19808need_locks=$lt_need_locks 19809 19810# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 19811DSYMUTIL=$lt_DSYMUTIL 19812 19813# Tool to change global to local symbols on Mac OS X. 19814NMEDIT=$lt_NMEDIT 19815 19816# Tool to manipulate fat objects and archives on Mac OS X. 19817LIPO=$lt_LIPO 19818 19819# ldd/readelf like tool for Mach-O binaries on Mac OS X. 19820OTOOL=$lt_OTOOL 19821 19822# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 19823OTOOL64=$lt_OTOOL64 19824 19825# Old archive suffix (normally "a"). 19826libext=$libext 19827 19828# Shared library suffix (normally ".so"). 19829shrext_cmds=$lt_shrext_cmds 19830 19831# The commands to extract the exported symbol list from a shared archive. 19832extract_expsyms_cmds=$lt_extract_expsyms_cmds 19833 19834# Variables whose values should be saved in libtool wrapper scripts and 19835# restored at link time. 19836variables_saved_for_relink=$lt_variables_saved_for_relink 19837 19838# Do we need the "lib" prefix for modules? 19839need_lib_prefix=$need_lib_prefix 19840 19841# Do we need a version for libraries? 19842need_version=$need_version 19843 19844# Library versioning type. 19845version_type=$version_type 19846 19847# Shared library runtime path variable. 19848runpath_var=$runpath_var 19849 19850# Shared library path variable. 19851shlibpath_var=$shlibpath_var 19852 19853# Is shlibpath searched before the hard-coded library search path? 19854shlibpath_overrides_runpath=$shlibpath_overrides_runpath 19855 19856# Format of library name prefix. 19857libname_spec=$lt_libname_spec 19858 19859# List of archive names. First name is the real one, the rest are links. 19860# The last name is the one that the linker finds with -lNAME 19861library_names_spec=$lt_library_names_spec 19862 19863# The coded name of the library, if different from the real name. 19864soname_spec=$lt_soname_spec 19865 19866# Permission mode override for installation of shared libraries. 19867install_override_mode=$lt_install_override_mode 19868 19869# Command to use after installation of a shared archive. 19870postinstall_cmds=$lt_postinstall_cmds 19871 19872# Command to use after uninstallation of a shared archive. 19873postuninstall_cmds=$lt_postuninstall_cmds 19874 19875# Commands used to finish a libtool library installation in a directory. 19876finish_cmds=$lt_finish_cmds 19877 19878# As "finish_cmds", except a single script fragment to be evaled but 19879# not shown. 19880finish_eval=$lt_finish_eval 19881 19882# Whether we should hardcode library paths into libraries. 19883hardcode_into_libs=$hardcode_into_libs 19884 19885# Compile-time system search path for libraries. 19886sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 19887 19888# Run-time system search path for libraries. 19889sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec 19890 19891# Whether dlopen is supported. 19892dlopen_support=$enable_dlopen 19893 19894# Whether dlopen of programs is supported. 19895dlopen_self=$enable_dlopen_self 19896 19897# Whether dlopen of statically linked programs is supported. 19898dlopen_self_static=$enable_dlopen_self_static 19899 19900# Commands to strip libraries. 19901old_striplib=$lt_old_striplib 19902striplib=$lt_striplib 19903 19904 19905# The linker used to build libraries. 19906LD=$lt_LD 19907 19908# How to create reloadable object files. 19909reload_flag=$lt_reload_flag 19910reload_cmds=$lt_reload_cmds 19911 19912# Commands used to build an old-style archive. 19913old_archive_cmds=$lt_old_archive_cmds 19914 19915# A language specific compiler. 19916CC=$lt_compiler 19917 19918# Is the compiler the GNU compiler? 19919with_gcc=$GCC 19920 19921# Compiler flag to turn off builtin functions. 19922no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 19923 19924# How to pass a linker flag through the compiler. 19925wl=$lt_lt_prog_compiler_wl 19926 19927# Additional compiler flags for building library objects. 19928pic_flag=$lt_lt_prog_compiler_pic 19929 19930# Compiler flag to prevent dynamic linking. 19931link_static_flag=$lt_lt_prog_compiler_static 19932 19933# Does compiler simultaneously support -c and -o options? 19934compiler_c_o=$lt_lt_cv_prog_compiler_c_o 19935 19936# Whether or not to add -lc for building shared libraries. 19937build_libtool_need_lc=$archive_cmds_need_lc 19938 19939# Whether or not to disallow shared libs when runtime libs are static. 19940allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 19941 19942# Compiler flag to allow reflexive dlopens. 19943export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 19944 19945# Compiler flag to generate shared objects directly from archives. 19946whole_archive_flag_spec=$lt_whole_archive_flag_spec 19947 19948# Whether the compiler copes with passing no objects directly. 19949compiler_needs_object=$lt_compiler_needs_object 19950 19951# Create an old-style archive from a shared archive. 19952old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 19953 19954# Create a temporary old-style archive to link instead of a shared archive. 19955old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 19956 19957# Commands used to build a shared archive. 19958archive_cmds=$lt_archive_cmds 19959archive_expsym_cmds=$lt_archive_expsym_cmds 19960 19961# Commands used to build a loadable module if different from building 19962# a shared archive. 19963module_cmds=$lt_module_cmds 19964module_expsym_cmds=$lt_module_expsym_cmds 19965 19966# Whether we are building with GNU ld or not. 19967with_gnu_ld=$lt_with_gnu_ld 19968 19969# Flag that allows shared libraries with undefined symbols to be built. 19970allow_undefined_flag=$lt_allow_undefined_flag 19971 19972# Flag that enforces no undefined symbols. 19973no_undefined_flag=$lt_no_undefined_flag 19974 19975# Flag to hardcode \$libdir into a binary during linking. 19976# This must work even if \$libdir does not exist 19977hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 19978 19979# If ld is used when linking, flag to hardcode \$libdir into a binary 19980# during linking. This must work even if \$libdir does not exist. 19981hardcode_libdir_flag_spec_ld=$lt_hardcode_libdir_flag_spec_ld 19982 19983# Whether we need a single "-rpath" flag with a separated argument. 19984hardcode_libdir_separator=$lt_hardcode_libdir_separator 19985 19986# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19987# DIR into the resulting binary. 19988hardcode_direct=$hardcode_direct 19989 19990# Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes 19991# DIR into the resulting binary and the resulting library dependency is 19992# "absolute",i.e impossible to change by setting \${shlibpath_var} if the 19993# library is relocated. 19994hardcode_direct_absolute=$hardcode_direct_absolute 19995 19996# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 19997# into the resulting binary. 19998hardcode_minus_L=$hardcode_minus_L 19999 20000# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 20001# into the resulting binary. 20002hardcode_shlibpath_var=$hardcode_shlibpath_var 20003 20004# Set to "yes" if building a shared library automatically hardcodes DIR 20005# into the library and all subsequent libraries and executables linked 20006# against it. 20007hardcode_automatic=$hardcode_automatic 20008 20009# Set to yes if linker adds runtime paths of dependent libraries 20010# to runtime path list. 20011inherit_rpath=$inherit_rpath 20012 20013# Whether libtool must link a program against all its dependency libraries. 20014link_all_deplibs=$link_all_deplibs 20015 20016# Fix the shell variable \$srcfile for the compiler. 20017fix_srcfile_path=$lt_fix_srcfile_path 20018 20019# Set to "yes" if exported symbols are required. 20020always_export_symbols=$always_export_symbols 20021 20022# The commands to list exported symbols. 20023export_symbols_cmds=$lt_export_symbols_cmds 20024 20025# Symbols that should not be listed in the preloaded symbols. 20026exclude_expsyms=$lt_exclude_expsyms 20027 20028# Symbols that must always be exported. 20029include_expsyms=$lt_include_expsyms 20030 20031# Commands necessary for linking programs (against libraries) with templates. 20032prelink_cmds=$lt_prelink_cmds 20033 20034# Specify filename containing input files. 20035file_list_spec=$lt_file_list_spec 20036 20037# How to hardcode a shared library path into an executable. 20038hardcode_action=$hardcode_action 20039 20040# ### END LIBTOOL CONFIG 20041 20042_LT_EOF 20043 20044 case $host_os in 20045 aix3*) 20046 cat <<\_LT_EOF >> "$cfgfile" 20047# AIX sometimes has problems with the GCC collect2 program. For some 20048# reason, if we set the COLLECT_NAMES environment variable, the problems 20049# vanish in a puff of smoke. 20050if test "X${COLLECT_NAMES+set}" != Xset; then 20051 COLLECT_NAMES= 20052 export COLLECT_NAMES 20053fi 20054_LT_EOF 20055 ;; 20056 esac 20057 20058 20059ltmain="$ac_aux_dir/ltmain.sh" 20060 20061 20062 # We use sed instead of cat because bash on DJGPP gets confused if 20063 # if finds mixed CR/LF and LF-only lines. Since sed operates in 20064 # text mode, it properly converts lines to CR/LF. This bash problem 20065 # is reportedly fixed, but why not run on old versions too? 20066 sed '/^# Generated shell functions inserted here/q' "$ltmain" >> "$cfgfile" \ 20067 || (rm -f "$cfgfile"; exit 1) 20068 20069 case $xsi_shell in 20070 yes) 20071 cat << \_LT_EOF >> "$cfgfile" 20072 20073# func_dirname file append nondir_replacement 20074# Compute the dirname of FILE. If nonempty, add APPEND to the result, 20075# otherwise set result to NONDIR_REPLACEMENT. 20076func_dirname () 20077{ 20078 case ${1} in 20079 */*) func_dirname_result="${1%/*}${2}" ;; 20080 * ) func_dirname_result="${3}" ;; 20081 esac 20082} 20083 20084# func_basename file 20085func_basename () 20086{ 20087 func_basename_result="${1##*/}" 20088} 20089 20090# func_dirname_and_basename file append nondir_replacement 20091# perform func_basename and func_dirname in a single function 20092# call: 20093# dirname: Compute the dirname of FILE. If nonempty, 20094# add APPEND to the result, otherwise set result 20095# to NONDIR_REPLACEMENT. 20096# value returned in "$func_dirname_result" 20097# basename: Compute filename of FILE. 20098# value retuned in "$func_basename_result" 20099# Implementation must be kept synchronized with func_dirname 20100# and func_basename. For efficiency, we do not delegate to 20101# those functions but instead duplicate the functionality here. 20102func_dirname_and_basename () 20103{ 20104 case ${1} in 20105 */*) func_dirname_result="${1%/*}${2}" ;; 20106 * ) func_dirname_result="${3}" ;; 20107 esac 20108 func_basename_result="${1##*/}" 20109} 20110 20111# func_stripname prefix suffix name 20112# strip PREFIX and SUFFIX off of NAME. 20113# PREFIX and SUFFIX must not contain globbing or regex special 20114# characters, hashes, percent signs, but SUFFIX may contain a leading 20115# dot (in which case that matches only a dot). 20116func_stripname () 20117{ 20118 # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are 20119 # positional parameters, so assign one to ordinary parameter first. 20120 func_stripname_result=${3} 20121 func_stripname_result=${func_stripname_result#"${1}"} 20122 func_stripname_result=${func_stripname_result%"${2}"} 20123} 20124 20125# func_opt_split 20126func_opt_split () 20127{ 20128 func_opt_split_opt=${1%%=*} 20129 func_opt_split_arg=${1#*=} 20130} 20131 20132# func_lo2o object 20133func_lo2o () 20134{ 20135 case ${1} in 20136 *.lo) func_lo2o_result=${1%.lo}.${objext} ;; 20137 *) func_lo2o_result=${1} ;; 20138 esac 20139} 20140 20141# func_xform libobj-or-source 20142func_xform () 20143{ 20144 func_xform_result=${1%.*}.lo 20145} 20146 20147# func_arith arithmetic-term... 20148func_arith () 20149{ 20150 func_arith_result=$(( $* )) 20151} 20152 20153# func_len string 20154# STRING may not start with a hyphen. 20155func_len () 20156{ 20157 func_len_result=${#1} 20158} 20159 20160_LT_EOF 20161 ;; 20162 *) # Bourne compatible functions. 20163 cat << \_LT_EOF >> "$cfgfile" 20164 20165# func_dirname file append nondir_replacement 20166# Compute the dirname of FILE. If nonempty, add APPEND to the result, 20167# otherwise set result to NONDIR_REPLACEMENT. 20168func_dirname () 20169{ 20170 # Extract subdirectory from the argument. 20171 func_dirname_result=`$ECHO "${1}" | $SED "$dirname"` 20172 if test "X$func_dirname_result" = "X${1}"; then 20173 func_dirname_result="${3}" 20174 else 20175 func_dirname_result="$func_dirname_result${2}" 20176 fi 20177} 20178 20179# func_basename file 20180func_basename () 20181{ 20182 func_basename_result=`$ECHO "${1}" | $SED "$basename"` 20183} 20184 20185 20186# func_stripname prefix suffix name 20187# strip PREFIX and SUFFIX off of NAME. 20188# PREFIX and SUFFIX must not contain globbing or regex special 20189# characters, hashes, percent signs, but SUFFIX may contain a leading 20190# dot (in which case that matches only a dot). 20191# func_strip_suffix prefix name 20192func_stripname () 20193{ 20194 case ${2} in 20195 .*) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%\\\\${2}\$%%"`;; 20196 *) func_stripname_result=`$ECHO "${3}" | $SED "s%^${1}%%; s%${2}\$%%"`;; 20197 esac 20198} 20199 20200# sed scripts: 20201my_sed_long_opt='1s/^\(-[^=]*\)=.*/\1/;q' 20202my_sed_long_arg='1s/^-[^=]*=//' 20203 20204# func_opt_split 20205func_opt_split () 20206{ 20207 func_opt_split_opt=`$ECHO "${1}" | $SED "$my_sed_long_opt"` 20208 func_opt_split_arg=`$ECHO "${1}" | $SED "$my_sed_long_arg"` 20209} 20210 20211# func_lo2o object 20212func_lo2o () 20213{ 20214 func_lo2o_result=`$ECHO "${1}" | $SED "$lo2o"` 20215} 20216 20217# func_xform libobj-or-source 20218func_xform () 20219{ 20220 func_xform_result=`$ECHO "${1}" | $SED 's/\.[^.]*$/.lo/'` 20221} 20222 20223# func_arith arithmetic-term... 20224func_arith () 20225{ 20226 func_arith_result=`expr "$@"` 20227} 20228 20229# func_len string 20230# STRING may not start with a hyphen. 20231func_len () 20232{ 20233 func_len_result=`expr "$1" : ".*" 2>/dev/null || echo $max_cmd_len` 20234} 20235 20236_LT_EOF 20237esac 20238 20239case $lt_shell_append in 20240 yes) 20241 cat << \_LT_EOF >> "$cfgfile" 20242 20243# func_append var value 20244# Append VALUE to the end of shell variable VAR. 20245func_append () 20246{ 20247 eval "$1+=\$2" 20248} 20249_LT_EOF 20250 ;; 20251 *) 20252 cat << \_LT_EOF >> "$cfgfile" 20253 20254# func_append var value 20255# Append VALUE to the end of shell variable VAR. 20256func_append () 20257{ 20258 eval "$1=\$$1\$2" 20259} 20260 20261_LT_EOF 20262 ;; 20263 esac 20264 20265 20266 sed -n '/^# Generated shell functions inserted here/,$p' "$ltmain" >> "$cfgfile" \ 20267 || (rm -f "$cfgfile"; exit 1) 20268 20269 mv -f "$cfgfile" "$ofile" || 20270 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 20271 chmod +x "$ofile" 20272 20273 ;; 20274 "po-directories":C) 20275 for ac_file in $CONFIG_FILES; do 20276 # Support "outfile[:infile[:infile...]]" 20277 case "$ac_file" in 20278 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 20279 esac 20280 # PO directories have a Makefile.in generated from Makefile.in.in. 20281 case "$ac_file" in */Makefile.in) 20282 # Adjust a relative srcdir. 20283 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 20284 ac_dir_suffix="/`echo "$ac_dir"|sed 's%^\./%%'`" 20285 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 20286 # In autoconf-2.13 it is called $ac_given_srcdir. 20287 # In autoconf-2.50 it is called $srcdir. 20288 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 20289 case "$ac_given_srcdir" in 20290 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 20291 /*) top_srcdir="$ac_given_srcdir" ;; 20292 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 20293 esac 20294 # Treat a directory as a PO directory if and only if it has a 20295 # POTFILES.in file. This allows packages to have multiple PO 20296 # directories under different names or in different locations. 20297 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 20298 rm -f "$ac_dir/POTFILES" 20299 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 20300 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 20301 POMAKEFILEDEPS="POTFILES.in" 20302 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 20303 # on $ac_dir but don't depend on user-specified configuration 20304 # parameters. 20305 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 20306 # The LINGUAS file contains the set of available languages. 20307 if test -n "$OBSOLETE_ALL_LINGUAS"; then 20308 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 20309 fi 20310 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 20311 # Hide the ALL_LINGUAS assigment from automake < 1.5. 20312 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 20313 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 20314 else 20315 # The set of available languages was given in configure.in. 20316 # Hide the ALL_LINGUAS assigment from automake < 1.5. 20317 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 20318 fi 20319 # Compute POFILES 20320 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 20321 # Compute UPDATEPOFILES 20322 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 20323 # Compute DUMMYPOFILES 20324 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 20325 # Compute GMOFILES 20326 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 20327 case "$ac_given_srcdir" in 20328 .) srcdirpre= ;; 20329 *) srcdirpre='$(srcdir)/' ;; 20330 esac 20331 POFILES= 20332 UPDATEPOFILES= 20333 DUMMYPOFILES= 20334 GMOFILES= 20335 for lang in $ALL_LINGUAS; do 20336 POFILES="$POFILES $srcdirpre$lang.po" 20337 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 20338 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 20339 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 20340 done 20341 # CATALOGS depends on both $ac_dir and the user's LINGUAS 20342 # environment variable. 20343 INST_LINGUAS= 20344 if test -n "$ALL_LINGUAS"; then 20345 for presentlang in $ALL_LINGUAS; do 20346 useit=no 20347 if test "%UNSET%" != "$LINGUAS"; then 20348 desiredlanguages="$LINGUAS" 20349 else 20350 desiredlanguages="$ALL_LINGUAS" 20351 fi 20352 for desiredlang in $desiredlanguages; do 20353 # Use the presentlang catalog if desiredlang is 20354 # a. equal to presentlang, or 20355 # b. a variant of presentlang (because in this case, 20356 # presentlang can be used as a fallback for messages 20357 # which are not translated in the desiredlang catalog). 20358 case "$desiredlang" in 20359 "$presentlang"*) useit=yes;; 20360 esac 20361 done 20362 if test $useit = yes; then 20363 INST_LINGUAS="$INST_LINGUAS $presentlang" 20364 fi 20365 done 20366 fi 20367 CATALOGS= 20368 if test -n "$INST_LINGUAS"; then 20369 for lang in $INST_LINGUAS; do 20370 CATALOGS="$CATALOGS $lang.gmo" 20371 done 20372 fi 20373 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 20374 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 20375 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 20376 if test -f "$f"; then 20377 case "$f" in 20378 *.orig | *.bak | *~) ;; 20379 *) cat "$f" >> "$ac_dir/Makefile" ;; 20380 esac 20381 fi 20382 done 20383 fi 20384 ;; 20385 esac 20386 done ;; 20387 20388 esac 20389done # for ac_tag 20390 20391 20392as_fn_exit 0 20393_ACEOF 20394ac_clean_files=$ac_clean_files_save 20395 20396test $ac_write_fail = 0 || 20397 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 20398 20399 20400# configure is writing to config.log, and then calls config.status. 20401# config.status does its own redirection, appending to config.log. 20402# Unfortunately, on DOS this fails, as config.log is still kept open 20403# by configure, so config.status won't be able to write to it; its 20404# output is simply discarded. So we exec the FD to /dev/null, 20405# effectively closing config.log, so it can be properly (re)opened and 20406# appended to by config.status. When coming back to configure, we 20407# need to make the FD available again. 20408if test "$no_create" != yes; then 20409 ac_cs_success=: 20410 ac_config_status_args= 20411 test "$silent" = yes && 20412 ac_config_status_args="$ac_config_status_args --quiet" 20413 exec 5>/dev/null 20414 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 20415 exec 5>>config.log 20416 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 20417 # would make configure fail if this is the last instruction. 20418 $ac_cs_success || as_fn_exit 1 20419fi 20420if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 20421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 20422$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 20423fi 20424 20425