1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for worker 4.10.0. 4# 5# 6# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 7# 8# 9# This configure script is free software; the Free Software Foundation 10# gives unlimited permission to copy, distribute and modify it. 11## -------------------- ## 12## M4sh Initialization. ## 13## -------------------- ## 14 15# Be more Bourne compatible 16DUALCASE=1; export DUALCASE # for MKS sh 17if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 18 emulate sh 19 NULLCMD=: 20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 21 # is contrary to our usage. Disable this feature. 22 alias -g '${1+"$@"}'='"$@"' 23 setopt NO_GLOB_SUBST 24else 25 case `(set -o) 2>/dev/null` in #( 26 *posix*) : 27 set -o posix ;; #( 28 *) : 29 ;; 30esac 31fi 32 33 34as_nl=' 35' 36export as_nl 37# Printing a long string crashes Solaris 7 /usr/bin/printf. 38as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 39as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 40as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 41# Prefer a ksh shell builtin over an external printf program on Solaris, 42# but without wasting forks for bash or zsh. 43if test -z "$BASH_VERSION$ZSH_VERSION" \ 44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 45 as_echo='print -r --' 46 as_echo_n='print -rn --' 47elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 48 as_echo='printf %s\n' 49 as_echo_n='printf %s' 50else 51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 53 as_echo_n='/usr/ucb/echo -n' 54 else 55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 56 as_echo_n_body='eval 57 arg=$1; 58 case $arg in #( 59 *"$as_nl"*) 60 expr "X$arg" : "X\\(.*\\)$as_nl"; 61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 62 esac; 63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 64 ' 65 export as_echo_n_body 66 as_echo_n='sh -c $as_echo_n_body as_echo' 67 fi 68 export as_echo_body 69 as_echo='sh -c $as_echo_body as_echo' 70fi 71 72# The user is always right. 73if test "${PATH_SEPARATOR+set}" != set; then 74 PATH_SEPARATOR=: 75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 77 PATH_SEPARATOR=';' 78 } 79fi 80 81 82# IFS 83# We need space, tab and new line, in precisely that order. Quoting is 84# there to prevent editors from complaining about space-tab. 85# (If _AS_PATH_WALK were called with IFS unset, it would disable word 86# splitting by setting IFS to empty value.) 87IFS=" "" $as_nl" 88 89# Find who we are. Look in the path if we contain no directory separator. 90as_myself= 91case $0 in #(( 92 *[\\/]* ) as_myself=$0 ;; 93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 94for as_dir in $PATH 95do 96 IFS=$as_save_IFS 97 test -z "$as_dir" && as_dir=. 98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 99 done 100IFS=$as_save_IFS 101 102 ;; 103esac 104# We did not find ourselves, most probably we were run as `sh COMMAND' 105# in which case we are not to be found in the path. 106if test "x$as_myself" = x; then 107 as_myself=$0 108fi 109if test ! -f "$as_myself"; then 110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 111 exit 1 112fi 113 114# Unset variables that we do not need and which cause bugs (e.g. in 115# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 116# suppresses any "Segmentation fault" message there. '((' could 117# trigger a bug in pdksh 5.2.14. 118for as_var in BASH_ENV ENV MAIL MAILPATH 119do eval test x\${$as_var+set} = xset \ 120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 121done 122PS1='$ ' 123PS2='> ' 124PS4='+ ' 125 126# NLS nuisances. 127LC_ALL=C 128export LC_ALL 129LANGUAGE=C 130export LANGUAGE 131 132# CDPATH. 133(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 134 135# Use a proper internal environment variable to ensure we don't fall 136 # into an infinite loop, continuously re-executing ourselves. 137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 138 _as_can_reexec=no; export _as_can_reexec; 139 # We cannot yet assume a decent shell, so we have to provide a 140# neutralization value for shells without unset; and this also 141# works around shells that cannot unset nonexistent variables. 142# Preserve -v and -x to the replacement shell. 143BASH_ENV=/dev/null 144ENV=/dev/null 145(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 146case $- in # (((( 147 *v*x* | *x*v* ) as_opts=-vx ;; 148 *v* ) as_opts=-v ;; 149 *x* ) as_opts=-x ;; 150 * ) as_opts= ;; 151esac 152exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 153# Admittedly, this is quite paranoid, since all the known shells bail 154# out after a failed `exec'. 155$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 156as_fn_exit 255 157 fi 158 # We don't want this to propagate to other subprocesses. 159 { _as_can_reexec=; unset _as_can_reexec;} 160if test "x$CONFIG_SHELL" = x; then 161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 162 emulate sh 163 NULLCMD=: 164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 165 # is contrary to our usage. Disable this feature. 166 alias -g '\${1+\"\$@\"}'='\"\$@\"' 167 setopt NO_GLOB_SUBST 168else 169 case \`(set -o) 2>/dev/null\` in #( 170 *posix*) : 171 set -o posix ;; #( 172 *) : 173 ;; 174esac 175fi 176" 177 as_required="as_fn_return () { (exit \$1); } 178as_fn_success () { as_fn_return 0; } 179as_fn_failure () { as_fn_return 1; } 180as_fn_ret_success () { return 0; } 181as_fn_ret_failure () { return 1; } 182 183exitcode=0 184as_fn_success || { exitcode=1; echo as_fn_success failed.; } 185as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 186as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 187as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 188if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 189 190else 191 exitcode=1; echo positional parameters were not saved. 192fi 193test x\$exitcode = x0 || exit 1 194test -x / || exit 1" 195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 199 200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 204 PATH=/empty FPATH=/empty; export PATH FPATH 205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 207test \$(( 1 + 1 )) = 2 || exit 1" 208 if (eval "$as_required") 2>/dev/null; then : 209 as_have_required=yes 210else 211 as_have_required=no 212fi 213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 214 215else 216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 217as_found=false 218for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 219do 220 IFS=$as_save_IFS 221 test -z "$as_dir" && as_dir=. 222 as_found=: 223 case $as_dir in #( 224 /*) 225 for as_base in sh bash ksh sh5; do 226 # Try only shells that exist, to save several forks. 227 as_shell=$as_dir/$as_base 228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 230 CONFIG_SHELL=$as_shell as_have_required=yes 231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 break 2 233fi 234fi 235 done;; 236 esac 237 as_found=false 238done 239$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 241 CONFIG_SHELL=$SHELL as_have_required=yes 242fi; } 243IFS=$as_save_IFS 244 245 246 if test "x$CONFIG_SHELL" != x; then : 247 export CONFIG_SHELL 248 # We cannot yet assume a decent shell, so we have to provide a 249# neutralization value for shells without unset; and this also 250# works around shells that cannot unset nonexistent variables. 251# Preserve -v and -x to the replacement shell. 252BASH_ENV=/dev/null 253ENV=/dev/null 254(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 255case $- in # (((( 256 *v*x* | *x*v* ) as_opts=-vx ;; 257 *v* ) as_opts=-v ;; 258 *x* ) as_opts=-x ;; 259 * ) as_opts= ;; 260esac 261exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 262# Admittedly, this is quite paranoid, since all the known shells bail 263# out after a failed `exec'. 264$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 265exit 255 266fi 267 268 if test x$as_have_required = xno; then : 269 $as_echo "$0: This script requires a shell more modern than all" 270 $as_echo "$0: the shells that I found on your system." 271 if test x${ZSH_VERSION+set} = xset ; then 272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 273 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 274 else 275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system, 276$0: including any error possibly output before this 277$0: message. Then install a modern shell, or manually run 278$0: the script under such a shell if you do have one." 279 fi 280 exit 1 281fi 282fi 283fi 284SHELL=${CONFIG_SHELL-/bin/sh} 285export SHELL 286# Unset more variables known to interfere with behavior of common tools. 287CLICOLOR_FORCE= GREP_OPTIONS= 288unset CLICOLOR_FORCE GREP_OPTIONS 289 290## --------------------- ## 291## M4sh Shell Functions. ## 292## --------------------- ## 293# as_fn_unset VAR 294# --------------- 295# Portably unset VAR. 296as_fn_unset () 297{ 298 { eval $1=; unset $1;} 299} 300as_unset=as_fn_unset 301 302# as_fn_set_status STATUS 303# ----------------------- 304# Set $? to STATUS, without forking. 305as_fn_set_status () 306{ 307 return $1 308} # as_fn_set_status 309 310# as_fn_exit STATUS 311# ----------------- 312# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 313as_fn_exit () 314{ 315 set +e 316 as_fn_set_status $1 317 exit $1 318} # as_fn_exit 319 320# as_fn_mkdir_p 321# ------------- 322# Create "$as_dir" as a directory, including parents if necessary. 323as_fn_mkdir_p () 324{ 325 326 case $as_dir in #( 327 -*) as_dir=./$as_dir;; 328 esac 329 test -d "$as_dir" || eval $as_mkdir_p || { 330 as_dirs= 331 while :; do 332 case $as_dir in #( 333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 334 *) as_qdir=$as_dir;; 335 esac 336 as_dirs="'$as_qdir' $as_dirs" 337 as_dir=`$as_dirname -- "$as_dir" || 338$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 339 X"$as_dir" : 'X\(//\)[^/]' \| \ 340 X"$as_dir" : 'X\(//\)$' \| \ 341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 342$as_echo X"$as_dir" | 343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 344 s//\1/ 345 q 346 } 347 /^X\(\/\/\)[^/].*/{ 348 s//\1/ 349 q 350 } 351 /^X\(\/\/\)$/{ 352 s//\1/ 353 q 354 } 355 /^X\(\/\).*/{ 356 s//\1/ 357 q 358 } 359 s/.*/./; q'` 360 test -d "$as_dir" && break 361 done 362 test -z "$as_dirs" || eval "mkdir $as_dirs" 363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 364 365 366} # as_fn_mkdir_p 367 368# as_fn_executable_p FILE 369# ----------------------- 370# Test if FILE is an executable regular file. 371as_fn_executable_p () 372{ 373 test -f "$1" && test -x "$1" 374} # as_fn_executable_p 375# as_fn_append VAR VALUE 376# ---------------------- 377# Append the text in VALUE to the end of the definition contained in VAR. Take 378# advantage of any shell optimizations that allow amortized linear growth over 379# repeated appends, instead of the typical quadratic growth present in naive 380# implementations. 381if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 382 eval 'as_fn_append () 383 { 384 eval $1+=\$2 385 }' 386else 387 as_fn_append () 388 { 389 eval $1=\$$1\$2 390 } 391fi # as_fn_append 392 393# as_fn_arith ARG... 394# ------------------ 395# Perform arithmetic evaluation on the ARGs, and store the result in the 396# global $as_val. Take advantage of shells that can avoid forks. The arguments 397# must be portable across $(()) and expr. 398if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 399 eval 'as_fn_arith () 400 { 401 as_val=$(( $* )) 402 }' 403else 404 as_fn_arith () 405 { 406 as_val=`expr "$@" || test $? -eq 1` 407 } 408fi # as_fn_arith 409 410 411# as_fn_error STATUS ERROR [LINENO LOG_FD] 412# ---------------------------------------- 413# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 414# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 415# script with STATUS, using 1 if that was 0. 416as_fn_error () 417{ 418 as_status=$1; test $as_status -eq 0 && as_status=1 419 if test "$4"; then 420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 422 fi 423 $as_echo "$as_me: error: $2" >&2 424 as_fn_exit $as_status 425} # as_fn_error 426 427if expr a : '\(a\)' >/dev/null 2>&1 && 428 test "X`expr 00001 : '.*\(...\)'`" = X001; then 429 as_expr=expr 430else 431 as_expr=false 432fi 433 434if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 435 as_basename=basename 436else 437 as_basename=false 438fi 439 440if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 441 as_dirname=dirname 442else 443 as_dirname=false 444fi 445 446as_me=`$as_basename -- "$0" || 447$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 448 X"$0" : 'X\(//\)$' \| \ 449 X"$0" : 'X\(/\)' \| . 2>/dev/null || 450$as_echo X/"$0" | 451 sed '/^.*\/\([^/][^/]*\)\/*$/{ 452 s//\1/ 453 q 454 } 455 /^X\/\(\/\/\)$/{ 456 s//\1/ 457 q 458 } 459 /^X\/\(\/\).*/{ 460 s//\1/ 461 q 462 } 463 s/.*/./; q'` 464 465# Avoid depending upon Character Ranges. 466as_cr_letters='abcdefghijklmnopqrstuvwxyz' 467as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 468as_cr_Letters=$as_cr_letters$as_cr_LETTERS 469as_cr_digits='0123456789' 470as_cr_alnum=$as_cr_Letters$as_cr_digits 471 472 473 as_lineno_1=$LINENO as_lineno_1a=$LINENO 474 as_lineno_2=$LINENO as_lineno_2a=$LINENO 475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 478 sed -n ' 479 p 480 /[$]LINENO/= 481 ' <$as_myself | 482 sed ' 483 s/[$]LINENO.*/&-/ 484 t lineno 485 b 486 :lineno 487 N 488 :loop 489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 490 t loop 491 s/-\n.*// 492 ' >$as_me.lineno && 493 chmod +x "$as_me.lineno" || 494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 495 496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 497 # already done that, so ensure we don't try to do so again and fall 498 # in an infinite loop. This has already happened in practice. 499 _as_can_reexec=no; export _as_can_reexec 500 # Don't try to exec as it changes $[0], causing all sort of problems 501 # (the dirname of $[0] is not the place where we might find the 502 # original and so on. Autoconf is especially sensitive to this). 503 . "./$as_me.lineno" 504 # Exit status is that of the last command. 505 exit 506} 507 508ECHO_C= ECHO_N= ECHO_T= 509case `echo -n x` in #((((( 510-n*) 511 case `echo 'xy\c'` in 512 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 513 xy) ECHO_C='\c';; 514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 515 ECHO_T=' ';; 516 esac;; 517*) 518 ECHO_N='-n';; 519esac 520 521rm -f conf$$ conf$$.exe conf$$.file 522if test -d conf$$.dir; then 523 rm -f conf$$.dir/conf$$.file 524else 525 rm -f conf$$.dir 526 mkdir conf$$.dir 2>/dev/null 527fi 528if (echo >conf$$.file) 2>/dev/null; then 529 if ln -s conf$$.file conf$$ 2>/dev/null; then 530 as_ln_s='ln -s' 531 # ... but there are two gotchas: 532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 534 # In both cases, we have to default to `cp -pR'. 535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 536 as_ln_s='cp -pR' 537 elif ln conf$$.file conf$$ 2>/dev/null; then 538 as_ln_s=ln 539 else 540 as_ln_s='cp -pR' 541 fi 542else 543 as_ln_s='cp -pR' 544fi 545rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 546rmdir conf$$.dir 2>/dev/null 547 548if mkdir -p . 2>/dev/null; then 549 as_mkdir_p='mkdir -p "$as_dir"' 550else 551 test -d ./-p && rmdir ./-p 552 as_mkdir_p=false 553fi 554 555as_test_x='test -x' 556as_executable_p=as_fn_executable_p 557 558# Sed expression to map a string onto a valid CPP name. 559as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 560 561# Sed expression to map a string onto a valid variable name. 562as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 563 564SHELL=${CONFIG_SHELL-/bin/sh} 565 566 567test -n "$DJDIR" || exec 7<&0 </dev/null 568exec 6>&1 569 570# Name of the host. 571# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 572# so uname gets run too. 573ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 574 575# 576# Initializations. 577# 578ac_default_prefix=/usr/local 579ac_clean_files= 580ac_config_libobj_dir=. 581LIBOBJS= 582cross_compiling=no 583subdirs= 584MFLAGS= 585MAKEFLAGS= 586 587# Identity of this package. 588PACKAGE_NAME='worker' 589PACKAGE_TARNAME='worker' 590PACKAGE_VERSION='4.10.0' 591PACKAGE_STRING='worker 4.10.0' 592PACKAGE_BUGREPORT='' 593PACKAGE_URL='' 594 595ac_unique_file="src/worker.cc" 596# Factoring default headers for most tests. 597ac_includes_default="\ 598#include <stdio.h> 599#ifdef HAVE_SYS_TYPES_H 600# include <sys/types.h> 601#endif 602#ifdef HAVE_SYS_STAT_H 603# include <sys/stat.h> 604#endif 605#ifdef STDC_HEADERS 606# include <stdlib.h> 607# include <stddef.h> 608#else 609# ifdef HAVE_STDLIB_H 610# include <stdlib.h> 611# endif 612#endif 613#ifdef HAVE_STRING_H 614# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 615# include <memory.h> 616# endif 617# include <string.h> 618#endif 619#ifdef HAVE_STRINGS_H 620# include <strings.h> 621#endif 622#ifdef HAVE_INTTYPES_H 623# include <inttypes.h> 624#endif 625#ifdef HAVE_STDINT_H 626# include <stdint.h> 627#endif 628#ifdef HAVE_UNISTD_H 629# include <unistd.h> 630#endif" 631 632ac_header_list= 633ac_subst_vars='am__EXEEXT_FALSE 634am__EXEEXT_TRUE 635LTLIBOBJS 636QUOTED_COMPANY_CLANG_ARGS 637HAL_STORAGE_LIBS 638HAL_STORAGE_CFLAGS 639DBUS_LIBS 640DBUS_CFLAGS 641WORKER_LDADD 642x_libraries 643OPENSSL_LIBS 644OPENSSL_CFLAGS 645LUA_LIBS 646LUA_CFLAGS 647XFT_LIBS 648XFT_CFLAGS 649PTHREAD_CFLAGS 650PTHREAD_LIBS 651PTHREAD_CC 652ax_pthread_config 653LIBOBJS 654avfsconf 655X_EXTRA_LIBS 656X_LIBS 657X_PRE_LIBS 658X_CFLAGS 659XMKMF 660USE_TESTS_FALSE 661USE_TESTS_TRUE 662CHECK_LIBS 663CHECK_CFLAGS 664PKG_CONFIG_LIBDIR 665PKG_CONFIG_PATH 666PKG_CONFIG 667CXXCPP 668CPP 669LT_SYS_LIBRARY_PATH 670OTOOL64 671OTOOL 672LIPO 673NMEDIT 674DSYMUTIL 675MANIFEST_TOOL 676RANLIB 677ac_ct_AR 678AR 679DLLTOOL 680OBJDUMP 681LN_S 682NM 683ac_ct_DUMPBIN 684DUMPBIN 685LD 686FGREP 687EGREP 688GREP 689SED 690host_os 691host_vendor 692host_cpu 693host 694build_os 695build_vendor 696build_cpu 697build 698LIBTOOL 699GXX_VERSION 700YFLAGS 701YACC 702LEXLIB 703LEX_OUTPUT_ROOT 704LEX 705am__fastdepCXX_FALSE 706am__fastdepCXX_TRUE 707CXXDEPMODE 708ac_ct_CXX 709CXXFLAGS 710CXX 711am__fastdepCC_FALSE 712am__fastdepCC_TRUE 713CCDEPMODE 714am__nodep 715AMDEPBACKSLASH 716AMDEP_FALSE 717AMDEP_TRUE 718am__include 719DEPDIR 720OBJEXT 721EXEEXT 722ac_ct_CC 723CPPFLAGS 724LDFLAGS 725CFLAGS 726CC 727AM_BACKSLASH 728AM_DEFAULT_VERBOSITY 729AM_DEFAULT_V 730AM_V 731CSCOPE 732ETAGS 733CTAGS 734am__untar 735am__tar 736AMTAR 737am__leading_dot 738SET_MAKE 739AWK 740mkdir_p 741MKDIR_P 742INSTALL_STRIP_PROGRAM 743STRIP 744install_sh 745MAKEINFO 746AUTOHEADER 747AUTOMAKE 748AUTOCONF 749ACLOCAL 750VERSION 751PACKAGE 752CYGPATH_W 753am__isrc 754INSTALL_DATA 755INSTALL_SCRIPT 756INSTALL_PROGRAM 757target_alias 758host_alias 759build_alias 760LIBS 761ECHO_T 762ECHO_N 763ECHO_C 764DEFS 765mandir 766localedir 767libdir 768psdir 769pdfdir 770dvidir 771htmldir 772infodir 773docdir 774oldincludedir 775includedir 776localstatedir 777sharedstatedir 778sysconfdir 779datadir 780datarootdir 781libexecdir 782sbindir 783bindir 784program_transform_name 785prefix 786exec_prefix 787PACKAGE_URL 788PACKAGE_BUGREPORT 789PACKAGE_STRING 790PACKAGE_VERSION 791PACKAGE_TARNAME 792PACKAGE_NAME 793PATH_SEPARATOR 794SHELL 795am__quote' 796ac_subst_files='' 797ac_user_opts=' 798enable_option_checking 799enable_silent_rules 800enable_dependency_tracking 801enable_cxx_check 802enable_shared 803enable_static 804with_pic 805enable_fast_install 806with_aix_soname 807with_gnu_ld 808with_sysroot 809enable_libtool_lock 810with_x 811with_avfs 812with_avfs_path 813enable_largefile 814with_libmagic 815enable_xim 816enable_utf8 817enable_debug 818enable_xft 819enable_lua 820enable_developer 821with_hal 822with_dbus 823enable_inotify 824' 825 ac_precious_vars='build_alias 826host_alias 827target_alias 828CC 829CFLAGS 830LDFLAGS 831LIBS 832CPPFLAGS 833CXX 834CXXFLAGS 835CCC 836YACC 837YFLAGS 838LT_SYS_LIBRARY_PATH 839CPP 840CXXCPP 841PKG_CONFIG 842PKG_CONFIG_PATH 843PKG_CONFIG_LIBDIR 844CHECK_CFLAGS 845CHECK_LIBS 846XMKMF 847XFT_CFLAGS 848XFT_LIBS 849LUA_CFLAGS 850LUA_LIBS 851OPENSSL_CFLAGS 852OPENSSL_LIBS 853DBUS_CFLAGS 854DBUS_LIBS 855HAL_STORAGE_CFLAGS 856HAL_STORAGE_LIBS' 857 858 859# Initialize some variables set by options. 860ac_init_help= 861ac_init_version=false 862ac_unrecognized_opts= 863ac_unrecognized_sep= 864# The variables have the same names as the options, with 865# dashes changed to underlines. 866cache_file=/dev/null 867exec_prefix=NONE 868no_create= 869no_recursion= 870prefix=NONE 871program_prefix=NONE 872program_suffix=NONE 873program_transform_name=s,x,x, 874silent= 875site= 876srcdir= 877verbose= 878x_includes=NONE 879x_libraries=NONE 880 881# Installation directory options. 882# These are left unexpanded so users can "make install exec_prefix=/foo" 883# and all the variables that are supposed to be based on exec_prefix 884# by default will actually change. 885# Use braces instead of parens because sh, perl, etc. also accept them. 886# (The list follows the same order as the GNU Coding Standards.) 887bindir='${exec_prefix}/bin' 888sbindir='${exec_prefix}/sbin' 889libexecdir='${exec_prefix}/libexec' 890datarootdir='${prefix}/share' 891datadir='${datarootdir}' 892sysconfdir='${prefix}/etc' 893sharedstatedir='${prefix}/com' 894localstatedir='${prefix}/var' 895includedir='${prefix}/include' 896oldincludedir='/usr/include' 897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 898infodir='${datarootdir}/info' 899htmldir='${docdir}' 900dvidir='${docdir}' 901pdfdir='${docdir}' 902psdir='${docdir}' 903libdir='${exec_prefix}/lib' 904localedir='${datarootdir}/locale' 905mandir='${datarootdir}/man' 906 907ac_prev= 908ac_dashdash= 909for ac_option 910do 911 # If the previous option needs an argument, assign it. 912 if test -n "$ac_prev"; then 913 eval $ac_prev=\$ac_option 914 ac_prev= 915 continue 916 fi 917 918 case $ac_option in 919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 920 *=) ac_optarg= ;; 921 *) ac_optarg=yes ;; 922 esac 923 924 # Accept the important Cygnus configure options, so we can diagnose typos. 925 926 case $ac_dashdash$ac_option in 927 --) 928 ac_dashdash=yes ;; 929 930 -bindir | --bindir | --bindi | --bind | --bin | --bi) 931 ac_prev=bindir ;; 932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 933 bindir=$ac_optarg ;; 934 935 -build | --build | --buil | --bui | --bu) 936 ac_prev=build_alias ;; 937 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 938 build_alias=$ac_optarg ;; 939 940 -cache-file | --cache-file | --cache-fil | --cache-fi \ 941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 942 ac_prev=cache_file ;; 943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 945 cache_file=$ac_optarg ;; 946 947 --config-cache | -C) 948 cache_file=config.cache ;; 949 950 -datadir | --datadir | --datadi | --datad) 951 ac_prev=datadir ;; 952 -datadir=* | --datadir=* | --datadi=* | --datad=*) 953 datadir=$ac_optarg ;; 954 955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 956 | --dataroo | --dataro | --datar) 957 ac_prev=datarootdir ;; 958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 960 datarootdir=$ac_optarg ;; 961 962 -disable-* | --disable-*) 963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 964 # Reject names that are not valid shell variable names. 965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 966 as_fn_error $? "invalid feature name: $ac_useropt" 967 ac_useropt_orig=$ac_useropt 968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 969 case $ac_user_opts in 970 *" 971"enable_$ac_useropt" 972"*) ;; 973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 974 ac_unrecognized_sep=', ';; 975 esac 976 eval enable_$ac_useropt=no ;; 977 978 -docdir | --docdir | --docdi | --doc | --do) 979 ac_prev=docdir ;; 980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 981 docdir=$ac_optarg ;; 982 983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 984 ac_prev=dvidir ;; 985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 986 dvidir=$ac_optarg ;; 987 988 -enable-* | --enable-*) 989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 990 # Reject names that are not valid shell variable names. 991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 992 as_fn_error $? "invalid feature name: $ac_useropt" 993 ac_useropt_orig=$ac_useropt 994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 995 case $ac_user_opts in 996 *" 997"enable_$ac_useropt" 998"*) ;; 999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 1000 ac_unrecognized_sep=', ';; 1001 esac 1002 eval enable_$ac_useropt=\$ac_optarg ;; 1003 1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 1006 | --exec | --exe | --ex) 1007 ac_prev=exec_prefix ;; 1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 1010 | --exec=* | --exe=* | --ex=*) 1011 exec_prefix=$ac_optarg ;; 1012 1013 -gas | --gas | --ga | --g) 1014 # Obsolete; use --with-gas. 1015 with_gas=yes ;; 1016 1017 -help | --help | --hel | --he | -h) 1018 ac_init_help=long ;; 1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 1020 ac_init_help=recursive ;; 1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 1022 ac_init_help=short ;; 1023 1024 -host | --host | --hos | --ho) 1025 ac_prev=host_alias ;; 1026 -host=* | --host=* | --hos=* | --ho=*) 1027 host_alias=$ac_optarg ;; 1028 1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 1030 ac_prev=htmldir ;; 1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1032 | --ht=*) 1033 htmldir=$ac_optarg ;; 1034 1035 -includedir | --includedir | --includedi | --included | --include \ 1036 | --includ | --inclu | --incl | --inc) 1037 ac_prev=includedir ;; 1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1039 | --includ=* | --inclu=* | --incl=* | --inc=*) 1040 includedir=$ac_optarg ;; 1041 1042 -infodir | --infodir | --infodi | --infod | --info | --inf) 1043 ac_prev=infodir ;; 1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1045 infodir=$ac_optarg ;; 1046 1047 -libdir | --libdir | --libdi | --libd) 1048 ac_prev=libdir ;; 1049 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1050 libdir=$ac_optarg ;; 1051 1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1053 | --libexe | --libex | --libe) 1054 ac_prev=libexecdir ;; 1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1056 | --libexe=* | --libex=* | --libe=*) 1057 libexecdir=$ac_optarg ;; 1058 1059 -localedir | --localedir | --localedi | --localed | --locale) 1060 ac_prev=localedir ;; 1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1062 localedir=$ac_optarg ;; 1063 1064 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1065 | --localstate | --localstat | --localsta | --localst | --locals) 1066 ac_prev=localstatedir ;; 1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1069 localstatedir=$ac_optarg ;; 1070 1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1072 ac_prev=mandir ;; 1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1074 mandir=$ac_optarg ;; 1075 1076 -nfp | --nfp | --nf) 1077 # Obsolete; use --without-fp. 1078 with_fp=no ;; 1079 1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1081 | --no-cr | --no-c | -n) 1082 no_create=yes ;; 1083 1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1086 no_recursion=yes ;; 1087 1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1090 | --oldin | --oldi | --old | --ol | --o) 1091 ac_prev=oldincludedir ;; 1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1095 oldincludedir=$ac_optarg ;; 1096 1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1098 ac_prev=prefix ;; 1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1100 prefix=$ac_optarg ;; 1101 1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1103 | --program-pre | --program-pr | --program-p) 1104 ac_prev=program_prefix ;; 1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1107 program_prefix=$ac_optarg ;; 1108 1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1110 | --program-suf | --program-su | --program-s) 1111 ac_prev=program_suffix ;; 1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1114 program_suffix=$ac_optarg ;; 1115 1116 -program-transform-name | --program-transform-name \ 1117 | --program-transform-nam | --program-transform-na \ 1118 | --program-transform-n | --program-transform- \ 1119 | --program-transform | --program-transfor \ 1120 | --program-transfo | --program-transf \ 1121 | --program-trans | --program-tran \ 1122 | --progr-tra | --program-tr | --program-t) 1123 ac_prev=program_transform_name ;; 1124 -program-transform-name=* | --program-transform-name=* \ 1125 | --program-transform-nam=* | --program-transform-na=* \ 1126 | --program-transform-n=* | --program-transform-=* \ 1127 | --program-transform=* | --program-transfor=* \ 1128 | --program-transfo=* | --program-transf=* \ 1129 | --program-trans=* | --program-tran=* \ 1130 | --progr-tra=* | --program-tr=* | --program-t=*) 1131 program_transform_name=$ac_optarg ;; 1132 1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1134 ac_prev=pdfdir ;; 1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1136 pdfdir=$ac_optarg ;; 1137 1138 -psdir | --psdir | --psdi | --psd | --ps) 1139 ac_prev=psdir ;; 1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1141 psdir=$ac_optarg ;; 1142 1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1144 | -silent | --silent | --silen | --sile | --sil) 1145 silent=yes ;; 1146 1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1148 ac_prev=sbindir ;; 1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1150 | --sbi=* | --sb=*) 1151 sbindir=$ac_optarg ;; 1152 1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1155 | --sharedst | --shareds | --shared | --share | --shar \ 1156 | --sha | --sh) 1157 ac_prev=sharedstatedir ;; 1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1161 | --sha=* | --sh=*) 1162 sharedstatedir=$ac_optarg ;; 1163 1164 -site | --site | --sit) 1165 ac_prev=site ;; 1166 -site=* | --site=* | --sit=*) 1167 site=$ac_optarg ;; 1168 1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1170 ac_prev=srcdir ;; 1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1172 srcdir=$ac_optarg ;; 1173 1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1175 | --syscon | --sysco | --sysc | --sys | --sy) 1176 ac_prev=sysconfdir ;; 1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1179 sysconfdir=$ac_optarg ;; 1180 1181 -target | --target | --targe | --targ | --tar | --ta | --t) 1182 ac_prev=target_alias ;; 1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1184 target_alias=$ac_optarg ;; 1185 1186 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1187 verbose=yes ;; 1188 1189 -version | --version | --versio | --versi | --vers | -V) 1190 ac_init_version=: ;; 1191 1192 -with-* | --with-*) 1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1194 # Reject names that are not valid shell variable names. 1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1196 as_fn_error $? "invalid package name: $ac_useropt" 1197 ac_useropt_orig=$ac_useropt 1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1199 case $ac_user_opts in 1200 *" 1201"with_$ac_useropt" 1202"*) ;; 1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1204 ac_unrecognized_sep=', ';; 1205 esac 1206 eval with_$ac_useropt=\$ac_optarg ;; 1207 1208 -without-* | --without-*) 1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1210 # Reject names that are not valid shell variable names. 1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1212 as_fn_error $? "invalid package name: $ac_useropt" 1213 ac_useropt_orig=$ac_useropt 1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1215 case $ac_user_opts in 1216 *" 1217"with_$ac_useropt" 1218"*) ;; 1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1220 ac_unrecognized_sep=', ';; 1221 esac 1222 eval with_$ac_useropt=no ;; 1223 1224 --x) 1225 # Obsolete; use --with-x. 1226 with_x=yes ;; 1227 1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1229 | --x-incl | --x-inc | --x-in | --x-i) 1230 ac_prev=x_includes ;; 1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1233 x_includes=$ac_optarg ;; 1234 1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1237 ac_prev=x_libraries ;; 1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1240 x_libraries=$ac_optarg ;; 1241 1242 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1243Try \`$0 --help' for more information" 1244 ;; 1245 1246 *=*) 1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1248 # Reject names that are not valid shell variable names. 1249 case $ac_envvar in #( 1250 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1252 esac 1253 eval $ac_envvar=\$ac_optarg 1254 export $ac_envvar ;; 1255 1256 *) 1257 # FIXME: should be removed in autoconf 3.0. 1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1262 ;; 1263 1264 esac 1265done 1266 1267if test -n "$ac_prev"; then 1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1269 as_fn_error $? "missing argument to $ac_option" 1270fi 1271 1272if test -n "$ac_unrecognized_opts"; then 1273 case $enable_option_checking in 1274 no) ;; 1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1277 esac 1278fi 1279 1280# Check all directory arguments for consistency. 1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1282 datadir sysconfdir sharedstatedir localstatedir includedir \ 1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1284 libdir localedir mandir 1285do 1286 eval ac_val=\$$ac_var 1287 # Remove trailing slashes. 1288 case $ac_val in 1289 */ ) 1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1291 eval $ac_var=\$ac_val;; 1292 esac 1293 # Be sure to have absolute directory names. 1294 case $ac_val in 1295 [\\/$]* | ?:[\\/]* ) continue;; 1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1297 esac 1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1299done 1300 1301# There might be people who depend on the old broken behavior: `$host' 1302# used to hold the argument of --host etc. 1303# FIXME: To remove some day. 1304build=$build_alias 1305host=$host_alias 1306target=$target_alias 1307 1308# FIXME: To remove some day. 1309if test "x$host_alias" != x; then 1310 if test "x$build_alias" = x; then 1311 cross_compiling=maybe 1312 elif test "x$build_alias" != "x$host_alias"; then 1313 cross_compiling=yes 1314 fi 1315fi 1316 1317ac_tool_prefix= 1318test -n "$host_alias" && ac_tool_prefix=$host_alias- 1319 1320test "$silent" = yes && exec 6>/dev/null 1321 1322 1323ac_pwd=`pwd` && test -n "$ac_pwd" && 1324ac_ls_di=`ls -di .` && 1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1326 as_fn_error $? "working directory cannot be determined" 1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1328 as_fn_error $? "pwd does not report name of working directory" 1329 1330 1331# Find the source files, if location was not specified. 1332if test -z "$srcdir"; then 1333 ac_srcdir_defaulted=yes 1334 # Try the directory containing this script, then the parent directory. 1335 ac_confdir=`$as_dirname -- "$as_myself" || 1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1337 X"$as_myself" : 'X\(//\)[^/]' \| \ 1338 X"$as_myself" : 'X\(//\)$' \| \ 1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1340$as_echo X"$as_myself" | 1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1342 s//\1/ 1343 q 1344 } 1345 /^X\(\/\/\)[^/].*/{ 1346 s//\1/ 1347 q 1348 } 1349 /^X\(\/\/\)$/{ 1350 s//\1/ 1351 q 1352 } 1353 /^X\(\/\).*/{ 1354 s//\1/ 1355 q 1356 } 1357 s/.*/./; q'` 1358 srcdir=$ac_confdir 1359 if test ! -r "$srcdir/$ac_unique_file"; then 1360 srcdir=.. 1361 fi 1362else 1363 ac_srcdir_defaulted=no 1364fi 1365if test ! -r "$srcdir/$ac_unique_file"; then 1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1368fi 1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1370ac_abs_confdir=`( 1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1372 pwd)` 1373# When building in place, set srcdir=. 1374if test "$ac_abs_confdir" = "$ac_pwd"; then 1375 srcdir=. 1376fi 1377# Remove unnecessary trailing slashes from srcdir. 1378# Double slashes in file names in object file debugging info 1379# mess up M-x gdb in Emacs. 1380case $srcdir in 1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1382esac 1383for ac_var in $ac_precious_vars; do 1384 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1385 eval ac_env_${ac_var}_value=\$${ac_var} 1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1387 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1388done 1389 1390# 1391# Report the --help message. 1392# 1393if test "$ac_init_help" = "long"; then 1394 # Omit some internal or obsolete options to make the list less imposing. 1395 # This message is too long to be a string in the A/UX 3.1 sh. 1396 cat <<_ACEOF 1397\`configure' configures worker 4.10.0 to adapt to many kinds of systems. 1398 1399Usage: $0 [OPTION]... [VAR=VALUE]... 1400 1401To assign environment variables (e.g., CC, CFLAGS...), specify them as 1402VAR=VALUE. See below for descriptions of some of the useful variables. 1403 1404Defaults for the options are specified in brackets. 1405 1406Configuration: 1407 -h, --help display this help and exit 1408 --help=short display options specific to this package 1409 --help=recursive display the short help of all the included packages 1410 -V, --version display version information and exit 1411 -q, --quiet, --silent do not print \`checking ...' messages 1412 --cache-file=FILE cache test results in FILE [disabled] 1413 -C, --config-cache alias for \`--cache-file=config.cache' 1414 -n, --no-create do not create output files 1415 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1416 1417Installation directories: 1418 --prefix=PREFIX install architecture-independent files in PREFIX 1419 [$ac_default_prefix] 1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1421 [PREFIX] 1422 1423By default, \`make install' will install all the files in 1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1425an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1426for instance \`--prefix=\$HOME'. 1427 1428For better control, use the options below. 1429 1430Fine tuning of the installation directories: 1431 --bindir=DIR user executables [EPREFIX/bin] 1432 --sbindir=DIR system admin executables [EPREFIX/sbin] 1433 --libexecdir=DIR program executables [EPREFIX/libexec] 1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1437 --libdir=DIR object code libraries [EPREFIX/lib] 1438 --includedir=DIR C header files [PREFIX/include] 1439 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1442 --infodir=DIR info documentation [DATAROOTDIR/info] 1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1444 --mandir=DIR man documentation [DATAROOTDIR/man] 1445 --docdir=DIR documentation root [DATAROOTDIR/doc/worker] 1446 --htmldir=DIR html documentation [DOCDIR] 1447 --dvidir=DIR dvi documentation [DOCDIR] 1448 --pdfdir=DIR pdf documentation [DOCDIR] 1449 --psdir=DIR ps documentation [DOCDIR] 1450_ACEOF 1451 1452 cat <<\_ACEOF 1453 1454Program names: 1455 --program-prefix=PREFIX prepend PREFIX to installed program names 1456 --program-suffix=SUFFIX append SUFFIX to installed program names 1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1458 1459X features: 1460 --x-includes=DIR X include files are in DIR 1461 --x-libraries=DIR X library files are in DIR 1462 1463System types: 1464 --build=BUILD configure for building on BUILD [guessed] 1465 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1466_ACEOF 1467fi 1468 1469if test -n "$ac_init_help"; then 1470 case $ac_init_help in 1471 short | recursive ) echo "Configuration of worker 4.10.0:";; 1472 esac 1473 cat <<\_ACEOF 1474 1475Optional Features: 1476 --disable-option-checking ignore unrecognized --enable/--with options 1477 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1478 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1479 --enable-silent-rules less verbose build output (undo: "make V=1") 1480 --disable-silent-rules verbose build output (undo: "make V=0") 1481 --enable-dependency-tracking 1482 do not reject slow dependency extractors 1483 --disable-dependency-tracking 1484 speeds up one-time build 1485 --disable-cxx-check skip compiler tests 1486 --enable-shared[=PKGS] build shared libraries [default=yes] 1487 --enable-static[=PKGS] build static libraries [default=yes] 1488 --enable-fast-install[=PKGS] 1489 optimize for fast installation [default=yes] 1490 --disable-libtool-lock avoid locking (might break parallel builds) 1491 --disable-largefile omit support for large files 1492 --disable-xim do not use X11 XIM 1493 --disable-utf8 disable utf8 support 1494 --enable-debug compile some debug information 1495 --disable-xft disable use of XFT font library 1496 --disable-lua disable use of LUA scripting engine 1497 --enable-developer compile developer version 1498 --disable-inotify disable use of inotify 1499 1500Optional Packages: 1501 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1502 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1503 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1504 both] 1505 --with-aix-soname=aix|svr4|both 1506 shared library versioning (aka "SONAME") variant to 1507 provide on AIX, [default=aix]. 1508 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1509 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1510 compiler's sysroot if not specified). 1511 --with-x use the X Window System 1512 --with-avfs use avfs (default is YES) 1513 --with-avfs-path=PATH PATH to avfsconfig (default: autoconfig) 1514 --with-libmagic use libmagic library 1515 --with-hal use hal (default is YES) 1516 --with-dbus use dbus (default is YES) 1517 1518Some influential environment variables: 1519 CC C compiler command 1520 CFLAGS C compiler flags 1521 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1522 nonstandard directory <lib dir> 1523 LIBS libraries to pass to the linker, e.g. -l<library> 1524 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1525 you have headers in a nonstandard directory <include dir> 1526 CXX C++ compiler command 1527 CXXFLAGS C++ compiler flags 1528 YACC The `Yet Another Compiler Compiler' implementation to use. 1529 Defaults to the first program found out of: `bison -y', `byacc', 1530 `yacc'. 1531 YFLAGS The list of arguments that will be passed by default to $YACC. 1532 This script will default YFLAGS to the empty string to avoid a 1533 default value of `-d' given by some make applications. 1534 LT_SYS_LIBRARY_PATH 1535 User-defined run-time library search path. 1536 CPP C preprocessor 1537 CXXCPP C++ preprocessor 1538 PKG_CONFIG path to pkg-config utility 1539 PKG_CONFIG_PATH 1540 directories to add to pkg-config's search path 1541 PKG_CONFIG_LIBDIR 1542 path overriding pkg-config's built-in search path 1543 CHECK_CFLAGS 1544 C compiler flags for CHECK, overriding pkg-config 1545 CHECK_LIBS linker flags for CHECK, overriding pkg-config 1546 XMKMF Path to xmkmf, Makefile generator for X Window System 1547 XFT_CFLAGS C compiler flags for XFT, overriding pkg-config 1548 XFT_LIBS linker flags for XFT, overriding pkg-config 1549 LUA_CFLAGS C compiler flags for LUA, overriding pkg-config 1550 LUA_LIBS linker flags for LUA, overriding pkg-config 1551 OPENSSL_CFLAGS 1552 C compiler flags for OPENSSL, overriding pkg-config 1553 OPENSSL_LIBS 1554 linker flags for OPENSSL, overriding pkg-config 1555 DBUS_CFLAGS C compiler flags for DBUS, overriding pkg-config 1556 DBUS_LIBS linker flags for DBUS, overriding pkg-config 1557 HAL_STORAGE_CFLAGS 1558 C compiler flags for HAL_STORAGE, overriding pkg-config 1559 HAL_STORAGE_LIBS 1560 linker flags for HAL_STORAGE, overriding pkg-config 1561 1562Use these variables to override the choices made by `configure' or to help 1563it to find libraries and programs with nonstandard names/locations. 1564 1565Report bugs to the package provider. 1566_ACEOF 1567ac_status=$? 1568fi 1569 1570if test "$ac_init_help" = "recursive"; then 1571 # If there are subdirs, report their specific --help. 1572 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1573 test -d "$ac_dir" || 1574 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1575 continue 1576 ac_builddir=. 1577 1578case "$ac_dir" in 1579.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1580*) 1581 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1582 # A ".." for each directory in $ac_dir_suffix. 1583 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1584 case $ac_top_builddir_sub in 1585 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1586 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1587 esac ;; 1588esac 1589ac_abs_top_builddir=$ac_pwd 1590ac_abs_builddir=$ac_pwd$ac_dir_suffix 1591# for backward compatibility: 1592ac_top_builddir=$ac_top_build_prefix 1593 1594case $srcdir in 1595 .) # We are building in place. 1596 ac_srcdir=. 1597 ac_top_srcdir=$ac_top_builddir_sub 1598 ac_abs_top_srcdir=$ac_pwd ;; 1599 [\\/]* | ?:[\\/]* ) # Absolute name. 1600 ac_srcdir=$srcdir$ac_dir_suffix; 1601 ac_top_srcdir=$srcdir 1602 ac_abs_top_srcdir=$srcdir ;; 1603 *) # Relative name. 1604 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1605 ac_top_srcdir=$ac_top_build_prefix$srcdir 1606 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1607esac 1608ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1609 1610 cd "$ac_dir" || { ac_status=$?; continue; } 1611 # Check for guested configure. 1612 if test -f "$ac_srcdir/configure.gnu"; then 1613 echo && 1614 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1615 elif test -f "$ac_srcdir/configure"; then 1616 echo && 1617 $SHELL "$ac_srcdir/configure" --help=recursive 1618 else 1619 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1620 fi || ac_status=$? 1621 cd "$ac_pwd" || { ac_status=$?; break; } 1622 done 1623fi 1624 1625test -n "$ac_init_help" && exit $ac_status 1626if $ac_init_version; then 1627 cat <<\_ACEOF 1628worker configure 4.10.0 1629generated by GNU Autoconf 2.69 1630 1631Copyright (C) 2012 Free Software Foundation, Inc. 1632This configure script is free software; the Free Software Foundation 1633gives unlimited permission to copy, distribute and modify it. 1634_ACEOF 1635 exit 1636fi 1637 1638## ------------------------ ## 1639## Autoconf initialization. ## 1640## ------------------------ ## 1641 1642# ac_fn_c_try_compile LINENO 1643# -------------------------- 1644# Try to compile conftest.$ac_ext, and return whether this succeeded. 1645ac_fn_c_try_compile () 1646{ 1647 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1648 rm -f conftest.$ac_objext 1649 if { { ac_try="$ac_compile" 1650case "(($ac_try" in 1651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1652 *) ac_try_echo=$ac_try;; 1653esac 1654eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1655$as_echo "$ac_try_echo"; } >&5 1656 (eval "$ac_compile") 2>conftest.err 1657 ac_status=$? 1658 if test -s conftest.err; then 1659 grep -v '^ *+' conftest.err >conftest.er1 1660 cat conftest.er1 >&5 1661 mv -f conftest.er1 conftest.err 1662 fi 1663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1664 test $ac_status = 0; } && { 1665 test -z "$ac_c_werror_flag" || 1666 test ! -s conftest.err 1667 } && test -s conftest.$ac_objext; then : 1668 ac_retval=0 1669else 1670 $as_echo "$as_me: failed program was:" >&5 1671sed 's/^/| /' conftest.$ac_ext >&5 1672 1673 ac_retval=1 1674fi 1675 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1676 as_fn_set_status $ac_retval 1677 1678} # ac_fn_c_try_compile 1679 1680# ac_fn_cxx_try_compile LINENO 1681# ---------------------------- 1682# Try to compile conftest.$ac_ext, and return whether this succeeded. 1683ac_fn_cxx_try_compile () 1684{ 1685 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1686 rm -f conftest.$ac_objext 1687 if { { ac_try="$ac_compile" 1688case "(($ac_try" in 1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1690 *) ac_try_echo=$ac_try;; 1691esac 1692eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1693$as_echo "$ac_try_echo"; } >&5 1694 (eval "$ac_compile") 2>conftest.err 1695 ac_status=$? 1696 if test -s conftest.err; then 1697 grep -v '^ *+' conftest.err >conftest.er1 1698 cat conftest.er1 >&5 1699 mv -f conftest.er1 conftest.err 1700 fi 1701 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1702 test $ac_status = 0; } && { 1703 test -z "$ac_cxx_werror_flag" || 1704 test ! -s conftest.err 1705 } && test -s conftest.$ac_objext; then : 1706 ac_retval=0 1707else 1708 $as_echo "$as_me: failed program was:" >&5 1709sed 's/^/| /' conftest.$ac_ext >&5 1710 1711 ac_retval=1 1712fi 1713 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1714 as_fn_set_status $ac_retval 1715 1716} # ac_fn_cxx_try_compile 1717 1718# ac_fn_c_try_link LINENO 1719# ----------------------- 1720# Try to link conftest.$ac_ext, and return whether this succeeded. 1721ac_fn_c_try_link () 1722{ 1723 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1724 rm -f conftest.$ac_objext conftest$ac_exeext 1725 if { { ac_try="$ac_link" 1726case "(($ac_try" in 1727 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1728 *) ac_try_echo=$ac_try;; 1729esac 1730eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1731$as_echo "$ac_try_echo"; } >&5 1732 (eval "$ac_link") 2>conftest.err 1733 ac_status=$? 1734 if test -s conftest.err; then 1735 grep -v '^ *+' conftest.err >conftest.er1 1736 cat conftest.er1 >&5 1737 mv -f conftest.er1 conftest.err 1738 fi 1739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1740 test $ac_status = 0; } && { 1741 test -z "$ac_c_werror_flag" || 1742 test ! -s conftest.err 1743 } && test -s conftest$ac_exeext && { 1744 test "$cross_compiling" = yes || 1745 test -x conftest$ac_exeext 1746 }; then : 1747 ac_retval=0 1748else 1749 $as_echo "$as_me: failed program was:" >&5 1750sed 's/^/| /' conftest.$ac_ext >&5 1751 1752 ac_retval=1 1753fi 1754 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1755 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1756 # interfere with the next link command; also delete a directory that is 1757 # left behind by Apple's compiler. We do this before executing the actions. 1758 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1759 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1760 as_fn_set_status $ac_retval 1761 1762} # ac_fn_c_try_link 1763 1764# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1765# ------------------------------------------------------- 1766# Tests whether HEADER exists and can be compiled using the include files in 1767# INCLUDES, setting the cache variable VAR accordingly. 1768ac_fn_c_check_header_compile () 1769{ 1770 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1772$as_echo_n "checking for $2... " >&6; } 1773if eval \${$3+:} false; then : 1774 $as_echo_n "(cached) " >&6 1775else 1776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1777/* end confdefs.h. */ 1778$4 1779#include <$2> 1780_ACEOF 1781if ac_fn_c_try_compile "$LINENO"; then : 1782 eval "$3=yes" 1783else 1784 eval "$3=no" 1785fi 1786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1787fi 1788eval ac_res=\$$3 1789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1790$as_echo "$ac_res" >&6; } 1791 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1792 1793} # ac_fn_c_check_header_compile 1794 1795# ac_fn_c_try_cpp LINENO 1796# ---------------------- 1797# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1798ac_fn_c_try_cpp () 1799{ 1800 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1801 if { { ac_try="$ac_cpp conftest.$ac_ext" 1802case "(($ac_try" in 1803 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1804 *) ac_try_echo=$ac_try;; 1805esac 1806eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1807$as_echo "$ac_try_echo"; } >&5 1808 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1809 ac_status=$? 1810 if test -s conftest.err; then 1811 grep -v '^ *+' conftest.err >conftest.er1 1812 cat conftest.er1 >&5 1813 mv -f conftest.er1 conftest.err 1814 fi 1815 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1816 test $ac_status = 0; } > conftest.i && { 1817 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1818 test ! -s conftest.err 1819 }; then : 1820 ac_retval=0 1821else 1822 $as_echo "$as_me: failed program was:" >&5 1823sed 's/^/| /' conftest.$ac_ext >&5 1824 1825 ac_retval=1 1826fi 1827 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1828 as_fn_set_status $ac_retval 1829 1830} # ac_fn_c_try_cpp 1831 1832# ac_fn_c_try_run LINENO 1833# ---------------------- 1834# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1835# that executables *can* be run. 1836ac_fn_c_try_run () 1837{ 1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1839 if { { ac_try="$ac_link" 1840case "(($ac_try" in 1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1842 *) ac_try_echo=$ac_try;; 1843esac 1844eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1845$as_echo "$ac_try_echo"; } >&5 1846 (eval "$ac_link") 2>&5 1847 ac_status=$? 1848 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1849 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1850 { { case "(($ac_try" in 1851 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1852 *) ac_try_echo=$ac_try;; 1853esac 1854eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1855$as_echo "$ac_try_echo"; } >&5 1856 (eval "$ac_try") 2>&5 1857 ac_status=$? 1858 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1859 test $ac_status = 0; }; }; then : 1860 ac_retval=0 1861else 1862 $as_echo "$as_me: program exited with status $ac_status" >&5 1863 $as_echo "$as_me: failed program was:" >&5 1864sed 's/^/| /' conftest.$ac_ext >&5 1865 1866 ac_retval=$ac_status 1867fi 1868 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 as_fn_set_status $ac_retval 1871 1872} # ac_fn_c_try_run 1873 1874# ac_fn_c_check_func LINENO FUNC VAR 1875# ---------------------------------- 1876# Tests whether FUNC exists, setting the cache variable VAR accordingly 1877ac_fn_c_check_func () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1881$as_echo_n "checking for $2... " >&6; } 1882if eval \${$3+:} false; then : 1883 $as_echo_n "(cached) " >&6 1884else 1885 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1886/* end confdefs.h. */ 1887/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1888 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1889#define $2 innocuous_$2 1890 1891/* System header to define __stub macros and hopefully few prototypes, 1892 which can conflict with char $2 (); below. 1893 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1894 <limits.h> exists even on freestanding compilers. */ 1895 1896#ifdef __STDC__ 1897# include <limits.h> 1898#else 1899# include <assert.h> 1900#endif 1901 1902#undef $2 1903 1904/* Override any GCC internal prototype to avoid an error. 1905 Use char because int might match the return type of a GCC 1906 builtin and then its argument prototype would still apply. */ 1907#ifdef __cplusplus 1908extern "C" 1909#endif 1910char $2 (); 1911/* The GNU C library defines this for functions which it implements 1912 to always fail with ENOSYS. Some functions are actually named 1913 something starting with __ and the normal name is an alias. */ 1914#if defined __stub_$2 || defined __stub___$2 1915choke me 1916#endif 1917 1918int 1919main () 1920{ 1921return $2 (); 1922 ; 1923 return 0; 1924} 1925_ACEOF 1926if ac_fn_c_try_link "$LINENO"; then : 1927 eval "$3=yes" 1928else 1929 eval "$3=no" 1930fi 1931rm -f core conftest.err conftest.$ac_objext \ 1932 conftest$ac_exeext conftest.$ac_ext 1933fi 1934eval ac_res=\$$3 1935 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1936$as_echo "$ac_res" >&6; } 1937 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1938 1939} # ac_fn_c_check_func 1940 1941# ac_fn_cxx_try_cpp LINENO 1942# ------------------------ 1943# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1944ac_fn_cxx_try_cpp () 1945{ 1946 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1947 if { { ac_try="$ac_cpp conftest.$ac_ext" 1948case "(($ac_try" in 1949 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1950 *) ac_try_echo=$ac_try;; 1951esac 1952eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1953$as_echo "$ac_try_echo"; } >&5 1954 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1955 ac_status=$? 1956 if test -s conftest.err; then 1957 grep -v '^ *+' conftest.err >conftest.er1 1958 cat conftest.er1 >&5 1959 mv -f conftest.er1 conftest.err 1960 fi 1961 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1962 test $ac_status = 0; } > conftest.i && { 1963 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1964 test ! -s conftest.err 1965 }; then : 1966 ac_retval=0 1967else 1968 $as_echo "$as_me: failed program was:" >&5 1969sed 's/^/| /' conftest.$ac_ext >&5 1970 1971 ac_retval=1 1972fi 1973 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1974 as_fn_set_status $ac_retval 1975 1976} # ac_fn_cxx_try_cpp 1977 1978# ac_fn_cxx_try_link LINENO 1979# ------------------------- 1980# Try to link conftest.$ac_ext, and return whether this succeeded. 1981ac_fn_cxx_try_link () 1982{ 1983 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1984 rm -f conftest.$ac_objext conftest$ac_exeext 1985 if { { ac_try="$ac_link" 1986case "(($ac_try" in 1987 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1988 *) ac_try_echo=$ac_try;; 1989esac 1990eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1991$as_echo "$ac_try_echo"; } >&5 1992 (eval "$ac_link") 2>conftest.err 1993 ac_status=$? 1994 if test -s conftest.err; then 1995 grep -v '^ *+' conftest.err >conftest.er1 1996 cat conftest.er1 >&5 1997 mv -f conftest.er1 conftest.err 1998 fi 1999 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2000 test $ac_status = 0; } && { 2001 test -z "$ac_cxx_werror_flag" || 2002 test ! -s conftest.err 2003 } && test -s conftest$ac_exeext && { 2004 test "$cross_compiling" = yes || 2005 test -x conftest$ac_exeext 2006 }; then : 2007 ac_retval=0 2008else 2009 $as_echo "$as_me: failed program was:" >&5 2010sed 's/^/| /' conftest.$ac_ext >&5 2011 2012 ac_retval=1 2013fi 2014 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 2015 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 2016 # interfere with the next link command; also delete a directory that is 2017 # left behind by Apple's compiler. We do this before executing the actions. 2018 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2019 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2020 as_fn_set_status $ac_retval 2021 2022} # ac_fn_cxx_try_link 2023 2024# ac_fn_cxx_check_func LINENO FUNC VAR 2025# ------------------------------------ 2026# Tests whether FUNC exists, setting the cache variable VAR accordingly 2027ac_fn_cxx_check_func () 2028{ 2029 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2031$as_echo_n "checking for $2... " >&6; } 2032if eval \${$3+:} false; then : 2033 $as_echo_n "(cached) " >&6 2034else 2035 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2036/* end confdefs.h. */ 2037/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 2038 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 2039#define $2 innocuous_$2 2040 2041/* System header to define __stub macros and hopefully few prototypes, 2042 which can conflict with char $2 (); below. 2043 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 2044 <limits.h> exists even on freestanding compilers. */ 2045 2046#ifdef __STDC__ 2047# include <limits.h> 2048#else 2049# include <assert.h> 2050#endif 2051 2052#undef $2 2053 2054/* Override any GCC internal prototype to avoid an error. 2055 Use char because int might match the return type of a GCC 2056 builtin and then its argument prototype would still apply. */ 2057#ifdef __cplusplus 2058extern "C" 2059#endif 2060char $2 (); 2061/* The GNU C library defines this for functions which it implements 2062 to always fail with ENOSYS. Some functions are actually named 2063 something starting with __ and the normal name is an alias. */ 2064#if defined __stub_$2 || defined __stub___$2 2065choke me 2066#endif 2067 2068int 2069main () 2070{ 2071return $2 (); 2072 ; 2073 return 0; 2074} 2075_ACEOF 2076if ac_fn_cxx_try_link "$LINENO"; then : 2077 eval "$3=yes" 2078else 2079 eval "$3=no" 2080fi 2081rm -f core conftest.err conftest.$ac_objext \ 2082 conftest$ac_exeext conftest.$ac_ext 2083fi 2084eval ac_res=\$$3 2085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2086$as_echo "$ac_res" >&6; } 2087 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2088 2089} # ac_fn_cxx_check_func 2090 2091# ac_fn_cxx_try_run LINENO 2092# ------------------------ 2093# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 2094# that executables *can* be run. 2095ac_fn_cxx_try_run () 2096{ 2097 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2098 if { { ac_try="$ac_link" 2099case "(($ac_try" in 2100 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2101 *) ac_try_echo=$ac_try;; 2102esac 2103eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2104$as_echo "$ac_try_echo"; } >&5 2105 (eval "$ac_link") 2>&5 2106 ac_status=$? 2107 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2108 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 2109 { { case "(($ac_try" in 2110 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2111 *) ac_try_echo=$ac_try;; 2112esac 2113eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2114$as_echo "$ac_try_echo"; } >&5 2115 (eval "$ac_try") 2>&5 2116 ac_status=$? 2117 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2118 test $ac_status = 0; }; }; then : 2119 ac_retval=0 2120else 2121 $as_echo "$as_me: program exited with status $ac_status" >&5 2122 $as_echo "$as_me: failed program was:" >&5 2123sed 's/^/| /' conftest.$ac_ext >&5 2124 2125 ac_retval=$ac_status 2126fi 2127 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 2128 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2129 as_fn_set_status $ac_retval 2130 2131} # ac_fn_cxx_try_run 2132 2133# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES 2134# --------------------------------------------------------- 2135# Tests whether HEADER exists, giving a warning if it cannot be compiled using 2136# the include files in INCLUDES and setting the cache variable VAR 2137# accordingly. 2138ac_fn_cxx_check_header_mongrel () 2139{ 2140 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2141 if eval \${$3+:} false; then : 2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2143$as_echo_n "checking for $2... " >&6; } 2144if eval \${$3+:} false; then : 2145 $as_echo_n "(cached) " >&6 2146fi 2147eval ac_res=\$$3 2148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2149$as_echo "$ac_res" >&6; } 2150else 2151 # Is the header compilable? 2152{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 2153$as_echo_n "checking $2 usability... " >&6; } 2154cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2155/* end confdefs.h. */ 2156$4 2157#include <$2> 2158_ACEOF 2159if ac_fn_cxx_try_compile "$LINENO"; then : 2160 ac_header_compiler=yes 2161else 2162 ac_header_compiler=no 2163fi 2164rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2165{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 2166$as_echo "$ac_header_compiler" >&6; } 2167 2168# Is the header present? 2169{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 2170$as_echo_n "checking $2 presence... " >&6; } 2171cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2172/* end confdefs.h. */ 2173#include <$2> 2174_ACEOF 2175if ac_fn_cxx_try_cpp "$LINENO"; then : 2176 ac_header_preproc=yes 2177else 2178 ac_header_preproc=no 2179fi 2180rm -f conftest.err conftest.i conftest.$ac_ext 2181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2182$as_echo "$ac_header_preproc" >&6; } 2183 2184# So? What about this header? 2185case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( 2186 yes:no: ) 2187 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2188$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2189 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2190$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2191 ;; 2192 no:yes:* ) 2193 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2194$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2195 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2196$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2197 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2198$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2199 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2200$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2202$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2203 ;; 2204esac 2205 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2206$as_echo_n "checking for $2... " >&6; } 2207if eval \${$3+:} false; then : 2208 $as_echo_n "(cached) " >&6 2209else 2210 eval "$3=\$ac_header_compiler" 2211fi 2212eval ac_res=\$$3 2213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2214$as_echo "$ac_res" >&6; } 2215fi 2216 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2217 2218} # ac_fn_cxx_check_header_mongrel 2219 2220# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES 2221# --------------------------------------------- 2222# Tests whether TYPE exists after having included INCLUDES, setting cache 2223# variable VAR accordingly. 2224ac_fn_cxx_check_type () 2225{ 2226 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2228$as_echo_n "checking for $2... " >&6; } 2229if eval \${$3+:} false; then : 2230 $as_echo_n "(cached) " >&6 2231else 2232 eval "$3=no" 2233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2234/* end confdefs.h. */ 2235$4 2236int 2237main () 2238{ 2239if (sizeof ($2)) 2240 return 0; 2241 ; 2242 return 0; 2243} 2244_ACEOF 2245if ac_fn_cxx_try_compile "$LINENO"; then : 2246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2247/* end confdefs.h. */ 2248$4 2249int 2250main () 2251{ 2252if (sizeof (($2))) 2253 return 0; 2254 ; 2255 return 0; 2256} 2257_ACEOF 2258if ac_fn_cxx_try_compile "$LINENO"; then : 2259 2260else 2261 eval "$3=yes" 2262fi 2263rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2264fi 2265rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2266fi 2267eval ac_res=\$$3 2268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2269$as_echo "$ac_res" >&6; } 2270 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2271 2272} # ac_fn_cxx_check_type 2273 2274# ac_fn_cxx_compute_int LINENO EXPR VAR INCLUDES 2275# ---------------------------------------------- 2276# Tries to find the compile-time value of EXPR in a program that includes 2277# INCLUDES, setting VAR accordingly. Returns whether the value could be 2278# computed 2279ac_fn_cxx_compute_int () 2280{ 2281 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2282 if test "$cross_compiling" = yes; then 2283 # Depending upon the size, compute the lo and hi bounds. 2284cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2285/* end confdefs.h. */ 2286$4 2287int 2288main () 2289{ 2290static int test_array [1 - 2 * !(($2) >= 0)]; 2291test_array [0] = 0; 2292return test_array [0]; 2293 2294 ; 2295 return 0; 2296} 2297_ACEOF 2298if ac_fn_cxx_try_compile "$LINENO"; then : 2299 ac_lo=0 ac_mid=0 2300 while :; do 2301 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2302/* end confdefs.h. */ 2303$4 2304int 2305main () 2306{ 2307static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2308test_array [0] = 0; 2309return test_array [0]; 2310 2311 ; 2312 return 0; 2313} 2314_ACEOF 2315if ac_fn_cxx_try_compile "$LINENO"; then : 2316 ac_hi=$ac_mid; break 2317else 2318 as_fn_arith $ac_mid + 1 && ac_lo=$as_val 2319 if test $ac_lo -le $ac_mid; then 2320 ac_lo= ac_hi= 2321 break 2322 fi 2323 as_fn_arith 2 '*' $ac_mid + 1 && ac_mid=$as_val 2324fi 2325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2326 done 2327else 2328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2329/* end confdefs.h. */ 2330$4 2331int 2332main () 2333{ 2334static int test_array [1 - 2 * !(($2) < 0)]; 2335test_array [0] = 0; 2336return test_array [0]; 2337 2338 ; 2339 return 0; 2340} 2341_ACEOF 2342if ac_fn_cxx_try_compile "$LINENO"; then : 2343 ac_hi=-1 ac_mid=-1 2344 while :; do 2345 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2346/* end confdefs.h. */ 2347$4 2348int 2349main () 2350{ 2351static int test_array [1 - 2 * !(($2) >= $ac_mid)]; 2352test_array [0] = 0; 2353return test_array [0]; 2354 2355 ; 2356 return 0; 2357} 2358_ACEOF 2359if ac_fn_cxx_try_compile "$LINENO"; then : 2360 ac_lo=$ac_mid; break 2361else 2362 as_fn_arith '(' $ac_mid ')' - 1 && ac_hi=$as_val 2363 if test $ac_mid -le $ac_hi; then 2364 ac_lo= ac_hi= 2365 break 2366 fi 2367 as_fn_arith 2 '*' $ac_mid && ac_mid=$as_val 2368fi 2369rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2370 done 2371else 2372 ac_lo= ac_hi= 2373fi 2374rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2375fi 2376rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2377# Binary search between lo and hi bounds. 2378while test "x$ac_lo" != "x$ac_hi"; do 2379 as_fn_arith '(' $ac_hi - $ac_lo ')' / 2 + $ac_lo && ac_mid=$as_val 2380 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2381/* end confdefs.h. */ 2382$4 2383int 2384main () 2385{ 2386static int test_array [1 - 2 * !(($2) <= $ac_mid)]; 2387test_array [0] = 0; 2388return test_array [0]; 2389 2390 ; 2391 return 0; 2392} 2393_ACEOF 2394if ac_fn_cxx_try_compile "$LINENO"; then : 2395 ac_hi=$ac_mid 2396else 2397 as_fn_arith '(' $ac_mid ')' + 1 && ac_lo=$as_val 2398fi 2399rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2400done 2401case $ac_lo in #(( 2402?*) eval "$3=\$ac_lo"; ac_retval=0 ;; 2403'') ac_retval=1 ;; 2404esac 2405 else 2406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2407/* end confdefs.h. */ 2408$4 2409static long int longval () { return $2; } 2410static unsigned long int ulongval () { return $2; } 2411#include <stdio.h> 2412#include <stdlib.h> 2413int 2414main () 2415{ 2416 2417 FILE *f = fopen ("conftest.val", "w"); 2418 if (! f) 2419 return 1; 2420 if (($2) < 0) 2421 { 2422 long int i = longval (); 2423 if (i != ($2)) 2424 return 1; 2425 fprintf (f, "%ld", i); 2426 } 2427 else 2428 { 2429 unsigned long int i = ulongval (); 2430 if (i != ($2)) 2431 return 1; 2432 fprintf (f, "%lu", i); 2433 } 2434 /* Do not output a trailing newline, as this causes \r\n confusion 2435 on some platforms. */ 2436 return ferror (f) || fclose (f) != 0; 2437 2438 ; 2439 return 0; 2440} 2441_ACEOF 2442if ac_fn_cxx_try_run "$LINENO"; then : 2443 echo >>conftest.val; read $3 <conftest.val; ac_retval=0 2444else 2445 ac_retval=1 2446fi 2447rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 2448 conftest.$ac_objext conftest.beam conftest.$ac_ext 2449rm -f conftest.val 2450 2451 fi 2452 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2453 as_fn_set_status $ac_retval 2454 2455} # ac_fn_cxx_compute_int 2456 2457# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES 2458# --------------------------------------------------------- 2459# Tests whether HEADER exists and can be compiled using the include files in 2460# INCLUDES, setting the cache variable VAR accordingly. 2461ac_fn_cxx_check_header_compile () 2462{ 2463 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2465$as_echo_n "checking for $2... " >&6; } 2466if eval \${$3+:} false; then : 2467 $as_echo_n "(cached) " >&6 2468else 2469 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2470/* end confdefs.h. */ 2471$4 2472#include <$2> 2473_ACEOF 2474if ac_fn_cxx_try_compile "$LINENO"; then : 2475 eval "$3=yes" 2476else 2477 eval "$3=no" 2478fi 2479rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2480fi 2481eval ac_res=\$$3 2482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2483$as_echo "$ac_res" >&6; } 2484 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2485 2486} # ac_fn_cxx_check_header_compile 2487 2488# ac_fn_cxx_check_member LINENO AGGR MEMBER VAR INCLUDES 2489# ------------------------------------------------------ 2490# Tries to find if the field MEMBER exists in type AGGR, after including 2491# INCLUDES, setting cache variable VAR accordingly. 2492ac_fn_cxx_check_member () 2493{ 2494 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5 2496$as_echo_n "checking for $2.$3... " >&6; } 2497if eval \${$4+:} false; then : 2498 $as_echo_n "(cached) " >&6 2499else 2500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2501/* end confdefs.h. */ 2502$5 2503int 2504main () 2505{ 2506static $2 ac_aggr; 2507if (ac_aggr.$3) 2508return 0; 2509 ; 2510 return 0; 2511} 2512_ACEOF 2513if ac_fn_cxx_try_compile "$LINENO"; then : 2514 eval "$4=yes" 2515else 2516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2517/* end confdefs.h. */ 2518$5 2519int 2520main () 2521{ 2522static $2 ac_aggr; 2523if (sizeof ac_aggr.$3) 2524return 0; 2525 ; 2526 return 0; 2527} 2528_ACEOF 2529if ac_fn_cxx_try_compile "$LINENO"; then : 2530 eval "$4=yes" 2531else 2532 eval "$4=no" 2533fi 2534rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2535fi 2536rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2537fi 2538eval ac_res=\$$4 2539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2540$as_echo "$ac_res" >&6; } 2541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2542 2543} # ac_fn_cxx_check_member 2544cat >config.log <<_ACEOF 2545This file contains any messages produced by compilers while 2546running configure, to aid debugging if configure makes a mistake. 2547 2548It was created by worker $as_me 4.10.0, which was 2549generated by GNU Autoconf 2.69. Invocation command line was 2550 2551 $ $0 $@ 2552 2553_ACEOF 2554exec 5>>config.log 2555{ 2556cat <<_ASUNAME 2557## --------- ## 2558## Platform. ## 2559## --------- ## 2560 2561hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2562uname -m = `(uname -m) 2>/dev/null || echo unknown` 2563uname -r = `(uname -r) 2>/dev/null || echo unknown` 2564uname -s = `(uname -s) 2>/dev/null || echo unknown` 2565uname -v = `(uname -v) 2>/dev/null || echo unknown` 2566 2567/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2568/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2569 2570/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2571/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2572/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2573/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2574/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2575/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2576/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2577 2578_ASUNAME 2579 2580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2581for as_dir in $PATH 2582do 2583 IFS=$as_save_IFS 2584 test -z "$as_dir" && as_dir=. 2585 $as_echo "PATH: $as_dir" 2586 done 2587IFS=$as_save_IFS 2588 2589} >&5 2590 2591cat >&5 <<_ACEOF 2592 2593 2594## ----------- ## 2595## Core tests. ## 2596## ----------- ## 2597 2598_ACEOF 2599 2600 2601# Keep a trace of the command line. 2602# Strip out --no-create and --no-recursion so they do not pile up. 2603# Strip out --silent because we don't want to record it for future runs. 2604# Also quote any args containing shell meta-characters. 2605# Make two passes to allow for proper duplicate-argument suppression. 2606ac_configure_args= 2607ac_configure_args0= 2608ac_configure_args1= 2609ac_must_keep_next=false 2610for ac_pass in 1 2 2611do 2612 for ac_arg 2613 do 2614 case $ac_arg in 2615 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2616 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2617 | -silent | --silent | --silen | --sile | --sil) 2618 continue ;; 2619 *\'*) 2620 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2621 esac 2622 case $ac_pass in 2623 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2624 2) 2625 as_fn_append ac_configure_args1 " '$ac_arg'" 2626 if test $ac_must_keep_next = true; then 2627 ac_must_keep_next=false # Got value, back to normal. 2628 else 2629 case $ac_arg in 2630 *=* | --config-cache | -C | -disable-* | --disable-* \ 2631 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2632 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2633 | -with-* | --with-* | -without-* | --without-* | --x) 2634 case "$ac_configure_args0 " in 2635 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2636 esac 2637 ;; 2638 -* ) ac_must_keep_next=true ;; 2639 esac 2640 fi 2641 as_fn_append ac_configure_args " '$ac_arg'" 2642 ;; 2643 esac 2644 done 2645done 2646{ ac_configure_args0=; unset ac_configure_args0;} 2647{ ac_configure_args1=; unset ac_configure_args1;} 2648 2649# When interrupted or exit'd, cleanup temporary files, and complete 2650# config.log. We remove comments because anyway the quotes in there 2651# would cause problems or look ugly. 2652# WARNING: Use '\'' to represent an apostrophe within the trap. 2653# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2654trap 'exit_status=$? 2655 # Save into config.log some information that might help in debugging. 2656 { 2657 echo 2658 2659 $as_echo "## ---------------- ## 2660## Cache variables. ## 2661## ---------------- ##" 2662 echo 2663 # The following way of writing the cache mishandles newlines in values, 2664( 2665 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2666 eval ac_val=\$$ac_var 2667 case $ac_val in #( 2668 *${as_nl}*) 2669 case $ac_var in #( 2670 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2671$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2672 esac 2673 case $ac_var in #( 2674 _ | IFS | as_nl) ;; #( 2675 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2676 *) { eval $ac_var=; unset $ac_var;} ;; 2677 esac ;; 2678 esac 2679 done 2680 (set) 2>&1 | 2681 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2682 *${as_nl}ac_space=\ *) 2683 sed -n \ 2684 "s/'\''/'\''\\\\'\'''\''/g; 2685 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2686 ;; #( 2687 *) 2688 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2689 ;; 2690 esac | 2691 sort 2692) 2693 echo 2694 2695 $as_echo "## ----------------- ## 2696## Output variables. ## 2697## ----------------- ##" 2698 echo 2699 for ac_var in $ac_subst_vars 2700 do 2701 eval ac_val=\$$ac_var 2702 case $ac_val in 2703 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2704 esac 2705 $as_echo "$ac_var='\''$ac_val'\''" 2706 done | sort 2707 echo 2708 2709 if test -n "$ac_subst_files"; then 2710 $as_echo "## ------------------- ## 2711## File substitutions. ## 2712## ------------------- ##" 2713 echo 2714 for ac_var in $ac_subst_files 2715 do 2716 eval ac_val=\$$ac_var 2717 case $ac_val in 2718 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2719 esac 2720 $as_echo "$ac_var='\''$ac_val'\''" 2721 done | sort 2722 echo 2723 fi 2724 2725 if test -s confdefs.h; then 2726 $as_echo "## ----------- ## 2727## confdefs.h. ## 2728## ----------- ##" 2729 echo 2730 cat confdefs.h 2731 echo 2732 fi 2733 test "$ac_signal" != 0 && 2734 $as_echo "$as_me: caught signal $ac_signal" 2735 $as_echo "$as_me: exit $exit_status" 2736 } >&5 2737 rm -f core *.core core.conftest.* && 2738 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2739 exit $exit_status 2740' 0 2741for ac_signal in 1 2 13 15; do 2742 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2743done 2744ac_signal=0 2745 2746# confdefs.h avoids OS command line length limits that DEFS can exceed. 2747rm -f -r conftest* confdefs.h 2748 2749$as_echo "/* confdefs.h */" > confdefs.h 2750 2751# Predefined preprocessor variables. 2752 2753cat >>confdefs.h <<_ACEOF 2754#define PACKAGE_NAME "$PACKAGE_NAME" 2755_ACEOF 2756 2757cat >>confdefs.h <<_ACEOF 2758#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2759_ACEOF 2760 2761cat >>confdefs.h <<_ACEOF 2762#define PACKAGE_VERSION "$PACKAGE_VERSION" 2763_ACEOF 2764 2765cat >>confdefs.h <<_ACEOF 2766#define PACKAGE_STRING "$PACKAGE_STRING" 2767_ACEOF 2768 2769cat >>confdefs.h <<_ACEOF 2770#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2771_ACEOF 2772 2773cat >>confdefs.h <<_ACEOF 2774#define PACKAGE_URL "$PACKAGE_URL" 2775_ACEOF 2776 2777 2778# Let the site file select an alternate cache file if it wants to. 2779# Prefer an explicitly selected file to automatically selected ones. 2780ac_site_file1=NONE 2781ac_site_file2=NONE 2782if test -n "$CONFIG_SITE"; then 2783 # We do not want a PATH search for config.site. 2784 case $CONFIG_SITE in #(( 2785 -*) ac_site_file1=./$CONFIG_SITE;; 2786 */*) ac_site_file1=$CONFIG_SITE;; 2787 *) ac_site_file1=./$CONFIG_SITE;; 2788 esac 2789elif test "x$prefix" != xNONE; then 2790 ac_site_file1=$prefix/share/config.site 2791 ac_site_file2=$prefix/etc/config.site 2792else 2793 ac_site_file1=$ac_default_prefix/share/config.site 2794 ac_site_file2=$ac_default_prefix/etc/config.site 2795fi 2796for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2797do 2798 test "x$ac_site_file" = xNONE && continue 2799 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2800 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2801$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2802 sed 's/^/| /' "$ac_site_file" >&5 2803 . "$ac_site_file" \ 2804 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2805$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2806as_fn_error $? "failed to load site script $ac_site_file 2807See \`config.log' for more details" "$LINENO" 5; } 2808 fi 2809done 2810 2811if test -r "$cache_file"; then 2812 # Some versions of bash will fail to source /dev/null (special files 2813 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2814 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2815 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2816$as_echo "$as_me: loading cache $cache_file" >&6;} 2817 case $cache_file in 2818 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2819 *) . "./$cache_file";; 2820 esac 2821 fi 2822else 2823 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2824$as_echo "$as_me: creating cache $cache_file" >&6;} 2825 >$cache_file 2826fi 2827 2828as_fn_append ac_header_list " sys/param.h" 2829as_fn_append ac_header_list " sys/statvfs.h" 2830# Check that the precious variables saved in the cache have kept the same 2831# value. 2832ac_cache_corrupted=false 2833for ac_var in $ac_precious_vars; do 2834 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2835 eval ac_new_set=\$ac_env_${ac_var}_set 2836 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2837 eval ac_new_val=\$ac_env_${ac_var}_value 2838 case $ac_old_set,$ac_new_set in 2839 set,) 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2841$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2842 ac_cache_corrupted=: ;; 2843 ,set) 2844 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2845$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2846 ac_cache_corrupted=: ;; 2847 ,);; 2848 *) 2849 if test "x$ac_old_val" != "x$ac_new_val"; then 2850 # differences in whitespace do not lead to failure. 2851 ac_old_val_w=`echo x $ac_old_val` 2852 ac_new_val_w=`echo x $ac_new_val` 2853 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2854 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2855$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2856 ac_cache_corrupted=: 2857 else 2858 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2859$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2860 eval $ac_var=\$ac_old_val 2861 fi 2862 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2863$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2864 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2865$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2866 fi;; 2867 esac 2868 # Pass precious variables to config.status. 2869 if test "$ac_new_set" = set; then 2870 case $ac_new_val in 2871 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2872 *) ac_arg=$ac_var=$ac_new_val ;; 2873 esac 2874 case " $ac_configure_args " in 2875 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2876 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2877 esac 2878 fi 2879done 2880if $ac_cache_corrupted; then 2881 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2882$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2883 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2884$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2885 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2886fi 2887## -------------------- ## 2888## Main body of script. ## 2889## -------------------- ## 2890 2891ac_ext=c 2892ac_cpp='$CPP $CPPFLAGS' 2893ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2894ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2895ac_compiler_gnu=$ac_cv_c_compiler_gnu 2896 2897 2898 2899ac_config_headers="$ac_config_headers src/aguix/aguixconfig.h" 2900 2901am__api_version='1.16' 2902 2903ac_aux_dir= 2904for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do 2905 if test -f "$ac_dir/install-sh"; then 2906 ac_aux_dir=$ac_dir 2907 ac_install_sh="$ac_aux_dir/install-sh -c" 2908 break 2909 elif test -f "$ac_dir/install.sh"; then 2910 ac_aux_dir=$ac_dir 2911 ac_install_sh="$ac_aux_dir/install.sh -c" 2912 break 2913 elif test -f "$ac_dir/shtool"; then 2914 ac_aux_dir=$ac_dir 2915 ac_install_sh="$ac_aux_dir/shtool install -c" 2916 break 2917 fi 2918done 2919if test -z "$ac_aux_dir"; then 2920 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 2921fi 2922 2923# These three variables are undocumented and unsupported, 2924# and are intended to be withdrawn in a future Autoconf release. 2925# They can cause serious problems if a builder's source tree is in a directory 2926# whose full name contains unusual characters. 2927ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2928ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2929ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2930 2931 2932# Find a good install program. We prefer a C program (faster), 2933# so one script is as good as another. But avoid the broken or 2934# incompatible versions: 2935# SysV /etc/install, /usr/sbin/install 2936# SunOS /usr/etc/install 2937# IRIX /sbin/install 2938# AIX /bin/install 2939# AmigaOS /C/install, which installs bootblocks on floppy discs 2940# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 2941# AFS /usr/afsws/bin/install, which mishandles nonexistent args 2942# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 2943# OS/2's system install, which has a completely different semantic 2944# ./install, which can be erroneously created by make from ./install.sh. 2945# Reject install programs that cannot install multiple files. 2946{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 2947$as_echo_n "checking for a BSD-compatible install... " >&6; } 2948if test -z "$INSTALL"; then 2949if ${ac_cv_path_install+:} false; then : 2950 $as_echo_n "(cached) " >&6 2951else 2952 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2953for as_dir in $PATH 2954do 2955 IFS=$as_save_IFS 2956 test -z "$as_dir" && as_dir=. 2957 # Account for people who put trailing slashes in PATH elements. 2958case $as_dir/ in #(( 2959 ./ | .// | /[cC]/* | \ 2960 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 2961 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 2962 /usr/ucb/* ) ;; 2963 *) 2964 # OSF1 and SCO ODT 3.0 have their own names for install. 2965 # Don't use installbsd from OSF since it installs stuff as root 2966 # by default. 2967 for ac_prog in ginstall scoinst install; do 2968 for ac_exec_ext in '' $ac_executable_extensions; do 2969 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 2970 if test $ac_prog = install && 2971 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2972 # AIX install. It has an incompatible calling convention. 2973 : 2974 elif test $ac_prog = install && 2975 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 2976 # program-specific install script used by HP pwplus--don't use. 2977 : 2978 else 2979 rm -rf conftest.one conftest.two conftest.dir 2980 echo one > conftest.one 2981 echo two > conftest.two 2982 mkdir conftest.dir 2983 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 2984 test -s conftest.one && test -s conftest.two && 2985 test -s conftest.dir/conftest.one && 2986 test -s conftest.dir/conftest.two 2987 then 2988 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 2989 break 3 2990 fi 2991 fi 2992 fi 2993 done 2994 done 2995 ;; 2996esac 2997 2998 done 2999IFS=$as_save_IFS 3000 3001rm -rf conftest.one conftest.two conftest.dir 3002 3003fi 3004 if test "${ac_cv_path_install+set}" = set; then 3005 INSTALL=$ac_cv_path_install 3006 else 3007 # As a last resort, use the slow shell script. Don't cache a 3008 # value for INSTALL within a source directory, because that will 3009 # break other packages using the cache if that directory is 3010 # removed, or if the value is a relative name. 3011 INSTALL=$ac_install_sh 3012 fi 3013fi 3014{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 3015$as_echo "$INSTALL" >&6; } 3016 3017# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 3018# It thinks the first close brace ends the variable substitution. 3019test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 3020 3021test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 3022 3023test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 3024 3025{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 3026$as_echo_n "checking whether build environment is sane... " >&6; } 3027# Reject unsafe characters in $srcdir or the absolute working directory 3028# name. Accept space and tab only in the latter. 3029am_lf=' 3030' 3031case `pwd` in 3032 *[\\\"\#\$\&\'\`$am_lf]*) 3033 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 3034esac 3035case $srcdir in 3036 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 3037 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 3038esac 3039 3040# Do 'set' in a subshell so we don't clobber the current shell's 3041# arguments. Must try -L first in case configure is actually a 3042# symlink; some systems play weird games with the mod time of symlinks 3043# (eg FreeBSD returns the mod time of the symlink's containing 3044# directory). 3045if ( 3046 am_has_slept=no 3047 for am_try in 1 2; do 3048 echo "timestamp, slept: $am_has_slept" > conftest.file 3049 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 3050 if test "$*" = "X"; then 3051 # -L didn't work. 3052 set X `ls -t "$srcdir/configure" conftest.file` 3053 fi 3054 if test "$*" != "X $srcdir/configure conftest.file" \ 3055 && test "$*" != "X conftest.file $srcdir/configure"; then 3056 3057 # If neither matched, then we have a broken ls. This can happen 3058 # if, for instance, CONFIG_SHELL is bash and it inherits a 3059 # broken ls alias from the environment. This has actually 3060 # happened. Such a system could not be considered "sane". 3061 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 3062 alias in your environment" "$LINENO" 5 3063 fi 3064 if test "$2" = conftest.file || test $am_try -eq 2; then 3065 break 3066 fi 3067 # Just in case. 3068 sleep 1 3069 am_has_slept=yes 3070 done 3071 test "$2" = conftest.file 3072 ) 3073then 3074 # Ok. 3075 : 3076else 3077 as_fn_error $? "newly created file is older than distributed files! 3078Check your system clock" "$LINENO" 5 3079fi 3080{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3081$as_echo "yes" >&6; } 3082# If we didn't sleep, we still need to ensure time stamps of config.status and 3083# generated files are strictly newer. 3084am_sleep_pid= 3085if grep 'slept: no' conftest.file >/dev/null 2>&1; then 3086 ( sleep 1 ) & 3087 am_sleep_pid=$! 3088fi 3089 3090rm -f conftest.file 3091 3092test "$program_prefix" != NONE && 3093 program_transform_name="s&^&$program_prefix&;$program_transform_name" 3094# Use a double $ so make ignores it. 3095test "$program_suffix" != NONE && 3096 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 3097# Double any \ or $. 3098# By default was `s,x,x', remove it if useless. 3099ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 3100program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 3101 3102# Expand $ac_aux_dir to an absolute path. 3103am_aux_dir=`cd "$ac_aux_dir" && pwd` 3104 3105if test x"${MISSING+set}" != xset; then 3106 MISSING="\${SHELL} '$am_aux_dir/missing'" 3107fi 3108# Use eval to expand $SHELL 3109if eval "$MISSING --is-lightweight"; then 3110 am_missing_run="$MISSING " 3111else 3112 am_missing_run= 3113 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 3114$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 3115fi 3116 3117if test x"${install_sh+set}" != xset; then 3118 case $am_aux_dir in 3119 *\ * | *\ *) 3120 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 3121 *) 3122 install_sh="\${SHELL} $am_aux_dir/install-sh" 3123 esac 3124fi 3125 3126# Installed binaries are usually stripped using 'strip' when the user 3127# run "make install-strip". However 'strip' might not be the right 3128# tool to use in cross-compilation environments, therefore Automake 3129# will honor the 'STRIP' environment variable to overrule this program. 3130if test "$cross_compiling" != no; then 3131 if test -n "$ac_tool_prefix"; then 3132 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 3133set dummy ${ac_tool_prefix}strip; ac_word=$2 3134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3135$as_echo_n "checking for $ac_word... " >&6; } 3136if ${ac_cv_prog_STRIP+:} false; then : 3137 $as_echo_n "(cached) " >&6 3138else 3139 if test -n "$STRIP"; then 3140 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 3141else 3142as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3143for as_dir in $PATH 3144do 3145 IFS=$as_save_IFS 3146 test -z "$as_dir" && as_dir=. 3147 for ac_exec_ext in '' $ac_executable_extensions; do 3148 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3149 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 3150 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3151 break 2 3152 fi 3153done 3154 done 3155IFS=$as_save_IFS 3156 3157fi 3158fi 3159STRIP=$ac_cv_prog_STRIP 3160if test -n "$STRIP"; then 3161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 3162$as_echo "$STRIP" >&6; } 3163else 3164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3165$as_echo "no" >&6; } 3166fi 3167 3168 3169fi 3170if test -z "$ac_cv_prog_STRIP"; then 3171 ac_ct_STRIP=$STRIP 3172 # Extract the first word of "strip", so it can be a program name with args. 3173set dummy strip; ac_word=$2 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3175$as_echo_n "checking for $ac_word... " >&6; } 3176if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 3177 $as_echo_n "(cached) " >&6 3178else 3179 if test -n "$ac_ct_STRIP"; then 3180 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 3181else 3182as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3183for as_dir in $PATH 3184do 3185 IFS=$as_save_IFS 3186 test -z "$as_dir" && as_dir=. 3187 for ac_exec_ext in '' $ac_executable_extensions; do 3188 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3189 ac_cv_prog_ac_ct_STRIP="strip" 3190 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3191 break 2 3192 fi 3193done 3194 done 3195IFS=$as_save_IFS 3196 3197fi 3198fi 3199ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 3200if test -n "$ac_ct_STRIP"; then 3201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 3202$as_echo "$ac_ct_STRIP" >&6; } 3203else 3204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3205$as_echo "no" >&6; } 3206fi 3207 3208 if test "x$ac_ct_STRIP" = x; then 3209 STRIP=":" 3210 else 3211 case $cross_compiling:$ac_tool_warned in 3212yes:) 3213{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3214$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3215ac_tool_warned=yes ;; 3216esac 3217 STRIP=$ac_ct_STRIP 3218 fi 3219else 3220 STRIP="$ac_cv_prog_STRIP" 3221fi 3222 3223fi 3224INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 3225 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 3227$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 3228if test -z "$MKDIR_P"; then 3229 if ${ac_cv_path_mkdir+:} false; then : 3230 $as_echo_n "(cached) " >&6 3231else 3232 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3233for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 3234do 3235 IFS=$as_save_IFS 3236 test -z "$as_dir" && as_dir=. 3237 for ac_prog in mkdir gmkdir; do 3238 for ac_exec_ext in '' $ac_executable_extensions; do 3239 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 3240 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 3241 'mkdir (GNU coreutils) '* | \ 3242 'mkdir (coreutils) '* | \ 3243 'mkdir (fileutils) '4.1*) 3244 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 3245 break 3;; 3246 esac 3247 done 3248 done 3249 done 3250IFS=$as_save_IFS 3251 3252fi 3253 3254 test -d ./--version && rmdir ./--version 3255 if test "${ac_cv_path_mkdir+set}" = set; then 3256 MKDIR_P="$ac_cv_path_mkdir -p" 3257 else 3258 # As a last resort, use the slow shell script. Don't cache a 3259 # value for MKDIR_P within a source directory, because that will 3260 # break other packages using the cache if that directory is 3261 # removed, or if the value is a relative name. 3262 MKDIR_P="$ac_install_sh -d" 3263 fi 3264fi 3265{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 3266$as_echo "$MKDIR_P" >&6; } 3267 3268for ac_prog in gawk mawk nawk awk 3269do 3270 # Extract the first word of "$ac_prog", so it can be a program name with args. 3271set dummy $ac_prog; ac_word=$2 3272{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3273$as_echo_n "checking for $ac_word... " >&6; } 3274if ${ac_cv_prog_AWK+:} false; then : 3275 $as_echo_n "(cached) " >&6 3276else 3277 if test -n "$AWK"; then 3278 ac_cv_prog_AWK="$AWK" # Let the user override the test. 3279else 3280as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3281for as_dir in $PATH 3282do 3283 IFS=$as_save_IFS 3284 test -z "$as_dir" && as_dir=. 3285 for ac_exec_ext in '' $ac_executable_extensions; do 3286 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3287 ac_cv_prog_AWK="$ac_prog" 3288 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3289 break 2 3290 fi 3291done 3292 done 3293IFS=$as_save_IFS 3294 3295fi 3296fi 3297AWK=$ac_cv_prog_AWK 3298if test -n "$AWK"; then 3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 3300$as_echo "$AWK" >&6; } 3301else 3302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3303$as_echo "no" >&6; } 3304fi 3305 3306 3307 test -n "$AWK" && break 3308done 3309 3310{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 3311$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 3312set x ${MAKE-make} 3313ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 3314if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 3315 $as_echo_n "(cached) " >&6 3316else 3317 cat >conftest.make <<\_ACEOF 3318SHELL = /bin/sh 3319all: 3320 @echo '@@@%%%=$(MAKE)=@@@%%%' 3321_ACEOF 3322# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 3323case `${MAKE-make} -f conftest.make 2>/dev/null` in 3324 *@@@%%%=?*=@@@%%%*) 3325 eval ac_cv_prog_make_${ac_make}_set=yes;; 3326 *) 3327 eval ac_cv_prog_make_${ac_make}_set=no;; 3328esac 3329rm -f conftest.make 3330fi 3331if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 3332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3333$as_echo "yes" >&6; } 3334 SET_MAKE= 3335else 3336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3337$as_echo "no" >&6; } 3338 SET_MAKE="MAKE=${MAKE-make}" 3339fi 3340 3341rm -rf .tst 2>/dev/null 3342mkdir .tst 2>/dev/null 3343if test -d .tst; then 3344 am__leading_dot=. 3345else 3346 am__leading_dot=_ 3347fi 3348rmdir .tst 2>/dev/null 3349 3350# Check whether --enable-silent-rules was given. 3351if test "${enable_silent_rules+set}" = set; then : 3352 enableval=$enable_silent_rules; 3353fi 3354 3355case $enable_silent_rules in # ((( 3356 yes) AM_DEFAULT_VERBOSITY=0;; 3357 no) AM_DEFAULT_VERBOSITY=1;; 3358 *) AM_DEFAULT_VERBOSITY=1;; 3359esac 3360am_make=${MAKE-make} 3361{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 3362$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 3363if ${am_cv_make_support_nested_variables+:} false; then : 3364 $as_echo_n "(cached) " >&6 3365else 3366 if $as_echo 'TRUE=$(BAR$(V)) 3367BAR0=false 3368BAR1=true 3369V=1 3370am__doit: 3371 @$(TRUE) 3372.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 3373 am_cv_make_support_nested_variables=yes 3374else 3375 am_cv_make_support_nested_variables=no 3376fi 3377fi 3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 3379$as_echo "$am_cv_make_support_nested_variables" >&6; } 3380if test $am_cv_make_support_nested_variables = yes; then 3381 AM_V='$(V)' 3382 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 3383else 3384 AM_V=$AM_DEFAULT_VERBOSITY 3385 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 3386fi 3387AM_BACKSLASH='\' 3388 3389if test "`cd $srcdir && pwd`" != "`pwd`"; then 3390 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 3391 # is not polluted with repeated "-I." 3392 am__isrc=' -I$(srcdir)' 3393 # test to see if srcdir already configured 3394 if test -f $srcdir/config.status; then 3395 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 3396 fi 3397fi 3398 3399# test whether we have cygpath 3400if test -z "$CYGPATH_W"; then 3401 if (cygpath --version) >/dev/null 2>/dev/null; then 3402 CYGPATH_W='cygpath -w' 3403 else 3404 CYGPATH_W=echo 3405 fi 3406fi 3407 3408 3409# Define the identity of the package. 3410 PACKAGE='worker' 3411 VERSION='4.10.0' 3412 3413 3414cat >>confdefs.h <<_ACEOF 3415#define PACKAGE "$PACKAGE" 3416_ACEOF 3417 3418 3419cat >>confdefs.h <<_ACEOF 3420#define VERSION "$VERSION" 3421_ACEOF 3422 3423# Some tools Automake needs. 3424 3425ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 3426 3427 3428AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 3429 3430 3431AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 3432 3433 3434AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 3435 3436 3437MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 3438 3439# For better backward compatibility. To be removed once Automake 1.9.x 3440# dies out for good. For more background, see: 3441# <https://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 3442# <https://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 3443mkdir_p='$(MKDIR_P)' 3444 3445# We need awk for the "check" target (and possibly the TAP driver). The 3446# system "awk" is bad on some platforms. 3447# Always define AMTAR for backward compatibility. Yes, it's still used 3448# in the wild :-( We should find a proper way to deprecate it ... 3449AMTAR='$${TAR-tar}' 3450 3451 3452# We'll loop over all known methods to create a tar archive until one works. 3453_am_tools='gnutar pax cpio none' 3454 3455am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 3456 3457 3458 3459 3460 3461# Variables for tags utilities; see am/tags.am 3462if test -z "$CTAGS"; then 3463 CTAGS=ctags 3464fi 3465 3466if test -z "$ETAGS"; then 3467 ETAGS=etags 3468fi 3469 3470if test -z "$CSCOPE"; then 3471 CSCOPE=cscope 3472fi 3473 3474 3475 3476# POSIX will say in a future version that running "rm -f" with no argument 3477# is OK; and we want to be able to make that assumption in our Makefile 3478# recipes. So use an aggressive probe to check that the usage we want is 3479# actually supported "in the wild" to an acceptable degree. 3480# See automake bug#10828. 3481# To make any issue more visible, cause the running configure to be aborted 3482# by default if the 'rm' program in use doesn't match our expectations; the 3483# user can still override this though. 3484if rm -f && rm -fr && rm -rf; then : OK; else 3485 cat >&2 <<'END' 3486Oops! 3487 3488Your 'rm' program seems unable to run without file operands specified 3489on the command line, even when the '-f' option is present. This is contrary 3490to the behaviour of most rm programs out there, and not conforming with 3491the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 3492 3493Please tell bug-automake@gnu.org about your system, including the value 3494of your $PATH and any error possibly output before this message. This 3495can help us improve future automake versions. 3496 3497END 3498 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 3499 echo 'Configuration will proceed anyway, since you have set the' >&2 3500 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 3501 echo >&2 3502 else 3503 cat >&2 <<'END' 3504Aborting the configuration process, to ensure you take notice of the issue. 3505 3506You can download and install GNU coreutils to get an 'rm' implementation 3507that behaves properly: <https://www.gnu.org/software/coreutils/>. 3508 3509If you want to complete the configuration process using your problematic 3510'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 3511to "yes", and re-run configure. 3512 3513END 3514 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 3515 fi 3516fi 3517 3518 3519 3520ac_ext=c 3521ac_cpp='$CPP $CPPFLAGS' 3522ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3523ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3524ac_compiler_gnu=$ac_cv_c_compiler_gnu 3525if test -n "$ac_tool_prefix"; then 3526 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 3527set dummy ${ac_tool_prefix}gcc; ac_word=$2 3528{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3529$as_echo_n "checking for $ac_word... " >&6; } 3530if ${ac_cv_prog_CC+:} false; then : 3531 $as_echo_n "(cached) " >&6 3532else 3533 if test -n "$CC"; then 3534 ac_cv_prog_CC="$CC" # Let the user override the test. 3535else 3536as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3537for as_dir in $PATH 3538do 3539 IFS=$as_save_IFS 3540 test -z "$as_dir" && as_dir=. 3541 for ac_exec_ext in '' $ac_executable_extensions; do 3542 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3543 ac_cv_prog_CC="${ac_tool_prefix}gcc" 3544 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3545 break 2 3546 fi 3547done 3548 done 3549IFS=$as_save_IFS 3550 3551fi 3552fi 3553CC=$ac_cv_prog_CC 3554if test -n "$CC"; then 3555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3556$as_echo "$CC" >&6; } 3557else 3558 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3559$as_echo "no" >&6; } 3560fi 3561 3562 3563fi 3564if test -z "$ac_cv_prog_CC"; then 3565 ac_ct_CC=$CC 3566 # Extract the first word of "gcc", so it can be a program name with args. 3567set dummy gcc; ac_word=$2 3568{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3569$as_echo_n "checking for $ac_word... " >&6; } 3570if ${ac_cv_prog_ac_ct_CC+:} false; then : 3571 $as_echo_n "(cached) " >&6 3572else 3573 if test -n "$ac_ct_CC"; then 3574 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3575else 3576as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3577for as_dir in $PATH 3578do 3579 IFS=$as_save_IFS 3580 test -z "$as_dir" && as_dir=. 3581 for ac_exec_ext in '' $ac_executable_extensions; do 3582 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3583 ac_cv_prog_ac_ct_CC="gcc" 3584 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3585 break 2 3586 fi 3587done 3588 done 3589IFS=$as_save_IFS 3590 3591fi 3592fi 3593ac_ct_CC=$ac_cv_prog_ac_ct_CC 3594if test -n "$ac_ct_CC"; then 3595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3596$as_echo "$ac_ct_CC" >&6; } 3597else 3598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3599$as_echo "no" >&6; } 3600fi 3601 3602 if test "x$ac_ct_CC" = x; then 3603 CC="" 3604 else 3605 case $cross_compiling:$ac_tool_warned in 3606yes:) 3607{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3608$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3609ac_tool_warned=yes ;; 3610esac 3611 CC=$ac_ct_CC 3612 fi 3613else 3614 CC="$ac_cv_prog_CC" 3615fi 3616 3617if test -z "$CC"; then 3618 if test -n "$ac_tool_prefix"; then 3619 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 3620set dummy ${ac_tool_prefix}cc; ac_word=$2 3621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3622$as_echo_n "checking for $ac_word... " >&6; } 3623if ${ac_cv_prog_CC+:} false; then : 3624 $as_echo_n "(cached) " >&6 3625else 3626 if test -n "$CC"; then 3627 ac_cv_prog_CC="$CC" # Let the user override the test. 3628else 3629as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3630for as_dir in $PATH 3631do 3632 IFS=$as_save_IFS 3633 test -z "$as_dir" && as_dir=. 3634 for ac_exec_ext in '' $ac_executable_extensions; do 3635 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3636 ac_cv_prog_CC="${ac_tool_prefix}cc" 3637 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3638 break 2 3639 fi 3640done 3641 done 3642IFS=$as_save_IFS 3643 3644fi 3645fi 3646CC=$ac_cv_prog_CC 3647if test -n "$CC"; then 3648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3649$as_echo "$CC" >&6; } 3650else 3651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3652$as_echo "no" >&6; } 3653fi 3654 3655 3656 fi 3657fi 3658if test -z "$CC"; then 3659 # Extract the first word of "cc", so it can be a program name with args. 3660set dummy cc; ac_word=$2 3661{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3662$as_echo_n "checking for $ac_word... " >&6; } 3663if ${ac_cv_prog_CC+:} false; then : 3664 $as_echo_n "(cached) " >&6 3665else 3666 if test -n "$CC"; then 3667 ac_cv_prog_CC="$CC" # Let the user override the test. 3668else 3669 ac_prog_rejected=no 3670as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3671for as_dir in $PATH 3672do 3673 IFS=$as_save_IFS 3674 test -z "$as_dir" && as_dir=. 3675 for ac_exec_ext in '' $ac_executable_extensions; do 3676 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3677 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 3678 ac_prog_rejected=yes 3679 continue 3680 fi 3681 ac_cv_prog_CC="cc" 3682 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3683 break 2 3684 fi 3685done 3686 done 3687IFS=$as_save_IFS 3688 3689if test $ac_prog_rejected = yes; then 3690 # We found a bogon in the path, so make sure we never use it. 3691 set dummy $ac_cv_prog_CC 3692 shift 3693 if test $# != 0; then 3694 # We chose a different compiler from the bogus one. 3695 # However, it has the same basename, so the bogon will be chosen 3696 # first if we set CC to just the basename; use the full file name. 3697 shift 3698 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 3699 fi 3700fi 3701fi 3702fi 3703CC=$ac_cv_prog_CC 3704if test -n "$CC"; then 3705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3706$as_echo "$CC" >&6; } 3707else 3708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3709$as_echo "no" >&6; } 3710fi 3711 3712 3713fi 3714if test -z "$CC"; then 3715 if test -n "$ac_tool_prefix"; then 3716 for ac_prog in cl.exe 3717 do 3718 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3719set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3720{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3721$as_echo_n "checking for $ac_word... " >&6; } 3722if ${ac_cv_prog_CC+:} false; then : 3723 $as_echo_n "(cached) " >&6 3724else 3725 if test -n "$CC"; then 3726 ac_cv_prog_CC="$CC" # Let the user override the test. 3727else 3728as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3729for as_dir in $PATH 3730do 3731 IFS=$as_save_IFS 3732 test -z "$as_dir" && as_dir=. 3733 for ac_exec_ext in '' $ac_executable_extensions; do 3734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3735 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3737 break 2 3738 fi 3739done 3740 done 3741IFS=$as_save_IFS 3742 3743fi 3744fi 3745CC=$ac_cv_prog_CC 3746if test -n "$CC"; then 3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 3748$as_echo "$CC" >&6; } 3749else 3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3751$as_echo "no" >&6; } 3752fi 3753 3754 3755 test -n "$CC" && break 3756 done 3757fi 3758if test -z "$CC"; then 3759 ac_ct_CC=$CC 3760 for ac_prog in cl.exe 3761do 3762 # Extract the first word of "$ac_prog", so it can be a program name with args. 3763set dummy $ac_prog; ac_word=$2 3764{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3765$as_echo_n "checking for $ac_word... " >&6; } 3766if ${ac_cv_prog_ac_ct_CC+:} false; then : 3767 $as_echo_n "(cached) " >&6 3768else 3769 if test -n "$ac_ct_CC"; then 3770 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 3771else 3772as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3773for as_dir in $PATH 3774do 3775 IFS=$as_save_IFS 3776 test -z "$as_dir" && as_dir=. 3777 for ac_exec_ext in '' $ac_executable_extensions; do 3778 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3779 ac_cv_prog_ac_ct_CC="$ac_prog" 3780 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3781 break 2 3782 fi 3783done 3784 done 3785IFS=$as_save_IFS 3786 3787fi 3788fi 3789ac_ct_CC=$ac_cv_prog_ac_ct_CC 3790if test -n "$ac_ct_CC"; then 3791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 3792$as_echo "$ac_ct_CC" >&6; } 3793else 3794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3795$as_echo "no" >&6; } 3796fi 3797 3798 3799 test -n "$ac_ct_CC" && break 3800done 3801 3802 if test "x$ac_ct_CC" = x; then 3803 CC="" 3804 else 3805 case $cross_compiling:$ac_tool_warned in 3806yes:) 3807{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 3808$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 3809ac_tool_warned=yes ;; 3810esac 3811 CC=$ac_ct_CC 3812 fi 3813fi 3814 3815fi 3816 3817 3818test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3819$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3820as_fn_error $? "no acceptable C compiler found in \$PATH 3821See \`config.log' for more details" "$LINENO" 5; } 3822 3823# Provide some information about the compiler. 3824$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 3825set X $ac_compile 3826ac_compiler=$2 3827for ac_option in --version -v -V -qversion; do 3828 { { ac_try="$ac_compiler $ac_option >&5" 3829case "(($ac_try" in 3830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3831 *) ac_try_echo=$ac_try;; 3832esac 3833eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3834$as_echo "$ac_try_echo"; } >&5 3835 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 3836 ac_status=$? 3837 if test -s conftest.err; then 3838 sed '10a\ 3839... rest of stderr output deleted ... 3840 10q' conftest.err >conftest.er1 3841 cat conftest.er1 >&5 3842 fi 3843 rm -f conftest.er1 conftest.err 3844 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3845 test $ac_status = 0; } 3846done 3847 3848cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3849/* end confdefs.h. */ 3850 3851int 3852main () 3853{ 3854 3855 ; 3856 return 0; 3857} 3858_ACEOF 3859ac_clean_files_save=$ac_clean_files 3860ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 3861# Try to create an executable without -o first, disregard a.out. 3862# It will help us diagnose broken compilers, and finding out an intuition 3863# of exeext. 3864{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 3865$as_echo_n "checking whether the C compiler works... " >&6; } 3866ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 3867 3868# The possible output files: 3869ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3870 3871ac_rmfiles= 3872for ac_file in $ac_files 3873do 3874 case $ac_file in 3875 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3876 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3877 esac 3878done 3879rm -f $ac_rmfiles 3880 3881if { { ac_try="$ac_link_default" 3882case "(($ac_try" in 3883 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3884 *) ac_try_echo=$ac_try;; 3885esac 3886eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3887$as_echo "$ac_try_echo"; } >&5 3888 (eval "$ac_link_default") 2>&5 3889 ac_status=$? 3890 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3891 test $ac_status = 0; }; then : 3892 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3893# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3894# in a Makefile. We should not override ac_cv_exeext if it was cached, 3895# so that the user can short-circuit this test for compilers unknown to 3896# Autoconf. 3897for ac_file in $ac_files '' 3898do 3899 test -f "$ac_file" || continue 3900 case $ac_file in 3901 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3902 ;; 3903 [ab].out ) 3904 # We found the default executable, but exeext='' is most 3905 # certainly right. 3906 break;; 3907 *.* ) 3908 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3909 then :; else 3910 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3911 fi 3912 # We set ac_cv_exeext here because the later test for it is not 3913 # safe: cross compilers may not add the suffix if given an `-o' 3914 # argument, so we may need to know it at that point already. 3915 # Even if this section looks crufty: it has the advantage of 3916 # actually working. 3917 break;; 3918 * ) 3919 break;; 3920 esac 3921done 3922test "$ac_cv_exeext" = no && ac_cv_exeext= 3923 3924else 3925 ac_file='' 3926fi 3927if test -z "$ac_file"; then : 3928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3929$as_echo "no" >&6; } 3930$as_echo "$as_me: failed program was:" >&5 3931sed 's/^/| /' conftest.$ac_ext >&5 3932 3933{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3934$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3935as_fn_error 77 "C compiler cannot create executables 3936See \`config.log' for more details" "$LINENO" 5; } 3937else 3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3939$as_echo "yes" >&6; } 3940fi 3941{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3942$as_echo_n "checking for C compiler default output file name... " >&6; } 3943{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3944$as_echo "$ac_file" >&6; } 3945ac_exeext=$ac_cv_exeext 3946 3947rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3948ac_clean_files=$ac_clean_files_save 3949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3950$as_echo_n "checking for suffix of executables... " >&6; } 3951if { { ac_try="$ac_link" 3952case "(($ac_try" in 3953 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3954 *) ac_try_echo=$ac_try;; 3955esac 3956eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3957$as_echo "$ac_try_echo"; } >&5 3958 (eval "$ac_link") 2>&5 3959 ac_status=$? 3960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3961 test $ac_status = 0; }; then : 3962 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3963# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3964# work properly (i.e., refer to `conftest.exe'), while it won't with 3965# `rm'. 3966for ac_file in conftest.exe conftest conftest.*; do 3967 test -f "$ac_file" || continue 3968 case $ac_file in 3969 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3970 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3971 break;; 3972 * ) break;; 3973 esac 3974done 3975else 3976 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3977$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3978as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3979See \`config.log' for more details" "$LINENO" 5; } 3980fi 3981rm -f conftest conftest$ac_cv_exeext 3982{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3983$as_echo "$ac_cv_exeext" >&6; } 3984 3985rm -f conftest.$ac_ext 3986EXEEXT=$ac_cv_exeext 3987ac_exeext=$EXEEXT 3988cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3989/* end confdefs.h. */ 3990#include <stdio.h> 3991int 3992main () 3993{ 3994FILE *f = fopen ("conftest.out", "w"); 3995 return ferror (f) || fclose (f) != 0; 3996 3997 ; 3998 return 0; 3999} 4000_ACEOF 4001ac_clean_files="$ac_clean_files conftest.out" 4002# Check that the compiler produces executables we can run. If not, either 4003# the compiler is broken, or we cross compile. 4004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 4005$as_echo_n "checking whether we are cross compiling... " >&6; } 4006if test "$cross_compiling" != yes; then 4007 { { ac_try="$ac_link" 4008case "(($ac_try" in 4009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4010 *) ac_try_echo=$ac_try;; 4011esac 4012eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4013$as_echo "$ac_try_echo"; } >&5 4014 (eval "$ac_link") 2>&5 4015 ac_status=$? 4016 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4017 test $ac_status = 0; } 4018 if { ac_try='./conftest$ac_cv_exeext' 4019 { { case "(($ac_try" in 4020 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4021 *) ac_try_echo=$ac_try;; 4022esac 4023eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4024$as_echo "$ac_try_echo"; } >&5 4025 (eval "$ac_try") 2>&5 4026 ac_status=$? 4027 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4028 test $ac_status = 0; }; }; then 4029 cross_compiling=no 4030 else 4031 if test "$cross_compiling" = maybe; then 4032 cross_compiling=yes 4033 else 4034 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4035$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4036as_fn_error $? "cannot run C compiled programs. 4037If you meant to cross compile, use \`--host'. 4038See \`config.log' for more details" "$LINENO" 5; } 4039 fi 4040 fi 4041fi 4042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 4043$as_echo "$cross_compiling" >&6; } 4044 4045rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 4046ac_clean_files=$ac_clean_files_save 4047{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 4048$as_echo_n "checking for suffix of object files... " >&6; } 4049if ${ac_cv_objext+:} false; then : 4050 $as_echo_n "(cached) " >&6 4051else 4052 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4053/* end confdefs.h. */ 4054 4055int 4056main () 4057{ 4058 4059 ; 4060 return 0; 4061} 4062_ACEOF 4063rm -f conftest.o conftest.obj 4064if { { ac_try="$ac_compile" 4065case "(($ac_try" in 4066 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4067 *) ac_try_echo=$ac_try;; 4068esac 4069eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4070$as_echo "$ac_try_echo"; } >&5 4071 (eval "$ac_compile") 2>&5 4072 ac_status=$? 4073 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4074 test $ac_status = 0; }; then : 4075 for ac_file in conftest.o conftest.obj conftest.*; do 4076 test -f "$ac_file" || continue; 4077 case $ac_file in 4078 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 4079 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 4080 break;; 4081 esac 4082done 4083else 4084 $as_echo "$as_me: failed program was:" >&5 4085sed 's/^/| /' conftest.$ac_ext >&5 4086 4087{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 4088$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 4089as_fn_error $? "cannot compute suffix of object files: cannot compile 4090See \`config.log' for more details" "$LINENO" 5; } 4091fi 4092rm -f conftest.$ac_cv_objext conftest.$ac_ext 4093fi 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 4095$as_echo "$ac_cv_objext" >&6; } 4096OBJEXT=$ac_cv_objext 4097ac_objext=$OBJEXT 4098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 4099$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 4100if ${ac_cv_c_compiler_gnu+:} false; then : 4101 $as_echo_n "(cached) " >&6 4102else 4103 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4104/* end confdefs.h. */ 4105 4106int 4107main () 4108{ 4109#ifndef __GNUC__ 4110 choke me 4111#endif 4112 4113 ; 4114 return 0; 4115} 4116_ACEOF 4117if ac_fn_c_try_compile "$LINENO"; then : 4118 ac_compiler_gnu=yes 4119else 4120 ac_compiler_gnu=no 4121fi 4122rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4123ac_cv_c_compiler_gnu=$ac_compiler_gnu 4124 4125fi 4126{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 4127$as_echo "$ac_cv_c_compiler_gnu" >&6; } 4128if test $ac_compiler_gnu = yes; then 4129 GCC=yes 4130else 4131 GCC= 4132fi 4133ac_test_CFLAGS=${CFLAGS+set} 4134ac_save_CFLAGS=$CFLAGS 4135{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 4136$as_echo_n "checking whether $CC accepts -g... " >&6; } 4137if ${ac_cv_prog_cc_g+:} false; then : 4138 $as_echo_n "(cached) " >&6 4139else 4140 ac_save_c_werror_flag=$ac_c_werror_flag 4141 ac_c_werror_flag=yes 4142 ac_cv_prog_cc_g=no 4143 CFLAGS="-g" 4144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4145/* end confdefs.h. */ 4146 4147int 4148main () 4149{ 4150 4151 ; 4152 return 0; 4153} 4154_ACEOF 4155if ac_fn_c_try_compile "$LINENO"; then : 4156 ac_cv_prog_cc_g=yes 4157else 4158 CFLAGS="" 4159 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4160/* end confdefs.h. */ 4161 4162int 4163main () 4164{ 4165 4166 ; 4167 return 0; 4168} 4169_ACEOF 4170if ac_fn_c_try_compile "$LINENO"; then : 4171 4172else 4173 ac_c_werror_flag=$ac_save_c_werror_flag 4174 CFLAGS="-g" 4175 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4176/* end confdefs.h. */ 4177 4178int 4179main () 4180{ 4181 4182 ; 4183 return 0; 4184} 4185_ACEOF 4186if ac_fn_c_try_compile "$LINENO"; then : 4187 ac_cv_prog_cc_g=yes 4188fi 4189rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4190fi 4191rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4192fi 4193rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4194 ac_c_werror_flag=$ac_save_c_werror_flag 4195fi 4196{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 4197$as_echo "$ac_cv_prog_cc_g" >&6; } 4198if test "$ac_test_CFLAGS" = set; then 4199 CFLAGS=$ac_save_CFLAGS 4200elif test $ac_cv_prog_cc_g = yes; then 4201 if test "$GCC" = yes; then 4202 CFLAGS="-g -O2" 4203 else 4204 CFLAGS="-g" 4205 fi 4206else 4207 if test "$GCC" = yes; then 4208 CFLAGS="-O2" 4209 else 4210 CFLAGS= 4211 fi 4212fi 4213{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 4214$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 4215if ${ac_cv_prog_cc_c89+:} false; then : 4216 $as_echo_n "(cached) " >&6 4217else 4218 ac_cv_prog_cc_c89=no 4219ac_save_CC=$CC 4220cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4221/* end confdefs.h. */ 4222#include <stdarg.h> 4223#include <stdio.h> 4224struct stat; 4225/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 4226struct buf { int x; }; 4227FILE * (*rcsopen) (struct buf *, struct stat *, int); 4228static char *e (p, i) 4229 char **p; 4230 int i; 4231{ 4232 return p[i]; 4233} 4234static char *f (char * (*g) (char **, int), char **p, ...) 4235{ 4236 char *s; 4237 va_list v; 4238 va_start (v,p); 4239 s = g (p, va_arg (v,int)); 4240 va_end (v); 4241 return s; 4242} 4243 4244/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 4245 function prototypes and stuff, but not '\xHH' hex character constants. 4246 These don't provoke an error unfortunately, instead are silently treated 4247 as 'x'. The following induces an error, until -std is added to get 4248 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 4249 array size at least. It's necessary to write '\x00'==0 to get something 4250 that's true only with -std. */ 4251int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 4252 4253/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 4254 inside strings and character constants. */ 4255#define FOO(x) 'x' 4256int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 4257 4258int test (int i, double x); 4259struct s1 {int (*f) (int a);}; 4260struct s2 {int (*f) (double a);}; 4261int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 4262int argc; 4263char **argv; 4264int 4265main () 4266{ 4267return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 4268 ; 4269 return 0; 4270} 4271_ACEOF 4272for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 4273 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 4274do 4275 CC="$ac_save_CC $ac_arg" 4276 if ac_fn_c_try_compile "$LINENO"; then : 4277 ac_cv_prog_cc_c89=$ac_arg 4278fi 4279rm -f core conftest.err conftest.$ac_objext 4280 test "x$ac_cv_prog_cc_c89" != "xno" && break 4281done 4282rm -f conftest.$ac_ext 4283CC=$ac_save_CC 4284 4285fi 4286# AC_CACHE_VAL 4287case "x$ac_cv_prog_cc_c89" in 4288 x) 4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 4290$as_echo "none needed" >&6; } ;; 4291 xno) 4292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 4293$as_echo "unsupported" >&6; } ;; 4294 *) 4295 CC="$CC $ac_cv_prog_cc_c89" 4296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 4297$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 4298esac 4299if test "x$ac_cv_prog_cc_c89" != xno; then : 4300 4301fi 4302 4303ac_ext=c 4304ac_cpp='$CPP $CPPFLAGS' 4305ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4306ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4307ac_compiler_gnu=$ac_cv_c_compiler_gnu 4308 4309ac_ext=c 4310ac_cpp='$CPP $CPPFLAGS' 4311ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4312ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4313ac_compiler_gnu=$ac_cv_c_compiler_gnu 4314{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 4315$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 4316if ${am_cv_prog_cc_c_o+:} false; then : 4317 $as_echo_n "(cached) " >&6 4318else 4319 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4320/* end confdefs.h. */ 4321 4322int 4323main () 4324{ 4325 4326 ; 4327 return 0; 4328} 4329_ACEOF 4330 # Make sure it works both with $CC and with simple cc. 4331 # Following AC_PROG_CC_C_O, we do the test twice because some 4332 # compilers refuse to overwrite an existing .o file with -o, 4333 # though they will create one. 4334 am_cv_prog_cc_c_o=yes 4335 for am_i in 1 2; do 4336 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 4337 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 4338 ac_status=$? 4339 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4340 (exit $ac_status); } \ 4341 && test -f conftest2.$ac_objext; then 4342 : OK 4343 else 4344 am_cv_prog_cc_c_o=no 4345 break 4346 fi 4347 done 4348 rm -f core conftest* 4349 unset am_i 4350fi 4351{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 4352$as_echo "$am_cv_prog_cc_c_o" >&6; } 4353if test "$am_cv_prog_cc_c_o" != yes; then 4354 # Losing compiler, so override with the script. 4355 # FIXME: It is wrong to rewrite CC. 4356 # But if we don't then we get into trouble of one sort or another. 4357 # A longer-term fix would be to have automake use am__CC in this case, 4358 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 4359 CC="$am_aux_dir/compile $CC" 4360fi 4361ac_ext=c 4362ac_cpp='$CPP $CPPFLAGS' 4363ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4364ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4365ac_compiler_gnu=$ac_cv_c_compiler_gnu 4366 4367DEPDIR="${am__leading_dot}deps" 4368 4369ac_config_commands="$ac_config_commands depfiles" 4370 4371{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} supports the include directive" >&5 4372$as_echo_n "checking whether ${MAKE-make} supports the include directive... " >&6; } 4373cat > confinc.mk << 'END' 4374am__doit: 4375 @echo this is the am__doit target >confinc.out 4376.PHONY: am__doit 4377END 4378am__include="#" 4379am__quote= 4380# BSD make does it like this. 4381echo '.include "confinc.mk" # ignored' > confmf.BSD 4382# Other make implementations (GNU, Solaris 10, AIX) do it like this. 4383echo 'include confinc.mk # ignored' > confmf.GNU 4384_am_result=no 4385for s in GNU BSD; do 4386 { echo "$as_me:$LINENO: ${MAKE-make} -f confmf.$s && cat confinc.out" >&5 4387 (${MAKE-make} -f confmf.$s && cat confinc.out) >&5 2>&5 4388 ac_status=$? 4389 echo "$as_me:$LINENO: \$? = $ac_status" >&5 4390 (exit $ac_status); } 4391 case $?:`cat confinc.out 2>/dev/null` in #( 4392 '0:this is the am__doit target') : 4393 case $s in #( 4394 BSD) : 4395 am__include='.include' am__quote='"' ;; #( 4396 *) : 4397 am__include='include' am__quote='' ;; 4398esac ;; #( 4399 *) : 4400 ;; 4401esac 4402 if test "$am__include" != "#"; then 4403 _am_result="yes ($s style)" 4404 break 4405 fi 4406done 4407rm -f confinc.* confmf.* 4408{ $as_echo "$as_me:${as_lineno-$LINENO}: result: ${_am_result}" >&5 4409$as_echo "${_am_result}" >&6; } 4410 4411# Check whether --enable-dependency-tracking was given. 4412if test "${enable_dependency_tracking+set}" = set; then : 4413 enableval=$enable_dependency_tracking; 4414fi 4415 4416if test "x$enable_dependency_tracking" != xno; then 4417 am_depcomp="$ac_aux_dir/depcomp" 4418 AMDEPBACKSLASH='\' 4419 am__nodep='_no' 4420fi 4421 if test "x$enable_dependency_tracking" != xno; then 4422 AMDEP_TRUE= 4423 AMDEP_FALSE='#' 4424else 4425 AMDEP_TRUE='#' 4426 AMDEP_FALSE= 4427fi 4428 4429 4430 4431depcc="$CC" am_compiler_list= 4432 4433{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4434$as_echo_n "checking dependency style of $depcc... " >&6; } 4435if ${am_cv_CC_dependencies_compiler_type+:} false; then : 4436 $as_echo_n "(cached) " >&6 4437else 4438 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4439 # We make a subdir and do the tests there. Otherwise we can end up 4440 # making bogus files that we don't know about and never remove. For 4441 # instance it was reported that on HP-UX the gcc test will end up 4442 # making a dummy file named 'D' -- because '-MD' means "put the output 4443 # in D". 4444 rm -rf conftest.dir 4445 mkdir conftest.dir 4446 # Copy depcomp to subdir because otherwise we won't find it if we're 4447 # using a relative directory. 4448 cp "$am_depcomp" conftest.dir 4449 cd conftest.dir 4450 # We will build objects and dependencies in a subdirectory because 4451 # it helps to detect inapplicable dependency modes. For instance 4452 # both Tru64's cc and ICC support -MD to output dependencies as a 4453 # side effect of compilation, but ICC will put the dependencies in 4454 # the current directory while Tru64 will put them in the object 4455 # directory. 4456 mkdir sub 4457 4458 am_cv_CC_dependencies_compiler_type=none 4459 if test "$am_compiler_list" = ""; then 4460 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4461 fi 4462 am__universal=false 4463 case " $depcc " in #( 4464 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4465 esac 4466 4467 for depmode in $am_compiler_list; do 4468 # Setup a source with many dependencies, because some compilers 4469 # like to wrap large dependency lists on column 80 (with \), and 4470 # we should not choose a depcomp mode which is confused by this. 4471 # 4472 # We need to recreate these files for each test, as the compiler may 4473 # overwrite some of them when testing with obscure command lines. 4474 # This happens at least with the AIX C compiler. 4475 : > sub/conftest.c 4476 for i in 1 2 3 4 5 6; do 4477 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4478 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4479 # Solaris 10 /bin/sh. 4480 echo '/* dummy */' > sub/conftst$i.h 4481 done 4482 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4483 4484 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4485 # mode. It turns out that the SunPro C++ compiler does not properly 4486 # handle '-M -o', and we need to detect this. Also, some Intel 4487 # versions had trouble with output in subdirs. 4488 am__obj=sub/conftest.${OBJEXT-o} 4489 am__minus_obj="-o $am__obj" 4490 case $depmode in 4491 gcc) 4492 # This depmode causes a compiler race in universal mode. 4493 test "$am__universal" = false || continue 4494 ;; 4495 nosideeffect) 4496 # After this tag, mechanisms are not by side-effect, so they'll 4497 # only be used when explicitly requested. 4498 if test "x$enable_dependency_tracking" = xyes; then 4499 continue 4500 else 4501 break 4502 fi 4503 ;; 4504 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4505 # This compiler won't grok '-c -o', but also, the minuso test has 4506 # not run yet. These depmodes are late enough in the game, and 4507 # so weak that their functioning should not be impacted. 4508 am__obj=conftest.${OBJEXT-o} 4509 am__minus_obj= 4510 ;; 4511 none) break ;; 4512 esac 4513 if depmode=$depmode \ 4514 source=sub/conftest.c object=$am__obj \ 4515 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4516 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4517 >/dev/null 2>conftest.err && 4518 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4519 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4520 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4521 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4522 # icc doesn't choke on unknown options, it will just issue warnings 4523 # or remarks (even with -Werror). So we grep stderr for any message 4524 # that says an option was ignored or not supported. 4525 # When given -MP, icc 7.0 and 7.1 complain thusly: 4526 # icc: Command line warning: ignoring option '-M'; no argument required 4527 # The diagnosis changed in icc 8.0: 4528 # icc: Command line remark: option '-MP' not supported 4529 if (grep 'ignoring option' conftest.err || 4530 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4531 am_cv_CC_dependencies_compiler_type=$depmode 4532 break 4533 fi 4534 fi 4535 done 4536 4537 cd .. 4538 rm -rf conftest.dir 4539else 4540 am_cv_CC_dependencies_compiler_type=none 4541fi 4542 4543fi 4544{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 4545$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 4546CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 4547 4548 if 4549 test "x$enable_dependency_tracking" != xno \ 4550 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 4551 am__fastdepCC_TRUE= 4552 am__fastdepCC_FALSE='#' 4553else 4554 am__fastdepCC_TRUE='#' 4555 am__fastdepCC_FALSE= 4556fi 4557 4558 4559ac_ext=cpp 4560ac_cpp='$CXXCPP $CPPFLAGS' 4561ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4562ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4563ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 4564if test -z "$CXX"; then 4565 if test -n "$CCC"; then 4566 CXX=$CCC 4567 else 4568 if test -n "$ac_tool_prefix"; then 4569 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4570 do 4571 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4572set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4573{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4574$as_echo_n "checking for $ac_word... " >&6; } 4575if ${ac_cv_prog_CXX+:} false; then : 4576 $as_echo_n "(cached) " >&6 4577else 4578 if test -n "$CXX"; then 4579 ac_cv_prog_CXX="$CXX" # Let the user override the test. 4580else 4581as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4582for as_dir in $PATH 4583do 4584 IFS=$as_save_IFS 4585 test -z "$as_dir" && as_dir=. 4586 for ac_exec_ext in '' $ac_executable_extensions; do 4587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4588 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 4589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4590 break 2 4591 fi 4592done 4593 done 4594IFS=$as_save_IFS 4595 4596fi 4597fi 4598CXX=$ac_cv_prog_CXX 4599if test -n "$CXX"; then 4600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 4601$as_echo "$CXX" >&6; } 4602else 4603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4604$as_echo "no" >&6; } 4605fi 4606 4607 4608 test -n "$CXX" && break 4609 done 4610fi 4611if test -z "$CXX"; then 4612 ac_ct_CXX=$CXX 4613 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 4614do 4615 # Extract the first word of "$ac_prog", so it can be a program name with args. 4616set dummy $ac_prog; ac_word=$2 4617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4618$as_echo_n "checking for $ac_word... " >&6; } 4619if ${ac_cv_prog_ac_ct_CXX+:} false; then : 4620 $as_echo_n "(cached) " >&6 4621else 4622 if test -n "$ac_ct_CXX"; then 4623 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 4624else 4625as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4626for as_dir in $PATH 4627do 4628 IFS=$as_save_IFS 4629 test -z "$as_dir" && as_dir=. 4630 for ac_exec_ext in '' $ac_executable_extensions; do 4631 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4632 ac_cv_prog_ac_ct_CXX="$ac_prog" 4633 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4634 break 2 4635 fi 4636done 4637 done 4638IFS=$as_save_IFS 4639 4640fi 4641fi 4642ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 4643if test -n "$ac_ct_CXX"; then 4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 4645$as_echo "$ac_ct_CXX" >&6; } 4646else 4647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4648$as_echo "no" >&6; } 4649fi 4650 4651 4652 test -n "$ac_ct_CXX" && break 4653done 4654 4655 if test "x$ac_ct_CXX" = x; then 4656 CXX="g++" 4657 else 4658 case $cross_compiling:$ac_tool_warned in 4659yes:) 4660{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4661$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4662ac_tool_warned=yes ;; 4663esac 4664 CXX=$ac_ct_CXX 4665 fi 4666fi 4667 4668 fi 4669fi 4670# Provide some information about the compiler. 4671$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 4672set X $ac_compile 4673ac_compiler=$2 4674for ac_option in --version -v -V -qversion; do 4675 { { ac_try="$ac_compiler $ac_option >&5" 4676case "(($ac_try" in 4677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 4678 *) ac_try_echo=$ac_try;; 4679esac 4680eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 4681$as_echo "$ac_try_echo"; } >&5 4682 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 4683 ac_status=$? 4684 if test -s conftest.err; then 4685 sed '10a\ 4686... rest of stderr output deleted ... 4687 10q' conftest.err >conftest.er1 4688 cat conftest.er1 >&5 4689 fi 4690 rm -f conftest.er1 conftest.err 4691 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 4692 test $ac_status = 0; } 4693done 4694 4695{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 4696$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 4697if ${ac_cv_cxx_compiler_gnu+:} false; then : 4698 $as_echo_n "(cached) " >&6 4699else 4700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4701/* end confdefs.h. */ 4702 4703int 4704main () 4705{ 4706#ifndef __GNUC__ 4707 choke me 4708#endif 4709 4710 ; 4711 return 0; 4712} 4713_ACEOF 4714if ac_fn_cxx_try_compile "$LINENO"; then : 4715 ac_compiler_gnu=yes 4716else 4717 ac_compiler_gnu=no 4718fi 4719rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4720ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 4721 4722fi 4723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 4724$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 4725if test $ac_compiler_gnu = yes; then 4726 GXX=yes 4727else 4728 GXX= 4729fi 4730ac_test_CXXFLAGS=${CXXFLAGS+set} 4731ac_save_CXXFLAGS=$CXXFLAGS 4732{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 4733$as_echo_n "checking whether $CXX accepts -g... " >&6; } 4734if ${ac_cv_prog_cxx_g+:} false; then : 4735 $as_echo_n "(cached) " >&6 4736else 4737 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 4738 ac_cxx_werror_flag=yes 4739 ac_cv_prog_cxx_g=no 4740 CXXFLAGS="-g" 4741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4742/* end confdefs.h. */ 4743 4744int 4745main () 4746{ 4747 4748 ; 4749 return 0; 4750} 4751_ACEOF 4752if ac_fn_cxx_try_compile "$LINENO"; then : 4753 ac_cv_prog_cxx_g=yes 4754else 4755 CXXFLAGS="" 4756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4757/* end confdefs.h. */ 4758 4759int 4760main () 4761{ 4762 4763 ; 4764 return 0; 4765} 4766_ACEOF 4767if ac_fn_cxx_try_compile "$LINENO"; then : 4768 4769else 4770 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4771 CXXFLAGS="-g" 4772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 4773/* end confdefs.h. */ 4774 4775int 4776main () 4777{ 4778 4779 ; 4780 return 0; 4781} 4782_ACEOF 4783if ac_fn_cxx_try_compile "$LINENO"; then : 4784 ac_cv_prog_cxx_g=yes 4785fi 4786rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4787fi 4788rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4789fi 4790rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 4791 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 4792fi 4793{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 4794$as_echo "$ac_cv_prog_cxx_g" >&6; } 4795if test "$ac_test_CXXFLAGS" = set; then 4796 CXXFLAGS=$ac_save_CXXFLAGS 4797elif test $ac_cv_prog_cxx_g = yes; then 4798 if test "$GXX" = yes; then 4799 CXXFLAGS="-g -O2" 4800 else 4801 CXXFLAGS="-g" 4802 fi 4803else 4804 if test "$GXX" = yes; then 4805 CXXFLAGS="-O2" 4806 else 4807 CXXFLAGS= 4808 fi 4809fi 4810ac_ext=c 4811ac_cpp='$CPP $CPPFLAGS' 4812ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 4813ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 4814ac_compiler_gnu=$ac_cv_c_compiler_gnu 4815 4816depcc="$CXX" am_compiler_list= 4817 4818{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 4819$as_echo_n "checking dependency style of $depcc... " >&6; } 4820if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 4821 $as_echo_n "(cached) " >&6 4822else 4823 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 4824 # We make a subdir and do the tests there. Otherwise we can end up 4825 # making bogus files that we don't know about and never remove. For 4826 # instance it was reported that on HP-UX the gcc test will end up 4827 # making a dummy file named 'D' -- because '-MD' means "put the output 4828 # in D". 4829 rm -rf conftest.dir 4830 mkdir conftest.dir 4831 # Copy depcomp to subdir because otherwise we won't find it if we're 4832 # using a relative directory. 4833 cp "$am_depcomp" conftest.dir 4834 cd conftest.dir 4835 # We will build objects and dependencies in a subdirectory because 4836 # it helps to detect inapplicable dependency modes. For instance 4837 # both Tru64's cc and ICC support -MD to output dependencies as a 4838 # side effect of compilation, but ICC will put the dependencies in 4839 # the current directory while Tru64 will put them in the object 4840 # directory. 4841 mkdir sub 4842 4843 am_cv_CXX_dependencies_compiler_type=none 4844 if test "$am_compiler_list" = ""; then 4845 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 4846 fi 4847 am__universal=false 4848 case " $depcc " in #( 4849 *\ -arch\ *\ -arch\ *) am__universal=true ;; 4850 esac 4851 4852 for depmode in $am_compiler_list; do 4853 # Setup a source with many dependencies, because some compilers 4854 # like to wrap large dependency lists on column 80 (with \), and 4855 # we should not choose a depcomp mode which is confused by this. 4856 # 4857 # We need to recreate these files for each test, as the compiler may 4858 # overwrite some of them when testing with obscure command lines. 4859 # This happens at least with the AIX C compiler. 4860 : > sub/conftest.c 4861 for i in 1 2 3 4 5 6; do 4862 echo '#include "conftst'$i'.h"' >> sub/conftest.c 4863 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 4864 # Solaris 10 /bin/sh. 4865 echo '/* dummy */' > sub/conftst$i.h 4866 done 4867 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 4868 4869 # We check with '-c' and '-o' for the sake of the "dashmstdout" 4870 # mode. It turns out that the SunPro C++ compiler does not properly 4871 # handle '-M -o', and we need to detect this. Also, some Intel 4872 # versions had trouble with output in subdirs. 4873 am__obj=sub/conftest.${OBJEXT-o} 4874 am__minus_obj="-o $am__obj" 4875 case $depmode in 4876 gcc) 4877 # This depmode causes a compiler race in universal mode. 4878 test "$am__universal" = false || continue 4879 ;; 4880 nosideeffect) 4881 # After this tag, mechanisms are not by side-effect, so they'll 4882 # only be used when explicitly requested. 4883 if test "x$enable_dependency_tracking" = xyes; then 4884 continue 4885 else 4886 break 4887 fi 4888 ;; 4889 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 4890 # This compiler won't grok '-c -o', but also, the minuso test has 4891 # not run yet. These depmodes are late enough in the game, and 4892 # so weak that their functioning should not be impacted. 4893 am__obj=conftest.${OBJEXT-o} 4894 am__minus_obj= 4895 ;; 4896 none) break ;; 4897 esac 4898 if depmode=$depmode \ 4899 source=sub/conftest.c object=$am__obj \ 4900 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 4901 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 4902 >/dev/null 2>conftest.err && 4903 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 4904 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 4905 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 4906 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 4907 # icc doesn't choke on unknown options, it will just issue warnings 4908 # or remarks (even with -Werror). So we grep stderr for any message 4909 # that says an option was ignored or not supported. 4910 # When given -MP, icc 7.0 and 7.1 complain thusly: 4911 # icc: Command line warning: ignoring option '-M'; no argument required 4912 # The diagnosis changed in icc 8.0: 4913 # icc: Command line remark: option '-MP' not supported 4914 if (grep 'ignoring option' conftest.err || 4915 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 4916 am_cv_CXX_dependencies_compiler_type=$depmode 4917 break 4918 fi 4919 fi 4920 done 4921 4922 cd .. 4923 rm -rf conftest.dir 4924else 4925 am_cv_CXX_dependencies_compiler_type=none 4926fi 4927 4928fi 4929{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 4930$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 4931CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 4932 4933 if 4934 test "x$enable_dependency_tracking" != xno \ 4935 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 4936 am__fastdepCXX_TRUE= 4937 am__fastdepCXX_FALSE='#' 4938else 4939 am__fastdepCXX_TRUE='#' 4940 am__fastdepCXX_FALSE= 4941fi 4942 4943 4944 4945for ac_prog in flex lex 4946do 4947 # Extract the first word of "$ac_prog", so it can be a program name with args. 4948set dummy $ac_prog; ac_word=$2 4949{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4950$as_echo_n "checking for $ac_word... " >&6; } 4951if ${ac_cv_prog_LEX+:} false; then : 4952 $as_echo_n "(cached) " >&6 4953else 4954 if test -n "$LEX"; then 4955 ac_cv_prog_LEX="$LEX" # Let the user override the test. 4956else 4957as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4958for as_dir in $PATH 4959do 4960 IFS=$as_save_IFS 4961 test -z "$as_dir" && as_dir=. 4962 for ac_exec_ext in '' $ac_executable_extensions; do 4963 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4964 ac_cv_prog_LEX="$ac_prog" 4965 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4966 break 2 4967 fi 4968done 4969 done 4970IFS=$as_save_IFS 4971 4972fi 4973fi 4974LEX=$ac_cv_prog_LEX 4975if test -n "$LEX"; then 4976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 4977$as_echo "$LEX" >&6; } 4978else 4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4980$as_echo "no" >&6; } 4981fi 4982 4983 4984 test -n "$LEX" && break 4985done 4986test -n "$LEX" || LEX=":" 4987 4988if test "x$LEX" != "x:"; then 4989 cat >conftest.l <<_ACEOF 4990%% 4991a { ECHO; } 4992b { REJECT; } 4993c { yymore (); } 4994d { yyless (1); } 4995e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 4996 yyless ((input () != 0)); } 4997f { unput (yytext[0]); } 4998. { BEGIN INITIAL; } 4999%% 5000#ifdef YYTEXT_POINTER 5001extern char *yytext; 5002#endif 5003int 5004main (void) 5005{ 5006 return ! yylex () + ! yywrap (); 5007} 5008_ACEOF 5009{ { ac_try="$LEX conftest.l" 5010case "(($ac_try" in 5011 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 5012 *) ac_try_echo=$ac_try;; 5013esac 5014eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 5015$as_echo "$ac_try_echo"; } >&5 5016 (eval "$LEX conftest.l") 2>&5 5017 ac_status=$? 5018 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5019 test $ac_status = 0; } 5020{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 5021$as_echo_n "checking lex output file root... " >&6; } 5022if ${ac_cv_prog_lex_root+:} false; then : 5023 $as_echo_n "(cached) " >&6 5024else 5025 5026if test -f lex.yy.c; then 5027 ac_cv_prog_lex_root=lex.yy 5028elif test -f lexyy.c; then 5029 ac_cv_prog_lex_root=lexyy 5030else 5031 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 5032fi 5033fi 5034{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 5035$as_echo "$ac_cv_prog_lex_root" >&6; } 5036LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 5037 5038if test -z "${LEXLIB+set}"; then 5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 5040$as_echo_n "checking lex library... " >&6; } 5041if ${ac_cv_lib_lex+:} false; then : 5042 $as_echo_n "(cached) " >&6 5043else 5044 5045 ac_save_LIBS=$LIBS 5046 ac_cv_lib_lex='none needed' 5047 for ac_lib in '' -lfl -ll; do 5048 LIBS="$ac_lib $ac_save_LIBS" 5049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5050/* end confdefs.h. */ 5051`cat $LEX_OUTPUT_ROOT.c` 5052_ACEOF 5053if ac_fn_c_try_link "$LINENO"; then : 5054 ac_cv_lib_lex=$ac_lib 5055fi 5056rm -f core conftest.err conftest.$ac_objext \ 5057 conftest$ac_exeext conftest.$ac_ext 5058 test "$ac_cv_lib_lex" != 'none needed' && break 5059 done 5060 LIBS=$ac_save_LIBS 5061 5062fi 5063{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 5064$as_echo "$ac_cv_lib_lex" >&6; } 5065 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 5066fi 5067 5068 5069{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 5070$as_echo_n "checking whether yytext is a pointer... " >&6; } 5071if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 5072 $as_echo_n "(cached) " >&6 5073else 5074 # POSIX says lex can declare yytext either as a pointer or an array; the 5075# default is implementation-dependent. Figure out which it is, since 5076# not all implementations provide the %pointer and %array declarations. 5077ac_cv_prog_lex_yytext_pointer=no 5078ac_save_LIBS=$LIBS 5079LIBS="$LEXLIB $ac_save_LIBS" 5080cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5081/* end confdefs.h. */ 5082 5083 #define YYTEXT_POINTER 1 5084`cat $LEX_OUTPUT_ROOT.c` 5085_ACEOF 5086if ac_fn_c_try_link "$LINENO"; then : 5087 ac_cv_prog_lex_yytext_pointer=yes 5088fi 5089rm -f core conftest.err conftest.$ac_objext \ 5090 conftest$ac_exeext conftest.$ac_ext 5091LIBS=$ac_save_LIBS 5092 5093fi 5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 5095$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 5096if test $ac_cv_prog_lex_yytext_pointer = yes; then 5097 5098$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 5099 5100fi 5101rm -f conftest.l $LEX_OUTPUT_ROOT.c 5102 5103fi 5104if test "$LEX" = :; then 5105 LEX=${am_missing_run}flex 5106fi 5107for ac_prog in 'bison -y' byacc 5108do 5109 # Extract the first word of "$ac_prog", so it can be a program name with args. 5110set dummy $ac_prog; ac_word=$2 5111{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5112$as_echo_n "checking for $ac_word... " >&6; } 5113if ${ac_cv_prog_YACC+:} false; then : 5114 $as_echo_n "(cached) " >&6 5115else 5116 if test -n "$YACC"; then 5117 ac_cv_prog_YACC="$YACC" # Let the user override the test. 5118else 5119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5120for as_dir in $PATH 5121do 5122 IFS=$as_save_IFS 5123 test -z "$as_dir" && as_dir=. 5124 for ac_exec_ext in '' $ac_executable_extensions; do 5125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5126 ac_cv_prog_YACC="$ac_prog" 5127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5128 break 2 5129 fi 5130done 5131 done 5132IFS=$as_save_IFS 5133 5134fi 5135fi 5136YACC=$ac_cv_prog_YACC 5137if test -n "$YACC"; then 5138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 5139$as_echo "$YACC" >&6; } 5140else 5141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5142$as_echo "no" >&6; } 5143fi 5144 5145 5146 test -n "$YACC" && break 5147done 5148test -n "$YACC" || YACC="yacc" 5149 5150 5151ac_ext=cpp 5152ac_cpp='$CXXCPP $CPPFLAGS' 5153ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 5154ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 5155ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 5156 5157 5158cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5159/* end confdefs.h. */ 5160 5161int 5162main () 5163{ 5164 int test=0; test=5; 5165 ; 5166 return 0; 5167} 5168_ACEOF 5169if ac_fn_cxx_try_compile "$LINENO"; then : 5170 5171else 5172 as_fn_error $? "The C++ compiler doesn't work or doesn't exists at all! 5173********************************************************************* 5174* Check your C++ installation (many distributions have a separate * 5175* package for the C++ compiler). * 5176*********************************************************************" "$LINENO" 5 5177 5178fi 5179rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5180 5181# Check whether --enable-cxx-check was given. 5182if test "${enable_cxx_check+set}" = set; then : 5183 enableval=$enable_cxx_check; cxx_check=$enableval 5184else 5185 cxx_check=yes 5186fi 5187 5188 5189{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler vendor" >&5 5190$as_echo_n "checking for C++ compiler vendor... " >&6; } 5191if ${ax_cv_cxx_compiler_vendor+:} false; then : 5192 $as_echo_n "(cached) " >&6 5193else 5194 # note: don't check for gcc first since some other compilers define __GNUC__ 5195 vendors="intel: __ICC,__ECC,__INTEL_COMPILER 5196 ibm: __xlc__,__xlC__,__IBMC__,__IBMCPP__ 5197 pathscale: __PATHCC__,__PATHSCALE__ 5198 clang: __clang__ 5199 cray: _CRAYC 5200 fujitsu: __FUJITSU 5201 gnu: __GNUC__ 5202 sun: __SUNPRO_C,__SUNPRO_CC 5203 hp: __HP_cc,__HP_aCC 5204 dec: __DECC,__DECCXX,__DECC_VER,__DECCXX_VER 5205 borland: __BORLANDC__,__CODEGEARC__,__TURBOC__ 5206 comeau: __COMO__ 5207 kai: __KCC 5208 lcc: __LCC__ 5209 sgi: __sgi,sgi 5210 microsoft: _MSC_VER 5211 metrowerks: __MWERKS__ 5212 watcom: __WATCOMC__ 5213 portland: __PGI 5214 tcc: __TINYC__ 5215 unknown: UNKNOWN" 5216 for ventest in $vendors; do 5217 case $ventest in 5218 *:) vendor=$ventest; continue ;; 5219 *) vencpp="defined("`echo $ventest | sed 's/,/) || defined(/g'`")" ;; 5220 esac 5221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5222/* end confdefs.h. */ 5223 5224int 5225main () 5226{ 5227 5228 #if !($vencpp) 5229 thisisanerror; 5230 #endif 5231 5232 ; 5233 return 0; 5234} 5235_ACEOF 5236if ac_fn_cxx_try_compile "$LINENO"; then : 5237 break 5238fi 5239rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5240 done 5241 ax_cv_cxx_compiler_vendor=`echo $vendor | cut -d: -f1` 5242 5243fi 5244{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_cxx_compiler_vendor" >&5 5245$as_echo "$ax_cv_cxx_compiler_vendor" >&6; } 5246 5247 5248if test "$cxx_check" = "yes"; then 5249 old_CXXFLAGS="$CXXFLAGS" 5250 cxx14="no" 5251 5252 case "$ax_cv_cxx_compiler_vendor" in 5253 gnu) 5254 5255 GXX_VERSION="" 5256 5257 5258 5259 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if gcc accepts -dumpversion option" >&5 5260$as_echo_n "checking if gcc accepts -dumpversion option... " >&6; } 5261 5262 if test "x$GCC" = "xyes" ; then : 5263 5264 if test -z "" ; then : 5265 5266 ax_gcc_option_test="int main() 5267{ 5268 return 0; 5269}" 5270 5271else 5272 5273 ax_gcc_option_test="" 5274 5275fi 5276 5277 # Dump the test program to file 5278 cat <<EOF > conftest.c 5279$ax_gcc_option_test 5280EOF 5281 5282 # Dump back the file to the log, useful for debugging purposes 5283 { ac_try='cat conftest.c 1>&5' 5284 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5285 (eval $ac_try) 2>&5 5286 ac_status=$? 5287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5288 test $ac_status = 0; }; } 5289 5290 if { ac_try='$CC -dumpversion -c conftest.c 1>&5' 5291 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_try\""; } >&5 5292 (eval $ac_try) 2>&5 5293 ac_status=$? 5294 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5295 test $ac_status = 0; }; } ; then : 5296 5297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5298$as_echo "yes" >&6; } 5299 5300 ax_gcc_version_option=yes 5301 5302 5303else 5304 5305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5306$as_echo "no" >&6; } 5307 5308 ax_gcc_version_option=no 5309 5310 5311fi 5312 5313else 5314 5315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no gcc available" >&5 5316$as_echo "no gcc available" >&6; } 5317 5318fi 5319 5320 if test "x$GXX" = "xyes"; then : 5321 5322 if test "x$ax_gxx_version_option" != "no"; then : 5323 5324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking gxx version" >&5 5325$as_echo_n "checking gxx version... " >&6; } 5326if ${ax_cv_gxx_version+:} false; then : 5327 $as_echo_n "(cached) " >&6 5328else 5329 5330 ax_cv_gxx_version="`$CXX -dumpversion`" 5331 if test "x$ax_cv_gxx_version" = "x"; then : 5332 5333 ax_cv_gxx_version="" 5334 5335fi 5336 5337fi 5338{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_gxx_version" >&5 5339$as_echo "$ax_cv_gxx_version" >&6; } 5340 GXX_VERSION=$ax_cv_gxx_version 5341 5342fi 5343 5344fi 5345 5346 5347 if test -n "$GXX_VERSION"; then 5348 gxx_version_major=$(echo $GXX_VERSION | $AWK -F. '{print int($1)}') 5349 gxx_version_minor=$(echo $GXX_VERSION | $AWK -F. '{print int($2)}') 5350 gxx_version_patch=$(echo $GXX_VERSION | $AWK -F. '{print int($3)}') 5351 if test "$gxx_version_major" -lt "4" -o \( "$gxx_version_major" -eq "4" -a "$gxx_version_minor" -lt "6" \); then 5352 as_fn_error $? " 5353********************************************************************* 5354* GCC versions lower than 4.6.0 are not supported! * 5355*********************************************************************" "$LINENO" 5 5356 fi 5357 5358 5359 if test "$gxx_version_major" -eq "4" -a "$gxx_version_minor" -eq "9" -a "$gxx_version_patch" -lt "2"; then 5360 as_fn_error $? " 5361********************************************************************* 5362* Due to a code optimizer problem, GCC 4.9.0/1 is not supported. * 5363* You may install a different compiler version and rerun this * 5364* script like \"CXX=g++-4.8 ./configure ...\" to use that version. * 5365*********************************************************************" "$LINENO" 5 5366 fi 5367 fi 5368 ;; 5369 clang) 5370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether Clang is new enough" >&5 5371$as_echo_n "checking whether Clang is new enough... " >&6; } 5372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5373/* end confdefs.h. */ 5374 5375 #if __clang_major__ < 3 || (__clang_major__ == 3 && __clang_minor__ < 4) 5376 #error Old clang 5377 #endif 5378 5379_ACEOF 5380if ac_fn_cxx_try_compile "$LINENO"; then : 5381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5382$as_echo "yes" >&6; } 5383else 5384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5385$as_echo "no" >&6; } 5386 as_fn_error $? " 5387********************************************************************* 5388* Compiling Worker has been tested only with Clang 3.4 and 3.5. * 5389* Use either those or later versions. * 5390* You can disable this check with \"--disable-cxx-check\" * 5391********************************************************************* 5392" "$LINENO" 5 5393fi 5394rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5395 ;; 5396 *) 5397 as_fn_error $? "GNU C++ or Clang compiler is required 5398You can disable this check with \"--disable-cxx-check\" if your C++ compiler is able to compile C++14 code. 5399 " "$LINENO" 5 5400 ;; 5401 esac 5402 5403 CXXFLAGS="$CXXFLAGS -std=c++14" 5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ works with \"-std=c++14\"" >&5 5405$as_echo_n "checking whether the C++ works with \"-std=c++14\"... " >&6; } 5406 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5407/* end confdefs.h. */ 5408 5409int 5410main () 5411{ 5412 int test=0; test=5; 5413 ; 5414 return 0; 5415} 5416_ACEOF 5417if ac_fn_cxx_try_compile "$LINENO"; then : 5418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 5419$as_echo "yes" >&6; } 5420 cxx14=yes 5421else 5422 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5423$as_echo "no" >&6; } 5424 CXXFLAGS="$old_CXXFLAGS" 5425 5426fi 5427rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5428 5429 if test "$cxx14" = "no"; then 5430 as_fn_error $? "Your version of the GNU C++ compiler does not seem to be C++14 compatible. 5431You can disable this check with \"--disable-cxx-check\" if your C++ compiler is able to compile C++14 code 5432 " "$LINENO" 5 5433 fi 5434fi 5435 5436 5437for ac_prog in gawk mawk nawk awk 5438do 5439 # Extract the first word of "$ac_prog", so it can be a program name with args. 5440set dummy $ac_prog; ac_word=$2 5441{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5442$as_echo_n "checking for $ac_word... " >&6; } 5443if ${ac_cv_prog_AWK+:} false; then : 5444 $as_echo_n "(cached) " >&6 5445else 5446 if test -n "$AWK"; then 5447 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5448else 5449as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5450for as_dir in $PATH 5451do 5452 IFS=$as_save_IFS 5453 test -z "$as_dir" && as_dir=. 5454 for ac_exec_ext in '' $ac_executable_extensions; do 5455 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5456 ac_cv_prog_AWK="$ac_prog" 5457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5458 break 2 5459 fi 5460done 5461 done 5462IFS=$as_save_IFS 5463 5464fi 5465fi 5466AWK=$ac_cv_prog_AWK 5467if test -n "$AWK"; then 5468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5469$as_echo "$AWK" >&6; } 5470else 5471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5472$as_echo "no" >&6; } 5473fi 5474 5475 5476 test -n "$AWK" && break 5477done 5478 5479case `pwd` in 5480 *\ * | *\ *) 5481 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 5482$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 5483esac 5484 5485 5486 5487macro_version='2.4.6' 5488macro_revision='2.4.6' 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502ltmain=$ac_aux_dir/ltmain.sh 5503 5504# Make sure we can run config.sub. 5505$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 5506 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 5507 5508{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 5509$as_echo_n "checking build system type... " >&6; } 5510if ${ac_cv_build+:} false; then : 5511 $as_echo_n "(cached) " >&6 5512else 5513 ac_build_alias=$build_alias 5514test "x$ac_build_alias" = x && 5515 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 5516test "x$ac_build_alias" = x && 5517 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 5518ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 5519 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 5520 5521fi 5522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 5523$as_echo "$ac_cv_build" >&6; } 5524case $ac_cv_build in 5525*-*-*) ;; 5526*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 5527esac 5528build=$ac_cv_build 5529ac_save_IFS=$IFS; IFS='-' 5530set x $ac_cv_build 5531shift 5532build_cpu=$1 5533build_vendor=$2 5534shift; shift 5535# Remember, the first character of IFS is used to create $*, 5536# except with old shells: 5537build_os=$* 5538IFS=$ac_save_IFS 5539case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 5540 5541 5542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 5543$as_echo_n "checking host system type... " >&6; } 5544if ${ac_cv_host+:} false; then : 5545 $as_echo_n "(cached) " >&6 5546else 5547 if test "x$host_alias" = x; then 5548 ac_cv_host=$ac_cv_build 5549else 5550 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 5551 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 5552fi 5553 5554fi 5555{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 5556$as_echo "$ac_cv_host" >&6; } 5557case $ac_cv_host in 5558*-*-*) ;; 5559*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 5560esac 5561host=$ac_cv_host 5562ac_save_IFS=$IFS; IFS='-' 5563set x $ac_cv_host 5564shift 5565host_cpu=$1 5566host_vendor=$2 5567shift; shift 5568# Remember, the first character of IFS is used to create $*, 5569# except with old shells: 5570host_os=$* 5571IFS=$ac_save_IFS 5572case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 5573 5574 5575# Backslashify metacharacters that are still active within 5576# double-quoted strings. 5577sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 5578 5579# Same as above, but do not quote variable references. 5580double_quote_subst='s/\(["`\\]\)/\\\1/g' 5581 5582# Sed substitution to delay expansion of an escaped shell variable in a 5583# double_quote_subst'ed string. 5584delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 5585 5586# Sed substitution to delay expansion of an escaped single quote. 5587delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 5588 5589# Sed substitution to avoid accidental globbing in evaled expressions 5590no_glob_subst='s/\*/\\\*/g' 5591 5592ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 5593ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 5594ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 5595 5596{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 5597$as_echo_n "checking how to print strings... " >&6; } 5598# Test print first, because it will be a builtin if present. 5599if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 5600 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 5601 ECHO='print -r --' 5602elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 5603 ECHO='printf %s\n' 5604else 5605 # Use this function as a fallback that always works. 5606 func_fallback_echo () 5607 { 5608 eval 'cat <<_LTECHO_EOF 5609$1 5610_LTECHO_EOF' 5611 } 5612 ECHO='func_fallback_echo' 5613fi 5614 5615# func_echo_all arg... 5616# Invoke $ECHO with all args, space-separated. 5617func_echo_all () 5618{ 5619 $ECHO "" 5620} 5621 5622case $ECHO in 5623 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 5624$as_echo "printf" >&6; } ;; 5625 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 5626$as_echo "print -r" >&6; } ;; 5627 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 5628$as_echo "cat" >&6; } ;; 5629esac 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 5645$as_echo_n "checking for a sed that does not truncate output... " >&6; } 5646if ${ac_cv_path_SED+:} false; then : 5647 $as_echo_n "(cached) " >&6 5648else 5649 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 5650 for ac_i in 1 2 3 4 5 6 7; do 5651 ac_script="$ac_script$as_nl$ac_script" 5652 done 5653 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 5654 { ac_script=; unset ac_script;} 5655 if test -z "$SED"; then 5656 ac_path_SED_found=false 5657 # Loop through the user's path and test for each of PROGNAME-LIST 5658 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5659for as_dir in $PATH 5660do 5661 IFS=$as_save_IFS 5662 test -z "$as_dir" && as_dir=. 5663 for ac_prog in sed gsed; do 5664 for ac_exec_ext in '' $ac_executable_extensions; do 5665 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 5666 as_fn_executable_p "$ac_path_SED" || continue 5667# Check for GNU ac_path_SED and select it if it is found. 5668 # Check for GNU $ac_path_SED 5669case `"$ac_path_SED" --version 2>&1` in 5670*GNU*) 5671 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 5672*) 5673 ac_count=0 5674 $as_echo_n 0123456789 >"conftest.in" 5675 while : 5676 do 5677 cat "conftest.in" "conftest.in" >"conftest.tmp" 5678 mv "conftest.tmp" "conftest.in" 5679 cp "conftest.in" "conftest.nl" 5680 $as_echo '' >> "conftest.nl" 5681 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 5682 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5683 as_fn_arith $ac_count + 1 && ac_count=$as_val 5684 if test $ac_count -gt ${ac_path_SED_max-0}; then 5685 # Best one so far, save it but keep looking for a better one 5686 ac_cv_path_SED="$ac_path_SED" 5687 ac_path_SED_max=$ac_count 5688 fi 5689 # 10*(2^10) chars as input seems more than enough 5690 test $ac_count -gt 10 && break 5691 done 5692 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5693esac 5694 5695 $ac_path_SED_found && break 3 5696 done 5697 done 5698 done 5699IFS=$as_save_IFS 5700 if test -z "$ac_cv_path_SED"; then 5701 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 5702 fi 5703else 5704 ac_cv_path_SED=$SED 5705fi 5706 5707fi 5708{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 5709$as_echo "$ac_cv_path_SED" >&6; } 5710 SED="$ac_cv_path_SED" 5711 rm -f conftest.sed 5712 5713test -z "$SED" && SED=sed 5714Xsed="$SED -e 1s/^X//" 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 5727$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 5728if ${ac_cv_path_GREP+:} false; then : 5729 $as_echo_n "(cached) " >&6 5730else 5731 if test -z "$GREP"; then 5732 ac_path_GREP_found=false 5733 # Loop through the user's path and test for each of PROGNAME-LIST 5734 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5735for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5736do 5737 IFS=$as_save_IFS 5738 test -z "$as_dir" && as_dir=. 5739 for ac_prog in grep ggrep; do 5740 for ac_exec_ext in '' $ac_executable_extensions; do 5741 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 5742 as_fn_executable_p "$ac_path_GREP" || continue 5743# Check for GNU ac_path_GREP and select it if it is found. 5744 # Check for GNU $ac_path_GREP 5745case `"$ac_path_GREP" --version 2>&1` in 5746*GNU*) 5747 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 5748*) 5749 ac_count=0 5750 $as_echo_n 0123456789 >"conftest.in" 5751 while : 5752 do 5753 cat "conftest.in" "conftest.in" >"conftest.tmp" 5754 mv "conftest.tmp" "conftest.in" 5755 cp "conftest.in" "conftest.nl" 5756 $as_echo 'GREP' >> "conftest.nl" 5757 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5758 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5759 as_fn_arith $ac_count + 1 && ac_count=$as_val 5760 if test $ac_count -gt ${ac_path_GREP_max-0}; then 5761 # Best one so far, save it but keep looking for a better one 5762 ac_cv_path_GREP="$ac_path_GREP" 5763 ac_path_GREP_max=$ac_count 5764 fi 5765 # 10*(2^10) chars as input seems more than enough 5766 test $ac_count -gt 10 && break 5767 done 5768 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5769esac 5770 5771 $ac_path_GREP_found && break 3 5772 done 5773 done 5774 done 5775IFS=$as_save_IFS 5776 if test -z "$ac_cv_path_GREP"; then 5777 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5778 fi 5779else 5780 ac_cv_path_GREP=$GREP 5781fi 5782 5783fi 5784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 5785$as_echo "$ac_cv_path_GREP" >&6; } 5786 GREP="$ac_cv_path_GREP" 5787 5788 5789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 5790$as_echo_n "checking for egrep... " >&6; } 5791if ${ac_cv_path_EGREP+:} false; then : 5792 $as_echo_n "(cached) " >&6 5793else 5794 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 5795 then ac_cv_path_EGREP="$GREP -E" 5796 else 5797 if test -z "$EGREP"; then 5798 ac_path_EGREP_found=false 5799 # Loop through the user's path and test for each of PROGNAME-LIST 5800 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5801for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5802do 5803 IFS=$as_save_IFS 5804 test -z "$as_dir" && as_dir=. 5805 for ac_prog in egrep; do 5806 for ac_exec_ext in '' $ac_executable_extensions; do 5807 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 5808 as_fn_executable_p "$ac_path_EGREP" || continue 5809# Check for GNU ac_path_EGREP and select it if it is found. 5810 # Check for GNU $ac_path_EGREP 5811case `"$ac_path_EGREP" --version 2>&1` in 5812*GNU*) 5813 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 5814*) 5815 ac_count=0 5816 $as_echo_n 0123456789 >"conftest.in" 5817 while : 5818 do 5819 cat "conftest.in" "conftest.in" >"conftest.tmp" 5820 mv "conftest.tmp" "conftest.in" 5821 cp "conftest.in" "conftest.nl" 5822 $as_echo 'EGREP' >> "conftest.nl" 5823 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 5824 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5825 as_fn_arith $ac_count + 1 && ac_count=$as_val 5826 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 5827 # Best one so far, save it but keep looking for a better one 5828 ac_cv_path_EGREP="$ac_path_EGREP" 5829 ac_path_EGREP_max=$ac_count 5830 fi 5831 # 10*(2^10) chars as input seems more than enough 5832 test $ac_count -gt 10 && break 5833 done 5834 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5835esac 5836 5837 $ac_path_EGREP_found && break 3 5838 done 5839 done 5840 done 5841IFS=$as_save_IFS 5842 if test -z "$ac_cv_path_EGREP"; then 5843 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5844 fi 5845else 5846 ac_cv_path_EGREP=$EGREP 5847fi 5848 5849 fi 5850fi 5851{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 5852$as_echo "$ac_cv_path_EGREP" >&6; } 5853 EGREP="$ac_cv_path_EGREP" 5854 5855 5856{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 5857$as_echo_n "checking for fgrep... " >&6; } 5858if ${ac_cv_path_FGREP+:} false; then : 5859 $as_echo_n "(cached) " >&6 5860else 5861 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 5862 then ac_cv_path_FGREP="$GREP -F" 5863 else 5864 if test -z "$FGREP"; then 5865 ac_path_FGREP_found=false 5866 # Loop through the user's path and test for each of PROGNAME-LIST 5867 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5868for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 5869do 5870 IFS=$as_save_IFS 5871 test -z "$as_dir" && as_dir=. 5872 for ac_prog in fgrep; do 5873 for ac_exec_ext in '' $ac_executable_extensions; do 5874 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 5875 as_fn_executable_p "$ac_path_FGREP" || continue 5876# Check for GNU ac_path_FGREP and select it if it is found. 5877 # Check for GNU $ac_path_FGREP 5878case `"$ac_path_FGREP" --version 2>&1` in 5879*GNU*) 5880 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 5881*) 5882 ac_count=0 5883 $as_echo_n 0123456789 >"conftest.in" 5884 while : 5885 do 5886 cat "conftest.in" "conftest.in" >"conftest.tmp" 5887 mv "conftest.tmp" "conftest.in" 5888 cp "conftest.in" "conftest.nl" 5889 $as_echo 'FGREP' >> "conftest.nl" 5890 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 5891 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 5892 as_fn_arith $ac_count + 1 && ac_count=$as_val 5893 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 5894 # Best one so far, save it but keep looking for a better one 5895 ac_cv_path_FGREP="$ac_path_FGREP" 5896 ac_path_FGREP_max=$ac_count 5897 fi 5898 # 10*(2^10) chars as input seems more than enough 5899 test $ac_count -gt 10 && break 5900 done 5901 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 5902esac 5903 5904 $ac_path_FGREP_found && break 3 5905 done 5906 done 5907 done 5908IFS=$as_save_IFS 5909 if test -z "$ac_cv_path_FGREP"; then 5910 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 5911 fi 5912else 5913 ac_cv_path_FGREP=$FGREP 5914fi 5915 5916 fi 5917fi 5918{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 5919$as_echo "$ac_cv_path_FGREP" >&6; } 5920 FGREP="$ac_cv_path_FGREP" 5921 5922 5923test -z "$GREP" && GREP=grep 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943# Check whether --with-gnu-ld was given. 5944if test "${with_gnu_ld+set}" = set; then : 5945 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 5946else 5947 with_gnu_ld=no 5948fi 5949 5950ac_prog=ld 5951if test yes = "$GCC"; then 5952 # Check if gcc -print-prog-name=ld gives a path. 5953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 5954$as_echo_n "checking for ld used by $CC... " >&6; } 5955 case $host in 5956 *-*-mingw*) 5957 # gcc leaves a trailing carriage return, which upsets mingw 5958 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 5959 *) 5960 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 5961 esac 5962 case $ac_prog in 5963 # Accept absolute paths. 5964 [\\/]* | ?:[\\/]*) 5965 re_direlt='/[^/][^/]*/\.\./' 5966 # Canonicalize the pathname of ld 5967 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 5968 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 5969 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 5970 done 5971 test -z "$LD" && LD=$ac_prog 5972 ;; 5973 "") 5974 # If it fails, then pretend we aren't using GCC. 5975 ac_prog=ld 5976 ;; 5977 *) 5978 # If it is relative, then search for the first ld in PATH. 5979 with_gnu_ld=unknown 5980 ;; 5981 esac 5982elif test yes = "$with_gnu_ld"; then 5983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 5984$as_echo_n "checking for GNU ld... " >&6; } 5985else 5986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 5987$as_echo_n "checking for non-GNU ld... " >&6; } 5988fi 5989if ${lt_cv_path_LD+:} false; then : 5990 $as_echo_n "(cached) " >&6 5991else 5992 if test -z "$LD"; then 5993 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 5994 for ac_dir in $PATH; do 5995 IFS=$lt_save_ifs 5996 test -z "$ac_dir" && ac_dir=. 5997 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 5998 lt_cv_path_LD=$ac_dir/$ac_prog 5999 # Check to see if the program is GNU ld. I'd rather use --version, 6000 # but apparently some variants of GNU ld only accept -v. 6001 # Break only if it was the GNU/non-GNU ld that we prefer. 6002 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 6003 *GNU* | *'with BFD'*) 6004 test no != "$with_gnu_ld" && break 6005 ;; 6006 *) 6007 test yes != "$with_gnu_ld" && break 6008 ;; 6009 esac 6010 fi 6011 done 6012 IFS=$lt_save_ifs 6013else 6014 lt_cv_path_LD=$LD # Let the user override the test with a path. 6015fi 6016fi 6017 6018LD=$lt_cv_path_LD 6019if test -n "$LD"; then 6020 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 6021$as_echo "$LD" >&6; } 6022else 6023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6024$as_echo "no" >&6; } 6025fi 6026test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 6027{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 6028$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 6029if ${lt_cv_prog_gnu_ld+:} false; then : 6030 $as_echo_n "(cached) " >&6 6031else 6032 # I'd rather use --version here, but apparently some GNU lds only accept -v. 6033case `$LD -v 2>&1 </dev/null` in 6034*GNU* | *'with BFD'*) 6035 lt_cv_prog_gnu_ld=yes 6036 ;; 6037*) 6038 lt_cv_prog_gnu_ld=no 6039 ;; 6040esac 6041fi 6042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 6043$as_echo "$lt_cv_prog_gnu_ld" >&6; } 6044with_gnu_ld=$lt_cv_prog_gnu_ld 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 6055$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 6056if ${lt_cv_path_NM+:} false; then : 6057 $as_echo_n "(cached) " >&6 6058else 6059 if test -n "$NM"; then 6060 # Let the user override the test. 6061 lt_cv_path_NM=$NM 6062else 6063 lt_nm_to_check=${ac_tool_prefix}nm 6064 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 6065 lt_nm_to_check="$lt_nm_to_check nm" 6066 fi 6067 for lt_tmp_nm in $lt_nm_to_check; do 6068 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 6069 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 6070 IFS=$lt_save_ifs 6071 test -z "$ac_dir" && ac_dir=. 6072 tmp_nm=$ac_dir/$lt_tmp_nm 6073 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 6074 # Check to see if the nm accepts a BSD-compat flag. 6075 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 6076 # nm: unknown option "B" ignored 6077 # Tru64's nm complains that /dev/null is an invalid object file 6078 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 6079 case $build_os in 6080 mingw*) lt_bad_file=conftest.nm/nofile ;; 6081 *) lt_bad_file=/dev/null ;; 6082 esac 6083 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 6084 *$lt_bad_file* | *'Invalid file or object type'*) 6085 lt_cv_path_NM="$tmp_nm -B" 6086 break 2 6087 ;; 6088 *) 6089 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 6090 */dev/null*) 6091 lt_cv_path_NM="$tmp_nm -p" 6092 break 2 6093 ;; 6094 *) 6095 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 6096 continue # so that we can try to find one that supports BSD flags 6097 ;; 6098 esac 6099 ;; 6100 esac 6101 fi 6102 done 6103 IFS=$lt_save_ifs 6104 done 6105 : ${lt_cv_path_NM=no} 6106fi 6107fi 6108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 6109$as_echo "$lt_cv_path_NM" >&6; } 6110if test no != "$lt_cv_path_NM"; then 6111 NM=$lt_cv_path_NM 6112else 6113 # Didn't find any BSD compatible name lister, look for dumpbin. 6114 if test -n "$DUMPBIN"; then : 6115 # Let the user override the test. 6116 else 6117 if test -n "$ac_tool_prefix"; then 6118 for ac_prog in dumpbin "link -dump" 6119 do 6120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 6121set dummy $ac_tool_prefix$ac_prog; ac_word=$2 6122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6123$as_echo_n "checking for $ac_word... " >&6; } 6124if ${ac_cv_prog_DUMPBIN+:} false; then : 6125 $as_echo_n "(cached) " >&6 6126else 6127 if test -n "$DUMPBIN"; then 6128 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 6129else 6130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6131for as_dir in $PATH 6132do 6133 IFS=$as_save_IFS 6134 test -z "$as_dir" && as_dir=. 6135 for ac_exec_ext in '' $ac_executable_extensions; do 6136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6137 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 6138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6139 break 2 6140 fi 6141done 6142 done 6143IFS=$as_save_IFS 6144 6145fi 6146fi 6147DUMPBIN=$ac_cv_prog_DUMPBIN 6148if test -n "$DUMPBIN"; then 6149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 6150$as_echo "$DUMPBIN" >&6; } 6151else 6152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6153$as_echo "no" >&6; } 6154fi 6155 6156 6157 test -n "$DUMPBIN" && break 6158 done 6159fi 6160if test -z "$DUMPBIN"; then 6161 ac_ct_DUMPBIN=$DUMPBIN 6162 for ac_prog in dumpbin "link -dump" 6163do 6164 # Extract the first word of "$ac_prog", so it can be a program name with args. 6165set dummy $ac_prog; ac_word=$2 6166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6167$as_echo_n "checking for $ac_word... " >&6; } 6168if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 6169 $as_echo_n "(cached) " >&6 6170else 6171 if test -n "$ac_ct_DUMPBIN"; then 6172 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 6173else 6174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6175for as_dir in $PATH 6176do 6177 IFS=$as_save_IFS 6178 test -z "$as_dir" && as_dir=. 6179 for ac_exec_ext in '' $ac_executable_extensions; do 6180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6181 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 6182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6183 break 2 6184 fi 6185done 6186 done 6187IFS=$as_save_IFS 6188 6189fi 6190fi 6191ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 6192if test -n "$ac_ct_DUMPBIN"; then 6193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 6194$as_echo "$ac_ct_DUMPBIN" >&6; } 6195else 6196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6197$as_echo "no" >&6; } 6198fi 6199 6200 6201 test -n "$ac_ct_DUMPBIN" && break 6202done 6203 6204 if test "x$ac_ct_DUMPBIN" = x; then 6205 DUMPBIN=":" 6206 else 6207 case $cross_compiling:$ac_tool_warned in 6208yes:) 6209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6211ac_tool_warned=yes ;; 6212esac 6213 DUMPBIN=$ac_ct_DUMPBIN 6214 fi 6215fi 6216 6217 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 6218 *COFF*) 6219 DUMPBIN="$DUMPBIN -symbols -headers" 6220 ;; 6221 *) 6222 DUMPBIN=: 6223 ;; 6224 esac 6225 fi 6226 6227 if test : != "$DUMPBIN"; then 6228 NM=$DUMPBIN 6229 fi 6230fi 6231test -z "$NM" && NM=nm 6232 6233 6234 6235 6236 6237 6238{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 6239$as_echo_n "checking the name lister ($NM) interface... " >&6; } 6240if ${lt_cv_nm_interface+:} false; then : 6241 $as_echo_n "(cached) " >&6 6242else 6243 lt_cv_nm_interface="BSD nm" 6244 echo "int some_variable = 0;" > conftest.$ac_ext 6245 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 6246 (eval "$ac_compile" 2>conftest.err) 6247 cat conftest.err >&5 6248 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 6249 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 6250 cat conftest.err >&5 6251 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 6252 cat conftest.out >&5 6253 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 6254 lt_cv_nm_interface="MS dumpbin" 6255 fi 6256 rm -f conftest* 6257fi 6258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 6259$as_echo "$lt_cv_nm_interface" >&6; } 6260 6261{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 6262$as_echo_n "checking whether ln -s works... " >&6; } 6263LN_S=$as_ln_s 6264if test "$LN_S" = "ln -s"; then 6265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 6266$as_echo "yes" >&6; } 6267else 6268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 6269$as_echo "no, using $LN_S" >&6; } 6270fi 6271 6272# find the maximum length of command line arguments 6273{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 6274$as_echo_n "checking the maximum length of command line arguments... " >&6; } 6275if ${lt_cv_sys_max_cmd_len+:} false; then : 6276 $as_echo_n "(cached) " >&6 6277else 6278 i=0 6279 teststring=ABCD 6280 6281 case $build_os in 6282 msdosdjgpp*) 6283 # On DJGPP, this test can blow up pretty badly due to problems in libc 6284 # (any single argument exceeding 2000 bytes causes a buffer overrun 6285 # during glob expansion). Even if it were fixed, the result of this 6286 # check would be larger than it should be. 6287 lt_cv_sys_max_cmd_len=12288; # 12K is about right 6288 ;; 6289 6290 gnu*) 6291 # Under GNU Hurd, this test is not required because there is 6292 # no limit to the length of command line arguments. 6293 # Libtool will interpret -1 as no limit whatsoever 6294 lt_cv_sys_max_cmd_len=-1; 6295 ;; 6296 6297 cygwin* | mingw* | cegcc*) 6298 # On Win9x/ME, this test blows up -- it succeeds, but takes 6299 # about 5 minutes as the teststring grows exponentially. 6300 # Worse, since 9x/ME are not pre-emptively multitasking, 6301 # you end up with a "frozen" computer, even though with patience 6302 # the test eventually succeeds (with a max line length of 256k). 6303 # Instead, let's just punt: use the minimum linelength reported by 6304 # all of the supported platforms: 8192 (on NT/2K/XP). 6305 lt_cv_sys_max_cmd_len=8192; 6306 ;; 6307 6308 mint*) 6309 # On MiNT this can take a long time and run out of memory. 6310 lt_cv_sys_max_cmd_len=8192; 6311 ;; 6312 6313 amigaos*) 6314 # On AmigaOS with pdksh, this test takes hours, literally. 6315 # So we just punt and use a minimum line length of 8192. 6316 lt_cv_sys_max_cmd_len=8192; 6317 ;; 6318 6319 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 6320 # This has been around since 386BSD, at least. Likely further. 6321 if test -x /sbin/sysctl; then 6322 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 6323 elif test -x /usr/sbin/sysctl; then 6324 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 6325 else 6326 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 6327 fi 6328 # And add a safety zone 6329 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6330 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6331 ;; 6332 6333 interix*) 6334 # We know the value 262144 and hardcode it with a safety zone (like BSD) 6335 lt_cv_sys_max_cmd_len=196608 6336 ;; 6337 6338 os2*) 6339 # The test takes a long time on OS/2. 6340 lt_cv_sys_max_cmd_len=8192 6341 ;; 6342 6343 osf*) 6344 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 6345 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 6346 # nice to cause kernel panics so lets avoid the loop below. 6347 # First set a reasonable default. 6348 lt_cv_sys_max_cmd_len=16384 6349 # 6350 if test -x /sbin/sysconfig; then 6351 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 6352 *1*) lt_cv_sys_max_cmd_len=-1 ;; 6353 esac 6354 fi 6355 ;; 6356 sco3.2v5*) 6357 lt_cv_sys_max_cmd_len=102400 6358 ;; 6359 sysv5* | sco5v6* | sysv4.2uw2*) 6360 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 6361 if test -n "$kargmax"; then 6362 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 6363 else 6364 lt_cv_sys_max_cmd_len=32768 6365 fi 6366 ;; 6367 *) 6368 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 6369 if test -n "$lt_cv_sys_max_cmd_len" && \ 6370 test undefined != "$lt_cv_sys_max_cmd_len"; then 6371 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 6372 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 6373 else 6374 # Make teststring a little bigger before we do anything with it. 6375 # a 1K string should be a reasonable start. 6376 for i in 1 2 3 4 5 6 7 8; do 6377 teststring=$teststring$teststring 6378 done 6379 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 6380 # If test is not a shell built-in, we'll probably end up computing a 6381 # maximum length that is only half of the actual maximum length, but 6382 # we can't tell. 6383 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 6384 = "X$teststring$teststring"; } >/dev/null 2>&1 && 6385 test 17 != "$i" # 1/2 MB should be enough 6386 do 6387 i=`expr $i + 1` 6388 teststring=$teststring$teststring 6389 done 6390 # Only check the string length outside the loop. 6391 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 6392 teststring= 6393 # Add a significant safety factor because C++ compilers can tack on 6394 # massive amounts of additional arguments before passing them to the 6395 # linker. It appears as though 1/2 is a usable value. 6396 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 6397 fi 6398 ;; 6399 esac 6400 6401fi 6402 6403if test -n "$lt_cv_sys_max_cmd_len"; then 6404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 6405$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 6406else 6407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 6408$as_echo "none" >&6; } 6409fi 6410max_cmd_len=$lt_cv_sys_max_cmd_len 6411 6412 6413 6414 6415 6416 6417: ${CP="cp -f"} 6418: ${MV="mv -f"} 6419: ${RM="rm -f"} 6420 6421if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 6422 lt_unset=unset 6423else 6424 lt_unset=false 6425fi 6426 6427 6428 6429 6430 6431# test EBCDIC or ASCII 6432case `echo X|tr X '\101'` in 6433 A) # ASCII based system 6434 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 6435 lt_SP2NL='tr \040 \012' 6436 lt_NL2SP='tr \015\012 \040\040' 6437 ;; 6438 *) # EBCDIC based system 6439 lt_SP2NL='tr \100 \n' 6440 lt_NL2SP='tr \r\n \100\100' 6441 ;; 6442esac 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 6453$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 6454if ${lt_cv_to_host_file_cmd+:} false; then : 6455 $as_echo_n "(cached) " >&6 6456else 6457 case $host in 6458 *-*-mingw* ) 6459 case $build in 6460 *-*-mingw* ) # actually msys 6461 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 6462 ;; 6463 *-*-cygwin* ) 6464 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 6465 ;; 6466 * ) # otherwise, assume *nix 6467 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 6468 ;; 6469 esac 6470 ;; 6471 *-*-cygwin* ) 6472 case $build in 6473 *-*-mingw* ) # actually msys 6474 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 6475 ;; 6476 *-*-cygwin* ) 6477 lt_cv_to_host_file_cmd=func_convert_file_noop 6478 ;; 6479 * ) # otherwise, assume *nix 6480 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 6481 ;; 6482 esac 6483 ;; 6484 * ) # unhandled hosts (and "normal" native builds) 6485 lt_cv_to_host_file_cmd=func_convert_file_noop 6486 ;; 6487esac 6488 6489fi 6490 6491to_host_file_cmd=$lt_cv_to_host_file_cmd 6492{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 6493$as_echo "$lt_cv_to_host_file_cmd" >&6; } 6494 6495 6496 6497 6498 6499{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 6500$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 6501if ${lt_cv_to_tool_file_cmd+:} false; then : 6502 $as_echo_n "(cached) " >&6 6503else 6504 #assume ordinary cross tools, or native build. 6505lt_cv_to_tool_file_cmd=func_convert_file_noop 6506case $host in 6507 *-*-mingw* ) 6508 case $build in 6509 *-*-mingw* ) # actually msys 6510 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 6511 ;; 6512 esac 6513 ;; 6514esac 6515 6516fi 6517 6518to_tool_file_cmd=$lt_cv_to_tool_file_cmd 6519{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 6520$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 6521 6522 6523 6524 6525 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 6527$as_echo_n "checking for $LD option to reload object files... " >&6; } 6528if ${lt_cv_ld_reload_flag+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 lt_cv_ld_reload_flag='-r' 6532fi 6533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 6534$as_echo "$lt_cv_ld_reload_flag" >&6; } 6535reload_flag=$lt_cv_ld_reload_flag 6536case $reload_flag in 6537"" | " "*) ;; 6538*) reload_flag=" $reload_flag" ;; 6539esac 6540reload_cmds='$LD$reload_flag -o $output$reload_objs' 6541case $host_os in 6542 cygwin* | mingw* | pw32* | cegcc*) 6543 if test yes != "$GCC"; then 6544 reload_cmds=false 6545 fi 6546 ;; 6547 darwin*) 6548 if test yes = "$GCC"; then 6549 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 6550 else 6551 reload_cmds='$LD$reload_flag -o $output$reload_objs' 6552 fi 6553 ;; 6554esac 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564if test -n "$ac_tool_prefix"; then 6565 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 6566set dummy ${ac_tool_prefix}objdump; ac_word=$2 6567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6568$as_echo_n "checking for $ac_word... " >&6; } 6569if ${ac_cv_prog_OBJDUMP+:} false; then : 6570 $as_echo_n "(cached) " >&6 6571else 6572 if test -n "$OBJDUMP"; then 6573 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 6574else 6575as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6576for as_dir in $PATH 6577do 6578 IFS=$as_save_IFS 6579 test -z "$as_dir" && as_dir=. 6580 for ac_exec_ext in '' $ac_executable_extensions; do 6581 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6582 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 6583 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6584 break 2 6585 fi 6586done 6587 done 6588IFS=$as_save_IFS 6589 6590fi 6591fi 6592OBJDUMP=$ac_cv_prog_OBJDUMP 6593if test -n "$OBJDUMP"; then 6594 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 6595$as_echo "$OBJDUMP" >&6; } 6596else 6597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6598$as_echo "no" >&6; } 6599fi 6600 6601 6602fi 6603if test -z "$ac_cv_prog_OBJDUMP"; then 6604 ac_ct_OBJDUMP=$OBJDUMP 6605 # Extract the first word of "objdump", so it can be a program name with args. 6606set dummy objdump; ac_word=$2 6607{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6608$as_echo_n "checking for $ac_word... " >&6; } 6609if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 6610 $as_echo_n "(cached) " >&6 6611else 6612 if test -n "$ac_ct_OBJDUMP"; then 6613 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 6614else 6615as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6616for as_dir in $PATH 6617do 6618 IFS=$as_save_IFS 6619 test -z "$as_dir" && as_dir=. 6620 for ac_exec_ext in '' $ac_executable_extensions; do 6621 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6622 ac_cv_prog_ac_ct_OBJDUMP="objdump" 6623 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6624 break 2 6625 fi 6626done 6627 done 6628IFS=$as_save_IFS 6629 6630fi 6631fi 6632ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 6633if test -n "$ac_ct_OBJDUMP"; then 6634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 6635$as_echo "$ac_ct_OBJDUMP" >&6; } 6636else 6637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6638$as_echo "no" >&6; } 6639fi 6640 6641 if test "x$ac_ct_OBJDUMP" = x; then 6642 OBJDUMP="false" 6643 else 6644 case $cross_compiling:$ac_tool_warned in 6645yes:) 6646{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6647$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6648ac_tool_warned=yes ;; 6649esac 6650 OBJDUMP=$ac_ct_OBJDUMP 6651 fi 6652else 6653 OBJDUMP="$ac_cv_prog_OBJDUMP" 6654fi 6655 6656test -z "$OBJDUMP" && OBJDUMP=objdump 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 6667$as_echo_n "checking how to recognize dependent libraries... " >&6; } 6668if ${lt_cv_deplibs_check_method+:} false; then : 6669 $as_echo_n "(cached) " >&6 6670else 6671 lt_cv_file_magic_cmd='$MAGIC_CMD' 6672lt_cv_file_magic_test_file= 6673lt_cv_deplibs_check_method='unknown' 6674# Need to set the preceding variable on all platforms that support 6675# interlibrary dependencies. 6676# 'none' -- dependencies not supported. 6677# 'unknown' -- same as none, but documents that we really don't know. 6678# 'pass_all' -- all dependencies passed with no checks. 6679# 'test_compile' -- check by making test program. 6680# 'file_magic [[regex]]' -- check by looking for files in library path 6681# that responds to the $file_magic_cmd with a given extended regex. 6682# If you have 'file' or equivalent on your system and you're not sure 6683# whether 'pass_all' will *always* work, you probably want this one. 6684 6685case $host_os in 6686aix[4-9]*) 6687 lt_cv_deplibs_check_method=pass_all 6688 ;; 6689 6690beos*) 6691 lt_cv_deplibs_check_method=pass_all 6692 ;; 6693 6694bsdi[45]*) 6695 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 6696 lt_cv_file_magic_cmd='/usr/bin/file -L' 6697 lt_cv_file_magic_test_file=/shlib/libc.so 6698 ;; 6699 6700cygwin*) 6701 # func_win32_libid is a shell function defined in ltmain.sh 6702 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6703 lt_cv_file_magic_cmd='func_win32_libid' 6704 ;; 6705 6706mingw* | pw32*) 6707 # Base MSYS/MinGW do not provide the 'file' command needed by 6708 # func_win32_libid shell function, so use a weaker test based on 'objdump', 6709 # unless we find 'file', for example because we are cross-compiling. 6710 if ( file / ) >/dev/null 2>&1; then 6711 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 6712 lt_cv_file_magic_cmd='func_win32_libid' 6713 else 6714 # Keep this pattern in sync with the one in func_win32_libid. 6715 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 6716 lt_cv_file_magic_cmd='$OBJDUMP -f' 6717 fi 6718 ;; 6719 6720cegcc*) 6721 # use the weaker test based on 'objdump'. See mingw*. 6722 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 6723 lt_cv_file_magic_cmd='$OBJDUMP -f' 6724 ;; 6725 6726darwin* | rhapsody*) 6727 lt_cv_deplibs_check_method=pass_all 6728 ;; 6729 6730freebsd* | dragonfly*) 6731 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6732 case $host_cpu in 6733 i*86 ) 6734 # Not sure whether the presence of OpenBSD here was a mistake. 6735 # Let's accept both of them until this is cleared up. 6736 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 6737 lt_cv_file_magic_cmd=/usr/bin/file 6738 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 6739 ;; 6740 esac 6741 else 6742 lt_cv_deplibs_check_method=pass_all 6743 fi 6744 ;; 6745 6746haiku*) 6747 lt_cv_deplibs_check_method=pass_all 6748 ;; 6749 6750hpux10.20* | hpux11*) 6751 lt_cv_file_magic_cmd=/usr/bin/file 6752 case $host_cpu in 6753 ia64*) 6754 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 6755 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 6756 ;; 6757 hppa*64*) 6758 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]' 6759 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 6760 ;; 6761 *) 6762 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 6763 lt_cv_file_magic_test_file=/usr/lib/libc.sl 6764 ;; 6765 esac 6766 ;; 6767 6768interix[3-9]*) 6769 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 6770 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 6771 ;; 6772 6773irix5* | irix6* | nonstopux*) 6774 case $LD in 6775 *-32|*"-32 ") libmagic=32-bit;; 6776 *-n32|*"-n32 ") libmagic=N32;; 6777 *-64|*"-64 ") libmagic=64-bit;; 6778 *) libmagic=never-match;; 6779 esac 6780 lt_cv_deplibs_check_method=pass_all 6781 ;; 6782 6783# This must be glibc/ELF. 6784linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 6785 lt_cv_deplibs_check_method=pass_all 6786 ;; 6787 6788netbsd*) 6789 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 6790 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6791 else 6792 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 6793 fi 6794 ;; 6795 6796newos6*) 6797 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 6798 lt_cv_file_magic_cmd=/usr/bin/file 6799 lt_cv_file_magic_test_file=/usr/lib/libnls.so 6800 ;; 6801 6802*nto* | *qnx*) 6803 lt_cv_deplibs_check_method=pass_all 6804 ;; 6805 6806openbsd* | bitrig*) 6807 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 6808 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 6809 else 6810 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 6811 fi 6812 ;; 6813 6814osf3* | osf4* | osf5*) 6815 lt_cv_deplibs_check_method=pass_all 6816 ;; 6817 6818rdos*) 6819 lt_cv_deplibs_check_method=pass_all 6820 ;; 6821 6822solaris*) 6823 lt_cv_deplibs_check_method=pass_all 6824 ;; 6825 6826sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 6827 lt_cv_deplibs_check_method=pass_all 6828 ;; 6829 6830sysv4 | sysv4.3*) 6831 case $host_vendor in 6832 motorola) 6833 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]' 6834 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 6835 ;; 6836 ncr) 6837 lt_cv_deplibs_check_method=pass_all 6838 ;; 6839 sequent) 6840 lt_cv_file_magic_cmd='/bin/file' 6841 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 6842 ;; 6843 sni) 6844 lt_cv_file_magic_cmd='/bin/file' 6845 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 6846 lt_cv_file_magic_test_file=/lib/libc.so 6847 ;; 6848 siemens) 6849 lt_cv_deplibs_check_method=pass_all 6850 ;; 6851 pc) 6852 lt_cv_deplibs_check_method=pass_all 6853 ;; 6854 esac 6855 ;; 6856 6857tpf*) 6858 lt_cv_deplibs_check_method=pass_all 6859 ;; 6860os2*) 6861 lt_cv_deplibs_check_method=pass_all 6862 ;; 6863esac 6864 6865fi 6866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 6867$as_echo "$lt_cv_deplibs_check_method" >&6; } 6868 6869file_magic_glob= 6870want_nocaseglob=no 6871if test "$build" = "$host"; then 6872 case $host_os in 6873 mingw* | pw32*) 6874 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 6875 want_nocaseglob=yes 6876 else 6877 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 6878 fi 6879 ;; 6880 esac 6881fi 6882 6883file_magic_cmd=$lt_cv_file_magic_cmd 6884deplibs_check_method=$lt_cv_deplibs_check_method 6885test -z "$deplibs_check_method" && deplibs_check_method=unknown 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908if test -n "$ac_tool_prefix"; then 6909 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 6910set dummy ${ac_tool_prefix}dlltool; ac_word=$2 6911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6912$as_echo_n "checking for $ac_word... " >&6; } 6913if ${ac_cv_prog_DLLTOOL+:} false; then : 6914 $as_echo_n "(cached) " >&6 6915else 6916 if test -n "$DLLTOOL"; then 6917 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 6918else 6919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6920for as_dir in $PATH 6921do 6922 IFS=$as_save_IFS 6923 test -z "$as_dir" && as_dir=. 6924 for ac_exec_ext in '' $ac_executable_extensions; do 6925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6926 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 6927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6928 break 2 6929 fi 6930done 6931 done 6932IFS=$as_save_IFS 6933 6934fi 6935fi 6936DLLTOOL=$ac_cv_prog_DLLTOOL 6937if test -n "$DLLTOOL"; then 6938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 6939$as_echo "$DLLTOOL" >&6; } 6940else 6941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6942$as_echo "no" >&6; } 6943fi 6944 6945 6946fi 6947if test -z "$ac_cv_prog_DLLTOOL"; then 6948 ac_ct_DLLTOOL=$DLLTOOL 6949 # Extract the first word of "dlltool", so it can be a program name with args. 6950set dummy dlltool; ac_word=$2 6951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6952$as_echo_n "checking for $ac_word... " >&6; } 6953if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 6954 $as_echo_n "(cached) " >&6 6955else 6956 if test -n "$ac_ct_DLLTOOL"; then 6957 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 6958else 6959as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6960for as_dir in $PATH 6961do 6962 IFS=$as_save_IFS 6963 test -z "$as_dir" && as_dir=. 6964 for ac_exec_ext in '' $ac_executable_extensions; do 6965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6966 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 6967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6968 break 2 6969 fi 6970done 6971 done 6972IFS=$as_save_IFS 6973 6974fi 6975fi 6976ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 6977if test -n "$ac_ct_DLLTOOL"; then 6978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 6979$as_echo "$ac_ct_DLLTOOL" >&6; } 6980else 6981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6982$as_echo "no" >&6; } 6983fi 6984 6985 if test "x$ac_ct_DLLTOOL" = x; then 6986 DLLTOOL="false" 6987 else 6988 case $cross_compiling:$ac_tool_warned in 6989yes:) 6990{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6991$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6992ac_tool_warned=yes ;; 6993esac 6994 DLLTOOL=$ac_ct_DLLTOOL 6995 fi 6996else 6997 DLLTOOL="$ac_cv_prog_DLLTOOL" 6998fi 6999 7000test -z "$DLLTOOL" && DLLTOOL=dlltool 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 7012$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 7013if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 7014 $as_echo_n "(cached) " >&6 7015else 7016 lt_cv_sharedlib_from_linklib_cmd='unknown' 7017 7018case $host_os in 7019cygwin* | mingw* | pw32* | cegcc*) 7020 # two different shell functions defined in ltmain.sh; 7021 # decide which one to use based on capabilities of $DLLTOOL 7022 case `$DLLTOOL --help 2>&1` in 7023 *--identify-strict*) 7024 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 7025 ;; 7026 *) 7027 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 7028 ;; 7029 esac 7030 ;; 7031*) 7032 # fallback: assume linklib IS sharedlib 7033 lt_cv_sharedlib_from_linklib_cmd=$ECHO 7034 ;; 7035esac 7036 7037fi 7038{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 7039$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 7040sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 7041test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 7042 7043 7044 7045 7046 7047 7048 7049if test -n "$ac_tool_prefix"; then 7050 for ac_prog in ar 7051 do 7052 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 7053set dummy $ac_tool_prefix$ac_prog; ac_word=$2 7054{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7055$as_echo_n "checking for $ac_word... " >&6; } 7056if ${ac_cv_prog_AR+:} false; then : 7057 $as_echo_n "(cached) " >&6 7058else 7059 if test -n "$AR"; then 7060 ac_cv_prog_AR="$AR" # Let the user override the test. 7061else 7062as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7063for as_dir in $PATH 7064do 7065 IFS=$as_save_IFS 7066 test -z "$as_dir" && as_dir=. 7067 for ac_exec_ext in '' $ac_executable_extensions; do 7068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7069 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 7070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7071 break 2 7072 fi 7073done 7074 done 7075IFS=$as_save_IFS 7076 7077fi 7078fi 7079AR=$ac_cv_prog_AR 7080if test -n "$AR"; then 7081 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 7082$as_echo "$AR" >&6; } 7083else 7084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7085$as_echo "no" >&6; } 7086fi 7087 7088 7089 test -n "$AR" && break 7090 done 7091fi 7092if test -z "$AR"; then 7093 ac_ct_AR=$AR 7094 for ac_prog in ar 7095do 7096 # Extract the first word of "$ac_prog", so it can be a program name with args. 7097set dummy $ac_prog; ac_word=$2 7098{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7099$as_echo_n "checking for $ac_word... " >&6; } 7100if ${ac_cv_prog_ac_ct_AR+:} false; then : 7101 $as_echo_n "(cached) " >&6 7102else 7103 if test -n "$ac_ct_AR"; then 7104 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 7105else 7106as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7107for as_dir in $PATH 7108do 7109 IFS=$as_save_IFS 7110 test -z "$as_dir" && as_dir=. 7111 for ac_exec_ext in '' $ac_executable_extensions; do 7112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7113 ac_cv_prog_ac_ct_AR="$ac_prog" 7114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7115 break 2 7116 fi 7117done 7118 done 7119IFS=$as_save_IFS 7120 7121fi 7122fi 7123ac_ct_AR=$ac_cv_prog_ac_ct_AR 7124if test -n "$ac_ct_AR"; then 7125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 7126$as_echo "$ac_ct_AR" >&6; } 7127else 7128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7129$as_echo "no" >&6; } 7130fi 7131 7132 7133 test -n "$ac_ct_AR" && break 7134done 7135 7136 if test "x$ac_ct_AR" = x; then 7137 AR="false" 7138 else 7139 case $cross_compiling:$ac_tool_warned in 7140yes:) 7141{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7142$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7143ac_tool_warned=yes ;; 7144esac 7145 AR=$ac_ct_AR 7146 fi 7147fi 7148 7149: ${AR=ar} 7150: ${AR_FLAGS=cru} 7151 7152 7153 7154 7155 7156 7157 7158 7159 7160 7161 7162{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 7163$as_echo_n "checking for archiver @FILE support... " >&6; } 7164if ${lt_cv_ar_at_file+:} false; then : 7165 $as_echo_n "(cached) " >&6 7166else 7167 lt_cv_ar_at_file=no 7168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7169/* end confdefs.h. */ 7170 7171int 7172main () 7173{ 7174 7175 ; 7176 return 0; 7177} 7178_ACEOF 7179if ac_fn_cxx_try_compile "$LINENO"; then : 7180 echo conftest.$ac_objext > conftest.lst 7181 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 7182 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7183 (eval $lt_ar_try) 2>&5 7184 ac_status=$? 7185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7186 test $ac_status = 0; } 7187 if test 0 -eq "$ac_status"; then 7188 # Ensure the archiver fails upon bogus file names. 7189 rm -f conftest.$ac_objext libconftest.a 7190 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 7191 (eval $lt_ar_try) 2>&5 7192 ac_status=$? 7193 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7194 test $ac_status = 0; } 7195 if test 0 -ne "$ac_status"; then 7196 lt_cv_ar_at_file=@ 7197 fi 7198 fi 7199 rm -f conftest.* libconftest.a 7200 7201fi 7202rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7203 7204fi 7205{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 7206$as_echo "$lt_cv_ar_at_file" >&6; } 7207 7208if test no = "$lt_cv_ar_at_file"; then 7209 archiver_list_spec= 7210else 7211 archiver_list_spec=$lt_cv_ar_at_file 7212fi 7213 7214 7215 7216 7217 7218 7219 7220if test -n "$ac_tool_prefix"; then 7221 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 7222set dummy ${ac_tool_prefix}strip; ac_word=$2 7223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7224$as_echo_n "checking for $ac_word... " >&6; } 7225if ${ac_cv_prog_STRIP+:} false; then : 7226 $as_echo_n "(cached) " >&6 7227else 7228 if test -n "$STRIP"; then 7229 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 7230else 7231as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7232for as_dir in $PATH 7233do 7234 IFS=$as_save_IFS 7235 test -z "$as_dir" && as_dir=. 7236 for ac_exec_ext in '' $ac_executable_extensions; do 7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7238 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7240 break 2 7241 fi 7242done 7243 done 7244IFS=$as_save_IFS 7245 7246fi 7247fi 7248STRIP=$ac_cv_prog_STRIP 7249if test -n "$STRIP"; then 7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 7251$as_echo "$STRIP" >&6; } 7252else 7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7254$as_echo "no" >&6; } 7255fi 7256 7257 7258fi 7259if test -z "$ac_cv_prog_STRIP"; then 7260 ac_ct_STRIP=$STRIP 7261 # Extract the first word of "strip", so it can be a program name with args. 7262set dummy strip; ac_word=$2 7263{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7264$as_echo_n "checking for $ac_word... " >&6; } 7265if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 7266 $as_echo_n "(cached) " >&6 7267else 7268 if test -n "$ac_ct_STRIP"; then 7269 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 7270else 7271as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7272for as_dir in $PATH 7273do 7274 IFS=$as_save_IFS 7275 test -z "$as_dir" && as_dir=. 7276 for ac_exec_ext in '' $ac_executable_extensions; do 7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7278 ac_cv_prog_ac_ct_STRIP="strip" 7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7280 break 2 7281 fi 7282done 7283 done 7284IFS=$as_save_IFS 7285 7286fi 7287fi 7288ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 7289if test -n "$ac_ct_STRIP"; then 7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 7291$as_echo "$ac_ct_STRIP" >&6; } 7292else 7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7294$as_echo "no" >&6; } 7295fi 7296 7297 if test "x$ac_ct_STRIP" = x; then 7298 STRIP=":" 7299 else 7300 case $cross_compiling:$ac_tool_warned in 7301yes:) 7302{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7303$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7304ac_tool_warned=yes ;; 7305esac 7306 STRIP=$ac_ct_STRIP 7307 fi 7308else 7309 STRIP="$ac_cv_prog_STRIP" 7310fi 7311 7312test -z "$STRIP" && STRIP=: 7313 7314 7315 7316 7317 7318 7319if test -n "$ac_tool_prefix"; then 7320 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 7321set dummy ${ac_tool_prefix}ranlib; ac_word=$2 7322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7323$as_echo_n "checking for $ac_word... " >&6; } 7324if ${ac_cv_prog_RANLIB+:} false; then : 7325 $as_echo_n "(cached) " >&6 7326else 7327 if test -n "$RANLIB"; then 7328 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 7329else 7330as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7331for as_dir in $PATH 7332do 7333 IFS=$as_save_IFS 7334 test -z "$as_dir" && as_dir=. 7335 for ac_exec_ext in '' $ac_executable_extensions; do 7336 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7337 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 7338 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7339 break 2 7340 fi 7341done 7342 done 7343IFS=$as_save_IFS 7344 7345fi 7346fi 7347RANLIB=$ac_cv_prog_RANLIB 7348if test -n "$RANLIB"; then 7349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 7350$as_echo "$RANLIB" >&6; } 7351else 7352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7353$as_echo "no" >&6; } 7354fi 7355 7356 7357fi 7358if test -z "$ac_cv_prog_RANLIB"; then 7359 ac_ct_RANLIB=$RANLIB 7360 # Extract the first word of "ranlib", so it can be a program name with args. 7361set dummy ranlib; ac_word=$2 7362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 7363$as_echo_n "checking for $ac_word... " >&6; } 7364if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 7365 $as_echo_n "(cached) " >&6 7366else 7367 if test -n "$ac_ct_RANLIB"; then 7368 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 7369else 7370as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7371for as_dir in $PATH 7372do 7373 IFS=$as_save_IFS 7374 test -z "$as_dir" && as_dir=. 7375 for ac_exec_ext in '' $ac_executable_extensions; do 7376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 7377 ac_cv_prog_ac_ct_RANLIB="ranlib" 7378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 7379 break 2 7380 fi 7381done 7382 done 7383IFS=$as_save_IFS 7384 7385fi 7386fi 7387ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 7388if test -n "$ac_ct_RANLIB"; then 7389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 7390$as_echo "$ac_ct_RANLIB" >&6; } 7391else 7392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7393$as_echo "no" >&6; } 7394fi 7395 7396 if test "x$ac_ct_RANLIB" = x; then 7397 RANLIB=":" 7398 else 7399 case $cross_compiling:$ac_tool_warned in 7400yes:) 7401{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 7402$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 7403ac_tool_warned=yes ;; 7404esac 7405 RANLIB=$ac_ct_RANLIB 7406 fi 7407else 7408 RANLIB="$ac_cv_prog_RANLIB" 7409fi 7410 7411test -z "$RANLIB" && RANLIB=: 7412 7413 7414 7415 7416 7417 7418# Determine commands to create old-style static archives. 7419old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 7420old_postinstall_cmds='chmod 644 $oldlib' 7421old_postuninstall_cmds= 7422 7423if test -n "$RANLIB"; then 7424 case $host_os in 7425 bitrig* | openbsd*) 7426 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 7427 ;; 7428 *) 7429 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 7430 ;; 7431 esac 7432 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 7433fi 7434 7435case $host_os in 7436 darwin*) 7437 lock_old_archive_extraction=yes ;; 7438 *) 7439 lock_old_archive_extraction=no ;; 7440esac 7441 7442 7443 7444 7445 7446 7447 7448 7449 7450 7451 7452 7453 7454 7455 7456 7457 7458 7459 7460 7461 7462 7463 7464 7465 7466 7467 7468 7469 7470 7471 7472 7473 7474 7475 7476 7477 7478 7479 7480# If no C compiler was specified, use CC. 7481LTCC=${LTCC-"$CC"} 7482 7483# If no C compiler flags were specified, use CFLAGS. 7484LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7485 7486# Allow CC to be a program name with arguments. 7487compiler=$CC 7488 7489 7490# Check for command to grab the raw symbol name followed by C symbol from nm. 7491{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 7492$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 7493if ${lt_cv_sys_global_symbol_pipe+:} false; then : 7494 $as_echo_n "(cached) " >&6 7495else 7496 7497# These are sane defaults that work on at least a few old systems. 7498# [They come from Ultrix. What could be older than Ultrix?!! ;)] 7499 7500# Character class describing NM global symbol codes. 7501symcode='[BCDEGRST]' 7502 7503# Regexp to match symbols that can be accessed directly from C. 7504sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 7505 7506# Define system-specific variables. 7507case $host_os in 7508aix*) 7509 symcode='[BCDT]' 7510 ;; 7511cygwin* | mingw* | pw32* | cegcc*) 7512 symcode='[ABCDGISTW]' 7513 ;; 7514hpux*) 7515 if test ia64 = "$host_cpu"; then 7516 symcode='[ABCDEGRST]' 7517 fi 7518 ;; 7519irix* | nonstopux*) 7520 symcode='[BCDEGRST]' 7521 ;; 7522osf*) 7523 symcode='[BCDEGQRST]' 7524 ;; 7525solaris*) 7526 symcode='[BDRT]' 7527 ;; 7528sco3.2v5*) 7529 symcode='[DT]' 7530 ;; 7531sysv4.2uw2*) 7532 symcode='[DT]' 7533 ;; 7534sysv5* | sco5v6* | unixware* | OpenUNIX*) 7535 symcode='[ABDT]' 7536 ;; 7537sysv4) 7538 symcode='[DFNSTU]' 7539 ;; 7540esac 7541 7542# If we're using GNU nm, then use its standard symbol codes. 7543case `$NM -V 2>&1` in 7544*GNU* | *'with BFD'*) 7545 symcode='[ABCDGIRSTW]' ;; 7546esac 7547 7548if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7549 # Gets list of data symbols to import. 7550 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 7551 # Adjust the below global symbol transforms to fixup imported variables. 7552 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 7553 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 7554 lt_c_name_lib_hook="\ 7555 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 7556 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 7557else 7558 # Disable hooks by default. 7559 lt_cv_sys_global_symbol_to_import= 7560 lt_cdecl_hook= 7561 lt_c_name_hook= 7562 lt_c_name_lib_hook= 7563fi 7564 7565# Transform an extracted symbol line into a proper C declaration. 7566# Some systems (esp. on ia64) link data and code symbols differently, 7567# so use this general approach. 7568lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 7569$lt_cdecl_hook\ 7570" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 7571" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 7572 7573# Transform an extracted symbol line into symbol name and symbol address 7574lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 7575$lt_c_name_hook\ 7576" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7577" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 7578 7579# Transform an extracted symbol line into symbol name with lib prefix and 7580# symbol address. 7581lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 7582$lt_c_name_lib_hook\ 7583" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 7584" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 7585" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 7586 7587# Handle CRLF in mingw tool chain 7588opt_cr= 7589case $build_os in 7590mingw*) 7591 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 7592 ;; 7593esac 7594 7595# Try without a prefix underscore, then with it. 7596for ac_symprfx in "" "_"; do 7597 7598 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 7599 symxfrm="\\1 $ac_symprfx\\2 \\2" 7600 7601 # Write the raw and C identifiers. 7602 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7603 # Fake it for dumpbin and say T for any non-static function, 7604 # D for any global variable and I for any imported variable. 7605 # Also find C++ and __fastcall symbols from MSVC++, 7606 # which start with @ or ?. 7607 lt_cv_sys_global_symbol_pipe="$AWK '"\ 7608" {last_section=section; section=\$ 3};"\ 7609" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 7610" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 7611" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 7612" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 7613" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 7614" \$ 0!~/External *\|/{next};"\ 7615" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 7616" {if(hide[section]) next};"\ 7617" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 7618" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 7619" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 7620" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 7621" ' prfx=^$ac_symprfx" 7622 else 7623 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 7624 fi 7625 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 7626 7627 # Check to see that the pipe works correctly. 7628 pipe_works=no 7629 7630 rm -f conftest* 7631 cat > conftest.$ac_ext <<_LT_EOF 7632#ifdef __cplusplus 7633extern "C" { 7634#endif 7635char nm_test_var; 7636void nm_test_func(void); 7637void nm_test_func(void){} 7638#ifdef __cplusplus 7639} 7640#endif 7641int main(){nm_test_var='a';nm_test_func();return(0);} 7642_LT_EOF 7643 7644 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7645 (eval $ac_compile) 2>&5 7646 ac_status=$? 7647 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7648 test $ac_status = 0; }; then 7649 # Now try to grab the symbols. 7650 nlist=conftest.nm 7651 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 7652 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 7653 ac_status=$? 7654 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7655 test $ac_status = 0; } && test -s "$nlist"; then 7656 # Try sorting and uniquifying the output. 7657 if sort "$nlist" | uniq > "$nlist"T; then 7658 mv -f "$nlist"T "$nlist" 7659 else 7660 rm -f "$nlist"T 7661 fi 7662 7663 # Make sure that we snagged all the symbols we need. 7664 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 7665 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 7666 cat <<_LT_EOF > conftest.$ac_ext 7667/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 7668#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 7669/* DATA imports from DLLs on WIN32 can't be const, because runtime 7670 relocations are performed -- see ld's documentation on pseudo-relocs. */ 7671# define LT_DLSYM_CONST 7672#elif defined __osf__ 7673/* This system does not cope well with relocations in const data. */ 7674# define LT_DLSYM_CONST 7675#else 7676# define LT_DLSYM_CONST const 7677#endif 7678 7679#ifdef __cplusplus 7680extern "C" { 7681#endif 7682 7683_LT_EOF 7684 # Now generate the symbol file. 7685 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 7686 7687 cat <<_LT_EOF >> conftest.$ac_ext 7688 7689/* The mapping between symbol names and symbols. */ 7690LT_DLSYM_CONST struct { 7691 const char *name; 7692 void *address; 7693} 7694lt__PROGRAM__LTX_preloaded_symbols[] = 7695{ 7696 { "@PROGRAM@", (void *) 0 }, 7697_LT_EOF 7698 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 7699 cat <<\_LT_EOF >> conftest.$ac_ext 7700 {0, (void *) 0} 7701}; 7702 7703/* This works around a problem in FreeBSD linker */ 7704#ifdef FREEBSD_WORKAROUND 7705static const void *lt_preloaded_setup() { 7706 return lt__PROGRAM__LTX_preloaded_symbols; 7707} 7708#endif 7709 7710#ifdef __cplusplus 7711} 7712#endif 7713_LT_EOF 7714 # Now try linking the two files. 7715 mv conftest.$ac_objext conftstm.$ac_objext 7716 lt_globsym_save_LIBS=$LIBS 7717 lt_globsym_save_CFLAGS=$CFLAGS 7718 LIBS=conftstm.$ac_objext 7719 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 7720 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 7721 (eval $ac_link) 2>&5 7722 ac_status=$? 7723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7724 test $ac_status = 0; } && test -s conftest$ac_exeext; then 7725 pipe_works=yes 7726 fi 7727 LIBS=$lt_globsym_save_LIBS 7728 CFLAGS=$lt_globsym_save_CFLAGS 7729 else 7730 echo "cannot find nm_test_func in $nlist" >&5 7731 fi 7732 else 7733 echo "cannot find nm_test_var in $nlist" >&5 7734 fi 7735 else 7736 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 7737 fi 7738 else 7739 echo "$progname: failed program was:" >&5 7740 cat conftest.$ac_ext >&5 7741 fi 7742 rm -rf conftest* conftst* 7743 7744 # Do not use the global_symbol_pipe unless it works. 7745 if test yes = "$pipe_works"; then 7746 break 7747 else 7748 lt_cv_sys_global_symbol_pipe= 7749 fi 7750done 7751 7752fi 7753 7754if test -z "$lt_cv_sys_global_symbol_pipe"; then 7755 lt_cv_sys_global_symbol_to_cdecl= 7756fi 7757if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 7758 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 7759$as_echo "failed" >&6; } 7760else 7761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 7762$as_echo "ok" >&6; } 7763fi 7764 7765# Response file support. 7766if test "$lt_cv_nm_interface" = "MS dumpbin"; then 7767 nm_file_list_spec='@' 7768elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 7769 nm_file_list_spec='@' 7770fi 7771 7772 7773 7774 7775 7776 7777 7778 7779 7780 7781 7782 7783 7784 7785 7786 7787 7788 7789 7790 7791 7792 7793 7794 7795 7796 7797 7798 7799 7800 7801 7802 7803 7804 7805 7806 7807 7808{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 7809$as_echo_n "checking for sysroot... " >&6; } 7810 7811# Check whether --with-sysroot was given. 7812if test "${with_sysroot+set}" = set; then : 7813 withval=$with_sysroot; 7814else 7815 with_sysroot=no 7816fi 7817 7818 7819lt_sysroot= 7820case $with_sysroot in #( 7821 yes) 7822 if test yes = "$GCC"; then 7823 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 7824 fi 7825 ;; #( 7826 /*) 7827 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 7828 ;; #( 7829 no|'') 7830 ;; #( 7831 *) 7832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 7833$as_echo "$with_sysroot" >&6; } 7834 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 7835 ;; 7836esac 7837 7838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 7839$as_echo "${lt_sysroot:-no}" >&6; } 7840 7841 7842 7843 7844 7845{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 7846$as_echo_n "checking for a working dd... " >&6; } 7847if ${ac_cv_path_lt_DD+:} false; then : 7848 $as_echo_n "(cached) " >&6 7849else 7850 printf 0123456789abcdef0123456789abcdef >conftest.i 7851cat conftest.i conftest.i >conftest2.i 7852: ${lt_DD:=$DD} 7853if test -z "$lt_DD"; then 7854 ac_path_lt_DD_found=false 7855 # Loop through the user's path and test for each of PROGNAME-LIST 7856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 7857for as_dir in $PATH 7858do 7859 IFS=$as_save_IFS 7860 test -z "$as_dir" && as_dir=. 7861 for ac_prog in dd; do 7862 for ac_exec_ext in '' $ac_executable_extensions; do 7863 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 7864 as_fn_executable_p "$ac_path_lt_DD" || continue 7865if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7866 cmp -s conftest.i conftest.out \ 7867 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 7868fi 7869 $ac_path_lt_DD_found && break 3 7870 done 7871 done 7872 done 7873IFS=$as_save_IFS 7874 if test -z "$ac_cv_path_lt_DD"; then 7875 : 7876 fi 7877else 7878 ac_cv_path_lt_DD=$lt_DD 7879fi 7880 7881rm -f conftest.i conftest2.i conftest.out 7882fi 7883{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 7884$as_echo "$ac_cv_path_lt_DD" >&6; } 7885 7886 7887{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 7888$as_echo_n "checking how to truncate binary pipes... " >&6; } 7889if ${lt_cv_truncate_bin+:} false; then : 7890 $as_echo_n "(cached) " >&6 7891else 7892 printf 0123456789abcdef0123456789abcdef >conftest.i 7893cat conftest.i conftest.i >conftest2.i 7894lt_cv_truncate_bin= 7895if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 7896 cmp -s conftest.i conftest.out \ 7897 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 7898fi 7899rm -f conftest.i conftest2.i conftest.out 7900test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 7901fi 7902{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 7903$as_echo "$lt_cv_truncate_bin" >&6; } 7904 7905 7906 7907 7908 7909 7910 7911# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 7912func_cc_basename () 7913{ 7914 for cc_temp in $*""; do 7915 case $cc_temp in 7916 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 7917 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 7918 \-*) ;; 7919 *) break;; 7920 esac 7921 done 7922 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 7923} 7924 7925# Check whether --enable-libtool-lock was given. 7926if test "${enable_libtool_lock+set}" = set; then : 7927 enableval=$enable_libtool_lock; 7928fi 7929 7930test no = "$enable_libtool_lock" || enable_libtool_lock=yes 7931 7932# Some flags need to be propagated to the compiler or linker for good 7933# libtool support. 7934case $host in 7935ia64-*-hpux*) 7936 # Find out what ABI is being produced by ac_compile, and set mode 7937 # options accordingly. 7938 echo 'int i;' > conftest.$ac_ext 7939 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7940 (eval $ac_compile) 2>&5 7941 ac_status=$? 7942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7943 test $ac_status = 0; }; then 7944 case `/usr/bin/file conftest.$ac_objext` in 7945 *ELF-32*) 7946 HPUX_IA64_MODE=32 7947 ;; 7948 *ELF-64*) 7949 HPUX_IA64_MODE=64 7950 ;; 7951 esac 7952 fi 7953 rm -rf conftest* 7954 ;; 7955*-*-irix6*) 7956 # Find out what ABI is being produced by ac_compile, and set linker 7957 # options accordingly. 7958 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7959 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7960 (eval $ac_compile) 2>&5 7961 ac_status=$? 7962 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 7963 test $ac_status = 0; }; then 7964 if test yes = "$lt_cv_prog_gnu_ld"; then 7965 case `/usr/bin/file conftest.$ac_objext` in 7966 *32-bit*) 7967 LD="${LD-ld} -melf32bsmip" 7968 ;; 7969 *N32*) 7970 LD="${LD-ld} -melf32bmipn32" 7971 ;; 7972 *64-bit*) 7973 LD="${LD-ld} -melf64bmip" 7974 ;; 7975 esac 7976 else 7977 case `/usr/bin/file conftest.$ac_objext` in 7978 *32-bit*) 7979 LD="${LD-ld} -32" 7980 ;; 7981 *N32*) 7982 LD="${LD-ld} -n32" 7983 ;; 7984 *64-bit*) 7985 LD="${LD-ld} -64" 7986 ;; 7987 esac 7988 fi 7989 fi 7990 rm -rf conftest* 7991 ;; 7992 7993mips64*-*linux*) 7994 # Find out what ABI is being produced by ac_compile, and set linker 7995 # options accordingly. 7996 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 7997 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 7998 (eval $ac_compile) 2>&5 7999 ac_status=$? 8000 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8001 test $ac_status = 0; }; then 8002 emul=elf 8003 case `/usr/bin/file conftest.$ac_objext` in 8004 *32-bit*) 8005 emul="${emul}32" 8006 ;; 8007 *64-bit*) 8008 emul="${emul}64" 8009 ;; 8010 esac 8011 case `/usr/bin/file conftest.$ac_objext` in 8012 *MSB*) 8013 emul="${emul}btsmip" 8014 ;; 8015 *LSB*) 8016 emul="${emul}ltsmip" 8017 ;; 8018 esac 8019 case `/usr/bin/file conftest.$ac_objext` in 8020 *N32*) 8021 emul="${emul}n32" 8022 ;; 8023 esac 8024 LD="${LD-ld} -m $emul" 8025 fi 8026 rm -rf conftest* 8027 ;; 8028 8029x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 8030s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 8031 # Find out what ABI is being produced by ac_compile, and set linker 8032 # options accordingly. Note that the listed cases only cover the 8033 # situations where additional linker options are needed (such as when 8034 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 8035 # vice versa); the common cases where no linker options are needed do 8036 # not appear in the list. 8037 echo 'int i;' > conftest.$ac_ext 8038 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8039 (eval $ac_compile) 2>&5 8040 ac_status=$? 8041 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8042 test $ac_status = 0; }; then 8043 case `/usr/bin/file conftest.o` in 8044 *32-bit*) 8045 case $host in 8046 x86_64-*kfreebsd*-gnu) 8047 LD="${LD-ld} -m elf_i386_fbsd" 8048 ;; 8049 x86_64-*linux*) 8050 case `/usr/bin/file conftest.o` in 8051 *x86-64*) 8052 LD="${LD-ld} -m elf32_x86_64" 8053 ;; 8054 *) 8055 LD="${LD-ld} -m elf_i386" 8056 ;; 8057 esac 8058 ;; 8059 powerpc64le-*linux*) 8060 LD="${LD-ld} -m elf32lppclinux" 8061 ;; 8062 powerpc64-*linux*) 8063 LD="${LD-ld} -m elf32ppclinux" 8064 ;; 8065 s390x-*linux*) 8066 LD="${LD-ld} -m elf_s390" 8067 ;; 8068 sparc64-*linux*) 8069 LD="${LD-ld} -m elf32_sparc" 8070 ;; 8071 esac 8072 ;; 8073 *64-bit*) 8074 case $host in 8075 x86_64-*kfreebsd*-gnu) 8076 LD="${LD-ld} -m elf_x86_64_fbsd" 8077 ;; 8078 x86_64-*linux*) 8079 LD="${LD-ld} -m elf_x86_64" 8080 ;; 8081 powerpcle-*linux*) 8082 LD="${LD-ld} -m elf64lppc" 8083 ;; 8084 powerpc-*linux*) 8085 LD="${LD-ld} -m elf64ppc" 8086 ;; 8087 s390*-*linux*|s390*-*tpf*) 8088 LD="${LD-ld} -m elf64_s390" 8089 ;; 8090 sparc*-*linux*) 8091 LD="${LD-ld} -m elf64_sparc" 8092 ;; 8093 esac 8094 ;; 8095 esac 8096 fi 8097 rm -rf conftest* 8098 ;; 8099 8100*-*-sco3.2v5*) 8101 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 8102 SAVE_CFLAGS=$CFLAGS 8103 CFLAGS="$CFLAGS -belf" 8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 8105$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 8106if ${lt_cv_cc_needs_belf+:} false; then : 8107 $as_echo_n "(cached) " >&6 8108else 8109 ac_ext=c 8110ac_cpp='$CPP $CPPFLAGS' 8111ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8112ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8113ac_compiler_gnu=$ac_cv_c_compiler_gnu 8114 8115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8116/* end confdefs.h. */ 8117 8118int 8119main () 8120{ 8121 8122 ; 8123 return 0; 8124} 8125_ACEOF 8126if ac_fn_c_try_link "$LINENO"; then : 8127 lt_cv_cc_needs_belf=yes 8128else 8129 lt_cv_cc_needs_belf=no 8130fi 8131rm -f core conftest.err conftest.$ac_objext \ 8132 conftest$ac_exeext conftest.$ac_ext 8133 ac_ext=c 8134ac_cpp='$CPP $CPPFLAGS' 8135ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8136ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8137ac_compiler_gnu=$ac_cv_c_compiler_gnu 8138 8139fi 8140{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 8141$as_echo "$lt_cv_cc_needs_belf" >&6; } 8142 if test yes != "$lt_cv_cc_needs_belf"; then 8143 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 8144 CFLAGS=$SAVE_CFLAGS 8145 fi 8146 ;; 8147*-*solaris*) 8148 # Find out what ABI is being produced by ac_compile, and set linker 8149 # options accordingly. 8150 echo 'int i;' > conftest.$ac_ext 8151 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 8152 (eval $ac_compile) 2>&5 8153 ac_status=$? 8154 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 8155 test $ac_status = 0; }; then 8156 case `/usr/bin/file conftest.o` in 8157 *64-bit*) 8158 case $lt_cv_prog_gnu_ld in 8159 yes*) 8160 case $host in 8161 i?86-*-solaris*|x86_64-*-solaris*) 8162 LD="${LD-ld} -m elf_x86_64" 8163 ;; 8164 sparc*-*-solaris*) 8165 LD="${LD-ld} -m elf64_sparc" 8166 ;; 8167 esac 8168 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 8169 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 8170 LD=${LD-ld}_sol2 8171 fi 8172 ;; 8173 *) 8174 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 8175 LD="${LD-ld} -64" 8176 fi 8177 ;; 8178 esac 8179 ;; 8180 esac 8181 fi 8182 rm -rf conftest* 8183 ;; 8184esac 8185 8186need_locks=$enable_libtool_lock 8187 8188if test -n "$ac_tool_prefix"; then 8189 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 8190set dummy ${ac_tool_prefix}mt; ac_word=$2 8191{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8192$as_echo_n "checking for $ac_word... " >&6; } 8193if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 8194 $as_echo_n "(cached) " >&6 8195else 8196 if test -n "$MANIFEST_TOOL"; then 8197 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 8198else 8199as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8200for as_dir in $PATH 8201do 8202 IFS=$as_save_IFS 8203 test -z "$as_dir" && as_dir=. 8204 for ac_exec_ext in '' $ac_executable_extensions; do 8205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8206 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 8207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8208 break 2 8209 fi 8210done 8211 done 8212IFS=$as_save_IFS 8213 8214fi 8215fi 8216MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 8217if test -n "$MANIFEST_TOOL"; then 8218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 8219$as_echo "$MANIFEST_TOOL" >&6; } 8220else 8221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8222$as_echo "no" >&6; } 8223fi 8224 8225 8226fi 8227if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 8228 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 8229 # Extract the first word of "mt", so it can be a program name with args. 8230set dummy mt; ac_word=$2 8231{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8232$as_echo_n "checking for $ac_word... " >&6; } 8233if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 8234 $as_echo_n "(cached) " >&6 8235else 8236 if test -n "$ac_ct_MANIFEST_TOOL"; then 8237 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 8238else 8239as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8240for as_dir in $PATH 8241do 8242 IFS=$as_save_IFS 8243 test -z "$as_dir" && as_dir=. 8244 for ac_exec_ext in '' $ac_executable_extensions; do 8245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8246 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 8247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8248 break 2 8249 fi 8250done 8251 done 8252IFS=$as_save_IFS 8253 8254fi 8255fi 8256ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 8257if test -n "$ac_ct_MANIFEST_TOOL"; then 8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 8259$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 8260else 8261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8262$as_echo "no" >&6; } 8263fi 8264 8265 if test "x$ac_ct_MANIFEST_TOOL" = x; then 8266 MANIFEST_TOOL=":" 8267 else 8268 case $cross_compiling:$ac_tool_warned in 8269yes:) 8270{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8271$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8272ac_tool_warned=yes ;; 8273esac 8274 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 8275 fi 8276else 8277 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 8278fi 8279 8280test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 8281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 8282$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 8283if ${lt_cv_path_mainfest_tool+:} false; then : 8284 $as_echo_n "(cached) " >&6 8285else 8286 lt_cv_path_mainfest_tool=no 8287 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 8288 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 8289 cat conftest.err >&5 8290 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 8291 lt_cv_path_mainfest_tool=yes 8292 fi 8293 rm -f conftest* 8294fi 8295{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 8296$as_echo "$lt_cv_path_mainfest_tool" >&6; } 8297if test yes != "$lt_cv_path_mainfest_tool"; then 8298 MANIFEST_TOOL=: 8299fi 8300 8301 8302 8303 8304 8305 8306 case $host_os in 8307 rhapsody* | darwin*) 8308 if test -n "$ac_tool_prefix"; then 8309 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 8310set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 8311{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8312$as_echo_n "checking for $ac_word... " >&6; } 8313if ${ac_cv_prog_DSYMUTIL+:} false; then : 8314 $as_echo_n "(cached) " >&6 8315else 8316 if test -n "$DSYMUTIL"; then 8317 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 8318else 8319as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8320for as_dir in $PATH 8321do 8322 IFS=$as_save_IFS 8323 test -z "$as_dir" && as_dir=. 8324 for ac_exec_ext in '' $ac_executable_extensions; do 8325 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8326 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 8327 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8328 break 2 8329 fi 8330done 8331 done 8332IFS=$as_save_IFS 8333 8334fi 8335fi 8336DSYMUTIL=$ac_cv_prog_DSYMUTIL 8337if test -n "$DSYMUTIL"; then 8338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 8339$as_echo "$DSYMUTIL" >&6; } 8340else 8341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8342$as_echo "no" >&6; } 8343fi 8344 8345 8346fi 8347if test -z "$ac_cv_prog_DSYMUTIL"; then 8348 ac_ct_DSYMUTIL=$DSYMUTIL 8349 # Extract the first word of "dsymutil", so it can be a program name with args. 8350set dummy dsymutil; ac_word=$2 8351{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8352$as_echo_n "checking for $ac_word... " >&6; } 8353if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 8354 $as_echo_n "(cached) " >&6 8355else 8356 if test -n "$ac_ct_DSYMUTIL"; then 8357 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 8358else 8359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8360for as_dir in $PATH 8361do 8362 IFS=$as_save_IFS 8363 test -z "$as_dir" && as_dir=. 8364 for ac_exec_ext in '' $ac_executable_extensions; do 8365 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8366 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 8367 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8368 break 2 8369 fi 8370done 8371 done 8372IFS=$as_save_IFS 8373 8374fi 8375fi 8376ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 8377if test -n "$ac_ct_DSYMUTIL"; then 8378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 8379$as_echo "$ac_ct_DSYMUTIL" >&6; } 8380else 8381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8382$as_echo "no" >&6; } 8383fi 8384 8385 if test "x$ac_ct_DSYMUTIL" = x; then 8386 DSYMUTIL=":" 8387 else 8388 case $cross_compiling:$ac_tool_warned in 8389yes:) 8390{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8391$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8392ac_tool_warned=yes ;; 8393esac 8394 DSYMUTIL=$ac_ct_DSYMUTIL 8395 fi 8396else 8397 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 8398fi 8399 8400 if test -n "$ac_tool_prefix"; then 8401 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 8402set dummy ${ac_tool_prefix}nmedit; ac_word=$2 8403{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8404$as_echo_n "checking for $ac_word... " >&6; } 8405if ${ac_cv_prog_NMEDIT+:} false; then : 8406 $as_echo_n "(cached) " >&6 8407else 8408 if test -n "$NMEDIT"; then 8409 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 8410else 8411as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8412for as_dir in $PATH 8413do 8414 IFS=$as_save_IFS 8415 test -z "$as_dir" && as_dir=. 8416 for ac_exec_ext in '' $ac_executable_extensions; do 8417 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8418 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 8419 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8420 break 2 8421 fi 8422done 8423 done 8424IFS=$as_save_IFS 8425 8426fi 8427fi 8428NMEDIT=$ac_cv_prog_NMEDIT 8429if test -n "$NMEDIT"; then 8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 8431$as_echo "$NMEDIT" >&6; } 8432else 8433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8434$as_echo "no" >&6; } 8435fi 8436 8437 8438fi 8439if test -z "$ac_cv_prog_NMEDIT"; then 8440 ac_ct_NMEDIT=$NMEDIT 8441 # Extract the first word of "nmedit", so it can be a program name with args. 8442set dummy nmedit; ac_word=$2 8443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8444$as_echo_n "checking for $ac_word... " >&6; } 8445if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 8446 $as_echo_n "(cached) " >&6 8447else 8448 if test -n "$ac_ct_NMEDIT"; then 8449 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 8450else 8451as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8452for as_dir in $PATH 8453do 8454 IFS=$as_save_IFS 8455 test -z "$as_dir" && as_dir=. 8456 for ac_exec_ext in '' $ac_executable_extensions; do 8457 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8458 ac_cv_prog_ac_ct_NMEDIT="nmedit" 8459 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8460 break 2 8461 fi 8462done 8463 done 8464IFS=$as_save_IFS 8465 8466fi 8467fi 8468ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 8469if test -n "$ac_ct_NMEDIT"; then 8470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 8471$as_echo "$ac_ct_NMEDIT" >&6; } 8472else 8473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8474$as_echo "no" >&6; } 8475fi 8476 8477 if test "x$ac_ct_NMEDIT" = x; then 8478 NMEDIT=":" 8479 else 8480 case $cross_compiling:$ac_tool_warned in 8481yes:) 8482{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8483$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8484ac_tool_warned=yes ;; 8485esac 8486 NMEDIT=$ac_ct_NMEDIT 8487 fi 8488else 8489 NMEDIT="$ac_cv_prog_NMEDIT" 8490fi 8491 8492 if test -n "$ac_tool_prefix"; then 8493 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 8494set dummy ${ac_tool_prefix}lipo; ac_word=$2 8495{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8496$as_echo_n "checking for $ac_word... " >&6; } 8497if ${ac_cv_prog_LIPO+:} false; then : 8498 $as_echo_n "(cached) " >&6 8499else 8500 if test -n "$LIPO"; then 8501 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 8502else 8503as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8504for as_dir in $PATH 8505do 8506 IFS=$as_save_IFS 8507 test -z "$as_dir" && as_dir=. 8508 for ac_exec_ext in '' $ac_executable_extensions; do 8509 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8510 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 8511 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8512 break 2 8513 fi 8514done 8515 done 8516IFS=$as_save_IFS 8517 8518fi 8519fi 8520LIPO=$ac_cv_prog_LIPO 8521if test -n "$LIPO"; then 8522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 8523$as_echo "$LIPO" >&6; } 8524else 8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8526$as_echo "no" >&6; } 8527fi 8528 8529 8530fi 8531if test -z "$ac_cv_prog_LIPO"; then 8532 ac_ct_LIPO=$LIPO 8533 # Extract the first word of "lipo", so it can be a program name with args. 8534set dummy lipo; ac_word=$2 8535{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8536$as_echo_n "checking for $ac_word... " >&6; } 8537if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 8538 $as_echo_n "(cached) " >&6 8539else 8540 if test -n "$ac_ct_LIPO"; then 8541 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 8542else 8543as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8544for as_dir in $PATH 8545do 8546 IFS=$as_save_IFS 8547 test -z "$as_dir" && as_dir=. 8548 for ac_exec_ext in '' $ac_executable_extensions; do 8549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8550 ac_cv_prog_ac_ct_LIPO="lipo" 8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8552 break 2 8553 fi 8554done 8555 done 8556IFS=$as_save_IFS 8557 8558fi 8559fi 8560ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 8561if test -n "$ac_ct_LIPO"; then 8562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 8563$as_echo "$ac_ct_LIPO" >&6; } 8564else 8565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8566$as_echo "no" >&6; } 8567fi 8568 8569 if test "x$ac_ct_LIPO" = x; then 8570 LIPO=":" 8571 else 8572 case $cross_compiling:$ac_tool_warned in 8573yes:) 8574{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8575$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8576ac_tool_warned=yes ;; 8577esac 8578 LIPO=$ac_ct_LIPO 8579 fi 8580else 8581 LIPO="$ac_cv_prog_LIPO" 8582fi 8583 8584 if test -n "$ac_tool_prefix"; then 8585 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 8586set dummy ${ac_tool_prefix}otool; ac_word=$2 8587{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8588$as_echo_n "checking for $ac_word... " >&6; } 8589if ${ac_cv_prog_OTOOL+:} false; then : 8590 $as_echo_n "(cached) " >&6 8591else 8592 if test -n "$OTOOL"; then 8593 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 8594else 8595as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8596for as_dir in $PATH 8597do 8598 IFS=$as_save_IFS 8599 test -z "$as_dir" && as_dir=. 8600 for ac_exec_ext in '' $ac_executable_extensions; do 8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8602 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8604 break 2 8605 fi 8606done 8607 done 8608IFS=$as_save_IFS 8609 8610fi 8611fi 8612OTOOL=$ac_cv_prog_OTOOL 8613if test -n "$OTOOL"; then 8614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 8615$as_echo "$OTOOL" >&6; } 8616else 8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8618$as_echo "no" >&6; } 8619fi 8620 8621 8622fi 8623if test -z "$ac_cv_prog_OTOOL"; then 8624 ac_ct_OTOOL=$OTOOL 8625 # Extract the first word of "otool", so it can be a program name with args. 8626set dummy otool; ac_word=$2 8627{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8628$as_echo_n "checking for $ac_word... " >&6; } 8629if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 8630 $as_echo_n "(cached) " >&6 8631else 8632 if test -n "$ac_ct_OTOOL"; then 8633 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 8634else 8635as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8636for as_dir in $PATH 8637do 8638 IFS=$as_save_IFS 8639 test -z "$as_dir" && as_dir=. 8640 for ac_exec_ext in '' $ac_executable_extensions; do 8641 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8642 ac_cv_prog_ac_ct_OTOOL="otool" 8643 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8644 break 2 8645 fi 8646done 8647 done 8648IFS=$as_save_IFS 8649 8650fi 8651fi 8652ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 8653if test -n "$ac_ct_OTOOL"; then 8654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 8655$as_echo "$ac_ct_OTOOL" >&6; } 8656else 8657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8658$as_echo "no" >&6; } 8659fi 8660 8661 if test "x$ac_ct_OTOOL" = x; then 8662 OTOOL=":" 8663 else 8664 case $cross_compiling:$ac_tool_warned in 8665yes:) 8666{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8667$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8668ac_tool_warned=yes ;; 8669esac 8670 OTOOL=$ac_ct_OTOOL 8671 fi 8672else 8673 OTOOL="$ac_cv_prog_OTOOL" 8674fi 8675 8676 if test -n "$ac_tool_prefix"; then 8677 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 8678set dummy ${ac_tool_prefix}otool64; ac_word=$2 8679{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8680$as_echo_n "checking for $ac_word... " >&6; } 8681if ${ac_cv_prog_OTOOL64+:} false; then : 8682 $as_echo_n "(cached) " >&6 8683else 8684 if test -n "$OTOOL64"; then 8685 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 8686else 8687as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8688for as_dir in $PATH 8689do 8690 IFS=$as_save_IFS 8691 test -z "$as_dir" && as_dir=. 8692 for ac_exec_ext in '' $ac_executable_extensions; do 8693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8694 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 8695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8696 break 2 8697 fi 8698done 8699 done 8700IFS=$as_save_IFS 8701 8702fi 8703fi 8704OTOOL64=$ac_cv_prog_OTOOL64 8705if test -n "$OTOOL64"; then 8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 8707$as_echo "$OTOOL64" >&6; } 8708else 8709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8710$as_echo "no" >&6; } 8711fi 8712 8713 8714fi 8715if test -z "$ac_cv_prog_OTOOL64"; then 8716 ac_ct_OTOOL64=$OTOOL64 8717 # Extract the first word of "otool64", so it can be a program name with args. 8718set dummy otool64; ac_word=$2 8719{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 8720$as_echo_n "checking for $ac_word... " >&6; } 8721if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 8722 $as_echo_n "(cached) " >&6 8723else 8724 if test -n "$ac_ct_OTOOL64"; then 8725 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 8726else 8727as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 8728for as_dir in $PATH 8729do 8730 IFS=$as_save_IFS 8731 test -z "$as_dir" && as_dir=. 8732 for ac_exec_ext in '' $ac_executable_extensions; do 8733 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 8734 ac_cv_prog_ac_ct_OTOOL64="otool64" 8735 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 8736 break 2 8737 fi 8738done 8739 done 8740IFS=$as_save_IFS 8741 8742fi 8743fi 8744ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 8745if test -n "$ac_ct_OTOOL64"; then 8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 8747$as_echo "$ac_ct_OTOOL64" >&6; } 8748else 8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 8750$as_echo "no" >&6; } 8751fi 8752 8753 if test "x$ac_ct_OTOOL64" = x; then 8754 OTOOL64=":" 8755 else 8756 case $cross_compiling:$ac_tool_warned in 8757yes:) 8758{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 8759$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 8760ac_tool_warned=yes ;; 8761esac 8762 OTOOL64=$ac_ct_OTOOL64 8763 fi 8764else 8765 OTOOL64="$ac_cv_prog_OTOOL64" 8766fi 8767 8768 8769 8770 8771 8772 8773 8774 8775 8776 8777 8778 8779 8780 8781 8782 8783 8784 8785 8786 8787 8788 8789 8790 8791 8792 8793 8794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 8795$as_echo_n "checking for -single_module linker flag... " >&6; } 8796if ${lt_cv_apple_cc_single_mod+:} false; then : 8797 $as_echo_n "(cached) " >&6 8798else 8799 lt_cv_apple_cc_single_mod=no 8800 if test -z "$LT_MULTI_MODULE"; then 8801 # By default we will add the -single_module flag. You can override 8802 # by either setting the environment variable LT_MULTI_MODULE 8803 # non-empty at configure time, or by adding -multi_module to the 8804 # link flags. 8805 rm -rf libconftest.dylib* 8806 echo "int foo(void){return 1;}" > conftest.c 8807 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8808-dynamiclib -Wl,-single_module conftest.c" >&5 8809 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 8810 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 8811 _lt_result=$? 8812 # If there is a non-empty error log, and "single_module" 8813 # appears in it, assume the flag caused a linker warning 8814 if test -s conftest.err && $GREP single_module conftest.err; then 8815 cat conftest.err >&5 8816 # Otherwise, if the output was created with a 0 exit code from 8817 # the compiler, it worked. 8818 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 8819 lt_cv_apple_cc_single_mod=yes 8820 else 8821 cat conftest.err >&5 8822 fi 8823 rm -rf libconftest.dylib* 8824 rm -f conftest.* 8825 fi 8826fi 8827{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 8828$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 8829 8830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 8831$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 8832if ${lt_cv_ld_exported_symbols_list+:} false; then : 8833 $as_echo_n "(cached) " >&6 8834else 8835 lt_cv_ld_exported_symbols_list=no 8836 save_LDFLAGS=$LDFLAGS 8837 echo "_main" > conftest.sym 8838 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 8839 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8840/* end confdefs.h. */ 8841 8842int 8843main () 8844{ 8845 8846 ; 8847 return 0; 8848} 8849_ACEOF 8850if ac_fn_c_try_link "$LINENO"; then : 8851 lt_cv_ld_exported_symbols_list=yes 8852else 8853 lt_cv_ld_exported_symbols_list=no 8854fi 8855rm -f core conftest.err conftest.$ac_objext \ 8856 conftest$ac_exeext conftest.$ac_ext 8857 LDFLAGS=$save_LDFLAGS 8858 8859fi 8860{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 8861$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 8862 8863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 8864$as_echo_n "checking for -force_load linker flag... " >&6; } 8865if ${lt_cv_ld_force_load+:} false; then : 8866 $as_echo_n "(cached) " >&6 8867else 8868 lt_cv_ld_force_load=no 8869 cat > conftest.c << _LT_EOF 8870int forced_loaded() { return 2;} 8871_LT_EOF 8872 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 8873 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 8874 echo "$AR cru libconftest.a conftest.o" >&5 8875 $AR cru libconftest.a conftest.o 2>&5 8876 echo "$RANLIB libconftest.a" >&5 8877 $RANLIB libconftest.a 2>&5 8878 cat > conftest.c << _LT_EOF 8879int main() { return 0;} 8880_LT_EOF 8881 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 8882 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 8883 _lt_result=$? 8884 if test -s conftest.err && $GREP force_load conftest.err; then 8885 cat conftest.err >&5 8886 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 8887 lt_cv_ld_force_load=yes 8888 else 8889 cat conftest.err >&5 8890 fi 8891 rm -f conftest.err libconftest.a conftest conftest.c 8892 rm -rf conftest.dSYM 8893 8894fi 8895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 8896$as_echo "$lt_cv_ld_force_load" >&6; } 8897 case $host_os in 8898 rhapsody* | darwin1.[012]) 8899 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 8900 darwin1.*) 8901 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8902 darwin*) # darwin 5.x on 8903 # if running on 10.5 or later, the deployment target defaults 8904 # to the OS version, if on x86, and 10.4, the deployment 8905 # target defaults to 10.4. Don't you love it? 8906 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 8907 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 8908 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8909 10.[012][,.]*) 8910 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 8911 10.*) 8912 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 8913 esac 8914 ;; 8915 esac 8916 if test yes = "$lt_cv_apple_cc_single_mod"; then 8917 _lt_dar_single_mod='$single_module' 8918 fi 8919 if test yes = "$lt_cv_ld_exported_symbols_list"; then 8920 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 8921 else 8922 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 8923 fi 8924 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 8925 _lt_dsymutil='~$DSYMUTIL $lib || :' 8926 else 8927 _lt_dsymutil= 8928 fi 8929 ;; 8930 esac 8931 8932# func_munge_path_list VARIABLE PATH 8933# ----------------------------------- 8934# VARIABLE is name of variable containing _space_ separated list of 8935# directories to be munged by the contents of PATH, which is string 8936# having a format: 8937# "DIR[:DIR]:" 8938# string "DIR[ DIR]" will be prepended to VARIABLE 8939# ":DIR[:DIR]" 8940# string "DIR[ DIR]" will be appended to VARIABLE 8941# "DIRP[:DIRP]::[DIRA:]DIRA" 8942# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 8943# "DIRA[ DIRA]" will be appended to VARIABLE 8944# "DIR[:DIR]" 8945# VARIABLE will be replaced by "DIR[ DIR]" 8946func_munge_path_list () 8947{ 8948 case x$2 in 8949 x) 8950 ;; 8951 *:) 8952 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 8953 ;; 8954 x:*) 8955 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 8956 ;; 8957 *::*) 8958 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 8959 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 8960 ;; 8961 *) 8962 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 8963 ;; 8964 esac 8965} 8966 8967ac_ext=c 8968ac_cpp='$CPP $CPPFLAGS' 8969ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 8970ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 8971ac_compiler_gnu=$ac_cv_c_compiler_gnu 8972{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 8973$as_echo_n "checking how to run the C preprocessor... " >&6; } 8974# On Suns, sometimes $CPP names a directory. 8975if test -n "$CPP" && test -d "$CPP"; then 8976 CPP= 8977fi 8978if test -z "$CPP"; then 8979 if ${ac_cv_prog_CPP+:} false; then : 8980 $as_echo_n "(cached) " >&6 8981else 8982 # Double quotes because CPP needs to be expanded 8983 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 8984 do 8985 ac_preproc_ok=false 8986for ac_c_preproc_warn_flag in '' yes 8987do 8988 # Use a header file that comes with gcc, so configuring glibc 8989 # with a fresh cross-compiler works. 8990 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 8991 # <limits.h> exists even on freestanding compilers. 8992 # On the NeXT, cc -E runs the code through the compiler's parser, 8993 # not just through cpp. "Syntax error" is here to catch this case. 8994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8995/* end confdefs.h. */ 8996#ifdef __STDC__ 8997# include <limits.h> 8998#else 8999# include <assert.h> 9000#endif 9001 Syntax error 9002_ACEOF 9003if ac_fn_c_try_cpp "$LINENO"; then : 9004 9005else 9006 # Broken: fails on valid input. 9007continue 9008fi 9009rm -f conftest.err conftest.i conftest.$ac_ext 9010 9011 # OK, works on sane cases. Now check whether nonexistent headers 9012 # can be detected and how. 9013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9014/* end confdefs.h. */ 9015#include <ac_nonexistent.h> 9016_ACEOF 9017if ac_fn_c_try_cpp "$LINENO"; then : 9018 # Broken: success on invalid input. 9019continue 9020else 9021 # Passes both tests. 9022ac_preproc_ok=: 9023break 9024fi 9025rm -f conftest.err conftest.i conftest.$ac_ext 9026 9027done 9028# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9029rm -f conftest.i conftest.err conftest.$ac_ext 9030if $ac_preproc_ok; then : 9031 break 9032fi 9033 9034 done 9035 ac_cv_prog_CPP=$CPP 9036 9037fi 9038 CPP=$ac_cv_prog_CPP 9039else 9040 ac_cv_prog_CPP=$CPP 9041fi 9042{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 9043$as_echo "$CPP" >&6; } 9044ac_preproc_ok=false 9045for ac_c_preproc_warn_flag in '' yes 9046do 9047 # Use a header file that comes with gcc, so configuring glibc 9048 # with a fresh cross-compiler works. 9049 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 9050 # <limits.h> exists even on freestanding compilers. 9051 # On the NeXT, cc -E runs the code through the compiler's parser, 9052 # not just through cpp. "Syntax error" is here to catch this case. 9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9054/* end confdefs.h. */ 9055#ifdef __STDC__ 9056# include <limits.h> 9057#else 9058# include <assert.h> 9059#endif 9060 Syntax error 9061_ACEOF 9062if ac_fn_c_try_cpp "$LINENO"; then : 9063 9064else 9065 # Broken: fails on valid input. 9066continue 9067fi 9068rm -f conftest.err conftest.i conftest.$ac_ext 9069 9070 # OK, works on sane cases. Now check whether nonexistent headers 9071 # can be detected and how. 9072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9073/* end confdefs.h. */ 9074#include <ac_nonexistent.h> 9075_ACEOF 9076if ac_fn_c_try_cpp "$LINENO"; then : 9077 # Broken: success on invalid input. 9078continue 9079else 9080 # Passes both tests. 9081ac_preproc_ok=: 9082break 9083fi 9084rm -f conftest.err conftest.i conftest.$ac_ext 9085 9086done 9087# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 9088rm -f conftest.i conftest.err conftest.$ac_ext 9089if $ac_preproc_ok; then : 9090 9091else 9092 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 9093$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 9094as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 9095See \`config.log' for more details" "$LINENO" 5; } 9096fi 9097 9098ac_ext=c 9099ac_cpp='$CPP $CPPFLAGS' 9100ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9101ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9102ac_compiler_gnu=$ac_cv_c_compiler_gnu 9103 9104 9105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 9106$as_echo_n "checking for ANSI C header files... " >&6; } 9107if ${ac_cv_header_stdc+:} false; then : 9108 $as_echo_n "(cached) " >&6 9109else 9110 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9111/* end confdefs.h. */ 9112#include <stdlib.h> 9113#include <stdarg.h> 9114#include <string.h> 9115#include <float.h> 9116 9117int 9118main () 9119{ 9120 9121 ; 9122 return 0; 9123} 9124_ACEOF 9125if ac_fn_c_try_compile "$LINENO"; then : 9126 ac_cv_header_stdc=yes 9127else 9128 ac_cv_header_stdc=no 9129fi 9130rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 9131 9132if test $ac_cv_header_stdc = yes; then 9133 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 9134 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9135/* end confdefs.h. */ 9136#include <string.h> 9137 9138_ACEOF 9139if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9140 $EGREP "memchr" >/dev/null 2>&1; then : 9141 9142else 9143 ac_cv_header_stdc=no 9144fi 9145rm -f conftest* 9146 9147fi 9148 9149if test $ac_cv_header_stdc = yes; then 9150 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 9151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9152/* end confdefs.h. */ 9153#include <stdlib.h> 9154 9155_ACEOF 9156if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 9157 $EGREP "free" >/dev/null 2>&1; then : 9158 9159else 9160 ac_cv_header_stdc=no 9161fi 9162rm -f conftest* 9163 9164fi 9165 9166if test $ac_cv_header_stdc = yes; then 9167 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 9168 if test "$cross_compiling" = yes; then : 9169 : 9170else 9171 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9172/* end confdefs.h. */ 9173#include <ctype.h> 9174#include <stdlib.h> 9175#if ((' ' & 0x0FF) == 0x020) 9176# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 9177# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 9178#else 9179# define ISLOWER(c) \ 9180 (('a' <= (c) && (c) <= 'i') \ 9181 || ('j' <= (c) && (c) <= 'r') \ 9182 || ('s' <= (c) && (c) <= 'z')) 9183# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 9184#endif 9185 9186#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 9187int 9188main () 9189{ 9190 int i; 9191 for (i = 0; i < 256; i++) 9192 if (XOR (islower (i), ISLOWER (i)) 9193 || toupper (i) != TOUPPER (i)) 9194 return 2; 9195 return 0; 9196} 9197_ACEOF 9198if ac_fn_c_try_run "$LINENO"; then : 9199 9200else 9201 ac_cv_header_stdc=no 9202fi 9203rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 9204 conftest.$ac_objext conftest.beam conftest.$ac_ext 9205fi 9206 9207fi 9208fi 9209{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 9210$as_echo "$ac_cv_header_stdc" >&6; } 9211if test $ac_cv_header_stdc = yes; then 9212 9213$as_echo "#define STDC_HEADERS 1" >>confdefs.h 9214 9215fi 9216 9217# On IRIX 5.3, sys/types and inttypes.h are conflicting. 9218for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 9219 inttypes.h stdint.h unistd.h 9220do : 9221 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 9222ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 9223" 9224if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 9225 cat >>confdefs.h <<_ACEOF 9226#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 9227_ACEOF 9228 9229fi 9230 9231done 9232 9233 9234for ac_header in dlfcn.h 9235do : 9236 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 9237" 9238if test "x$ac_cv_header_dlfcn_h" = xyes; then : 9239 cat >>confdefs.h <<_ACEOF 9240#define HAVE_DLFCN_H 1 9241_ACEOF 9242 9243fi 9244 9245done 9246 9247 9248 9249func_stripname_cnf () 9250{ 9251 case $2 in 9252 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 9253 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 9254 esac 9255} # func_stripname_cnf 9256 9257 9258 9259 9260 9261# Set options 9262 9263 9264 9265 enable_dlopen=no 9266 9267 9268 enable_win32_dll=no 9269 9270 9271 # Check whether --enable-shared was given. 9272if test "${enable_shared+set}" = set; then : 9273 enableval=$enable_shared; p=${PACKAGE-default} 9274 case $enableval in 9275 yes) enable_shared=yes ;; 9276 no) enable_shared=no ;; 9277 *) 9278 enable_shared=no 9279 # Look at the argument we got. We use all the common list separators. 9280 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9281 for pkg in $enableval; do 9282 IFS=$lt_save_ifs 9283 if test "X$pkg" = "X$p"; then 9284 enable_shared=yes 9285 fi 9286 done 9287 IFS=$lt_save_ifs 9288 ;; 9289 esac 9290else 9291 enable_shared=yes 9292fi 9293 9294 9295 9296 9297 9298 9299 9300 9301 9302 # Check whether --enable-static was given. 9303if test "${enable_static+set}" = set; then : 9304 enableval=$enable_static; p=${PACKAGE-default} 9305 case $enableval in 9306 yes) enable_static=yes ;; 9307 no) enable_static=no ;; 9308 *) 9309 enable_static=no 9310 # Look at the argument we got. We use all the common list separators. 9311 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9312 for pkg in $enableval; do 9313 IFS=$lt_save_ifs 9314 if test "X$pkg" = "X$p"; then 9315 enable_static=yes 9316 fi 9317 done 9318 IFS=$lt_save_ifs 9319 ;; 9320 esac 9321else 9322 enable_static=yes 9323fi 9324 9325 9326 9327 9328 9329 9330 9331 9332 9333 9334# Check whether --with-pic was given. 9335if test "${with_pic+set}" = set; then : 9336 withval=$with_pic; lt_p=${PACKAGE-default} 9337 case $withval in 9338 yes|no) pic_mode=$withval ;; 9339 *) 9340 pic_mode=default 9341 # Look at the argument we got. We use all the common list separators. 9342 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9343 for lt_pkg in $withval; do 9344 IFS=$lt_save_ifs 9345 if test "X$lt_pkg" = "X$lt_p"; then 9346 pic_mode=yes 9347 fi 9348 done 9349 IFS=$lt_save_ifs 9350 ;; 9351 esac 9352else 9353 pic_mode=default 9354fi 9355 9356 9357 9358 9359 9360 9361 9362 9363 # Check whether --enable-fast-install was given. 9364if test "${enable_fast_install+set}" = set; then : 9365 enableval=$enable_fast_install; p=${PACKAGE-default} 9366 case $enableval in 9367 yes) enable_fast_install=yes ;; 9368 no) enable_fast_install=no ;; 9369 *) 9370 enable_fast_install=no 9371 # Look at the argument we got. We use all the common list separators. 9372 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 9373 for pkg in $enableval; do 9374 IFS=$lt_save_ifs 9375 if test "X$pkg" = "X$p"; then 9376 enable_fast_install=yes 9377 fi 9378 done 9379 IFS=$lt_save_ifs 9380 ;; 9381 esac 9382else 9383 enable_fast_install=yes 9384fi 9385 9386 9387 9388 9389 9390 9391 9392 9393 shared_archive_member_spec= 9394case $host,$enable_shared in 9395power*-*-aix[5-9]*,yes) 9396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 9397$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 9398 9399# Check whether --with-aix-soname was given. 9400if test "${with_aix_soname+set}" = set; then : 9401 withval=$with_aix_soname; case $withval in 9402 aix|svr4|both) 9403 ;; 9404 *) 9405 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 9406 ;; 9407 esac 9408 lt_cv_with_aix_soname=$with_aix_soname 9409else 9410 if ${lt_cv_with_aix_soname+:} false; then : 9411 $as_echo_n "(cached) " >&6 9412else 9413 lt_cv_with_aix_soname=aix 9414fi 9415 9416 with_aix_soname=$lt_cv_with_aix_soname 9417fi 9418 9419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 9420$as_echo "$with_aix_soname" >&6; } 9421 if test aix != "$with_aix_soname"; then 9422 # For the AIX way of multilib, we name the shared archive member 9423 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 9424 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 9425 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 9426 # the AIX toolchain works better with OBJECT_MODE set (default 32). 9427 if test 64 = "${OBJECT_MODE-32}"; then 9428 shared_archive_member_spec=shr_64 9429 else 9430 shared_archive_member_spec=shr 9431 fi 9432 fi 9433 ;; 9434*) 9435 with_aix_soname=aix 9436 ;; 9437esac 9438 9439 9440 9441 9442 9443 9444 9445 9446 9447 9448# This can be used to rebuild libtool when needed 9449LIBTOOL_DEPS=$ltmain 9450 9451# Always use our own libtool. 9452LIBTOOL='$(SHELL) $(top_builddir)/libtool' 9453 9454 9455 9456 9457 9458 9459 9460 9461 9462 9463 9464 9465 9466 9467 9468 9469 9470 9471 9472 9473 9474 9475 9476 9477 9478 9479 9480 9481 9482 9483test -z "$LN_S" && LN_S="ln -s" 9484 9485 9486 9487 9488 9489 9490 9491 9492 9493 9494 9495 9496 9497 9498if test -n "${ZSH_VERSION+set}"; then 9499 setopt NO_GLOB_SUBST 9500fi 9501 9502{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 9503$as_echo_n "checking for objdir... " >&6; } 9504if ${lt_cv_objdir+:} false; then : 9505 $as_echo_n "(cached) " >&6 9506else 9507 rm -f .libs 2>/dev/null 9508mkdir .libs 2>/dev/null 9509if test -d .libs; then 9510 lt_cv_objdir=.libs 9511else 9512 # MS-DOS does not allow filenames that begin with a dot. 9513 lt_cv_objdir=_libs 9514fi 9515rmdir .libs 2>/dev/null 9516fi 9517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 9518$as_echo "$lt_cv_objdir" >&6; } 9519objdir=$lt_cv_objdir 9520 9521 9522 9523 9524 9525cat >>confdefs.h <<_ACEOF 9526#define LT_OBJDIR "$lt_cv_objdir/" 9527_ACEOF 9528 9529 9530 9531 9532case $host_os in 9533aix3*) 9534 # AIX sometimes has problems with the GCC collect2 program. For some 9535 # reason, if we set the COLLECT_NAMES environment variable, the problems 9536 # vanish in a puff of smoke. 9537 if test set != "${COLLECT_NAMES+set}"; then 9538 COLLECT_NAMES= 9539 export COLLECT_NAMES 9540 fi 9541 ;; 9542esac 9543 9544# Global variables: 9545ofile=libtool 9546can_build_shared=yes 9547 9548# All known linkers require a '.a' archive for static linking (except MSVC, 9549# which needs '.lib'). 9550libext=a 9551 9552with_gnu_ld=$lt_cv_prog_gnu_ld 9553 9554old_CC=$CC 9555old_CFLAGS=$CFLAGS 9556 9557# Set sane defaults for various variables 9558test -z "$CC" && CC=cc 9559test -z "$LTCC" && LTCC=$CC 9560test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 9561test -z "$LD" && LD=ld 9562test -z "$ac_objext" && ac_objext=o 9563 9564func_cc_basename $compiler 9565cc_basename=$func_cc_basename_result 9566 9567 9568# Only perform the check for file, if the check method requires it 9569test -z "$MAGIC_CMD" && MAGIC_CMD=file 9570case $deplibs_check_method in 9571file_magic*) 9572 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 9573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 9574$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 9575if ${lt_cv_path_MAGIC_CMD+:} false; then : 9576 $as_echo_n "(cached) " >&6 9577else 9578 case $MAGIC_CMD in 9579[\\/*] | ?:[\\/]*) 9580 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9581 ;; 9582*) 9583 lt_save_MAGIC_CMD=$MAGIC_CMD 9584 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9585 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9586 for ac_dir in $ac_dummy; do 9587 IFS=$lt_save_ifs 9588 test -z "$ac_dir" && ac_dir=. 9589 if test -f "$ac_dir/${ac_tool_prefix}file"; then 9590 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 9591 if test -n "$file_magic_test_file"; then 9592 case $deplibs_check_method in 9593 "file_magic "*) 9594 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9595 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9596 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9597 $EGREP "$file_magic_regex" > /dev/null; then 9598 : 9599 else 9600 cat <<_LT_EOF 1>&2 9601 9602*** Warning: the command libtool uses to detect shared libraries, 9603*** $file_magic_cmd, produces output that libtool cannot recognize. 9604*** The result is that libtool may fail to recognize shared libraries 9605*** as such. This will affect the creation of libtool libraries that 9606*** depend on shared libraries, but programs linked with such libtool 9607*** libraries will work regardless of this problem. Nevertheless, you 9608*** may want to report the problem to your system manager and/or to 9609*** bug-libtool@gnu.org 9610 9611_LT_EOF 9612 fi ;; 9613 esac 9614 fi 9615 break 9616 fi 9617 done 9618 IFS=$lt_save_ifs 9619 MAGIC_CMD=$lt_save_MAGIC_CMD 9620 ;; 9621esac 9622fi 9623 9624MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9625if test -n "$MAGIC_CMD"; then 9626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9627$as_echo "$MAGIC_CMD" >&6; } 9628else 9629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9630$as_echo "no" >&6; } 9631fi 9632 9633 9634 9635 9636 9637if test -z "$lt_cv_path_MAGIC_CMD"; then 9638 if test -n "$ac_tool_prefix"; then 9639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 9640$as_echo_n "checking for file... " >&6; } 9641if ${lt_cv_path_MAGIC_CMD+:} false; then : 9642 $as_echo_n "(cached) " >&6 9643else 9644 case $MAGIC_CMD in 9645[\\/*] | ?:[\\/]*) 9646 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 9647 ;; 9648*) 9649 lt_save_MAGIC_CMD=$MAGIC_CMD 9650 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 9651 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 9652 for ac_dir in $ac_dummy; do 9653 IFS=$lt_save_ifs 9654 test -z "$ac_dir" && ac_dir=. 9655 if test -f "$ac_dir/file"; then 9656 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 9657 if test -n "$file_magic_test_file"; then 9658 case $deplibs_check_method in 9659 "file_magic "*) 9660 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 9661 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9662 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 9663 $EGREP "$file_magic_regex" > /dev/null; then 9664 : 9665 else 9666 cat <<_LT_EOF 1>&2 9667 9668*** Warning: the command libtool uses to detect shared libraries, 9669*** $file_magic_cmd, produces output that libtool cannot recognize. 9670*** The result is that libtool may fail to recognize shared libraries 9671*** as such. This will affect the creation of libtool libraries that 9672*** depend on shared libraries, but programs linked with such libtool 9673*** libraries will work regardless of this problem. Nevertheless, you 9674*** may want to report the problem to your system manager and/or to 9675*** bug-libtool@gnu.org 9676 9677_LT_EOF 9678 fi ;; 9679 esac 9680 fi 9681 break 9682 fi 9683 done 9684 IFS=$lt_save_ifs 9685 MAGIC_CMD=$lt_save_MAGIC_CMD 9686 ;; 9687esac 9688fi 9689 9690MAGIC_CMD=$lt_cv_path_MAGIC_CMD 9691if test -n "$MAGIC_CMD"; then 9692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 9693$as_echo "$MAGIC_CMD" >&6; } 9694else 9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 9696$as_echo "no" >&6; } 9697fi 9698 9699 9700 else 9701 MAGIC_CMD=: 9702 fi 9703fi 9704 9705 fi 9706 ;; 9707esac 9708 9709# Use C for the default configuration in the libtool script 9710 9711lt_save_CC=$CC 9712ac_ext=c 9713ac_cpp='$CPP $CPPFLAGS' 9714ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 9715ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 9716ac_compiler_gnu=$ac_cv_c_compiler_gnu 9717 9718 9719# Source file extension for C test sources. 9720ac_ext=c 9721 9722# Object file extension for compiled C test sources. 9723objext=o 9724objext=$objext 9725 9726# Code to be used in simple compile tests 9727lt_simple_compile_test_code="int some_variable = 0;" 9728 9729# Code to be used in simple link tests 9730lt_simple_link_test_code='int main(){return(0);}' 9731 9732 9733 9734 9735 9736 9737 9738# If no C compiler was specified, use CC. 9739LTCC=${LTCC-"$CC"} 9740 9741# If no C compiler flags were specified, use CFLAGS. 9742LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 9743 9744# Allow CC to be a program name with arguments. 9745compiler=$CC 9746 9747# Save the default compiler, since it gets overwritten when the other 9748# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 9749compiler_DEFAULT=$CC 9750 9751# save warnings/boilerplate of simple test code 9752ac_outfile=conftest.$ac_objext 9753echo "$lt_simple_compile_test_code" >conftest.$ac_ext 9754eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9755_lt_compiler_boilerplate=`cat conftest.err` 9756$RM conftest* 9757 9758ac_outfile=conftest.$ac_objext 9759echo "$lt_simple_link_test_code" >conftest.$ac_ext 9760eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 9761_lt_linker_boilerplate=`cat conftest.err` 9762$RM -r conftest* 9763 9764 9765## CAVEAT EMPTOR: 9766## There is no encapsulation within the following macros, do not change 9767## the running order or otherwise move them around unless you know exactly 9768## what you are doing... 9769if test -n "$compiler"; then 9770 9771lt_prog_compiler_no_builtin_flag= 9772 9773if test yes = "$GCC"; then 9774 case $cc_basename in 9775 nvcc*) 9776 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 9777 *) 9778 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 9779 esac 9780 9781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 9782$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 9783if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 9784 $as_echo_n "(cached) " >&6 9785else 9786 lt_cv_prog_compiler_rtti_exceptions=no 9787 ac_outfile=conftest.$ac_objext 9788 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9789 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 9790 # Insert the option either (1) after the last *FLAGS variable, or 9791 # (2) before a word containing "conftest.", or (3) at the end. 9792 # Note that $ac_compile itself does not contain backslashes and begins 9793 # with a dollar sign (not a hyphen), so the echo should work correctly. 9794 # The option is referenced via a variable to avoid confusing sed. 9795 lt_compile=`echo "$ac_compile" | $SED \ 9796 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 9797 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 9798 -e 's:$: $lt_compiler_flag:'` 9799 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 9800 (eval "$lt_compile" 2>conftest.err) 9801 ac_status=$? 9802 cat conftest.err >&5 9803 echo "$as_me:$LINENO: \$? = $ac_status" >&5 9804 if (exit $ac_status) && test -s "$ac_outfile"; then 9805 # The compiler can only warn and ignore the option if not recognized 9806 # So say no if there are warnings other than the usual output. 9807 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 9808 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9809 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 9810 lt_cv_prog_compiler_rtti_exceptions=yes 9811 fi 9812 fi 9813 $RM conftest* 9814 9815fi 9816{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 9817$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 9818 9819if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 9820 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 9821else 9822 : 9823fi 9824 9825fi 9826 9827 9828 9829 9830 9831 9832 lt_prog_compiler_wl= 9833lt_prog_compiler_pic= 9834lt_prog_compiler_static= 9835 9836 9837 if test yes = "$GCC"; then 9838 lt_prog_compiler_wl='-Wl,' 9839 lt_prog_compiler_static='-static' 9840 9841 case $host_os in 9842 aix*) 9843 # All AIX code is PIC. 9844 if test ia64 = "$host_cpu"; then 9845 # AIX 5 now supports IA64 processor 9846 lt_prog_compiler_static='-Bstatic' 9847 fi 9848 lt_prog_compiler_pic='-fPIC' 9849 ;; 9850 9851 amigaos*) 9852 case $host_cpu in 9853 powerpc) 9854 # see comment about AmigaOS4 .so support 9855 lt_prog_compiler_pic='-fPIC' 9856 ;; 9857 m68k) 9858 # FIXME: we need at least 68020 code to build shared libraries, but 9859 # adding the '-m68020' flag to GCC prevents building anything better, 9860 # like '-m68040'. 9861 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 9862 ;; 9863 esac 9864 ;; 9865 9866 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 9867 # PIC is the default for these OSes. 9868 ;; 9869 9870 mingw* | cygwin* | pw32* | os2* | cegcc*) 9871 # This hack is so that the source file can tell whether it is being 9872 # built for inclusion in a dll (and should export symbols for example). 9873 # Although the cygwin gcc ignores -fPIC, still need this for old-style 9874 # (--disable-auto-import) libraries 9875 lt_prog_compiler_pic='-DDLL_EXPORT' 9876 case $host_os in 9877 os2*) 9878 lt_prog_compiler_static='$wl-static' 9879 ;; 9880 esac 9881 ;; 9882 9883 darwin* | rhapsody*) 9884 # PIC is the default on this platform 9885 # Common symbols not allowed in MH_DYLIB files 9886 lt_prog_compiler_pic='-fno-common' 9887 ;; 9888 9889 haiku*) 9890 # PIC is the default for Haiku. 9891 # The "-static" flag exists, but is broken. 9892 lt_prog_compiler_static= 9893 ;; 9894 9895 hpux*) 9896 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 9897 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 9898 # sets the default TLS model and affects inlining. 9899 case $host_cpu in 9900 hppa*64*) 9901 # +Z the default 9902 ;; 9903 *) 9904 lt_prog_compiler_pic='-fPIC' 9905 ;; 9906 esac 9907 ;; 9908 9909 interix[3-9]*) 9910 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 9911 # Instead, we relocate shared libraries at runtime. 9912 ;; 9913 9914 msdosdjgpp*) 9915 # Just because we use GCC doesn't mean we suddenly get shared libraries 9916 # on systems that don't support them. 9917 lt_prog_compiler_can_build_shared=no 9918 enable_shared=no 9919 ;; 9920 9921 *nto* | *qnx*) 9922 # QNX uses GNU C++, but need to define -shared option too, otherwise 9923 # it will coredump. 9924 lt_prog_compiler_pic='-fPIC -shared' 9925 ;; 9926 9927 sysv4*MP*) 9928 if test -d /usr/nec; then 9929 lt_prog_compiler_pic=-Kconform_pic 9930 fi 9931 ;; 9932 9933 *) 9934 lt_prog_compiler_pic='-fPIC' 9935 ;; 9936 esac 9937 9938 case $cc_basename in 9939 nvcc*) # Cuda Compiler Driver 2.2 9940 lt_prog_compiler_wl='-Xlinker ' 9941 if test -n "$lt_prog_compiler_pic"; then 9942 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 9943 fi 9944 ;; 9945 esac 9946 else 9947 # PORTME Check for flag to pass linker flags through the system compiler. 9948 case $host_os in 9949 aix*) 9950 lt_prog_compiler_wl='-Wl,' 9951 if test ia64 = "$host_cpu"; then 9952 # AIX 5 now supports IA64 processor 9953 lt_prog_compiler_static='-Bstatic' 9954 else 9955 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 9956 fi 9957 ;; 9958 9959 darwin* | rhapsody*) 9960 # PIC is the default on this platform 9961 # Common symbols not allowed in MH_DYLIB files 9962 lt_prog_compiler_pic='-fno-common' 9963 case $cc_basename in 9964 nagfor*) 9965 # NAG Fortran compiler 9966 lt_prog_compiler_wl='-Wl,-Wl,,' 9967 lt_prog_compiler_pic='-PIC' 9968 lt_prog_compiler_static='-Bstatic' 9969 ;; 9970 esac 9971 ;; 9972 9973 mingw* | cygwin* | pw32* | os2* | cegcc*) 9974 # This hack is so that the source file can tell whether it is being 9975 # built for inclusion in a dll (and should export symbols for example). 9976 lt_prog_compiler_pic='-DDLL_EXPORT' 9977 case $host_os in 9978 os2*) 9979 lt_prog_compiler_static='$wl-static' 9980 ;; 9981 esac 9982 ;; 9983 9984 hpux9* | hpux10* | hpux11*) 9985 lt_prog_compiler_wl='-Wl,' 9986 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 9987 # not for PA HP-UX. 9988 case $host_cpu in 9989 hppa*64*|ia64*) 9990 # +Z the default 9991 ;; 9992 *) 9993 lt_prog_compiler_pic='+Z' 9994 ;; 9995 esac 9996 # Is there a better lt_prog_compiler_static that works with the bundled CC? 9997 lt_prog_compiler_static='$wl-a ${wl}archive' 9998 ;; 9999 10000 irix5* | irix6* | nonstopux*) 10001 lt_prog_compiler_wl='-Wl,' 10002 # PIC (with -KPIC) is the default. 10003 lt_prog_compiler_static='-non_shared' 10004 ;; 10005 10006 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10007 case $cc_basename in 10008 # old Intel for x86_64, which still supported -KPIC. 10009 ecc*) 10010 lt_prog_compiler_wl='-Wl,' 10011 lt_prog_compiler_pic='-KPIC' 10012 lt_prog_compiler_static='-static' 10013 ;; 10014 # icc used to be incompatible with GCC. 10015 # ICC 10 doesn't accept -KPIC any more. 10016 icc* | ifort*) 10017 lt_prog_compiler_wl='-Wl,' 10018 lt_prog_compiler_pic='-fPIC' 10019 lt_prog_compiler_static='-static' 10020 ;; 10021 # Lahey Fortran 8.1. 10022 lf95*) 10023 lt_prog_compiler_wl='-Wl,' 10024 lt_prog_compiler_pic='--shared' 10025 lt_prog_compiler_static='--static' 10026 ;; 10027 nagfor*) 10028 # NAG Fortran compiler 10029 lt_prog_compiler_wl='-Wl,-Wl,,' 10030 lt_prog_compiler_pic='-PIC' 10031 lt_prog_compiler_static='-Bstatic' 10032 ;; 10033 tcc*) 10034 # Fabrice Bellard et al's Tiny C Compiler 10035 lt_prog_compiler_wl='-Wl,' 10036 lt_prog_compiler_pic='-fPIC' 10037 lt_prog_compiler_static='-static' 10038 ;; 10039 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 10040 # Portland Group compilers (*not* the Pentium gcc compiler, 10041 # which looks to be a dead project) 10042 lt_prog_compiler_wl='-Wl,' 10043 lt_prog_compiler_pic='-fpic' 10044 lt_prog_compiler_static='-Bstatic' 10045 ;; 10046 ccc*) 10047 lt_prog_compiler_wl='-Wl,' 10048 # All Alpha code is PIC. 10049 lt_prog_compiler_static='-non_shared' 10050 ;; 10051 xl* | bgxl* | bgf* | mpixl*) 10052 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 10053 lt_prog_compiler_wl='-Wl,' 10054 lt_prog_compiler_pic='-qpic' 10055 lt_prog_compiler_static='-qstaticlink' 10056 ;; 10057 *) 10058 case `$CC -V 2>&1 | sed 5q` in 10059 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 10060 # Sun Fortran 8.3 passes all unrecognized flags to the linker 10061 lt_prog_compiler_pic='-KPIC' 10062 lt_prog_compiler_static='-Bstatic' 10063 lt_prog_compiler_wl='' 10064 ;; 10065 *Sun\ F* | *Sun*Fortran*) 10066 lt_prog_compiler_pic='-KPIC' 10067 lt_prog_compiler_static='-Bstatic' 10068 lt_prog_compiler_wl='-Qoption ld ' 10069 ;; 10070 *Sun\ C*) 10071 # Sun C 5.9 10072 lt_prog_compiler_pic='-KPIC' 10073 lt_prog_compiler_static='-Bstatic' 10074 lt_prog_compiler_wl='-Wl,' 10075 ;; 10076 *Intel*\ [CF]*Compiler*) 10077 lt_prog_compiler_wl='-Wl,' 10078 lt_prog_compiler_pic='-fPIC' 10079 lt_prog_compiler_static='-static' 10080 ;; 10081 *Portland\ Group*) 10082 lt_prog_compiler_wl='-Wl,' 10083 lt_prog_compiler_pic='-fpic' 10084 lt_prog_compiler_static='-Bstatic' 10085 ;; 10086 esac 10087 ;; 10088 esac 10089 ;; 10090 10091 newsos6) 10092 lt_prog_compiler_pic='-KPIC' 10093 lt_prog_compiler_static='-Bstatic' 10094 ;; 10095 10096 *nto* | *qnx*) 10097 # QNX uses GNU C++, but need to define -shared option too, otherwise 10098 # it will coredump. 10099 lt_prog_compiler_pic='-fPIC -shared' 10100 ;; 10101 10102 osf3* | osf4* | osf5*) 10103 lt_prog_compiler_wl='-Wl,' 10104 # All OSF/1 code is PIC. 10105 lt_prog_compiler_static='-non_shared' 10106 ;; 10107 10108 rdos*) 10109 lt_prog_compiler_static='-non_shared' 10110 ;; 10111 10112 solaris*) 10113 lt_prog_compiler_pic='-KPIC' 10114 lt_prog_compiler_static='-Bstatic' 10115 case $cc_basename in 10116 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 10117 lt_prog_compiler_wl='-Qoption ld ';; 10118 *) 10119 lt_prog_compiler_wl='-Wl,';; 10120 esac 10121 ;; 10122 10123 sunos4*) 10124 lt_prog_compiler_wl='-Qoption ld ' 10125 lt_prog_compiler_pic='-PIC' 10126 lt_prog_compiler_static='-Bstatic' 10127 ;; 10128 10129 sysv4 | sysv4.2uw2* | sysv4.3*) 10130 lt_prog_compiler_wl='-Wl,' 10131 lt_prog_compiler_pic='-KPIC' 10132 lt_prog_compiler_static='-Bstatic' 10133 ;; 10134 10135 sysv4*MP*) 10136 if test -d /usr/nec; then 10137 lt_prog_compiler_pic='-Kconform_pic' 10138 lt_prog_compiler_static='-Bstatic' 10139 fi 10140 ;; 10141 10142 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 10143 lt_prog_compiler_wl='-Wl,' 10144 lt_prog_compiler_pic='-KPIC' 10145 lt_prog_compiler_static='-Bstatic' 10146 ;; 10147 10148 unicos*) 10149 lt_prog_compiler_wl='-Wl,' 10150 lt_prog_compiler_can_build_shared=no 10151 ;; 10152 10153 uts4*) 10154 lt_prog_compiler_pic='-pic' 10155 lt_prog_compiler_static='-Bstatic' 10156 ;; 10157 10158 *) 10159 lt_prog_compiler_can_build_shared=no 10160 ;; 10161 esac 10162 fi 10163 10164case $host_os in 10165 # For platforms that do not support PIC, -DPIC is meaningless: 10166 *djgpp*) 10167 lt_prog_compiler_pic= 10168 ;; 10169 *) 10170 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 10171 ;; 10172esac 10173 10174{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 10175$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 10176if ${lt_cv_prog_compiler_pic+:} false; then : 10177 $as_echo_n "(cached) " >&6 10178else 10179 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 10180fi 10181{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 10182$as_echo "$lt_cv_prog_compiler_pic" >&6; } 10183lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 10184 10185# 10186# Check to make sure the PIC flag actually works. 10187# 10188if test -n "$lt_prog_compiler_pic"; then 10189 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 10190$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 10191if ${lt_cv_prog_compiler_pic_works+:} false; then : 10192 $as_echo_n "(cached) " >&6 10193else 10194 lt_cv_prog_compiler_pic_works=no 10195 ac_outfile=conftest.$ac_objext 10196 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10197 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 10198 # Insert the option either (1) after the last *FLAGS variable, or 10199 # (2) before a word containing "conftest.", or (3) at the end. 10200 # Note that $ac_compile itself does not contain backslashes and begins 10201 # with a dollar sign (not a hyphen), so the echo should work correctly. 10202 # The option is referenced via a variable to avoid confusing sed. 10203 lt_compile=`echo "$ac_compile" | $SED \ 10204 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10205 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10206 -e 's:$: $lt_compiler_flag:'` 10207 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10208 (eval "$lt_compile" 2>conftest.err) 10209 ac_status=$? 10210 cat conftest.err >&5 10211 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10212 if (exit $ac_status) && test -s "$ac_outfile"; then 10213 # The compiler can only warn and ignore the option if not recognized 10214 # So say no if there are warnings other than the usual output. 10215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 10216 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10217 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 10218 lt_cv_prog_compiler_pic_works=yes 10219 fi 10220 fi 10221 $RM conftest* 10222 10223fi 10224{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 10225$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 10226 10227if test yes = "$lt_cv_prog_compiler_pic_works"; then 10228 case $lt_prog_compiler_pic in 10229 "" | " "*) ;; 10230 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 10231 esac 10232else 10233 lt_prog_compiler_pic= 10234 lt_prog_compiler_can_build_shared=no 10235fi 10236 10237fi 10238 10239 10240 10241 10242 10243 10244 10245 10246 10247 10248 10249# 10250# Check to make sure the static flag actually works. 10251# 10252wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 10253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 10254$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 10255if ${lt_cv_prog_compiler_static_works+:} false; then : 10256 $as_echo_n "(cached) " >&6 10257else 10258 lt_cv_prog_compiler_static_works=no 10259 save_LDFLAGS=$LDFLAGS 10260 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 10261 echo "$lt_simple_link_test_code" > conftest.$ac_ext 10262 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 10263 # The linker can only warn and ignore the option if not recognized 10264 # So say no if there are warnings 10265 if test -s conftest.err; then 10266 # Append any errors to the config.log. 10267 cat conftest.err 1>&5 10268 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 10269 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 10270 if diff conftest.exp conftest.er2 >/dev/null; then 10271 lt_cv_prog_compiler_static_works=yes 10272 fi 10273 else 10274 lt_cv_prog_compiler_static_works=yes 10275 fi 10276 fi 10277 $RM -r conftest* 10278 LDFLAGS=$save_LDFLAGS 10279 10280fi 10281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 10282$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 10283 10284if test yes = "$lt_cv_prog_compiler_static_works"; then 10285 : 10286else 10287 lt_prog_compiler_static= 10288fi 10289 10290 10291 10292 10293 10294 10295 10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10297$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10298if ${lt_cv_prog_compiler_c_o+:} false; then : 10299 $as_echo_n "(cached) " >&6 10300else 10301 lt_cv_prog_compiler_c_o=no 10302 $RM -r conftest 2>/dev/null 10303 mkdir conftest 10304 cd conftest 10305 mkdir out 10306 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10307 10308 lt_compiler_flag="-o out/conftest2.$ac_objext" 10309 # Insert the option either (1) after the last *FLAGS variable, or 10310 # (2) before a word containing "conftest.", or (3) at the end. 10311 # Note that $ac_compile itself does not contain backslashes and begins 10312 # with a dollar sign (not a hyphen), so the echo should work correctly. 10313 lt_compile=`echo "$ac_compile" | $SED \ 10314 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10315 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10316 -e 's:$: $lt_compiler_flag:'` 10317 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10318 (eval "$lt_compile" 2>out/conftest.err) 10319 ac_status=$? 10320 cat out/conftest.err >&5 10321 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10322 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10323 then 10324 # The compiler can only warn and ignore the option if not recognized 10325 # So say no if there are warnings 10326 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10327 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10328 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10329 lt_cv_prog_compiler_c_o=yes 10330 fi 10331 fi 10332 chmod u+w . 2>&5 10333 $RM conftest* 10334 # SGI C++ compiler will create directory out/ii_files/ for 10335 # template instantiation 10336 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10337 $RM out/* && rmdir out 10338 cd .. 10339 $RM -r conftest 10340 $RM conftest* 10341 10342fi 10343{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10344$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10345 10346 10347 10348 10349 10350 10351 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 10352$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 10353if ${lt_cv_prog_compiler_c_o+:} false; then : 10354 $as_echo_n "(cached) " >&6 10355else 10356 lt_cv_prog_compiler_c_o=no 10357 $RM -r conftest 2>/dev/null 10358 mkdir conftest 10359 cd conftest 10360 mkdir out 10361 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 10362 10363 lt_compiler_flag="-o out/conftest2.$ac_objext" 10364 # Insert the option either (1) after the last *FLAGS variable, or 10365 # (2) before a word containing "conftest.", or (3) at the end. 10366 # Note that $ac_compile itself does not contain backslashes and begins 10367 # with a dollar sign (not a hyphen), so the echo should work correctly. 10368 lt_compile=`echo "$ac_compile" | $SED \ 10369 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 10370 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 10371 -e 's:$: $lt_compiler_flag:'` 10372 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 10373 (eval "$lt_compile" 2>out/conftest.err) 10374 ac_status=$? 10375 cat out/conftest.err >&5 10376 echo "$as_me:$LINENO: \$? = $ac_status" >&5 10377 if (exit $ac_status) && test -s out/conftest2.$ac_objext 10378 then 10379 # The compiler can only warn and ignore the option if not recognized 10380 # So say no if there are warnings 10381 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 10382 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 10383 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 10384 lt_cv_prog_compiler_c_o=yes 10385 fi 10386 fi 10387 chmod u+w . 2>&5 10388 $RM conftest* 10389 # SGI C++ compiler will create directory out/ii_files/ for 10390 # template instantiation 10391 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 10392 $RM out/* && rmdir out 10393 cd .. 10394 $RM -r conftest 10395 $RM conftest* 10396 10397fi 10398{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 10399$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 10400 10401 10402 10403 10404hard_links=nottested 10405if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 10406 # do not overwrite the value of need_locks provided by the user 10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 10408$as_echo_n "checking if we can lock with hard links... " >&6; } 10409 hard_links=yes 10410 $RM conftest* 10411 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10412 touch conftest.a 10413 ln conftest.a conftest.b 2>&5 || hard_links=no 10414 ln conftest.a conftest.b 2>/dev/null && hard_links=no 10415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 10416$as_echo "$hard_links" >&6; } 10417 if test no = "$hard_links"; then 10418 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 10419$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 10420 need_locks=warn 10421 fi 10422else 10423 need_locks=no 10424fi 10425 10426 10427 10428 10429 10430 10431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 10432$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 10433 10434 runpath_var= 10435 allow_undefined_flag= 10436 always_export_symbols=no 10437 archive_cmds= 10438 archive_expsym_cmds= 10439 compiler_needs_object=no 10440 enable_shared_with_static_runtimes=no 10441 export_dynamic_flag_spec= 10442 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 10443 hardcode_automatic=no 10444 hardcode_direct=no 10445 hardcode_direct_absolute=no 10446 hardcode_libdir_flag_spec= 10447 hardcode_libdir_separator= 10448 hardcode_minus_L=no 10449 hardcode_shlibpath_var=unsupported 10450 inherit_rpath=no 10451 link_all_deplibs=unknown 10452 module_cmds= 10453 module_expsym_cmds= 10454 old_archive_from_new_cmds= 10455 old_archive_from_expsyms_cmds= 10456 thread_safe_flag_spec= 10457 whole_archive_flag_spec= 10458 # include_expsyms should be a list of space-separated symbols to be *always* 10459 # included in the symbol list 10460 include_expsyms= 10461 # exclude_expsyms can be an extended regexp of symbols to exclude 10462 # it will be wrapped by ' (' and ')$', so one must not match beginning or 10463 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 10464 # as well as any symbol that contains 'd'. 10465 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 10466 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 10467 # platforms (ab)use it in PIC code, but their linkers get confused if 10468 # the symbol is explicitly referenced. Since portable code cannot 10469 # rely on this symbol name, it's probably fine to never include it in 10470 # preloaded symbol tables. 10471 # Exclude shared library initialization/finalization symbols. 10472 extract_expsyms_cmds= 10473 10474 case $host_os in 10475 cygwin* | mingw* | pw32* | cegcc*) 10476 # FIXME: the MSVC++ port hasn't been tested in a loooong time 10477 # When not using gcc, we currently assume that we are using 10478 # Microsoft Visual C++. 10479 if test yes != "$GCC"; then 10480 with_gnu_ld=no 10481 fi 10482 ;; 10483 interix*) 10484 # we just hope/assume this is gcc and not c89 (= MSVC++) 10485 with_gnu_ld=yes 10486 ;; 10487 openbsd* | bitrig*) 10488 with_gnu_ld=no 10489 ;; 10490 esac 10491 10492 ld_shlibs=yes 10493 10494 # On some targets, GNU ld is compatible enough with the native linker 10495 # that we're better off using the native interface for both. 10496 lt_use_gnu_ld_interface=no 10497 if test yes = "$with_gnu_ld"; then 10498 case $host_os in 10499 aix*) 10500 # The AIX port of GNU ld has always aspired to compatibility 10501 # with the native linker. However, as the warning in the GNU ld 10502 # block says, versions before 2.19.5* couldn't really create working 10503 # shared libraries, regardless of the interface used. 10504 case `$LD -v 2>&1` in 10505 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 10506 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 10507 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 10508 *) 10509 lt_use_gnu_ld_interface=yes 10510 ;; 10511 esac 10512 ;; 10513 *) 10514 lt_use_gnu_ld_interface=yes 10515 ;; 10516 esac 10517 fi 10518 10519 if test yes = "$lt_use_gnu_ld_interface"; then 10520 # If archive_cmds runs LD, not CC, wlarc should be empty 10521 wlarc='$wl' 10522 10523 # Set some defaults for GNU ld with shared library support. These 10524 # are reset later if shared libraries are not supported. Putting them 10525 # here allows them to be overridden if necessary. 10526 runpath_var=LD_RUN_PATH 10527 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10528 export_dynamic_flag_spec='$wl--export-dynamic' 10529 # ancient GNU ld didn't support --whole-archive et. al. 10530 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 10531 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 10532 else 10533 whole_archive_flag_spec= 10534 fi 10535 supports_anon_versioning=no 10536 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 10537 *GNU\ gold*) supports_anon_versioning=yes ;; 10538 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 10539 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 10540 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 10541 *\ 2.11.*) ;; # other 2.11 versions 10542 *) supports_anon_versioning=yes ;; 10543 esac 10544 10545 # See if GNU ld supports shared libraries. 10546 case $host_os in 10547 aix[3-9]*) 10548 # On AIX/PPC, the GNU linker is very broken 10549 if test ia64 != "$host_cpu"; then 10550 ld_shlibs=no 10551 cat <<_LT_EOF 1>&2 10552 10553*** Warning: the GNU linker, at least up to release 2.19, is reported 10554*** to be unable to reliably create shared libraries on AIX. 10555*** Therefore, libtool is disabling shared libraries support. If you 10556*** really care for shared libraries, you may want to install binutils 10557*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 10558*** You will then need to restart the configuration process. 10559 10560_LT_EOF 10561 fi 10562 ;; 10563 10564 amigaos*) 10565 case $host_cpu in 10566 powerpc) 10567 # see comment about AmigaOS4 .so support 10568 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10569 archive_expsym_cmds='' 10570 ;; 10571 m68k) 10572 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)' 10573 hardcode_libdir_flag_spec='-L$libdir' 10574 hardcode_minus_L=yes 10575 ;; 10576 esac 10577 ;; 10578 10579 beos*) 10580 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10581 allow_undefined_flag=unsupported 10582 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 10583 # support --undefined. This deserves some investigation. FIXME 10584 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10585 else 10586 ld_shlibs=no 10587 fi 10588 ;; 10589 10590 cygwin* | mingw* | pw32* | cegcc*) 10591 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 10592 # as there is no search path for DLLs. 10593 hardcode_libdir_flag_spec='-L$libdir' 10594 export_dynamic_flag_spec='$wl--export-all-symbols' 10595 allow_undefined_flag=unsupported 10596 always_export_symbols=no 10597 enable_shared_with_static_runtimes=yes 10598 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 10599 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 10600 10601 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 10602 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10603 # If the export-symbols file already is a .def file, use it as 10604 # is; otherwise, prepend EXPORTS... 10605 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 10606 cp $export_symbols $output_objdir/$soname.def; 10607 else 10608 echo EXPORTS > $output_objdir/$soname.def; 10609 cat $export_symbols >> $output_objdir/$soname.def; 10610 fi~ 10611 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 10612 else 10613 ld_shlibs=no 10614 fi 10615 ;; 10616 10617 haiku*) 10618 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10619 link_all_deplibs=yes 10620 ;; 10621 10622 os2*) 10623 hardcode_libdir_flag_spec='-L$libdir' 10624 hardcode_minus_L=yes 10625 allow_undefined_flag=unsupported 10626 shrext_cmds=.dll 10627 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10628 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10629 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10630 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10631 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 10632 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10633 emximp -o $lib $output_objdir/$libname.def' 10634 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 10635 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 10636 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 10637 $ECHO EXPORTS >> $output_objdir/$libname.def~ 10638 prefix_cmds="$SED"~ 10639 if test EXPORTS = "`$SED 1q $export_symbols`"; then 10640 prefix_cmds="$prefix_cmds -e 1d"; 10641 fi~ 10642 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 10643 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 10644 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 10645 emximp -o $lib $output_objdir/$libname.def' 10646 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 10647 enable_shared_with_static_runtimes=yes 10648 ;; 10649 10650 interix[3-9]*) 10651 hardcode_direct=no 10652 hardcode_shlibpath_var=no 10653 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 10654 export_dynamic_flag_spec='$wl-E' 10655 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 10656 # Instead, shared libraries are loaded at an image base (0x10000000 by 10657 # default) and relocated if they conflict, which is a slow very memory 10658 # consuming and fragmenting process. To avoid this, we pick a random, 10659 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 10660 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 10661 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 10662 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' 10663 ;; 10664 10665 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 10666 tmp_diet=no 10667 if test linux-dietlibc = "$host_os"; then 10668 case $cc_basename in 10669 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 10670 esac 10671 fi 10672 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 10673 && test no = "$tmp_diet" 10674 then 10675 tmp_addflag=' $pic_flag' 10676 tmp_sharedflag='-shared' 10677 case $cc_basename,$host_cpu in 10678 pgcc*) # Portland Group C compiler 10679 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' 10680 tmp_addflag=' $pic_flag' 10681 ;; 10682 pgf77* | pgf90* | pgf95* | pgfortran*) 10683 # Portland Group f77 and f90 compilers 10684 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' 10685 tmp_addflag=' $pic_flag -Mnomain' ;; 10686 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 10687 tmp_addflag=' -i_dynamic' ;; 10688 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 10689 tmp_addflag=' -i_dynamic -nofor_main' ;; 10690 ifc* | ifort*) # Intel Fortran compiler 10691 tmp_addflag=' -nofor_main' ;; 10692 lf95*) # Lahey Fortran 8.1 10693 whole_archive_flag_spec= 10694 tmp_sharedflag='--shared' ;; 10695 nagfor*) # NAGFOR 5.3 10696 tmp_sharedflag='-Wl,-shared' ;; 10697 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 10698 tmp_sharedflag='-qmkshrobj' 10699 tmp_addflag= ;; 10700 nvcc*) # Cuda Compiler Driver 2.2 10701 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' 10702 compiler_needs_object=yes 10703 ;; 10704 esac 10705 case `$CC -V 2>&1 | sed 5q` in 10706 *Sun\ C*) # Sun C 5.9 10707 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' 10708 compiler_needs_object=yes 10709 tmp_sharedflag='-G' ;; 10710 *Sun\ F*) # Sun Fortran 8.3 10711 tmp_sharedflag='-G' ;; 10712 esac 10713 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10714 10715 if test yes = "$supports_anon_versioning"; then 10716 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10717 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10718 echo "local: *; };" >> $output_objdir/$libname.ver~ 10719 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 10720 fi 10721 10722 case $cc_basename in 10723 tcc*) 10724 export_dynamic_flag_spec='-rdynamic' 10725 ;; 10726 xlf* | bgf* | bgxlf* | mpixlf*) 10727 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 10728 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 10729 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10730 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 10731 if test yes = "$supports_anon_versioning"; then 10732 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 10733 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 10734 echo "local: *; };" >> $output_objdir/$libname.ver~ 10735 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 10736 fi 10737 ;; 10738 esac 10739 else 10740 ld_shlibs=no 10741 fi 10742 ;; 10743 10744 netbsd*) 10745 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10746 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 10747 wlarc= 10748 else 10749 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10750 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10751 fi 10752 ;; 10753 10754 solaris*) 10755 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 10756 ld_shlibs=no 10757 cat <<_LT_EOF 1>&2 10758 10759*** Warning: The releases 2.8.* of the GNU linker cannot reliably 10760*** create shared libraries on Solaris systems. Therefore, libtool 10761*** is disabling shared libraries support. We urge you to upgrade GNU 10762*** binutils to release 2.9.1 or newer. Another option is to modify 10763*** your PATH or compiler configuration so that the native linker is 10764*** used, and then restart. 10765 10766_LT_EOF 10767 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10768 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10769 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10770 else 10771 ld_shlibs=no 10772 fi 10773 ;; 10774 10775 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 10776 case `$LD -v 2>&1` in 10777 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 10778 ld_shlibs=no 10779 cat <<_LT_EOF 1>&2 10780 10781*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 10782*** reliably create shared libraries on SCO systems. Therefore, libtool 10783*** is disabling shared libraries support. We urge you to upgrade GNU 10784*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 10785*** your PATH or compiler configuration so that the native linker is 10786*** used, and then restart. 10787 10788_LT_EOF 10789 ;; 10790 *) 10791 # For security reasons, it is highly recommended that you always 10792 # use absolute paths for naming shared libraries, and exclude the 10793 # DT_RUNPATH tag from executables and libraries. But doing so 10794 # requires that you compile everything twice, which is a pain. 10795 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10796 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 10797 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10798 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10799 else 10800 ld_shlibs=no 10801 fi 10802 ;; 10803 esac 10804 ;; 10805 10806 sunos4*) 10807 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 10808 wlarc= 10809 hardcode_direct=yes 10810 hardcode_shlibpath_var=no 10811 ;; 10812 10813 *) 10814 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 10815 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 10816 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 10817 else 10818 ld_shlibs=no 10819 fi 10820 ;; 10821 esac 10822 10823 if test no = "$ld_shlibs"; then 10824 runpath_var= 10825 hardcode_libdir_flag_spec= 10826 export_dynamic_flag_spec= 10827 whole_archive_flag_spec= 10828 fi 10829 else 10830 # PORTME fill in a description of your system's linker (not GNU ld) 10831 case $host_os in 10832 aix3*) 10833 allow_undefined_flag=unsupported 10834 always_export_symbols=yes 10835 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' 10836 # Note: this linker hardcodes the directories in LIBPATH if there 10837 # are no directories specified by -L. 10838 hardcode_minus_L=yes 10839 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 10840 # Neither direct hardcoding nor static linking is supported with a 10841 # broken collect2. 10842 hardcode_direct=unsupported 10843 fi 10844 ;; 10845 10846 aix[4-9]*) 10847 if test ia64 = "$host_cpu"; then 10848 # On IA64, the linker does run time linking by default, so we don't 10849 # have to do anything special. 10850 aix_use_runtimelinking=no 10851 exp_sym_flag='-Bexport' 10852 no_entry_flag= 10853 else 10854 # If we're using GNU nm, then we don't want the "-C" option. 10855 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 10856 # Without the "-l" option, or with the "-B" option, AIX nm treats 10857 # weak defined symbols like other global defined symbols, whereas 10858 # GNU nm marks them as "W". 10859 # While the 'weak' keyword is ignored in the Export File, we need 10860 # it in the Import File for the 'aix-soname' feature, so we have 10861 # to replace the "-B" option with "-P" for AIX nm. 10862 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 10863 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 10864 else 10865 export_symbols_cmds='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 10866 fi 10867 aix_use_runtimelinking=no 10868 10869 # Test if we are trying to use run time linking or normal 10870 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 10871 # have runtime linking enabled, and use it for executables. 10872 # For shared libraries, we enable/disable runtime linking 10873 # depending on the kind of the shared library created - 10874 # when "with_aix_soname,aix_use_runtimelinking" is: 10875 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 10876 # "aix,yes" lib.so shared, rtl:yes, for executables 10877 # lib.a static archive 10878 # "both,no" lib.so.V(shr.o) shared, rtl:yes 10879 # lib.a(lib.so.V) shared, rtl:no, for executables 10880 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 10881 # lib.a(lib.so.V) shared, rtl:no 10882 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 10883 # lib.a static archive 10884 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 10885 for ld_flag in $LDFLAGS; do 10886 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 10887 aix_use_runtimelinking=yes 10888 break 10889 fi 10890 done 10891 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 10892 # With aix-soname=svr4, we create the lib.so.V shared archives only, 10893 # so we don't have lib.a shared libs to link our executables. 10894 # We have to force runtime linking in this case. 10895 aix_use_runtimelinking=yes 10896 LDFLAGS="$LDFLAGS -Wl,-brtl" 10897 fi 10898 ;; 10899 esac 10900 10901 exp_sym_flag='-bexport' 10902 no_entry_flag='-bnoentry' 10903 fi 10904 10905 # When large executables or shared objects are built, AIX ld can 10906 # have problems creating the table of contents. If linking a library 10907 # or program results in "error TOC overflow" add -mminimal-toc to 10908 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 10909 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 10910 10911 archive_cmds='' 10912 hardcode_direct=yes 10913 hardcode_direct_absolute=yes 10914 hardcode_libdir_separator=':' 10915 link_all_deplibs=yes 10916 file_list_spec='$wl-f,' 10917 case $with_aix_soname,$aix_use_runtimelinking in 10918 aix,*) ;; # traditional, no import file 10919 svr4,* | *,yes) # use import file 10920 # The Import File defines what to hardcode. 10921 hardcode_direct=no 10922 hardcode_direct_absolute=no 10923 ;; 10924 esac 10925 10926 if test yes = "$GCC"; then 10927 case $host_os in aix4.[012]|aix4.[012].*) 10928 # We only want to do this on AIX 4.2 and lower, the check 10929 # below for broken collect2 doesn't work under 4.3+ 10930 collect2name=`$CC -print-prog-name=collect2` 10931 if test -f "$collect2name" && 10932 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 10933 then 10934 # We have reworked collect2 10935 : 10936 else 10937 # We have old collect2 10938 hardcode_direct=unsupported 10939 # It fails to find uninstalled libraries when the uninstalled 10940 # path is not listed in the libpath. Setting hardcode_minus_L 10941 # to unsupported forces relinking 10942 hardcode_minus_L=yes 10943 hardcode_libdir_flag_spec='-L$libdir' 10944 hardcode_libdir_separator= 10945 fi 10946 ;; 10947 esac 10948 shared_flag='-shared' 10949 if test yes = "$aix_use_runtimelinking"; then 10950 shared_flag="$shared_flag "'$wl-G' 10951 fi 10952 # Need to ensure runtime linking is disabled for the traditional 10953 # shared library, or the linker may eventually find shared libraries 10954 # /with/ Import File - we do not want to mix them. 10955 shared_flag_aix='-shared' 10956 shared_flag_svr4='-shared $wl-G' 10957 else 10958 # not using gcc 10959 if test ia64 = "$host_cpu"; then 10960 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 10961 # chokes on -Wl,-G. The following line is correct: 10962 shared_flag='-G' 10963 else 10964 if test yes = "$aix_use_runtimelinking"; then 10965 shared_flag='$wl-G' 10966 else 10967 shared_flag='$wl-bM:SRE' 10968 fi 10969 shared_flag_aix='$wl-bM:SRE' 10970 shared_flag_svr4='$wl-G' 10971 fi 10972 fi 10973 10974 export_dynamic_flag_spec='$wl-bexpall' 10975 # It seems that -bexpall does not export symbols beginning with 10976 # underscore (_), so it is better to generate a list of symbols to export. 10977 always_export_symbols=yes 10978 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 10979 # Warning - without using the other runtime loading flags (-brtl), 10980 # -berok will link without error, but may produce a broken library. 10981 allow_undefined_flag='-berok' 10982 # Determine the default libpath from the value encoded in an 10983 # empty executable. 10984 if test set = "${lt_cv_aix_libpath+set}"; then 10985 aix_libpath=$lt_cv_aix_libpath 10986else 10987 if ${lt_cv_aix_libpath_+:} false; then : 10988 $as_echo_n "(cached) " >&6 10989else 10990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10991/* end confdefs.h. */ 10992 10993int 10994main () 10995{ 10996 10997 ; 10998 return 0; 10999} 11000_ACEOF 11001if ac_fn_c_try_link "$LINENO"; then : 11002 11003 lt_aix_libpath_sed=' 11004 /Import File Strings/,/^$/ { 11005 /^0/ { 11006 s/^0 *\([^ ]*\) *$/\1/ 11007 p 11008 } 11009 }' 11010 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11011 # Check for a 64-bit object if we didn't find anything. 11012 if test -z "$lt_cv_aix_libpath_"; then 11013 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11014 fi 11015fi 11016rm -f core conftest.err conftest.$ac_objext \ 11017 conftest$ac_exeext conftest.$ac_ext 11018 if test -z "$lt_cv_aix_libpath_"; then 11019 lt_cv_aix_libpath_=/usr/lib:/lib 11020 fi 11021 11022fi 11023 11024 aix_libpath=$lt_cv_aix_libpath_ 11025fi 11026 11027 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11028 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 11029 else 11030 if test ia64 = "$host_cpu"; then 11031 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 11032 allow_undefined_flag="-z nodefs" 11033 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" 11034 else 11035 # Determine the default libpath from the value encoded in an 11036 # empty executable. 11037 if test set = "${lt_cv_aix_libpath+set}"; then 11038 aix_libpath=$lt_cv_aix_libpath 11039else 11040 if ${lt_cv_aix_libpath_+:} false; then : 11041 $as_echo_n "(cached) " >&6 11042else 11043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11044/* end confdefs.h. */ 11045 11046int 11047main () 11048{ 11049 11050 ; 11051 return 0; 11052} 11053_ACEOF 11054if ac_fn_c_try_link "$LINENO"; then : 11055 11056 lt_aix_libpath_sed=' 11057 /Import File Strings/,/^$/ { 11058 /^0/ { 11059 s/^0 *\([^ ]*\) *$/\1/ 11060 p 11061 } 11062 }' 11063 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11064 # Check for a 64-bit object if we didn't find anything. 11065 if test -z "$lt_cv_aix_libpath_"; then 11066 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 11067 fi 11068fi 11069rm -f core conftest.err conftest.$ac_objext \ 11070 conftest$ac_exeext conftest.$ac_ext 11071 if test -z "$lt_cv_aix_libpath_"; then 11072 lt_cv_aix_libpath_=/usr/lib:/lib 11073 fi 11074 11075fi 11076 11077 aix_libpath=$lt_cv_aix_libpath_ 11078fi 11079 11080 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 11081 # Warning - without using the other run time loading flags, 11082 # -berok will link without error, but may produce a broken library. 11083 no_undefined_flag=' $wl-bernotok' 11084 allow_undefined_flag=' $wl-berok' 11085 if test yes = "$with_gnu_ld"; then 11086 # We only use this code for GNU lds that support --whole-archive. 11087 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 11088 else 11089 # Exported symbols can be pulled into shared objects from archives 11090 whole_archive_flag_spec='$convenience' 11091 fi 11092 archive_cmds_need_lc=yes 11093 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 11094 # -brtl affects multiple linker settings, -berok does not and is overridden later 11095 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 11096 if test svr4 != "$with_aix_soname"; then 11097 # This is similar to how AIX traditionally builds its shared libraries. 11098 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 11099 fi 11100 if test aix != "$with_aix_soname"; then 11101 archive_expsym_cmds="$archive_expsym_cmds"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 11102 else 11103 # used by -dlpreopen to get the symbols 11104 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 11105 fi 11106 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 11107 fi 11108 fi 11109 ;; 11110 11111 amigaos*) 11112 case $host_cpu in 11113 powerpc) 11114 # see comment about AmigaOS4 .so support 11115 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 11116 archive_expsym_cmds='' 11117 ;; 11118 m68k) 11119 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)' 11120 hardcode_libdir_flag_spec='-L$libdir' 11121 hardcode_minus_L=yes 11122 ;; 11123 esac 11124 ;; 11125 11126 bsdi[45]*) 11127 export_dynamic_flag_spec=-rdynamic 11128 ;; 11129 11130 cygwin* | mingw* | pw32* | cegcc*) 11131 # When not using gcc, we currently assume that we are using 11132 # Microsoft Visual C++. 11133 # hardcode_libdir_flag_spec is actually meaningless, as there is 11134 # no search path for DLLs. 11135 case $cc_basename in 11136 cl*) 11137 # Native MSVC 11138 hardcode_libdir_flag_spec=' ' 11139 allow_undefined_flag=unsupported 11140 always_export_symbols=yes 11141 file_list_spec='@' 11142 # Tell ltmain to make .lib files, not .a files. 11143 libext=lib 11144 # Tell ltmain to make .dll files, not .so files. 11145 shrext_cmds=.dll 11146 # FIXME: Setting linknames here is a bad hack. 11147 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 11148 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 11149 cp "$export_symbols" "$output_objdir/$soname.def"; 11150 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 11151 else 11152 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 11153 fi~ 11154 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 11155 linknames=' 11156 # The linker will not automatically build a static lib if we build a DLL. 11157 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 11158 enable_shared_with_static_runtimes=yes 11159 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 11160 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 11161 # Don't use ranlib 11162 old_postinstall_cmds='chmod 644 $oldlib' 11163 postlink_cmds='lt_outputfile="@OUTPUT@"~ 11164 lt_tool_outputfile="@TOOL_OUTPUT@"~ 11165 case $lt_outputfile in 11166 *.exe|*.EXE) ;; 11167 *) 11168 lt_outputfile=$lt_outputfile.exe 11169 lt_tool_outputfile=$lt_tool_outputfile.exe 11170 ;; 11171 esac~ 11172 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 11173 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 11174 $RM "$lt_outputfile.manifest"; 11175 fi' 11176 ;; 11177 *) 11178 # Assume MSVC wrapper 11179 hardcode_libdir_flag_spec=' ' 11180 allow_undefined_flag=unsupported 11181 # Tell ltmain to make .lib files, not .a files. 11182 libext=lib 11183 # Tell ltmain to make .dll files, not .so files. 11184 shrext_cmds=.dll 11185 # FIXME: Setting linknames here is a bad hack. 11186 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 11187 # The linker will automatically build a .lib file if we build a DLL. 11188 old_archive_from_new_cmds='true' 11189 # FIXME: Should let the user specify the lib program. 11190 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 11191 enable_shared_with_static_runtimes=yes 11192 ;; 11193 esac 11194 ;; 11195 11196 darwin* | rhapsody*) 11197 11198 11199 archive_cmds_need_lc=no 11200 hardcode_direct=no 11201 hardcode_automatic=yes 11202 hardcode_shlibpath_var=unsupported 11203 if test yes = "$lt_cv_ld_force_load"; then 11204 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\"`' 11205 11206 else 11207 whole_archive_flag_spec='' 11208 fi 11209 link_all_deplibs=yes 11210 allow_undefined_flag=$_lt_dar_allow_undefined 11211 case $cc_basename in 11212 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 11213 *) _lt_dar_can_shared=$GCC ;; 11214 esac 11215 if test yes = "$_lt_dar_can_shared"; then 11216 output_verbose_link_cmd=func_echo_all 11217 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 11218 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 11219 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" 11220 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" 11221 11222 else 11223 ld_shlibs=no 11224 fi 11225 11226 ;; 11227 11228 dgux*) 11229 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11230 hardcode_libdir_flag_spec='-L$libdir' 11231 hardcode_shlibpath_var=no 11232 ;; 11233 11234 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 11235 # support. Future versions do this automatically, but an explicit c++rt0.o 11236 # does not break anything, and helps significantly (at the cost of a little 11237 # extra space). 11238 freebsd2.2*) 11239 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 11240 hardcode_libdir_flag_spec='-R$libdir' 11241 hardcode_direct=yes 11242 hardcode_shlibpath_var=no 11243 ;; 11244 11245 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 11246 freebsd2.*) 11247 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 11248 hardcode_direct=yes 11249 hardcode_minus_L=yes 11250 hardcode_shlibpath_var=no 11251 ;; 11252 11253 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 11254 freebsd* | dragonfly*) 11255 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11256 hardcode_libdir_flag_spec='-R$libdir' 11257 hardcode_direct=yes 11258 hardcode_shlibpath_var=no 11259 ;; 11260 11261 hpux9*) 11262 if test yes = "$GCC"; then 11263 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11264 else 11265 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 11266 fi 11267 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11268 hardcode_libdir_separator=: 11269 hardcode_direct=yes 11270 11271 # hardcode_minus_L: Not really in the search PATH, 11272 # but as the default location of the library. 11273 hardcode_minus_L=yes 11274 export_dynamic_flag_spec='$wl-E' 11275 ;; 11276 11277 hpux10*) 11278 if test yes,no = "$GCC,$with_gnu_ld"; then 11279 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11280 else 11281 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11282 fi 11283 if test no = "$with_gnu_ld"; then 11284 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11285 hardcode_libdir_separator=: 11286 hardcode_direct=yes 11287 hardcode_direct_absolute=yes 11288 export_dynamic_flag_spec='$wl-E' 11289 # hardcode_minus_L: Not really in the search PATH, 11290 # but as the default location of the library. 11291 hardcode_minus_L=yes 11292 fi 11293 ;; 11294 11295 hpux11*) 11296 if test yes,no = "$GCC,$with_gnu_ld"; then 11297 case $host_cpu in 11298 hppa*64*) 11299 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11300 ;; 11301 ia64*) 11302 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11303 ;; 11304 *) 11305 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11306 ;; 11307 esac 11308 else 11309 case $host_cpu in 11310 hppa*64*) 11311 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11312 ;; 11313 ia64*) 11314 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 11315 ;; 11316 *) 11317 11318 # Older versions of the 11.00 compiler do not understand -b yet 11319 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 11320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 11321$as_echo_n "checking if $CC understands -b... " >&6; } 11322if ${lt_cv_prog_compiler__b+:} false; then : 11323 $as_echo_n "(cached) " >&6 11324else 11325 lt_cv_prog_compiler__b=no 11326 save_LDFLAGS=$LDFLAGS 11327 LDFLAGS="$LDFLAGS -b" 11328 echo "$lt_simple_link_test_code" > conftest.$ac_ext 11329 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 11330 # The linker can only warn and ignore the option if not recognized 11331 # So say no if there are warnings 11332 if test -s conftest.err; then 11333 # Append any errors to the config.log. 11334 cat conftest.err 1>&5 11335 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 11336 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 11337 if diff conftest.exp conftest.er2 >/dev/null; then 11338 lt_cv_prog_compiler__b=yes 11339 fi 11340 else 11341 lt_cv_prog_compiler__b=yes 11342 fi 11343 fi 11344 $RM -r conftest* 11345 LDFLAGS=$save_LDFLAGS 11346 11347fi 11348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 11349$as_echo "$lt_cv_prog_compiler__b" >&6; } 11350 11351if test yes = "$lt_cv_prog_compiler__b"; then 11352 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 11353else 11354 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 11355fi 11356 11357 ;; 11358 esac 11359 fi 11360 if test no = "$with_gnu_ld"; then 11361 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 11362 hardcode_libdir_separator=: 11363 11364 case $host_cpu in 11365 hppa*64*|ia64*) 11366 hardcode_direct=no 11367 hardcode_shlibpath_var=no 11368 ;; 11369 *) 11370 hardcode_direct=yes 11371 hardcode_direct_absolute=yes 11372 export_dynamic_flag_spec='$wl-E' 11373 11374 # hardcode_minus_L: Not really in the search PATH, 11375 # but as the default location of the library. 11376 hardcode_minus_L=yes 11377 ;; 11378 esac 11379 fi 11380 ;; 11381 11382 irix5* | irix6* | nonstopux*) 11383 if test yes = "$GCC"; then 11384 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11385 # Try to use the -exported_symbol ld option, if it does not 11386 # work, assume that -exports_file does not work either and 11387 # implicitly export all symbols. 11388 # This should be the same for all languages, so no per-tag cache variable. 11389 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 11390$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 11391if ${lt_cv_irix_exported_symbol+:} false; then : 11392 $as_echo_n "(cached) " >&6 11393else 11394 save_LDFLAGS=$LDFLAGS 11395 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 11396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11397/* end confdefs.h. */ 11398int foo (void) { return 0; } 11399_ACEOF 11400if ac_fn_c_try_link "$LINENO"; then : 11401 lt_cv_irix_exported_symbol=yes 11402else 11403 lt_cv_irix_exported_symbol=no 11404fi 11405rm -f core conftest.err conftest.$ac_objext \ 11406 conftest$ac_exeext conftest.$ac_ext 11407 LDFLAGS=$save_LDFLAGS 11408fi 11409{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 11410$as_echo "$lt_cv_irix_exported_symbol" >&6; } 11411 if test yes = "$lt_cv_irix_exported_symbol"; then 11412 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations $wl-exports_file $wl$export_symbols -o $lib' 11413 fi 11414 else 11415 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' 11416 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' 11417 fi 11418 archive_cmds_need_lc='no' 11419 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11420 hardcode_libdir_separator=: 11421 inherit_rpath=yes 11422 link_all_deplibs=yes 11423 ;; 11424 11425 linux*) 11426 case $cc_basename in 11427 tcc*) 11428 # Fabrice Bellard et al's Tiny C Compiler 11429 ld_shlibs=yes 11430 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11431 ;; 11432 esac 11433 ;; 11434 11435 netbsd*) 11436 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 11437 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 11438 else 11439 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 11440 fi 11441 hardcode_libdir_flag_spec='-R$libdir' 11442 hardcode_direct=yes 11443 hardcode_shlibpath_var=no 11444 ;; 11445 11446 newsos6) 11447 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11448 hardcode_direct=yes 11449 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11450 hardcode_libdir_separator=: 11451 hardcode_shlibpath_var=no 11452 ;; 11453 11454 *nto* | *qnx*) 11455 ;; 11456 11457 openbsd* | bitrig*) 11458 if test -f /usr/libexec/ld.so; then 11459 hardcode_direct=yes 11460 hardcode_shlibpath_var=no 11461 hardcode_direct_absolute=yes 11462 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 11463 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11464 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 11465 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11466 export_dynamic_flag_spec='$wl-E' 11467 else 11468 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 11469 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 11470 fi 11471 else 11472 ld_shlibs=no 11473 fi 11474 ;; 11475 11476 os2*) 11477 hardcode_libdir_flag_spec='-L$libdir' 11478 hardcode_minus_L=yes 11479 allow_undefined_flag=unsupported 11480 shrext_cmds=.dll 11481 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11482 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11483 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11484 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11485 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 11486 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11487 emximp -o $lib $output_objdir/$libname.def' 11488 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 11489 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 11490 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 11491 $ECHO EXPORTS >> $output_objdir/$libname.def~ 11492 prefix_cmds="$SED"~ 11493 if test EXPORTS = "`$SED 1q $export_symbols`"; then 11494 prefix_cmds="$prefix_cmds -e 1d"; 11495 fi~ 11496 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 11497 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 11498 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 11499 emximp -o $lib $output_objdir/$libname.def' 11500 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 11501 enable_shared_with_static_runtimes=yes 11502 ;; 11503 11504 osf3*) 11505 if test yes = "$GCC"; then 11506 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11507 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' 11508 else 11509 allow_undefined_flag=' -expect_unresolved \*' 11510 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' 11511 fi 11512 archive_cmds_need_lc='no' 11513 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11514 hardcode_libdir_separator=: 11515 ;; 11516 11517 osf4* | osf5*) # as osf3* with the addition of -msym flag 11518 if test yes = "$GCC"; then 11519 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 11520 archive_cmds='$CC -shared$allow_undefined_flag $pic_flag $libobjs $deplibs $compiler_flags $wl-msym $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` $wl-update_registry $wl$output_objdir/so_locations -o $lib' 11521 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 11522 else 11523 allow_undefined_flag=' -expect_unresolved \*' 11524 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' 11525 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~ 11526 $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' 11527 11528 # Both c and cxx compiler support -rpath directly 11529 hardcode_libdir_flag_spec='-rpath $libdir' 11530 fi 11531 archive_cmds_need_lc='no' 11532 hardcode_libdir_separator=: 11533 ;; 11534 11535 solaris*) 11536 no_undefined_flag=' -z defs' 11537 if test yes = "$GCC"; then 11538 wlarc='$wl' 11539 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 11540 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11541 $CC -shared $pic_flag $wl-z ${wl}text $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11542 else 11543 case `$CC -V 2>&1` in 11544 *"Compilers 5.0"*) 11545 wlarc='' 11546 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 11547 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11548 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 11549 ;; 11550 *) 11551 wlarc='$wl' 11552 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 11553 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 11554 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 11555 ;; 11556 esac 11557 fi 11558 hardcode_libdir_flag_spec='-R$libdir' 11559 hardcode_shlibpath_var=no 11560 case $host_os in 11561 solaris2.[0-5] | solaris2.[0-5].*) ;; 11562 *) 11563 # The compiler driver will combine and reorder linker options, 11564 # but understands '-z linker_flag'. GCC discards it without '$wl', 11565 # but is careful enough not to reorder. 11566 # Supported since Solaris 2.6 (maybe 2.5.1?) 11567 if test yes = "$GCC"; then 11568 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 11569 else 11570 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 11571 fi 11572 ;; 11573 esac 11574 link_all_deplibs=yes 11575 ;; 11576 11577 sunos4*) 11578 if test sequent = "$host_vendor"; then 11579 # Use $CC to link under sequent, because it throws in some extra .o 11580 # files that make .init and .fini sections work. 11581 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 11582 else 11583 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 11584 fi 11585 hardcode_libdir_flag_spec='-L$libdir' 11586 hardcode_direct=yes 11587 hardcode_minus_L=yes 11588 hardcode_shlibpath_var=no 11589 ;; 11590 11591 sysv4) 11592 case $host_vendor in 11593 sni) 11594 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11595 hardcode_direct=yes # is this really true??? 11596 ;; 11597 siemens) 11598 ## LD is ld it makes a PLAMLIB 11599 ## CC just makes a GrossModule. 11600 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 11601 reload_cmds='$CC -r -o $output$reload_objs' 11602 hardcode_direct=no 11603 ;; 11604 motorola) 11605 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11606 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 11607 ;; 11608 esac 11609 runpath_var='LD_RUN_PATH' 11610 hardcode_shlibpath_var=no 11611 ;; 11612 11613 sysv4.3*) 11614 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11615 hardcode_shlibpath_var=no 11616 export_dynamic_flag_spec='-Bexport' 11617 ;; 11618 11619 sysv4*MP*) 11620 if test -d /usr/nec; then 11621 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11622 hardcode_shlibpath_var=no 11623 runpath_var=LD_RUN_PATH 11624 hardcode_runpath_var=yes 11625 ld_shlibs=yes 11626 fi 11627 ;; 11628 11629 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 11630 no_undefined_flag='$wl-z,text' 11631 archive_cmds_need_lc=no 11632 hardcode_shlibpath_var=no 11633 runpath_var='LD_RUN_PATH' 11634 11635 if test yes = "$GCC"; then 11636 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11637 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11638 else 11639 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11640 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11641 fi 11642 ;; 11643 11644 sysv5* | sco3.2v5* | sco5v6*) 11645 # Note: We CANNOT use -z defs as we might desire, because we do not 11646 # link with -lc, and that would cause any symbols used from libc to 11647 # always be unresolved, which means just about no library would 11648 # ever link correctly. If we're not using GNU ld we use -z text 11649 # though, which does catch some bad symbols but isn't as heavy-handed 11650 # as -z defs. 11651 no_undefined_flag='$wl-z,text' 11652 allow_undefined_flag='$wl-z,nodefs' 11653 archive_cmds_need_lc=no 11654 hardcode_shlibpath_var=no 11655 hardcode_libdir_flag_spec='$wl-R,$libdir' 11656 hardcode_libdir_separator=':' 11657 link_all_deplibs=yes 11658 export_dynamic_flag_spec='$wl-Bexport' 11659 runpath_var='LD_RUN_PATH' 11660 11661 if test yes = "$GCC"; then 11662 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11663 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11664 else 11665 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11666 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 11667 fi 11668 ;; 11669 11670 uts4*) 11671 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 11672 hardcode_libdir_flag_spec='-L$libdir' 11673 hardcode_shlibpath_var=no 11674 ;; 11675 11676 *) 11677 ld_shlibs=no 11678 ;; 11679 esac 11680 11681 if test sni = "$host_vendor"; then 11682 case $host in 11683 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 11684 export_dynamic_flag_spec='$wl-Blargedynsym' 11685 ;; 11686 esac 11687 fi 11688 fi 11689 11690{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 11691$as_echo "$ld_shlibs" >&6; } 11692test no = "$ld_shlibs" && can_build_shared=no 11693 11694with_gnu_ld=$with_gnu_ld 11695 11696 11697 11698 11699 11700 11701 11702 11703 11704 11705 11706 11707 11708 11709 11710# 11711# Do we need to explicitly link libc? 11712# 11713case "x$archive_cmds_need_lc" in 11714x|xyes) 11715 # Assume -lc should be added 11716 archive_cmds_need_lc=yes 11717 11718 if test yes,yes = "$GCC,$enable_shared"; then 11719 case $archive_cmds in 11720 *'~'*) 11721 # FIXME: we may have to deal with multi-command sequences. 11722 ;; 11723 '$CC '*) 11724 # Test whether the compiler implicitly links with -lc since on some 11725 # systems, -lgcc has to come before -lc. If gcc already passes -lc 11726 # to ld, don't add -lc before -lgcc. 11727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 11728$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 11729if ${lt_cv_archive_cmds_need_lc+:} false; then : 11730 $as_echo_n "(cached) " >&6 11731else 11732 $RM conftest* 11733 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 11734 11735 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 11736 (eval $ac_compile) 2>&5 11737 ac_status=$? 11738 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11739 test $ac_status = 0; } 2>conftest.err; then 11740 soname=conftest 11741 lib=conftest 11742 libobjs=conftest.$ac_objext 11743 deplibs= 11744 wl=$lt_prog_compiler_wl 11745 pic_flag=$lt_prog_compiler_pic 11746 compiler_flags=-v 11747 linker_flags=-v 11748 verstring= 11749 output_objdir=. 11750 libname=conftest 11751 lt_save_allow_undefined_flag=$allow_undefined_flag 11752 allow_undefined_flag= 11753 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 11754 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 11755 ac_status=$? 11756 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11757 test $ac_status = 0; } 11758 then 11759 lt_cv_archive_cmds_need_lc=no 11760 else 11761 lt_cv_archive_cmds_need_lc=yes 11762 fi 11763 allow_undefined_flag=$lt_save_allow_undefined_flag 11764 else 11765 cat conftest.err 1>&5 11766 fi 11767 $RM conftest* 11768 11769fi 11770{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 11771$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 11772 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 11773 ;; 11774 esac 11775 fi 11776 ;; 11777esac 11778 11779 11780 11781 11782 11783 11784 11785 11786 11787 11788 11789 11790 11791 11792 11793 11794 11795 11796 11797 11798 11799 11800 11801 11802 11803 11804 11805 11806 11807 11808 11809 11810 11811 11812 11813 11814 11815 11816 11817 11818 11819 11820 11821 11822 11823 11824 11825 11826 11827 11828 11829 11830 11831 11832 11833 11834 11835 11836 11837 11838 11839 11840 11841 11842 11843 11844 11845 11846 11847 11848 11849 11850 11851 11852 11853 11854 11855 11856 11857 11858 11859 11860 11861 11862 11863 11864 11865 11866 11867 11868 11869 11870 11871 11872 11873 11874 11875 11876 11877 11878 11879 11880 11881 11882 11883 11884 11885 11886 11887 11888 11889 11890 11891 11892 11893 11894 11895 11896 11897 11898 11899 11900 11901 11902 11903 11904 11905 11906 11907 11908 11909 11910 11911 11912 11913 11914 11915 11916 11917 11918 11919 11920 11921 11922 11923 11924 11925 11926 11927 11928 11929 11930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 11931$as_echo_n "checking dynamic linker characteristics... " >&6; } 11932 11933if test yes = "$GCC"; then 11934 case $host_os in 11935 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 11936 *) lt_awk_arg='/^libraries:/' ;; 11937 esac 11938 case $host_os in 11939 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 11940 *) lt_sed_strip_eq='s|=/|/|g' ;; 11941 esac 11942 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 11943 case $lt_search_path_spec in 11944 *\;*) 11945 # if the path contains ";" then we assume it to be the separator 11946 # otherwise default to the standard path separator (i.e. ":") - it is 11947 # assumed that no part of a normal pathname contains ";" but that should 11948 # okay in the real world where ";" in dirpaths is itself problematic. 11949 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 11950 ;; 11951 *) 11952 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 11953 ;; 11954 esac 11955 # Ok, now we have the path, separated by spaces, we can step through it 11956 # and add multilib dir if necessary... 11957 lt_tmp_lt_search_path_spec= 11958 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 11959 # ...but if some path component already ends with the multilib dir we assume 11960 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 11961 case "$lt_multi_os_dir; $lt_search_path_spec " in 11962 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 11963 lt_multi_os_dir= 11964 ;; 11965 esac 11966 for lt_sys_path in $lt_search_path_spec; do 11967 if test -d "$lt_sys_path$lt_multi_os_dir"; then 11968 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 11969 elif test -n "$lt_multi_os_dir"; then 11970 test -d "$lt_sys_path" && \ 11971 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 11972 fi 11973 done 11974 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 11975BEGIN {RS = " "; FS = "/|\n";} { 11976 lt_foo = ""; 11977 lt_count = 0; 11978 for (lt_i = NF; lt_i > 0; lt_i--) { 11979 if ($lt_i != "" && $lt_i != ".") { 11980 if ($lt_i == "..") { 11981 lt_count++; 11982 } else { 11983 if (lt_count == 0) { 11984 lt_foo = "/" $lt_i lt_foo; 11985 } else { 11986 lt_count--; 11987 } 11988 } 11989 } 11990 } 11991 if (lt_foo != "") { lt_freq[lt_foo]++; } 11992 if (lt_freq[lt_foo] == 1) { print lt_foo; } 11993}'` 11994 # AWK program above erroneously prepends '/' to C:/dos/paths 11995 # for these hosts. 11996 case $host_os in 11997 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 11998 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 11999 esac 12000 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 12001else 12002 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12003fi 12004library_names_spec= 12005libname_spec='lib$name' 12006soname_spec= 12007shrext_cmds=.so 12008postinstall_cmds= 12009postuninstall_cmds= 12010finish_cmds= 12011finish_eval= 12012shlibpath_var= 12013shlibpath_overrides_runpath=unknown 12014version_type=none 12015dynamic_linker="$host_os ld.so" 12016sys_lib_dlsearch_path_spec="/lib /usr/lib" 12017need_lib_prefix=unknown 12018hardcode_into_libs=no 12019 12020# when you set need_version to no, make sure it does not cause -set_version 12021# flags to be left without arguments 12022need_version=unknown 12023 12024 12025 12026case $host_os in 12027aix3*) 12028 version_type=linux # correct to gnu/linux during the next big refactor 12029 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 12030 shlibpath_var=LIBPATH 12031 12032 # AIX 3 has no versioning support, so we append a major version to the name. 12033 soname_spec='$libname$release$shared_ext$major' 12034 ;; 12035 12036aix[4-9]*) 12037 version_type=linux # correct to gnu/linux during the next big refactor 12038 need_lib_prefix=no 12039 need_version=no 12040 hardcode_into_libs=yes 12041 if test ia64 = "$host_cpu"; then 12042 # AIX 5 supports IA64 12043 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 12044 shlibpath_var=LD_LIBRARY_PATH 12045 else 12046 # With GCC up to 2.95.x, collect2 would create an import file 12047 # for dependence libraries. The import file would start with 12048 # the line '#! .'. This would cause the generated library to 12049 # depend on '.', always an invalid library. This was fixed in 12050 # development snapshots of GCC prior to 3.0. 12051 case $host_os in 12052 aix4 | aix4.[01] | aix4.[01].*) 12053 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 12054 echo ' yes ' 12055 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 12056 : 12057 else 12058 can_build_shared=no 12059 fi 12060 ;; 12061 esac 12062 # Using Import Files as archive members, it is possible to support 12063 # filename-based versioning of shared library archives on AIX. While 12064 # this would work for both with and without runtime linking, it will 12065 # prevent static linking of such archives. So we do filename-based 12066 # shared library versioning with .so extension only, which is used 12067 # when both runtime linking and shared linking is enabled. 12068 # Unfortunately, runtime linking may impact performance, so we do 12069 # not want this to be the default eventually. Also, we use the 12070 # versioned .so libs for executables only if there is the -brtl 12071 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 12072 # To allow for filename-based versioning support, we need to create 12073 # libNAME.so.V as an archive file, containing: 12074 # *) an Import File, referring to the versioned filename of the 12075 # archive as well as the shared archive member, telling the 12076 # bitwidth (32 or 64) of that shared object, and providing the 12077 # list of exported symbols of that shared object, eventually 12078 # decorated with the 'weak' keyword 12079 # *) the shared object with the F_LOADONLY flag set, to really avoid 12080 # it being seen by the linker. 12081 # At run time we better use the real file rather than another symlink, 12082 # but for link time we create the symlink libNAME.so -> libNAME.so.V 12083 12084 case $with_aix_soname,$aix_use_runtimelinking in 12085 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 12086 # soname into executable. Probably we can add versioning support to 12087 # collect2, so additional links can be useful in future. 12088 aix,yes) # traditional libtool 12089 dynamic_linker='AIX unversionable lib.so' 12090 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 12091 # instead of lib<name>.a to let people know that these are not 12092 # typical AIX shared libraries. 12093 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12094 ;; 12095 aix,no) # traditional AIX only 12096 dynamic_linker='AIX lib.a(lib.so.V)' 12097 # We preserve .a as extension for shared libraries through AIX4.2 12098 # and later when we are not doing run time linking. 12099 library_names_spec='$libname$release.a $libname.a' 12100 soname_spec='$libname$release$shared_ext$major' 12101 ;; 12102 svr4,*) # full svr4 only 12103 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 12104 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12105 # We do not specify a path in Import Files, so LIBPATH fires. 12106 shlibpath_overrides_runpath=yes 12107 ;; 12108 *,yes) # both, prefer svr4 12109 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 12110 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 12111 # unpreferred sharedlib libNAME.a needs extra handling 12112 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 12113 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 12114 # We do not specify a path in Import Files, so LIBPATH fires. 12115 shlibpath_overrides_runpath=yes 12116 ;; 12117 *,no) # both, prefer aix 12118 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 12119 library_names_spec='$libname$release.a $libname.a' 12120 soname_spec='$libname$release$shared_ext$major' 12121 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 12122 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 12123 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 12124 ;; 12125 esac 12126 shlibpath_var=LIBPATH 12127 fi 12128 ;; 12129 12130amigaos*) 12131 case $host_cpu in 12132 powerpc) 12133 # Since July 2007 AmigaOS4 officially supports .so libraries. 12134 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 12135 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12136 ;; 12137 m68k) 12138 library_names_spec='$libname.ixlibrary $libname.a' 12139 # Create ${libname}_ixlibrary.a entries in /sys/libs. 12140 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 12141 ;; 12142 esac 12143 ;; 12144 12145beos*) 12146 library_names_spec='$libname$shared_ext' 12147 dynamic_linker="$host_os ld.so" 12148 shlibpath_var=LIBRARY_PATH 12149 ;; 12150 12151bsdi[45]*) 12152 version_type=linux # correct to gnu/linux during the next big refactor 12153 need_version=no 12154 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12155 soname_spec='$libname$release$shared_ext$major' 12156 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 12157 shlibpath_var=LD_LIBRARY_PATH 12158 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 12159 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 12160 # the default ld.so.conf also contains /usr/contrib/lib and 12161 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 12162 # libtool to hard-code these into programs 12163 ;; 12164 12165cygwin* | mingw* | pw32* | cegcc*) 12166 version_type=windows 12167 shrext_cmds=.dll 12168 need_version=no 12169 need_lib_prefix=no 12170 12171 case $GCC,$cc_basename in 12172 yes,*) 12173 # gcc 12174 library_names_spec='$libname.dll.a' 12175 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12176 postinstall_cmds='base_file=`basename \$file`~ 12177 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12178 dldir=$destdir/`dirname \$dlpath`~ 12179 test -d \$dldir || mkdir -p \$dldir~ 12180 $install_prog $dir/$dlname \$dldir/$dlname~ 12181 chmod a+x \$dldir/$dlname~ 12182 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12183 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12184 fi' 12185 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12186 dlpath=$dir/\$dldll~ 12187 $RM \$dlpath' 12188 shlibpath_overrides_runpath=yes 12189 12190 case $host_os in 12191 cygwin*) 12192 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 12193 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12194 12195 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 12196 ;; 12197 mingw* | cegcc*) 12198 # MinGW DLLs use traditional 'lib' prefix 12199 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12200 ;; 12201 pw32*) 12202 # pw32 DLLs use 'pw' prefix rather than 'lib' 12203 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12204 ;; 12205 esac 12206 dynamic_linker='Win32 ld.exe' 12207 ;; 12208 12209 *,cl*) 12210 # Native MSVC 12211 libname_spec='$name' 12212 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 12213 library_names_spec='$libname.dll.lib' 12214 12215 case $build_os in 12216 mingw*) 12217 sys_lib_search_path_spec= 12218 lt_save_ifs=$IFS 12219 IFS=';' 12220 for lt_path in $LIB 12221 do 12222 IFS=$lt_save_ifs 12223 # Let DOS variable expansion print the short 8.3 style file name. 12224 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 12225 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 12226 done 12227 IFS=$lt_save_ifs 12228 # Convert to MSYS style. 12229 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 12230 ;; 12231 cygwin*) 12232 # Convert to unix form, then to dos form, then back to unix form 12233 # but this time dos style (no spaces!) so that the unix form looks 12234 # like /cygdrive/c/PROGRA~1:/cygdr... 12235 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 12236 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 12237 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12238 ;; 12239 *) 12240 sys_lib_search_path_spec=$LIB 12241 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 12242 # It is most probably a Windows format PATH. 12243 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 12244 else 12245 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 12246 fi 12247 # FIXME: find the short name or the path components, as spaces are 12248 # common. (e.g. "Program Files" -> "PROGRA~1") 12249 ;; 12250 esac 12251 12252 # DLL is installed to $(libdir)/../bin by postinstall_cmds 12253 postinstall_cmds='base_file=`basename \$file`~ 12254 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 12255 dldir=$destdir/`dirname \$dlpath`~ 12256 test -d \$dldir || mkdir -p \$dldir~ 12257 $install_prog $dir/$dlname \$dldir/$dlname' 12258 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 12259 dlpath=$dir/\$dldll~ 12260 $RM \$dlpath' 12261 shlibpath_overrides_runpath=yes 12262 dynamic_linker='Win32 link.exe' 12263 ;; 12264 12265 *) 12266 # Assume MSVC wrapper 12267 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 12268 dynamic_linker='Win32 ld.exe' 12269 ;; 12270 esac 12271 # FIXME: first we should search . and the directory the executable is in 12272 shlibpath_var=PATH 12273 ;; 12274 12275darwin* | rhapsody*) 12276 dynamic_linker="$host_os dyld" 12277 version_type=darwin 12278 need_lib_prefix=no 12279 need_version=no 12280 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 12281 soname_spec='$libname$release$major$shared_ext' 12282 shlibpath_overrides_runpath=yes 12283 shlibpath_var=DYLD_LIBRARY_PATH 12284 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 12285 12286 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 12287 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 12288 ;; 12289 12290dgux*) 12291 version_type=linux # correct to gnu/linux during the next big refactor 12292 need_lib_prefix=no 12293 need_version=no 12294 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12295 soname_spec='$libname$release$shared_ext$major' 12296 shlibpath_var=LD_LIBRARY_PATH 12297 ;; 12298 12299freebsd* | dragonfly*) 12300 # DragonFly does not have aout. When/if they implement a new 12301 # versioning mechanism, adjust this. 12302 if test -x /usr/bin/objformat; then 12303 objformat=`/usr/bin/objformat` 12304 else 12305 case $host_os in 12306 freebsd[23].*) objformat=aout ;; 12307 *) objformat=elf ;; 12308 esac 12309 fi 12310 version_type=freebsd-$objformat 12311 case $version_type in 12312 freebsd-elf*) 12313 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12314 soname_spec='$libname$release$shared_ext$major' 12315 need_version=no 12316 need_lib_prefix=no 12317 ;; 12318 freebsd-*) 12319 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12320 need_version=yes 12321 ;; 12322 esac 12323 shlibpath_var=LD_LIBRARY_PATH 12324 case $host_os in 12325 freebsd2.*) 12326 shlibpath_overrides_runpath=yes 12327 ;; 12328 freebsd3.[01]* | freebsdelf3.[01]*) 12329 shlibpath_overrides_runpath=yes 12330 hardcode_into_libs=yes 12331 ;; 12332 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 12333 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 12334 shlibpath_overrides_runpath=no 12335 hardcode_into_libs=yes 12336 ;; 12337 *) # from 4.6 on, and DragonFly 12338 shlibpath_overrides_runpath=yes 12339 hardcode_into_libs=yes 12340 ;; 12341 esac 12342 ;; 12343 12344haiku*) 12345 version_type=linux # correct to gnu/linux during the next big refactor 12346 need_lib_prefix=no 12347 need_version=no 12348 dynamic_linker="$host_os runtime_loader" 12349 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12350 soname_spec='$libname$release$shared_ext$major' 12351 shlibpath_var=LIBRARY_PATH 12352 shlibpath_overrides_runpath=no 12353 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 12354 hardcode_into_libs=yes 12355 ;; 12356 12357hpux9* | hpux10* | hpux11*) 12358 # Give a soname corresponding to the major version so that dld.sl refuses to 12359 # link against other versions. 12360 version_type=sunos 12361 need_lib_prefix=no 12362 need_version=no 12363 case $host_cpu in 12364 ia64*) 12365 shrext_cmds='.so' 12366 hardcode_into_libs=yes 12367 dynamic_linker="$host_os dld.so" 12368 shlibpath_var=LD_LIBRARY_PATH 12369 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12370 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12371 soname_spec='$libname$release$shared_ext$major' 12372 if test 32 = "$HPUX_IA64_MODE"; then 12373 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 12374 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 12375 else 12376 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 12377 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 12378 fi 12379 ;; 12380 hppa*64*) 12381 shrext_cmds='.sl' 12382 hardcode_into_libs=yes 12383 dynamic_linker="$host_os dld.sl" 12384 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 12385 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 12386 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12387 soname_spec='$libname$release$shared_ext$major' 12388 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 12389 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12390 ;; 12391 *) 12392 shrext_cmds='.sl' 12393 dynamic_linker="$host_os dld.sl" 12394 shlibpath_var=SHLIB_PATH 12395 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 12396 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12397 soname_spec='$libname$release$shared_ext$major' 12398 ;; 12399 esac 12400 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 12401 postinstall_cmds='chmod 555 $lib' 12402 # or fails outright, so override atomically: 12403 install_override_mode=555 12404 ;; 12405 12406interix[3-9]*) 12407 version_type=linux # correct to gnu/linux during the next big refactor 12408 need_lib_prefix=no 12409 need_version=no 12410 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12411 soname_spec='$libname$release$shared_ext$major' 12412 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 12413 shlibpath_var=LD_LIBRARY_PATH 12414 shlibpath_overrides_runpath=no 12415 hardcode_into_libs=yes 12416 ;; 12417 12418irix5* | irix6* | nonstopux*) 12419 case $host_os in 12420 nonstopux*) version_type=nonstopux ;; 12421 *) 12422 if test yes = "$lt_cv_prog_gnu_ld"; then 12423 version_type=linux # correct to gnu/linux during the next big refactor 12424 else 12425 version_type=irix 12426 fi ;; 12427 esac 12428 need_lib_prefix=no 12429 need_version=no 12430 soname_spec='$libname$release$shared_ext$major' 12431 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 12432 case $host_os in 12433 irix5* | nonstopux*) 12434 libsuff= shlibsuff= 12435 ;; 12436 *) 12437 case $LD in # libtool.m4 will add one of these switches to LD 12438 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 12439 libsuff= shlibsuff= libmagic=32-bit;; 12440 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 12441 libsuff=32 shlibsuff=N32 libmagic=N32;; 12442 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 12443 libsuff=64 shlibsuff=64 libmagic=64-bit;; 12444 *) libsuff= shlibsuff= libmagic=never-match;; 12445 esac 12446 ;; 12447 esac 12448 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 12449 shlibpath_overrides_runpath=no 12450 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 12451 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 12452 hardcode_into_libs=yes 12453 ;; 12454 12455# No shared lib support for Linux oldld, aout, or coff. 12456linux*oldld* | linux*aout* | linux*coff*) 12457 dynamic_linker=no 12458 ;; 12459 12460linux*android*) 12461 version_type=none # Android doesn't support versioned libraries. 12462 need_lib_prefix=no 12463 need_version=no 12464 library_names_spec='$libname$release$shared_ext' 12465 soname_spec='$libname$release$shared_ext' 12466 finish_cmds= 12467 shlibpath_var=LD_LIBRARY_PATH 12468 shlibpath_overrides_runpath=yes 12469 12470 # This implies no fast_install, which is unacceptable. 12471 # Some rework will be needed to allow for fast_install 12472 # before this can be enabled. 12473 hardcode_into_libs=yes 12474 12475 dynamic_linker='Android linker' 12476 # Don't embed -rpath directories since the linker doesn't support them. 12477 hardcode_libdir_flag_spec='-L$libdir' 12478 ;; 12479 12480# This must be glibc/ELF. 12481linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 12482 version_type=linux # correct to gnu/linux during the next big refactor 12483 need_lib_prefix=no 12484 need_version=no 12485 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12486 soname_spec='$libname$release$shared_ext$major' 12487 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 12488 shlibpath_var=LD_LIBRARY_PATH 12489 shlibpath_overrides_runpath=no 12490 12491 # Some binutils ld are patched to set DT_RUNPATH 12492 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 12493 $as_echo_n "(cached) " >&6 12494else 12495 lt_cv_shlibpath_overrides_runpath=no 12496 save_LDFLAGS=$LDFLAGS 12497 save_libdir=$libdir 12498 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 12499 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 12500 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12501/* end confdefs.h. */ 12502 12503int 12504main () 12505{ 12506 12507 ; 12508 return 0; 12509} 12510_ACEOF 12511if ac_fn_c_try_link "$LINENO"; then : 12512 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 12513 lt_cv_shlibpath_overrides_runpath=yes 12514fi 12515fi 12516rm -f core conftest.err conftest.$ac_objext \ 12517 conftest$ac_exeext conftest.$ac_ext 12518 LDFLAGS=$save_LDFLAGS 12519 libdir=$save_libdir 12520 12521fi 12522 12523 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 12524 12525 # This implies no fast_install, which is unacceptable. 12526 # Some rework will be needed to allow for fast_install 12527 # before this can be enabled. 12528 hardcode_into_libs=yes 12529 12530 # Ideally, we could use ldconfig to report *all* directores which are 12531 # searched for libraries, however this is still not possible. Aside from not 12532 # being certain /sbin/ldconfig is available, command 12533 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 12534 # even though it is searched at run-time. Try to do the best guess by 12535 # appending ld.so.conf contents (and includes) to the search path. 12536 if test -f /etc/ld.so.conf; then 12537 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' ' '` 12538 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 12539 fi 12540 12541 # We used to test for /lib/ld.so.1 and disable shared libraries on 12542 # powerpc, because MkLinux only supported shared libraries with the 12543 # GNU dynamic linker. Since this was broken with cross compilers, 12544 # most powerpc-linux boxes support dynamic linking these days and 12545 # people can always --disable-shared, the test was removed, and we 12546 # assume the GNU/Linux dynamic linker is in use. 12547 dynamic_linker='GNU/Linux ld.so' 12548 ;; 12549 12550netbsd*) 12551 version_type=sunos 12552 need_lib_prefix=no 12553 need_version=no 12554 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 12555 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12556 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12557 dynamic_linker='NetBSD (a.out) ld.so' 12558 else 12559 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12560 soname_spec='$libname$release$shared_ext$major' 12561 dynamic_linker='NetBSD ld.elf_so' 12562 fi 12563 shlibpath_var=LD_LIBRARY_PATH 12564 shlibpath_overrides_runpath=yes 12565 hardcode_into_libs=yes 12566 ;; 12567 12568newsos6) 12569 version_type=linux # correct to gnu/linux during the next big refactor 12570 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12571 shlibpath_var=LD_LIBRARY_PATH 12572 shlibpath_overrides_runpath=yes 12573 ;; 12574 12575*nto* | *qnx*) 12576 version_type=qnx 12577 need_lib_prefix=no 12578 need_version=no 12579 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12580 soname_spec='$libname$release$shared_ext$major' 12581 shlibpath_var=LD_LIBRARY_PATH 12582 shlibpath_overrides_runpath=no 12583 hardcode_into_libs=yes 12584 dynamic_linker='ldqnx.so' 12585 ;; 12586 12587openbsd* | bitrig*) 12588 version_type=sunos 12589 sys_lib_dlsearch_path_spec=/usr/lib 12590 need_lib_prefix=no 12591 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 12592 need_version=no 12593 else 12594 need_version=yes 12595 fi 12596 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12597 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 12598 shlibpath_var=LD_LIBRARY_PATH 12599 shlibpath_overrides_runpath=yes 12600 ;; 12601 12602os2*) 12603 libname_spec='$name' 12604 version_type=windows 12605 shrext_cmds=.dll 12606 need_version=no 12607 need_lib_prefix=no 12608 # OS/2 can only load a DLL with a base name of 8 characters or less. 12609 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 12610 v=$($ECHO $release$versuffix | tr -d .-); 12611 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 12612 $ECHO $n$v`$shared_ext' 12613 library_names_spec='${libname}_dll.$libext' 12614 dynamic_linker='OS/2 ld.exe' 12615 shlibpath_var=BEGINLIBPATH 12616 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 12617 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12618 postinstall_cmds='base_file=`basename \$file`~ 12619 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 12620 dldir=$destdir/`dirname \$dlpath`~ 12621 test -d \$dldir || mkdir -p \$dldir~ 12622 $install_prog $dir/$dlname \$dldir/$dlname~ 12623 chmod a+x \$dldir/$dlname~ 12624 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 12625 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 12626 fi' 12627 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 12628 dlpath=$dir/\$dldll~ 12629 $RM \$dlpath' 12630 ;; 12631 12632osf3* | osf4* | osf5*) 12633 version_type=osf 12634 need_lib_prefix=no 12635 need_version=no 12636 soname_spec='$libname$release$shared_ext$major' 12637 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12638 shlibpath_var=LD_LIBRARY_PATH 12639 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 12640 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 12641 ;; 12642 12643rdos*) 12644 dynamic_linker=no 12645 ;; 12646 12647solaris*) 12648 version_type=linux # correct to gnu/linux during the next big refactor 12649 need_lib_prefix=no 12650 need_version=no 12651 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12652 soname_spec='$libname$release$shared_ext$major' 12653 shlibpath_var=LD_LIBRARY_PATH 12654 shlibpath_overrides_runpath=yes 12655 hardcode_into_libs=yes 12656 # ldd complains unless libraries are executable 12657 postinstall_cmds='chmod +x $lib' 12658 ;; 12659 12660sunos4*) 12661 version_type=sunos 12662 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 12663 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 12664 shlibpath_var=LD_LIBRARY_PATH 12665 shlibpath_overrides_runpath=yes 12666 if test yes = "$with_gnu_ld"; then 12667 need_lib_prefix=no 12668 fi 12669 need_version=yes 12670 ;; 12671 12672sysv4 | sysv4.3*) 12673 version_type=linux # correct to gnu/linux during the next big refactor 12674 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12675 soname_spec='$libname$release$shared_ext$major' 12676 shlibpath_var=LD_LIBRARY_PATH 12677 case $host_vendor in 12678 sni) 12679 shlibpath_overrides_runpath=no 12680 need_lib_prefix=no 12681 runpath_var=LD_RUN_PATH 12682 ;; 12683 siemens) 12684 need_lib_prefix=no 12685 ;; 12686 motorola) 12687 need_lib_prefix=no 12688 need_version=no 12689 shlibpath_overrides_runpath=no 12690 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 12691 ;; 12692 esac 12693 ;; 12694 12695sysv4*MP*) 12696 if test -d /usr/nec; then 12697 version_type=linux # correct to gnu/linux during the next big refactor 12698 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 12699 soname_spec='$libname$shared_ext.$major' 12700 shlibpath_var=LD_LIBRARY_PATH 12701 fi 12702 ;; 12703 12704sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 12705 version_type=sco 12706 need_lib_prefix=no 12707 need_version=no 12708 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 12709 soname_spec='$libname$release$shared_ext$major' 12710 shlibpath_var=LD_LIBRARY_PATH 12711 shlibpath_overrides_runpath=yes 12712 hardcode_into_libs=yes 12713 if test yes = "$with_gnu_ld"; then 12714 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 12715 else 12716 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 12717 case $host_os in 12718 sco3.2v5*) 12719 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 12720 ;; 12721 esac 12722 fi 12723 sys_lib_dlsearch_path_spec='/usr/lib' 12724 ;; 12725 12726tpf*) 12727 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 12728 version_type=linux # correct to gnu/linux during the next big refactor 12729 need_lib_prefix=no 12730 need_version=no 12731 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12732 shlibpath_var=LD_LIBRARY_PATH 12733 shlibpath_overrides_runpath=no 12734 hardcode_into_libs=yes 12735 ;; 12736 12737uts4*) 12738 version_type=linux # correct to gnu/linux during the next big refactor 12739 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 12740 soname_spec='$libname$release$shared_ext$major' 12741 shlibpath_var=LD_LIBRARY_PATH 12742 ;; 12743 12744*) 12745 dynamic_linker=no 12746 ;; 12747esac 12748{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 12749$as_echo "$dynamic_linker" >&6; } 12750test no = "$dynamic_linker" && can_build_shared=no 12751 12752variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 12753if test yes = "$GCC"; then 12754 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 12755fi 12756 12757if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 12758 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 12759fi 12760 12761if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 12762 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 12763fi 12764 12765# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 12766configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 12767 12768# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 12769func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 12770 12771# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 12772configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 12773 12774 12775 12776 12777 12778 12779 12780 12781 12782 12783 12784 12785 12786 12787 12788 12789 12790 12791 12792 12793 12794 12795 12796 12797 12798 12799 12800 12801 12802 12803 12804 12805 12806 12807 12808 12809 12810 12811 12812 12813 12814 12815 12816 12817 12818 12819 12820 12821 12822 12823 12824 12825 12826 12827 12828 12829 12830 12831 12832 12833 12834 12835 12836 12837 12838 12839 12840 12841 12842 12843 12844 12845 12846 12847 12848 12849 12850 12851 12852 12853 12854 12855 12856 12857 12858 12859 12860 12861 12862 12863 12864 12865 12866 12867 12868 12869 12870 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 12871$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 12872hardcode_action= 12873if test -n "$hardcode_libdir_flag_spec" || 12874 test -n "$runpath_var" || 12875 test yes = "$hardcode_automatic"; then 12876 12877 # We can hardcode non-existent directories. 12878 if test no != "$hardcode_direct" && 12879 # If the only mechanism to avoid hardcoding is shlibpath_var, we 12880 # have to relink, otherwise we might link with an installed library 12881 # when we should be linking with a yet-to-be-installed one 12882 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 12883 test no != "$hardcode_minus_L"; then 12884 # Linking always hardcodes the temporary library directory. 12885 hardcode_action=relink 12886 else 12887 # We can link without hardcoding, and we can hardcode nonexisting dirs. 12888 hardcode_action=immediate 12889 fi 12890else 12891 # We cannot hardcode anything, or else we can only hardcode existing 12892 # directories. 12893 hardcode_action=unsupported 12894fi 12895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 12896$as_echo "$hardcode_action" >&6; } 12897 12898if test relink = "$hardcode_action" || 12899 test yes = "$inherit_rpath"; then 12900 # Fast installation is not supported 12901 enable_fast_install=no 12902elif test yes = "$shlibpath_overrides_runpath" || 12903 test no = "$enable_shared"; then 12904 # Fast installation is not necessary 12905 enable_fast_install=needless 12906fi 12907 12908 12909 12910 12911 12912 12913 if test yes != "$enable_dlopen"; then 12914 enable_dlopen=unknown 12915 enable_dlopen_self=unknown 12916 enable_dlopen_self_static=unknown 12917else 12918 lt_cv_dlopen=no 12919 lt_cv_dlopen_libs= 12920 12921 case $host_os in 12922 beos*) 12923 lt_cv_dlopen=load_add_on 12924 lt_cv_dlopen_libs= 12925 lt_cv_dlopen_self=yes 12926 ;; 12927 12928 mingw* | pw32* | cegcc*) 12929 lt_cv_dlopen=LoadLibrary 12930 lt_cv_dlopen_libs= 12931 ;; 12932 12933 cygwin*) 12934 lt_cv_dlopen=dlopen 12935 lt_cv_dlopen_libs= 12936 ;; 12937 12938 darwin*) 12939 # if libdl is installed we need to link against it 12940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 12941$as_echo_n "checking for dlopen in -ldl... " >&6; } 12942if ${ac_cv_lib_dl_dlopen+:} false; then : 12943 $as_echo_n "(cached) " >&6 12944else 12945 ac_check_lib_save_LIBS=$LIBS 12946LIBS="-ldl $LIBS" 12947cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12948/* end confdefs.h. */ 12949 12950/* Override any GCC internal prototype to avoid an error. 12951 Use char because int might match the return type of a GCC 12952 builtin and then its argument prototype would still apply. */ 12953#ifdef __cplusplus 12954extern "C" 12955#endif 12956char dlopen (); 12957int 12958main () 12959{ 12960return dlopen (); 12961 ; 12962 return 0; 12963} 12964_ACEOF 12965if ac_fn_c_try_link "$LINENO"; then : 12966 ac_cv_lib_dl_dlopen=yes 12967else 12968 ac_cv_lib_dl_dlopen=no 12969fi 12970rm -f core conftest.err conftest.$ac_objext \ 12971 conftest$ac_exeext conftest.$ac_ext 12972LIBS=$ac_check_lib_save_LIBS 12973fi 12974{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 12975$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 12976if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 12977 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 12978else 12979 12980 lt_cv_dlopen=dyld 12981 lt_cv_dlopen_libs= 12982 lt_cv_dlopen_self=yes 12983 12984fi 12985 12986 ;; 12987 12988 tpf*) 12989 # Don't try to run any link tests for TPF. We know it's impossible 12990 # because TPF is a cross-compiler, and we know how we open DSOs. 12991 lt_cv_dlopen=dlopen 12992 lt_cv_dlopen_libs= 12993 lt_cv_dlopen_self=no 12994 ;; 12995 12996 *) 12997 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 12998if test "x$ac_cv_func_shl_load" = xyes; then : 12999 lt_cv_dlopen=shl_load 13000else 13001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 13002$as_echo_n "checking for shl_load in -ldld... " >&6; } 13003if ${ac_cv_lib_dld_shl_load+:} false; then : 13004 $as_echo_n "(cached) " >&6 13005else 13006 ac_check_lib_save_LIBS=$LIBS 13007LIBS="-ldld $LIBS" 13008cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13009/* end confdefs.h. */ 13010 13011/* Override any GCC internal prototype to avoid an error. 13012 Use char because int might match the return type of a GCC 13013 builtin and then its argument prototype would still apply. */ 13014#ifdef __cplusplus 13015extern "C" 13016#endif 13017char shl_load (); 13018int 13019main () 13020{ 13021return shl_load (); 13022 ; 13023 return 0; 13024} 13025_ACEOF 13026if ac_fn_c_try_link "$LINENO"; then : 13027 ac_cv_lib_dld_shl_load=yes 13028else 13029 ac_cv_lib_dld_shl_load=no 13030fi 13031rm -f core conftest.err conftest.$ac_objext \ 13032 conftest$ac_exeext conftest.$ac_ext 13033LIBS=$ac_check_lib_save_LIBS 13034fi 13035{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 13036$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 13037if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 13038 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 13039else 13040 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 13041if test "x$ac_cv_func_dlopen" = xyes; then : 13042 lt_cv_dlopen=dlopen 13043else 13044 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 13045$as_echo_n "checking for dlopen in -ldl... " >&6; } 13046if ${ac_cv_lib_dl_dlopen+:} false; then : 13047 $as_echo_n "(cached) " >&6 13048else 13049 ac_check_lib_save_LIBS=$LIBS 13050LIBS="-ldl $LIBS" 13051cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13052/* end confdefs.h. */ 13053 13054/* Override any GCC internal prototype to avoid an error. 13055 Use char because int might match the return type of a GCC 13056 builtin and then its argument prototype would still apply. */ 13057#ifdef __cplusplus 13058extern "C" 13059#endif 13060char dlopen (); 13061int 13062main () 13063{ 13064return dlopen (); 13065 ; 13066 return 0; 13067} 13068_ACEOF 13069if ac_fn_c_try_link "$LINENO"; then : 13070 ac_cv_lib_dl_dlopen=yes 13071else 13072 ac_cv_lib_dl_dlopen=no 13073fi 13074rm -f core conftest.err conftest.$ac_objext \ 13075 conftest$ac_exeext conftest.$ac_ext 13076LIBS=$ac_check_lib_save_LIBS 13077fi 13078{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 13079$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 13080if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 13081 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 13082else 13083 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 13084$as_echo_n "checking for dlopen in -lsvld... " >&6; } 13085if ${ac_cv_lib_svld_dlopen+:} false; then : 13086 $as_echo_n "(cached) " >&6 13087else 13088 ac_check_lib_save_LIBS=$LIBS 13089LIBS="-lsvld $LIBS" 13090cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13091/* end confdefs.h. */ 13092 13093/* Override any GCC internal prototype to avoid an error. 13094 Use char because int might match the return type of a GCC 13095 builtin and then its argument prototype would still apply. */ 13096#ifdef __cplusplus 13097extern "C" 13098#endif 13099char dlopen (); 13100int 13101main () 13102{ 13103return dlopen (); 13104 ; 13105 return 0; 13106} 13107_ACEOF 13108if ac_fn_c_try_link "$LINENO"; then : 13109 ac_cv_lib_svld_dlopen=yes 13110else 13111 ac_cv_lib_svld_dlopen=no 13112fi 13113rm -f core conftest.err conftest.$ac_objext \ 13114 conftest$ac_exeext conftest.$ac_ext 13115LIBS=$ac_check_lib_save_LIBS 13116fi 13117{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 13118$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 13119if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 13120 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 13121else 13122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 13123$as_echo_n "checking for dld_link in -ldld... " >&6; } 13124if ${ac_cv_lib_dld_dld_link+:} false; then : 13125 $as_echo_n "(cached) " >&6 13126else 13127 ac_check_lib_save_LIBS=$LIBS 13128LIBS="-ldld $LIBS" 13129cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13130/* end confdefs.h. */ 13131 13132/* Override any GCC internal prototype to avoid an error. 13133 Use char because int might match the return type of a GCC 13134 builtin and then its argument prototype would still apply. */ 13135#ifdef __cplusplus 13136extern "C" 13137#endif 13138char dld_link (); 13139int 13140main () 13141{ 13142return dld_link (); 13143 ; 13144 return 0; 13145} 13146_ACEOF 13147if ac_fn_c_try_link "$LINENO"; then : 13148 ac_cv_lib_dld_dld_link=yes 13149else 13150 ac_cv_lib_dld_dld_link=no 13151fi 13152rm -f core conftest.err conftest.$ac_objext \ 13153 conftest$ac_exeext conftest.$ac_ext 13154LIBS=$ac_check_lib_save_LIBS 13155fi 13156{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 13157$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 13158if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 13159 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 13160fi 13161 13162 13163fi 13164 13165 13166fi 13167 13168 13169fi 13170 13171 13172fi 13173 13174 13175fi 13176 13177 ;; 13178 esac 13179 13180 if test no = "$lt_cv_dlopen"; then 13181 enable_dlopen=no 13182 else 13183 enable_dlopen=yes 13184 fi 13185 13186 case $lt_cv_dlopen in 13187 dlopen) 13188 save_CPPFLAGS=$CPPFLAGS 13189 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 13190 13191 save_LDFLAGS=$LDFLAGS 13192 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 13193 13194 save_LIBS=$LIBS 13195 LIBS="$lt_cv_dlopen_libs $LIBS" 13196 13197 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 13198$as_echo_n "checking whether a program can dlopen itself... " >&6; } 13199if ${lt_cv_dlopen_self+:} false; then : 13200 $as_echo_n "(cached) " >&6 13201else 13202 if test yes = "$cross_compiling"; then : 13203 lt_cv_dlopen_self=cross 13204else 13205 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13206 lt_status=$lt_dlunknown 13207 cat > conftest.$ac_ext <<_LT_EOF 13208#line $LINENO "configure" 13209#include "confdefs.h" 13210 13211#if HAVE_DLFCN_H 13212#include <dlfcn.h> 13213#endif 13214 13215#include <stdio.h> 13216 13217#ifdef RTLD_GLOBAL 13218# define LT_DLGLOBAL RTLD_GLOBAL 13219#else 13220# ifdef DL_GLOBAL 13221# define LT_DLGLOBAL DL_GLOBAL 13222# else 13223# define LT_DLGLOBAL 0 13224# endif 13225#endif 13226 13227/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13228 find out it does not work in some platform. */ 13229#ifndef LT_DLLAZY_OR_NOW 13230# ifdef RTLD_LAZY 13231# define LT_DLLAZY_OR_NOW RTLD_LAZY 13232# else 13233# ifdef DL_LAZY 13234# define LT_DLLAZY_OR_NOW DL_LAZY 13235# else 13236# ifdef RTLD_NOW 13237# define LT_DLLAZY_OR_NOW RTLD_NOW 13238# else 13239# ifdef DL_NOW 13240# define LT_DLLAZY_OR_NOW DL_NOW 13241# else 13242# define LT_DLLAZY_OR_NOW 0 13243# endif 13244# endif 13245# endif 13246# endif 13247#endif 13248 13249/* When -fvisibility=hidden is used, assume the code has been annotated 13250 correspondingly for the symbols needed. */ 13251#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13252int fnord () __attribute__((visibility("default"))); 13253#endif 13254 13255int fnord () { return 42; } 13256int main () 13257{ 13258 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13259 int status = $lt_dlunknown; 13260 13261 if (self) 13262 { 13263 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13264 else 13265 { 13266 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13267 else puts (dlerror ()); 13268 } 13269 /* dlclose (self); */ 13270 } 13271 else 13272 puts (dlerror ()); 13273 13274 return status; 13275} 13276_LT_EOF 13277 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13278 (eval $ac_link) 2>&5 13279 ac_status=$? 13280 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13281 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13282 (./conftest; exit; ) >&5 2>/dev/null 13283 lt_status=$? 13284 case x$lt_status in 13285 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 13286 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 13287 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 13288 esac 13289 else : 13290 # compilation failed 13291 lt_cv_dlopen_self=no 13292 fi 13293fi 13294rm -fr conftest* 13295 13296 13297fi 13298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 13299$as_echo "$lt_cv_dlopen_self" >&6; } 13300 13301 if test yes = "$lt_cv_dlopen_self"; then 13302 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 13303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 13304$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 13305if ${lt_cv_dlopen_self_static+:} false; then : 13306 $as_echo_n "(cached) " >&6 13307else 13308 if test yes = "$cross_compiling"; then : 13309 lt_cv_dlopen_self_static=cross 13310else 13311 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 13312 lt_status=$lt_dlunknown 13313 cat > conftest.$ac_ext <<_LT_EOF 13314#line $LINENO "configure" 13315#include "confdefs.h" 13316 13317#if HAVE_DLFCN_H 13318#include <dlfcn.h> 13319#endif 13320 13321#include <stdio.h> 13322 13323#ifdef RTLD_GLOBAL 13324# define LT_DLGLOBAL RTLD_GLOBAL 13325#else 13326# ifdef DL_GLOBAL 13327# define LT_DLGLOBAL DL_GLOBAL 13328# else 13329# define LT_DLGLOBAL 0 13330# endif 13331#endif 13332 13333/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 13334 find out it does not work in some platform. */ 13335#ifndef LT_DLLAZY_OR_NOW 13336# ifdef RTLD_LAZY 13337# define LT_DLLAZY_OR_NOW RTLD_LAZY 13338# else 13339# ifdef DL_LAZY 13340# define LT_DLLAZY_OR_NOW DL_LAZY 13341# else 13342# ifdef RTLD_NOW 13343# define LT_DLLAZY_OR_NOW RTLD_NOW 13344# else 13345# ifdef DL_NOW 13346# define LT_DLLAZY_OR_NOW DL_NOW 13347# else 13348# define LT_DLLAZY_OR_NOW 0 13349# endif 13350# endif 13351# endif 13352# endif 13353#endif 13354 13355/* When -fvisibility=hidden is used, assume the code has been annotated 13356 correspondingly for the symbols needed. */ 13357#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 13358int fnord () __attribute__((visibility("default"))); 13359#endif 13360 13361int fnord () { return 42; } 13362int main () 13363{ 13364 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 13365 int status = $lt_dlunknown; 13366 13367 if (self) 13368 { 13369 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 13370 else 13371 { 13372 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 13373 else puts (dlerror ()); 13374 } 13375 /* dlclose (self); */ 13376 } 13377 else 13378 puts (dlerror ()); 13379 13380 return status; 13381} 13382_LT_EOF 13383 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 13384 (eval $ac_link) 2>&5 13385 ac_status=$? 13386 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 13387 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 13388 (./conftest; exit; ) >&5 2>/dev/null 13389 lt_status=$? 13390 case x$lt_status in 13391 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 13392 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 13393 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 13394 esac 13395 else : 13396 # compilation failed 13397 lt_cv_dlopen_self_static=no 13398 fi 13399fi 13400rm -fr conftest* 13401 13402 13403fi 13404{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 13405$as_echo "$lt_cv_dlopen_self_static" >&6; } 13406 fi 13407 13408 CPPFLAGS=$save_CPPFLAGS 13409 LDFLAGS=$save_LDFLAGS 13410 LIBS=$save_LIBS 13411 ;; 13412 esac 13413 13414 case $lt_cv_dlopen_self in 13415 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 13416 *) enable_dlopen_self=unknown ;; 13417 esac 13418 13419 case $lt_cv_dlopen_self_static in 13420 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 13421 *) enable_dlopen_self_static=unknown ;; 13422 esac 13423fi 13424 13425 13426 13427 13428 13429 13430 13431 13432 13433 13434 13435 13436 13437 13438 13439 13440 13441striplib= 13442old_striplib= 13443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 13444$as_echo_n "checking whether stripping libraries is possible... " >&6; } 13445if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 13446 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 13447 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 13448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13449$as_echo "yes" >&6; } 13450else 13451# FIXME - insert some real tests, host_os isn't really good enough 13452 case $host_os in 13453 darwin*) 13454 if test -n "$STRIP"; then 13455 striplib="$STRIP -x" 13456 old_striplib="$STRIP -S" 13457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 13458$as_echo "yes" >&6; } 13459 else 13460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13461$as_echo "no" >&6; } 13462 fi 13463 ;; 13464 *) 13465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13466$as_echo "no" >&6; } 13467 ;; 13468 esac 13469fi 13470 13471 13472 13473 13474 13475 13476 13477 13478 13479 13480 13481 13482 # Report what library types will actually be built 13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 13484$as_echo_n "checking if libtool supports shared libraries... " >&6; } 13485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 13486$as_echo "$can_build_shared" >&6; } 13487 13488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 13489$as_echo_n "checking whether to build shared libraries... " >&6; } 13490 test no = "$can_build_shared" && enable_shared=no 13491 13492 # On AIX, shared libraries and static libraries use the same namespace, and 13493 # are all built from PIC. 13494 case $host_os in 13495 aix3*) 13496 test yes = "$enable_shared" && enable_static=no 13497 if test -n "$RANLIB"; then 13498 archive_cmds="$archive_cmds~\$RANLIB \$lib" 13499 postinstall_cmds='$RANLIB $lib' 13500 fi 13501 ;; 13502 13503 aix[4-9]*) 13504 if test ia64 != "$host_cpu"; then 13505 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 13506 yes,aix,yes) ;; # shared object as lib.so file only 13507 yes,svr4,*) ;; # shared object as lib.so archive member only 13508 yes,*) enable_static=no ;; # shared object in lib.a archive as well 13509 esac 13510 fi 13511 ;; 13512 esac 13513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 13514$as_echo "$enable_shared" >&6; } 13515 13516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 13517$as_echo_n "checking whether to build static libraries... " >&6; } 13518 # Make sure either enable_shared or enable_static is yes. 13519 test yes = "$enable_shared" || enable_static=yes 13520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 13521$as_echo "$enable_static" >&6; } 13522 13523 13524 13525 13526fi 13527ac_ext=cpp 13528ac_cpp='$CXXCPP $CPPFLAGS' 13529ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13530ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13531ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13532 13533CC=$lt_save_CC 13534 13535 if test -n "$CXX" && ( test no != "$CXX" && 13536 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 13537 (test g++ != "$CXX"))); then 13538 ac_ext=cpp 13539ac_cpp='$CXXCPP $CPPFLAGS' 13540ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13541ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13542ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13543{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 13544$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 13545if test -z "$CXXCPP"; then 13546 if ${ac_cv_prog_CXXCPP+:} false; then : 13547 $as_echo_n "(cached) " >&6 13548else 13549 # Double quotes because CXXCPP needs to be expanded 13550 for CXXCPP in "$CXX -E" "/lib/cpp" 13551 do 13552 ac_preproc_ok=false 13553for ac_cxx_preproc_warn_flag in '' yes 13554do 13555 # Use a header file that comes with gcc, so configuring glibc 13556 # with a fresh cross-compiler works. 13557 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13558 # <limits.h> exists even on freestanding compilers. 13559 # On the NeXT, cc -E runs the code through the compiler's parser, 13560 # not just through cpp. "Syntax error" is here to catch this case. 13561 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13562/* end confdefs.h. */ 13563#ifdef __STDC__ 13564# include <limits.h> 13565#else 13566# include <assert.h> 13567#endif 13568 Syntax error 13569_ACEOF 13570if ac_fn_cxx_try_cpp "$LINENO"; then : 13571 13572else 13573 # Broken: fails on valid input. 13574continue 13575fi 13576rm -f conftest.err conftest.i conftest.$ac_ext 13577 13578 # OK, works on sane cases. Now check whether nonexistent headers 13579 # can be detected and how. 13580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13581/* end confdefs.h. */ 13582#include <ac_nonexistent.h> 13583_ACEOF 13584if ac_fn_cxx_try_cpp "$LINENO"; then : 13585 # Broken: success on invalid input. 13586continue 13587else 13588 # Passes both tests. 13589ac_preproc_ok=: 13590break 13591fi 13592rm -f conftest.err conftest.i conftest.$ac_ext 13593 13594done 13595# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13596rm -f conftest.i conftest.err conftest.$ac_ext 13597if $ac_preproc_ok; then : 13598 break 13599fi 13600 13601 done 13602 ac_cv_prog_CXXCPP=$CXXCPP 13603 13604fi 13605 CXXCPP=$ac_cv_prog_CXXCPP 13606else 13607 ac_cv_prog_CXXCPP=$CXXCPP 13608fi 13609{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 13610$as_echo "$CXXCPP" >&6; } 13611ac_preproc_ok=false 13612for ac_cxx_preproc_warn_flag in '' yes 13613do 13614 # Use a header file that comes with gcc, so configuring glibc 13615 # with a fresh cross-compiler works. 13616 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 13617 # <limits.h> exists even on freestanding compilers. 13618 # On the NeXT, cc -E runs the code through the compiler's parser, 13619 # not just through cpp. "Syntax error" is here to catch this case. 13620 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13621/* end confdefs.h. */ 13622#ifdef __STDC__ 13623# include <limits.h> 13624#else 13625# include <assert.h> 13626#endif 13627 Syntax error 13628_ACEOF 13629if ac_fn_cxx_try_cpp "$LINENO"; then : 13630 13631else 13632 # Broken: fails on valid input. 13633continue 13634fi 13635rm -f conftest.err conftest.i conftest.$ac_ext 13636 13637 # OK, works on sane cases. Now check whether nonexistent headers 13638 # can be detected and how. 13639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13640/* end confdefs.h. */ 13641#include <ac_nonexistent.h> 13642_ACEOF 13643if ac_fn_cxx_try_cpp "$LINENO"; then : 13644 # Broken: success on invalid input. 13645continue 13646else 13647 # Passes both tests. 13648ac_preproc_ok=: 13649break 13650fi 13651rm -f conftest.err conftest.i conftest.$ac_ext 13652 13653done 13654# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 13655rm -f conftest.i conftest.err conftest.$ac_ext 13656if $ac_preproc_ok; then : 13657 13658else 13659 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 13660$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 13661as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 13662See \`config.log' for more details" "$LINENO" 5; } 13663fi 13664 13665ac_ext=cpp 13666ac_cpp='$CXXCPP $CPPFLAGS' 13667ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13668ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13669ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13670 13671else 13672 _lt_caught_CXX_error=yes 13673fi 13674 13675ac_ext=cpp 13676ac_cpp='$CXXCPP $CPPFLAGS' 13677ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 13678ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 13679ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 13680 13681archive_cmds_need_lc_CXX=no 13682allow_undefined_flag_CXX= 13683always_export_symbols_CXX=no 13684archive_expsym_cmds_CXX= 13685compiler_needs_object_CXX=no 13686export_dynamic_flag_spec_CXX= 13687hardcode_direct_CXX=no 13688hardcode_direct_absolute_CXX=no 13689hardcode_libdir_flag_spec_CXX= 13690hardcode_libdir_separator_CXX= 13691hardcode_minus_L_CXX=no 13692hardcode_shlibpath_var_CXX=unsupported 13693hardcode_automatic_CXX=no 13694inherit_rpath_CXX=no 13695module_cmds_CXX= 13696module_expsym_cmds_CXX= 13697link_all_deplibs_CXX=unknown 13698old_archive_cmds_CXX=$old_archive_cmds 13699reload_flag_CXX=$reload_flag 13700reload_cmds_CXX=$reload_cmds 13701no_undefined_flag_CXX= 13702whole_archive_flag_spec_CXX= 13703enable_shared_with_static_runtimes_CXX=no 13704 13705# Source file extension for C++ test sources. 13706ac_ext=cpp 13707 13708# Object file extension for compiled C++ test sources. 13709objext=o 13710objext_CXX=$objext 13711 13712# No sense in running all these tests if we already determined that 13713# the CXX compiler isn't working. Some variables (like enable_shared) 13714# are currently assumed to apply to all compilers on this platform, 13715# and will be corrupted by setting them based on a non-working compiler. 13716if test yes != "$_lt_caught_CXX_error"; then 13717 # Code to be used in simple compile tests 13718 lt_simple_compile_test_code="int some_variable = 0;" 13719 13720 # Code to be used in simple link tests 13721 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 13722 13723 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 13724 13725 13726 13727 13728 13729 13730# If no C compiler was specified, use CC. 13731LTCC=${LTCC-"$CC"} 13732 13733# If no C compiler flags were specified, use CFLAGS. 13734LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 13735 13736# Allow CC to be a program name with arguments. 13737compiler=$CC 13738 13739 13740 # save warnings/boilerplate of simple test code 13741 ac_outfile=conftest.$ac_objext 13742echo "$lt_simple_compile_test_code" >conftest.$ac_ext 13743eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13744_lt_compiler_boilerplate=`cat conftest.err` 13745$RM conftest* 13746 13747 ac_outfile=conftest.$ac_objext 13748echo "$lt_simple_link_test_code" >conftest.$ac_ext 13749eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 13750_lt_linker_boilerplate=`cat conftest.err` 13751$RM -r conftest* 13752 13753 13754 # Allow CC to be a program name with arguments. 13755 lt_save_CC=$CC 13756 lt_save_CFLAGS=$CFLAGS 13757 lt_save_LD=$LD 13758 lt_save_GCC=$GCC 13759 GCC=$GXX 13760 lt_save_with_gnu_ld=$with_gnu_ld 13761 lt_save_path_LD=$lt_cv_path_LD 13762 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 13763 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 13764 else 13765 $as_unset lt_cv_prog_gnu_ld 13766 fi 13767 if test -n "${lt_cv_path_LDCXX+set}"; then 13768 lt_cv_path_LD=$lt_cv_path_LDCXX 13769 else 13770 $as_unset lt_cv_path_LD 13771 fi 13772 test -z "${LDCXX+set}" || LD=$LDCXX 13773 CC=${CXX-"c++"} 13774 CFLAGS=$CXXFLAGS 13775 compiler=$CC 13776 compiler_CXX=$CC 13777 func_cc_basename $compiler 13778cc_basename=$func_cc_basename_result 13779 13780 13781 if test -n "$compiler"; then 13782 # We don't want -fno-exception when compiling C++ code, so set the 13783 # no_builtin_flag separately 13784 if test yes = "$GXX"; then 13785 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 13786 else 13787 lt_prog_compiler_no_builtin_flag_CXX= 13788 fi 13789 13790 if test yes = "$GXX"; then 13791 # Set up default GNU C++ configuration 13792 13793 13794 13795# Check whether --with-gnu-ld was given. 13796if test "${with_gnu_ld+set}" = set; then : 13797 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 13798else 13799 with_gnu_ld=no 13800fi 13801 13802ac_prog=ld 13803if test yes = "$GCC"; then 13804 # Check if gcc -print-prog-name=ld gives a path. 13805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 13806$as_echo_n "checking for ld used by $CC... " >&6; } 13807 case $host in 13808 *-*-mingw*) 13809 # gcc leaves a trailing carriage return, which upsets mingw 13810 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 13811 *) 13812 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 13813 esac 13814 case $ac_prog in 13815 # Accept absolute paths. 13816 [\\/]* | ?:[\\/]*) 13817 re_direlt='/[^/][^/]*/\.\./' 13818 # Canonicalize the pathname of ld 13819 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 13820 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 13821 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 13822 done 13823 test -z "$LD" && LD=$ac_prog 13824 ;; 13825 "") 13826 # If it fails, then pretend we aren't using GCC. 13827 ac_prog=ld 13828 ;; 13829 *) 13830 # If it is relative, then search for the first ld in PATH. 13831 with_gnu_ld=unknown 13832 ;; 13833 esac 13834elif test yes = "$with_gnu_ld"; then 13835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 13836$as_echo_n "checking for GNU ld... " >&6; } 13837else 13838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 13839$as_echo_n "checking for non-GNU ld... " >&6; } 13840fi 13841if ${lt_cv_path_LD+:} false; then : 13842 $as_echo_n "(cached) " >&6 13843else 13844 if test -z "$LD"; then 13845 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 13846 for ac_dir in $PATH; do 13847 IFS=$lt_save_ifs 13848 test -z "$ac_dir" && ac_dir=. 13849 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 13850 lt_cv_path_LD=$ac_dir/$ac_prog 13851 # Check to see if the program is GNU ld. I'd rather use --version, 13852 # but apparently some variants of GNU ld only accept -v. 13853 # Break only if it was the GNU/non-GNU ld that we prefer. 13854 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 13855 *GNU* | *'with BFD'*) 13856 test no != "$with_gnu_ld" && break 13857 ;; 13858 *) 13859 test yes != "$with_gnu_ld" && break 13860 ;; 13861 esac 13862 fi 13863 done 13864 IFS=$lt_save_ifs 13865else 13866 lt_cv_path_LD=$LD # Let the user override the test with a path. 13867fi 13868fi 13869 13870LD=$lt_cv_path_LD 13871if test -n "$LD"; then 13872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 13873$as_echo "$LD" >&6; } 13874else 13875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 13876$as_echo "no" >&6; } 13877fi 13878test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 13879{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 13880$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 13881if ${lt_cv_prog_gnu_ld+:} false; then : 13882 $as_echo_n "(cached) " >&6 13883else 13884 # I'd rather use --version here, but apparently some GNU lds only accept -v. 13885case `$LD -v 2>&1 </dev/null` in 13886*GNU* | *'with BFD'*) 13887 lt_cv_prog_gnu_ld=yes 13888 ;; 13889*) 13890 lt_cv_prog_gnu_ld=no 13891 ;; 13892esac 13893fi 13894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 13895$as_echo "$lt_cv_prog_gnu_ld" >&6; } 13896with_gnu_ld=$lt_cv_prog_gnu_ld 13897 13898 13899 13900 13901 13902 13903 13904 # Check if GNU C++ uses GNU ld as the underlying linker, since the 13905 # archiving commands below assume that GNU ld is being used. 13906 if test yes = "$with_gnu_ld"; then 13907 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 13908 archive_expsym_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 13909 13910 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 13911 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 13912 13913 # If archive_cmds runs LD, not CC, wlarc should be empty 13914 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 13915 # investigate it a little bit more. (MM) 13916 wlarc='$wl' 13917 13918 # ancient GNU ld didn't support --whole-archive et. al. 13919 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 13920 $GREP 'no-whole-archive' > /dev/null; then 13921 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 13922 else 13923 whole_archive_flag_spec_CXX= 13924 fi 13925 else 13926 with_gnu_ld=no 13927 wlarc= 13928 13929 # A generic and very simple default shared library creation 13930 # command for GNU C++ for the case where it uses the native 13931 # linker, instead of GNU ld. If possible, this setting should 13932 # overridden to take advantage of the native linker features on 13933 # the platform it is being used on. 13934 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 13935 fi 13936 13937 # Commands to make compiler produce verbose output that lists 13938 # what "hidden" libraries, object files and flags are used when 13939 # linking a shared library. 13940 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 13941 13942 else 13943 GXX=no 13944 with_gnu_ld=no 13945 wlarc= 13946 fi 13947 13948 # PORTME: fill in a description of your system's C++ link characteristics 13949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 13950$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 13951 ld_shlibs_CXX=yes 13952 case $host_os in 13953 aix3*) 13954 # FIXME: insert proper C++ library support 13955 ld_shlibs_CXX=no 13956 ;; 13957 aix[4-9]*) 13958 if test ia64 = "$host_cpu"; then 13959 # On IA64, the linker does run time linking by default, so we don't 13960 # have to do anything special. 13961 aix_use_runtimelinking=no 13962 exp_sym_flag='-Bexport' 13963 no_entry_flag= 13964 else 13965 aix_use_runtimelinking=no 13966 13967 # Test if we are trying to use run time linking or normal 13968 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 13969 # have runtime linking enabled, and use it for executables. 13970 # For shared libraries, we enable/disable runtime linking 13971 # depending on the kind of the shared library created - 13972 # when "with_aix_soname,aix_use_runtimelinking" is: 13973 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 13974 # "aix,yes" lib.so shared, rtl:yes, for executables 13975 # lib.a static archive 13976 # "both,no" lib.so.V(shr.o) shared, rtl:yes 13977 # lib.a(lib.so.V) shared, rtl:no, for executables 13978 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 13979 # lib.a(lib.so.V) shared, rtl:no 13980 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 13981 # lib.a static archive 13982 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 13983 for ld_flag in $LDFLAGS; do 13984 case $ld_flag in 13985 *-brtl*) 13986 aix_use_runtimelinking=yes 13987 break 13988 ;; 13989 esac 13990 done 13991 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 13992 # With aix-soname=svr4, we create the lib.so.V shared archives only, 13993 # so we don't have lib.a shared libs to link our executables. 13994 # We have to force runtime linking in this case. 13995 aix_use_runtimelinking=yes 13996 LDFLAGS="$LDFLAGS -Wl,-brtl" 13997 fi 13998 ;; 13999 esac 14000 14001 exp_sym_flag='-bexport' 14002 no_entry_flag='-bnoentry' 14003 fi 14004 14005 # When large executables or shared objects are built, AIX ld can 14006 # have problems creating the table of contents. If linking a library 14007 # or program results in "error TOC overflow" add -mminimal-toc to 14008 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 14009 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 14010 14011 archive_cmds_CXX='' 14012 hardcode_direct_CXX=yes 14013 hardcode_direct_absolute_CXX=yes 14014 hardcode_libdir_separator_CXX=':' 14015 link_all_deplibs_CXX=yes 14016 file_list_spec_CXX='$wl-f,' 14017 case $with_aix_soname,$aix_use_runtimelinking in 14018 aix,*) ;; # no import file 14019 svr4,* | *,yes) # use import file 14020 # The Import File defines what to hardcode. 14021 hardcode_direct_CXX=no 14022 hardcode_direct_absolute_CXX=no 14023 ;; 14024 esac 14025 14026 if test yes = "$GXX"; then 14027 case $host_os in aix4.[012]|aix4.[012].*) 14028 # We only want to do this on AIX 4.2 and lower, the check 14029 # below for broken collect2 doesn't work under 4.3+ 14030 collect2name=`$CC -print-prog-name=collect2` 14031 if test -f "$collect2name" && 14032 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 14033 then 14034 # We have reworked collect2 14035 : 14036 else 14037 # We have old collect2 14038 hardcode_direct_CXX=unsupported 14039 # It fails to find uninstalled libraries when the uninstalled 14040 # path is not listed in the libpath. Setting hardcode_minus_L 14041 # to unsupported forces relinking 14042 hardcode_minus_L_CXX=yes 14043 hardcode_libdir_flag_spec_CXX='-L$libdir' 14044 hardcode_libdir_separator_CXX= 14045 fi 14046 esac 14047 shared_flag='-shared' 14048 if test yes = "$aix_use_runtimelinking"; then 14049 shared_flag=$shared_flag' $wl-G' 14050 fi 14051 # Need to ensure runtime linking is disabled for the traditional 14052 # shared library, or the linker may eventually find shared libraries 14053 # /with/ Import File - we do not want to mix them. 14054 shared_flag_aix='-shared' 14055 shared_flag_svr4='-shared $wl-G' 14056 else 14057 # not using gcc 14058 if test ia64 = "$host_cpu"; then 14059 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 14060 # chokes on -Wl,-G. The following line is correct: 14061 shared_flag='-G' 14062 else 14063 if test yes = "$aix_use_runtimelinking"; then 14064 shared_flag='$wl-G' 14065 else 14066 shared_flag='$wl-bM:SRE' 14067 fi 14068 shared_flag_aix='$wl-bM:SRE' 14069 shared_flag_svr4='$wl-G' 14070 fi 14071 fi 14072 14073 export_dynamic_flag_spec_CXX='$wl-bexpall' 14074 # It seems that -bexpall does not export symbols beginning with 14075 # underscore (_), so it is better to generate a list of symbols to 14076 # export. 14077 always_export_symbols_CXX=yes 14078 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 14079 # Warning - without using the other runtime loading flags (-brtl), 14080 # -berok will link without error, but may produce a broken library. 14081 # The "-G" linker flag allows undefined symbols. 14082 no_undefined_flag_CXX='-bernotok' 14083 # Determine the default libpath from the value encoded in an empty 14084 # executable. 14085 if test set = "${lt_cv_aix_libpath+set}"; then 14086 aix_libpath=$lt_cv_aix_libpath 14087else 14088 if ${lt_cv_aix_libpath__CXX+:} false; then : 14089 $as_echo_n "(cached) " >&6 14090else 14091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14092/* end confdefs.h. */ 14093 14094int 14095main () 14096{ 14097 14098 ; 14099 return 0; 14100} 14101_ACEOF 14102if ac_fn_cxx_try_link "$LINENO"; then : 14103 14104 lt_aix_libpath_sed=' 14105 /Import File Strings/,/^$/ { 14106 /^0/ { 14107 s/^0 *\([^ ]*\) *$/\1/ 14108 p 14109 } 14110 }' 14111 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14112 # Check for a 64-bit object if we didn't find anything. 14113 if test -z "$lt_cv_aix_libpath__CXX"; then 14114 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14115 fi 14116fi 14117rm -f core conftest.err conftest.$ac_objext \ 14118 conftest$ac_exeext conftest.$ac_ext 14119 if test -z "$lt_cv_aix_libpath__CXX"; then 14120 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14121 fi 14122 14123fi 14124 14125 aix_libpath=$lt_cv_aix_libpath__CXX 14126fi 14127 14128 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14129 14130 archive_expsym_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $deplibs $wl'$no_entry_flag' $compiler_flags `if test -n "$allow_undefined_flag"; then func_echo_all "$wl$allow_undefined_flag"; else :; fi` $wl'$exp_sym_flag:\$export_symbols' '$shared_flag 14131 else 14132 if test ia64 = "$host_cpu"; then 14133 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 14134 allow_undefined_flag_CXX="-z nodefs" 14135 archive_expsym_cmds_CXX="\$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" 14136 else 14137 # Determine the default libpath from the value encoded in an 14138 # empty executable. 14139 if test set = "${lt_cv_aix_libpath+set}"; then 14140 aix_libpath=$lt_cv_aix_libpath 14141else 14142 if ${lt_cv_aix_libpath__CXX+:} false; then : 14143 $as_echo_n "(cached) " >&6 14144else 14145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14146/* end confdefs.h. */ 14147 14148int 14149main () 14150{ 14151 14152 ; 14153 return 0; 14154} 14155_ACEOF 14156if ac_fn_cxx_try_link "$LINENO"; then : 14157 14158 lt_aix_libpath_sed=' 14159 /Import File Strings/,/^$/ { 14160 /^0/ { 14161 s/^0 *\([^ ]*\) *$/\1/ 14162 p 14163 } 14164 }' 14165 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14166 # Check for a 64-bit object if we didn't find anything. 14167 if test -z "$lt_cv_aix_libpath__CXX"; then 14168 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 14169 fi 14170fi 14171rm -f core conftest.err conftest.$ac_objext \ 14172 conftest$ac_exeext conftest.$ac_ext 14173 if test -z "$lt_cv_aix_libpath__CXX"; then 14174 lt_cv_aix_libpath__CXX=/usr/lib:/lib 14175 fi 14176 14177fi 14178 14179 aix_libpath=$lt_cv_aix_libpath__CXX 14180fi 14181 14182 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 14183 # Warning - without using the other run time loading flags, 14184 # -berok will link without error, but may produce a broken library. 14185 no_undefined_flag_CXX=' $wl-bernotok' 14186 allow_undefined_flag_CXX=' $wl-berok' 14187 if test yes = "$with_gnu_ld"; then 14188 # We only use this code for GNU lds that support --whole-archive. 14189 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14190 else 14191 # Exported symbols can be pulled into shared objects from archives 14192 whole_archive_flag_spec_CXX='$convenience' 14193 fi 14194 archive_cmds_need_lc_CXX=yes 14195 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 14196 # -brtl affects multiple linker settings, -berok does not and is overridden later 14197 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 14198 if test svr4 != "$with_aix_soname"; then 14199 # This is similar to how AIX traditionally builds its shared 14200 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 14201 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_aix' -o $output_objdir/$realname.d/$soname $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$realname.d/$soname' 14202 fi 14203 if test aix != "$with_aix_soname"; then 14204 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$CC '$shared_flag_svr4' -o $output_objdir/$realname.d/$shared_archive_member_spec.o $libobjs $deplibs $wl-bnoentry '$compiler_flags_filtered'$wl-bE:$export_symbols$allow_undefined_flag~$STRIP -e $output_objdir/$realname.d/$shared_archive_member_spec.o~( func_echo_all "#! $soname($shared_archive_member_spec.o)"; if test shr_64 = "$shared_archive_member_spec"; then func_echo_all "# 64"; else func_echo_all "# 32"; fi; cat $export_symbols ) > $output_objdir/$realname.d/$shared_archive_member_spec.imp~$AR $AR_FLAGS $output_objdir/$soname $output_objdir/$realname.d/$shared_archive_member_spec.o $output_objdir/$realname.d/$shared_archive_member_spec.imp' 14205 else 14206 # used by -dlpreopen to get the symbols 14207 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 14208 fi 14209 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 14210 fi 14211 fi 14212 ;; 14213 14214 beos*) 14215 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 14216 allow_undefined_flag_CXX=unsupported 14217 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 14218 # support --undefined. This deserves some investigation. FIXME 14219 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14220 else 14221 ld_shlibs_CXX=no 14222 fi 14223 ;; 14224 14225 chorus*) 14226 case $cc_basename in 14227 *) 14228 # FIXME: insert proper C++ library support 14229 ld_shlibs_CXX=no 14230 ;; 14231 esac 14232 ;; 14233 14234 cygwin* | mingw* | pw32* | cegcc*) 14235 case $GXX,$cc_basename in 14236 ,cl* | no,cl*) 14237 # Native MSVC 14238 # hardcode_libdir_flag_spec is actually meaningless, as there is 14239 # no search path for DLLs. 14240 hardcode_libdir_flag_spec_CXX=' ' 14241 allow_undefined_flag_CXX=unsupported 14242 always_export_symbols_CXX=yes 14243 file_list_spec_CXX='@' 14244 # Tell ltmain to make .lib files, not .a files. 14245 libext=lib 14246 # Tell ltmain to make .dll files, not .so files. 14247 shrext_cmds=.dll 14248 # FIXME: Setting linknames here is a bad hack. 14249 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 14250 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14251 cp "$export_symbols" "$output_objdir/$soname.def"; 14252 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 14253 else 14254 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 14255 fi~ 14256 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 14257 linknames=' 14258 # The linker will not automatically build a static lib if we build a DLL. 14259 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 14260 enable_shared_with_static_runtimes_CXX=yes 14261 # Don't use ranlib 14262 old_postinstall_cmds_CXX='chmod 644 $oldlib' 14263 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 14264 lt_tool_outputfile="@TOOL_OUTPUT@"~ 14265 case $lt_outputfile in 14266 *.exe|*.EXE) ;; 14267 *) 14268 lt_outputfile=$lt_outputfile.exe 14269 lt_tool_outputfile=$lt_tool_outputfile.exe 14270 ;; 14271 esac~ 14272 func_to_tool_file "$lt_outputfile"~ 14273 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 14274 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 14275 $RM "$lt_outputfile.manifest"; 14276 fi' 14277 ;; 14278 *) 14279 # g++ 14280 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 14281 # as there is no search path for DLLs. 14282 hardcode_libdir_flag_spec_CXX='-L$libdir' 14283 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 14284 allow_undefined_flag_CXX=unsupported 14285 always_export_symbols_CXX=no 14286 enable_shared_with_static_runtimes_CXX=yes 14287 14288 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 14289 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14290 # If the export-symbols file already is a .def file, use it as 14291 # is; otherwise, prepend EXPORTS... 14292 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 14293 cp $export_symbols $output_objdir/$soname.def; 14294 else 14295 echo EXPORTS > $output_objdir/$soname.def; 14296 cat $export_symbols >> $output_objdir/$soname.def; 14297 fi~ 14298 $CC -shared -nostdlib $output_objdir/$soname.def $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 14299 else 14300 ld_shlibs_CXX=no 14301 fi 14302 ;; 14303 esac 14304 ;; 14305 darwin* | rhapsody*) 14306 14307 14308 archive_cmds_need_lc_CXX=no 14309 hardcode_direct_CXX=no 14310 hardcode_automatic_CXX=yes 14311 hardcode_shlibpath_var_CXX=unsupported 14312 if test yes = "$lt_cv_ld_force_load"; then 14313 whole_archive_flag_spec_CXX='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience $wl-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`' 14314 14315 else 14316 whole_archive_flag_spec_CXX='' 14317 fi 14318 link_all_deplibs_CXX=yes 14319 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 14320 case $cc_basename in 14321 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 14322 *) _lt_dar_can_shared=$GCC ;; 14323 esac 14324 if test yes = "$_lt_dar_can_shared"; then 14325 output_verbose_link_cmd=func_echo_all 14326 archive_cmds_CXX="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 14327 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 14328 archive_expsym_cmds_CXX="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" 14329 module_expsym_cmds_CXX="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" 14330 if test yes != "$lt_cv_apple_cc_single_mod"; then 14331 archive_cmds_CXX="\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dsymutil" 14332 archive_expsym_cmds_CXX="sed 's|^|_|' < \$export_symbols > \$output_objdir/\$libname-symbols.expsym~\$CC -r -keep_private_externs -nostdlib -o \$lib-master.o \$libobjs~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$lib-master.o \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring$_lt_dar_export_syms$_lt_dsymutil" 14333 fi 14334 14335 else 14336 ld_shlibs_CXX=no 14337 fi 14338 14339 ;; 14340 14341 os2*) 14342 hardcode_libdir_flag_spec_CXX='-L$libdir' 14343 hardcode_minus_L_CXX=yes 14344 allow_undefined_flag_CXX=unsupported 14345 shrext_cmds=.dll 14346 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14347 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14348 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14349 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14350 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 14351 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14352 emximp -o $lib $output_objdir/$libname.def' 14353 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 14354 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 14355 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 14356 $ECHO EXPORTS >> $output_objdir/$libname.def~ 14357 prefix_cmds="$SED"~ 14358 if test EXPORTS = "`$SED 1q $export_symbols`"; then 14359 prefix_cmds="$prefix_cmds -e 1d"; 14360 fi~ 14361 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 14362 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 14363 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 14364 emximp -o $lib $output_objdir/$libname.def' 14365 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 14366 enable_shared_with_static_runtimes_CXX=yes 14367 ;; 14368 14369 dgux*) 14370 case $cc_basename in 14371 ec++*) 14372 # FIXME: insert proper C++ library support 14373 ld_shlibs_CXX=no 14374 ;; 14375 ghcx*) 14376 # Green Hills C++ Compiler 14377 # FIXME: insert proper C++ library support 14378 ld_shlibs_CXX=no 14379 ;; 14380 *) 14381 # FIXME: insert proper C++ library support 14382 ld_shlibs_CXX=no 14383 ;; 14384 esac 14385 ;; 14386 14387 freebsd2.*) 14388 # C++ shared libraries reported to be fairly broken before 14389 # switch to ELF 14390 ld_shlibs_CXX=no 14391 ;; 14392 14393 freebsd-elf*) 14394 archive_cmds_need_lc_CXX=no 14395 ;; 14396 14397 freebsd* | dragonfly*) 14398 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 14399 # conventions 14400 ld_shlibs_CXX=yes 14401 ;; 14402 14403 haiku*) 14404 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14405 link_all_deplibs_CXX=yes 14406 ;; 14407 14408 hpux9*) 14409 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14410 hardcode_libdir_separator_CXX=: 14411 export_dynamic_flag_spec_CXX='$wl-E' 14412 hardcode_direct_CXX=yes 14413 hardcode_minus_L_CXX=yes # Not in the search PATH, 14414 # but as the default 14415 # location of the library. 14416 14417 case $cc_basename in 14418 CC*) 14419 # FIXME: insert proper C++ library support 14420 ld_shlibs_CXX=no 14421 ;; 14422 aCC*) 14423 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -b $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14424 # Commands to make compiler produce verbose output that lists 14425 # what "hidden" libraries, object files and flags are used when 14426 # linking a shared library. 14427 # 14428 # There doesn't appear to be a way to prevent this compiler from 14429 # explicitly linking system object files so we need to strip them 14430 # from the output so that they don't get included in the library 14431 # dependencies. 14432 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $EGREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14433 ;; 14434 *) 14435 if test yes = "$GXX"; then 14436 archive_cmds_CXX='$RM $output_objdir/$soname~$CC -shared -nostdlib $pic_flag $wl+b $wl$install_libdir -o $output_objdir/$soname $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~test "x$output_objdir/$soname" = "x$lib" || mv $output_objdir/$soname $lib' 14437 else 14438 # FIXME: insert proper C++ library support 14439 ld_shlibs_CXX=no 14440 fi 14441 ;; 14442 esac 14443 ;; 14444 14445 hpux10*|hpux11*) 14446 if test no = "$with_gnu_ld"; then 14447 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 14448 hardcode_libdir_separator_CXX=: 14449 14450 case $host_cpu in 14451 hppa*64*|ia64*) 14452 ;; 14453 *) 14454 export_dynamic_flag_spec_CXX='$wl-E' 14455 ;; 14456 esac 14457 fi 14458 case $host_cpu in 14459 hppa*64*|ia64*) 14460 hardcode_direct_CXX=no 14461 hardcode_shlibpath_var_CXX=no 14462 ;; 14463 *) 14464 hardcode_direct_CXX=yes 14465 hardcode_direct_absolute_CXX=yes 14466 hardcode_minus_L_CXX=yes # Not in the search PATH, 14467 # but as the default 14468 # location of the library. 14469 ;; 14470 esac 14471 14472 case $cc_basename in 14473 CC*) 14474 # FIXME: insert proper C++ library support 14475 ld_shlibs_CXX=no 14476 ;; 14477 aCC*) 14478 case $host_cpu in 14479 hppa*64*) 14480 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14481 ;; 14482 ia64*) 14483 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14484 ;; 14485 *) 14486 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14487 ;; 14488 esac 14489 # Commands to make compiler produce verbose output that lists 14490 # what "hidden" libraries, object files and flags are used when 14491 # linking a shared library. 14492 # 14493 # There doesn't appear to be a way to prevent this compiler from 14494 # explicitly linking system object files so we need to strip them 14495 # from the output so that they don't get included in the library 14496 # dependencies. 14497 output_verbose_link_cmd='templist=`($CC -b $CFLAGS -v conftest.$objext 2>&1) | $GREP "\-L"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14498 ;; 14499 *) 14500 if test yes = "$GXX"; then 14501 if test no = "$with_gnu_ld"; then 14502 case $host_cpu in 14503 hppa*64*) 14504 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14505 ;; 14506 ia64*) 14507 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14508 ;; 14509 *) 14510 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14511 ;; 14512 esac 14513 fi 14514 else 14515 # FIXME: insert proper C++ library support 14516 ld_shlibs_CXX=no 14517 fi 14518 ;; 14519 esac 14520 ;; 14521 14522 interix[3-9]*) 14523 hardcode_direct_CXX=no 14524 hardcode_shlibpath_var_CXX=no 14525 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14526 export_dynamic_flag_spec_CXX='$wl-E' 14527 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 14528 # Instead, shared libraries are loaded at an image base (0x10000000 by 14529 # default) and relocated if they conflict, which is a slow very memory 14530 # consuming and fragmenting process. To avoid this, we pick a random, 14531 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 14532 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 14533 archive_cmds_CXX='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 14534 archive_expsym_cmds_CXX='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' 14535 ;; 14536 irix5* | irix6*) 14537 case $cc_basename in 14538 CC*) 14539 # SGI C++ 14540 archive_cmds_CXX='$CC -shared -all -multigot $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14541 14542 # Archives containing C++ object files must be created using 14543 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 14544 # necessary to make sure instantiated templates are included 14545 # in the archive. 14546 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 14547 ;; 14548 *) 14549 if test yes = "$GXX"; then 14550 if test no = "$with_gnu_ld"; then 14551 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $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' 14552 else 14553 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname `test -n "$verstring" && func_echo_all "$wl-set_version $wl$verstring"` -o $lib' 14554 fi 14555 fi 14556 link_all_deplibs_CXX=yes 14557 ;; 14558 esac 14559 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14560 hardcode_libdir_separator_CXX=: 14561 inherit_rpath_CXX=yes 14562 ;; 14563 14564 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 14565 case $cc_basename in 14566 KCC*) 14567 # Kuck and Associates, Inc. (KAI) C++ Compiler 14568 14569 # KCC will only create a shared library if the output file 14570 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14571 # to its proper name (with version) after linking. 14572 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14573 archive_expsym_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo $lib | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib $wl-retain-symbols-file,$export_symbols; mv \$templib $lib' 14574 # Commands to make compiler produce verbose output that lists 14575 # what "hidden" libraries, object files and flags are used when 14576 # linking a shared library. 14577 # 14578 # There doesn't appear to be a way to prevent this compiler from 14579 # explicitly linking system object files so we need to strip them 14580 # from the output so that they don't get included in the library 14581 # dependencies. 14582 output_verbose_link_cmd='templist=`$CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 | $GREP "ld"`; rm -f libconftest$shared_ext; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14583 14584 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14585 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14586 14587 # Archives containing C++ object files must be created using 14588 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 14589 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 14590 ;; 14591 icpc* | ecpc* ) 14592 # Intel C++ 14593 with_gnu_ld=yes 14594 # version 8.0 and above of icpc choke on multiply defined symbols 14595 # if we add $predep_objects and $postdep_objects, however 7.1 and 14596 # earlier do not add the objects themselves. 14597 case `$CC -V 2>&1` in 14598 *"Version 7."*) 14599 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14600 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14601 ;; 14602 *) # Version 8.0 or newer 14603 tmp_idyn= 14604 case $host_cpu in 14605 ia64*) tmp_idyn=' -i_dynamic';; 14606 esac 14607 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14608 archive_expsym_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14609 ;; 14610 esac 14611 archive_cmds_need_lc_CXX=no 14612 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14613 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14614 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 14615 ;; 14616 pgCC* | pgcpp*) 14617 # Portland Group C++ compiler 14618 case `$CC -V` in 14619 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 14620 prelink_cmds_CXX='tpldir=Template.dir~ 14621 rm -rf $tpldir~ 14622 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 14623 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 14624 old_archive_cmds_CXX='tpldir=Template.dir~ 14625 rm -rf $tpldir~ 14626 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 14627 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 14628 $RANLIB $oldlib' 14629 archive_cmds_CXX='tpldir=Template.dir~ 14630 rm -rf $tpldir~ 14631 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14632 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14633 archive_expsym_cmds_CXX='tpldir=Template.dir~ 14634 rm -rf $tpldir~ 14635 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 14636 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14637 ;; 14638 *) # Version 6 and above use weak symbols 14639 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14640 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 14641 ;; 14642 esac 14643 14644 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 14645 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14646 whole_archive_flag_spec_CXX='$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' 14647 ;; 14648 cxx*) 14649 # Compaq C++ 14650 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 14651 archive_expsym_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib $wl-retain-symbols-file $wl$export_symbols' 14652 14653 runpath_var=LD_RUN_PATH 14654 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14655 hardcode_libdir_separator_CXX=: 14656 14657 # Commands to make compiler produce verbose output that lists 14658 # what "hidden" libraries, object files and flags are used when 14659 # linking a shared library. 14660 # 14661 # There doesn't appear to be a way to prevent this compiler from 14662 # explicitly linking system object files so we need to strip them 14663 # from the output so that they don't get included in the library 14664 # dependencies. 14665 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld .*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "X$list" | $Xsed' 14666 ;; 14667 xl* | mpixl* | bgxl*) 14668 # IBM XL 8.0 on PPC, with GNU ld 14669 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14670 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 14671 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 14672 if test yes = "$supports_anon_versioning"; then 14673 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 14674 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 14675 echo "local: *; };" >> $output_objdir/$libname.ver~ 14676 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 14677 fi 14678 ;; 14679 *) 14680 case `$CC -V 2>&1 | sed 5q` in 14681 *Sun\ C*) 14682 # Sun C++ 5.9 14683 no_undefined_flag_CXX=' -zdefs' 14684 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14685 archive_expsym_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file $wl$export_symbols' 14686 hardcode_libdir_flag_spec_CXX='-R$libdir' 14687 whole_archive_flag_spec_CXX='$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' 14688 compiler_needs_object_CXX=yes 14689 14690 # Not sure whether something based on 14691 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 14692 # would be better. 14693 output_verbose_link_cmd='func_echo_all' 14694 14695 # Archives containing C++ object files must be created using 14696 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14697 # necessary to make sure instantiated templates are included 14698 # in the archive. 14699 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14700 ;; 14701 esac 14702 ;; 14703 esac 14704 ;; 14705 14706 lynxos*) 14707 # FIXME: insert proper C++ library support 14708 ld_shlibs_CXX=no 14709 ;; 14710 14711 m88k*) 14712 # FIXME: insert proper C++ library support 14713 ld_shlibs_CXX=no 14714 ;; 14715 14716 mvs*) 14717 case $cc_basename in 14718 cxx*) 14719 # FIXME: insert proper C++ library support 14720 ld_shlibs_CXX=no 14721 ;; 14722 *) 14723 # FIXME: insert proper C++ library support 14724 ld_shlibs_CXX=no 14725 ;; 14726 esac 14727 ;; 14728 14729 netbsd*) 14730 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 14731 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 14732 wlarc= 14733 hardcode_libdir_flag_spec_CXX='-R$libdir' 14734 hardcode_direct_CXX=yes 14735 hardcode_shlibpath_var_CXX=no 14736 fi 14737 # Workaround some broken pre-1.5 toolchains 14738 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 14739 ;; 14740 14741 *nto* | *qnx*) 14742 ld_shlibs_CXX=yes 14743 ;; 14744 14745 openbsd* | bitrig*) 14746 if test -f /usr/libexec/ld.so; then 14747 hardcode_direct_CXX=yes 14748 hardcode_shlibpath_var_CXX=no 14749 hardcode_direct_absolute_CXX=yes 14750 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 14751 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14752 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 14753 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 14754 export_dynamic_flag_spec_CXX='$wl-E' 14755 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 14756 fi 14757 output_verbose_link_cmd=func_echo_all 14758 else 14759 ld_shlibs_CXX=no 14760 fi 14761 ;; 14762 14763 osf3* | osf4* | osf5*) 14764 case $cc_basename in 14765 KCC*) 14766 # Kuck and Associates, Inc. (KAI) C++ Compiler 14767 14768 # KCC will only create a shared library if the output file 14769 # ends with ".so" (or ".sl" for HP-UX), so rename the library 14770 # to its proper name (with version) after linking. 14771 archive_cmds_CXX='tempext=`echo $shared_ext | $SED -e '\''s/\([^()0-9A-Za-z{}]\)/\\\\\1/g'\''`; templib=`echo "$lib" | $SED -e "s/\$tempext\..*/.so/"`; $CC $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags --soname $soname -o \$templib; mv \$templib $lib' 14772 14773 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 14774 hardcode_libdir_separator_CXX=: 14775 14776 # Archives containing C++ object files must be created using 14777 # the KAI C++ compiler. 14778 case $host in 14779 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 14780 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 14781 esac 14782 ;; 14783 RCC*) 14784 # Rational C++ 2.4.1 14785 # FIXME: insert proper C++ library support 14786 ld_shlibs_CXX=no 14787 ;; 14788 cxx*) 14789 case $host in 14790 osf3*) 14791 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14792 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $soname `test -n "$verstring" && func_echo_all "$wl-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14793 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14794 ;; 14795 *) 14796 allow_undefined_flag_CXX=' -expect_unresolved \*' 14797 archive_cmds_CXX='$CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib' 14798 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 14799 echo "-hidden">> $lib.exp~ 14800 $CC -shared$allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -msym -soname $soname $wl-input $wl$lib.exp `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry $output_objdir/so_locations -o $lib~ 14801 $RM $lib.exp' 14802 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 14803 ;; 14804 esac 14805 14806 hardcode_libdir_separator_CXX=: 14807 14808 # Commands to make compiler produce verbose output that lists 14809 # what "hidden" libraries, object files and flags are used when 14810 # linking a shared library. 14811 # 14812 # There doesn't appear to be a way to prevent this compiler from 14813 # explicitly linking system object files so we need to strip them 14814 # from the output so that they don't get included in the library 14815 # dependencies. 14816 output_verbose_link_cmd='templist=`$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP "ld" | $GREP -v "ld:"`; templist=`func_echo_all "$templist" | $SED "s/\(^.*ld.*\)\( .*ld.*$\)/\1/"`; list= ; for z in $templist; do case $z in conftest.$objext) list="$list $z";; *.$objext);; *) list="$list $z";;esac; done; func_echo_all "$list"' 14817 ;; 14818 *) 14819 if test yes,no = "$GXX,$with_gnu_ld"; then 14820 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 14821 case $host in 14822 osf3*) 14823 archive_cmds_CXX='$CC -shared -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 14824 ;; 14825 *) 14826 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $allow_undefined_flag $predep_objects $libobjs $deplibs $postdep_objects $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' 14827 ;; 14828 esac 14829 14830 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 14831 hardcode_libdir_separator_CXX=: 14832 14833 # Commands to make compiler produce verbose output that lists 14834 # what "hidden" libraries, object files and flags are used when 14835 # linking a shared library. 14836 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14837 14838 else 14839 # FIXME: insert proper C++ library support 14840 ld_shlibs_CXX=no 14841 fi 14842 ;; 14843 esac 14844 ;; 14845 14846 psos*) 14847 # FIXME: insert proper C++ library support 14848 ld_shlibs_CXX=no 14849 ;; 14850 14851 sunos4*) 14852 case $cc_basename in 14853 CC*) 14854 # Sun C++ 4.x 14855 # FIXME: insert proper C++ library support 14856 ld_shlibs_CXX=no 14857 ;; 14858 lcc*) 14859 # Lucid 14860 # FIXME: insert proper C++ library support 14861 ld_shlibs_CXX=no 14862 ;; 14863 *) 14864 # FIXME: insert proper C++ library support 14865 ld_shlibs_CXX=no 14866 ;; 14867 esac 14868 ;; 14869 14870 solaris*) 14871 case $cc_basename in 14872 CC* | sunCC*) 14873 # Sun C++ 4.2, 5.x and Centerline C++ 14874 archive_cmds_need_lc_CXX=yes 14875 no_undefined_flag_CXX=' -zdefs' 14876 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 14877 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14878 $CC -G$allow_undefined_flag $wl-M $wl$lib.exp -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14879 14880 hardcode_libdir_flag_spec_CXX='-R$libdir' 14881 hardcode_shlibpath_var_CXX=no 14882 case $host_os in 14883 solaris2.[0-5] | solaris2.[0-5].*) ;; 14884 *) 14885 # The compiler driver will combine and reorder linker options, 14886 # but understands '-z linker_flag'. 14887 # Supported since Solaris 2.6 (maybe 2.5.1?) 14888 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 14889 ;; 14890 esac 14891 link_all_deplibs_CXX=yes 14892 14893 output_verbose_link_cmd='func_echo_all' 14894 14895 # Archives containing C++ object files must be created using 14896 # "CC -xar", where "CC" is the Sun C++ compiler. This is 14897 # necessary to make sure instantiated templates are included 14898 # in the archive. 14899 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 14900 ;; 14901 gcx*) 14902 # Green Hills C++ Compiler 14903 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14904 14905 # The C++ compiler must be used to create the archive. 14906 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 14907 ;; 14908 *) 14909 # GNU C++ compiler with Solaris linker 14910 if test yes,no = "$GXX,$with_gnu_ld"; then 14911 no_undefined_flag_CXX=' $wl-z ${wl}defs' 14912 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 14913 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14914 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14915 $CC -shared $pic_flag -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14916 14917 # Commands to make compiler produce verbose output that lists 14918 # what "hidden" libraries, object files and flags are used when 14919 # linking a shared library. 14920 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14921 else 14922 # g++ 2.7 appears to require '-G' NOT '-shared' on this 14923 # platform. 14924 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 14925 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 14926 $CC -G -nostdlib $wl-M $wl$lib.exp $wl-h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags~$RM $lib.exp' 14927 14928 # Commands to make compiler produce verbose output that lists 14929 # what "hidden" libraries, object files and flags are used when 14930 # linking a shared library. 14931 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 14932 fi 14933 14934 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 14935 case $host_os in 14936 solaris2.[0-5] | solaris2.[0-5].*) ;; 14937 *) 14938 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 14939 ;; 14940 esac 14941 fi 14942 ;; 14943 esac 14944 ;; 14945 14946 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 14947 no_undefined_flag_CXX='$wl-z,text' 14948 archive_cmds_need_lc_CXX=no 14949 hardcode_shlibpath_var_CXX=no 14950 runpath_var='LD_RUN_PATH' 14951 14952 case $cc_basename in 14953 CC*) 14954 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14955 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14956 ;; 14957 *) 14958 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14959 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14960 ;; 14961 esac 14962 ;; 14963 14964 sysv5* | sco3.2v5* | sco5v6*) 14965 # Note: We CANNOT use -z defs as we might desire, because we do not 14966 # link with -lc, and that would cause any symbols used from libc to 14967 # always be unresolved, which means just about no library would 14968 # ever link correctly. If we're not using GNU ld we use -z text 14969 # though, which does catch some bad symbols but isn't as heavy-handed 14970 # as -z defs. 14971 no_undefined_flag_CXX='$wl-z,text' 14972 allow_undefined_flag_CXX='$wl-z,nodefs' 14973 archive_cmds_need_lc_CXX=no 14974 hardcode_shlibpath_var_CXX=no 14975 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 14976 hardcode_libdir_separator_CXX=':' 14977 link_all_deplibs_CXX=yes 14978 export_dynamic_flag_spec_CXX='$wl-Bexport' 14979 runpath_var='LD_RUN_PATH' 14980 14981 case $cc_basename in 14982 CC*) 14983 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14984 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14985 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 14986 '"$old_archive_cmds_CXX" 14987 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 14988 '"$reload_cmds_CXX" 14989 ;; 14990 *) 14991 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14992 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 14993 ;; 14994 esac 14995 ;; 14996 14997 tandem*) 14998 case $cc_basename in 14999 NCC*) 15000 # NonStop-UX NCC 3.20 15001 # FIXME: insert proper C++ library support 15002 ld_shlibs_CXX=no 15003 ;; 15004 *) 15005 # FIXME: insert proper C++ library support 15006 ld_shlibs_CXX=no 15007 ;; 15008 esac 15009 ;; 15010 15011 vxworks*) 15012 # FIXME: insert proper C++ library support 15013 ld_shlibs_CXX=no 15014 ;; 15015 15016 *) 15017 # FIXME: insert proper C++ library support 15018 ld_shlibs_CXX=no 15019 ;; 15020 esac 15021 15022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15023$as_echo "$ld_shlibs_CXX" >&6; } 15024 test no = "$ld_shlibs_CXX" && can_build_shared=no 15025 15026 GCC_CXX=$GXX 15027 LD_CXX=$LD 15028 15029 ## CAVEAT EMPTOR: 15030 ## There is no encapsulation within the following macros, do not change 15031 ## the running order or otherwise move them around unless you know exactly 15032 ## what you are doing... 15033 # Dependencies to place before and after the object being linked: 15034predep_objects_CXX= 15035postdep_objects_CXX= 15036predeps_CXX= 15037postdeps_CXX= 15038compiler_lib_search_path_CXX= 15039 15040cat > conftest.$ac_ext <<_LT_EOF 15041class Foo 15042{ 15043public: 15044 Foo (void) { a = 0; } 15045private: 15046 int a; 15047}; 15048_LT_EOF 15049 15050 15051_lt_libdeps_save_CFLAGS=$CFLAGS 15052case "$CC $CFLAGS " in #( 15053*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 15054*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 15055*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 15056esac 15057 15058if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15059 (eval $ac_compile) 2>&5 15060 ac_status=$? 15061 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15062 test $ac_status = 0; }; then 15063 # Parse the compiler output and extract the necessary 15064 # objects, libraries and library flags. 15065 15066 # Sentinel used to keep track of whether or not we are before 15067 # the conftest object file. 15068 pre_test_object_deps_done=no 15069 15070 for p in `eval "$output_verbose_link_cmd"`; do 15071 case $prev$p in 15072 15073 -L* | -R* | -l*) 15074 # Some compilers place space between "-{L,R}" and the path. 15075 # Remove the space. 15076 if test x-L = "$p" || 15077 test x-R = "$p"; then 15078 prev=$p 15079 continue 15080 fi 15081 15082 # Expand the sysroot to ease extracting the directories later. 15083 if test -z "$prev"; then 15084 case $p in 15085 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 15086 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 15087 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 15088 esac 15089 fi 15090 case $p in 15091 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 15092 esac 15093 if test no = "$pre_test_object_deps_done"; then 15094 case $prev in 15095 -L | -R) 15096 # Internal compiler library paths should come after those 15097 # provided the user. The postdeps already come after the 15098 # user supplied libs so there is no need to process them. 15099 if test -z "$compiler_lib_search_path_CXX"; then 15100 compiler_lib_search_path_CXX=$prev$p 15101 else 15102 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 15103 fi 15104 ;; 15105 # The "-l" case would never come before the object being 15106 # linked, so don't bother handling this case. 15107 esac 15108 else 15109 if test -z "$postdeps_CXX"; then 15110 postdeps_CXX=$prev$p 15111 else 15112 postdeps_CXX="${postdeps_CXX} $prev$p" 15113 fi 15114 fi 15115 prev= 15116 ;; 15117 15118 *.lto.$objext) ;; # Ignore GCC LTO objects 15119 *.$objext) 15120 # This assumes that the test object file only shows up 15121 # once in the compiler output. 15122 if test "$p" = "conftest.$objext"; then 15123 pre_test_object_deps_done=yes 15124 continue 15125 fi 15126 15127 if test no = "$pre_test_object_deps_done"; then 15128 if test -z "$predep_objects_CXX"; then 15129 predep_objects_CXX=$p 15130 else 15131 predep_objects_CXX="$predep_objects_CXX $p" 15132 fi 15133 else 15134 if test -z "$postdep_objects_CXX"; then 15135 postdep_objects_CXX=$p 15136 else 15137 postdep_objects_CXX="$postdep_objects_CXX $p" 15138 fi 15139 fi 15140 ;; 15141 15142 *) ;; # Ignore the rest. 15143 15144 esac 15145 done 15146 15147 # Clean up. 15148 rm -f a.out a.exe 15149else 15150 echo "libtool.m4: error: problem compiling CXX test program" 15151fi 15152 15153$RM -f confest.$objext 15154CFLAGS=$_lt_libdeps_save_CFLAGS 15155 15156# PORTME: override above test on systems where it is broken 15157case $host_os in 15158interix[3-9]*) 15159 # Interix 3.5 installs completely hosed .la files for C++, so rather than 15160 # hack all around it, let's just trust "g++" to DTRT. 15161 predep_objects_CXX= 15162 postdep_objects_CXX= 15163 postdeps_CXX= 15164 ;; 15165esac 15166 15167 15168case " $postdeps_CXX " in 15169*" -lc "*) archive_cmds_need_lc_CXX=no ;; 15170esac 15171 compiler_lib_search_dirs_CXX= 15172if test -n "${compiler_lib_search_path_CXX}"; then 15173 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 15174fi 15175 15176 15177 15178 15179 15180 15181 15182 15183 15184 15185 15186 15187 15188 15189 15190 15191 15192 15193 15194 15195 15196 15197 15198 15199 15200 15201 15202 15203 15204 15205 15206 lt_prog_compiler_wl_CXX= 15207lt_prog_compiler_pic_CXX= 15208lt_prog_compiler_static_CXX= 15209 15210 15211 # C++ specific cases for pic, static, wl, etc. 15212 if test yes = "$GXX"; then 15213 lt_prog_compiler_wl_CXX='-Wl,' 15214 lt_prog_compiler_static_CXX='-static' 15215 15216 case $host_os in 15217 aix*) 15218 # All AIX code is PIC. 15219 if test ia64 = "$host_cpu"; then 15220 # AIX 5 now supports IA64 processor 15221 lt_prog_compiler_static_CXX='-Bstatic' 15222 fi 15223 lt_prog_compiler_pic_CXX='-fPIC' 15224 ;; 15225 15226 amigaos*) 15227 case $host_cpu in 15228 powerpc) 15229 # see comment about AmigaOS4 .so support 15230 lt_prog_compiler_pic_CXX='-fPIC' 15231 ;; 15232 m68k) 15233 # FIXME: we need at least 68020 code to build shared libraries, but 15234 # adding the '-m68020' flag to GCC prevents building anything better, 15235 # like '-m68040'. 15236 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 15237 ;; 15238 esac 15239 ;; 15240 15241 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 15242 # PIC is the default for these OSes. 15243 ;; 15244 mingw* | cygwin* | os2* | pw32* | cegcc*) 15245 # This hack is so that the source file can tell whether it is being 15246 # built for inclusion in a dll (and should export symbols for example). 15247 # Although the cygwin gcc ignores -fPIC, still need this for old-style 15248 # (--disable-auto-import) libraries 15249 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15250 case $host_os in 15251 os2*) 15252 lt_prog_compiler_static_CXX='$wl-static' 15253 ;; 15254 esac 15255 ;; 15256 darwin* | rhapsody*) 15257 # PIC is the default on this platform 15258 # Common symbols not allowed in MH_DYLIB files 15259 lt_prog_compiler_pic_CXX='-fno-common' 15260 ;; 15261 *djgpp*) 15262 # DJGPP does not support shared libraries at all 15263 lt_prog_compiler_pic_CXX= 15264 ;; 15265 haiku*) 15266 # PIC is the default for Haiku. 15267 # The "-static" flag exists, but is broken. 15268 lt_prog_compiler_static_CXX= 15269 ;; 15270 interix[3-9]*) 15271 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 15272 # Instead, we relocate shared libraries at runtime. 15273 ;; 15274 sysv4*MP*) 15275 if test -d /usr/nec; then 15276 lt_prog_compiler_pic_CXX=-Kconform_pic 15277 fi 15278 ;; 15279 hpux*) 15280 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 15281 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 15282 # sets the default TLS model and affects inlining. 15283 case $host_cpu in 15284 hppa*64*) 15285 ;; 15286 *) 15287 lt_prog_compiler_pic_CXX='-fPIC' 15288 ;; 15289 esac 15290 ;; 15291 *qnx* | *nto*) 15292 # QNX uses GNU C++, but need to define -shared option too, otherwise 15293 # it will coredump. 15294 lt_prog_compiler_pic_CXX='-fPIC -shared' 15295 ;; 15296 *) 15297 lt_prog_compiler_pic_CXX='-fPIC' 15298 ;; 15299 esac 15300 else 15301 case $host_os in 15302 aix[4-9]*) 15303 # All AIX code is PIC. 15304 if test ia64 = "$host_cpu"; then 15305 # AIX 5 now supports IA64 processor 15306 lt_prog_compiler_static_CXX='-Bstatic' 15307 else 15308 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 15309 fi 15310 ;; 15311 chorus*) 15312 case $cc_basename in 15313 cxch68*) 15314 # Green Hills C++ Compiler 15315 # _LT_TAGVAR(lt_prog_compiler_static, CXX)="--no_auto_instantiation -u __main -u __premain -u _abort -r $COOL_DIR/lib/libOrb.a $MVME_DIR/lib/CC/libC.a $MVME_DIR/lib/classix/libcx.s.a" 15316 ;; 15317 esac 15318 ;; 15319 mingw* | cygwin* | os2* | pw32* | cegcc*) 15320 # This hack is so that the source file can tell whether it is being 15321 # built for inclusion in a dll (and should export symbols for example). 15322 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 15323 ;; 15324 dgux*) 15325 case $cc_basename in 15326 ec++*) 15327 lt_prog_compiler_pic_CXX='-KPIC' 15328 ;; 15329 ghcx*) 15330 # Green Hills C++ Compiler 15331 lt_prog_compiler_pic_CXX='-pic' 15332 ;; 15333 *) 15334 ;; 15335 esac 15336 ;; 15337 freebsd* | dragonfly*) 15338 # FreeBSD uses GNU C++ 15339 ;; 15340 hpux9* | hpux10* | hpux11*) 15341 case $cc_basename in 15342 CC*) 15343 lt_prog_compiler_wl_CXX='-Wl,' 15344 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15345 if test ia64 != "$host_cpu"; then 15346 lt_prog_compiler_pic_CXX='+Z' 15347 fi 15348 ;; 15349 aCC*) 15350 lt_prog_compiler_wl_CXX='-Wl,' 15351 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 15352 case $host_cpu in 15353 hppa*64*|ia64*) 15354 # +Z the default 15355 ;; 15356 *) 15357 lt_prog_compiler_pic_CXX='+Z' 15358 ;; 15359 esac 15360 ;; 15361 *) 15362 ;; 15363 esac 15364 ;; 15365 interix*) 15366 # This is c89, which is MS Visual C++ (no shared libs) 15367 # Anyone wants to do a port? 15368 ;; 15369 irix5* | irix6* | nonstopux*) 15370 case $cc_basename in 15371 CC*) 15372 lt_prog_compiler_wl_CXX='-Wl,' 15373 lt_prog_compiler_static_CXX='-non_shared' 15374 # CC pic flag -KPIC is the default. 15375 ;; 15376 *) 15377 ;; 15378 esac 15379 ;; 15380 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 15381 case $cc_basename in 15382 KCC*) 15383 # KAI C++ Compiler 15384 lt_prog_compiler_wl_CXX='--backend -Wl,' 15385 lt_prog_compiler_pic_CXX='-fPIC' 15386 ;; 15387 ecpc* ) 15388 # old Intel C++ for x86_64, which still supported -KPIC. 15389 lt_prog_compiler_wl_CXX='-Wl,' 15390 lt_prog_compiler_pic_CXX='-KPIC' 15391 lt_prog_compiler_static_CXX='-static' 15392 ;; 15393 icpc* ) 15394 # Intel C++, used to be incompatible with GCC. 15395 # ICC 10 doesn't accept -KPIC any more. 15396 lt_prog_compiler_wl_CXX='-Wl,' 15397 lt_prog_compiler_pic_CXX='-fPIC' 15398 lt_prog_compiler_static_CXX='-static' 15399 ;; 15400 pgCC* | pgcpp*) 15401 # Portland Group C++ compiler 15402 lt_prog_compiler_wl_CXX='-Wl,' 15403 lt_prog_compiler_pic_CXX='-fpic' 15404 lt_prog_compiler_static_CXX='-Bstatic' 15405 ;; 15406 cxx*) 15407 # Compaq C++ 15408 # Make sure the PIC flag is empty. It appears that all Alpha 15409 # Linux and Compaq Tru64 Unix objects are PIC. 15410 lt_prog_compiler_pic_CXX= 15411 lt_prog_compiler_static_CXX='-non_shared' 15412 ;; 15413 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 15414 # IBM XL 8.0, 9.0 on PPC and BlueGene 15415 lt_prog_compiler_wl_CXX='-Wl,' 15416 lt_prog_compiler_pic_CXX='-qpic' 15417 lt_prog_compiler_static_CXX='-qstaticlink' 15418 ;; 15419 *) 15420 case `$CC -V 2>&1 | sed 5q` in 15421 *Sun\ C*) 15422 # Sun C++ 5.9 15423 lt_prog_compiler_pic_CXX='-KPIC' 15424 lt_prog_compiler_static_CXX='-Bstatic' 15425 lt_prog_compiler_wl_CXX='-Qoption ld ' 15426 ;; 15427 esac 15428 ;; 15429 esac 15430 ;; 15431 lynxos*) 15432 ;; 15433 m88k*) 15434 ;; 15435 mvs*) 15436 case $cc_basename in 15437 cxx*) 15438 lt_prog_compiler_pic_CXX='-W c,exportall' 15439 ;; 15440 *) 15441 ;; 15442 esac 15443 ;; 15444 netbsd*) 15445 ;; 15446 *qnx* | *nto*) 15447 # QNX uses GNU C++, but need to define -shared option too, otherwise 15448 # it will coredump. 15449 lt_prog_compiler_pic_CXX='-fPIC -shared' 15450 ;; 15451 osf3* | osf4* | osf5*) 15452 case $cc_basename in 15453 KCC*) 15454 lt_prog_compiler_wl_CXX='--backend -Wl,' 15455 ;; 15456 RCC*) 15457 # Rational C++ 2.4.1 15458 lt_prog_compiler_pic_CXX='-pic' 15459 ;; 15460 cxx*) 15461 # Digital/Compaq C++ 15462 lt_prog_compiler_wl_CXX='-Wl,' 15463 # Make sure the PIC flag is empty. It appears that all Alpha 15464 # Linux and Compaq Tru64 Unix objects are PIC. 15465 lt_prog_compiler_pic_CXX= 15466 lt_prog_compiler_static_CXX='-non_shared' 15467 ;; 15468 *) 15469 ;; 15470 esac 15471 ;; 15472 psos*) 15473 ;; 15474 solaris*) 15475 case $cc_basename in 15476 CC* | sunCC*) 15477 # Sun C++ 4.2, 5.x and Centerline C++ 15478 lt_prog_compiler_pic_CXX='-KPIC' 15479 lt_prog_compiler_static_CXX='-Bstatic' 15480 lt_prog_compiler_wl_CXX='-Qoption ld ' 15481 ;; 15482 gcx*) 15483 # Green Hills C++ Compiler 15484 lt_prog_compiler_pic_CXX='-PIC' 15485 ;; 15486 *) 15487 ;; 15488 esac 15489 ;; 15490 sunos4*) 15491 case $cc_basename in 15492 CC*) 15493 # Sun C++ 4.x 15494 lt_prog_compiler_pic_CXX='-pic' 15495 lt_prog_compiler_static_CXX='-Bstatic' 15496 ;; 15497 lcc*) 15498 # Lucid 15499 lt_prog_compiler_pic_CXX='-pic' 15500 ;; 15501 *) 15502 ;; 15503 esac 15504 ;; 15505 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 15506 case $cc_basename in 15507 CC*) 15508 lt_prog_compiler_wl_CXX='-Wl,' 15509 lt_prog_compiler_pic_CXX='-KPIC' 15510 lt_prog_compiler_static_CXX='-Bstatic' 15511 ;; 15512 esac 15513 ;; 15514 tandem*) 15515 case $cc_basename in 15516 NCC*) 15517 # NonStop-UX NCC 3.20 15518 lt_prog_compiler_pic_CXX='-KPIC' 15519 ;; 15520 *) 15521 ;; 15522 esac 15523 ;; 15524 vxworks*) 15525 ;; 15526 *) 15527 lt_prog_compiler_can_build_shared_CXX=no 15528 ;; 15529 esac 15530 fi 15531 15532case $host_os in 15533 # For platforms that do not support PIC, -DPIC is meaningless: 15534 *djgpp*) 15535 lt_prog_compiler_pic_CXX= 15536 ;; 15537 *) 15538 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 15539 ;; 15540esac 15541 15542{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 15543$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 15544if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 15545 $as_echo_n "(cached) " >&6 15546else 15547 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 15548fi 15549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 15550$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 15551lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 15552 15553# 15554# Check to make sure the PIC flag actually works. 15555# 15556if test -n "$lt_prog_compiler_pic_CXX"; then 15557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 15558$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 15559if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 15560 $as_echo_n "(cached) " >&6 15561else 15562 lt_cv_prog_compiler_pic_works_CXX=no 15563 ac_outfile=conftest.$ac_objext 15564 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15565 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 15566 # Insert the option either (1) after the last *FLAGS variable, or 15567 # (2) before a word containing "conftest.", or (3) at the end. 15568 # Note that $ac_compile itself does not contain backslashes and begins 15569 # with a dollar sign (not a hyphen), so the echo should work correctly. 15570 # The option is referenced via a variable to avoid confusing sed. 15571 lt_compile=`echo "$ac_compile" | $SED \ 15572 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15573 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15574 -e 's:$: $lt_compiler_flag:'` 15575 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15576 (eval "$lt_compile" 2>conftest.err) 15577 ac_status=$? 15578 cat conftest.err >&5 15579 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15580 if (exit $ac_status) && test -s "$ac_outfile"; then 15581 # The compiler can only warn and ignore the option if not recognized 15582 # So say no if there are warnings other than the usual output. 15583 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 15584 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15585 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 15586 lt_cv_prog_compiler_pic_works_CXX=yes 15587 fi 15588 fi 15589 $RM conftest* 15590 15591fi 15592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 15593$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 15594 15595if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 15596 case $lt_prog_compiler_pic_CXX in 15597 "" | " "*) ;; 15598 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 15599 esac 15600else 15601 lt_prog_compiler_pic_CXX= 15602 lt_prog_compiler_can_build_shared_CXX=no 15603fi 15604 15605fi 15606 15607 15608 15609 15610 15611# 15612# Check to make sure the static flag actually works. 15613# 15614wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 15615{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 15616$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 15617if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 15618 $as_echo_n "(cached) " >&6 15619else 15620 lt_cv_prog_compiler_static_works_CXX=no 15621 save_LDFLAGS=$LDFLAGS 15622 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 15623 echo "$lt_simple_link_test_code" > conftest.$ac_ext 15624 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 15625 # The linker can only warn and ignore the option if not recognized 15626 # So say no if there are warnings 15627 if test -s conftest.err; then 15628 # Append any errors to the config.log. 15629 cat conftest.err 1>&5 15630 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 15631 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 15632 if diff conftest.exp conftest.er2 >/dev/null; then 15633 lt_cv_prog_compiler_static_works_CXX=yes 15634 fi 15635 else 15636 lt_cv_prog_compiler_static_works_CXX=yes 15637 fi 15638 fi 15639 $RM -r conftest* 15640 LDFLAGS=$save_LDFLAGS 15641 15642fi 15643{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 15644$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 15645 15646if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 15647 : 15648else 15649 lt_prog_compiler_static_CXX= 15650fi 15651 15652 15653 15654 15655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15656$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15657if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15658 $as_echo_n "(cached) " >&6 15659else 15660 lt_cv_prog_compiler_c_o_CXX=no 15661 $RM -r conftest 2>/dev/null 15662 mkdir conftest 15663 cd conftest 15664 mkdir out 15665 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15666 15667 lt_compiler_flag="-o out/conftest2.$ac_objext" 15668 # Insert the option either (1) after the last *FLAGS variable, or 15669 # (2) before a word containing "conftest.", or (3) at the end. 15670 # Note that $ac_compile itself does not contain backslashes and begins 15671 # with a dollar sign (not a hyphen), so the echo should work correctly. 15672 lt_compile=`echo "$ac_compile" | $SED \ 15673 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15674 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15675 -e 's:$: $lt_compiler_flag:'` 15676 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15677 (eval "$lt_compile" 2>out/conftest.err) 15678 ac_status=$? 15679 cat out/conftest.err >&5 15680 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15681 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15682 then 15683 # The compiler can only warn and ignore the option if not recognized 15684 # So say no if there are warnings 15685 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15686 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15687 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15688 lt_cv_prog_compiler_c_o_CXX=yes 15689 fi 15690 fi 15691 chmod u+w . 2>&5 15692 $RM conftest* 15693 # SGI C++ compiler will create directory out/ii_files/ for 15694 # template instantiation 15695 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15696 $RM out/* && rmdir out 15697 cd .. 15698 $RM -r conftest 15699 $RM conftest* 15700 15701fi 15702{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15703$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15704 15705 15706 15707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 15708$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 15709if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 15710 $as_echo_n "(cached) " >&6 15711else 15712 lt_cv_prog_compiler_c_o_CXX=no 15713 $RM -r conftest 2>/dev/null 15714 mkdir conftest 15715 cd conftest 15716 mkdir out 15717 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15718 15719 lt_compiler_flag="-o out/conftest2.$ac_objext" 15720 # Insert the option either (1) after the last *FLAGS variable, or 15721 # (2) before a word containing "conftest.", or (3) at the end. 15722 # Note that $ac_compile itself does not contain backslashes and begins 15723 # with a dollar sign (not a hyphen), so the echo should work correctly. 15724 lt_compile=`echo "$ac_compile" | $SED \ 15725 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 15726 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 15727 -e 's:$: $lt_compiler_flag:'` 15728 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 15729 (eval "$lt_compile" 2>out/conftest.err) 15730 ac_status=$? 15731 cat out/conftest.err >&5 15732 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15733 if (exit $ac_status) && test -s out/conftest2.$ac_objext 15734 then 15735 # The compiler can only warn and ignore the option if not recognized 15736 # So say no if there are warnings 15737 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 15738 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 15739 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 15740 lt_cv_prog_compiler_c_o_CXX=yes 15741 fi 15742 fi 15743 chmod u+w . 2>&5 15744 $RM conftest* 15745 # SGI C++ compiler will create directory out/ii_files/ for 15746 # template instantiation 15747 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 15748 $RM out/* && rmdir out 15749 cd .. 15750 $RM -r conftest 15751 $RM conftest* 15752 15753fi 15754{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 15755$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 15756 15757 15758 15759 15760hard_links=nottested 15761if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 15762 # do not overwrite the value of need_locks provided by the user 15763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 15764$as_echo_n "checking if we can lock with hard links... " >&6; } 15765 hard_links=yes 15766 $RM conftest* 15767 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15768 touch conftest.a 15769 ln conftest.a conftest.b 2>&5 || hard_links=no 15770 ln conftest.a conftest.b 2>/dev/null && hard_links=no 15771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 15772$as_echo "$hard_links" >&6; } 15773 if test no = "$hard_links"; then 15774 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 15775$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 15776 need_locks=warn 15777 fi 15778else 15779 need_locks=no 15780fi 15781 15782 15783 15784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15785$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15786 15787 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15788 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 15789 case $host_os in 15790 aix[4-9]*) 15791 # If we're using GNU nm, then we don't want the "-C" option. 15792 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 15793 # Without the "-l" option, or with the "-B" option, AIX nm treats 15794 # weak defined symbols like other global defined symbols, whereas 15795 # GNU nm marks them as "W". 15796 # While the 'weak' keyword is ignored in the Export File, we need 15797 # it in the Import File for the 'aix-soname' feature, so we have 15798 # to replace the "-B" option with "-P" for AIX nm. 15799 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 15800 export_symbols_cmds_CXX='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { if (\$ 2 == "W") { print \$ 3 " weak" } else { print \$ 3 } } }'\'' | sort -u > $export_symbols' 15801 else 15802 export_symbols_cmds_CXX='`func_echo_all $NM | $SED -e '\''s/B\([^B]*\)$/P\1/'\''` -PCpgl $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) && (substr(\$ 1,1,1) != ".")) { if ((\$ 2 == "W") || (\$ 2 == "V") || (\$ 2 == "Z")) { print \$ 1 " weak" } else { print \$ 1 } } }'\'' | sort -u > $export_symbols' 15803 fi 15804 ;; 15805 pw32*) 15806 export_symbols_cmds_CXX=$ltdll_cmds 15807 ;; 15808 cygwin* | mingw* | cegcc*) 15809 case $cc_basename in 15810 cl*) 15811 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 15812 ;; 15813 *) 15814 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols' 15815 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 15816 ;; 15817 esac 15818 ;; 15819 *) 15820 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 15821 ;; 15822 esac 15823 15824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 15825$as_echo "$ld_shlibs_CXX" >&6; } 15826test no = "$ld_shlibs_CXX" && can_build_shared=no 15827 15828with_gnu_ld_CXX=$with_gnu_ld 15829 15830 15831 15832 15833 15834 15835# 15836# Do we need to explicitly link libc? 15837# 15838case "x$archive_cmds_need_lc_CXX" in 15839x|xyes) 15840 # Assume -lc should be added 15841 archive_cmds_need_lc_CXX=yes 15842 15843 if test yes,yes = "$GCC,$enable_shared"; then 15844 case $archive_cmds_CXX in 15845 *'~'*) 15846 # FIXME: we may have to deal with multi-command sequences. 15847 ;; 15848 '$CC '*) 15849 # Test whether the compiler implicitly links with -lc since on some 15850 # systems, -lgcc has to come before -lc. If gcc already passes -lc 15851 # to ld, don't add -lc before -lgcc. 15852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 15853$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 15854if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 15855 $as_echo_n "(cached) " >&6 15856else 15857 $RM conftest* 15858 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 15859 15860 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 15861 (eval $ac_compile) 2>&5 15862 ac_status=$? 15863 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15864 test $ac_status = 0; } 2>conftest.err; then 15865 soname=conftest 15866 lib=conftest 15867 libobjs=conftest.$ac_objext 15868 deplibs= 15869 wl=$lt_prog_compiler_wl_CXX 15870 pic_flag=$lt_prog_compiler_pic_CXX 15871 compiler_flags=-v 15872 linker_flags=-v 15873 verstring= 15874 output_objdir=. 15875 libname=conftest 15876 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 15877 allow_undefined_flag_CXX= 15878 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 15879 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 15880 ac_status=$? 15881 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15882 test $ac_status = 0; } 15883 then 15884 lt_cv_archive_cmds_need_lc_CXX=no 15885 else 15886 lt_cv_archive_cmds_need_lc_CXX=yes 15887 fi 15888 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 15889 else 15890 cat conftest.err 1>&5 15891 fi 15892 $RM conftest* 15893 15894fi 15895{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 15896$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 15897 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 15898 ;; 15899 esac 15900 fi 15901 ;; 15902esac 15903 15904 15905 15906 15907 15908 15909 15910 15911 15912 15913 15914 15915 15916 15917 15918 15919 15920 15921 15922 15923 15924 15925 15926 15927 15928 15929 15930 15931 15932 15933 15934 15935 15936 15937 15938 15939 15940 15941 15942 15943 15944 15945 15946 15947 15948 15949 15950 15951 15952 15953 15954 15955 15956 15957 15958 15959 15960 15961 15962 15963 15964 15965 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 15966$as_echo_n "checking dynamic linker characteristics... " >&6; } 15967 15968library_names_spec= 15969libname_spec='lib$name' 15970soname_spec= 15971shrext_cmds=.so 15972postinstall_cmds= 15973postuninstall_cmds= 15974finish_cmds= 15975finish_eval= 15976shlibpath_var= 15977shlibpath_overrides_runpath=unknown 15978version_type=none 15979dynamic_linker="$host_os ld.so" 15980sys_lib_dlsearch_path_spec="/lib /usr/lib" 15981need_lib_prefix=unknown 15982hardcode_into_libs=no 15983 15984# when you set need_version to no, make sure it does not cause -set_version 15985# flags to be left without arguments 15986need_version=unknown 15987 15988 15989 15990case $host_os in 15991aix3*) 15992 version_type=linux # correct to gnu/linux during the next big refactor 15993 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 15994 shlibpath_var=LIBPATH 15995 15996 # AIX 3 has no versioning support, so we append a major version to the name. 15997 soname_spec='$libname$release$shared_ext$major' 15998 ;; 15999 16000aix[4-9]*) 16001 version_type=linux # correct to gnu/linux during the next big refactor 16002 need_lib_prefix=no 16003 need_version=no 16004 hardcode_into_libs=yes 16005 if test ia64 = "$host_cpu"; then 16006 # AIX 5 supports IA64 16007 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 16008 shlibpath_var=LD_LIBRARY_PATH 16009 else 16010 # With GCC up to 2.95.x, collect2 would create an import file 16011 # for dependence libraries. The import file would start with 16012 # the line '#! .'. This would cause the generated library to 16013 # depend on '.', always an invalid library. This was fixed in 16014 # development snapshots of GCC prior to 3.0. 16015 case $host_os in 16016 aix4 | aix4.[01] | aix4.[01].*) 16017 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 16018 echo ' yes ' 16019 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 16020 : 16021 else 16022 can_build_shared=no 16023 fi 16024 ;; 16025 esac 16026 # Using Import Files as archive members, it is possible to support 16027 # filename-based versioning of shared library archives on AIX. While 16028 # this would work for both with and without runtime linking, it will 16029 # prevent static linking of such archives. So we do filename-based 16030 # shared library versioning with .so extension only, which is used 16031 # when both runtime linking and shared linking is enabled. 16032 # Unfortunately, runtime linking may impact performance, so we do 16033 # not want this to be the default eventually. Also, we use the 16034 # versioned .so libs for executables only if there is the -brtl 16035 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 16036 # To allow for filename-based versioning support, we need to create 16037 # libNAME.so.V as an archive file, containing: 16038 # *) an Import File, referring to the versioned filename of the 16039 # archive as well as the shared archive member, telling the 16040 # bitwidth (32 or 64) of that shared object, and providing the 16041 # list of exported symbols of that shared object, eventually 16042 # decorated with the 'weak' keyword 16043 # *) the shared object with the F_LOADONLY flag set, to really avoid 16044 # it being seen by the linker. 16045 # At run time we better use the real file rather than another symlink, 16046 # but for link time we create the symlink libNAME.so -> libNAME.so.V 16047 16048 case $with_aix_soname,$aix_use_runtimelinking in 16049 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 16050 # soname into executable. Probably we can add versioning support to 16051 # collect2, so additional links can be useful in future. 16052 aix,yes) # traditional libtool 16053 dynamic_linker='AIX unversionable lib.so' 16054 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 16055 # instead of lib<name>.a to let people know that these are not 16056 # typical AIX shared libraries. 16057 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16058 ;; 16059 aix,no) # traditional AIX only 16060 dynamic_linker='AIX lib.a(lib.so.V)' 16061 # We preserve .a as extension for shared libraries through AIX4.2 16062 # and later when we are not doing run time linking. 16063 library_names_spec='$libname$release.a $libname.a' 16064 soname_spec='$libname$release$shared_ext$major' 16065 ;; 16066 svr4,*) # full svr4 only 16067 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 16068 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16069 # We do not specify a path in Import Files, so LIBPATH fires. 16070 shlibpath_overrides_runpath=yes 16071 ;; 16072 *,yes) # both, prefer svr4 16073 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 16074 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 16075 # unpreferred sharedlib libNAME.a needs extra handling 16076 postinstall_cmds='test -n "$linkname" || linkname="$realname"~func_stripname "" ".so" "$linkname"~$install_shared_prog "$dir/$func_stripname_result.$libext" "$destdir/$func_stripname_result.$libext"~test -z "$tstripme" || test -z "$striplib" || $striplib "$destdir/$func_stripname_result.$libext"' 16077 postuninstall_cmds='for n in $library_names $old_library; do :; done~func_stripname "" ".so" "$n"~test "$func_stripname_result" = "$n" || func_append rmfiles " $odir/$func_stripname_result.$libext"' 16078 # We do not specify a path in Import Files, so LIBPATH fires. 16079 shlibpath_overrides_runpath=yes 16080 ;; 16081 *,no) # both, prefer aix 16082 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 16083 library_names_spec='$libname$release.a $libname.a' 16084 soname_spec='$libname$release$shared_ext$major' 16085 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 16086 postinstall_cmds='test -z "$dlname" || $install_shared_prog $dir/$dlname $destdir/$dlname~test -z "$tstripme" || test -z "$striplib" || $striplib $destdir/$dlname~test -n "$linkname" || linkname=$realname~func_stripname "" ".a" "$linkname"~(cd "$destdir" && $LN_S -f $dlname $func_stripname_result.so)' 16087 postuninstall_cmds='test -z "$dlname" || func_append rmfiles " $odir/$dlname"~for n in $old_library $library_names; do :; done~func_stripname "" ".a" "$n"~func_append rmfiles " $odir/$func_stripname_result.so"' 16088 ;; 16089 esac 16090 shlibpath_var=LIBPATH 16091 fi 16092 ;; 16093 16094amigaos*) 16095 case $host_cpu in 16096 powerpc) 16097 # Since July 2007 AmigaOS4 officially supports .so libraries. 16098 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 16099 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16100 ;; 16101 m68k) 16102 library_names_spec='$libname.ixlibrary $libname.a' 16103 # Create ${libname}_ixlibrary.a entries in /sys/libs. 16104 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; $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' 16105 ;; 16106 esac 16107 ;; 16108 16109beos*) 16110 library_names_spec='$libname$shared_ext' 16111 dynamic_linker="$host_os ld.so" 16112 shlibpath_var=LIBRARY_PATH 16113 ;; 16114 16115bsdi[45]*) 16116 version_type=linux # correct to gnu/linux during the next big refactor 16117 need_version=no 16118 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16119 soname_spec='$libname$release$shared_ext$major' 16120 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 16121 shlibpath_var=LD_LIBRARY_PATH 16122 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 16123 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 16124 # the default ld.so.conf also contains /usr/contrib/lib and 16125 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 16126 # libtool to hard-code these into programs 16127 ;; 16128 16129cygwin* | mingw* | pw32* | cegcc*) 16130 version_type=windows 16131 shrext_cmds=.dll 16132 need_version=no 16133 need_lib_prefix=no 16134 16135 case $GCC,$cc_basename in 16136 yes,*) 16137 # gcc 16138 library_names_spec='$libname.dll.a' 16139 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16140 postinstall_cmds='base_file=`basename \$file`~ 16141 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16142 dldir=$destdir/`dirname \$dlpath`~ 16143 test -d \$dldir || mkdir -p \$dldir~ 16144 $install_prog $dir/$dlname \$dldir/$dlname~ 16145 chmod a+x \$dldir/$dlname~ 16146 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16147 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16148 fi' 16149 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16150 dlpath=$dir/\$dldll~ 16151 $RM \$dlpath' 16152 shlibpath_overrides_runpath=yes 16153 16154 case $host_os in 16155 cygwin*) 16156 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 16157 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16158 16159 ;; 16160 mingw* | cegcc*) 16161 # MinGW DLLs use traditional 'lib' prefix 16162 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16163 ;; 16164 pw32*) 16165 # pw32 DLLs use 'pw' prefix rather than 'lib' 16166 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16167 ;; 16168 esac 16169 dynamic_linker='Win32 ld.exe' 16170 ;; 16171 16172 *,cl*) 16173 # Native MSVC 16174 libname_spec='$name' 16175 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 16176 library_names_spec='$libname.dll.lib' 16177 16178 case $build_os in 16179 mingw*) 16180 sys_lib_search_path_spec= 16181 lt_save_ifs=$IFS 16182 IFS=';' 16183 for lt_path in $LIB 16184 do 16185 IFS=$lt_save_ifs 16186 # Let DOS variable expansion print the short 8.3 style file name. 16187 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 16188 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 16189 done 16190 IFS=$lt_save_ifs 16191 # Convert to MSYS style. 16192 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 16193 ;; 16194 cygwin*) 16195 # Convert to unix form, then to dos form, then back to unix form 16196 # but this time dos style (no spaces!) so that the unix form looks 16197 # like /cygdrive/c/PROGRA~1:/cygdr... 16198 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 16199 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 16200 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16201 ;; 16202 *) 16203 sys_lib_search_path_spec=$LIB 16204 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 16205 # It is most probably a Windows format PATH. 16206 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 16207 else 16208 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 16209 fi 16210 # FIXME: find the short name or the path components, as spaces are 16211 # common. (e.g. "Program Files" -> "PROGRA~1") 16212 ;; 16213 esac 16214 16215 # DLL is installed to $(libdir)/../bin by postinstall_cmds 16216 postinstall_cmds='base_file=`basename \$file`~ 16217 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 16218 dldir=$destdir/`dirname \$dlpath`~ 16219 test -d \$dldir || mkdir -p \$dldir~ 16220 $install_prog $dir/$dlname \$dldir/$dlname' 16221 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 16222 dlpath=$dir/\$dldll~ 16223 $RM \$dlpath' 16224 shlibpath_overrides_runpath=yes 16225 dynamic_linker='Win32 link.exe' 16226 ;; 16227 16228 *) 16229 # Assume MSVC wrapper 16230 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 16231 dynamic_linker='Win32 ld.exe' 16232 ;; 16233 esac 16234 # FIXME: first we should search . and the directory the executable is in 16235 shlibpath_var=PATH 16236 ;; 16237 16238darwin* | rhapsody*) 16239 dynamic_linker="$host_os dyld" 16240 version_type=darwin 16241 need_lib_prefix=no 16242 need_version=no 16243 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 16244 soname_spec='$libname$release$major$shared_ext' 16245 shlibpath_overrides_runpath=yes 16246 shlibpath_var=DYLD_LIBRARY_PATH 16247 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 16248 16249 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 16250 ;; 16251 16252dgux*) 16253 version_type=linux # correct to gnu/linux during the next big refactor 16254 need_lib_prefix=no 16255 need_version=no 16256 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16257 soname_spec='$libname$release$shared_ext$major' 16258 shlibpath_var=LD_LIBRARY_PATH 16259 ;; 16260 16261freebsd* | dragonfly*) 16262 # DragonFly does not have aout. When/if they implement a new 16263 # versioning mechanism, adjust this. 16264 if test -x /usr/bin/objformat; then 16265 objformat=`/usr/bin/objformat` 16266 else 16267 case $host_os in 16268 freebsd[23].*) objformat=aout ;; 16269 *) objformat=elf ;; 16270 esac 16271 fi 16272 version_type=freebsd-$objformat 16273 case $version_type in 16274 freebsd-elf*) 16275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16276 soname_spec='$libname$release$shared_ext$major' 16277 need_version=no 16278 need_lib_prefix=no 16279 ;; 16280 freebsd-*) 16281 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16282 need_version=yes 16283 ;; 16284 esac 16285 shlibpath_var=LD_LIBRARY_PATH 16286 case $host_os in 16287 freebsd2.*) 16288 shlibpath_overrides_runpath=yes 16289 ;; 16290 freebsd3.[01]* | freebsdelf3.[01]*) 16291 shlibpath_overrides_runpath=yes 16292 hardcode_into_libs=yes 16293 ;; 16294 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 16295 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 16296 shlibpath_overrides_runpath=no 16297 hardcode_into_libs=yes 16298 ;; 16299 *) # from 4.6 on, and DragonFly 16300 shlibpath_overrides_runpath=yes 16301 hardcode_into_libs=yes 16302 ;; 16303 esac 16304 ;; 16305 16306haiku*) 16307 version_type=linux # correct to gnu/linux during the next big refactor 16308 need_lib_prefix=no 16309 need_version=no 16310 dynamic_linker="$host_os runtime_loader" 16311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16312 soname_spec='$libname$release$shared_ext$major' 16313 shlibpath_var=LIBRARY_PATH 16314 shlibpath_overrides_runpath=no 16315 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 16316 hardcode_into_libs=yes 16317 ;; 16318 16319hpux9* | hpux10* | hpux11*) 16320 # Give a soname corresponding to the major version so that dld.sl refuses to 16321 # link against other versions. 16322 version_type=sunos 16323 need_lib_prefix=no 16324 need_version=no 16325 case $host_cpu in 16326 ia64*) 16327 shrext_cmds='.so' 16328 hardcode_into_libs=yes 16329 dynamic_linker="$host_os dld.so" 16330 shlibpath_var=LD_LIBRARY_PATH 16331 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16332 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16333 soname_spec='$libname$release$shared_ext$major' 16334 if test 32 = "$HPUX_IA64_MODE"; then 16335 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 16336 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 16337 else 16338 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 16339 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 16340 fi 16341 ;; 16342 hppa*64*) 16343 shrext_cmds='.sl' 16344 hardcode_into_libs=yes 16345 dynamic_linker="$host_os dld.sl" 16346 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 16347 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 16348 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16349 soname_spec='$libname$release$shared_ext$major' 16350 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 16351 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16352 ;; 16353 *) 16354 shrext_cmds='.sl' 16355 dynamic_linker="$host_os dld.sl" 16356 shlibpath_var=SHLIB_PATH 16357 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 16358 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16359 soname_spec='$libname$release$shared_ext$major' 16360 ;; 16361 esac 16362 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 16363 postinstall_cmds='chmod 555 $lib' 16364 # or fails outright, so override atomically: 16365 install_override_mode=555 16366 ;; 16367 16368interix[3-9]*) 16369 version_type=linux # correct to gnu/linux during the next big refactor 16370 need_lib_prefix=no 16371 need_version=no 16372 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16373 soname_spec='$libname$release$shared_ext$major' 16374 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 16375 shlibpath_var=LD_LIBRARY_PATH 16376 shlibpath_overrides_runpath=no 16377 hardcode_into_libs=yes 16378 ;; 16379 16380irix5* | irix6* | nonstopux*) 16381 case $host_os in 16382 nonstopux*) version_type=nonstopux ;; 16383 *) 16384 if test yes = "$lt_cv_prog_gnu_ld"; then 16385 version_type=linux # correct to gnu/linux during the next big refactor 16386 else 16387 version_type=irix 16388 fi ;; 16389 esac 16390 need_lib_prefix=no 16391 need_version=no 16392 soname_spec='$libname$release$shared_ext$major' 16393 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 16394 case $host_os in 16395 irix5* | nonstopux*) 16396 libsuff= shlibsuff= 16397 ;; 16398 *) 16399 case $LD in # libtool.m4 will add one of these switches to LD 16400 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 16401 libsuff= shlibsuff= libmagic=32-bit;; 16402 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 16403 libsuff=32 shlibsuff=N32 libmagic=N32;; 16404 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 16405 libsuff=64 shlibsuff=64 libmagic=64-bit;; 16406 *) libsuff= shlibsuff= libmagic=never-match;; 16407 esac 16408 ;; 16409 esac 16410 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 16411 shlibpath_overrides_runpath=no 16412 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 16413 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 16414 hardcode_into_libs=yes 16415 ;; 16416 16417# No shared lib support for Linux oldld, aout, or coff. 16418linux*oldld* | linux*aout* | linux*coff*) 16419 dynamic_linker=no 16420 ;; 16421 16422linux*android*) 16423 version_type=none # Android doesn't support versioned libraries. 16424 need_lib_prefix=no 16425 need_version=no 16426 library_names_spec='$libname$release$shared_ext' 16427 soname_spec='$libname$release$shared_ext' 16428 finish_cmds= 16429 shlibpath_var=LD_LIBRARY_PATH 16430 shlibpath_overrides_runpath=yes 16431 16432 # This implies no fast_install, which is unacceptable. 16433 # Some rework will be needed to allow for fast_install 16434 # before this can be enabled. 16435 hardcode_into_libs=yes 16436 16437 dynamic_linker='Android linker' 16438 # Don't embed -rpath directories since the linker doesn't support them. 16439 hardcode_libdir_flag_spec_CXX='-L$libdir' 16440 ;; 16441 16442# This must be glibc/ELF. 16443linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16444 version_type=linux # correct to gnu/linux during the next big refactor 16445 need_lib_prefix=no 16446 need_version=no 16447 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16448 soname_spec='$libname$release$shared_ext$major' 16449 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 16450 shlibpath_var=LD_LIBRARY_PATH 16451 shlibpath_overrides_runpath=no 16452 16453 # Some binutils ld are patched to set DT_RUNPATH 16454 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 16455 $as_echo_n "(cached) " >&6 16456else 16457 lt_cv_shlibpath_overrides_runpath=no 16458 save_LDFLAGS=$LDFLAGS 16459 save_libdir=$libdir 16460 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 16461 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 16462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 16463/* end confdefs.h. */ 16464 16465int 16466main () 16467{ 16468 16469 ; 16470 return 0; 16471} 16472_ACEOF 16473if ac_fn_cxx_try_link "$LINENO"; then : 16474 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 16475 lt_cv_shlibpath_overrides_runpath=yes 16476fi 16477fi 16478rm -f core conftest.err conftest.$ac_objext \ 16479 conftest$ac_exeext conftest.$ac_ext 16480 LDFLAGS=$save_LDFLAGS 16481 libdir=$save_libdir 16482 16483fi 16484 16485 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 16486 16487 # This implies no fast_install, which is unacceptable. 16488 # Some rework will be needed to allow for fast_install 16489 # before this can be enabled. 16490 hardcode_into_libs=yes 16491 16492 # Ideally, we could use ldconfig to report *all* directores which are 16493 # searched for libraries, however this is still not possible. Aside from not 16494 # being certain /sbin/ldconfig is available, command 16495 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 16496 # even though it is searched at run-time. Try to do the best guess by 16497 # appending ld.so.conf contents (and includes) to the search path. 16498 if test -f /etc/ld.so.conf; then 16499 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' ' '` 16500 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 16501 fi 16502 16503 # We used to test for /lib/ld.so.1 and disable shared libraries on 16504 # powerpc, because MkLinux only supported shared libraries with the 16505 # GNU dynamic linker. Since this was broken with cross compilers, 16506 # most powerpc-linux boxes support dynamic linking these days and 16507 # people can always --disable-shared, the test was removed, and we 16508 # assume the GNU/Linux dynamic linker is in use. 16509 dynamic_linker='GNU/Linux ld.so' 16510 ;; 16511 16512netbsd*) 16513 version_type=sunos 16514 need_lib_prefix=no 16515 need_version=no 16516 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16517 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16518 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16519 dynamic_linker='NetBSD (a.out) ld.so' 16520 else 16521 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16522 soname_spec='$libname$release$shared_ext$major' 16523 dynamic_linker='NetBSD ld.elf_so' 16524 fi 16525 shlibpath_var=LD_LIBRARY_PATH 16526 shlibpath_overrides_runpath=yes 16527 hardcode_into_libs=yes 16528 ;; 16529 16530newsos6) 16531 version_type=linux # correct to gnu/linux during the next big refactor 16532 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16533 shlibpath_var=LD_LIBRARY_PATH 16534 shlibpath_overrides_runpath=yes 16535 ;; 16536 16537*nto* | *qnx*) 16538 version_type=qnx 16539 need_lib_prefix=no 16540 need_version=no 16541 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16542 soname_spec='$libname$release$shared_ext$major' 16543 shlibpath_var=LD_LIBRARY_PATH 16544 shlibpath_overrides_runpath=no 16545 hardcode_into_libs=yes 16546 dynamic_linker='ldqnx.so' 16547 ;; 16548 16549openbsd* | bitrig*) 16550 version_type=sunos 16551 sys_lib_dlsearch_path_spec=/usr/lib 16552 need_lib_prefix=no 16553 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 16554 need_version=no 16555 else 16556 need_version=yes 16557 fi 16558 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16559 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 16560 shlibpath_var=LD_LIBRARY_PATH 16561 shlibpath_overrides_runpath=yes 16562 ;; 16563 16564os2*) 16565 libname_spec='$name' 16566 version_type=windows 16567 shrext_cmds=.dll 16568 need_version=no 16569 need_lib_prefix=no 16570 # OS/2 can only load a DLL with a base name of 8 characters or less. 16571 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 16572 v=$($ECHO $release$versuffix | tr -d .-); 16573 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 16574 $ECHO $n$v`$shared_ext' 16575 library_names_spec='${libname}_dll.$libext' 16576 dynamic_linker='OS/2 ld.exe' 16577 shlibpath_var=BEGINLIBPATH 16578 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 16579 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16580 postinstall_cmds='base_file=`basename \$file`~ 16581 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 16582 dldir=$destdir/`dirname \$dlpath`~ 16583 test -d \$dldir || mkdir -p \$dldir~ 16584 $install_prog $dir/$dlname \$dldir/$dlname~ 16585 chmod a+x \$dldir/$dlname~ 16586 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 16587 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 16588 fi' 16589 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 16590 dlpath=$dir/\$dldll~ 16591 $RM \$dlpath' 16592 ;; 16593 16594osf3* | osf4* | osf5*) 16595 version_type=osf 16596 need_lib_prefix=no 16597 need_version=no 16598 soname_spec='$libname$release$shared_ext$major' 16599 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16600 shlibpath_var=LD_LIBRARY_PATH 16601 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 16602 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 16603 ;; 16604 16605rdos*) 16606 dynamic_linker=no 16607 ;; 16608 16609solaris*) 16610 version_type=linux # correct to gnu/linux during the next big refactor 16611 need_lib_prefix=no 16612 need_version=no 16613 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16614 soname_spec='$libname$release$shared_ext$major' 16615 shlibpath_var=LD_LIBRARY_PATH 16616 shlibpath_overrides_runpath=yes 16617 hardcode_into_libs=yes 16618 # ldd complains unless libraries are executable 16619 postinstall_cmds='chmod +x $lib' 16620 ;; 16621 16622sunos4*) 16623 version_type=sunos 16624 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 16625 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 16626 shlibpath_var=LD_LIBRARY_PATH 16627 shlibpath_overrides_runpath=yes 16628 if test yes = "$with_gnu_ld"; then 16629 need_lib_prefix=no 16630 fi 16631 need_version=yes 16632 ;; 16633 16634sysv4 | sysv4.3*) 16635 version_type=linux # correct to gnu/linux during the next big refactor 16636 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16637 soname_spec='$libname$release$shared_ext$major' 16638 shlibpath_var=LD_LIBRARY_PATH 16639 case $host_vendor in 16640 sni) 16641 shlibpath_overrides_runpath=no 16642 need_lib_prefix=no 16643 runpath_var=LD_RUN_PATH 16644 ;; 16645 siemens) 16646 need_lib_prefix=no 16647 ;; 16648 motorola) 16649 need_lib_prefix=no 16650 need_version=no 16651 shlibpath_overrides_runpath=no 16652 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 16653 ;; 16654 esac 16655 ;; 16656 16657sysv4*MP*) 16658 if test -d /usr/nec; then 16659 version_type=linux # correct to gnu/linux during the next big refactor 16660 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 16661 soname_spec='$libname$shared_ext.$major' 16662 shlibpath_var=LD_LIBRARY_PATH 16663 fi 16664 ;; 16665 16666sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 16667 version_type=sco 16668 need_lib_prefix=no 16669 need_version=no 16670 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 16671 soname_spec='$libname$release$shared_ext$major' 16672 shlibpath_var=LD_LIBRARY_PATH 16673 shlibpath_overrides_runpath=yes 16674 hardcode_into_libs=yes 16675 if test yes = "$with_gnu_ld"; then 16676 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 16677 else 16678 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 16679 case $host_os in 16680 sco3.2v5*) 16681 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 16682 ;; 16683 esac 16684 fi 16685 sys_lib_dlsearch_path_spec='/usr/lib' 16686 ;; 16687 16688tpf*) 16689 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 16690 version_type=linux # correct to gnu/linux during the next big refactor 16691 need_lib_prefix=no 16692 need_version=no 16693 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16694 shlibpath_var=LD_LIBRARY_PATH 16695 shlibpath_overrides_runpath=no 16696 hardcode_into_libs=yes 16697 ;; 16698 16699uts4*) 16700 version_type=linux # correct to gnu/linux during the next big refactor 16701 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 16702 soname_spec='$libname$release$shared_ext$major' 16703 shlibpath_var=LD_LIBRARY_PATH 16704 ;; 16705 16706*) 16707 dynamic_linker=no 16708 ;; 16709esac 16710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 16711$as_echo "$dynamic_linker" >&6; } 16712test no = "$dynamic_linker" && can_build_shared=no 16713 16714variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 16715if test yes = "$GCC"; then 16716 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 16717fi 16718 16719if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 16720 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 16721fi 16722 16723if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 16724 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 16725fi 16726 16727# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 16728configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 16729 16730# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 16731func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 16732 16733# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 16734configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 16735 16736 16737 16738 16739 16740 16741 16742 16743 16744 16745 16746 16747 16748 16749 16750 16751 16752 16753 16754 16755 16756 16757 16758 16759 16760 16761 16762 16763 16764 16765 16766 16767 16768 16769 16770 16771 16772 16773 16774 16775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 16776$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 16777hardcode_action_CXX= 16778if test -n "$hardcode_libdir_flag_spec_CXX" || 16779 test -n "$runpath_var_CXX" || 16780 test yes = "$hardcode_automatic_CXX"; then 16781 16782 # We can hardcode non-existent directories. 16783 if test no != "$hardcode_direct_CXX" && 16784 # If the only mechanism to avoid hardcoding is shlibpath_var, we 16785 # have to relink, otherwise we might link with an installed library 16786 # when we should be linking with a yet-to-be-installed one 16787 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 16788 test no != "$hardcode_minus_L_CXX"; then 16789 # Linking always hardcodes the temporary library directory. 16790 hardcode_action_CXX=relink 16791 else 16792 # We can link without hardcoding, and we can hardcode nonexisting dirs. 16793 hardcode_action_CXX=immediate 16794 fi 16795else 16796 # We cannot hardcode anything, or else we can only hardcode existing 16797 # directories. 16798 hardcode_action_CXX=unsupported 16799fi 16800{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 16801$as_echo "$hardcode_action_CXX" >&6; } 16802 16803if test relink = "$hardcode_action_CXX" || 16804 test yes = "$inherit_rpath_CXX"; then 16805 # Fast installation is not supported 16806 enable_fast_install=no 16807elif test yes = "$shlibpath_overrides_runpath" || 16808 test no = "$enable_shared"; then 16809 # Fast installation is not necessary 16810 enable_fast_install=needless 16811fi 16812 16813 16814 16815 16816 16817 16818 16819 fi # test -n "$compiler" 16820 16821 CC=$lt_save_CC 16822 CFLAGS=$lt_save_CFLAGS 16823 LDCXX=$LD 16824 LD=$lt_save_LD 16825 GCC=$lt_save_GCC 16826 with_gnu_ld=$lt_save_with_gnu_ld 16827 lt_cv_path_LDCXX=$lt_cv_path_LD 16828 lt_cv_path_LD=$lt_save_path_LD 16829 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 16830 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 16831fi # test yes != "$_lt_caught_CXX_error" 16832 16833ac_ext=cpp 16834ac_cpp='$CXXCPP $CPPFLAGS' 16835ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 16836ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 16837ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 16838 16839 16840 16841 16842 16843 16844 16845 16846 16847 16848 16849 16850 16851 16852 16853 ac_config_commands="$ac_config_commands libtool" 16854 16855 16856 16857 16858# Only expand once: 16859 16860 16861 16862# find the maximum length of command line arguments 16863{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 16864$as_echo_n "checking the maximum length of command line arguments... " >&6; } 16865if ${lt_cv_sys_max_cmd_len+:} false; then : 16866 $as_echo_n "(cached) " >&6 16867else 16868 i=0 16869 teststring=ABCD 16870 16871 case $build_os in 16872 msdosdjgpp*) 16873 # On DJGPP, this test can blow up pretty badly due to problems in libc 16874 # (any single argument exceeding 2000 bytes causes a buffer overrun 16875 # during glob expansion). Even if it were fixed, the result of this 16876 # check would be larger than it should be. 16877 lt_cv_sys_max_cmd_len=12288; # 12K is about right 16878 ;; 16879 16880 gnu*) 16881 # Under GNU Hurd, this test is not required because there is 16882 # no limit to the length of command line arguments. 16883 # Libtool will interpret -1 as no limit whatsoever 16884 lt_cv_sys_max_cmd_len=-1; 16885 ;; 16886 16887 cygwin* | mingw* | cegcc*) 16888 # On Win9x/ME, this test blows up -- it succeeds, but takes 16889 # about 5 minutes as the teststring grows exponentially. 16890 # Worse, since 9x/ME are not pre-emptively multitasking, 16891 # you end up with a "frozen" computer, even though with patience 16892 # the test eventually succeeds (with a max line length of 256k). 16893 # Instead, let's just punt: use the minimum linelength reported by 16894 # all of the supported platforms: 8192 (on NT/2K/XP). 16895 lt_cv_sys_max_cmd_len=8192; 16896 ;; 16897 16898 mint*) 16899 # On MiNT this can take a long time and run out of memory. 16900 lt_cv_sys_max_cmd_len=8192; 16901 ;; 16902 16903 amigaos*) 16904 # On AmigaOS with pdksh, this test takes hours, literally. 16905 # So we just punt and use a minimum line length of 8192. 16906 lt_cv_sys_max_cmd_len=8192; 16907 ;; 16908 16909 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 16910 # This has been around since 386BSD, at least. Likely further. 16911 if test -x /sbin/sysctl; then 16912 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 16913 elif test -x /usr/sbin/sysctl; then 16914 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 16915 else 16916 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 16917 fi 16918 # And add a safety zone 16919 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16920 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16921 ;; 16922 16923 interix*) 16924 # We know the value 262144 and hardcode it with a safety zone (like BSD) 16925 lt_cv_sys_max_cmd_len=196608 16926 ;; 16927 16928 os2*) 16929 # The test takes a long time on OS/2. 16930 lt_cv_sys_max_cmd_len=8192 16931 ;; 16932 16933 osf*) 16934 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 16935 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 16936 # nice to cause kernel panics so lets avoid the loop below. 16937 # First set a reasonable default. 16938 lt_cv_sys_max_cmd_len=16384 16939 # 16940 if test -x /sbin/sysconfig; then 16941 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 16942 *1*) lt_cv_sys_max_cmd_len=-1 ;; 16943 esac 16944 fi 16945 ;; 16946 sco3.2v5*) 16947 lt_cv_sys_max_cmd_len=102400 16948 ;; 16949 sysv5* | sco5v6* | sysv4.2uw2*) 16950 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 16951 if test -n "$kargmax"; then 16952 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 16953 else 16954 lt_cv_sys_max_cmd_len=32768 16955 fi 16956 ;; 16957 *) 16958 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 16959 if test -n "$lt_cv_sys_max_cmd_len" && \ 16960 test undefined != "$lt_cv_sys_max_cmd_len"; then 16961 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 16962 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 16963 else 16964 # Make teststring a little bigger before we do anything with it. 16965 # a 1K string should be a reasonable start. 16966 for i in 1 2 3 4 5 6 7 8; do 16967 teststring=$teststring$teststring 16968 done 16969 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 16970 # If test is not a shell built-in, we'll probably end up computing a 16971 # maximum length that is only half of the actual maximum length, but 16972 # we can't tell. 16973 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 16974 = "X$teststring$teststring"; } >/dev/null 2>&1 && 16975 test 17 != "$i" # 1/2 MB should be enough 16976 do 16977 i=`expr $i + 1` 16978 teststring=$teststring$teststring 16979 done 16980 # Only check the string length outside the loop. 16981 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 16982 teststring= 16983 # Add a significant safety factor because C++ compilers can tack on 16984 # massive amounts of additional arguments before passing them to the 16985 # linker. It appears as though 1/2 is a usable value. 16986 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 16987 fi 16988 ;; 16989 esac 16990 16991fi 16992 16993if test -n "$lt_cv_sys_max_cmd_len"; then 16994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 16995$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 16996else 16997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 16998$as_echo "none" >&6; } 16999fi 17000max_cmd_len=$lt_cv_sys_max_cmd_len 17001 17002 17003 17004 17005if expr \( 0 + $lt_cv_sys_max_cmd_len \) '>=' -1 >/dev/null; then : 17006 max_cmd_len_to_use=$lt_cv_sys_max_cmd_len 17007else 17008 max_cmd_len_to_use=256 17009 $as_echo "## --------------------------------------------------------------------------- ## 17010## WARNING: Maximum command line length could not be determined, assuming 256! ## 17011## --------------------------------------------------------------------------- ##" 17012 17013fi 17014 17015 17016cat >>confdefs.h <<_ACEOF 17017#define MAX_CMD_LEN $max_cmd_len_to_use 17018_ACEOF 17019 17020 17021 17022$as_echo "#define _GNU_SOURCE 1" >>confdefs.h 17023 17024 17025 17026 17027 17028 17029 17030 17031 17032if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 17033 if test -n "$ac_tool_prefix"; then 17034 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 17035set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 17036{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17037$as_echo_n "checking for $ac_word... " >&6; } 17038if ${ac_cv_path_PKG_CONFIG+:} false; then : 17039 $as_echo_n "(cached) " >&6 17040else 17041 case $PKG_CONFIG in 17042 [\\/]* | ?:[\\/]*) 17043 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 17044 ;; 17045 *) 17046 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17047for as_dir in $PATH 17048do 17049 IFS=$as_save_IFS 17050 test -z "$as_dir" && as_dir=. 17051 for ac_exec_ext in '' $ac_executable_extensions; do 17052 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17053 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17054 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17055 break 2 17056 fi 17057done 17058 done 17059IFS=$as_save_IFS 17060 17061 ;; 17062esac 17063fi 17064PKG_CONFIG=$ac_cv_path_PKG_CONFIG 17065if test -n "$PKG_CONFIG"; then 17066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 17067$as_echo "$PKG_CONFIG" >&6; } 17068else 17069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17070$as_echo "no" >&6; } 17071fi 17072 17073 17074fi 17075if test -z "$ac_cv_path_PKG_CONFIG"; then 17076 ac_pt_PKG_CONFIG=$PKG_CONFIG 17077 # Extract the first word of "pkg-config", so it can be a program name with args. 17078set dummy pkg-config; ac_word=$2 17079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17080$as_echo_n "checking for $ac_word... " >&6; } 17081if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 17082 $as_echo_n "(cached) " >&6 17083else 17084 case $ac_pt_PKG_CONFIG in 17085 [\\/]* | ?:[\\/]*) 17086 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 17087 ;; 17088 *) 17089 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17090for as_dir in $PATH 17091do 17092 IFS=$as_save_IFS 17093 test -z "$as_dir" && as_dir=. 17094 for ac_exec_ext in '' $ac_executable_extensions; do 17095 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17096 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 17097 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17098 break 2 17099 fi 17100done 17101 done 17102IFS=$as_save_IFS 17103 17104 ;; 17105esac 17106fi 17107ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 17108if test -n "$ac_pt_PKG_CONFIG"; then 17109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 17110$as_echo "$ac_pt_PKG_CONFIG" >&6; } 17111else 17112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17113$as_echo "no" >&6; } 17114fi 17115 17116 if test "x$ac_pt_PKG_CONFIG" = x; then 17117 PKG_CONFIG="" 17118 else 17119 case $cross_compiling:$ac_tool_warned in 17120yes:) 17121{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 17122$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 17123ac_tool_warned=yes ;; 17124esac 17125 PKG_CONFIG=$ac_pt_PKG_CONFIG 17126 fi 17127else 17128 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 17129fi 17130 17131fi 17132if test -n "$PKG_CONFIG"; then 17133 _pkg_min_version=0.9.0 17134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 17135$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 17136 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 17137 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17138$as_echo "yes" >&6; } 17139 else 17140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17141$as_echo "no" >&6; } 17142 PKG_CONFIG="" 17143 fi 17144fi 17145 17146pkg_failed=no 17147{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for CHECK" >&5 17148$as_echo_n "checking for CHECK... " >&6; } 17149 17150if test -n "$CHECK_CFLAGS"; then 17151 pkg_cv_CHECK_CFLAGS="$CHECK_CFLAGS" 17152 elif test -n "$PKG_CONFIG"; then 17153 if test -n "$PKG_CONFIG" && \ 17154 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 17155 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 17156 ac_status=$? 17157 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17158 test $ac_status = 0; }; then 17159 pkg_cv_CHECK_CFLAGS=`$PKG_CONFIG --cflags "check >= 0.9.4" 2>/dev/null` 17160 test "x$?" != "x0" && pkg_failed=yes 17161else 17162 pkg_failed=yes 17163fi 17164 else 17165 pkg_failed=untried 17166fi 17167if test -n "$CHECK_LIBS"; then 17168 pkg_cv_CHECK_LIBS="$CHECK_LIBS" 17169 elif test -n "$PKG_CONFIG"; then 17170 if test -n "$PKG_CONFIG" && \ 17171 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"check >= 0.9.4\""; } >&5 17172 ($PKG_CONFIG --exists --print-errors "check >= 0.9.4") 2>&5 17173 ac_status=$? 17174 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17175 test $ac_status = 0; }; then 17176 pkg_cv_CHECK_LIBS=`$PKG_CONFIG --libs "check >= 0.9.4" 2>/dev/null` 17177 test "x$?" != "x0" && pkg_failed=yes 17178else 17179 pkg_failed=yes 17180fi 17181 else 17182 pkg_failed=untried 17183fi 17184 17185 17186 17187if test $pkg_failed = yes; then 17188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17189$as_echo "no" >&6; } 17190 17191if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 17192 _pkg_short_errors_supported=yes 17193else 17194 _pkg_short_errors_supported=no 17195fi 17196 if test $_pkg_short_errors_supported = yes; then 17197 CHECK_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 17198 else 17199 CHECK_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "check >= 0.9.4" 2>&1` 17200 fi 17201 # Put the nasty error message in config.log where it belongs 17202 echo "$CHECK_PKG_ERRORS" >&5 17203 17204 usetests=no 17205elif test $pkg_failed = untried; then 17206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17207$as_echo "no" >&6; } 17208 usetests=no 17209else 17210 CHECK_CFLAGS=$pkg_cv_CHECK_CFLAGS 17211 CHECK_LIBS=$pkg_cv_CHECK_LIBS 17212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17213$as_echo "yes" >&6; } 17214 usetests=yes 17215fi 17216 if test x$usetests = xyes; then 17217 USE_TESTS_TRUE= 17218 USE_TESTS_FALSE='#' 17219else 17220 USE_TESTS_TRUE='#' 17221 USE_TESTS_FALSE= 17222fi 17223 17224 17225 17226{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5 17227$as_echo_n "checking for X... " >&6; } 17228 17229 17230# Check whether --with-x was given. 17231if test "${with_x+set}" = set; then : 17232 withval=$with_x; 17233fi 17234 17235# $have_x is `yes', `no', `disabled', or empty when we do not yet know. 17236if test "x$with_x" = xno; then 17237 # The user explicitly disabled X. 17238 have_x=disabled 17239else 17240 case $x_includes,$x_libraries in #( 17241 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #( 17242 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then : 17243 $as_echo_n "(cached) " >&6 17244else 17245 # One or both of the vars are not set, and there is no cached value. 17246ac_x_includes=no ac_x_libraries=no 17247rm -f -r conftest.dir 17248if mkdir conftest.dir; then 17249 cd conftest.dir 17250 cat >Imakefile <<'_ACEOF' 17251incroot: 17252 @echo incroot='${INCROOT}' 17253usrlibdir: 17254 @echo usrlibdir='${USRLIBDIR}' 17255libdir: 17256 @echo libdir='${LIBDIR}' 17257_ACEOF 17258 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then 17259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 17260 for ac_var in incroot usrlibdir libdir; do 17261 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`" 17262 done 17263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR. 17264 for ac_extension in a so sl dylib la dll; do 17265 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" && 17266 test -f "$ac_im_libdir/libX11.$ac_extension"; then 17267 ac_im_usrlibdir=$ac_im_libdir; break 17268 fi 17269 done 17270 # Screen out bogus values from the imake configuration. They are 17271 # bogus both because they are the default anyway, and because 17272 # using them would break gcc on systems where it needs fixed includes. 17273 case $ac_im_incroot in 17274 /usr/include) ac_x_includes= ;; 17275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;; 17276 esac 17277 case $ac_im_usrlibdir in 17278 /usr/lib | /usr/lib64 | /lib | /lib64) ;; 17279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;; 17280 esac 17281 fi 17282 cd .. 17283 rm -f -r conftest.dir 17284fi 17285 17286# Standard set of common directories for X headers. 17287# Check X11 before X11Rn because it is often a symlink to the current release. 17288ac_x_header_dirs=' 17289/usr/X11/include 17290/usr/X11R7/include 17291/usr/X11R6/include 17292/usr/X11R5/include 17293/usr/X11R4/include 17294 17295/usr/include/X11 17296/usr/include/X11R7 17297/usr/include/X11R6 17298/usr/include/X11R5 17299/usr/include/X11R4 17300 17301/usr/local/X11/include 17302/usr/local/X11R7/include 17303/usr/local/X11R6/include 17304/usr/local/X11R5/include 17305/usr/local/X11R4/include 17306 17307/usr/local/include/X11 17308/usr/local/include/X11R7 17309/usr/local/include/X11R6 17310/usr/local/include/X11R5 17311/usr/local/include/X11R4 17312 17313/usr/X386/include 17314/usr/x386/include 17315/usr/XFree86/include/X11 17316 17317/usr/include 17318/usr/local/include 17319/usr/unsupported/include 17320/usr/athena/include 17321/usr/local/x11r5/include 17322/usr/lpp/Xamples/include 17323 17324/usr/openwin/include 17325/usr/openwin/share/include' 17326 17327if test "$ac_x_includes" = no; then 17328 # Guess where to find include files, by looking for Xlib.h. 17329 # First, try using that file with no special directory specified. 17330 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17331/* end confdefs.h. */ 17332#include <X11/Xlib.h> 17333_ACEOF 17334if ac_fn_cxx_try_cpp "$LINENO"; then : 17335 # We can compile using X headers with no special include directory. 17336ac_x_includes= 17337else 17338 for ac_dir in $ac_x_header_dirs; do 17339 if test -r "$ac_dir/X11/Xlib.h"; then 17340 ac_x_includes=$ac_dir 17341 break 17342 fi 17343done 17344fi 17345rm -f conftest.err conftest.i conftest.$ac_ext 17346fi # $ac_x_includes = no 17347 17348if test "$ac_x_libraries" = no; then 17349 # Check for the libraries. 17350 # See if we find them without any special options. 17351 # Don't add to $LIBS permanently. 17352 ac_save_LIBS=$LIBS 17353 LIBS="-lX11 $LIBS" 17354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17355/* end confdefs.h. */ 17356#include <X11/Xlib.h> 17357int 17358main () 17359{ 17360XrmInitialize () 17361 ; 17362 return 0; 17363} 17364_ACEOF 17365if ac_fn_cxx_try_link "$LINENO"; then : 17366 LIBS=$ac_save_LIBS 17367# We can link X programs with no special library path. 17368ac_x_libraries= 17369else 17370 LIBS=$ac_save_LIBS 17371for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g` 17372do 17373 # Don't even attempt the hair of trying to link an X program! 17374 for ac_extension in a so sl dylib la dll; do 17375 if test -r "$ac_dir/libX11.$ac_extension"; then 17376 ac_x_libraries=$ac_dir 17377 break 2 17378 fi 17379 done 17380done 17381fi 17382rm -f core conftest.err conftest.$ac_objext \ 17383 conftest$ac_exeext conftest.$ac_ext 17384fi # $ac_x_libraries = no 17385 17386case $ac_x_includes,$ac_x_libraries in #( 17387 no,* | *,no | *\'*) 17388 # Didn't find X, or a directory has "'" in its name. 17389 ac_cv_have_x="have_x=no";; #( 17390 *) 17391 # Record where we found X for the cache. 17392 ac_cv_have_x="have_x=yes\ 17393 ac_x_includes='$ac_x_includes'\ 17394 ac_x_libraries='$ac_x_libraries'" 17395esac 17396fi 17397;; #( 17398 *) have_x=yes;; 17399 esac 17400 eval "$ac_cv_have_x" 17401fi # $with_x != no 17402 17403if test "$have_x" != yes; then 17404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5 17405$as_echo "$have_x" >&6; } 17406 no_x=yes 17407else 17408 # If each of the values was on the command line, it overrides each guess. 17409 test "x$x_includes" = xNONE && x_includes=$ac_x_includes 17410 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries 17411 # Update the cache value to reflect the command line values. 17412 ac_cv_have_x="have_x=yes\ 17413 ac_x_includes='$x_includes'\ 17414 ac_x_libraries='$x_libraries'" 17415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5 17416$as_echo "libraries $x_libraries, headers $x_includes" >&6; } 17417fi 17418 17419if test "$no_x" = yes; then 17420 # Not all programs may use this symbol, but it does not hurt to define it. 17421 17422$as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h 17423 17424 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS= 17425else 17426 if test -n "$x_includes"; then 17427 X_CFLAGS="$X_CFLAGS -I$x_includes" 17428 fi 17429 17430 # It would also be nice to do this for all -L options, not just this one. 17431 if test -n "$x_libraries"; then 17432 X_LIBS="$X_LIBS -L$x_libraries" 17433 # For Solaris; some versions of Sun CC require a space after -R and 17434 # others require no space. Words are not sufficient . . . . 17435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5 17436$as_echo_n "checking whether -R must be followed by a space... " >&6; } 17437 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries" 17438 ac_xsave_cxx_werror_flag=$ac_cxx_werror_flag 17439 ac_cxx_werror_flag=yes 17440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17441/* end confdefs.h. */ 17442 17443int 17444main () 17445{ 17446 17447 ; 17448 return 0; 17449} 17450_ACEOF 17451if ac_fn_cxx_try_link "$LINENO"; then : 17452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17453$as_echo "no" >&6; } 17454 X_LIBS="$X_LIBS -R$x_libraries" 17455else 17456 LIBS="$ac_xsave_LIBS -R $x_libraries" 17457 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17458/* end confdefs.h. */ 17459 17460int 17461main () 17462{ 17463 17464 ; 17465 return 0; 17466} 17467_ACEOF 17468if ac_fn_cxx_try_link "$LINENO"; then : 17469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 17470$as_echo "yes" >&6; } 17471 X_LIBS="$X_LIBS -R $x_libraries" 17472else 17473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5 17474$as_echo "neither works" >&6; } 17475fi 17476rm -f core conftest.err conftest.$ac_objext \ 17477 conftest$ac_exeext conftest.$ac_ext 17478fi 17479rm -f core conftest.err conftest.$ac_objext \ 17480 conftest$ac_exeext conftest.$ac_ext 17481 ac_cxx_werror_flag=$ac_xsave_cxx_werror_flag 17482 LIBS=$ac_xsave_LIBS 17483 fi 17484 17485 # Check for system-dependent libraries X programs must link with. 17486 # Do this before checking for the system-independent R6 libraries 17487 # (-lICE), since we may need -lsocket or whatever for X linking. 17488 17489 if test "$ISC" = yes; then 17490 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet" 17491 else 17492 # Martyn Johnson says this is needed for Ultrix, if the X 17493 # libraries were built with DECnet support. And Karl Berry says 17494 # the Alpha needs dnet_stub (dnet does not exist). 17495 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11" 17496 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17497/* end confdefs.h. */ 17498 17499/* Override any GCC internal prototype to avoid an error. 17500 Use char because int might match the return type of a GCC 17501 builtin and then its argument prototype would still apply. */ 17502#ifdef __cplusplus 17503extern "C" 17504#endif 17505char XOpenDisplay (); 17506int 17507main () 17508{ 17509return XOpenDisplay (); 17510 ; 17511 return 0; 17512} 17513_ACEOF 17514if ac_fn_cxx_try_link "$LINENO"; then : 17515 17516else 17517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5 17518$as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; } 17519if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then : 17520 $as_echo_n "(cached) " >&6 17521else 17522 ac_check_lib_save_LIBS=$LIBS 17523LIBS="-ldnet $LIBS" 17524cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17525/* end confdefs.h. */ 17526 17527/* Override any GCC internal prototype to avoid an error. 17528 Use char because int might match the return type of a GCC 17529 builtin and then its argument prototype would still apply. */ 17530#ifdef __cplusplus 17531extern "C" 17532#endif 17533char dnet_ntoa (); 17534int 17535main () 17536{ 17537return dnet_ntoa (); 17538 ; 17539 return 0; 17540} 17541_ACEOF 17542if ac_fn_cxx_try_link "$LINENO"; then : 17543 ac_cv_lib_dnet_dnet_ntoa=yes 17544else 17545 ac_cv_lib_dnet_dnet_ntoa=no 17546fi 17547rm -f core conftest.err conftest.$ac_objext \ 17548 conftest$ac_exeext conftest.$ac_ext 17549LIBS=$ac_check_lib_save_LIBS 17550fi 17551{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5 17552$as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; } 17553if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then : 17554 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet" 17555fi 17556 17557 if test $ac_cv_lib_dnet_dnet_ntoa = no; then 17558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5 17559$as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; } 17560if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then : 17561 $as_echo_n "(cached) " >&6 17562else 17563 ac_check_lib_save_LIBS=$LIBS 17564LIBS="-ldnet_stub $LIBS" 17565cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17566/* end confdefs.h. */ 17567 17568/* Override any GCC internal prototype to avoid an error. 17569 Use char because int might match the return type of a GCC 17570 builtin and then its argument prototype would still apply. */ 17571#ifdef __cplusplus 17572extern "C" 17573#endif 17574char dnet_ntoa (); 17575int 17576main () 17577{ 17578return dnet_ntoa (); 17579 ; 17580 return 0; 17581} 17582_ACEOF 17583if ac_fn_cxx_try_link "$LINENO"; then : 17584 ac_cv_lib_dnet_stub_dnet_ntoa=yes 17585else 17586 ac_cv_lib_dnet_stub_dnet_ntoa=no 17587fi 17588rm -f core conftest.err conftest.$ac_objext \ 17589 conftest$ac_exeext conftest.$ac_ext 17590LIBS=$ac_check_lib_save_LIBS 17591fi 17592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5 17593$as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; } 17594if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then : 17595 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub" 17596fi 17597 17598 fi 17599fi 17600rm -f core conftest.err conftest.$ac_objext \ 17601 conftest$ac_exeext conftest.$ac_ext 17602 LIBS="$ac_xsave_LIBS" 17603 17604 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT, 17605 # to get the SysV transport functions. 17606 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4) 17607 # needs -lnsl. 17608 # The nsl library prevents programs from opening the X display 17609 # on Irix 5.2, according to T.E. Dickey. 17610 # The functions gethostbyname, getservbyname, and inet_addr are 17611 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking. 17612 ac_fn_cxx_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname" 17613if test "x$ac_cv_func_gethostbyname" = xyes; then : 17614 17615fi 17616 17617 if test $ac_cv_func_gethostbyname = no; then 17618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5 17619$as_echo_n "checking for gethostbyname in -lnsl... " >&6; } 17620if ${ac_cv_lib_nsl_gethostbyname+:} false; then : 17621 $as_echo_n "(cached) " >&6 17622else 17623 ac_check_lib_save_LIBS=$LIBS 17624LIBS="-lnsl $LIBS" 17625cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17626/* end confdefs.h. */ 17627 17628/* Override any GCC internal prototype to avoid an error. 17629 Use char because int might match the return type of a GCC 17630 builtin and then its argument prototype would still apply. */ 17631#ifdef __cplusplus 17632extern "C" 17633#endif 17634char gethostbyname (); 17635int 17636main () 17637{ 17638return gethostbyname (); 17639 ; 17640 return 0; 17641} 17642_ACEOF 17643if ac_fn_cxx_try_link "$LINENO"; then : 17644 ac_cv_lib_nsl_gethostbyname=yes 17645else 17646 ac_cv_lib_nsl_gethostbyname=no 17647fi 17648rm -f core conftest.err conftest.$ac_objext \ 17649 conftest$ac_exeext conftest.$ac_ext 17650LIBS=$ac_check_lib_save_LIBS 17651fi 17652{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5 17653$as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; } 17654if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then : 17655 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl" 17656fi 17657 17658 if test $ac_cv_lib_nsl_gethostbyname = no; then 17659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5 17660$as_echo_n "checking for gethostbyname in -lbsd... " >&6; } 17661if ${ac_cv_lib_bsd_gethostbyname+:} false; then : 17662 $as_echo_n "(cached) " >&6 17663else 17664 ac_check_lib_save_LIBS=$LIBS 17665LIBS="-lbsd $LIBS" 17666cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17667/* end confdefs.h. */ 17668 17669/* Override any GCC internal prototype to avoid an error. 17670 Use char because int might match the return type of a GCC 17671 builtin and then its argument prototype would still apply. */ 17672#ifdef __cplusplus 17673extern "C" 17674#endif 17675char gethostbyname (); 17676int 17677main () 17678{ 17679return gethostbyname (); 17680 ; 17681 return 0; 17682} 17683_ACEOF 17684if ac_fn_cxx_try_link "$LINENO"; then : 17685 ac_cv_lib_bsd_gethostbyname=yes 17686else 17687 ac_cv_lib_bsd_gethostbyname=no 17688fi 17689rm -f core conftest.err conftest.$ac_objext \ 17690 conftest$ac_exeext conftest.$ac_ext 17691LIBS=$ac_check_lib_save_LIBS 17692fi 17693{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5 17694$as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; } 17695if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then : 17696 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd" 17697fi 17698 17699 fi 17700 fi 17701 17702 # lieder@skyler.mavd.honeywell.com says without -lsocket, 17703 # socket/setsockopt and other routines are undefined under SCO ODT 17704 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary 17705 # on later versions), says Simon Leinen: it contains gethostby* 17706 # variants that don't use the name server (or something). -lsocket 17707 # must be given before -lnsl if both are needed. We assume that 17708 # if connect needs -lnsl, so does gethostbyname. 17709 ac_fn_cxx_check_func "$LINENO" "connect" "ac_cv_func_connect" 17710if test "x$ac_cv_func_connect" = xyes; then : 17711 17712fi 17713 17714 if test $ac_cv_func_connect = no; then 17715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5 17716$as_echo_n "checking for connect in -lsocket... " >&6; } 17717if ${ac_cv_lib_socket_connect+:} false; then : 17718 $as_echo_n "(cached) " >&6 17719else 17720 ac_check_lib_save_LIBS=$LIBS 17721LIBS="-lsocket $X_EXTRA_LIBS $LIBS" 17722cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17723/* end confdefs.h. */ 17724 17725/* Override any GCC internal prototype to avoid an error. 17726 Use char because int might match the return type of a GCC 17727 builtin and then its argument prototype would still apply. */ 17728#ifdef __cplusplus 17729extern "C" 17730#endif 17731char connect (); 17732int 17733main () 17734{ 17735return connect (); 17736 ; 17737 return 0; 17738} 17739_ACEOF 17740if ac_fn_cxx_try_link "$LINENO"; then : 17741 ac_cv_lib_socket_connect=yes 17742else 17743 ac_cv_lib_socket_connect=no 17744fi 17745rm -f core conftest.err conftest.$ac_objext \ 17746 conftest$ac_exeext conftest.$ac_ext 17747LIBS=$ac_check_lib_save_LIBS 17748fi 17749{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5 17750$as_echo "$ac_cv_lib_socket_connect" >&6; } 17751if test "x$ac_cv_lib_socket_connect" = xyes; then : 17752 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS" 17753fi 17754 17755 fi 17756 17757 # Guillermo Gomez says -lposix is necessary on A/UX. 17758 ac_fn_cxx_check_func "$LINENO" "remove" "ac_cv_func_remove" 17759if test "x$ac_cv_func_remove" = xyes; then : 17760 17761fi 17762 17763 if test $ac_cv_func_remove = no; then 17764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5 17765$as_echo_n "checking for remove in -lposix... " >&6; } 17766if ${ac_cv_lib_posix_remove+:} false; then : 17767 $as_echo_n "(cached) " >&6 17768else 17769 ac_check_lib_save_LIBS=$LIBS 17770LIBS="-lposix $LIBS" 17771cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17772/* end confdefs.h. */ 17773 17774/* Override any GCC internal prototype to avoid an error. 17775 Use char because int might match the return type of a GCC 17776 builtin and then its argument prototype would still apply. */ 17777#ifdef __cplusplus 17778extern "C" 17779#endif 17780char remove (); 17781int 17782main () 17783{ 17784return remove (); 17785 ; 17786 return 0; 17787} 17788_ACEOF 17789if ac_fn_cxx_try_link "$LINENO"; then : 17790 ac_cv_lib_posix_remove=yes 17791else 17792 ac_cv_lib_posix_remove=no 17793fi 17794rm -f core conftest.err conftest.$ac_objext \ 17795 conftest$ac_exeext conftest.$ac_ext 17796LIBS=$ac_check_lib_save_LIBS 17797fi 17798{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5 17799$as_echo "$ac_cv_lib_posix_remove" >&6; } 17800if test "x$ac_cv_lib_posix_remove" = xyes; then : 17801 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix" 17802fi 17803 17804 fi 17805 17806 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay. 17807 ac_fn_cxx_check_func "$LINENO" "shmat" "ac_cv_func_shmat" 17808if test "x$ac_cv_func_shmat" = xyes; then : 17809 17810fi 17811 17812 if test $ac_cv_func_shmat = no; then 17813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5 17814$as_echo_n "checking for shmat in -lipc... " >&6; } 17815if ${ac_cv_lib_ipc_shmat+:} false; then : 17816 $as_echo_n "(cached) " >&6 17817else 17818 ac_check_lib_save_LIBS=$LIBS 17819LIBS="-lipc $LIBS" 17820cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17821/* end confdefs.h. */ 17822 17823/* Override any GCC internal prototype to avoid an error. 17824 Use char because int might match the return type of a GCC 17825 builtin and then its argument prototype would still apply. */ 17826#ifdef __cplusplus 17827extern "C" 17828#endif 17829char shmat (); 17830int 17831main () 17832{ 17833return shmat (); 17834 ; 17835 return 0; 17836} 17837_ACEOF 17838if ac_fn_cxx_try_link "$LINENO"; then : 17839 ac_cv_lib_ipc_shmat=yes 17840else 17841 ac_cv_lib_ipc_shmat=no 17842fi 17843rm -f core conftest.err conftest.$ac_objext \ 17844 conftest$ac_exeext conftest.$ac_ext 17845LIBS=$ac_check_lib_save_LIBS 17846fi 17847{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5 17848$as_echo "$ac_cv_lib_ipc_shmat" >&6; } 17849if test "x$ac_cv_lib_ipc_shmat" = xyes; then : 17850 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc" 17851fi 17852 17853 fi 17854 fi 17855 17856 # Check for libraries that X11R6 Xt/Xaw programs need. 17857 ac_save_LDFLAGS=$LDFLAGS 17858 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries" 17859 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to 17860 # check for ICE first), but we must link in the order -lSM -lICE or 17861 # we get undefined symbols. So assume we have SM if we have ICE. 17862 # These have to be linked with before -lX11, unlike the other 17863 # libraries we check for below, so use a different variable. 17864 # John Interrante, Karl Berry 17865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5 17866$as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; } 17867if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then : 17868 $as_echo_n "(cached) " >&6 17869else 17870 ac_check_lib_save_LIBS=$LIBS 17871LIBS="-lICE $X_EXTRA_LIBS $LIBS" 17872cat confdefs.h - <<_ACEOF >conftest.$ac_ext 17873/* end confdefs.h. */ 17874 17875/* Override any GCC internal prototype to avoid an error. 17876 Use char because int might match the return type of a GCC 17877 builtin and then its argument prototype would still apply. */ 17878#ifdef __cplusplus 17879extern "C" 17880#endif 17881char IceConnectionNumber (); 17882int 17883main () 17884{ 17885return IceConnectionNumber (); 17886 ; 17887 return 0; 17888} 17889_ACEOF 17890if ac_fn_cxx_try_link "$LINENO"; then : 17891 ac_cv_lib_ICE_IceConnectionNumber=yes 17892else 17893 ac_cv_lib_ICE_IceConnectionNumber=no 17894fi 17895rm -f core conftest.err conftest.$ac_objext \ 17896 conftest$ac_exeext conftest.$ac_ext 17897LIBS=$ac_check_lib_save_LIBS 17898fi 17899{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5 17900$as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; } 17901if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then : 17902 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE" 17903fi 17904 17905 LDFLAGS=$ac_save_LDFLAGS 17906 17907fi 17908 17909 17910if test "$no_x"; then 17911 as_fn_error $? "X Window libraries and headers not found! 17912********************************************************************* 17913* Check your X installation (many distributions have these files in * 17914* the ...devel-packages (e.g. libx11-dev or libX11-devel)). * 17915*********************************************************************" "$LINENO" 5 17916fi 17917 17918if test "$GCC" != "yes"; then 17919 case "$CXX" in 17920 *xlc*|*xlC*) 17921 CXXFLAGS="-qrtti=all $CXXFLAGS" 17922 ;; 17923 esac 17924fi 17925 17926AVFS_LDFLAGS="" 17927 17928ac_cv_have_avfs=no 17929avfs_too_old=no 17930avfs_insecure_version=no 17931 17932 17933# Check whether --with-avfs was given. 17934if test "${with_avfs+set}" = set; then : 17935 withval=$with_avfs; ac_cv_use_avfs=$withval 17936else 17937 ac_cv_use_avfs=yes 17938fi 17939 17940if test "$ac_cv_use_avfs" = "yes"; then 17941 17942# Check whether --with-avfs-path was given. 17943if test "${with_avfs_path+set}" = set; then : 17944 withval=$with_avfs_path; p="$withval:$PATH" 17945else 17946 p="$PATH" 17947fi 17948 17949 # Extract the first word of "avfs-config", so it can be a program name with args. 17950set dummy avfs-config; ac_word=$2 17951{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 17952$as_echo_n "checking for $ac_word... " >&6; } 17953if ${ac_cv_path_avfsconf+:} false; then : 17954 $as_echo_n "(cached) " >&6 17955else 17956 case $avfsconf in 17957 [\\/]* | ?:[\\/]*) 17958 ac_cv_path_avfsconf="$avfsconf" # Let the user override the test with a path. 17959 ;; 17960 *) 17961 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 17962for as_dir in $p 17963do 17964 IFS=$as_save_IFS 17965 test -z "$as_dir" && as_dir=. 17966 for ac_exec_ext in '' $ac_executable_extensions; do 17967 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 17968 ac_cv_path_avfsconf="$as_dir/$ac_word$ac_exec_ext" 17969 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 17970 break 2 17971 fi 17972done 17973 done 17974IFS=$as_save_IFS 17975 17976 ;; 17977esac 17978fi 17979avfsconf=$ac_cv_path_avfsconf 17980if test -n "$avfsconf"; then 17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $avfsconf" >&5 17982$as_echo "$avfsconf" >&6; } 17983else 17984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 17985$as_echo "no" >&6; } 17986fi 17987 17988 17989 if test -x "$avfsconf"; then 17990 avfs_version=$($avfsconf --version) 17991 avfs_version_major=$(echo $avfs_version | $AWK -F. '{print int($1)}') 17992 avfs_version_minor=$(echo $avfs_version | $AWK -F. '{print int($2)}') 17993 avfs_version_patch=$(echo $avfs_version | $AWK -F. '{print int($3)}') 17994 if test "$avfs_version_major" -gt "0" -o \ 17995 \( "$avfs_version_major" -eq "0" -a "$avfs_version_minor" -gt "9" \) -o \ 17996 \( "$avfs_version_major" -eq "0" -a "$avfs_version_minor" -eq "9" -a "$avfs_version_patch" -gt "3" \); then 17997 CPPFLAGS="$CPPFLAGS $($avfsconf --cflags)" 17998 AVFS_LDFLAGS="$($avfsconf --libs)" 17999 18000$as_echo "#define HAVE_AVFS 1" >>confdefs.h 18001 18002 ac_cv_have_avfs=yes 18003 else 18004 avfs_too_old=yes 18005 fi 18006 18007 if test "$avfs_version_major" -lt "1" -o \ 18008 \( "$avfs_version_major" -eq "1" -a "$avfs_version_minor" -lt "1" \) -o \ 18009 \( "$avfs_version_major" -eq "1" -a "$avfs_version_minor" -eq "1" -a "$avfs_version_patch" -lt "1" \); then 18010 avfs_insecure_version=yes 18011 else 18012 avfs_insecure_version=no 18013 fi 18014 fi 18015fi 18016 18017if test "$ac_cv_have_avfs" != "yes"; then 18018 # Check whether --enable-largefile was given. 18019if test "${enable_largefile+set}" = set; then : 18020 enableval=$enable_largefile; 18021fi 18022 18023if test "$enable_largefile" != no; then 18024 18025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5 18026$as_echo_n "checking for special C compiler options needed for large files... " >&6; } 18027if ${ac_cv_sys_largefile_CC+:} false; then : 18028 $as_echo_n "(cached) " >&6 18029else 18030 ac_cv_sys_largefile_CC=no 18031 if test "$GCC" != yes; then 18032 ac_save_CC=$CC 18033 while :; do 18034 # IRIX 6.2 and later do not support large files by default, 18035 # so use the C compiler's -n32 option if that helps. 18036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18037/* end confdefs.h. */ 18038#include <sys/types.h> 18039 /* Check that off_t can represent 2**63 - 1 correctly. 18040 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18041 since some C++ compilers masquerading as C compilers 18042 incorrectly reject 9223372036854775807. */ 18043#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18044 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18045 && LARGE_OFF_T % 2147483647 == 1) 18046 ? 1 : -1]; 18047int 18048main () 18049{ 18050 18051 ; 18052 return 0; 18053} 18054_ACEOF 18055 if ac_fn_cxx_try_compile "$LINENO"; then : 18056 break 18057fi 18058rm -f core conftest.err conftest.$ac_objext 18059 CC="$CC -n32" 18060 if ac_fn_cxx_try_compile "$LINENO"; then : 18061 ac_cv_sys_largefile_CC=' -n32'; break 18062fi 18063rm -f core conftest.err conftest.$ac_objext 18064 break 18065 done 18066 CC=$ac_save_CC 18067 rm -f conftest.$ac_ext 18068 fi 18069fi 18070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5 18071$as_echo "$ac_cv_sys_largefile_CC" >&6; } 18072 if test "$ac_cv_sys_largefile_CC" != no; then 18073 CC=$CC$ac_cv_sys_largefile_CC 18074 fi 18075 18076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5 18077$as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; } 18078if ${ac_cv_sys_file_offset_bits+:} false; then : 18079 $as_echo_n "(cached) " >&6 18080else 18081 while :; do 18082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18083/* end confdefs.h. */ 18084#include <sys/types.h> 18085 /* Check that off_t can represent 2**63 - 1 correctly. 18086 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18087 since some C++ compilers masquerading as C compilers 18088 incorrectly reject 9223372036854775807. */ 18089#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18090 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18091 && LARGE_OFF_T % 2147483647 == 1) 18092 ? 1 : -1]; 18093int 18094main () 18095{ 18096 18097 ; 18098 return 0; 18099} 18100_ACEOF 18101if ac_fn_cxx_try_compile "$LINENO"; then : 18102 ac_cv_sys_file_offset_bits=no; break 18103fi 18104rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18106/* end confdefs.h. */ 18107#define _FILE_OFFSET_BITS 64 18108#include <sys/types.h> 18109 /* Check that off_t can represent 2**63 - 1 correctly. 18110 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18111 since some C++ compilers masquerading as C compilers 18112 incorrectly reject 9223372036854775807. */ 18113#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18114 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18115 && LARGE_OFF_T % 2147483647 == 1) 18116 ? 1 : -1]; 18117int 18118main () 18119{ 18120 18121 ; 18122 return 0; 18123} 18124_ACEOF 18125if ac_fn_cxx_try_compile "$LINENO"; then : 18126 ac_cv_sys_file_offset_bits=64; break 18127fi 18128rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18129 ac_cv_sys_file_offset_bits=unknown 18130 break 18131done 18132fi 18133{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5 18134$as_echo "$ac_cv_sys_file_offset_bits" >&6; } 18135case $ac_cv_sys_file_offset_bits in #( 18136 no | unknown) ;; 18137 *) 18138cat >>confdefs.h <<_ACEOF 18139#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits 18140_ACEOF 18141;; 18142esac 18143rm -rf conftest* 18144 if test $ac_cv_sys_file_offset_bits = unknown; then 18145 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5 18146$as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; } 18147if ${ac_cv_sys_large_files+:} false; then : 18148 $as_echo_n "(cached) " >&6 18149else 18150 while :; do 18151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18152/* end confdefs.h. */ 18153#include <sys/types.h> 18154 /* Check that off_t can represent 2**63 - 1 correctly. 18155 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18156 since some C++ compilers masquerading as C compilers 18157 incorrectly reject 9223372036854775807. */ 18158#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18159 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18160 && LARGE_OFF_T % 2147483647 == 1) 18161 ? 1 : -1]; 18162int 18163main () 18164{ 18165 18166 ; 18167 return 0; 18168} 18169_ACEOF 18170if ac_fn_cxx_try_compile "$LINENO"; then : 18171 ac_cv_sys_large_files=no; break 18172fi 18173rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18174 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18175/* end confdefs.h. */ 18176#define _LARGE_FILES 1 18177#include <sys/types.h> 18178 /* Check that off_t can represent 2**63 - 1 correctly. 18179 We can't simply define LARGE_OFF_T to be 9223372036854775807, 18180 since some C++ compilers masquerading as C compilers 18181 incorrectly reject 9223372036854775807. */ 18182#define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62)) 18183 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721 18184 && LARGE_OFF_T % 2147483647 == 1) 18185 ? 1 : -1]; 18186int 18187main () 18188{ 18189 18190 ; 18191 return 0; 18192} 18193_ACEOF 18194if ac_fn_cxx_try_compile "$LINENO"; then : 18195 ac_cv_sys_large_files=1; break 18196fi 18197rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18198 ac_cv_sys_large_files=unknown 18199 break 18200done 18201fi 18202{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5 18203$as_echo "$ac_cv_sys_large_files" >&6; } 18204case $ac_cv_sys_large_files in #( 18205 no | unknown) ;; 18206 *) 18207cat >>confdefs.h <<_ACEOF 18208#define _LARGE_FILES $ac_cv_sys_large_files 18209_ACEOF 18210;; 18211esac 18212rm -rf conftest* 18213 fi 18214 18215 18216fi 18217 18218fi 18219 18220ac_header_dirent=no 18221for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do 18222 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` 18223{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5 18224$as_echo_n "checking for $ac_hdr that defines DIR... " >&6; } 18225if eval \${$as_ac_Header+:} false; then : 18226 $as_echo_n "(cached) " >&6 18227else 18228 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18229/* end confdefs.h. */ 18230#include <sys/types.h> 18231#include <$ac_hdr> 18232 18233int 18234main () 18235{ 18236if ((DIR *) 0) 18237return 0; 18238 ; 18239 return 0; 18240} 18241_ACEOF 18242if ac_fn_cxx_try_compile "$LINENO"; then : 18243 eval "$as_ac_Header=yes" 18244else 18245 eval "$as_ac_Header=no" 18246fi 18247rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18248fi 18249eval ac_res=\$$as_ac_Header 18250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 18251$as_echo "$ac_res" >&6; } 18252if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18253 cat >>confdefs.h <<_ACEOF 18254#define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 18255_ACEOF 18256 18257ac_header_dirent=$ac_hdr; break 18258fi 18259 18260done 18261# Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. 18262if test $ac_header_dirent = dirent.h; then 18263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18264$as_echo_n "checking for library containing opendir... " >&6; } 18265if ${ac_cv_search_opendir+:} false; then : 18266 $as_echo_n "(cached) " >&6 18267else 18268 ac_func_search_save_LIBS=$LIBS 18269cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18270/* end confdefs.h. */ 18271 18272/* Override any GCC internal prototype to avoid an error. 18273 Use char because int might match the return type of a GCC 18274 builtin and then its argument prototype would still apply. */ 18275#ifdef __cplusplus 18276extern "C" 18277#endif 18278char opendir (); 18279int 18280main () 18281{ 18282return opendir (); 18283 ; 18284 return 0; 18285} 18286_ACEOF 18287for ac_lib in '' dir; do 18288 if test -z "$ac_lib"; then 18289 ac_res="none required" 18290 else 18291 ac_res=-l$ac_lib 18292 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18293 fi 18294 if ac_fn_cxx_try_link "$LINENO"; then : 18295 ac_cv_search_opendir=$ac_res 18296fi 18297rm -f core conftest.err conftest.$ac_objext \ 18298 conftest$ac_exeext 18299 if ${ac_cv_search_opendir+:} false; then : 18300 break 18301fi 18302done 18303if ${ac_cv_search_opendir+:} false; then : 18304 18305else 18306 ac_cv_search_opendir=no 18307fi 18308rm conftest.$ac_ext 18309LIBS=$ac_func_search_save_LIBS 18310fi 18311{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18312$as_echo "$ac_cv_search_opendir" >&6; } 18313ac_res=$ac_cv_search_opendir 18314if test "$ac_res" != no; then : 18315 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18316 18317fi 18318 18319else 18320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5 18321$as_echo_n "checking for library containing opendir... " >&6; } 18322if ${ac_cv_search_opendir+:} false; then : 18323 $as_echo_n "(cached) " >&6 18324else 18325 ac_func_search_save_LIBS=$LIBS 18326cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18327/* end confdefs.h. */ 18328 18329/* Override any GCC internal prototype to avoid an error. 18330 Use char because int might match the return type of a GCC 18331 builtin and then its argument prototype would still apply. */ 18332#ifdef __cplusplus 18333extern "C" 18334#endif 18335char opendir (); 18336int 18337main () 18338{ 18339return opendir (); 18340 ; 18341 return 0; 18342} 18343_ACEOF 18344for ac_lib in '' x; do 18345 if test -z "$ac_lib"; then 18346 ac_res="none required" 18347 else 18348 ac_res=-l$ac_lib 18349 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 18350 fi 18351 if ac_fn_cxx_try_link "$LINENO"; then : 18352 ac_cv_search_opendir=$ac_res 18353fi 18354rm -f core conftest.err conftest.$ac_objext \ 18355 conftest$ac_exeext 18356 if ${ac_cv_search_opendir+:} false; then : 18357 break 18358fi 18359done 18360if ${ac_cv_search_opendir+:} false; then : 18361 18362else 18363 ac_cv_search_opendir=no 18364fi 18365rm conftest.$ac_ext 18366LIBS=$ac_func_search_save_LIBS 18367fi 18368{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5 18369$as_echo "$ac_cv_search_opendir" >&6; } 18370ac_res=$ac_cv_search_opendir 18371if test "$ac_res" != no; then : 18372 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 18373 18374fi 18375 18376fi 18377 18378{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18379$as_echo_n "checking for ANSI C header files... " >&6; } 18380if ${ac_cv_header_stdc+:} false; then : 18381 $as_echo_n "(cached) " >&6 18382else 18383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18384/* end confdefs.h. */ 18385#include <stdlib.h> 18386#include <stdarg.h> 18387#include <string.h> 18388#include <float.h> 18389 18390int 18391main () 18392{ 18393 18394 ; 18395 return 0; 18396} 18397_ACEOF 18398if ac_fn_cxx_try_compile "$LINENO"; then : 18399 ac_cv_header_stdc=yes 18400else 18401 ac_cv_header_stdc=no 18402fi 18403rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18404 18405if test $ac_cv_header_stdc = yes; then 18406 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 18407 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18408/* end confdefs.h. */ 18409#include <string.h> 18410 18411_ACEOF 18412if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18413 $EGREP "memchr" >/dev/null 2>&1; then : 18414 18415else 18416 ac_cv_header_stdc=no 18417fi 18418rm -f conftest* 18419 18420fi 18421 18422if test $ac_cv_header_stdc = yes; then 18423 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 18424 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18425/* end confdefs.h. */ 18426#include <stdlib.h> 18427 18428_ACEOF 18429if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18430 $EGREP "free" >/dev/null 2>&1; then : 18431 18432else 18433 ac_cv_header_stdc=no 18434fi 18435rm -f conftest* 18436 18437fi 18438 18439if test $ac_cv_header_stdc = yes; then 18440 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 18441 if test "$cross_compiling" = yes; then : 18442 : 18443else 18444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18445/* end confdefs.h. */ 18446#include <ctype.h> 18447#include <stdlib.h> 18448#if ((' ' & 0x0FF) == 0x020) 18449# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 18450# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 18451#else 18452# define ISLOWER(c) \ 18453 (('a' <= (c) && (c) <= 'i') \ 18454 || ('j' <= (c) && (c) <= 'r') \ 18455 || ('s' <= (c) && (c) <= 'z')) 18456# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 18457#endif 18458 18459#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 18460int 18461main () 18462{ 18463 int i; 18464 for (i = 0; i < 256; i++) 18465 if (XOR (islower (i), ISLOWER (i)) 18466 || toupper (i) != TOUPPER (i)) 18467 return 2; 18468 return 0; 18469} 18470_ACEOF 18471if ac_fn_cxx_try_run "$LINENO"; then : 18472 18473else 18474 ac_cv_header_stdc=no 18475fi 18476rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 18477 conftest.$ac_objext conftest.beam conftest.$ac_ext 18478fi 18479 18480fi 18481fi 18482{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 18483$as_echo "$ac_cv_header_stdc" >&6; } 18484if test $ac_cv_header_stdc = yes; then 18485 18486$as_echo "#define STDC_HEADERS 1" >>confdefs.h 18487 18488fi 18489 18490for ac_header in fcntl.h sys/time.h unistd.h 18491do : 18492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 18493ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 18494if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 18495 cat >>confdefs.h <<_ACEOF 18496#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 18497_ACEOF 18498 18499fi 18500 18501done 18502 18503 18504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5 18505$as_echo_n "checking for pow in -lm... " >&6; } 18506if ${ac_cv_lib_m_pow+:} false; then : 18507 $as_echo_n "(cached) " >&6 18508else 18509 ac_check_lib_save_LIBS=$LIBS 18510LIBS="-lm $LIBS" 18511cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18512/* end confdefs.h. */ 18513 18514/* Override any GCC internal prototype to avoid an error. 18515 Use char because int might match the return type of a GCC 18516 builtin and then its argument prototype would still apply. */ 18517#ifdef __cplusplus 18518extern "C" 18519#endif 18520char pow (); 18521int 18522main () 18523{ 18524return pow (); 18525 ; 18526 return 0; 18527} 18528_ACEOF 18529if ac_fn_cxx_try_link "$LINENO"; then : 18530 ac_cv_lib_m_pow=yes 18531else 18532 ac_cv_lib_m_pow=no 18533fi 18534rm -f core conftest.err conftest.$ac_objext \ 18535 conftest$ac_exeext conftest.$ac_ext 18536LIBS=$ac_check_lib_save_LIBS 18537fi 18538{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5 18539$as_echo "$ac_cv_lib_m_pow" >&6; } 18540if test "x$ac_cv_lib_m_pow" = xyes; then : 18541 cat >>confdefs.h <<_ACEOF 18542#define HAVE_LIBM 1 18543_ACEOF 18544 18545 LIBS="-lm $LIBS" 18546 18547fi 18548 18549 18550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 18551$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 18552if ${ac_cv_c_const+:} false; then : 18553 $as_echo_n "(cached) " >&6 18554else 18555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18556/* end confdefs.h. */ 18557 18558int 18559main () 18560{ 18561 18562#ifndef __cplusplus 18563 /* Ultrix mips cc rejects this sort of thing. */ 18564 typedef int charset[2]; 18565 const charset cs = { 0, 0 }; 18566 /* SunOS 4.1.1 cc rejects this. */ 18567 char const *const *pcpcc; 18568 char **ppc; 18569 /* NEC SVR4.0.2 mips cc rejects this. */ 18570 struct point {int x, y;}; 18571 static struct point const zero = {0,0}; 18572 /* AIX XL C 1.02.0.0 rejects this. 18573 It does not let you subtract one const X* pointer from another in 18574 an arm of an if-expression whose if-part is not a constant 18575 expression */ 18576 const char *g = "string"; 18577 pcpcc = &g + (g ? g-g : 0); 18578 /* HPUX 7.0 cc rejects these. */ 18579 ++pcpcc; 18580 ppc = (char**) pcpcc; 18581 pcpcc = (char const *const *) ppc; 18582 { /* SCO 3.2v4 cc rejects this sort of thing. */ 18583 char tx; 18584 char *t = &tx; 18585 char const *s = 0 ? (char *) 0 : (char const *) 0; 18586 18587 *t++ = 0; 18588 if (s) return 0; 18589 } 18590 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 18591 int x[] = {25, 17}; 18592 const int *foo = &x[0]; 18593 ++foo; 18594 } 18595 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 18596 typedef const int *iptr; 18597 iptr p = 0; 18598 ++p; 18599 } 18600 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 18601 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 18602 struct s { int j; const int *ap[3]; } bx; 18603 struct s *b = &bx; b->j = 5; 18604 } 18605 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 18606 const int foo = 10; 18607 if (!foo) return 0; 18608 } 18609 return !cs[0] && !zero.x; 18610#endif 18611 18612 ; 18613 return 0; 18614} 18615_ACEOF 18616if ac_fn_cxx_try_compile "$LINENO"; then : 18617 ac_cv_c_const=yes 18618else 18619 ac_cv_c_const=no 18620fi 18621rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18622fi 18623{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 18624$as_echo "$ac_cv_c_const" >&6; } 18625if test $ac_cv_c_const = no; then 18626 18627$as_echo "#define const /**/" >>confdefs.h 18628 18629fi 18630 18631{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5 18632$as_echo_n "checking for uid_t in sys/types.h... " >&6; } 18633if ${ac_cv_type_uid_t+:} false; then : 18634 $as_echo_n "(cached) " >&6 18635else 18636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18637/* end confdefs.h. */ 18638#include <sys/types.h> 18639 18640_ACEOF 18641if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 18642 $EGREP "uid_t" >/dev/null 2>&1; then : 18643 ac_cv_type_uid_t=yes 18644else 18645 ac_cv_type_uid_t=no 18646fi 18647rm -f conftest* 18648 18649fi 18650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5 18651$as_echo "$ac_cv_type_uid_t" >&6; } 18652if test $ac_cv_type_uid_t = no; then 18653 18654$as_echo "#define uid_t int" >>confdefs.h 18655 18656 18657$as_echo "#define gid_t int" >>confdefs.h 18658 18659fi 18660 18661ac_fn_cxx_check_type "$LINENO" "mode_t" "ac_cv_type_mode_t" "$ac_includes_default" 18662if test "x$ac_cv_type_mode_t" = xyes; then : 18663 18664else 18665 18666cat >>confdefs.h <<_ACEOF 18667#define mode_t int 18668_ACEOF 18669 18670fi 18671 18672ac_fn_cxx_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 18673if test "x$ac_cv_type_size_t" = xyes; then : 18674 18675else 18676 18677cat >>confdefs.h <<_ACEOF 18678#define size_t unsigned int 18679_ACEOF 18680 18681fi 18682 18683{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5 18684$as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; } 18685if ${ac_cv_header_time+:} false; then : 18686 $as_echo_n "(cached) " >&6 18687else 18688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18689/* end confdefs.h. */ 18690#include <sys/types.h> 18691#include <sys/time.h> 18692#include <time.h> 18693 18694int 18695main () 18696{ 18697if ((struct tm *) 0) 18698return 0; 18699 ; 18700 return 0; 18701} 18702_ACEOF 18703if ac_fn_cxx_try_compile "$LINENO"; then : 18704 ac_cv_header_time=yes 18705else 18706 ac_cv_header_time=no 18707fi 18708rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18709fi 18710{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5 18711$as_echo "$ac_cv_header_time" >&6; } 18712if test $ac_cv_header_time = yes; then 18713 18714$as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h 18715 18716fi 18717 18718{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5 18719$as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; } 18720if ${ac_cv_struct_tm+:} false; then : 18721 $as_echo_n "(cached) " >&6 18722else 18723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18724/* end confdefs.h. */ 18725#include <sys/types.h> 18726#include <time.h> 18727 18728int 18729main () 18730{ 18731struct tm tm; 18732 int *p = &tm.tm_sec; 18733 return !p; 18734 ; 18735 return 0; 18736} 18737_ACEOF 18738if ac_fn_cxx_try_compile "$LINENO"; then : 18739 ac_cv_struct_tm=time.h 18740else 18741 ac_cv_struct_tm=sys/time.h 18742fi 18743rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18744fi 18745{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5 18746$as_echo "$ac_cv_struct_tm" >&6; } 18747if test $ac_cv_struct_tm = sys/time.h; then 18748 18749$as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h 18750 18751fi 18752 18753 18754ac_fn_cxx_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default" 18755if test "x$ac_cv_type_off_t" = xyes; then : 18756 18757else 18758 18759cat >>confdefs.h <<_ACEOF 18760#define off_t long int 18761_ACEOF 18762 18763fi 18764 18765# The cast to long int works around a bug in the HP C Compiler 18766# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18767# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18768# This bug is HP SR number 8606223364. 18769{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of off_t" >&5 18770$as_echo_n "checking size of off_t... " >&6; } 18771if ${ac_cv_sizeof_off_t+:} false; then : 18772 $as_echo_n "(cached) " >&6 18773else 18774 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (off_t))" "ac_cv_sizeof_off_t" "$ac_includes_default"; then : 18775 18776else 18777 if test "$ac_cv_type_off_t" = yes; then 18778 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18779$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18780as_fn_error 77 "cannot compute sizeof (off_t) 18781See \`config.log' for more details" "$LINENO" 5; } 18782 else 18783 ac_cv_sizeof_off_t=0 18784 fi 18785fi 18786 18787fi 18788{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_off_t" >&5 18789$as_echo "$ac_cv_sizeof_off_t" >&6; } 18790 18791 18792 18793cat >>confdefs.h <<_ACEOF 18794#define SIZEOF_OFF_T $ac_cv_sizeof_off_t 18795_ACEOF 18796 18797 18798 18799ac_fn_cxx_check_type "$LINENO" "loff_t" "ac_cv_type_loff_t" "$ac_includes_default" 18800if test "x$ac_cv_type_loff_t" = xyes; then : 18801 # The cast to long int works around a bug in the HP C Compiler 18802# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18803# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18804# This bug is HP SR number 8606223364. 18805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of loff_t" >&5 18806$as_echo_n "checking size of loff_t... " >&6; } 18807if ${ac_cv_sizeof_loff_t+:} false; then : 18808 $as_echo_n "(cached) " >&6 18809else 18810 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (loff_t))" "ac_cv_sizeof_loff_t" "$ac_includes_default"; then : 18811 18812else 18813 if test "$ac_cv_type_loff_t" = yes; then 18814 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18815$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18816as_fn_error 77 "cannot compute sizeof (loff_t) 18817See \`config.log' for more details" "$LINENO" 5; } 18818 else 18819 ac_cv_sizeof_loff_t=0 18820 fi 18821fi 18822 18823fi 18824{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_loff_t" >&5 18825$as_echo "$ac_cv_sizeof_loff_t" >&6; } 18826 18827 18828 18829cat >>confdefs.h <<_ACEOF 18830#define SIZEOF_LOFF_T $ac_cv_sizeof_loff_t 18831_ACEOF 18832 18833 18834else 18835 use_off_t=1 18836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18837/* end confdefs.h. */ 18838 18839#if ( SIZEOF_OFF_T == 8 ) 18840# include <unistd.h> 18841#else 18842# error 18843#endif 18844 18845int 18846main () 18847{ 18848int i 18849 ; 18850 return 0; 18851} 18852_ACEOF 18853if ac_fn_cxx_try_compile "$LINENO"; then : 18854 18855else 18856 ac_fn_cxx_check_type "$LINENO" "long long" "ac_cv_type_long_long" "$ac_includes_default" 18857if test "x$ac_cv_type_long_long" = xyes; then : 18858 # The cast to long int works around a bug in the HP C Compiler 18859# version HP92453-01 B.11.11.23709.GP, which incorrectly rejects 18860# declarations like `int a3[[(sizeof (unsigned char)) >= 0]];'. 18861# This bug is HP SR number 8606223364. 18862{ $as_echo "$as_me:${as_lineno-$LINENO}: checking size of long long" >&5 18863$as_echo_n "checking size of long long... " >&6; } 18864if ${ac_cv_sizeof_long_long+:} false; then : 18865 $as_echo_n "(cached) " >&6 18866else 18867 if ac_fn_cxx_compute_int "$LINENO" "(long int) (sizeof (long long))" "ac_cv_sizeof_long_long" "$ac_includes_default"; then : 18868 18869else 18870 if test "$ac_cv_type_long_long" = yes; then 18871 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 18872$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 18873as_fn_error 77 "cannot compute sizeof (long long) 18874See \`config.log' for more details" "$LINENO" 5; } 18875 else 18876 ac_cv_sizeof_long_long=0 18877 fi 18878fi 18879 18880fi 18881{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sizeof_long_long" >&5 18882$as_echo "$ac_cv_sizeof_long_long" >&6; } 18883 18884 18885 18886cat >>confdefs.h <<_ACEOF 18887#define SIZEOF_LONG_LONG $ac_cv_sizeof_long_long 18888_ACEOF 18889 18890 18891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18892/* end confdefs.h. */ 18893 18894#if ( SIZEOF_LONG_LONG == 8 ) 18895# include <unistd.h> 18896#else 18897# error 18898#endif 18899 18900int 18901main () 18902{ 18903int i 18904 ; 18905 return 0; 18906} 18907_ACEOF 18908if ac_fn_cxx_try_compile "$LINENO"; then : 18909 use_off_t=0 18910 18911$as_echo "#define loff_t long long" >>confdefs.h 18912 18913 $as_echo "#define SIZEOF_LOFF_T SIZEOF_LONG_LONG" >>confdefs.h 18914 18915 18916fi 18917rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18918 18919fi 18920 18921 18922fi 18923rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18924 if test "$use_off_t" = "1"; then 18925 18926$as_echo "#define loff_t off_t" >>confdefs.h 18927 18928 $as_echo "#define SIZEOF_LOFF_T SIZEOF_OFF_T" >>confdefs.h 18929 18930 fi 18931 18932fi 18933 18934 18935 18936support_lfs=no 18937if test "$enable_largefile" != no; then 18938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we can support large files" >&5 18939$as_echo_n "checking whether we can support large files... " >&6; } 18940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18941/* end confdefs.h. */ 18942 18943#if ( SIZEOF_LOFF_T == 8 ) 18944# include <unistd.h> 18945#else 18946# error 18947#endif 18948int 18949main () 18950{ 18951int i 18952 ; 18953 return 0; 18954} 18955_ACEOF 18956if ac_fn_cxx_try_compile "$LINENO"; then : 18957 can_lfs=yes 18958else 18959 can_lfs=no 18960fi 18961rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18962 18963 if test "$can_lfs" = "yes"; then 18964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18965/* end confdefs.h. */ 18966 18967#if ( SIZEOF_OFF_T == 8 ) 18968# include <unistd.h> 18969#else 18970# error 18971#endif 18972int 18973main () 18974{ 18975int i 18976 ; 18977 return 0; 18978} 18979_ACEOF 18980if ac_fn_cxx_try_compile "$LINENO"; then : 18981 native_lfs=yes 18982else 18983 native_lfs=no 18984fi 18985rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 18986 18987 if test "$native_lfs" = "yes"; then 18988 support_lfs=yes 18989 elif test "$ac_cv_have_avfs" != "yes"; then 18990 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18991/* end confdefs.h. */ 18992 18993#define _LARGEFILE64_SOURCE 1 18994#define _LARGEFILE_SOURCE 1 18995#include <unistd.h> 18996#ifndef _LFS_LARGEFILE 18997# error 18998#endif 18999#ifndef _LFS64_LARGEFILE 19000# error 19001#endif 19002#ifndef _LFS64_STDIO 19003# error 19004#endif 19005#include <sys/types.h> 19006#include <sys/stat.h> 19007#include <fcntl.h> 19008#include <dirent.h> 19009#include <sys/statvfs.h> 19010 19011int 19012main () 19013{ 19014struct stat64 buf1; 19015 struct dirent64 buf2; 19016 struct statvfs64 buf3; 19017 19018 stat64( "", &buf1 ); 19019 lstat64( "", &buf1 ); 19020 open64( "", 0); 19021 readdir64( NULL ); 19022 statvfs64( "", &buf3 ); 19023 19024 ; 19025 return 0; 19026} 19027_ACEOF 19028if ac_fn_cxx_try_compile "$LINENO"; then : 19029 have_explicit_lfs=yes 19030else 19031 have_explicit_lfs=no 19032fi 19033rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19034 19035 if test "$have_explicit_lfs" = "yes"; then 19036 19037$as_echo "#define HAVE_EXPLICIT_LFS 1" >>confdefs.h 19038 19039 support_lfs=yes 19040 fi 19041 fi 19042 fi 19043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $support_lfs" >&5 19044$as_echo "$support_lfs" >&6; } 19045fi 19046 19047for ac_func in strverscmp 19048do : 19049 ac_fn_cxx_check_func "$LINENO" "strverscmp" "ac_cv_func_strverscmp" 19050if test "x$ac_cv_func_strverscmp" = xyes; then : 19051 cat >>confdefs.h <<_ACEOF 19052#define HAVE_STRVERSCMP 1 19053_ACEOF 19054 19055fi 19056done 19057 19058for ac_func in strcasecmp 19059do : 19060 ac_fn_cxx_check_func "$LINENO" "strcasecmp" "ac_cv_func_strcasecmp" 19061if test "x$ac_cv_func_strcasecmp" = xyes; then : 19062 cat >>confdefs.h <<_ACEOF 19063#define HAVE_STRCASECMP 1 19064_ACEOF 19065 19066fi 19067done 19068 19069 19070for ac_func in lockf 19071do : 19072 ac_fn_cxx_check_func "$LINENO" "lockf" "ac_cv_func_lockf" 19073if test "x$ac_cv_func_lockf" = xyes; then : 19074 cat >>confdefs.h <<_ACEOF 19075#define HAVE_LOCKF 1 19076_ACEOF 19077 19078fi 19079done 19080 19081 19082{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working POSIX fnmatch" >&5 19083$as_echo_n "checking for working POSIX fnmatch... " >&6; } 19084if ${ac_cv_func_fnmatch_works+:} false; then : 19085 $as_echo_n "(cached) " >&6 19086else 19087 # Some versions of Solaris, SCO, and the GNU C Library 19088 # have a broken or incompatible fnmatch. 19089 # So we run a test program. If we are cross-compiling, take no chance. 19090 # Thanks to John Oleynick, Franc,ois Pinard, and Paul Eggert for this test. 19091 if test "$cross_compiling" = yes; then : 19092 ac_cv_func_fnmatch_works=cross 19093else 19094 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19095/* end confdefs.h. */ 19096#include <fnmatch.h> 19097# define y(a, b, c) (fnmatch (a, b, c) == 0) 19098# define n(a, b, c) (fnmatch (a, b, c) == FNM_NOMATCH) 19099 19100int 19101main () 19102{ 19103return 19104 (!(y ("a*", "abc", 0) 19105 && n ("d*/*1", "d/s/1", FNM_PATHNAME) 19106 && y ("a\\\\bc", "abc", 0) 19107 && n ("a\\\\bc", "abc", FNM_NOESCAPE) 19108 && y ("*x", ".x", 0) 19109 && n ("*x", ".x", FNM_PERIOD) 19110 && 1)); 19111 ; 19112 return 0; 19113} 19114_ACEOF 19115if ac_fn_cxx_try_run "$LINENO"; then : 19116 ac_cv_func_fnmatch_works=yes 19117else 19118 ac_cv_func_fnmatch_works=no 19119fi 19120rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19121 conftest.$ac_objext conftest.beam conftest.$ac_ext 19122fi 19123 19124fi 19125{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fnmatch_works" >&5 19126$as_echo "$ac_cv_func_fnmatch_works" >&6; } 19127if test $ac_cv_func_fnmatch_works = yes; then : 19128 19129$as_echo "#define HAVE_FNMATCH 1" >>confdefs.h 19130 19131fi 19132 19133 19134 19135 19136 19137 19138 for ac_header in $ac_header_list 19139do : 19140 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19141ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 19142" 19143if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19144 cat >>confdefs.h <<_ACEOF 19145#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19146_ACEOF 19147 19148fi 19149 19150done 19151 19152 19153 19154 19155 19156 19157 19158for ac_func in listmntent getmntinfo 19159do : 19160 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19161ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 19162if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19163 cat >>confdefs.h <<_ACEOF 19164#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19165_ACEOF 19166 19167fi 19168done 19169 19170 19171 19172# We must include grp.h before ucred.h on OSF V4.0, since ucred.h uses 19173# NGROUPS (as the array dimension for a struct member) without a definition. 19174for ac_header in sys/ucred.h 19175do : 19176 ac_fn_cxx_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "#include <grp.h> 19177" 19178if test "x$ac_cv_header_sys_ucred_h" = xyes; then : 19179 cat >>confdefs.h <<_ACEOF 19180#define HAVE_SYS_UCRED_H 1 19181_ACEOF 19182 19183fi 19184 19185done 19186 19187 19188for ac_header in sys/mount.h 19189do : 19190 ac_fn_cxx_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default 19191 #if HAVE_SYS_PARAM_H 19192 #include <sys/param.h> 19193 #endif 19194" 19195if test "x$ac_cv_header_sys_mount_h" = xyes; then : 19196 cat >>confdefs.h <<_ACEOF 19197#define HAVE_SYS_MOUNT_H 1 19198_ACEOF 19199 19200fi 19201 19202done 19203 19204 19205for ac_header in mntent.h sys/fs_types.h 19206do : 19207 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19208ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19209if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19210 cat >>confdefs.h <<_ACEOF 19211#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19212_ACEOF 19213 19214fi 19215 19216done 19217 19218 getfsstat_includes="\ 19219$ac_includes_default 19220#if HAVE_SYS_PARAM_H 19221# include <sys/param.h> /* needed by powerpc-apple-darwin1.3.7 */ 19222#endif 19223#if HAVE_SYS_UCRED_H 19224# include <grp.h> /* needed for definition of NGROUPS */ 19225# include <sys/ucred.h> /* needed by powerpc-apple-darwin1.3.7 */ 19226#endif 19227#if HAVE_SYS_MOUNT_H 19228# include <sys/mount.h> 19229#endif 19230#if HAVE_SYS_FS_TYPES_H 19231# include <sys/fs_types.h> /* needed by powerpc-apple-darwin1.3.7 */ 19232#endif 19233" 19234ac_fn_cxx_check_member "$LINENO" "struct fsstat" "f_fstypename" "ac_cv_member_struct_fsstat_f_fstypename" "$getfsstat_includes 19235" 19236if test "x$ac_cv_member_struct_fsstat_f_fstypename" = xyes; then : 19237 19238cat >>confdefs.h <<_ACEOF 19239#define HAVE_STRUCT_FSSTAT_F_FSTYPENAME 1 19240_ACEOF 19241 19242 19243fi 19244 19245 19246# Determine how to get the list of mounted file systems. 19247ac_list_mounted_fs= 19248 19249# If the getmntent function is available but not in the standard library, 19250# make sure LIBS contains the appropriate -l option. 19251# getmntent is in the standard C library on UNICOS, in -lsun on Irix 4, 19252# -lseq on Dynix/PTX, -lgen on Unixware. 19253{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getmntent" >&5 19254$as_echo_n "checking for library containing getmntent... " >&6; } 19255if ${ac_cv_search_getmntent+:} false; then : 19256 $as_echo_n "(cached) " >&6 19257else 19258 ac_func_search_save_LIBS=$LIBS 19259cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19260/* end confdefs.h. */ 19261 19262/* Override any GCC internal prototype to avoid an error. 19263 Use char because int might match the return type of a GCC 19264 builtin and then its argument prototype would still apply. */ 19265#ifdef __cplusplus 19266extern "C" 19267#endif 19268char getmntent (); 19269int 19270main () 19271{ 19272return getmntent (); 19273 ; 19274 return 0; 19275} 19276_ACEOF 19277for ac_lib in '' sun seq gen; do 19278 if test -z "$ac_lib"; then 19279 ac_res="none required" 19280 else 19281 ac_res=-l$ac_lib 19282 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 19283 fi 19284 if ac_fn_cxx_try_link "$LINENO"; then : 19285 ac_cv_search_getmntent=$ac_res 19286fi 19287rm -f core conftest.err conftest.$ac_objext \ 19288 conftest$ac_exeext 19289 if ${ac_cv_search_getmntent+:} false; then : 19290 break 19291fi 19292done 19293if ${ac_cv_search_getmntent+:} false; then : 19294 19295else 19296 ac_cv_search_getmntent=no 19297fi 19298rm conftest.$ac_ext 19299LIBS=$ac_func_search_save_LIBS 19300fi 19301{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getmntent" >&5 19302$as_echo "$ac_cv_search_getmntent" >&6; } 19303ac_res=$ac_cv_search_getmntent 19304if test "$ac_res" != no; then : 19305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 19306 19307fi 19308 19309for ac_func in getmntent 19310do : 19311 ac_fn_cxx_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent" 19312if test "x$ac_cv_func_getmntent" = xyes; then : 19313 cat >>confdefs.h <<_ACEOF 19314#define HAVE_GETMNTENT 1 19315_ACEOF 19316 19317fi 19318done 19319 19320 19321 19322# This test must precede the ones for getmntent because Unicos-9 is 19323# reported to have the getmntent function, but its support is incompatible 19324# with other getmntent implementations. 19325 19326# NOTE: Normally, I wouldn't use a check for system type as I've done for 19327# `CRAY' below since that goes against the whole autoconf philosophy. But 19328# I think there is too great a chance that some non-Cray system has a 19329# function named listmntent to risk the false positive. 19330 19331if test -z "$ac_list_mounted_fs"; then 19332 # Cray UNICOS 9 19333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for listmntent of Cray/Unicos-9" >&5 19334$as_echo_n "checking for listmntent of Cray/Unicos-9... " >&6; } 19335 if ${fu_cv_sys_mounted_cray_listmntent+:} false; then : 19336 $as_echo_n "(cached) " >&6 19337else 19338 fu_cv_sys_mounted_cray_listmntent=no 19339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19340/* end confdefs.h. */ 19341#ifdef _CRAY 19342yes 19343#endif 19344 19345_ACEOF 19346if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19347 $EGREP "yes" >/dev/null 2>&1; then : 19348 test $ac_cv_func_listmntent = yes \ 19349 && fu_cv_sys_mounted_cray_listmntent=yes 19350 19351fi 19352rm -f conftest* 19353 19354 19355 19356fi 19357 19358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_cray_listmntent" >&5 19359$as_echo "$fu_cv_sys_mounted_cray_listmntent" >&6; } 19360 if test $fu_cv_sys_mounted_cray_listmntent = yes; then 19361 ac_list_mounted_fs=found 19362 19363$as_echo "#define MOUNTED_LISTMNTENT 1" >>confdefs.h 19364 19365 fi 19366fi 19367 19368if test -z "$ac_list_mounted_fs"; then 19369 # AIX. 19370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mntctl function and struct vmount" >&5 19371$as_echo_n "checking for mntctl function and struct vmount... " >&6; } 19372 if ${fu_cv_sys_mounted_vmount+:} false; then : 19373 $as_echo_n "(cached) " >&6 19374else 19375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19376/* end confdefs.h. */ 19377#include <fshelp.h> 19378_ACEOF 19379if ac_fn_cxx_try_cpp "$LINENO"; then : 19380 fu_cv_sys_mounted_vmount=yes 19381else 19382 fu_cv_sys_mounted_vmount=no 19383fi 19384rm -f conftest.err conftest.i conftest.$ac_ext 19385fi 19386 19387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_vmount" >&5 19388$as_echo "$fu_cv_sys_mounted_vmount" >&6; } 19389 if test $fu_cv_sys_mounted_vmount = yes; then 19390 ac_list_mounted_fs=found 19391 19392$as_echo "#define MOUNTED_VMOUNT 1" >>confdefs.h 19393 19394 fi 19395fi 19396 19397if test $ac_cv_func_getmntent = yes; then 19398 19399 # This system has the getmntent function. 19400 # Determine whether it's the one-argument variant or the two-argument one. 19401 19402 if test -z "$ac_list_mounted_fs"; then 19403 # 4.3BSD, SunOS, HP-UX, Dynix, Irix 19404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for one-argument getmntent function" >&5 19405$as_echo_n "checking for one-argument getmntent function... " >&6; } 19406 if ${fu_cv_sys_mounted_getmntent1+:} false; then : 19407 $as_echo_n "(cached) " >&6 19408else 19409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19410/* end confdefs.h. */ 19411 19412/* SunOS 4.1.x /usr/include/mntent.h needs this for FILE */ 19413#include <stdio.h> 19414 19415#include <mntent.h> 19416#if !defined MOUNTED 19417# if defined _PATH_MOUNTED /* GNU libc */ 19418# define MOUNTED _PATH_MOUNTED 19419# endif 19420# if defined MNT_MNTTAB /* HP-UX. */ 19421# define MOUNTED MNT_MNTTAB 19422# endif 19423# if defined MNTTABNAME /* Dynix. */ 19424# define MOUNTED MNTTABNAME 19425# endif 19426#endif 19427 19428int 19429main () 19430{ 19431 struct mntent *mnt = 0; char *table = MOUNTED; 19432 if (sizeof mnt && sizeof table) return 0; 19433 ; 19434 return 0; 19435} 19436_ACEOF 19437if ac_fn_cxx_try_compile "$LINENO"; then : 19438 fu_cv_sys_mounted_getmntent1=yes 19439else 19440 fu_cv_sys_mounted_getmntent1=no 19441fi 19442rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19443fi 19444 19445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent1" >&5 19446$as_echo "$fu_cv_sys_mounted_getmntent1" >&6; } 19447 if test $fu_cv_sys_mounted_getmntent1 = yes; then 19448 ac_list_mounted_fs=found 19449 19450$as_echo "#define MOUNTED_GETMNTENT1 1" >>confdefs.h 19451 19452 fi 19453 fi 19454 19455 if test -z "$ac_list_mounted_fs"; then 19456 # SVR4 19457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for two-argument getmntent function" >&5 19458$as_echo_n "checking for two-argument getmntent function... " >&6; } 19459 if ${fu_cv_sys_mounted_getmntent2+:} false; then : 19460 $as_echo_n "(cached) " >&6 19461else 19462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19463/* end confdefs.h. */ 19464#include <sys/mnttab.h> 19465 19466_ACEOF 19467if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19468 $EGREP "getmntent" >/dev/null 2>&1; then : 19469 fu_cv_sys_mounted_getmntent2=yes 19470else 19471 fu_cv_sys_mounted_getmntent2=no 19472fi 19473rm -f conftest* 19474 19475fi 19476 19477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntent2" >&5 19478$as_echo "$fu_cv_sys_mounted_getmntent2" >&6; } 19479 if test $fu_cv_sys_mounted_getmntent2 = yes; then 19480 ac_list_mounted_fs=found 19481 19482$as_echo "#define MOUNTED_GETMNTENT2 1" >>confdefs.h 19483 19484 for ac_func in hasmntopt 19485do : 19486 ac_fn_cxx_check_func "$LINENO" "hasmntopt" "ac_cv_func_hasmntopt" 19487if test "x$ac_cv_func_hasmntopt" = xyes; then : 19488 cat >>confdefs.h <<_ACEOF 19489#define HAVE_HASMNTOPT 1 19490_ACEOF 19491 19492fi 19493done 19494 19495 fi 19496 fi 19497 19498fi 19499 19500if test -z "$ac_list_mounted_fs"; then 19501 # DEC Alpha running OSF/1, and Apple Darwin 1.3. 19502 # powerpc-apple-darwin1.3.7 needs sys/param.h sys/ucred.h sys/fs_types.h 19503 19504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getfsstat function" >&5 19505$as_echo_n "checking for getfsstat function... " >&6; } 19506 if ${fu_cv_sys_mounted_getfsstat+:} false; then : 19507 $as_echo_n "(cached) " >&6 19508else 19509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19510/* end confdefs.h. */ 19511 19512#include <sys/types.h> 19513#if HAVE_STRUCT_FSSTAT_F_FSTYPENAME 19514# define FS_TYPE(Ent) ((Ent).f_fstypename) 19515#else 19516# define FS_TYPE(Ent) mnt_names[(Ent).f_type] 19517#endif 19518$getfsstat_includes 19519 19520int 19521main () 19522{ 19523struct statfs *stats; 19524 int numsys = getfsstat ((struct statfs *)0, 0L, MNT_WAIT); 19525 char *t = FS_TYPE (*stats); 19526 ; 19527 return 0; 19528} 19529_ACEOF 19530if ac_fn_cxx_try_link "$LINENO"; then : 19531 fu_cv_sys_mounted_getfsstat=yes 19532else 19533 fu_cv_sys_mounted_getfsstat=no 19534fi 19535rm -f core conftest.err conftest.$ac_objext \ 19536 conftest$ac_exeext conftest.$ac_ext 19537fi 19538 19539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getfsstat" >&5 19540$as_echo "$fu_cv_sys_mounted_getfsstat" >&6; } 19541 if test $fu_cv_sys_mounted_getfsstat = yes; then 19542 ac_list_mounted_fs=found 19543 19544$as_echo "#define MOUNTED_GETFSSTAT 1" >>confdefs.h 19545 19546 fi 19547fi 19548 19549if test -z "$ac_list_mounted_fs"; then 19550 # SVR3 19551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FIXME existence of three headers" >&5 19552$as_echo_n "checking for FIXME existence of three headers... " >&6; } 19553 if ${fu_cv_sys_mounted_fread_fstyp+:} false; then : 19554 $as_echo_n "(cached) " >&6 19555else 19556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19557/* end confdefs.h. */ 19558 19559#include <sys/statfs.h> 19560#include <sys/fstyp.h> 19561#include <mnttab.h> 19562_ACEOF 19563if ac_fn_cxx_try_cpp "$LINENO"; then : 19564 fu_cv_sys_mounted_fread_fstyp=yes 19565else 19566 fu_cv_sys_mounted_fread_fstyp=no 19567fi 19568rm -f conftest.err conftest.i conftest.$ac_ext 19569fi 19570 19571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread_fstyp" >&5 19572$as_echo "$fu_cv_sys_mounted_fread_fstyp" >&6; } 19573 if test $fu_cv_sys_mounted_fread_fstyp = yes; then 19574 ac_list_mounted_fs=found 19575 19576$as_echo "#define MOUNTED_FREAD_FSTYP 1" >>confdefs.h 19577 19578 fi 19579fi 19580 19581if test -z "$ac_list_mounted_fs"; then 19582 # 4.4BSD and DEC OSF/1. 19583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntinfo function" >&5 19584$as_echo_n "checking for getmntinfo function... " >&6; } 19585 if ${fu_cv_sys_mounted_getmntinfo+:} false; then : 19586 $as_echo_n "(cached) " >&6 19587else 19588 19589 test "$ac_cv_func_getmntinfo" = yes \ 19590 && fu_cv_sys_mounted_getmntinfo=yes \ 19591 || fu_cv_sys_mounted_getmntinfo=no 19592 19593fi 19594 19595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo" >&5 19596$as_echo "$fu_cv_sys_mounted_getmntinfo" >&6; } 19597 if test $fu_cv_sys_mounted_getmntinfo = yes; then 19598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getmntinfo returns statvfs structures" >&5 19599$as_echo_n "checking whether getmntinfo returns statvfs structures... " >&6; } 19600 if ${fu_cv_sys_mounted_getmntinfo2+:} false; then : 19601 $as_echo_n "(cached) " >&6 19602else 19603 19604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19605/* end confdefs.h. */ 19606 19607#if HAVE_SYS_PARAM_H 19608# include <sys/param.h> 19609#endif 19610#include <sys/types.h> 19611#if HAVE_SYS_MOUNT_H 19612# include <sys/mount.h> 19613#endif 19614#if HAVE_SYS_STATVFS_H 19615# include <sys/statvfs.h> 19616#endif 19617extern int getmntinfo (struct statfs **, int); 19618 19619int 19620main () 19621{ 19622 19623 ; 19624 return 0; 19625} 19626_ACEOF 19627if ac_fn_cxx_try_compile "$LINENO"; then : 19628 fu_cv_sys_mounted_getmntinfo2=no 19629else 19630 fu_cv_sys_mounted_getmntinfo2=yes 19631fi 19632rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19633 19634fi 19635 19636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmntinfo2" >&5 19637$as_echo "$fu_cv_sys_mounted_getmntinfo2" >&6; } 19638 if test $fu_cv_sys_mounted_getmntinfo2 = no; then 19639 ac_list_mounted_fs=found 19640 19641$as_echo "#define MOUNTED_GETMNTINFO 1" >>confdefs.h 19642 19643 else 19644 ac_list_mounted_fs=found 19645 19646$as_echo "#define MOUNTED_GETMNTINFO2 1" >>confdefs.h 19647 19648 fi 19649 fi 19650fi 19651 19652if test -z "$ac_list_mounted_fs"; then 19653 # Ultrix 19654 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmnt function" >&5 19655$as_echo_n "checking for getmnt function... " >&6; } 19656 if ${fu_cv_sys_mounted_getmnt+:} false; then : 19657 $as_echo_n "(cached) " >&6 19658else 19659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19660/* end confdefs.h. */ 19661 19662#include <sys/fs_types.h> 19663#include <sys/mount.h> 19664_ACEOF 19665if ac_fn_cxx_try_cpp "$LINENO"; then : 19666 fu_cv_sys_mounted_getmnt=yes 19667else 19668 fu_cv_sys_mounted_getmnt=no 19669fi 19670rm -f conftest.err conftest.i conftest.$ac_ext 19671fi 19672 19673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_getmnt" >&5 19674$as_echo "$fu_cv_sys_mounted_getmnt" >&6; } 19675 if test $fu_cv_sys_mounted_getmnt = yes; then 19676 ac_list_mounted_fs=found 19677 19678$as_echo "#define MOUNTED_GETMNT 1" >>confdefs.h 19679 19680 fi 19681fi 19682 19683if test -z "$ac_list_mounted_fs"; then 19684 # BeOS 19685 for ac_func in next_dev fs_stat_dev 19686do : 19687 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19688ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 19689if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19690 cat >>confdefs.h <<_ACEOF 19691#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19692_ACEOF 19693 19694fi 19695done 19696 19697 for ac_header in fs_info.h 19698do : 19699 ac_fn_cxx_check_header_mongrel "$LINENO" "fs_info.h" "ac_cv_header_fs_info_h" "$ac_includes_default" 19700if test "x$ac_cv_header_fs_info_h" = xyes; then : 19701 cat >>confdefs.h <<_ACEOF 19702#define HAVE_FS_INFO_H 1 19703_ACEOF 19704 19705fi 19706 19707done 19708 19709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BEOS mounted file system support functions" >&5 19710$as_echo_n "checking for BEOS mounted file system support functions... " >&6; } 19711 if test $ac_cv_header_fs_info_h = yes \ 19712 && test $ac_cv_func_next_dev = yes \ 19713 && test $ac_cv_func_fs_stat_dev = yes; then 19714 fu_result=yes 19715 else 19716 fu_result=no 19717 fi 19718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_result" >&5 19719$as_echo "$fu_result" >&6; } 19720 if test $fu_result = yes; then 19721 ac_list_mounted_fs=found 19722 19723$as_echo "#define MOUNTED_FS_STAT_DEV 1" >>confdefs.h 19724 19725 fi 19726fi 19727 19728if test -z "$ac_list_mounted_fs"; then 19729 # SVR2 19730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is possible to resort to fread on /etc/mnttab" >&5 19731$as_echo_n "checking whether it is possible to resort to fread on /etc/mnttab... " >&6; } 19732 if ${fu_cv_sys_mounted_fread+:} false; then : 19733 $as_echo_n "(cached) " >&6 19734else 19735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19736/* end confdefs.h. */ 19737#include <mnttab.h> 19738_ACEOF 19739if ac_fn_cxx_try_cpp "$LINENO"; then : 19740 fu_cv_sys_mounted_fread=yes 19741else 19742 fu_cv_sys_mounted_fread=no 19743fi 19744rm -f conftest.err conftest.i conftest.$ac_ext 19745fi 19746 19747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fu_cv_sys_mounted_fread" >&5 19748$as_echo "$fu_cv_sys_mounted_fread" >&6; } 19749 if test $fu_cv_sys_mounted_fread = yes; then 19750 ac_list_mounted_fs=found 19751 19752$as_echo "#define MOUNTED_FREAD 1" >>confdefs.h 19753 19754 fi 19755fi 19756 19757 19758if test $ac_list_mounted_fs = found; then : 19759 gl_cv_list_mounted_fs=yes 19760else 19761 gl_cv_list_mounted_fs=no 19762fi 19763 19764 19765 if test $gl_cv_list_mounted_fs = yes; then 19766 case " $LIBOBJS " in 19767 *" mountlist.$ac_objext "* ) ;; 19768 *) LIBOBJS="$LIBOBJS mountlist.$ac_objext" 19769 ;; 19770esac 19771 19772 19773 for ac_header in sys/mntent.h 19774do : 19775 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mntent.h" "ac_cv_header_sys_mntent_h" "$ac_includes_default" 19776if test "x$ac_cv_header_sys_mntent_h" = xyes; then : 19777 cat >>confdefs.h <<_ACEOF 19778#define HAVE_SYS_MNTENT_H 1 19779_ACEOF 19780 19781fi 19782 19783done 19784 19785 19786 ac_fn_cxx_check_member "$LINENO" "struct statfs" "f_fstypename" "ac_cv_member_struct_statfs_f_fstypename" " 19787 #include <sys/types.h> 19788 #include <sys/param.h> 19789 #include <sys/mount.h> 19790 19791" 19792if test "x$ac_cv_member_struct_statfs_f_fstypename" = xyes; then : 19793 19794cat >>confdefs.h <<_ACEOF 19795#define HAVE_STRUCT_STATFS_F_FSTYPENAME 1 19796_ACEOF 19797 19798 19799fi 19800 19801 19802 19803 fi 19804 19805 19806{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether GNU fnmatch is available" >&5 19807$as_echo_n "checking whether GNU fnmatch is available... " >&6; } 19808cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19809/* end confdefs.h. */ 19810#include <fnmatch.h> 19811int 19812main () 19813{ 19814fnmatch("","",FNM_CASEFOLD); 19815 ; 19816 return 0; 19817} 19818_ACEOF 19819if ac_fn_cxx_try_compile "$LINENO"; then : 19820 $as_echo "#define HAVE_GNU_FNMATCH 1" >>confdefs.h 19821 19822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 19823$as_echo "yes" >&6; } 19824else 19825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 19826$as_echo "no" >&6; } 19827fi 19828rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; 19829 19830for ac_func in strftime 19831do : 19832 ac_fn_cxx_check_func "$LINENO" "strftime" "ac_cv_func_strftime" 19833if test "x$ac_cv_func_strftime" = xyes; then : 19834 cat >>confdefs.h <<_ACEOF 19835#define HAVE_STRFTIME 1 19836_ACEOF 19837 19838else 19839 # strftime is in -lintl on SCO UNIX. 19840{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for strftime in -lintl" >&5 19841$as_echo_n "checking for strftime in -lintl... " >&6; } 19842if ${ac_cv_lib_intl_strftime+:} false; then : 19843 $as_echo_n "(cached) " >&6 19844else 19845 ac_check_lib_save_LIBS=$LIBS 19846LIBS="-lintl $LIBS" 19847cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19848/* end confdefs.h. */ 19849 19850/* Override any GCC internal prototype to avoid an error. 19851 Use char because int might match the return type of a GCC 19852 builtin and then its argument prototype would still apply. */ 19853#ifdef __cplusplus 19854extern "C" 19855#endif 19856char strftime (); 19857int 19858main () 19859{ 19860return strftime (); 19861 ; 19862 return 0; 19863} 19864_ACEOF 19865if ac_fn_cxx_try_link "$LINENO"; then : 19866 ac_cv_lib_intl_strftime=yes 19867else 19868 ac_cv_lib_intl_strftime=no 19869fi 19870rm -f core conftest.err conftest.$ac_objext \ 19871 conftest$ac_exeext conftest.$ac_ext 19872LIBS=$ac_check_lib_save_LIBS 19873fi 19874{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_strftime" >&5 19875$as_echo "$ac_cv_lib_intl_strftime" >&6; } 19876if test "x$ac_cv_lib_intl_strftime" = xyes; then : 19877 $as_echo "#define HAVE_STRFTIME 1" >>confdefs.h 19878 19879LIBS="-lintl $LIBS" 19880fi 19881 19882fi 19883done 19884 19885for ac_func in mkdir 19886do : 19887 ac_fn_cxx_check_func "$LINENO" "mkdir" "ac_cv_func_mkdir" 19888if test "x$ac_cv_func_mkdir" = xyes; then : 19889 cat >>confdefs.h <<_ACEOF 19890#define HAVE_MKDIR 1 19891_ACEOF 19892 19893fi 19894done 19895 19896for ac_func in nanosleep 19897do : 19898 ac_fn_cxx_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep" 19899if test "x$ac_cv_func_nanosleep" = xyes; then : 19900 cat >>confdefs.h <<_ACEOF 19901#define HAVE_NANOSLEEP 1 19902_ACEOF 19903 19904else 19905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5 19906$as_echo_n "checking for nanosleep in -lposix4... " >&6; } 19907if ${ac_cv_lib_posix4_nanosleep+:} false; then : 19908 $as_echo_n "(cached) " >&6 19909else 19910 ac_check_lib_save_LIBS=$LIBS 19911LIBS="-lposix4 $LIBS" 19912cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19913/* end confdefs.h. */ 19914 19915/* Override any GCC internal prototype to avoid an error. 19916 Use char because int might match the return type of a GCC 19917 builtin and then its argument prototype would still apply. */ 19918#ifdef __cplusplus 19919extern "C" 19920#endif 19921char nanosleep (); 19922int 19923main () 19924{ 19925return nanosleep (); 19926 ; 19927 return 0; 19928} 19929_ACEOF 19930if ac_fn_cxx_try_link "$LINENO"; then : 19931 ac_cv_lib_posix4_nanosleep=yes 19932else 19933 ac_cv_lib_posix4_nanosleep=no 19934fi 19935rm -f core conftest.err conftest.$ac_objext \ 19936 conftest$ac_exeext conftest.$ac_ext 19937LIBS=$ac_check_lib_save_LIBS 19938fi 19939{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5 19940$as_echo "$ac_cv_lib_posix4_nanosleep" >&6; } 19941if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then : 19942 LIBS="$LIBS -lposix4" 19943 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 19944 19945 19946else 19947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5 19948$as_echo_n "checking for nanosleep in -lrt... " >&6; } 19949if ${ac_cv_lib_rt_nanosleep+:} false; then : 19950 $as_echo_n "(cached) " >&6 19951else 19952 ac_check_lib_save_LIBS=$LIBS 19953LIBS="-lrt $LIBS" 19954cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19955/* end confdefs.h. */ 19956 19957/* Override any GCC internal prototype to avoid an error. 19958 Use char because int might match the return type of a GCC 19959 builtin and then its argument prototype would still apply. */ 19960#ifdef __cplusplus 19961extern "C" 19962#endif 19963char nanosleep (); 19964int 19965main () 19966{ 19967return nanosleep (); 19968 ; 19969 return 0; 19970} 19971_ACEOF 19972if ac_fn_cxx_try_link "$LINENO"; then : 19973 ac_cv_lib_rt_nanosleep=yes 19974else 19975 ac_cv_lib_rt_nanosleep=no 19976fi 19977rm -f core conftest.err conftest.$ac_objext \ 19978 conftest$ac_exeext conftest.$ac_ext 19979LIBS=$ac_check_lib_save_LIBS 19980fi 19981{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5 19982$as_echo "$ac_cv_lib_rt_nanosleep" >&6; } 19983if test "x$ac_cv_lib_rt_nanosleep" = xyes; then : 19984 LIBS="$LIBS -lrt" 19985 $as_echo "#define HAVE_NANOSLEEP 1" >>confdefs.h 19986 19987else 19988 no_nanosleep="yes" 19989fi 19990 19991 19992fi 19993 19994 19995fi 19996done 19997 19998for ac_func in usleep 19999do : 20000 ac_fn_cxx_check_func "$LINENO" "usleep" "ac_cv_func_usleep" 20001if test "x$ac_cv_func_usleep" = xyes; then : 20002 cat >>confdefs.h <<_ACEOF 20003#define HAVE_USLEEP 1 20004_ACEOF 20005 20006else 20007 no_usleep="yes" 20008fi 20009done 20010 20011 20012if test "$no_nanosleep" -a "$no_usleep"; then 20013 as_fn_error $? "Neither nanosleep nor usleep was found! 20014********************************************************************* 20015* Worker need at least on of this. Please contact the author at * 20016* http://www.boomerangsworld.de/cms/worker/support.html * 20017* and I will try to help! * 20018*********************************************************************" "$LINENO" 5 20019fi 20020 20021for ac_func in getcwd gettimeofday mkdir select strstr 20022do : 20023 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20024ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 20025if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20026 cat >>confdefs.h <<_ACEOF 20027#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20028_ACEOF 20029 20030fi 20031done 20032 20033 20034have_statvfs=no 20035for ac_header in sys/statvfs.h 20036do : 20037 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 20038if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : 20039 cat >>confdefs.h <<_ACEOF 20040#define HAVE_SYS_STATVFS_H 1 20041_ACEOF 20042 20043 for ac_func in statvfs 20044do : 20045 ac_fn_cxx_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs" 20046if test "x$ac_cv_func_statvfs" = xyes; then : 20047 cat >>confdefs.h <<_ACEOF 20048#define HAVE_STATVFS 1 20049_ACEOF 20050 have_statvfs=yes 20051fi 20052done 20053 20054 20055fi 20056 20057done 20058 20059if test "$have_statvfs" = no; then 20060 have_statfs_inc=no 20061 for ac_header in sys/vfs.h 20062do : 20063 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/vfs.h" "ac_cv_header_sys_vfs_h" "$ac_includes_default" 20064if test "x$ac_cv_header_sys_vfs_h" = xyes; then : 20065 cat >>confdefs.h <<_ACEOF 20066#define HAVE_SYS_VFS_H 1 20067_ACEOF 20068 have_statfs_inc=yes 20069fi 20070 20071done 20072 20073 for ac_header in sys/param.h 20074do : 20075 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 20076if test "x$ac_cv_header_sys_param_h" = xyes; then : 20077 cat >>confdefs.h <<_ACEOF 20078#define HAVE_SYS_PARAM_H 1 20079_ACEOF 20080 20081 for ac_header in sys/mount.h 20082do : 20083 ac_fn_cxx_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "#include <sys/param.h> 20084" 20085if test "x$ac_cv_header_sys_mount_h" = xyes; then : 20086 cat >>confdefs.h <<_ACEOF 20087#define HAVE_SYS_MOUNT_H 1 20088_ACEOF 20089 have_statfs_inc=yes 20090fi 20091 20092done 20093 20094 20095fi 20096 20097done 20098 20099 if test "$have_statfs_inc" = yes; then 20100 for ac_func in statfs 20101do : 20102 ac_fn_cxx_check_func "$LINENO" "statfs" "ac_cv_func_statfs" 20103if test "x$ac_cv_func_statfs" = xyes; then : 20104 cat >>confdefs.h <<_ACEOF 20105#define HAVE_STATFS 1 20106_ACEOF 20107 20108fi 20109done 20110 20111 fi 20112else 20113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether statvfs_t is available" >&5 20114$as_echo_n "checking whether statvfs_t is available... " >&6; } 20115 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20116/* end confdefs.h. */ 20117#include <sys/statvfs.h> 20118int 20119main () 20120{ 20121statvfs_t b1; 20122 ; 20123 return 0; 20124} 20125_ACEOF 20126if ac_fn_cxx_try_compile "$LINENO"; then : 20127 $as_echo "#define HAVE_STATVFS_T 1" >>confdefs.h 20128 20129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20130$as_echo "yes" >&6; } 20131else 20132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20133$as_echo "no" >&6; } 20134fi 20135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; 20136fi 20137 20138for ac_header in sys/sysinfo.h 20139do : 20140 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/sysinfo.h" "ac_cv_header_sys_sysinfo_h" "$ac_includes_default" 20141if test "x$ac_cv_header_sys_sysinfo_h" = xyes; then : 20142 cat >>confdefs.h <<_ACEOF 20143#define HAVE_SYS_SYSINFO_H 1 20144_ACEOF 20145 20146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sysinfo call works as expected" >&5 20147$as_echo_n "checking whether sysinfo call works as expected... " >&6; } 20148 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20149/* end confdefs.h. */ 20150#include <sys/sysinfo.h> 20151int 20152main () 20153{ 20154struct sysinfo info;sysinfo(&info);info.mem_unit=1; 20155 ; 20156 return 0; 20157} 20158_ACEOF 20159if ac_fn_cxx_try_link "$LINENO"; then : 20160 $as_echo "#define HAVE_SYSINFO 1" >>confdefs.h 20161 20162 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20163$as_echo "yes" >&6; } 20164else 20165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20166$as_echo "no" >&6; } 20167fi 20168rm -f core conftest.err conftest.$ac_objext \ 20169 conftest$ac_exeext conftest.$ac_ext; 20170 20171fi 20172 20173done 20174 20175 20176have_regex=no 20177ac_fn_cxx_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default" 20178if test "x$ac_cv_header_regex_h" = xyes; then : 20179 ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" 20180if test "x$ac_cv_func_regcomp" = xyes; then : 20181 ac_fn_cxx_check_func "$LINENO" "regexec" "ac_cv_func_regexec" 20182if test "x$ac_cv_func_regexec" = xyes; then : 20183 ac_fn_cxx_check_func "$LINENO" "regfree" "ac_cv_func_regfree" 20184if test "x$ac_cv_func_regfree" = xyes; then : 20185 $as_echo "#define HAVE_REGEX 1" >>confdefs.h 20186 20187 have_regex=yes 20188fi 20189 20190 20191 20192fi 20193 20194 20195fi 20196 20197 20198fi 20199 20200 20201 20202ac_fn_cxx_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default" 20203if test "x$ac_cv_header_signal_h" = xyes; then : 20204 for ac_func in sigaction 20205do : 20206 ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" 20207if test "x$ac_cv_func_sigaction" = xyes; then : 20208 cat >>confdefs.h <<_ACEOF 20209#define HAVE_SIGACTION 1 20210_ACEOF 20211 20212fi 20213done 20214 20215 20216fi 20217 20218 20219for ac_func in snprintf 20220do : 20221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20222ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 20223if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20224 cat >>confdefs.h <<_ACEOF 20225#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20226_ACEOF 20227 20228fi 20229done 20230 20231for ac_func in getopt_long 20232do : 20233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20234ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 20235if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20236 cat >>confdefs.h <<_ACEOF 20237#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20238_ACEOF 20239 20240fi 20241done 20242 20243 20244 20245 20246ac_ext=c 20247ac_cpp='$CPP $CPPFLAGS' 20248ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20249ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20250ac_compiler_gnu=$ac_cv_c_compiler_gnu 20251 20252ax_pthread_ok=no 20253 20254# We used to check for pthread.h first, but this fails if pthread.h 20255# requires special compiler flags (e.g. on True64 or Sequent). 20256# It gets checked for in the link test anyway. 20257 20258# First of all, check if the user has set any of the PTHREAD_LIBS, 20259# etcetera environment variables, and if threads linking works using 20260# them: 20261if test x"$PTHREAD_LIBS$PTHREAD_CFLAGS" != x; then 20262 save_CFLAGS="$CFLAGS" 20263 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20264 save_LIBS="$LIBS" 20265 LIBS="$PTHREAD_LIBS $LIBS" 20266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS" >&5 20267$as_echo_n "checking for pthread_join in LIBS=$PTHREAD_LIBS with CFLAGS=$PTHREAD_CFLAGS... " >&6; } 20268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20269/* end confdefs.h. */ 20270 20271/* Override any GCC internal prototype to avoid an error. 20272 Use char because int might match the return type of a GCC 20273 builtin and then its argument prototype would still apply. */ 20274#ifdef __cplusplus 20275extern "C" 20276#endif 20277char pthread_join (); 20278int 20279main () 20280{ 20281return pthread_join (); 20282 ; 20283 return 0; 20284} 20285_ACEOF 20286if ac_fn_c_try_link "$LINENO"; then : 20287 ax_pthread_ok=yes 20288fi 20289rm -f core conftest.err conftest.$ac_objext \ 20290 conftest$ac_exeext conftest.$ac_ext 20291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 20292$as_echo "$ax_pthread_ok" >&6; } 20293 if test x"$ax_pthread_ok" = xno; then 20294 PTHREAD_LIBS="" 20295 PTHREAD_CFLAGS="" 20296 fi 20297 LIBS="$save_LIBS" 20298 CFLAGS="$save_CFLAGS" 20299fi 20300 20301# We must check for the threads library under a number of different 20302# names; the ordering is very important because some systems 20303# (e.g. DEC) have both -lpthread and -lpthreads, where one of the 20304# libraries is broken (non-POSIX). 20305 20306# Create a list of thread flags to try. Items starting with a "-" are 20307# C compiler flags, and other items are library names, except for "none" 20308# which indicates that we try without any flags at all, and "pthread-config" 20309# which is a program returning the flags for the Pth emulation library. 20310 20311ax_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config" 20312 20313# The ordering *is* (sometimes) important. Some notes on the 20314# individual items follow: 20315 20316# pthreads: AIX (must check this before -lpthread) 20317# none: in case threads are in libc; should be tried before -Kthread and 20318# other compiler flags to prevent continual compiler warnings 20319# -Kthread: Sequent (threads in libc, but -Kthread needed for pthread.h) 20320# -kthread: FreeBSD kernel threads (preferred to -pthread since SMP-able) 20321# lthread: LinuxThreads port on FreeBSD (also preferred to -pthread) 20322# -pthread: Linux/gcc (kernel threads), BSD/gcc (userland threads) 20323# -pthreads: Solaris/gcc 20324# -mthreads: Mingw32/gcc, Lynx/gcc 20325# -mt: Sun Workshop C (may only link SunOS threads [-lthread], but it 20326# doesn't hurt to check since this sometimes defines pthreads too; 20327# also defines -D_REENTRANT) 20328# ... -mt is also the pthreads flag for HP/aCC 20329# pthread: Linux, etcetera 20330# --thread-safe: KAI C++ 20331# pthread-config: use pthread-config program (for GNU Pth library) 20332 20333case ${host_os} in 20334 solaris*) 20335 20336 # On Solaris (at least, for some versions), libc contains stubbed 20337 # (non-functional) versions of the pthreads routines, so link-based 20338 # tests will erroneously succeed. (We need to link with -pthreads/-mt/ 20339 # -lpthread.) (The stubs are missing pthread_cleanup_push, or rather 20340 # a function called by this macro, so we could check for that, but 20341 # who knows whether they'll stub that too in a future libc.) So, 20342 # we'll just look for -pthreads and -lpthread first: 20343 20344 ax_pthread_flags="-pthreads pthread -mt -pthread $ax_pthread_flags" 20345 ;; 20346 20347 darwin*) 20348 ax_pthread_flags="-pthread $ax_pthread_flags" 20349 ;; 20350esac 20351 20352# Clang doesn't consider unrecognized options an error unless we specify 20353# -Werror. We throw in some extra Clang-specific options to ensure that 20354# this doesn't happen for GCC, which also accepts -Werror. 20355 20356{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler needs -Werror to reject unknown flags" >&5 20357$as_echo_n "checking if compiler needs -Werror to reject unknown flags... " >&6; } 20358save_CFLAGS="$CFLAGS" 20359ax_pthread_extra_flags="-Werror" 20360CFLAGS="$CFLAGS $ax_pthread_extra_flags -Wunknown-warning-option -Wsizeof-array-argument" 20361cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20362/* end confdefs.h. */ 20363int foo(void); 20364int 20365main () 20366{ 20367foo() 20368 ; 20369 return 0; 20370} 20371_ACEOF 20372if ac_fn_c_try_compile "$LINENO"; then : 20373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20374$as_echo "yes" >&6; } 20375else 20376 ax_pthread_extra_flags= 20377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20378$as_echo "no" >&6; } 20379fi 20380rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 20381CFLAGS="$save_CFLAGS" 20382 20383if test x"$ax_pthread_ok" = xno; then 20384for flag in $ax_pthread_flags; do 20385 20386 case $flag in 20387 none) 20388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work without any flags" >&5 20389$as_echo_n "checking whether pthreads work without any flags... " >&6; } 20390 ;; 20391 20392 -*) 20393 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether pthreads work with $flag" >&5 20394$as_echo_n "checking whether pthreads work with $flag... " >&6; } 20395 PTHREAD_CFLAGS="$flag" 20396 PTHREAD_LIBS="$flag" 20397 ;; 20398 20399 pthread-config) 20400 # Extract the first word of "pthread-config", so it can be a program name with args. 20401set dummy pthread-config; ac_word=$2 20402{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20403$as_echo_n "checking for $ac_word... " >&6; } 20404if ${ac_cv_prog_ax_pthread_config+:} false; then : 20405 $as_echo_n "(cached) " >&6 20406else 20407 if test -n "$ax_pthread_config"; then 20408 ac_cv_prog_ax_pthread_config="$ax_pthread_config" # Let the user override the test. 20409else 20410as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20411for as_dir in $PATH 20412do 20413 IFS=$as_save_IFS 20414 test -z "$as_dir" && as_dir=. 20415 for ac_exec_ext in '' $ac_executable_extensions; do 20416 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20417 ac_cv_prog_ax_pthread_config="yes" 20418 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20419 break 2 20420 fi 20421done 20422 done 20423IFS=$as_save_IFS 20424 20425 test -z "$ac_cv_prog_ax_pthread_config" && ac_cv_prog_ax_pthread_config="no" 20426fi 20427fi 20428ax_pthread_config=$ac_cv_prog_ax_pthread_config 20429if test -n "$ax_pthread_config"; then 20430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_config" >&5 20431$as_echo "$ax_pthread_config" >&6; } 20432else 20433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20434$as_echo "no" >&6; } 20435fi 20436 20437 20438 if test x"$ax_pthread_config" = xno; then continue; fi 20439 PTHREAD_CFLAGS="`pthread-config --cflags`" 20440 PTHREAD_LIBS="`pthread-config --ldflags` `pthread-config --libs`" 20441 ;; 20442 20443 *) 20444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the pthreads library -l$flag" >&5 20445$as_echo_n "checking for the pthreads library -l$flag... " >&6; } 20446 PTHREAD_LIBS="-l$flag" 20447 ;; 20448 esac 20449 20450 save_LIBS="$LIBS" 20451 save_CFLAGS="$CFLAGS" 20452 LIBS="$PTHREAD_LIBS $LIBS" 20453 CFLAGS="$CFLAGS $PTHREAD_CFLAGS $ax_pthread_extra_flags" 20454 20455 # Check for various functions. We must include pthread.h, 20456 # since some functions may be macros. (On the Sequent, we 20457 # need a special flag -Kthread to make this header compile.) 20458 # We check for pthread_join because it is in -lpthread on IRIX 20459 # while pthread_create is in libc. We check for pthread_attr_init 20460 # due to DEC craziness with -lpthreads. We check for 20461 # pthread_cleanup_push because it is one of the few pthread 20462 # functions on Solaris that doesn't have a non-functional libc stub. 20463 # We try pthread_create on general principles. 20464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20465/* end confdefs.h. */ 20466#include <pthread.h> 20467 static void routine(void *a) { a = 0; } 20468 static void *start_routine(void *a) { return a; } 20469int 20470main () 20471{ 20472pthread_t th; pthread_attr_t attr; 20473 pthread_create(&th, 0, start_routine, 0); 20474 pthread_join(th, 0); 20475 pthread_attr_init(&attr); 20476 pthread_cleanup_push(routine, 0); 20477 pthread_cleanup_pop(0) /* ; */ 20478 ; 20479 return 0; 20480} 20481_ACEOF 20482if ac_fn_c_try_link "$LINENO"; then : 20483 ax_pthread_ok=yes 20484fi 20485rm -f core conftest.err conftest.$ac_objext \ 20486 conftest$ac_exeext conftest.$ac_ext 20487 20488 LIBS="$save_LIBS" 20489 CFLAGS="$save_CFLAGS" 20490 20491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_pthread_ok" >&5 20492$as_echo "$ax_pthread_ok" >&6; } 20493 if test "x$ax_pthread_ok" = xyes; then 20494 break; 20495 fi 20496 20497 PTHREAD_LIBS="" 20498 PTHREAD_CFLAGS="" 20499done 20500fi 20501 20502# Various other checks: 20503if test "x$ax_pthread_ok" = xyes; then 20504 save_LIBS="$LIBS" 20505 LIBS="$PTHREAD_LIBS $LIBS" 20506 save_CFLAGS="$CFLAGS" 20507 CFLAGS="$CFLAGS $PTHREAD_CFLAGS" 20508 20509 # Detect AIX lossage: JOINABLE attribute is called UNDETACHED. 20510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for joinable pthread attribute" >&5 20511$as_echo_n "checking for joinable pthread attribute... " >&6; } 20512 attr_name=unknown 20513 for attr in PTHREAD_CREATE_JOINABLE PTHREAD_CREATE_UNDETACHED; do 20514 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20515/* end confdefs.h. */ 20516#include <pthread.h> 20517int 20518main () 20519{ 20520int attr = $attr; return attr /* ; */ 20521 ; 20522 return 0; 20523} 20524_ACEOF 20525if ac_fn_c_try_link "$LINENO"; then : 20526 attr_name=$attr; break 20527fi 20528rm -f core conftest.err conftest.$ac_objext \ 20529 conftest$ac_exeext conftest.$ac_ext 20530 done 20531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $attr_name" >&5 20532$as_echo "$attr_name" >&6; } 20533 if test "$attr_name" != PTHREAD_CREATE_JOINABLE; then 20534 20535cat >>confdefs.h <<_ACEOF 20536#define PTHREAD_CREATE_JOINABLE $attr_name 20537_ACEOF 20538 20539 fi 20540 20541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if more special flags are required for pthreads" >&5 20542$as_echo_n "checking if more special flags are required for pthreads... " >&6; } 20543 flag=no 20544 case ${host_os} in 20545 aix* | freebsd* | darwin*) flag="-D_THREAD_SAFE";; 20546 osf* | hpux*) flag="-D_REENTRANT";; 20547 solaris*) 20548 if test "$GCC" = "yes"; then 20549 flag="-D_REENTRANT" 20550 else 20551 # TODO: What about Clang on Solaris? 20552 flag="-mt -D_REENTRANT" 20553 fi 20554 ;; 20555 esac 20556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $flag" >&5 20557$as_echo "$flag" >&6; } 20558 if test "x$flag" != xno; then 20559 PTHREAD_CFLAGS="$flag $PTHREAD_CFLAGS" 20560 fi 20561 20562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PTHREAD_PRIO_INHERIT" >&5 20563$as_echo_n "checking for PTHREAD_PRIO_INHERIT... " >&6; } 20564if ${ax_cv_PTHREAD_PRIO_INHERIT+:} false; then : 20565 $as_echo_n "(cached) " >&6 20566else 20567 20568 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20569/* end confdefs.h. */ 20570#include <pthread.h> 20571int 20572main () 20573{ 20574int i = PTHREAD_PRIO_INHERIT; 20575 ; 20576 return 0; 20577} 20578_ACEOF 20579if ac_fn_c_try_link "$LINENO"; then : 20580 ax_cv_PTHREAD_PRIO_INHERIT=yes 20581else 20582 ax_cv_PTHREAD_PRIO_INHERIT=no 20583fi 20584rm -f core conftest.err conftest.$ac_objext \ 20585 conftest$ac_exeext conftest.$ac_ext 20586 20587fi 20588{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ax_cv_PTHREAD_PRIO_INHERIT" >&5 20589$as_echo "$ax_cv_PTHREAD_PRIO_INHERIT" >&6; } 20590 if test "x$ax_cv_PTHREAD_PRIO_INHERIT" = "xyes"; then : 20591 20592$as_echo "#define HAVE_PTHREAD_PRIO_INHERIT 1" >>confdefs.h 20593 20594fi 20595 20596 LIBS="$save_LIBS" 20597 CFLAGS="$save_CFLAGS" 20598 20599 # More AIX lossage: compile with *_r variant 20600 if test "x$GCC" != xyes; then 20601 case $host_os in 20602 aix*) 20603 case "x/$CC" in #( 20604 x*/c89|x*/c89_128|x*/c99|x*/c99_128|x*/cc|x*/cc128|x*/xlc|x*/xlc_v6|x*/xlc128|x*/xlc128_v6) : 20605 #handle absolute path differently from PATH based program lookup 20606 case "x$CC" in #( 20607 x/*) : 20608 if as_fn_executable_p ${CC}_r; then : 20609 PTHREAD_CC="${CC}_r" 20610fi ;; #( 20611 *) : 20612 for ac_prog in ${CC}_r 20613do 20614 # Extract the first word of "$ac_prog", so it can be a program name with args. 20615set dummy $ac_prog; ac_word=$2 20616{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20617$as_echo_n "checking for $ac_word... " >&6; } 20618if ${ac_cv_prog_PTHREAD_CC+:} false; then : 20619 $as_echo_n "(cached) " >&6 20620else 20621 if test -n "$PTHREAD_CC"; then 20622 ac_cv_prog_PTHREAD_CC="$PTHREAD_CC" # Let the user override the test. 20623else 20624as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20625for as_dir in $PATH 20626do 20627 IFS=$as_save_IFS 20628 test -z "$as_dir" && as_dir=. 20629 for ac_exec_ext in '' $ac_executable_extensions; do 20630 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20631 ac_cv_prog_PTHREAD_CC="$ac_prog" 20632 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20633 break 2 20634 fi 20635done 20636 done 20637IFS=$as_save_IFS 20638 20639fi 20640fi 20641PTHREAD_CC=$ac_cv_prog_PTHREAD_CC 20642if test -n "$PTHREAD_CC"; then 20643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PTHREAD_CC" >&5 20644$as_echo "$PTHREAD_CC" >&6; } 20645else 20646 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20647$as_echo "no" >&6; } 20648fi 20649 20650 20651 test -n "$PTHREAD_CC" && break 20652done 20653test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 20654 ;; 20655esac ;; #( 20656 *) : 20657 ;; 20658esac 20659 ;; 20660 esac 20661 fi 20662fi 20663 20664test -n "$PTHREAD_CC" || PTHREAD_CC="$CC" 20665 20666 20667 20668 20669 20670# Finally, execute ACTION-IF-FOUND/ACTION-IF-NOT-FOUND: 20671if test x"$ax_pthread_ok" = xyes; then 20672 $as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h 20673 20674 LIBS="$PTHREAD_LIBS $LIBS" 20675 CPPFLAGS="$CPPFLAGS $PTHREAD_CFLAGS" 20676 20677 : 20678else 20679 ax_pthread_ok=no 20680 as_fn_error $? "Couldn't find Pthreads library! 20681********************************************************************* 20682* Worker requires a working Pthreads library * 20683*********************************************************************" "$LINENO" 5 20684 20685fi 20686ac_ext=cpp 20687ac_cpp='$CXXCPP $CPPFLAGS' 20688ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 20689ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 20690ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 20691 20692 20693 20694have_libmagic=no 20695 20696# Check whether --with-libmagic was given. 20697if test "${with_libmagic+set}" = set; then : 20698 withval=$with_libmagic; use_libmagic=$withval 20699else 20700 use_libmagic=yes 20701fi 20702 20703 20704if test "$use_libmagic" = "yes"; then 20705 ac_fn_cxx_check_header_mongrel "$LINENO" "magic.h" "ac_cv_header_magic_h" "$ac_includes_default" 20706if test "x$ac_cv_header_magic_h" = xyes; then : 20707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for magic_open in -lmagic" >&5 20708$as_echo_n "checking for magic_open in -lmagic... " >&6; } 20709if ${ac_cv_lib_magic_magic_open+:} false; then : 20710 $as_echo_n "(cached) " >&6 20711else 20712 ac_check_lib_save_LIBS=$LIBS 20713LIBS="-lmagic $LIBS" 20714cat confdefs.h - <<_ACEOF >conftest.$ac_ext 20715/* end confdefs.h. */ 20716 20717/* Override any GCC internal prototype to avoid an error. 20718 Use char because int might match the return type of a GCC 20719 builtin and then its argument prototype would still apply. */ 20720#ifdef __cplusplus 20721extern "C" 20722#endif 20723char magic_open (); 20724int 20725main () 20726{ 20727return magic_open (); 20728 ; 20729 return 0; 20730} 20731_ACEOF 20732if ac_fn_cxx_try_link "$LINENO"; then : 20733 ac_cv_lib_magic_magic_open=yes 20734else 20735 ac_cv_lib_magic_magic_open=no 20736fi 20737rm -f core conftest.err conftest.$ac_objext \ 20738 conftest$ac_exeext conftest.$ac_ext 20739LIBS=$ac_check_lib_save_LIBS 20740fi 20741{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_magic_magic_open" >&5 20742$as_echo "$ac_cv_lib_magic_magic_open" >&6; } 20743if test "x$ac_cv_lib_magic_magic_open" = xyes; then : 20744 20745$as_echo "#define HAVE_LIBMAGIC 1" >>confdefs.h 20746 20747 LIBS="$LIBS -lmagic" 20748 have_libmagic=yes 20749fi 20750 20751 20752fi 20753 20754 20755fi 20756 20757# Check whether --enable-xim was given. 20758if test "${enable_xim+set}" = set; then : 20759 enableval=$enable_xim; use_xim=$enableval 20760else 20761 use_xim=yes 20762fi 20763 20764 20765if test "$use_xim" = "yes"; then 20766 $as_echo "#define USE_XIM 1" >>confdefs.h 20767 20768fi 20769 20770 20771# Check whether --enable-utf8 was given. 20772if test "${enable_utf8+set}" = set; then : 20773 enableval=$enable_utf8; use_utf8=$enableval 20774else 20775 use_utf8=yes 20776fi 20777 20778 20779if test "$use_utf8" = "no"; then 20780 $as_echo "#define DISABLE_UTF8_SUPPORT 1" >>confdefs.h 20781 20782fi 20783 20784 20785 20786 20787for ac_func in shmget shmat shmdt 20788do : 20789 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20790ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" 20791if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20792 cat >>confdefs.h <<_ACEOF 20793#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20794_ACEOF 20795 20796$as_echo "#define HAVE_SHM 1" >>confdefs.h 20797 20798fi 20799done 20800 20801 20802 20803# Check whether --enable-debug was given. 20804if test "${enable_debug+set}" = set; then : 20805 enableval=$enable_debug; use_debug=$enableval 20806else 20807 use_debug=no 20808fi 20809 20810 20811if test "$use_debug" = yes; then 20812 $as_echo "#define DEBUG 1" >>confdefs.h 20813 20814fi 20815 20816 20817 20818 20819 20820 20821 20822 20823 20824if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then 20825 if test -n "$ac_tool_prefix"; then 20826 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. 20827set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 20828{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20829$as_echo_n "checking for $ac_word... " >&6; } 20830if ${ac_cv_path_PKG_CONFIG+:} false; then : 20831 $as_echo_n "(cached) " >&6 20832else 20833 case $PKG_CONFIG in 20834 [\\/]* | ?:[\\/]*) 20835 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. 20836 ;; 20837 *) 20838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20839for as_dir in $PATH 20840do 20841 IFS=$as_save_IFS 20842 test -z "$as_dir" && as_dir=. 20843 for ac_exec_ext in '' $ac_executable_extensions; do 20844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20845 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20847 break 2 20848 fi 20849done 20850 done 20851IFS=$as_save_IFS 20852 20853 ;; 20854esac 20855fi 20856PKG_CONFIG=$ac_cv_path_PKG_CONFIG 20857if test -n "$PKG_CONFIG"; then 20858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 20859$as_echo "$PKG_CONFIG" >&6; } 20860else 20861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20862$as_echo "no" >&6; } 20863fi 20864 20865 20866fi 20867if test -z "$ac_cv_path_PKG_CONFIG"; then 20868 ac_pt_PKG_CONFIG=$PKG_CONFIG 20869 # Extract the first word of "pkg-config", so it can be a program name with args. 20870set dummy pkg-config; ac_word=$2 20871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 20872$as_echo_n "checking for $ac_word... " >&6; } 20873if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : 20874 $as_echo_n "(cached) " >&6 20875else 20876 case $ac_pt_PKG_CONFIG in 20877 [\\/]* | ?:[\\/]*) 20878 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. 20879 ;; 20880 *) 20881 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20882for as_dir in $PATH 20883do 20884 IFS=$as_save_IFS 20885 test -z "$as_dir" && as_dir=. 20886 for ac_exec_ext in '' $ac_executable_extensions; do 20887 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 20888 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" 20889 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 20890 break 2 20891 fi 20892done 20893 done 20894IFS=$as_save_IFS 20895 20896 ;; 20897esac 20898fi 20899ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG 20900if test -n "$ac_pt_PKG_CONFIG"; then 20901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 20902$as_echo "$ac_pt_PKG_CONFIG" >&6; } 20903else 20904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20905$as_echo "no" >&6; } 20906fi 20907 20908 if test "x$ac_pt_PKG_CONFIG" = x; then 20909 PKG_CONFIG="" 20910 else 20911 case $cross_compiling:$ac_tool_warned in 20912yes:) 20913{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 20914$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 20915ac_tool_warned=yes ;; 20916esac 20917 PKG_CONFIG=$ac_pt_PKG_CONFIG 20918 fi 20919else 20920 PKG_CONFIG="$ac_cv_path_PKG_CONFIG" 20921fi 20922 20923fi 20924if test -n "$PKG_CONFIG"; then 20925 _pkg_min_version=0.9.0 20926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 20927$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } 20928 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then 20929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 20930$as_echo "yes" >&6; } 20931 else 20932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 20933$as_echo "no" >&6; } 20934 PKG_CONFIG="" 20935 fi 20936fi 20937 20938XFT_LDFLAGS="" 20939ac_cv_have_xft=no 20940have_xft=no 20941 20942# Check whether --enable-xft was given. 20943if test "${enable_xft+set}" = set; then : 20944 enableval=$enable_xft; use_xft=$enableval 20945else 20946 use_xft=yes 20947fi 20948 20949 20950if test "$use_xft" = "yes"; then 20951 if test -n "$PKG_CONFIG" && \ 20952 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 20953 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 20954 ac_status=$? 20955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20956 test $ac_status = 0; }; then 20957 20958 20959pkg_failed=no 20960{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XFT" >&5 20961$as_echo_n "checking for XFT... " >&6; } 20962 20963if test -n "$XFT_CFLAGS"; then 20964 pkg_cv_XFT_CFLAGS="$XFT_CFLAGS" 20965 elif test -n "$PKG_CONFIG"; then 20966 if test -n "$PKG_CONFIG" && \ 20967 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 20968 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 20969 ac_status=$? 20970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20971 test $ac_status = 0; }; then 20972 pkg_cv_XFT_CFLAGS=`$PKG_CONFIG --cflags "xft" 2>/dev/null` 20973 test "x$?" != "x0" && pkg_failed=yes 20974else 20975 pkg_failed=yes 20976fi 20977 else 20978 pkg_failed=untried 20979fi 20980if test -n "$XFT_LIBS"; then 20981 pkg_cv_XFT_LIBS="$XFT_LIBS" 20982 elif test -n "$PKG_CONFIG"; then 20983 if test -n "$PKG_CONFIG" && \ 20984 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"xft\""; } >&5 20985 ($PKG_CONFIG --exists --print-errors "xft") 2>&5 20986 ac_status=$? 20987 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 20988 test $ac_status = 0; }; then 20989 pkg_cv_XFT_LIBS=`$PKG_CONFIG --libs "xft" 2>/dev/null` 20990 test "x$?" != "x0" && pkg_failed=yes 20991else 20992 pkg_failed=yes 20993fi 20994 else 20995 pkg_failed=untried 20996fi 20997 20998 20999 21000if test $pkg_failed = yes; then 21001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21002$as_echo "no" >&6; } 21003 21004if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21005 _pkg_short_errors_supported=yes 21006else 21007 _pkg_short_errors_supported=no 21008fi 21009 if test $_pkg_short_errors_supported = yes; then 21010 XFT_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "xft" 2>&1` 21011 else 21012 XFT_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "xft" 2>&1` 21013 fi 21014 # Put the nasty error message in config.log where it belongs 21015 echo "$XFT_PKG_ERRORS" >&5 21016 21017 as_fn_error $? "Package requirements (xft) were not met: 21018 21019$XFT_PKG_ERRORS 21020 21021Consider adjusting the PKG_CONFIG_PATH environment variable if you 21022installed software in a non-standard prefix. 21023 21024Alternatively, you may set the environment variables XFT_CFLAGS 21025and XFT_LIBS to avoid the need to call pkg-config. 21026See the pkg-config man page for more details." "$LINENO" 5 21027elif test $pkg_failed = untried; then 21028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21029$as_echo "no" >&6; } 21030 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21031$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21032as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21033is in your PATH or set the PKG_CONFIG environment variable to the full 21034path to pkg-config. 21035 21036Alternatively, you may set the environment variables XFT_CFLAGS 21037and XFT_LIBS to avoid the need to call pkg-config. 21038See the pkg-config man page for more details. 21039 21040To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21041See \`config.log' for more details" "$LINENO" 5; } 21042else 21043 XFT_CFLAGS=$pkg_cv_XFT_CFLAGS 21044 XFT_LIBS=$pkg_cv_XFT_LIBS 21045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21046$as_echo "yes" >&6; } 21047 have_xft=yes 21048 21049fi 21050 21051fi 21052 21053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xft" >&5 21054$as_echo_n "checking for xft... " >&6; } 21055 if test "$have_xft" = "yes"; then 21056 CXXFLAGS="$CXXFLAGS $XFT_CFLAGS" 21057 LIBS="$LIBS $XFT_LIBS" 21058 21059$as_echo "#define HAVE_XFT 1" >>confdefs.h 21060 21061 ac_cv_have_xft=yes 21062 fi 21063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_xft" >&5 21064$as_echo "$have_xft" >&6; } 21065fi 21066 21067ac_cv_have_lua=no 21068have_lua=no 21069 21070# Check whether --enable-lua was given. 21071if test "${enable_lua+set}" = set; then : 21072 enableval=$enable_lua; use_lua=$enableval 21073else 21074 use_lua=yes 21075fi 21076 21077 21078if test "$use_lua" = "yes"; then 21079 if test -n "$PKG_CONFIG" && \ 21080 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5 21081 ($PKG_CONFIG --exists --print-errors "lua") 2>&5 21082 ac_status=$? 21083 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21084 test $ac_status = 0; }; then 21085 21086 21087pkg_failed=no 21088{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 21089$as_echo_n "checking for LUA... " >&6; } 21090 21091if test -n "$LUA_CFLAGS"; then 21092 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 21093 elif test -n "$PKG_CONFIG"; then 21094 if test -n "$PKG_CONFIG" && \ 21095 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5 21096 ($PKG_CONFIG --exists --print-errors "lua") 2>&5 21097 ac_status=$? 21098 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21099 test $ac_status = 0; }; then 21100 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua" 2>/dev/null` 21101 test "x$?" != "x0" && pkg_failed=yes 21102else 21103 pkg_failed=yes 21104fi 21105 else 21106 pkg_failed=untried 21107fi 21108if test -n "$LUA_LIBS"; then 21109 pkg_cv_LUA_LIBS="$LUA_LIBS" 21110 elif test -n "$PKG_CONFIG"; then 21111 if test -n "$PKG_CONFIG" && \ 21112 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua\""; } >&5 21113 ($PKG_CONFIG --exists --print-errors "lua") 2>&5 21114 ac_status=$? 21115 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21116 test $ac_status = 0; }; then 21117 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua" 2>/dev/null` 21118 test "x$?" != "x0" && pkg_failed=yes 21119else 21120 pkg_failed=yes 21121fi 21122 else 21123 pkg_failed=untried 21124fi 21125 21126 21127 21128if test $pkg_failed = yes; then 21129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21130$as_echo "no" >&6; } 21131 21132if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21133 _pkg_short_errors_supported=yes 21134else 21135 _pkg_short_errors_supported=no 21136fi 21137 if test $_pkg_short_errors_supported = yes; then 21138 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua" 2>&1` 21139 else 21140 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua" 2>&1` 21141 fi 21142 # Put the nasty error message in config.log where it belongs 21143 echo "$LUA_PKG_ERRORS" >&5 21144 21145 as_fn_error $? "Package requirements (lua) were not met: 21146 21147$LUA_PKG_ERRORS 21148 21149Consider adjusting the PKG_CONFIG_PATH environment variable if you 21150installed software in a non-standard prefix. 21151 21152Alternatively, you may set the environment variables LUA_CFLAGS 21153and LUA_LIBS to avoid the need to call pkg-config. 21154See the pkg-config man page for more details." "$LINENO" 5 21155elif test $pkg_failed = untried; then 21156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21157$as_echo "no" >&6; } 21158 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21159$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21160as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21161is in your PATH or set the PKG_CONFIG environment variable to the full 21162path to pkg-config. 21163 21164Alternatively, you may set the environment variables LUA_CFLAGS 21165and LUA_LIBS to avoid the need to call pkg-config. 21166See the pkg-config man page for more details. 21167 21168To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21169See \`config.log' for more details" "$LINENO" 5; } 21170else 21171 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 21172 LUA_LIBS=$pkg_cv_LUA_LIBS 21173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21174$as_echo "yes" >&6; } 21175 have_lua=yes 21176 21177fi 21178 21179fi 21180 if test "$have_lua" = "no"; then 21181 if test -n "$PKG_CONFIG" && \ 21182 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5 21183 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5 21184 ac_status=$? 21185 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21186 test $ac_status = 0; }; then 21187 21188 21189pkg_failed=no 21190{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 21191$as_echo_n "checking for LUA... " >&6; } 21192 21193if test -n "$LUA_CFLAGS"; then 21194 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 21195 elif test -n "$PKG_CONFIG"; then 21196 if test -n "$PKG_CONFIG" && \ 21197 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5 21198 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5 21199 ac_status=$? 21200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21201 test $ac_status = 0; }; then 21202 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.2" 2>/dev/null` 21203 test "x$?" != "x0" && pkg_failed=yes 21204else 21205 pkg_failed=yes 21206fi 21207 else 21208 pkg_failed=untried 21209fi 21210if test -n "$LUA_LIBS"; then 21211 pkg_cv_LUA_LIBS="$LUA_LIBS" 21212 elif test -n "$PKG_CONFIG"; then 21213 if test -n "$PKG_CONFIG" && \ 21214 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.2\""; } >&5 21215 ($PKG_CONFIG --exists --print-errors "lua5.2") 2>&5 21216 ac_status=$? 21217 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21218 test $ac_status = 0; }; then 21219 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.2" 2>/dev/null` 21220 test "x$?" != "x0" && pkg_failed=yes 21221else 21222 pkg_failed=yes 21223fi 21224 else 21225 pkg_failed=untried 21226fi 21227 21228 21229 21230if test $pkg_failed = yes; then 21231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21232$as_echo "no" >&6; } 21233 21234if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21235 _pkg_short_errors_supported=yes 21236else 21237 _pkg_short_errors_supported=no 21238fi 21239 if test $_pkg_short_errors_supported = yes; then 21240 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.2" 2>&1` 21241 else 21242 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.2" 2>&1` 21243 fi 21244 # Put the nasty error message in config.log where it belongs 21245 echo "$LUA_PKG_ERRORS" >&5 21246 21247 as_fn_error $? "Package requirements (lua5.2) were not met: 21248 21249$LUA_PKG_ERRORS 21250 21251Consider adjusting the PKG_CONFIG_PATH environment variable if you 21252installed software in a non-standard prefix. 21253 21254Alternatively, you may set the environment variables LUA_CFLAGS 21255and LUA_LIBS to avoid the need to call pkg-config. 21256See the pkg-config man page for more details." "$LINENO" 5 21257elif test $pkg_failed = untried; then 21258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21259$as_echo "no" >&6; } 21260 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21261$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21262as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21263is in your PATH or set the PKG_CONFIG environment variable to the full 21264path to pkg-config. 21265 21266Alternatively, you may set the environment variables LUA_CFLAGS 21267and LUA_LIBS to avoid the need to call pkg-config. 21268See the pkg-config man page for more details. 21269 21270To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21271See \`config.log' for more details" "$LINENO" 5; } 21272else 21273 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 21274 LUA_LIBS=$pkg_cv_LUA_LIBS 21275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21276$as_echo "yes" >&6; } 21277 have_lua=yes 21278 21279fi 21280 21281fi 21282 fi 21283 21284 if test "$have_lua" = "no"; then 21285 if test -n "$PKG_CONFIG" && \ 21286 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5 21287 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5 21288 ac_status=$? 21289 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21290 test $ac_status = 0; }; then 21291 21292 21293pkg_failed=no 21294{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 21295$as_echo_n "checking for LUA... " >&6; } 21296 21297if test -n "$LUA_CFLAGS"; then 21298 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 21299 elif test -n "$PKG_CONFIG"; then 21300 if test -n "$PKG_CONFIG" && \ 21301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5 21302 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5 21303 ac_status=$? 21304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21305 test $ac_status = 0; }; then 21306 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua5.1" 2>/dev/null` 21307 test "x$?" != "x0" && pkg_failed=yes 21308else 21309 pkg_failed=yes 21310fi 21311 else 21312 pkg_failed=untried 21313fi 21314if test -n "$LUA_LIBS"; then 21315 pkg_cv_LUA_LIBS="$LUA_LIBS" 21316 elif test -n "$PKG_CONFIG"; then 21317 if test -n "$PKG_CONFIG" && \ 21318 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua5.1\""; } >&5 21319 ($PKG_CONFIG --exists --print-errors "lua5.1") 2>&5 21320 ac_status=$? 21321 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21322 test $ac_status = 0; }; then 21323 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua5.1" 2>/dev/null` 21324 test "x$?" != "x0" && pkg_failed=yes 21325else 21326 pkg_failed=yes 21327fi 21328 else 21329 pkg_failed=untried 21330fi 21331 21332 21333 21334if test $pkg_failed = yes; then 21335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21336$as_echo "no" >&6; } 21337 21338if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21339 _pkg_short_errors_supported=yes 21340else 21341 _pkg_short_errors_supported=no 21342fi 21343 if test $_pkg_short_errors_supported = yes; then 21344 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua5.1" 2>&1` 21345 else 21346 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua5.1" 2>&1` 21347 fi 21348 # Put the nasty error message in config.log where it belongs 21349 echo "$LUA_PKG_ERRORS" >&5 21350 21351 as_fn_error $? "Package requirements (lua5.1) were not met: 21352 21353$LUA_PKG_ERRORS 21354 21355Consider adjusting the PKG_CONFIG_PATH environment variable if you 21356installed software in a non-standard prefix. 21357 21358Alternatively, you may set the environment variables LUA_CFLAGS 21359and LUA_LIBS to avoid the need to call pkg-config. 21360See the pkg-config man page for more details." "$LINENO" 5 21361elif test $pkg_failed = untried; then 21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21363$as_echo "no" >&6; } 21364 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21365$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21366as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21367is in your PATH or set the PKG_CONFIG environment variable to the full 21368path to pkg-config. 21369 21370Alternatively, you may set the environment variables LUA_CFLAGS 21371and LUA_LIBS to avoid the need to call pkg-config. 21372See the pkg-config man page for more details. 21373 21374To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21375See \`config.log' for more details" "$LINENO" 5; } 21376else 21377 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 21378 LUA_LIBS=$pkg_cv_LUA_LIBS 21379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21380$as_echo "yes" >&6; } 21381 have_lua=yes 21382 21383fi 21384 21385fi 21386 fi 21387 if test "$have_lua" = "no"; then 21388 if test -n "$PKG_CONFIG" && \ 21389 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5 21390 ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5 21391 ac_status=$? 21392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21393 test $ac_status = 0; }; then 21394 21395 21396pkg_failed=no 21397{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 21398$as_echo_n "checking for LUA... " >&6; } 21399 21400if test -n "$LUA_CFLAGS"; then 21401 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 21402 elif test -n "$PKG_CONFIG"; then 21403 if test -n "$PKG_CONFIG" && \ 21404 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5 21405 ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5 21406 ac_status=$? 21407 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21408 test $ac_status = 0; }; then 21409 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.1" 2>/dev/null` 21410 test "x$?" != "x0" && pkg_failed=yes 21411else 21412 pkg_failed=yes 21413fi 21414 else 21415 pkg_failed=untried 21416fi 21417if test -n "$LUA_LIBS"; then 21418 pkg_cv_LUA_LIBS="$LUA_LIBS" 21419 elif test -n "$PKG_CONFIG"; then 21420 if test -n "$PKG_CONFIG" && \ 21421 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.1\""; } >&5 21422 ($PKG_CONFIG --exists --print-errors "lua-5.1") 2>&5 21423 ac_status=$? 21424 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21425 test $ac_status = 0; }; then 21426 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.1" 2>/dev/null` 21427 test "x$?" != "x0" && pkg_failed=yes 21428else 21429 pkg_failed=yes 21430fi 21431 else 21432 pkg_failed=untried 21433fi 21434 21435 21436 21437if test $pkg_failed = yes; then 21438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21439$as_echo "no" >&6; } 21440 21441if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21442 _pkg_short_errors_supported=yes 21443else 21444 _pkg_short_errors_supported=no 21445fi 21446 if test $_pkg_short_errors_supported = yes; then 21447 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.1" 2>&1` 21448 else 21449 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.1" 2>&1` 21450 fi 21451 # Put the nasty error message in config.log where it belongs 21452 echo "$LUA_PKG_ERRORS" >&5 21453 21454 as_fn_error $? "Package requirements (lua-5.1) were not met: 21455 21456$LUA_PKG_ERRORS 21457 21458Consider adjusting the PKG_CONFIG_PATH environment variable if you 21459installed software in a non-standard prefix. 21460 21461Alternatively, you may set the environment variables LUA_CFLAGS 21462and LUA_LIBS to avoid the need to call pkg-config. 21463See the pkg-config man page for more details." "$LINENO" 5 21464elif test $pkg_failed = untried; then 21465 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21466$as_echo "no" >&6; } 21467 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21468$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21469as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21470is in your PATH or set the PKG_CONFIG environment variable to the full 21471path to pkg-config. 21472 21473Alternatively, you may set the environment variables LUA_CFLAGS 21474and LUA_LIBS to avoid the need to call pkg-config. 21475See the pkg-config man page for more details. 21476 21477To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21478See \`config.log' for more details" "$LINENO" 5; } 21479else 21480 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 21481 LUA_LIBS=$pkg_cv_LUA_LIBS 21482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21483$as_echo "yes" >&6; } 21484 have_lua=yes 21485 21486fi 21487 21488fi 21489 fi 21490 if test "$have_lua" = "no"; then 21491 if test -n "$PKG_CONFIG" && \ 21492 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5 21493 ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5 21494 ac_status=$? 21495 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21496 test $ac_status = 0; }; then 21497 21498 21499pkg_failed=no 21500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for LUA" >&5 21501$as_echo_n "checking for LUA... " >&6; } 21502 21503if test -n "$LUA_CFLAGS"; then 21504 pkg_cv_LUA_CFLAGS="$LUA_CFLAGS" 21505 elif test -n "$PKG_CONFIG"; then 21506 if test -n "$PKG_CONFIG" && \ 21507 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5 21508 ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5 21509 ac_status=$? 21510 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21511 test $ac_status = 0; }; then 21512 pkg_cv_LUA_CFLAGS=`$PKG_CONFIG --cflags "lua-5.2" 2>/dev/null` 21513 test "x$?" != "x0" && pkg_failed=yes 21514else 21515 pkg_failed=yes 21516fi 21517 else 21518 pkg_failed=untried 21519fi 21520if test -n "$LUA_LIBS"; then 21521 pkg_cv_LUA_LIBS="$LUA_LIBS" 21522 elif test -n "$PKG_CONFIG"; then 21523 if test -n "$PKG_CONFIG" && \ 21524 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"lua-5.2\""; } >&5 21525 ($PKG_CONFIG --exists --print-errors "lua-5.2") 2>&5 21526 ac_status=$? 21527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21528 test $ac_status = 0; }; then 21529 pkg_cv_LUA_LIBS=`$PKG_CONFIG --libs "lua-5.2" 2>/dev/null` 21530 test "x$?" != "x0" && pkg_failed=yes 21531else 21532 pkg_failed=yes 21533fi 21534 else 21535 pkg_failed=untried 21536fi 21537 21538 21539 21540if test $pkg_failed = yes; then 21541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21542$as_echo "no" >&6; } 21543 21544if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21545 _pkg_short_errors_supported=yes 21546else 21547 _pkg_short_errors_supported=no 21548fi 21549 if test $_pkg_short_errors_supported = yes; then 21550 LUA_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "lua-5.2" 2>&1` 21551 else 21552 LUA_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "lua-5.2" 2>&1` 21553 fi 21554 # Put the nasty error message in config.log where it belongs 21555 echo "$LUA_PKG_ERRORS" >&5 21556 21557 as_fn_error $? "Package requirements (lua-5.2) were not met: 21558 21559$LUA_PKG_ERRORS 21560 21561Consider adjusting the PKG_CONFIG_PATH environment variable if you 21562installed software in a non-standard prefix. 21563 21564Alternatively, you may set the environment variables LUA_CFLAGS 21565and LUA_LIBS to avoid the need to call pkg-config. 21566See the pkg-config man page for more details." "$LINENO" 5 21567elif test $pkg_failed = untried; then 21568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21569$as_echo "no" >&6; } 21570 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21571$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21572as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21573is in your PATH or set the PKG_CONFIG environment variable to the full 21574path to pkg-config. 21575 21576Alternatively, you may set the environment variables LUA_CFLAGS 21577and LUA_LIBS to avoid the need to call pkg-config. 21578See the pkg-config man page for more details. 21579 21580To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21581See \`config.log' for more details" "$LINENO" 5; } 21582else 21583 LUA_CFLAGS=$pkg_cv_LUA_CFLAGS 21584 LUA_LIBS=$pkg_cv_LUA_LIBS 21585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21586$as_echo "yes" >&6; } 21587 have_lua=yes 21588 21589fi 21590 21591fi 21592 fi 21593 21594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lua" >&5 21595$as_echo_n "checking for lua... " >&6; } 21596 if test "$have_lua" = "yes"; then 21597 CXXFLAGS="$CXXFLAGS $LUA_CFLAGS" 21598 LIBS="$LIBS $LUA_LIBS" 21599 21600$as_echo "#define HAVE_LUA 1" >>confdefs.h 21601 21602 ac_cv_have_lua=yes 21603 fi 21604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_lua" >&5 21605$as_echo "$have_lua" >&6; } 21606fi 21607 21608if test -n "$PKG_CONFIG" && \ 21609 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 21610 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 21611 ac_status=$? 21612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21613 test $ac_status = 0 -o -n "$OPENSSL_CFLAGS" -o -n "$OPENSSL_LIBS"; }; then 21614 21615 21616pkg_failed=no 21617{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for OPENSSL" >&5 21618$as_echo_n "checking for OPENSSL... " >&6; } 21619 21620if test -n "$OPENSSL_CFLAGS"; then 21621 pkg_cv_OPENSSL_CFLAGS="$OPENSSL_CFLAGS" 21622 elif test -n "$PKG_CONFIG"; then 21623 if test -n "$PKG_CONFIG" && \ 21624 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 21625 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 21626 ac_status=$? 21627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21628 test $ac_status = 0; }; then 21629 pkg_cv_OPENSSL_CFLAGS=`$PKG_CONFIG --cflags "openssl" 2>/dev/null` 21630 test "x$?" != "x0" && pkg_failed=yes 21631else 21632 pkg_failed=yes 21633fi 21634 else 21635 pkg_failed=untried 21636fi 21637if test -n "$OPENSSL_LIBS"; then 21638 pkg_cv_OPENSSL_LIBS="$OPENSSL_LIBS" 21639 elif test -n "$PKG_CONFIG"; then 21640 if test -n "$PKG_CONFIG" && \ 21641 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"openssl\""; } >&5 21642 ($PKG_CONFIG --exists --print-errors "openssl") 2>&5 21643 ac_status=$? 21644 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 21645 test $ac_status = 0; }; then 21646 pkg_cv_OPENSSL_LIBS=`$PKG_CONFIG --libs "openssl" 2>/dev/null` 21647 test "x$?" != "x0" && pkg_failed=yes 21648else 21649 pkg_failed=yes 21650fi 21651 else 21652 pkg_failed=untried 21653fi 21654 21655 21656 21657if test $pkg_failed = yes; then 21658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21659$as_echo "no" >&6; } 21660 21661if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 21662 _pkg_short_errors_supported=yes 21663else 21664 _pkg_short_errors_supported=no 21665fi 21666 if test $_pkg_short_errors_supported = yes; then 21667 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "openssl" 2>&1` 21668 else 21669 OPENSSL_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "openssl" 2>&1` 21670 fi 21671 # Put the nasty error message in config.log where it belongs 21672 echo "$OPENSSL_PKG_ERRORS" >&5 21673 21674 as_fn_error $? "Package requirements (openssl) were not met: 21675 21676$OPENSSL_PKG_ERRORS 21677 21678Consider adjusting the PKG_CONFIG_PATH environment variable if you 21679installed software in a non-standard prefix. 21680 21681Alternatively, you may set the environment variables OPENSSL_CFLAGS 21682and OPENSSL_LIBS to avoid the need to call pkg-config. 21683See the pkg-config man page for more details." "$LINENO" 5 21684elif test $pkg_failed = untried; then 21685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21686$as_echo "no" >&6; } 21687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 21688$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 21689as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 21690is in your PATH or set the PKG_CONFIG environment variable to the full 21691path to pkg-config. 21692 21693Alternatively, you may set the environment variables OPENSSL_CFLAGS 21694and OPENSSL_LIBS to avoid the need to call pkg-config. 21695See the pkg-config man page for more details. 21696 21697To get pkg-config, see <http://pkg-config.freedesktop.org/>. 21698See \`config.log' for more details" "$LINENO" 5; } 21699else 21700 OPENSSL_CFLAGS=$pkg_cv_OPENSSL_CFLAGS 21701 OPENSSL_LIBS=$pkg_cv_OPENSSL_LIBS 21702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21703$as_echo "yes" >&6; } 21704 have_openssl=yes 21705 21706fi 21707 21708fi 21709 21710if test "$have_openssl" = "yes"; then 21711 CXXFLAGS="$CXXFLAGS $OPENSSL_CFLAGS" 21712 LIBS="$LIBS $OPENSSL_LIBS" 21713 21714$as_echo "#define HAVE_OPENSSL 1" >>confdefs.h 21715 21716 ac_cv_have_openssl=yes 21717 21718 ac_fn_cxx_check_header_mongrel "$LINENO" "openssl/sha.h" "ac_cv_header_openssl_sha_h" "$ac_includes_default" 21719if test "x$ac_cv_header_openssl_sha_h" = xyes; then : 21720 ac_fn_cxx_check_func "$LINENO" "SHA256_Init" "ac_cv_func_SHA256_Init" 21721if test "x$ac_cv_func_SHA256_Init" = xyes; then : 21722 21723$as_echo "#define HAVE_OPENSSL_SHA256 1" >>confdefs.h 21724 21725 have_openssl_sha256=yes 21726fi 21727 21728 21729fi 21730 21731 21732fi 21733 21734for ac_header in fstab.h 21735do : 21736 ac_fn_cxx_check_header_mongrel "$LINENO" "fstab.h" "ac_cv_header_fstab_h" "$ac_includes_default" 21737if test "x$ac_cv_header_fstab_h" = xyes; then : 21738 cat >>confdefs.h <<_ACEOF 21739#define HAVE_FSTAB_H 1 21740_ACEOF 21741 21742 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for getfsent" >&5 21743$as_echo_n "checking checking for getfsent... " >&6; } 21744 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21745/* end confdefs.h. */ 21746#include <fstab.h> 21747int 21748main () 21749{ 21750struct fstab *fstab_entry;fstab_entry = getfsent(); 21751 ; 21752 return 0; 21753} 21754_ACEOF 21755if ac_fn_cxx_try_compile "$LINENO"; then : 21756 21757$as_echo "#define HAVE_GETFSENT 1" >>confdefs.h 21758 21759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21760$as_echo "yes" >&6; } 21761else 21762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21763$as_echo "no" >&6; } 21764fi 21765rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21766 21767fi 21768 21769done 21770 21771for ac_header in sys/param.h 21772do : 21773 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default" 21774if test "x$ac_cv_header_sys_param_h" = xyes; then : 21775 cat >>confdefs.h <<_ACEOF 21776#define HAVE_SYS_PARAM_H 1 21777_ACEOF 21778 21779 for ac_header in sys/ucred.h 21780do : 21781 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "$ac_includes_default" 21782if test "x$ac_cv_header_sys_ucred_h" = xyes; then : 21783 cat >>confdefs.h <<_ACEOF 21784#define HAVE_SYS_UCRED_H 1 21785_ACEOF 21786 21787 for ac_header in sys/mount.h 21788do : 21789 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "$ac_includes_default" 21790if test "x$ac_cv_header_sys_mount_h" = xyes; then : 21791 cat >>confdefs.h <<_ACEOF 21792#define HAVE_SYS_MOUNT_H 1 21793_ACEOF 21794 21795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for getmntinfo with statfs args" >&5 21796$as_echo_n "checking checking for getmntinfo with statfs args... " >&6; } 21797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21798/* end confdefs.h. */ 21799#include <sys/param.h> 21800 #include <sys/ucred.h> 21801 #include <sys/mount.h> 21802int 21803main () 21804{ 21805struct statfs *mount_entries;int n;n = getmntinfo( &mount_entries, MNT_NOWAIT ); 21806 ; 21807 return 0; 21808} 21809_ACEOF 21810if ac_fn_cxx_try_compile "$LINENO"; then : 21811 21812$as_echo "#define HAVE_GETMNTINFO_FBSD 1" >>confdefs.h 21813 21814 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21815$as_echo "yes" >&6; } 21816else 21817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21818$as_echo "no" >&6; } 21819fi 21820rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21821 21822fi 21823 21824done 21825 21826 21827fi 21828 21829done 21830 21831 21832fi 21833 21834done 21835 21836for ac_header in sys/types.h 21837do : 21838 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default" 21839if test "x$ac_cv_header_sys_types_h" = xyes; then : 21840 cat >>confdefs.h <<_ACEOF 21841#define HAVE_SYS_TYPES_H 1 21842_ACEOF 21843 21844 for ac_header in sys/statvfs.h 21845do : 21846 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default" 21847if test "x$ac_cv_header_sys_statvfs_h" = xyes; then : 21848 cat >>confdefs.h <<_ACEOF 21849#define HAVE_SYS_STATVFS_H 1 21850_ACEOF 21851 21852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking checking for getmntinfo with statvfs args" >&5 21853$as_echo_n "checking checking for getmntinfo with statvfs args... " >&6; } 21854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21855/* end confdefs.h. */ 21856#include <sys/types.h> 21857 #include <sys/statvfs.h> 21858int 21859main () 21860{ 21861struct statvfs *mount_entries;int n;n = getmntinfo( &mount_entries, ST_NOWAIT ); 21862 ; 21863 return 0; 21864} 21865_ACEOF 21866if ac_fn_cxx_try_compile "$LINENO"; then : 21867 21868$as_echo "#define HAVE_GETMNTINFO_NBSD 1" >>confdefs.h 21869 21870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 21871$as_echo "yes" >&6; } 21872else 21873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 21874$as_echo "no" >&6; } 21875fi 21876rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21877 21878fi 21879 21880done 21881 21882 21883fi 21884 21885done 21886 21887 21888# Check whether --enable-developer was given. 21889if test "${enable_developer+set}" = set; then : 21890 enableval=$enable_developer; use_developer=$enableval 21891else 21892 use_developer=no 21893fi 21894 21895 21896if test "$use_developer" = yes; then 21897 $as_echo "#define DEVELOPER 1" >>confdefs.h 21898 21899fi 21900 21901 21902WORKER_LDADD="$X_LIBS $X_PRE_LIBS -lX11 $X_EXTRA_LIBS $AVFS_LDFLAGS $XFT_LDFLAGS" 21903 21904 21905 21906 21907 21908 21909 21910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for needed X include dir" >&5 21911$as_echo_n "checking for needed X include dir... " >&6; } 21912if ${ac_cv_dneedxf+:} false; then : 21913 $as_echo_n "(cached) " >&6 21914else 21915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21916/* end confdefs.h. */ 21917#include <X11/Xlib.h> 21918int 21919main () 21920{ 21921int x; x=0; 21922 ; 21923 return 0; 21924} 21925_ACEOF 21926if ac_fn_cxx_try_compile "$LINENO"; then : 21927 ac_cv_dneedxf=no 21928else 21929 ac_cv_dneedxf=yes 21930fi 21931rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 21932fi 21933{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_dneedxf" >&5 21934$as_echo "$ac_cv_dneedxf" >&6; } 21935if test x$ac_cv_dneedxf = xyes; then 21936 CPPFLAGS="$CPPFLAGS $X_CFLAGS" 21937fi 21938 21939if test "$use_xim" = "yes"; then 21940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for good XRegisterIMInstantiateCallback" >&5 21941$as_echo_n "checking for good XRegisterIMInstantiateCallback... " >&6; } 21942 21943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21944/* end confdefs.h. */ 21945#include <X11/Xlib.h> 21946 void AGUIX_im_inst_callback( Display *calldsp, XPointer client_data, XPointer call_data ) 21947 { 21948 } 21949 21950int 21951main () 21952{ 21953XRegisterIMInstantiateCallback( NULL, NULL, NULL, NULL, AGUIX_im_inst_callback, (XPointer)0); 21954 ; 21955 return 0; 21956} 21957_ACEOF 21958if ac_fn_cxx_try_compile "$LINENO"; then : 21959 xregisterokay=yes 21960else 21961 xregisterokay=no 21962fi 21963rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; 21964 21965 if test "$xregisterokay" = "yes" ; then 21966 $as_echo "#define XIM_XREGISTER_OKAY 1" >>confdefs.h 21967 21968 fi 21969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xregisterokay" >&5 21970$as_echo "$xregisterokay" >&6; } 21971fi 21972 21973if test "$use_xim" = "yes"; then 21974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XSetIMValues prototype" >&5 21975$as_echo_n "checking for XSetIMValues prototype... " >&6; } 21976 21977 save_CPPFLAGS=$CPPFLAGS 21978 CPPFLAGS="$CPPFLAGS -Werror" 21979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 21980/* end confdefs.h. */ 21981#include <X11/Xlib.h> 21982int 21983main () 21984{ 21985XSetIMValues( NULL, NULL ); 21986 ; 21987 return 0; 21988} 21989_ACEOF 21990if ac_fn_cxx_try_compile "$LINENO"; then : 21991 xsetimvaluespt=yes 21992else 21993 xsetimvaluespt=no 21994fi 21995rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; 21996 CPPFLAGS=$save_CPPFLAGS 21997 21998 if test "$xsetimvaluespt" = "yes" ; then 21999 $as_echo "#define HAVE_XSETIMVALUES_PROTOTYPE 1" >>confdefs.h 22000 22001 fi 22002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsetimvaluespt" >&5 22003$as_echo "$xsetimvaluespt" >&6; } 22004fi 22005 22006have_hal_dbus=no 22007 22008# Check whether --with-hal was given. 22009if test "${with_hal+set}" = set; then : 22010 withval=$with_hal; ac_cv_use_hal=$withval 22011else 22012 ac_cv_use_hal=yes 22013fi 22014 22015have_dbus=no 22016 22017# Check whether --with-dbus was given. 22018if test "${with_dbus+set}" = set; then : 22019 withval=$with_dbus; ac_cv_use_dbus=$withval 22020else 22021 ac_cv_use_dbus=yes 22022fi 22023 22024 22025if test "$ac_cv_use_dbus" = "yes"; then 22026 if test -n "$PKG_CONFIG" && \ 22027 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 22028 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 22029 ac_status=$? 22030 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22031 test $ac_status = 0; }; then 22032 22033 22034pkg_failed=no 22035{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for DBUS" >&5 22036$as_echo_n "checking for DBUS... " >&6; } 22037 22038if test -n "$DBUS_CFLAGS"; then 22039 pkg_cv_DBUS_CFLAGS="$DBUS_CFLAGS" 22040 elif test -n "$PKG_CONFIG"; then 22041 if test -n "$PKG_CONFIG" && \ 22042 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 22043 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 22044 ac_status=$? 22045 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22046 test $ac_status = 0; }; then 22047 pkg_cv_DBUS_CFLAGS=`$PKG_CONFIG --cflags "dbus-1" 2>/dev/null` 22048 test "x$?" != "x0" && pkg_failed=yes 22049else 22050 pkg_failed=yes 22051fi 22052 else 22053 pkg_failed=untried 22054fi 22055if test -n "$DBUS_LIBS"; then 22056 pkg_cv_DBUS_LIBS="$DBUS_LIBS" 22057 elif test -n "$PKG_CONFIG"; then 22058 if test -n "$PKG_CONFIG" && \ 22059 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"dbus-1\""; } >&5 22060 ($PKG_CONFIG --exists --print-errors "dbus-1") 2>&5 22061 ac_status=$? 22062 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22063 test $ac_status = 0; }; then 22064 pkg_cv_DBUS_LIBS=`$PKG_CONFIG --libs "dbus-1" 2>/dev/null` 22065 test "x$?" != "x0" && pkg_failed=yes 22066else 22067 pkg_failed=yes 22068fi 22069 else 22070 pkg_failed=untried 22071fi 22072 22073 22074 22075if test $pkg_failed = yes; then 22076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22077$as_echo "no" >&6; } 22078 22079if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22080 _pkg_short_errors_supported=yes 22081else 22082 _pkg_short_errors_supported=no 22083fi 22084 if test $_pkg_short_errors_supported = yes; then 22085 DBUS_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "dbus-1" 2>&1` 22086 else 22087 DBUS_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "dbus-1" 2>&1` 22088 fi 22089 # Put the nasty error message in config.log where it belongs 22090 echo "$DBUS_PKG_ERRORS" >&5 22091 22092 as_fn_error $? "Package requirements (dbus-1) were not met: 22093 22094$DBUS_PKG_ERRORS 22095 22096Consider adjusting the PKG_CONFIG_PATH environment variable if you 22097installed software in a non-standard prefix. 22098 22099Alternatively, you may set the environment variables DBUS_CFLAGS 22100and DBUS_LIBS to avoid the need to call pkg-config. 22101See the pkg-config man page for more details." "$LINENO" 5 22102elif test $pkg_failed = untried; then 22103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22104$as_echo "no" >&6; } 22105 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22106$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22107as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22108is in your PATH or set the PKG_CONFIG environment variable to the full 22109path to pkg-config. 22110 22111Alternatively, you may set the environment variables DBUS_CFLAGS 22112and DBUS_LIBS to avoid the need to call pkg-config. 22113See the pkg-config man page for more details. 22114 22115To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22116See \`config.log' for more details" "$LINENO" 5; } 22117else 22118 DBUS_CFLAGS=$pkg_cv_DBUS_CFLAGS 22119 DBUS_LIBS=$pkg_cv_DBUS_LIBS 22120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22121$as_echo "yes" >&6; } 22122 have_dbus=yes 22123fi 22124 22125fi 22126 22127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus-1 and hal-storage" >&5 22128$as_echo_n "checking for dbus-1 and hal-storage... " >&6; } 22129 if test "$have_dbus" = "yes"; then 22130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 22131$as_echo "\"yes\"" >&6; } 22132 22133 if test "$ac_cv_use_hal" = "yes"; then 22134 if test -n "$PKG_CONFIG" && \ 22135 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal-storage\""; } >&5 22136 ($PKG_CONFIG --exists --print-errors "hal-storage") 2>&5 22137 ac_status=$? 22138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22139 test $ac_status = 0; }; then 22140 22141 22142pkg_failed=no 22143{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for HAL_STORAGE" >&5 22144$as_echo_n "checking for HAL_STORAGE... " >&6; } 22145 22146if test -n "$HAL_STORAGE_CFLAGS"; then 22147 pkg_cv_HAL_STORAGE_CFLAGS="$HAL_STORAGE_CFLAGS" 22148 elif test -n "$PKG_CONFIG"; then 22149 if test -n "$PKG_CONFIG" && \ 22150 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal-storage\""; } >&5 22151 ($PKG_CONFIG --exists --print-errors "hal-storage") 2>&5 22152 ac_status=$? 22153 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22154 test $ac_status = 0; }; then 22155 pkg_cv_HAL_STORAGE_CFLAGS=`$PKG_CONFIG --cflags "hal-storage" 2>/dev/null` 22156 test "x$?" != "x0" && pkg_failed=yes 22157else 22158 pkg_failed=yes 22159fi 22160 else 22161 pkg_failed=untried 22162fi 22163if test -n "$HAL_STORAGE_LIBS"; then 22164 pkg_cv_HAL_STORAGE_LIBS="$HAL_STORAGE_LIBS" 22165 elif test -n "$PKG_CONFIG"; then 22166 if test -n "$PKG_CONFIG" && \ 22167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"hal-storage\""; } >&5 22168 ($PKG_CONFIG --exists --print-errors "hal-storage") 2>&5 22169 ac_status=$? 22170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 22171 test $ac_status = 0; }; then 22172 pkg_cv_HAL_STORAGE_LIBS=`$PKG_CONFIG --libs "hal-storage" 2>/dev/null` 22173 test "x$?" != "x0" && pkg_failed=yes 22174else 22175 pkg_failed=yes 22176fi 22177 else 22178 pkg_failed=untried 22179fi 22180 22181 22182 22183if test $pkg_failed = yes; then 22184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22185$as_echo "no" >&6; } 22186 22187if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then 22188 _pkg_short_errors_supported=yes 22189else 22190 _pkg_short_errors_supported=no 22191fi 22192 if test $_pkg_short_errors_supported = yes; then 22193 HAL_STORAGE_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "hal-storage" 2>&1` 22194 else 22195 HAL_STORAGE_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "hal-storage" 2>&1` 22196 fi 22197 # Put the nasty error message in config.log where it belongs 22198 echo "$HAL_STORAGE_PKG_ERRORS" >&5 22199 22200 as_fn_error $? "Package requirements (hal-storage) were not met: 22201 22202$HAL_STORAGE_PKG_ERRORS 22203 22204Consider adjusting the PKG_CONFIG_PATH environment variable if you 22205installed software in a non-standard prefix. 22206 22207Alternatively, you may set the environment variables HAL_STORAGE_CFLAGS 22208and HAL_STORAGE_LIBS to avoid the need to call pkg-config. 22209See the pkg-config man page for more details." "$LINENO" 5 22210elif test $pkg_failed = untried; then 22211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22212$as_echo "no" >&6; } 22213 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 22214$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 22215as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it 22216is in your PATH or set the PKG_CONFIG environment variable to the full 22217path to pkg-config. 22218 22219Alternatively, you may set the environment variables HAL_STORAGE_CFLAGS 22220and HAL_STORAGE_LIBS to avoid the need to call pkg-config. 22221See the pkg-config man page for more details. 22222 22223To get pkg-config, see <http://pkg-config.freedesktop.org/>. 22224See \`config.log' for more details" "$LINENO" 5; } 22225else 22226 HAL_STORAGE_CFLAGS=$pkg_cv_HAL_STORAGE_CFLAGS 22227 HAL_STORAGE_LIBS=$pkg_cv_HAL_STORAGE_LIBS 22228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22229$as_echo "yes" >&6; } 22230 have_hal_dbus=yes 22231fi 22232 22233fi 22234 fi 22235 22236 if test "$have_hal_dbus" = "yes"; then 22237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hal-storage" >&5 22238$as_echo_n "checking for hal-storage... " >&6; } 22239 22240$as_echo "#define HAVE_HAL_DBUS 1" >>confdefs.h 22241 22242 CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS $HAL_STORAGE_CFLAGS" 22243 LIBS="$LIBS $DBUS_LIBS $HAL_STORAGE_LIBS" 22244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 22245$as_echo "\"yes\"" >&6; } 22246 have_dbus=no 22247 else 22248 if test "$ac_cv_use_hal" = "yes"; then 22249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for hal-storage" >&5 22250$as_echo_n "checking for hal-storage... " >&6; } 22251 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no (using dbus for udisks support)\"" >&5 22252$as_echo "\"no (using dbus for udisks support)\"" >&6; } 22253 fi 22254 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbus" >&5 22255$as_echo_n "checking for dbus... " >&6; } 22256 22257$as_echo "#define HAVE_DBUS 1" >>confdefs.h 22258 22259 CXXFLAGS="$CXXFLAGS $DBUS_CFLAGS" 22260 LIBS="$LIBS $DBUS_LIBS" 22261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"yes\"" >&5 22262$as_echo "\"yes\"" >&6; } 22263 fi 22264 else 22265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"no\"" >&5 22266$as_echo "\"no\"" >&6; } 22267 fi 22268fi 22269 22270{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for XConnectionNumber" >&5 22271$as_echo_n "checking for XConnectionNumber... " >&6; } 22272 22273save_CPPFLAGS=$CPPFLAGS 22274CPPFLAGS="$CPPFLAGS -Werror" 22275cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22276/* end confdefs.h. */ 22277#include <X11/Xlib.h> 22278int 22279main () 22280{ 22281XConnectionNumber( NULL ); 22282 ; 22283 return 0; 22284} 22285_ACEOF 22286if ac_fn_cxx_try_compile "$LINENO"; then : 22287 xconnectionnumber=yes 22288else 22289 xconnectionnumber=no 22290fi 22291rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; 22292CPPFLAGS=$save_CPPFLAGS 22293 22294if test "$xconnectionnumber" = "yes" ; then 22295 22296$as_echo "#define HAVE_XCONNECTIONNUMBER 1" >>confdefs.h 22297 22298fi 22299{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $xconnectionnumber" >&5 22300$as_echo "$xconnectionnumber" >&6; } 22301 22302 22303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for XineramaQueryScreens in -lXinerama" >&5 22304$as_echo_n "checking for XineramaQueryScreens in -lXinerama... " >&6; } 22305if ${ac_cv_lib_Xinerama_XineramaQueryScreens+:} false; then : 22306 $as_echo_n "(cached) " >&6 22307else 22308 ac_check_lib_save_LIBS=$LIBS 22309LIBS="-lXinerama $LIBS" 22310cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22311/* end confdefs.h. */ 22312 22313/* Override any GCC internal prototype to avoid an error. 22314 Use char because int might match the return type of a GCC 22315 builtin and then its argument prototype would still apply. */ 22316#ifdef __cplusplus 22317extern "C" 22318#endif 22319char XineramaQueryScreens (); 22320int 22321main () 22322{ 22323return XineramaQueryScreens (); 22324 ; 22325 return 0; 22326} 22327_ACEOF 22328if ac_fn_cxx_try_link "$LINENO"; then : 22329 ac_cv_lib_Xinerama_XineramaQueryScreens=yes 22330else 22331 ac_cv_lib_Xinerama_XineramaQueryScreens=no 22332fi 22333rm -f core conftest.err conftest.$ac_objext \ 22334 conftest$ac_exeext conftest.$ac_ext 22335LIBS=$ac_check_lib_save_LIBS 22336fi 22337{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_Xinerama_XineramaQueryScreens" >&5 22338$as_echo "$ac_cv_lib_Xinerama_XineramaQueryScreens" >&6; } 22339if test "x$ac_cv_lib_Xinerama_XineramaQueryScreens" = xyes; then : 22340 LIBS="$LIBS -lXinerama" 22341 xinerama_lib=yes 22342 22343else 22344 xinerama_lib=no 22345fi 22346 22347 22348 if test "x$xinerama_lib" = "xyes"; then : 22349 22350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working Xinerama" >&5 22351$as_echo_n "checking for working Xinerama... " >&6; } 22352 22353 save_CPPFLAGS=$CPPFLAGS 22354 CPPFLAGS="$CPPFLAGS -Werror" 22355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22356/* end confdefs.h. */ 22357 22358 #include <X11/extensions/Xinerama.h> 22359 22360int 22361main () 22362{ 22363XineramaQueryScreens( NULL, NULL ); 22364 ; 22365 return 0; 22366} 22367_ACEOF 22368if ac_fn_cxx_try_compile "$LINENO"; then : 22369 xinerama=yes 22370else 22371 xinerama=no 22372fi 22373rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext; 22374 CPPFLAGS=$save_CPPFLAGS 22375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xinerama" >&5 22376$as_echo "$xinerama" >&6; } 22377 22378else 22379 22380 xinerama=no 22381 22382fi 22383 22384 if test "x$xinerama" = "xyes"; then : 22385 22386 22387$as_echo "#define HAVE_XINERAMA 1" >>confdefs.h 22388 22389 use_xinerama=yes 22390 22391else 22392 22393 use_xinerama=no 22394 22395fi 22396 22397 22398 22399if test "$GXX" = "yes"; then 22400 old_CXXFLAGS="$CXXFLAGS" 22401 CXXFLAGS="$CXXFLAGS -Wall" 22402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ works with \"-Wall\"" >&5 22403$as_echo_n "checking whether the C++ works with \"-Wall\"... " >&6; } 22404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22405/* end confdefs.h. */ 22406 22407int 22408main () 22409{ 22410 int test=0; test=5; 22411 ; 22412 return 0; 22413} 22414_ACEOF 22415if ac_fn_cxx_try_compile "$LINENO"; then : 22416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 22417$as_echo "yes" >&6; } 22418else 22419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 22420$as_echo "no" >&6; } 22421 CXXFLAGS="$old_CXXFLAGS" 22422 22423fi 22424rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 22425fi 22426 22427have_inotify=no 22428# Check whether --enable-inotify was given. 22429if test "${enable_inotify+set}" = set; then : 22430 enableval=$enable_inotify; use_inotify=$enableval 22431else 22432 use_inotify=yes 22433fi 22434 22435 22436if test "$use_inotify" = "yes"; then 22437 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/inotify.h" "ac_cv_header_sys_inotify_h" "$ac_includes_default" 22438if test "x$ac_cv_header_sys_inotify_h" = xyes; then : 22439 for ac_func in inotify_init 22440do : 22441 ac_fn_cxx_check_func "$LINENO" "inotify_init" "ac_cv_func_inotify_init" 22442if test "x$ac_cv_func_inotify_init" = xyes; then : 22443 cat >>confdefs.h <<_ACEOF 22444#define HAVE_INOTIFY_INIT 1 22445_ACEOF 22446 22447$as_echo "#define HAVE_INOTIFY 1" >>confdefs.h 22448 22449 have_inotify=yes 22450else 22451 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing inotify_init" >&5 22452$as_echo_n "checking for library containing inotify_init... " >&6; } 22453if ${ac_cv_search_inotify_init+:} false; then : 22454 $as_echo_n "(cached) " >&6 22455else 22456 ac_func_search_save_LIBS=$LIBS 22457cat confdefs.h - <<_ACEOF >conftest.$ac_ext 22458/* end confdefs.h. */ 22459 22460/* Override any GCC internal prototype to avoid an error. 22461 Use char because int might match the return type of a GCC 22462 builtin and then its argument prototype would still apply. */ 22463#ifdef __cplusplus 22464extern "C" 22465#endif 22466char inotify_init (); 22467int 22468main () 22469{ 22470return inotify_init (); 22471 ; 22472 return 0; 22473} 22474_ACEOF 22475for ac_lib in '' inotify; do 22476 if test -z "$ac_lib"; then 22477 ac_res="none required" 22478 else 22479 ac_res=-l$ac_lib 22480 LIBS="-l$ac_lib $ac_func_search_save_LIBS" 22481 fi 22482 if ac_fn_cxx_try_link "$LINENO"; then : 22483 ac_cv_search_inotify_init=$ac_res 22484fi 22485rm -f core conftest.err conftest.$ac_objext \ 22486 conftest$ac_exeext 22487 if ${ac_cv_search_inotify_init+:} false; then : 22488 break 22489fi 22490done 22491if ${ac_cv_search_inotify_init+:} false; then : 22492 22493else 22494 ac_cv_search_inotify_init=no 22495fi 22496rm conftest.$ac_ext 22497LIBS=$ac_func_search_save_LIBS 22498fi 22499{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_inotify_init" >&5 22500$as_echo "$ac_cv_search_inotify_init" >&6; } 22501ac_res=$ac_cv_search_inotify_init 22502if test "$ac_res" != no; then : 22503 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS" 22504 22505$as_echo "#define HAVE_INOTIFY 1" >>confdefs.h 22506 22507 have_inotify=yes 22508fi 22509 22510 22511fi 22512done 22513 22514 22515fi 22516 22517 22518fi 22519 22520 22521if test "$prefix" = NONE; then 22522 cat >>confdefs.h <<_ACEOF 22523#define PREFIX "$ac_default_prefix" 22524_ACEOF 22525 22526 instprefix=$ac_default_prefix 22527else 22528 cat >>confdefs.h <<_ACEOF 22529#define PREFIX "$prefix" 22530_ACEOF 22531 22532 instprefix=$prefix 22533fi 22534 22535 22536 22537 22538 22539 22540 22541 22542 22543 22544 22545 22546 22547 22548 22549QUOTED_COMPANY_CLANG_ARGS="" 22550for f in $CXXFLAGS; do 22551 QUOTED_COMPANY_CLANG_ARGS="$QUOTED_COMPANY_CLANG_ARGS \"$f\"" 22552done 22553for f in $CPPFLAGS; do 22554 QUOTED_COMPANY_CLANG_ARGS="$QUOTED_COMPANY_CLANG_ARGS \"$f\"" 22555done 22556 22557 22558ac_config_files="$ac_config_files Makefile src/Makefile src/aguix/Makefile scripts/Makefile catalogs/Makefile Icons/Makefile examples/Makefile man/Makefile man/fr/Makefile man/it/Makefile m4/Makefile contrib/Makefile hints/Makefile config-updates/Makefile contrib/dir-locals.el" 22559 22560cat >confcache <<\_ACEOF 22561# This file is a shell script that caches the results of configure 22562# tests run on this system so they can be shared between configure 22563# scripts and configure runs, see configure's option --config-cache. 22564# It is not useful on other systems. If it contains results you don't 22565# want to keep, you may remove or edit it. 22566# 22567# config.status only pays attention to the cache file if you give it 22568# the --recheck option to rerun configure. 22569# 22570# `ac_cv_env_foo' variables (set or unset) will be overridden when 22571# loading this file, other *unset* `ac_cv_foo' will be assigned the 22572# following values. 22573 22574_ACEOF 22575 22576# The following way of writing the cache mishandles newlines in values, 22577# but we know of no workaround that is simple, portable, and efficient. 22578# So, we kill variables containing newlines. 22579# Ultrix sh set writes to stderr and can't be redirected directly, 22580# and sets the high bit in the cache file unless we assign to the vars. 22581( 22582 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 22583 eval ac_val=\$$ac_var 22584 case $ac_val in #( 22585 *${as_nl}*) 22586 case $ac_var in #( 22587 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 22588$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 22589 esac 22590 case $ac_var in #( 22591 _ | IFS | as_nl) ;; #( 22592 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 22593 *) { eval $ac_var=; unset $ac_var;} ;; 22594 esac ;; 22595 esac 22596 done 22597 22598 (set) 2>&1 | 22599 case $as_nl`(ac_space=' '; set) 2>&1` in #( 22600 *${as_nl}ac_space=\ *) 22601 # `set' does not quote correctly, so add quotes: double-quote 22602 # substitution turns \\\\ into \\, and sed turns \\ into \. 22603 sed -n \ 22604 "s/'/'\\\\''/g; 22605 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 22606 ;; #( 22607 *) 22608 # `set' quotes correctly as required by POSIX, so do not add quotes. 22609 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 22610 ;; 22611 esac | 22612 sort 22613) | 22614 sed ' 22615 /^ac_cv_env_/b end 22616 t clear 22617 :clear 22618 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 22619 t end 22620 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 22621 :end' >>confcache 22622if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 22623 if test -w "$cache_file"; then 22624 if test "x$cache_file" != "x/dev/null"; then 22625 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 22626$as_echo "$as_me: updating cache $cache_file" >&6;} 22627 if test ! -f "$cache_file" || test -h "$cache_file"; then 22628 cat confcache >"$cache_file" 22629 else 22630 case $cache_file in #( 22631 */* | ?:*) 22632 mv -f confcache "$cache_file"$$ && 22633 mv -f "$cache_file"$$ "$cache_file" ;; #( 22634 *) 22635 mv -f confcache "$cache_file" ;; 22636 esac 22637 fi 22638 fi 22639 else 22640 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 22641$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 22642 fi 22643fi 22644rm -f confcache 22645 22646test "x$prefix" = xNONE && prefix=$ac_default_prefix 22647# Let make expand exec_prefix. 22648test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 22649 22650DEFS=-DHAVE_CONFIG_H 22651 22652ac_libobjs= 22653ac_ltlibobjs= 22654for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 22655 # 1. Remove the extension, and $U if already installed. 22656 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 22657 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 22658 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 22659 # will be set to the directory where LIBOBJS objects are built. 22660 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 22661 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 22662done 22663LIBOBJS=$ac_libobjs 22664 22665LTLIBOBJS=$ac_ltlibobjs 22666 22667 22668{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 22669$as_echo_n "checking that generated files are newer than configure... " >&6; } 22670 if test -n "$am_sleep_pid"; then 22671 # Hide warnings about reused PIDs. 22672 wait $am_sleep_pid 2>/dev/null 22673 fi 22674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 22675$as_echo "done" >&6; } 22676 if test -n "$EXEEXT"; then 22677 am__EXEEXT_TRUE= 22678 am__EXEEXT_FALSE='#' 22679else 22680 am__EXEEXT_TRUE='#' 22681 am__EXEEXT_FALSE= 22682fi 22683 22684if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 22685 as_fn_error $? "conditional \"AMDEP\" was never defined. 22686Usually this means the macro was only invoked conditionally." "$LINENO" 5 22687fi 22688if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 22689 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 22690Usually this means the macro was only invoked conditionally." "$LINENO" 5 22691fi 22692if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 22693 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 22694Usually this means the macro was only invoked conditionally." "$LINENO" 5 22695fi 22696if test -z "${USE_TESTS_TRUE}" && test -z "${USE_TESTS_FALSE}"; then 22697 as_fn_error $? "conditional \"USE_TESTS\" was never defined. 22698Usually this means the macro was only invoked conditionally." "$LINENO" 5 22699fi 22700 22701: "${CONFIG_STATUS=./config.status}" 22702ac_write_fail=0 22703ac_clean_files_save=$ac_clean_files 22704ac_clean_files="$ac_clean_files $CONFIG_STATUS" 22705{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 22706$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 22707as_write_fail=0 22708cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 22709#! $SHELL 22710# Generated by $as_me. 22711# Run this file to recreate the current configuration. 22712# Compiler output produced by configure, useful for debugging 22713# configure, is in config.log if it exists. 22714 22715debug=false 22716ac_cs_recheck=false 22717ac_cs_silent=false 22718 22719SHELL=\${CONFIG_SHELL-$SHELL} 22720export SHELL 22721_ASEOF 22722cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 22723## -------------------- ## 22724## M4sh Initialization. ## 22725## -------------------- ## 22726 22727# Be more Bourne compatible 22728DUALCASE=1; export DUALCASE # for MKS sh 22729if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 22730 emulate sh 22731 NULLCMD=: 22732 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 22733 # is contrary to our usage. Disable this feature. 22734 alias -g '${1+"$@"}'='"$@"' 22735 setopt NO_GLOB_SUBST 22736else 22737 case `(set -o) 2>/dev/null` in #( 22738 *posix*) : 22739 set -o posix ;; #( 22740 *) : 22741 ;; 22742esac 22743fi 22744 22745 22746as_nl=' 22747' 22748export as_nl 22749# Printing a long string crashes Solaris 7 /usr/bin/printf. 22750as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 22751as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 22752as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 22753# Prefer a ksh shell builtin over an external printf program on Solaris, 22754# but without wasting forks for bash or zsh. 22755if test -z "$BASH_VERSION$ZSH_VERSION" \ 22756 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 22757 as_echo='print -r --' 22758 as_echo_n='print -rn --' 22759elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 22760 as_echo='printf %s\n' 22761 as_echo_n='printf %s' 22762else 22763 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 22764 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 22765 as_echo_n='/usr/ucb/echo -n' 22766 else 22767 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 22768 as_echo_n_body='eval 22769 arg=$1; 22770 case $arg in #( 22771 *"$as_nl"*) 22772 expr "X$arg" : "X\\(.*\\)$as_nl"; 22773 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 22774 esac; 22775 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 22776 ' 22777 export as_echo_n_body 22778 as_echo_n='sh -c $as_echo_n_body as_echo' 22779 fi 22780 export as_echo_body 22781 as_echo='sh -c $as_echo_body as_echo' 22782fi 22783 22784# The user is always right. 22785if test "${PATH_SEPARATOR+set}" != set; then 22786 PATH_SEPARATOR=: 22787 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 22788 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 22789 PATH_SEPARATOR=';' 22790 } 22791fi 22792 22793 22794# IFS 22795# We need space, tab and new line, in precisely that order. Quoting is 22796# there to prevent editors from complaining about space-tab. 22797# (If _AS_PATH_WALK were called with IFS unset, it would disable word 22798# splitting by setting IFS to empty value.) 22799IFS=" "" $as_nl" 22800 22801# Find who we are. Look in the path if we contain no directory separator. 22802as_myself= 22803case $0 in #(( 22804 *[\\/]* ) as_myself=$0 ;; 22805 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 22806for as_dir in $PATH 22807do 22808 IFS=$as_save_IFS 22809 test -z "$as_dir" && as_dir=. 22810 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 22811 done 22812IFS=$as_save_IFS 22813 22814 ;; 22815esac 22816# We did not find ourselves, most probably we were run as `sh COMMAND' 22817# in which case we are not to be found in the path. 22818if test "x$as_myself" = x; then 22819 as_myself=$0 22820fi 22821if test ! -f "$as_myself"; then 22822 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 22823 exit 1 22824fi 22825 22826# Unset variables that we do not need and which cause bugs (e.g. in 22827# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 22828# suppresses any "Segmentation fault" message there. '((' could 22829# trigger a bug in pdksh 5.2.14. 22830for as_var in BASH_ENV ENV MAIL MAILPATH 22831do eval test x\${$as_var+set} = xset \ 22832 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 22833done 22834PS1='$ ' 22835PS2='> ' 22836PS4='+ ' 22837 22838# NLS nuisances. 22839LC_ALL=C 22840export LC_ALL 22841LANGUAGE=C 22842export LANGUAGE 22843 22844# CDPATH. 22845(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 22846 22847 22848# as_fn_error STATUS ERROR [LINENO LOG_FD] 22849# ---------------------------------------- 22850# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 22851# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 22852# script with STATUS, using 1 if that was 0. 22853as_fn_error () 22854{ 22855 as_status=$1; test $as_status -eq 0 && as_status=1 22856 if test "$4"; then 22857 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 22858 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 22859 fi 22860 $as_echo "$as_me: error: $2" >&2 22861 as_fn_exit $as_status 22862} # as_fn_error 22863 22864 22865# as_fn_set_status STATUS 22866# ----------------------- 22867# Set $? to STATUS, without forking. 22868as_fn_set_status () 22869{ 22870 return $1 22871} # as_fn_set_status 22872 22873# as_fn_exit STATUS 22874# ----------------- 22875# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 22876as_fn_exit () 22877{ 22878 set +e 22879 as_fn_set_status $1 22880 exit $1 22881} # as_fn_exit 22882 22883# as_fn_unset VAR 22884# --------------- 22885# Portably unset VAR. 22886as_fn_unset () 22887{ 22888 { eval $1=; unset $1;} 22889} 22890as_unset=as_fn_unset 22891# as_fn_append VAR VALUE 22892# ---------------------- 22893# Append the text in VALUE to the end of the definition contained in VAR. Take 22894# advantage of any shell optimizations that allow amortized linear growth over 22895# repeated appends, instead of the typical quadratic growth present in naive 22896# implementations. 22897if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 22898 eval 'as_fn_append () 22899 { 22900 eval $1+=\$2 22901 }' 22902else 22903 as_fn_append () 22904 { 22905 eval $1=\$$1\$2 22906 } 22907fi # as_fn_append 22908 22909# as_fn_arith ARG... 22910# ------------------ 22911# Perform arithmetic evaluation on the ARGs, and store the result in the 22912# global $as_val. Take advantage of shells that can avoid forks. The arguments 22913# must be portable across $(()) and expr. 22914if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 22915 eval 'as_fn_arith () 22916 { 22917 as_val=$(( $* )) 22918 }' 22919else 22920 as_fn_arith () 22921 { 22922 as_val=`expr "$@" || test $? -eq 1` 22923 } 22924fi # as_fn_arith 22925 22926 22927if expr a : '\(a\)' >/dev/null 2>&1 && 22928 test "X`expr 00001 : '.*\(...\)'`" = X001; then 22929 as_expr=expr 22930else 22931 as_expr=false 22932fi 22933 22934if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 22935 as_basename=basename 22936else 22937 as_basename=false 22938fi 22939 22940if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 22941 as_dirname=dirname 22942else 22943 as_dirname=false 22944fi 22945 22946as_me=`$as_basename -- "$0" || 22947$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 22948 X"$0" : 'X\(//\)$' \| \ 22949 X"$0" : 'X\(/\)' \| . 2>/dev/null || 22950$as_echo X/"$0" | 22951 sed '/^.*\/\([^/][^/]*\)\/*$/{ 22952 s//\1/ 22953 q 22954 } 22955 /^X\/\(\/\/\)$/{ 22956 s//\1/ 22957 q 22958 } 22959 /^X\/\(\/\).*/{ 22960 s//\1/ 22961 q 22962 } 22963 s/.*/./; q'` 22964 22965# Avoid depending upon Character Ranges. 22966as_cr_letters='abcdefghijklmnopqrstuvwxyz' 22967as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 22968as_cr_Letters=$as_cr_letters$as_cr_LETTERS 22969as_cr_digits='0123456789' 22970as_cr_alnum=$as_cr_Letters$as_cr_digits 22971 22972ECHO_C= ECHO_N= ECHO_T= 22973case `echo -n x` in #((((( 22974-n*) 22975 case `echo 'xy\c'` in 22976 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 22977 xy) ECHO_C='\c';; 22978 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 22979 ECHO_T=' ';; 22980 esac;; 22981*) 22982 ECHO_N='-n';; 22983esac 22984 22985rm -f conf$$ conf$$.exe conf$$.file 22986if test -d conf$$.dir; then 22987 rm -f conf$$.dir/conf$$.file 22988else 22989 rm -f conf$$.dir 22990 mkdir conf$$.dir 2>/dev/null 22991fi 22992if (echo >conf$$.file) 2>/dev/null; then 22993 if ln -s conf$$.file conf$$ 2>/dev/null; then 22994 as_ln_s='ln -s' 22995 # ... but there are two gotchas: 22996 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 22997 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 22998 # In both cases, we have to default to `cp -pR'. 22999 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 23000 as_ln_s='cp -pR' 23001 elif ln conf$$.file conf$$ 2>/dev/null; then 23002 as_ln_s=ln 23003 else 23004 as_ln_s='cp -pR' 23005 fi 23006else 23007 as_ln_s='cp -pR' 23008fi 23009rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 23010rmdir conf$$.dir 2>/dev/null 23011 23012 23013# as_fn_mkdir_p 23014# ------------- 23015# Create "$as_dir" as a directory, including parents if necessary. 23016as_fn_mkdir_p () 23017{ 23018 23019 case $as_dir in #( 23020 -*) as_dir=./$as_dir;; 23021 esac 23022 test -d "$as_dir" || eval $as_mkdir_p || { 23023 as_dirs= 23024 while :; do 23025 case $as_dir in #( 23026 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 23027 *) as_qdir=$as_dir;; 23028 esac 23029 as_dirs="'$as_qdir' $as_dirs" 23030 as_dir=`$as_dirname -- "$as_dir" || 23031$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 23032 X"$as_dir" : 'X\(//\)[^/]' \| \ 23033 X"$as_dir" : 'X\(//\)$' \| \ 23034 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 23035$as_echo X"$as_dir" | 23036 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 23037 s//\1/ 23038 q 23039 } 23040 /^X\(\/\/\)[^/].*/{ 23041 s//\1/ 23042 q 23043 } 23044 /^X\(\/\/\)$/{ 23045 s//\1/ 23046 q 23047 } 23048 /^X\(\/\).*/{ 23049 s//\1/ 23050 q 23051 } 23052 s/.*/./; q'` 23053 test -d "$as_dir" && break 23054 done 23055 test -z "$as_dirs" || eval "mkdir $as_dirs" 23056 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 23057 23058 23059} # as_fn_mkdir_p 23060if mkdir -p . 2>/dev/null; then 23061 as_mkdir_p='mkdir -p "$as_dir"' 23062else 23063 test -d ./-p && rmdir ./-p 23064 as_mkdir_p=false 23065fi 23066 23067 23068# as_fn_executable_p FILE 23069# ----------------------- 23070# Test if FILE is an executable regular file. 23071as_fn_executable_p () 23072{ 23073 test -f "$1" && test -x "$1" 23074} # as_fn_executable_p 23075as_test_x='test -x' 23076as_executable_p=as_fn_executable_p 23077 23078# Sed expression to map a string onto a valid CPP name. 23079as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 23080 23081# Sed expression to map a string onto a valid variable name. 23082as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 23083 23084 23085exec 6>&1 23086## ----------------------------------- ## 23087## Main body of $CONFIG_STATUS script. ## 23088## ----------------------------------- ## 23089_ASEOF 23090test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 23091 23092cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23093# Save the log message, to keep $0 and so on meaningful, and to 23094# report actual input values of CONFIG_FILES etc. instead of their 23095# values after options handling. 23096ac_log=" 23097This file was extended by worker $as_me 4.10.0, which was 23098generated by GNU Autoconf 2.69. Invocation command line was 23099 23100 CONFIG_FILES = $CONFIG_FILES 23101 CONFIG_HEADERS = $CONFIG_HEADERS 23102 CONFIG_LINKS = $CONFIG_LINKS 23103 CONFIG_COMMANDS = $CONFIG_COMMANDS 23104 $ $0 $@ 23105 23106on `(hostname || uname -n) 2>/dev/null | sed 1q` 23107" 23108 23109_ACEOF 23110 23111case $ac_config_files in *" 23112"*) set x $ac_config_files; shift; ac_config_files=$*;; 23113esac 23114 23115case $ac_config_headers in *" 23116"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 23117esac 23118 23119 23120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23121# Files that config.status was made for. 23122config_files="$ac_config_files" 23123config_headers="$ac_config_headers" 23124config_commands="$ac_config_commands" 23125 23126_ACEOF 23127 23128cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23129ac_cs_usage="\ 23130\`$as_me' instantiates files and other configuration actions 23131from templates according to the current configuration. Unless the files 23132and actions are specified as TAGs, all are instantiated by default. 23133 23134Usage: $0 [OPTION]... [TAG]... 23135 23136 -h, --help print this help, then exit 23137 -V, --version print version number and configuration settings, then exit 23138 --config print configuration, then exit 23139 -q, --quiet, --silent 23140 do not print progress messages 23141 -d, --debug don't remove temporary files 23142 --recheck update $as_me by reconfiguring in the same conditions 23143 --file=FILE[:TEMPLATE] 23144 instantiate the configuration file FILE 23145 --header=FILE[:TEMPLATE] 23146 instantiate the configuration header FILE 23147 23148Configuration files: 23149$config_files 23150 23151Configuration headers: 23152$config_headers 23153 23154Configuration commands: 23155$config_commands 23156 23157Report bugs to the package provider." 23158 23159_ACEOF 23160cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23161ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 23162ac_cs_version="\\ 23163worker config.status 4.10.0 23164configured by $0, generated by GNU Autoconf 2.69, 23165 with options \\"\$ac_cs_config\\" 23166 23167Copyright (C) 2012 Free Software Foundation, Inc. 23168This config.status script is free software; the Free Software Foundation 23169gives unlimited permission to copy, distribute and modify it." 23170 23171ac_pwd='$ac_pwd' 23172srcdir='$srcdir' 23173INSTALL='$INSTALL' 23174MKDIR_P='$MKDIR_P' 23175AWK='$AWK' 23176test -n "\$AWK" || AWK=awk 23177_ACEOF 23178 23179cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23180# The default lists apply if the user does not specify any file. 23181ac_need_defaults=: 23182while test $# != 0 23183do 23184 case $1 in 23185 --*=?*) 23186 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23187 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 23188 ac_shift=: 23189 ;; 23190 --*=) 23191 ac_option=`expr "X$1" : 'X\([^=]*\)='` 23192 ac_optarg= 23193 ac_shift=: 23194 ;; 23195 *) 23196 ac_option=$1 23197 ac_optarg=$2 23198 ac_shift=shift 23199 ;; 23200 esac 23201 23202 case $ac_option in 23203 # Handling of the options. 23204 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 23205 ac_cs_recheck=: ;; 23206 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 23207 $as_echo "$ac_cs_version"; exit ;; 23208 --config | --confi | --conf | --con | --co | --c ) 23209 $as_echo "$ac_cs_config"; exit ;; 23210 --debug | --debu | --deb | --de | --d | -d ) 23211 debug=: ;; 23212 --file | --fil | --fi | --f ) 23213 $ac_shift 23214 case $ac_optarg in 23215 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23216 '') as_fn_error $? "missing file argument" ;; 23217 esac 23218 as_fn_append CONFIG_FILES " '$ac_optarg'" 23219 ac_need_defaults=false;; 23220 --header | --heade | --head | --hea ) 23221 $ac_shift 23222 case $ac_optarg in 23223 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 23224 esac 23225 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 23226 ac_need_defaults=false;; 23227 --he | --h) 23228 # Conflict between --help and --header 23229 as_fn_error $? "ambiguous option: \`$1' 23230Try \`$0 --help' for more information.";; 23231 --help | --hel | -h ) 23232 $as_echo "$ac_cs_usage"; exit ;; 23233 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 23234 | -silent | --silent | --silen | --sile | --sil | --si | --s) 23235 ac_cs_silent=: ;; 23236 23237 # This is an error. 23238 -*) as_fn_error $? "unrecognized option: \`$1' 23239Try \`$0 --help' for more information." ;; 23240 23241 *) as_fn_append ac_config_targets " $1" 23242 ac_need_defaults=false ;; 23243 23244 esac 23245 shift 23246done 23247 23248ac_configure_extra_args= 23249 23250if $ac_cs_silent; then 23251 exec 6>/dev/null 23252 ac_configure_extra_args="$ac_configure_extra_args --silent" 23253fi 23254 23255_ACEOF 23256cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23257if \$ac_cs_recheck; then 23258 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 23259 shift 23260 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 23261 CONFIG_SHELL='$SHELL' 23262 export CONFIG_SHELL 23263 exec "\$@" 23264fi 23265 23266_ACEOF 23267cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23268exec 5>>config.log 23269{ 23270 echo 23271 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 23272## Running $as_me. ## 23273_ASBOX 23274 $as_echo "$ac_log" 23275} >&5 23276 23277_ACEOF 23278cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23279# 23280# INIT-COMMANDS 23281# 23282AMDEP_TRUE="$AMDEP_TRUE" MAKE="${MAKE-make}" 23283 23284 23285# The HP-UX ksh and POSIX shell print the target directory to stdout 23286# if CDPATH is set. 23287(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 23288 23289sed_quote_subst='$sed_quote_subst' 23290double_quote_subst='$double_quote_subst' 23291delay_variable_subst='$delay_variable_subst' 23292macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 23293macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 23294enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 23295enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 23296pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 23297enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 23298shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 23299SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 23300ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 23301PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 23302host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 23303host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 23304host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 23305build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 23306build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 23307build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 23308SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 23309Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 23310GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 23311EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 23312FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 23313LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 23314NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 23315LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 23316max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 23317ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 23318exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 23319lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 23320lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 23321lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 23322lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 23323lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 23324reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 23325reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 23326OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 23327deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 23328file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 23329file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 23330want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 23331DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 23332sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 23333AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 23334AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 23335archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 23336STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 23337RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 23338old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23339old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23340old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 23341lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 23342CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 23343CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 23344compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 23345GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 23346lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 23347lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 23348lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 23349lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 23350lt_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"`' 23351lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 23352nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 23353lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 23354lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 23355objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 23356MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 23357lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 23358lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 23359lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 23360lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 23361lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 23362need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 23363MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 23364DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 23365NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 23366LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 23367OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 23368OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 23369libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 23370shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 23371extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23372archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 23373enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 23374export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 23375whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 23376compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 23377old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 23378old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 23379archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 23380archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23381module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 23382module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 23383with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 23384allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 23385no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 23386hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 23387hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 23388hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 23389hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 23390hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 23391hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 23392hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 23393inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 23394link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 23395always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 23396export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 23397exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 23398include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 23399prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 23400postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 23401file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 23402variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 23403need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 23404need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 23405version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 23406runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 23407shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 23408shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 23409libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 23410library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 23411soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 23412install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 23413postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 23414postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 23415finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 23416finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 23417hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 23418sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 23419configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 23420configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 23421hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 23422enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 23423enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 23424enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 23425old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 23426striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 23427compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 23428predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 23429postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 23430predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 23431postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 23432compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 23433LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 23434reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 23435reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23436old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23437compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 23438GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 23439lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 23440lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 23441lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 23442lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 23443lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 23444archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 23445enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 23446export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23447whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23448compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 23449old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23450old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23451archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23452archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23453module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23454module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23455with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 23456allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23457no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 23458hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 23459hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 23460hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 23461hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 23462hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 23463hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 23464hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 23465inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 23466link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 23467always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 23468export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23469exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23470include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 23471prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23472postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 23473file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 23474hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 23475compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 23476predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23477postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 23478predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 23479postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 23480compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 23481 23482LTCC='$LTCC' 23483LTCFLAGS='$LTCFLAGS' 23484compiler='$compiler_DEFAULT' 23485 23486# A function that is used when there is no print builtin or printf. 23487func_fallback_echo () 23488{ 23489 eval 'cat <<_LTECHO_EOF 23490\$1 23491_LTECHO_EOF' 23492} 23493 23494# Quote evaled strings. 23495for var in SHELL \ 23496ECHO \ 23497PATH_SEPARATOR \ 23498SED \ 23499GREP \ 23500EGREP \ 23501FGREP \ 23502LD \ 23503NM \ 23504LN_S \ 23505lt_SP2NL \ 23506lt_NL2SP \ 23507reload_flag \ 23508OBJDUMP \ 23509deplibs_check_method \ 23510file_magic_cmd \ 23511file_magic_glob \ 23512want_nocaseglob \ 23513DLLTOOL \ 23514sharedlib_from_linklib_cmd \ 23515AR \ 23516AR_FLAGS \ 23517archiver_list_spec \ 23518STRIP \ 23519RANLIB \ 23520CC \ 23521CFLAGS \ 23522compiler \ 23523lt_cv_sys_global_symbol_pipe \ 23524lt_cv_sys_global_symbol_to_cdecl \ 23525lt_cv_sys_global_symbol_to_import \ 23526lt_cv_sys_global_symbol_to_c_name_address \ 23527lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 23528lt_cv_nm_interface \ 23529nm_file_list_spec \ 23530lt_cv_truncate_bin \ 23531lt_prog_compiler_no_builtin_flag \ 23532lt_prog_compiler_pic \ 23533lt_prog_compiler_wl \ 23534lt_prog_compiler_static \ 23535lt_cv_prog_compiler_c_o \ 23536need_locks \ 23537MANIFEST_TOOL \ 23538DSYMUTIL \ 23539NMEDIT \ 23540LIPO \ 23541OTOOL \ 23542OTOOL64 \ 23543shrext_cmds \ 23544export_dynamic_flag_spec \ 23545whole_archive_flag_spec \ 23546compiler_needs_object \ 23547with_gnu_ld \ 23548allow_undefined_flag \ 23549no_undefined_flag \ 23550hardcode_libdir_flag_spec \ 23551hardcode_libdir_separator \ 23552exclude_expsyms \ 23553include_expsyms \ 23554file_list_spec \ 23555variables_saved_for_relink \ 23556libname_spec \ 23557library_names_spec \ 23558soname_spec \ 23559install_override_mode \ 23560finish_eval \ 23561old_striplib \ 23562striplib \ 23563compiler_lib_search_dirs \ 23564predep_objects \ 23565postdep_objects \ 23566predeps \ 23567postdeps \ 23568compiler_lib_search_path \ 23569LD_CXX \ 23570reload_flag_CXX \ 23571compiler_CXX \ 23572lt_prog_compiler_no_builtin_flag_CXX \ 23573lt_prog_compiler_pic_CXX \ 23574lt_prog_compiler_wl_CXX \ 23575lt_prog_compiler_static_CXX \ 23576lt_cv_prog_compiler_c_o_CXX \ 23577export_dynamic_flag_spec_CXX \ 23578whole_archive_flag_spec_CXX \ 23579compiler_needs_object_CXX \ 23580with_gnu_ld_CXX \ 23581allow_undefined_flag_CXX \ 23582no_undefined_flag_CXX \ 23583hardcode_libdir_flag_spec_CXX \ 23584hardcode_libdir_separator_CXX \ 23585exclude_expsyms_CXX \ 23586include_expsyms_CXX \ 23587file_list_spec_CXX \ 23588compiler_lib_search_dirs_CXX \ 23589predep_objects_CXX \ 23590postdep_objects_CXX \ 23591predeps_CXX \ 23592postdeps_CXX \ 23593compiler_lib_search_path_CXX; do 23594 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23595 *[\\\\\\\`\\"\\\$]*) 23596 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23597 ;; 23598 *) 23599 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23600 ;; 23601 esac 23602done 23603 23604# Double-quote double-evaled strings. 23605for var in reload_cmds \ 23606old_postinstall_cmds \ 23607old_postuninstall_cmds \ 23608old_archive_cmds \ 23609extract_expsyms_cmds \ 23610old_archive_from_new_cmds \ 23611old_archive_from_expsyms_cmds \ 23612archive_cmds \ 23613archive_expsym_cmds \ 23614module_cmds \ 23615module_expsym_cmds \ 23616export_symbols_cmds \ 23617prelink_cmds \ 23618postlink_cmds \ 23619postinstall_cmds \ 23620postuninstall_cmds \ 23621finish_cmds \ 23622sys_lib_search_path_spec \ 23623configure_time_dlsearch_path \ 23624configure_time_lt_sys_library_path \ 23625reload_cmds_CXX \ 23626old_archive_cmds_CXX \ 23627old_archive_from_new_cmds_CXX \ 23628old_archive_from_expsyms_cmds_CXX \ 23629archive_cmds_CXX \ 23630archive_expsym_cmds_CXX \ 23631module_cmds_CXX \ 23632module_expsym_cmds_CXX \ 23633export_symbols_cmds_CXX \ 23634prelink_cmds_CXX \ 23635postlink_cmds_CXX; do 23636 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 23637 *[\\\\\\\`\\"\\\$]*) 23638 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 23639 ;; 23640 *) 23641 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 23642 ;; 23643 esac 23644done 23645 23646ac_aux_dir='$ac_aux_dir' 23647 23648# See if we are running on zsh, and set the options that allow our 23649# commands through without removal of \ escapes INIT. 23650if test -n "\${ZSH_VERSION+set}"; then 23651 setopt NO_GLOB_SUBST 23652fi 23653 23654 23655 PACKAGE='$PACKAGE' 23656 VERSION='$VERSION' 23657 RM='$RM' 23658 ofile='$ofile' 23659 23660 23661 23662 23663 23664 23665_ACEOF 23666 23667cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23668 23669# Handling of arguments. 23670for ac_config_target in $ac_config_targets 23671do 23672 case $ac_config_target in 23673 "src/aguix/aguixconfig.h") CONFIG_HEADERS="$CONFIG_HEADERS src/aguix/aguixconfig.h" ;; 23674 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 23675 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 23676 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 23677 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 23678 "src/aguix/Makefile") CONFIG_FILES="$CONFIG_FILES src/aguix/Makefile" ;; 23679 "scripts/Makefile") CONFIG_FILES="$CONFIG_FILES scripts/Makefile" ;; 23680 "catalogs/Makefile") CONFIG_FILES="$CONFIG_FILES catalogs/Makefile" ;; 23681 "Icons/Makefile") CONFIG_FILES="$CONFIG_FILES Icons/Makefile" ;; 23682 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 23683 "man/Makefile") CONFIG_FILES="$CONFIG_FILES man/Makefile" ;; 23684 "man/fr/Makefile") CONFIG_FILES="$CONFIG_FILES man/fr/Makefile" ;; 23685 "man/it/Makefile") CONFIG_FILES="$CONFIG_FILES man/it/Makefile" ;; 23686 "m4/Makefile") CONFIG_FILES="$CONFIG_FILES m4/Makefile" ;; 23687 "contrib/Makefile") CONFIG_FILES="$CONFIG_FILES contrib/Makefile" ;; 23688 "hints/Makefile") CONFIG_FILES="$CONFIG_FILES hints/Makefile" ;; 23689 "config-updates/Makefile") CONFIG_FILES="$CONFIG_FILES config-updates/Makefile" ;; 23690 "contrib/dir-locals.el") CONFIG_FILES="$CONFIG_FILES contrib/dir-locals.el" ;; 23691 23692 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 23693 esac 23694done 23695 23696 23697# If the user did not use the arguments to specify the items to instantiate, 23698# then the envvar interface is used. Set only those that are not. 23699# We use the long form for the default assignment because of an extremely 23700# bizarre bug on SunOS 4.1.3. 23701if $ac_need_defaults; then 23702 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 23703 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 23704 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 23705fi 23706 23707# Have a temporary directory for convenience. Make it in the build tree 23708# simply because there is no reason against having it here, and in addition, 23709# creating and moving files from /tmp can sometimes cause problems. 23710# Hook for its removal unless debugging. 23711# Note that there is a small window in which the directory will not be cleaned: 23712# after its creation but before its name has been assigned to `$tmp'. 23713$debug || 23714{ 23715 tmp= ac_tmp= 23716 trap 'exit_status=$? 23717 : "${ac_tmp:=$tmp}" 23718 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 23719' 0 23720 trap 'as_fn_exit 1' 1 2 13 15 23721} 23722# Create a (secure) tmp directory for tmp files. 23723 23724{ 23725 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 23726 test -d "$tmp" 23727} || 23728{ 23729 tmp=./conf$$-$RANDOM 23730 (umask 077 && mkdir "$tmp") 23731} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 23732ac_tmp=$tmp 23733 23734# Set up the scripts for CONFIG_FILES section. 23735# No need to generate them if there are no CONFIG_FILES. 23736# This happens for instance with `./config.status config.h'. 23737if test -n "$CONFIG_FILES"; then 23738 23739 23740ac_cr=`echo X | tr X '\015'` 23741# On cygwin, bash can eat \r inside `` if the user requested igncr. 23742# But we know of no other shell where ac_cr would be empty at this 23743# point, so we can use a bashism as a fallback. 23744if test "x$ac_cr" = x; then 23745 eval ac_cr=\$\'\\r\' 23746fi 23747ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 23748if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 23749 ac_cs_awk_cr='\\r' 23750else 23751 ac_cs_awk_cr=$ac_cr 23752fi 23753 23754echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 23755_ACEOF 23756 23757 23758{ 23759 echo "cat >conf$$subs.awk <<_ACEOF" && 23760 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 23761 echo "_ACEOF" 23762} >conf$$subs.sh || 23763 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23764ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 23765ac_delim='%!_!# ' 23766for ac_last_try in false false false false false :; do 23767 . ./conf$$subs.sh || 23768 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23769 23770 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 23771 if test $ac_delim_n = $ac_delim_num; then 23772 break 23773 elif $ac_last_try; then 23774 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 23775 else 23776 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23777 fi 23778done 23779rm -f conf$$subs.sh 23780 23781cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23782cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 23783_ACEOF 23784sed -n ' 23785h 23786s/^/S["/; s/!.*/"]=/ 23787p 23788g 23789s/^[^!]*!// 23790:repl 23791t repl 23792s/'"$ac_delim"'$// 23793t delim 23794:nl 23795h 23796s/\(.\{148\}\)..*/\1/ 23797t more1 23798s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 23799p 23800n 23801b repl 23802:more1 23803s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23804p 23805g 23806s/.\{148\}// 23807t nl 23808:delim 23809h 23810s/\(.\{148\}\)..*/\1/ 23811t more2 23812s/["\\]/\\&/g; s/^/"/; s/$/"/ 23813p 23814b 23815:more2 23816s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 23817p 23818g 23819s/.\{148\}// 23820t delim 23821' <conf$$subs.awk | sed ' 23822/^[^""]/{ 23823 N 23824 s/\n// 23825} 23826' >>$CONFIG_STATUS || ac_write_fail=1 23827rm -f conf$$subs.awk 23828cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23829_ACAWK 23830cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 23831 for (key in S) S_is_set[key] = 1 23832 FS = "" 23833 23834} 23835{ 23836 line = $ 0 23837 nfields = split(line, field, "@") 23838 substed = 0 23839 len = length(field[1]) 23840 for (i = 2; i < nfields; i++) { 23841 key = field[i] 23842 keylen = length(key) 23843 if (S_is_set[key]) { 23844 value = S[key] 23845 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 23846 len += length(value) + length(field[++i]) 23847 substed = 1 23848 } else 23849 len += 1 + keylen 23850 } 23851 23852 print line 23853} 23854 23855_ACAWK 23856_ACEOF 23857cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23858if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 23859 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 23860else 23861 cat 23862fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 23863 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 23864_ACEOF 23865 23866# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 23867# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 23868# trailing colons and then remove the whole line if VPATH becomes empty 23869# (actually we leave an empty line to preserve line numbers). 23870if test "x$srcdir" = x.; then 23871 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 23872h 23873s/// 23874s/^/:/ 23875s/[ ]*$/:/ 23876s/:\$(srcdir):/:/g 23877s/:\${srcdir}:/:/g 23878s/:@srcdir@:/:/g 23879s/^:*// 23880s/:*$// 23881x 23882s/\(=[ ]*\).*/\1/ 23883G 23884s/\n// 23885s/^[^=]*=[ ]*$// 23886}' 23887fi 23888 23889cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23890fi # test -n "$CONFIG_FILES" 23891 23892# Set up the scripts for CONFIG_HEADERS section. 23893# No need to generate them if there are no CONFIG_HEADERS. 23894# This happens for instance with `./config.status Makefile'. 23895if test -n "$CONFIG_HEADERS"; then 23896cat >"$ac_tmp/defines.awk" <<\_ACAWK || 23897BEGIN { 23898_ACEOF 23899 23900# Transform confdefs.h into an awk script `defines.awk', embedded as 23901# here-document in config.status, that substitutes the proper values into 23902# config.h.in to produce config.h. 23903 23904# Create a delimiter string that does not exist in confdefs.h, to ease 23905# handling of long lines. 23906ac_delim='%!_!# ' 23907for ac_last_try in false false :; do 23908 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 23909 if test -z "$ac_tt"; then 23910 break 23911 elif $ac_last_try; then 23912 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 23913 else 23914 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 23915 fi 23916done 23917 23918# For the awk script, D is an array of macro values keyed by name, 23919# likewise P contains macro parameters if any. Preserve backslash 23920# newline sequences. 23921 23922ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 23923sed -n ' 23924s/.\{148\}/&'"$ac_delim"'/g 23925t rset 23926:rset 23927s/^[ ]*#[ ]*define[ ][ ]*/ / 23928t def 23929d 23930:def 23931s/\\$// 23932t bsnl 23933s/["\\]/\\&/g 23934s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23935D["\1"]=" \3"/p 23936s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 23937d 23938:bsnl 23939s/["\\]/\\&/g 23940s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 23941D["\1"]=" \3\\\\\\n"\\/p 23942t cont 23943s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 23944t cont 23945d 23946:cont 23947n 23948s/.\{148\}/&'"$ac_delim"'/g 23949t clear 23950:clear 23951s/\\$// 23952t bsnlc 23953s/["\\]/\\&/g; s/^/"/; s/$/"/p 23954d 23955:bsnlc 23956s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 23957b cont 23958' <confdefs.h | sed ' 23959s/'"$ac_delim"'/"\\\ 23960"/g' >>$CONFIG_STATUS || ac_write_fail=1 23961 23962cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 23963 for (key in D) D_is_set[key] = 1 23964 FS = "" 23965} 23966/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 23967 line = \$ 0 23968 split(line, arg, " ") 23969 if (arg[1] == "#") { 23970 defundef = arg[2] 23971 mac1 = arg[3] 23972 } else { 23973 defundef = substr(arg[1], 2) 23974 mac1 = arg[2] 23975 } 23976 split(mac1, mac2, "(") #) 23977 macro = mac2[1] 23978 prefix = substr(line, 1, index(line, defundef) - 1) 23979 if (D_is_set[macro]) { 23980 # Preserve the white space surrounding the "#". 23981 print prefix "define", macro P[macro] D[macro] 23982 next 23983 } else { 23984 # Replace #undef with comments. This is necessary, for example, 23985 # in the case of _POSIX_SOURCE, which is predefined and required 23986 # on some systems where configure will not decide to define it. 23987 if (defundef == "undef") { 23988 print "/*", prefix defundef, macro, "*/" 23989 next 23990 } 23991 } 23992} 23993{ print } 23994_ACAWK 23995_ACEOF 23996cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 23997 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 23998fi # test -n "$CONFIG_HEADERS" 23999 24000 24001eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 24002shift 24003for ac_tag 24004do 24005 case $ac_tag in 24006 :[FHLC]) ac_mode=$ac_tag; continue;; 24007 esac 24008 case $ac_mode$ac_tag in 24009 :[FHL]*:*);; 24010 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 24011 :[FH]-) ac_tag=-:-;; 24012 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 24013 esac 24014 ac_save_IFS=$IFS 24015 IFS=: 24016 set x $ac_tag 24017 IFS=$ac_save_IFS 24018 shift 24019 ac_file=$1 24020 shift 24021 24022 case $ac_mode in 24023 :L) ac_source=$1;; 24024 :[FH]) 24025 ac_file_inputs= 24026 for ac_f 24027 do 24028 case $ac_f in 24029 -) ac_f="$ac_tmp/stdin";; 24030 *) # Look for the file first in the build tree, then in the source tree 24031 # (if the path is not absolute). The absolute path cannot be DOS-style, 24032 # because $ac_f cannot contain `:'. 24033 test -f "$ac_f" || 24034 case $ac_f in 24035 [\\/$]*) false;; 24036 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 24037 esac || 24038 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 24039 esac 24040 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 24041 as_fn_append ac_file_inputs " '$ac_f'" 24042 done 24043 24044 # Let's still pretend it is `configure' which instantiates (i.e., don't 24045 # use $as_me), people would be surprised to read: 24046 # /* config.h. Generated by config.status. */ 24047 configure_input='Generated from '` 24048 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 24049 `' by configure.' 24050 if test x"$ac_file" != x-; then 24051 configure_input="$ac_file. $configure_input" 24052 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 24053$as_echo "$as_me: creating $ac_file" >&6;} 24054 fi 24055 # Neutralize special characters interpreted by sed in replacement strings. 24056 case $configure_input in #( 24057 *\&* | *\|* | *\\* ) 24058 ac_sed_conf_input=`$as_echo "$configure_input" | 24059 sed 's/[\\\\&|]/\\\\&/g'`;; #( 24060 *) ac_sed_conf_input=$configure_input;; 24061 esac 24062 24063 case $ac_tag in 24064 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 24065 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 24066 esac 24067 ;; 24068 esac 24069 24070 ac_dir=`$as_dirname -- "$ac_file" || 24071$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24072 X"$ac_file" : 'X\(//\)[^/]' \| \ 24073 X"$ac_file" : 'X\(//\)$' \| \ 24074 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 24075$as_echo X"$ac_file" | 24076 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24077 s//\1/ 24078 q 24079 } 24080 /^X\(\/\/\)[^/].*/{ 24081 s//\1/ 24082 q 24083 } 24084 /^X\(\/\/\)$/{ 24085 s//\1/ 24086 q 24087 } 24088 /^X\(\/\).*/{ 24089 s//\1/ 24090 q 24091 } 24092 s/.*/./; q'` 24093 as_dir="$ac_dir"; as_fn_mkdir_p 24094 ac_builddir=. 24095 24096case "$ac_dir" in 24097.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 24098*) 24099 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 24100 # A ".." for each directory in $ac_dir_suffix. 24101 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 24102 case $ac_top_builddir_sub in 24103 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 24104 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 24105 esac ;; 24106esac 24107ac_abs_top_builddir=$ac_pwd 24108ac_abs_builddir=$ac_pwd$ac_dir_suffix 24109# for backward compatibility: 24110ac_top_builddir=$ac_top_build_prefix 24111 24112case $srcdir in 24113 .) # We are building in place. 24114 ac_srcdir=. 24115 ac_top_srcdir=$ac_top_builddir_sub 24116 ac_abs_top_srcdir=$ac_pwd ;; 24117 [\\/]* | ?:[\\/]* ) # Absolute name. 24118 ac_srcdir=$srcdir$ac_dir_suffix; 24119 ac_top_srcdir=$srcdir 24120 ac_abs_top_srcdir=$srcdir ;; 24121 *) # Relative name. 24122 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 24123 ac_top_srcdir=$ac_top_build_prefix$srcdir 24124 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 24125esac 24126ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 24127 24128 24129 case $ac_mode in 24130 :F) 24131 # 24132 # CONFIG_FILE 24133 # 24134 24135 case $INSTALL in 24136 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 24137 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 24138 esac 24139 ac_MKDIR_P=$MKDIR_P 24140 case $MKDIR_P in 24141 [\\/$]* | ?:[\\/]* ) ;; 24142 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 24143 esac 24144_ACEOF 24145 24146cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24147# If the template does not know about datarootdir, expand it. 24148# FIXME: This hack should be removed a few years after 2.60. 24149ac_datarootdir_hack=; ac_datarootdir_seen= 24150ac_sed_dataroot=' 24151/datarootdir/ { 24152 p 24153 q 24154} 24155/@datadir@/p 24156/@docdir@/p 24157/@infodir@/p 24158/@localedir@/p 24159/@mandir@/p' 24160case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 24161*datarootdir*) ac_datarootdir_seen=yes;; 24162*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 24163 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 24164$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 24165_ACEOF 24166cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24167 ac_datarootdir_hack=' 24168 s&@datadir@&$datadir&g 24169 s&@docdir@&$docdir&g 24170 s&@infodir@&$infodir&g 24171 s&@localedir@&$localedir&g 24172 s&@mandir@&$mandir&g 24173 s&\\\${datarootdir}&$datarootdir&g' ;; 24174esac 24175_ACEOF 24176 24177# Neutralize VPATH when `$srcdir' = `.'. 24178# Shell code in configure.ac might set extrasub. 24179# FIXME: do we really want to maintain this feature? 24180cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 24181ac_sed_extra="$ac_vpsub 24182$extrasub 24183_ACEOF 24184cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 24185:t 24186/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 24187s|@configure_input@|$ac_sed_conf_input|;t t 24188s&@top_builddir@&$ac_top_builddir_sub&;t t 24189s&@top_build_prefix@&$ac_top_build_prefix&;t t 24190s&@srcdir@&$ac_srcdir&;t t 24191s&@abs_srcdir@&$ac_abs_srcdir&;t t 24192s&@top_srcdir@&$ac_top_srcdir&;t t 24193s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 24194s&@builddir@&$ac_builddir&;t t 24195s&@abs_builddir@&$ac_abs_builddir&;t t 24196s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 24197s&@INSTALL@&$ac_INSTALL&;t t 24198s&@MKDIR_P@&$ac_MKDIR_P&;t t 24199$ac_datarootdir_hack 24200" 24201eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 24202 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24203 24204test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 24205 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 24206 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 24207 "$ac_tmp/out"`; test -z "$ac_out"; } && 24208 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24209which seems to be undefined. Please make sure it is defined" >&5 24210$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 24211which seems to be undefined. Please make sure it is defined" >&2;} 24212 24213 rm -f "$ac_tmp/stdin" 24214 case $ac_file in 24215 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 24216 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 24217 esac \ 24218 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24219 ;; 24220 :H) 24221 # 24222 # CONFIG_HEADER 24223 # 24224 if test x"$ac_file" != x-; then 24225 { 24226 $as_echo "/* $configure_input */" \ 24227 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 24228 } >"$ac_tmp/config.h" \ 24229 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24230 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 24231 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 24232$as_echo "$as_me: $ac_file is unchanged" >&6;} 24233 else 24234 rm -f "$ac_file" 24235 mv "$ac_tmp/config.h" "$ac_file" \ 24236 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 24237 fi 24238 else 24239 $as_echo "/* $configure_input */" \ 24240 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 24241 || as_fn_error $? "could not create -" "$LINENO" 5 24242 fi 24243# Compute "$ac_file"'s index in $config_headers. 24244_am_arg="$ac_file" 24245_am_stamp_count=1 24246for _am_header in $config_headers :; do 24247 case $_am_header in 24248 $_am_arg | $_am_arg:* ) 24249 break ;; 24250 * ) 24251 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 24252 esac 24253done 24254echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 24255$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24256 X"$_am_arg" : 'X\(//\)[^/]' \| \ 24257 X"$_am_arg" : 'X\(//\)$' \| \ 24258 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 24259$as_echo X"$_am_arg" | 24260 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24261 s//\1/ 24262 q 24263 } 24264 /^X\(\/\/\)[^/].*/{ 24265 s//\1/ 24266 q 24267 } 24268 /^X\(\/\/\)$/{ 24269 s//\1/ 24270 q 24271 } 24272 /^X\(\/\).*/{ 24273 s//\1/ 24274 q 24275 } 24276 s/.*/./; q'`/stamp-h$_am_stamp_count 24277 ;; 24278 24279 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 24280$as_echo "$as_me: executing $ac_file commands" >&6;} 24281 ;; 24282 esac 24283 24284 24285 case $ac_file$ac_mode in 24286 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 24287 # Older Autoconf quotes --file arguments for eval, but not when files 24288 # are listed without --file. Let's play safe and only enable the eval 24289 # if we detect the quoting. 24290 # TODO: see whether this extra hack can be removed once we start 24291 # requiring Autoconf 2.70 or later. 24292 case $CONFIG_FILES in #( 24293 *\'*) : 24294 eval set x "$CONFIG_FILES" ;; #( 24295 *) : 24296 set x $CONFIG_FILES ;; #( 24297 *) : 24298 ;; 24299esac 24300 shift 24301 # Used to flag and report bootstrapping failures. 24302 am_rc=0 24303 for am_mf 24304 do 24305 # Strip MF so we end up with the name of the file. 24306 am_mf=`$as_echo "$am_mf" | sed -e 's/:.*$//'` 24307 # Check whether this is an Automake generated Makefile which includes 24308 # dependency-tracking related rules and includes. 24309 # Grep'ing the whole file directly is not great: AIX grep has a line 24310 # limit of 2048, but all sed's we know have understand at least 4000. 24311 sed -n 's,^am--depfiles:.*,X,p' "$am_mf" | grep X >/dev/null 2>&1 \ 24312 || continue 24313 am_dirpart=`$as_dirname -- "$am_mf" || 24314$as_expr X"$am_mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 24315 X"$am_mf" : 'X\(//\)[^/]' \| \ 24316 X"$am_mf" : 'X\(//\)$' \| \ 24317 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24318$as_echo X"$am_mf" | 24319 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 24320 s//\1/ 24321 q 24322 } 24323 /^X\(\/\/\)[^/].*/{ 24324 s//\1/ 24325 q 24326 } 24327 /^X\(\/\/\)$/{ 24328 s//\1/ 24329 q 24330 } 24331 /^X\(\/\).*/{ 24332 s//\1/ 24333 q 24334 } 24335 s/.*/./; q'` 24336 am_filepart=`$as_basename -- "$am_mf" || 24337$as_expr X/"$am_mf" : '.*/\([^/][^/]*\)/*$' \| \ 24338 X"$am_mf" : 'X\(//\)$' \| \ 24339 X"$am_mf" : 'X\(/\)' \| . 2>/dev/null || 24340$as_echo X/"$am_mf" | 24341 sed '/^.*\/\([^/][^/]*\)\/*$/{ 24342 s//\1/ 24343 q 24344 } 24345 /^X\/\(\/\/\)$/{ 24346 s//\1/ 24347 q 24348 } 24349 /^X\/\(\/\).*/{ 24350 s//\1/ 24351 q 24352 } 24353 s/.*/./; q'` 24354 { echo "$as_me:$LINENO: cd "$am_dirpart" \ 24355 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24356 | $MAKE -f - am--depfiles" >&5 24357 (cd "$am_dirpart" \ 24358 && sed -e '/# am--include-marker/d' "$am_filepart" \ 24359 | $MAKE -f - am--depfiles) >&5 2>&5 24360 ac_status=$? 24361 echo "$as_me:$LINENO: \$? = $ac_status" >&5 24362 (exit $ac_status); } || am_rc=$? 24363 done 24364 if test $am_rc -ne 0; then 24365 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 24366$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 24367as_fn_error $? "Something went wrong bootstrapping makefile fragments 24368 for automatic dependency tracking. If GNU make was not used, consider 24369 re-running the configure script with MAKE=\"gmake\" (or whatever is 24370 necessary). You can also try re-running configure with the 24371 '--disable-dependency-tracking' option to at least be able to build 24372 the package (albeit without support for automatic dependency tracking). 24373See \`config.log' for more details" "$LINENO" 5; } 24374 fi 24375 { am_dirpart=; unset am_dirpart;} 24376 { am_filepart=; unset am_filepart;} 24377 { am_mf=; unset am_mf;} 24378 { am_rc=; unset am_rc;} 24379 rm -f conftest-deps.mk 24380} 24381 ;; 24382 "libtool":C) 24383 24384 # See if we are running on zsh, and set the options that allow our 24385 # commands through without removal of \ escapes. 24386 if test -n "${ZSH_VERSION+set}"; then 24387 setopt NO_GLOB_SUBST 24388 fi 24389 24390 cfgfile=${ofile}T 24391 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 24392 $RM "$cfgfile" 24393 24394 cat <<_LT_EOF >> "$cfgfile" 24395#! $SHELL 24396# Generated automatically by $as_me ($PACKAGE) $VERSION 24397# NOTE: Changes made to this file will be lost: look at ltmain.sh. 24398 24399# Provide generalized library-building support services. 24400# Written by Gordon Matzigkeit, 1996 24401 24402# Copyright (C) 2014 Free Software Foundation, Inc. 24403# This is free software; see the source for copying conditions. There is NO 24404# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 24405 24406# GNU Libtool is free software; you can redistribute it and/or modify 24407# it under the terms of the GNU General Public License as published by 24408# the Free Software Foundation; either version 2 of of the License, or 24409# (at your option) any later version. 24410# 24411# As a special exception to the GNU General Public License, if you 24412# distribute this file as part of a program or library that is built 24413# using GNU Libtool, you may include this file under the same 24414# distribution terms that you use for the rest of that program. 24415# 24416# GNU Libtool is distributed in the hope that it will be useful, but 24417# WITHOUT ANY WARRANTY; without even the implied warranty of 24418# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 24419# GNU General Public License for more details. 24420# 24421# You should have received a copy of the GNU General Public License 24422# along with this program. If not, see <http://www.gnu.org/licenses/>. 24423 24424 24425# The names of the tagged configurations supported by this script. 24426available_tags='CXX ' 24427 24428# Configured defaults for sys_lib_dlsearch_path munging. 24429: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 24430 24431# ### BEGIN LIBTOOL CONFIG 24432 24433# Which release of libtool.m4 was used? 24434macro_version=$macro_version 24435macro_revision=$macro_revision 24436 24437# Whether or not to build shared libraries. 24438build_libtool_libs=$enable_shared 24439 24440# Whether or not to build static libraries. 24441build_old_libs=$enable_static 24442 24443# What type of objects to build. 24444pic_mode=$pic_mode 24445 24446# Whether or not to optimize for fast installation. 24447fast_install=$enable_fast_install 24448 24449# Shared archive member basename,for filename based shared library versioning on AIX. 24450shared_archive_member_spec=$shared_archive_member_spec 24451 24452# Shell to use when invoking shell scripts. 24453SHELL=$lt_SHELL 24454 24455# An echo program that protects backslashes. 24456ECHO=$lt_ECHO 24457 24458# The PATH separator for the build system. 24459PATH_SEPARATOR=$lt_PATH_SEPARATOR 24460 24461# The host system. 24462host_alias=$host_alias 24463host=$host 24464host_os=$host_os 24465 24466# The build system. 24467build_alias=$build_alias 24468build=$build 24469build_os=$build_os 24470 24471# A sed program that does not truncate output. 24472SED=$lt_SED 24473 24474# Sed that helps us avoid accidentally triggering echo(1) options like -n. 24475Xsed="\$SED -e 1s/^X//" 24476 24477# A grep program that handles long lines. 24478GREP=$lt_GREP 24479 24480# An ERE matcher. 24481EGREP=$lt_EGREP 24482 24483# A literal string matcher. 24484FGREP=$lt_FGREP 24485 24486# A BSD- or MS-compatible name lister. 24487NM=$lt_NM 24488 24489# Whether we need soft or hard links. 24490LN_S=$lt_LN_S 24491 24492# What is the maximum length of a command? 24493max_cmd_len=$max_cmd_len 24494 24495# Object file suffix (normally "o"). 24496objext=$ac_objext 24497 24498# Executable file suffix (normally ""). 24499exeext=$exeext 24500 24501# whether the shell understands "unset". 24502lt_unset=$lt_unset 24503 24504# turn spaces into newlines. 24505SP2NL=$lt_lt_SP2NL 24506 24507# turn newlines into spaces. 24508NL2SP=$lt_lt_NL2SP 24509 24510# convert \$build file names to \$host format. 24511to_host_file_cmd=$lt_cv_to_host_file_cmd 24512 24513# convert \$build files to toolchain format. 24514to_tool_file_cmd=$lt_cv_to_tool_file_cmd 24515 24516# An object symbol dumper. 24517OBJDUMP=$lt_OBJDUMP 24518 24519# Method to check whether dependent libraries are shared objects. 24520deplibs_check_method=$lt_deplibs_check_method 24521 24522# Command to use when deplibs_check_method = "file_magic". 24523file_magic_cmd=$lt_file_magic_cmd 24524 24525# How to find potential files when deplibs_check_method = "file_magic". 24526file_magic_glob=$lt_file_magic_glob 24527 24528# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 24529want_nocaseglob=$lt_want_nocaseglob 24530 24531# DLL creation program. 24532DLLTOOL=$lt_DLLTOOL 24533 24534# Command to associate shared and link libraries. 24535sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 24536 24537# The archiver. 24538AR=$lt_AR 24539 24540# Flags to create an archive. 24541AR_FLAGS=$lt_AR_FLAGS 24542 24543# How to feed a file listing to the archiver. 24544archiver_list_spec=$lt_archiver_list_spec 24545 24546# A symbol stripping program. 24547STRIP=$lt_STRIP 24548 24549# Commands used to install an old-style archive. 24550RANLIB=$lt_RANLIB 24551old_postinstall_cmds=$lt_old_postinstall_cmds 24552old_postuninstall_cmds=$lt_old_postuninstall_cmds 24553 24554# Whether to use a lock for old archive extraction. 24555lock_old_archive_extraction=$lock_old_archive_extraction 24556 24557# A C compiler. 24558LTCC=$lt_CC 24559 24560# LTCC compiler flags. 24561LTCFLAGS=$lt_CFLAGS 24562 24563# Take the output of nm and produce a listing of raw symbols and C names. 24564global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 24565 24566# Transform the output of nm in a proper C declaration. 24567global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 24568 24569# Transform the output of nm into a list of symbols to manually relocate. 24570global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 24571 24572# Transform the output of nm in a C name address pair. 24573global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 24574 24575# Transform the output of nm in a C name address pair when lib prefix is needed. 24576global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 24577 24578# The name lister interface. 24579nm_interface=$lt_lt_cv_nm_interface 24580 24581# Specify filename containing input files for \$NM. 24582nm_file_list_spec=$lt_nm_file_list_spec 24583 24584# The root where to search for dependent libraries,and where our libraries should be installed. 24585lt_sysroot=$lt_sysroot 24586 24587# Command to truncate a binary pipe. 24588lt_truncate_bin=$lt_lt_cv_truncate_bin 24589 24590# The name of the directory that contains temporary libtool files. 24591objdir=$objdir 24592 24593# Used to examine libraries when file_magic_cmd begins with "file". 24594MAGIC_CMD=$MAGIC_CMD 24595 24596# Must we lock files when doing compilation? 24597need_locks=$lt_need_locks 24598 24599# Manifest tool. 24600MANIFEST_TOOL=$lt_MANIFEST_TOOL 24601 24602# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 24603DSYMUTIL=$lt_DSYMUTIL 24604 24605# Tool to change global to local symbols on Mac OS X. 24606NMEDIT=$lt_NMEDIT 24607 24608# Tool to manipulate fat objects and archives on Mac OS X. 24609LIPO=$lt_LIPO 24610 24611# ldd/readelf like tool for Mach-O binaries on Mac OS X. 24612OTOOL=$lt_OTOOL 24613 24614# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 24615OTOOL64=$lt_OTOOL64 24616 24617# Old archive suffix (normally "a"). 24618libext=$libext 24619 24620# Shared library suffix (normally ".so"). 24621shrext_cmds=$lt_shrext_cmds 24622 24623# The commands to extract the exported symbol list from a shared archive. 24624extract_expsyms_cmds=$lt_extract_expsyms_cmds 24625 24626# Variables whose values should be saved in libtool wrapper scripts and 24627# restored at link time. 24628variables_saved_for_relink=$lt_variables_saved_for_relink 24629 24630# Do we need the "lib" prefix for modules? 24631need_lib_prefix=$need_lib_prefix 24632 24633# Do we need a version for libraries? 24634need_version=$need_version 24635 24636# Library versioning type. 24637version_type=$version_type 24638 24639# Shared library runtime path variable. 24640runpath_var=$runpath_var 24641 24642# Shared library path variable. 24643shlibpath_var=$shlibpath_var 24644 24645# Is shlibpath searched before the hard-coded library search path? 24646shlibpath_overrides_runpath=$shlibpath_overrides_runpath 24647 24648# Format of library name prefix. 24649libname_spec=$lt_libname_spec 24650 24651# List of archive names. First name is the real one, the rest are links. 24652# The last name is the one that the linker finds with -lNAME 24653library_names_spec=$lt_library_names_spec 24654 24655# The coded name of the library, if different from the real name. 24656soname_spec=$lt_soname_spec 24657 24658# Permission mode override for installation of shared libraries. 24659install_override_mode=$lt_install_override_mode 24660 24661# Command to use after installation of a shared archive. 24662postinstall_cmds=$lt_postinstall_cmds 24663 24664# Command to use after uninstallation of a shared archive. 24665postuninstall_cmds=$lt_postuninstall_cmds 24666 24667# Commands used to finish a libtool library installation in a directory. 24668finish_cmds=$lt_finish_cmds 24669 24670# As "finish_cmds", except a single script fragment to be evaled but 24671# not shown. 24672finish_eval=$lt_finish_eval 24673 24674# Whether we should hardcode library paths into libraries. 24675hardcode_into_libs=$hardcode_into_libs 24676 24677# Compile-time system search path for libraries. 24678sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 24679 24680# Detected run-time system search path for libraries. 24681sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 24682 24683# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 24684configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 24685 24686# Whether dlopen is supported. 24687dlopen_support=$enable_dlopen 24688 24689# Whether dlopen of programs is supported. 24690dlopen_self=$enable_dlopen_self 24691 24692# Whether dlopen of statically linked programs is supported. 24693dlopen_self_static=$enable_dlopen_self_static 24694 24695# Commands to strip libraries. 24696old_striplib=$lt_old_striplib 24697striplib=$lt_striplib 24698 24699 24700# The linker used to build libraries. 24701LD=$lt_LD 24702 24703# How to create reloadable object files. 24704reload_flag=$lt_reload_flag 24705reload_cmds=$lt_reload_cmds 24706 24707# Commands used to build an old-style archive. 24708old_archive_cmds=$lt_old_archive_cmds 24709 24710# A language specific compiler. 24711CC=$lt_compiler 24712 24713# Is the compiler the GNU compiler? 24714with_gcc=$GCC 24715 24716# Compiler flag to turn off builtin functions. 24717no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 24718 24719# Additional compiler flags for building library objects. 24720pic_flag=$lt_lt_prog_compiler_pic 24721 24722# How to pass a linker flag through the compiler. 24723wl=$lt_lt_prog_compiler_wl 24724 24725# Compiler flag to prevent dynamic linking. 24726link_static_flag=$lt_lt_prog_compiler_static 24727 24728# Does compiler simultaneously support -c and -o options? 24729compiler_c_o=$lt_lt_cv_prog_compiler_c_o 24730 24731# Whether or not to add -lc for building shared libraries. 24732build_libtool_need_lc=$archive_cmds_need_lc 24733 24734# Whether or not to disallow shared libs when runtime libs are static. 24735allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 24736 24737# Compiler flag to allow reflexive dlopens. 24738export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 24739 24740# Compiler flag to generate shared objects directly from archives. 24741whole_archive_flag_spec=$lt_whole_archive_flag_spec 24742 24743# Whether the compiler copes with passing no objects directly. 24744compiler_needs_object=$lt_compiler_needs_object 24745 24746# Create an old-style archive from a shared archive. 24747old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 24748 24749# Create a temporary old-style archive to link instead of a shared archive. 24750old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 24751 24752# Commands used to build a shared archive. 24753archive_cmds=$lt_archive_cmds 24754archive_expsym_cmds=$lt_archive_expsym_cmds 24755 24756# Commands used to build a loadable module if different from building 24757# a shared archive. 24758module_cmds=$lt_module_cmds 24759module_expsym_cmds=$lt_module_expsym_cmds 24760 24761# Whether we are building with GNU ld or not. 24762with_gnu_ld=$lt_with_gnu_ld 24763 24764# Flag that allows shared libraries with undefined symbols to be built. 24765allow_undefined_flag=$lt_allow_undefined_flag 24766 24767# Flag that enforces no undefined symbols. 24768no_undefined_flag=$lt_no_undefined_flag 24769 24770# Flag to hardcode \$libdir into a binary during linking. 24771# This must work even if \$libdir does not exist 24772hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 24773 24774# Whether we need a single "-rpath" flag with a separated argument. 24775hardcode_libdir_separator=$lt_hardcode_libdir_separator 24776 24777# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24778# DIR into the resulting binary. 24779hardcode_direct=$hardcode_direct 24780 24781# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 24782# DIR into the resulting binary and the resulting library dependency is 24783# "absolute",i.e impossible to change by setting \$shlibpath_var if the 24784# library is relocated. 24785hardcode_direct_absolute=$hardcode_direct_absolute 24786 24787# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 24788# into the resulting binary. 24789hardcode_minus_L=$hardcode_minus_L 24790 24791# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 24792# into the resulting binary. 24793hardcode_shlibpath_var=$hardcode_shlibpath_var 24794 24795# Set to "yes" if building a shared library automatically hardcodes DIR 24796# into the library and all subsequent libraries and executables linked 24797# against it. 24798hardcode_automatic=$hardcode_automatic 24799 24800# Set to yes if linker adds runtime paths of dependent libraries 24801# to runtime path list. 24802inherit_rpath=$inherit_rpath 24803 24804# Whether libtool must link a program against all its dependency libraries. 24805link_all_deplibs=$link_all_deplibs 24806 24807# Set to "yes" if exported symbols are required. 24808always_export_symbols=$always_export_symbols 24809 24810# The commands to list exported symbols. 24811export_symbols_cmds=$lt_export_symbols_cmds 24812 24813# Symbols that should not be listed in the preloaded symbols. 24814exclude_expsyms=$lt_exclude_expsyms 24815 24816# Symbols that must always be exported. 24817include_expsyms=$lt_include_expsyms 24818 24819# Commands necessary for linking programs (against libraries) with templates. 24820prelink_cmds=$lt_prelink_cmds 24821 24822# Commands necessary for finishing linking programs. 24823postlink_cmds=$lt_postlink_cmds 24824 24825# Specify filename containing input files. 24826file_list_spec=$lt_file_list_spec 24827 24828# How to hardcode a shared library path into an executable. 24829hardcode_action=$hardcode_action 24830 24831# The directories searched by this compiler when creating a shared library. 24832compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 24833 24834# Dependencies to place before and after the objects being linked to 24835# create a shared library. 24836predep_objects=$lt_predep_objects 24837postdep_objects=$lt_postdep_objects 24838predeps=$lt_predeps 24839postdeps=$lt_postdeps 24840 24841# The library search path used internally by the compiler when linking 24842# a shared library. 24843compiler_lib_search_path=$lt_compiler_lib_search_path 24844 24845# ### END LIBTOOL CONFIG 24846 24847_LT_EOF 24848 24849 cat <<'_LT_EOF' >> "$cfgfile" 24850 24851# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 24852 24853# func_munge_path_list VARIABLE PATH 24854# ----------------------------------- 24855# VARIABLE is name of variable containing _space_ separated list of 24856# directories to be munged by the contents of PATH, which is string 24857# having a format: 24858# "DIR[:DIR]:" 24859# string "DIR[ DIR]" will be prepended to VARIABLE 24860# ":DIR[:DIR]" 24861# string "DIR[ DIR]" will be appended to VARIABLE 24862# "DIRP[:DIRP]::[DIRA:]DIRA" 24863# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 24864# "DIRA[ DIRA]" will be appended to VARIABLE 24865# "DIR[:DIR]" 24866# VARIABLE will be replaced by "DIR[ DIR]" 24867func_munge_path_list () 24868{ 24869 case x$2 in 24870 x) 24871 ;; 24872 *:) 24873 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 24874 ;; 24875 x:*) 24876 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 24877 ;; 24878 *::*) 24879 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 24880 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 24881 ;; 24882 *) 24883 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 24884 ;; 24885 esac 24886} 24887 24888 24889# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 24890func_cc_basename () 24891{ 24892 for cc_temp in $*""; do 24893 case $cc_temp in 24894 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 24895 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 24896 \-*) ;; 24897 *) break;; 24898 esac 24899 done 24900 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 24901} 24902 24903 24904# ### END FUNCTIONS SHARED WITH CONFIGURE 24905 24906_LT_EOF 24907 24908 case $host_os in 24909 aix3*) 24910 cat <<\_LT_EOF >> "$cfgfile" 24911# AIX sometimes has problems with the GCC collect2 program. For some 24912# reason, if we set the COLLECT_NAMES environment variable, the problems 24913# vanish in a puff of smoke. 24914if test set != "${COLLECT_NAMES+set}"; then 24915 COLLECT_NAMES= 24916 export COLLECT_NAMES 24917fi 24918_LT_EOF 24919 ;; 24920 esac 24921 24922 24923ltmain=$ac_aux_dir/ltmain.sh 24924 24925 24926 # We use sed instead of cat because bash on DJGPP gets confused if 24927 # if finds mixed CR/LF and LF-only lines. Since sed operates in 24928 # text mode, it properly converts lines to CR/LF. This bash problem 24929 # is reportedly fixed, but why not run on old versions too? 24930 sed '$q' "$ltmain" >> "$cfgfile" \ 24931 || (rm -f "$cfgfile"; exit 1) 24932 24933 mv -f "$cfgfile" "$ofile" || 24934 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 24935 chmod +x "$ofile" 24936 24937 24938 cat <<_LT_EOF >> "$ofile" 24939 24940# ### BEGIN LIBTOOL TAG CONFIG: CXX 24941 24942# The linker used to build libraries. 24943LD=$lt_LD_CXX 24944 24945# How to create reloadable object files. 24946reload_flag=$lt_reload_flag_CXX 24947reload_cmds=$lt_reload_cmds_CXX 24948 24949# Commands used to build an old-style archive. 24950old_archive_cmds=$lt_old_archive_cmds_CXX 24951 24952# A language specific compiler. 24953CC=$lt_compiler_CXX 24954 24955# Is the compiler the GNU compiler? 24956with_gcc=$GCC_CXX 24957 24958# Compiler flag to turn off builtin functions. 24959no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 24960 24961# Additional compiler flags for building library objects. 24962pic_flag=$lt_lt_prog_compiler_pic_CXX 24963 24964# How to pass a linker flag through the compiler. 24965wl=$lt_lt_prog_compiler_wl_CXX 24966 24967# Compiler flag to prevent dynamic linking. 24968link_static_flag=$lt_lt_prog_compiler_static_CXX 24969 24970# Does compiler simultaneously support -c and -o options? 24971compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 24972 24973# Whether or not to add -lc for building shared libraries. 24974build_libtool_need_lc=$archive_cmds_need_lc_CXX 24975 24976# Whether or not to disallow shared libs when runtime libs are static. 24977allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 24978 24979# Compiler flag to allow reflexive dlopens. 24980export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 24981 24982# Compiler flag to generate shared objects directly from archives. 24983whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 24984 24985# Whether the compiler copes with passing no objects directly. 24986compiler_needs_object=$lt_compiler_needs_object_CXX 24987 24988# Create an old-style archive from a shared archive. 24989old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 24990 24991# Create a temporary old-style archive to link instead of a shared archive. 24992old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 24993 24994# Commands used to build a shared archive. 24995archive_cmds=$lt_archive_cmds_CXX 24996archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 24997 24998# Commands used to build a loadable module if different from building 24999# a shared archive. 25000module_cmds=$lt_module_cmds_CXX 25001module_expsym_cmds=$lt_module_expsym_cmds_CXX 25002 25003# Whether we are building with GNU ld or not. 25004with_gnu_ld=$lt_with_gnu_ld_CXX 25005 25006# Flag that allows shared libraries with undefined symbols to be built. 25007allow_undefined_flag=$lt_allow_undefined_flag_CXX 25008 25009# Flag that enforces no undefined symbols. 25010no_undefined_flag=$lt_no_undefined_flag_CXX 25011 25012# Flag to hardcode \$libdir into a binary during linking. 25013# This must work even if \$libdir does not exist 25014hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 25015 25016# Whether we need a single "-rpath" flag with a separated argument. 25017hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 25018 25019# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25020# DIR into the resulting binary. 25021hardcode_direct=$hardcode_direct_CXX 25022 25023# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 25024# DIR into the resulting binary and the resulting library dependency is 25025# "absolute",i.e impossible to change by setting \$shlibpath_var if the 25026# library is relocated. 25027hardcode_direct_absolute=$hardcode_direct_absolute_CXX 25028 25029# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 25030# into the resulting binary. 25031hardcode_minus_L=$hardcode_minus_L_CXX 25032 25033# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 25034# into the resulting binary. 25035hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 25036 25037# Set to "yes" if building a shared library automatically hardcodes DIR 25038# into the library and all subsequent libraries and executables linked 25039# against it. 25040hardcode_automatic=$hardcode_automatic_CXX 25041 25042# Set to yes if linker adds runtime paths of dependent libraries 25043# to runtime path list. 25044inherit_rpath=$inherit_rpath_CXX 25045 25046# Whether libtool must link a program against all its dependency libraries. 25047link_all_deplibs=$link_all_deplibs_CXX 25048 25049# Set to "yes" if exported symbols are required. 25050always_export_symbols=$always_export_symbols_CXX 25051 25052# The commands to list exported symbols. 25053export_symbols_cmds=$lt_export_symbols_cmds_CXX 25054 25055# Symbols that should not be listed in the preloaded symbols. 25056exclude_expsyms=$lt_exclude_expsyms_CXX 25057 25058# Symbols that must always be exported. 25059include_expsyms=$lt_include_expsyms_CXX 25060 25061# Commands necessary for linking programs (against libraries) with templates. 25062prelink_cmds=$lt_prelink_cmds_CXX 25063 25064# Commands necessary for finishing linking programs. 25065postlink_cmds=$lt_postlink_cmds_CXX 25066 25067# Specify filename containing input files. 25068file_list_spec=$lt_file_list_spec_CXX 25069 25070# How to hardcode a shared library path into an executable. 25071hardcode_action=$hardcode_action_CXX 25072 25073# The directories searched by this compiler when creating a shared library. 25074compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 25075 25076# Dependencies to place before and after the objects being linked to 25077# create a shared library. 25078predep_objects=$lt_predep_objects_CXX 25079postdep_objects=$lt_postdep_objects_CXX 25080predeps=$lt_predeps_CXX 25081postdeps=$lt_postdeps_CXX 25082 25083# The library search path used internally by the compiler when linking 25084# a shared library. 25085compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 25086 25087# ### END LIBTOOL TAG CONFIG: CXX 25088_LT_EOF 25089 25090 ;; 25091 25092 esac 25093done # for ac_tag 25094 25095 25096as_fn_exit 0 25097_ACEOF 25098ac_clean_files=$ac_clean_files_save 25099 25100test $ac_write_fail = 0 || 25101 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 25102 25103 25104# configure is writing to config.log, and then calls config.status. 25105# config.status does its own redirection, appending to config.log. 25106# Unfortunately, on DOS this fails, as config.log is still kept open 25107# by configure, so config.status won't be able to write to it; its 25108# output is simply discarded. So we exec the FD to /dev/null, 25109# effectively closing config.log, so it can be properly (re)opened and 25110# appended to by config.status. When coming back to configure, we 25111# need to make the FD available again. 25112if test "$no_create" != yes; then 25113 ac_cs_success=: 25114 ac_config_status_args= 25115 test "$silent" = yes && 25116 ac_config_status_args="$ac_config_status_args --quiet" 25117 exec 5>/dev/null 25118 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 25119 exec 5>>config.log 25120 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 25121 # would make configure fail if this is the last instruction. 25122 $ac_cs_success || as_fn_exit 1 25123fi 25124if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 25125 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 25126$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 25127fi 25128 25129 25130echo "" 25131echo "Configuration finished:" 25132echo " AVFS usage : $ac_cv_have_avfs" 25133 25134if test "$avfs_too_old" = "yes"; then 25135echo " AVFS version too old!" 25136fi 25137if test "$avfs_insecure_version" = "yes"; then 25138echo " AVFS version too old, containing security bugs, please consider update!" 25139fi 25140if test "$ac_cv_use_avfs" = "yes" -a ! "$ac_cv_have_avfs" = "yes"; then 25141 echo " *** Get at least version 0.9.5 from http://avf.sourceforge.net/ ***" 25142 echo "" 25143fi 25144 25145echo " Large file support : $support_lfs" 25146echo " Regular expressions support : $have_regex" 25147echo " X11 XIM usage : $use_xim" 25148 25149echo " X11 Xinerama support : $use_xinerama" 25150if test "$use_xinerama" != "yes"; then 25151 echo " *** To enable support, install libraries:" 25152 echo " *** - libxinerama-dev or libXinerama-devel" 25153 echo "" 25154fi 25155 25156echo " UTF8 support : $use_utf8" 25157 25158echo " Libmagic support : $have_libmagic" 25159if test "$use_libmagic" = "yes" -a ! "$have_libmagic" = "yes"; then 25160 echo " *** To enable support, install libraries:" 25161 echo " *** - libmagic-dev or file-devel" 25162 echo " *** or get a recent version from ftp://ftp.astron.com/pub/file/ ***" 25163 echo "" 25164fi 25165 25166if test "$have_hal_dbus" = "yes"; then 25167 echo " DBUS device handling : HAL" 25168elif test "$have_dbus" = "yes"; then 25169 echo " DBUS device handling : udisks" 25170else 25171 echo " DBUS device handling : no (fallback to fstab mounting)" 25172 echo " *** To enable support, install libraries:" 25173 echo " *** - libdbus-1-dev or dbus-1-devel" 25174 echo " *** - udisks or udisks2 (newer systems)" 25175 echo " *** - hal-storage (older systems)" 25176 echo "" 25177fi 25178 25179echo " Inotify support : $have_inotify" 25180echo " LUA support : $have_lua" 25181if test "$use_lua" = "yes" -a "$have_lua" != "yes"; then 25182 echo " *** To enable support, install libraries:" 25183 echo " *** - liblua5.x-dev or lua53-devel" 25184 echo "" 25185fi 25186 25187if test "$ac_cv_have_xft" = "yes"; then 25188 echo " Font engine : Xft" 25189else 25190 echo " Font engine : X11" 25191 if test "$use_xft" = "yes"; then 25192 echo " *** To enable support for Xft, install libraries:" 25193 echo " *** - libxft-dev or libXft-devel" 25194 echo "" 25195 fi 25196fi 25197 25198if test "$have_openssl_sha256" = "yes"; then 25199 echo " OpenSSL SHA256 : yes" 25200 echo " $OPENSSL_CFLAGS" 25201 echo " $OPENSSL_LIBS" 25202else 25203 echo " OpenSSL SHA256 : no" 25204 echo " *** install openssl-dev for checksumming support" 25205fi 25206 25207if test "$use_debug" = "yes"; then 25208 echo " Debug code : $use_debug" 25209fi 25210if test "$use_developer" = "yes"; then 25211 echo " Developer version : $use_developer" 25212fi 25213 25214echo " Maximum command line length : $max_cmd_len_to_use" 25215 25216echo "" 25217echo "Installation prefix : $instprefix" 25218echo "" 25219echo " To compile do" 25220echo "" 25221echo " make" 25222echo "" 25223