1#! /bin/sh 2# Guess values for system-dependent variables and create Makefiles. 3# Generated by GNU Autoconf 2.69 for the fast lexical analyser generator 2.6.0. 4# 5# Report bugs to <flex-help@lists.sourceforge.net>. 6# 7# 8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc. 9# 10# 11# This configure script is free software; the Free Software Foundation 12# gives unlimited permission to copy, distribute and modify it. 13## -------------------- ## 14## M4sh Initialization. ## 15## -------------------- ## 16 17# Be more Bourne compatible 18DUALCASE=1; export DUALCASE # for MKS sh 19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20 emulate sh 21 NULLCMD=: 22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 23 # is contrary to our usage. Disable this feature. 24 alias -g '${1+"$@"}'='"$@"' 25 setopt NO_GLOB_SUBST 26else 27 case `(set -o) 2>/dev/null` in #( 28 *posix*) : 29 set -o posix ;; #( 30 *) : 31 ;; 32esac 33fi 34 35 36as_nl=' 37' 38export as_nl 39# Printing a long string crashes Solaris 7 /usr/bin/printf. 40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 43# Prefer a ksh shell builtin over an external printf program on Solaris, 44# but without wasting forks for bash or zsh. 45if test -z "$BASH_VERSION$ZSH_VERSION" \ 46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 47 as_echo='print -r --' 48 as_echo_n='print -rn --' 49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 50 as_echo='printf %s\n' 51 as_echo_n='printf %s' 52else 53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 55 as_echo_n='/usr/ucb/echo -n' 56 else 57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 58 as_echo_n_body='eval 59 arg=$1; 60 case $arg in #( 61 *"$as_nl"*) 62 expr "X$arg" : "X\\(.*\\)$as_nl"; 63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 64 esac; 65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 66 ' 67 export as_echo_n_body 68 as_echo_n='sh -c $as_echo_n_body as_echo' 69 fi 70 export as_echo_body 71 as_echo='sh -c $as_echo_body as_echo' 72fi 73 74# The user is always right. 75if test "${PATH_SEPARATOR+set}" != set; then 76 PATH_SEPARATOR=: 77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 79 PATH_SEPARATOR=';' 80 } 81fi 82 83 84# IFS 85# We need space, tab and new line, in precisely that order. Quoting is 86# there to prevent editors from complaining about space-tab. 87# (If _AS_PATH_WALK were called with IFS unset, it would disable word 88# splitting by setting IFS to empty value.) 89IFS=" "" $as_nl" 90 91# Find who we are. Look in the path if we contain no directory separator. 92as_myself= 93case $0 in #(( 94 *[\\/]* ) as_myself=$0 ;; 95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 96for as_dir in $PATH 97do 98 IFS=$as_save_IFS 99 test -z "$as_dir" && as_dir=. 100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 101 done 102IFS=$as_save_IFS 103 104 ;; 105esac 106# We did not find ourselves, most probably we were run as `sh COMMAND' 107# in which case we are not to be found in the path. 108if test "x$as_myself" = x; then 109 as_myself=$0 110fi 111if test ! -f "$as_myself"; then 112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 113 exit 1 114fi 115 116# Unset variables that we do not need and which cause bugs (e.g. in 117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 118# suppresses any "Segmentation fault" message there. '((' could 119# trigger a bug in pdksh 5.2.14. 120for as_var in BASH_ENV ENV MAIL MAILPATH 121do eval test x\${$as_var+set} = xset \ 122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 123done 124PS1='$ ' 125PS2='> ' 126PS4='+ ' 127 128# NLS nuisances. 129LC_ALL=C 130export LC_ALL 131LANGUAGE=C 132export LANGUAGE 133 134# CDPATH. 135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 136 137# Use a proper internal environment variable to ensure we don't fall 138 # into an infinite loop, continuously re-executing ourselves. 139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then 140 _as_can_reexec=no; export _as_can_reexec; 141 # We cannot yet assume a decent shell, so we have to provide a 142# neutralization value for shells without unset; and this also 143# works around shells that cannot unset nonexistent variables. 144# Preserve -v and -x to the replacement shell. 145BASH_ENV=/dev/null 146ENV=/dev/null 147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 148case $- in # (((( 149 *v*x* | *x*v* ) as_opts=-vx ;; 150 *v* ) as_opts=-v ;; 151 *x* ) as_opts=-x ;; 152 * ) as_opts= ;; 153esac 154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 155# Admittedly, this is quite paranoid, since all the known shells bail 156# out after a failed `exec'. 157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 158as_fn_exit 255 159 fi 160 # We don't want this to propagate to other subprocesses. 161 { _as_can_reexec=; unset _as_can_reexec;} 162if test "x$CONFIG_SHELL" = x; then 163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then : 164 emulate sh 165 NULLCMD=: 166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which 167 # is contrary to our usage. Disable this feature. 168 alias -g '\${1+\"\$@\"}'='\"\$@\"' 169 setopt NO_GLOB_SUBST 170else 171 case \`(set -o) 2>/dev/null\` in #( 172 *posix*) : 173 set -o posix ;; #( 174 *) : 175 ;; 176esac 177fi 178" 179 as_required="as_fn_return () { (exit \$1); } 180as_fn_success () { as_fn_return 0; } 181as_fn_failure () { as_fn_return 1; } 182as_fn_ret_success () { return 0; } 183as_fn_ret_failure () { return 1; } 184 185exitcode=0 186as_fn_success || { exitcode=1; echo as_fn_success failed.; } 187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } 188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } 189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } 190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : 191 192else 193 exitcode=1; echo positional parameters were not saved. 194fi 195test x\$exitcode = x0 || exit 1 196test -x / || exit 1" 197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO 198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO 199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" && 200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1 201 202 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || ( 203 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 204 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 205 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO 206 PATH=/empty FPATH=/empty; export PATH FPATH 207 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\ 208 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1 209test \$(( 1 + 1 )) = 2 || exit 1" 210 if (eval "$as_required") 2>/dev/null; then : 211 as_have_required=yes 212else 213 as_have_required=no 214fi 215 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : 216 217else 218 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 219as_found=false 220for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH 221do 222 IFS=$as_save_IFS 223 test -z "$as_dir" && as_dir=. 224 as_found=: 225 case $as_dir in #( 226 /*) 227 for as_base in sh bash ksh sh5; do 228 # Try only shells that exist, to save several forks. 229 as_shell=$as_dir/$as_base 230 if { test -f "$as_shell" || test -f "$as_shell.exe"; } && 231 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then : 232 CONFIG_SHELL=$as_shell as_have_required=yes 233 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then : 234 break 2 235fi 236fi 237 done;; 238 esac 239 as_found=false 240done 241$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } && 242 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then : 243 CONFIG_SHELL=$SHELL as_have_required=yes 244fi; } 245IFS=$as_save_IFS 246 247 248 if test "x$CONFIG_SHELL" != x; then : 249 export CONFIG_SHELL 250 # We cannot yet assume a decent shell, so we have to provide a 251# neutralization value for shells without unset; and this also 252# works around shells that cannot unset nonexistent variables. 253# Preserve -v and -x to the replacement shell. 254BASH_ENV=/dev/null 255ENV=/dev/null 256(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV 257case $- in # (((( 258 *v*x* | *x*v* ) as_opts=-vx ;; 259 *v* ) as_opts=-v ;; 260 *x* ) as_opts=-x ;; 261 * ) as_opts= ;; 262esac 263exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"} 264# Admittedly, this is quite paranoid, since all the known shells bail 265# out after a failed `exec'. 266$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2 267exit 255 268fi 269 270 if test x$as_have_required = xno; then : 271 $as_echo "$0: This script requires a shell more modern than all" 272 $as_echo "$0: the shells that I found on your system." 273 if test x${ZSH_VERSION+set} = xset ; then 274 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should" 275 $as_echo "$0: be upgraded to zsh 4.3.4 or later." 276 else 277 $as_echo "$0: Please tell bug-autoconf@gnu.org and 278$0: flex-help@lists.sourceforge.net about your system, 279$0: including any error possibly output before this 280$0: message. Then install a modern shell, or manually run 281$0: the script under such a shell if you do have one." 282 fi 283 exit 1 284fi 285fi 286fi 287SHELL=${CONFIG_SHELL-/bin/sh} 288export SHELL 289# Unset more variables known to interfere with behavior of common tools. 290CLICOLOR_FORCE= GREP_OPTIONS= 291unset CLICOLOR_FORCE GREP_OPTIONS 292 293## --------------------- ## 294## M4sh Shell Functions. ## 295## --------------------- ## 296# as_fn_unset VAR 297# --------------- 298# Portably unset VAR. 299as_fn_unset () 300{ 301 { eval $1=; unset $1;} 302} 303as_unset=as_fn_unset 304 305# as_fn_set_status STATUS 306# ----------------------- 307# Set $? to STATUS, without forking. 308as_fn_set_status () 309{ 310 return $1 311} # as_fn_set_status 312 313# as_fn_exit STATUS 314# ----------------- 315# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 316as_fn_exit () 317{ 318 set +e 319 as_fn_set_status $1 320 exit $1 321} # as_fn_exit 322 323# as_fn_mkdir_p 324# ------------- 325# Create "$as_dir" as a directory, including parents if necessary. 326as_fn_mkdir_p () 327{ 328 329 case $as_dir in #( 330 -*) as_dir=./$as_dir;; 331 esac 332 test -d "$as_dir" || eval $as_mkdir_p || { 333 as_dirs= 334 while :; do 335 case $as_dir in #( 336 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 337 *) as_qdir=$as_dir;; 338 esac 339 as_dirs="'$as_qdir' $as_dirs" 340 as_dir=`$as_dirname -- "$as_dir" || 341$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 342 X"$as_dir" : 'X\(//\)[^/]' \| \ 343 X"$as_dir" : 'X\(//\)$' \| \ 344 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 345$as_echo X"$as_dir" | 346 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 347 s//\1/ 348 q 349 } 350 /^X\(\/\/\)[^/].*/{ 351 s//\1/ 352 q 353 } 354 /^X\(\/\/\)$/{ 355 s//\1/ 356 q 357 } 358 /^X\(\/\).*/{ 359 s//\1/ 360 q 361 } 362 s/.*/./; q'` 363 test -d "$as_dir" && break 364 done 365 test -z "$as_dirs" || eval "mkdir $as_dirs" 366 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 367 368 369} # as_fn_mkdir_p 370 371# as_fn_executable_p FILE 372# ----------------------- 373# Test if FILE is an executable regular file. 374as_fn_executable_p () 375{ 376 test -f "$1" && test -x "$1" 377} # as_fn_executable_p 378# as_fn_append VAR VALUE 379# ---------------------- 380# Append the text in VALUE to the end of the definition contained in VAR. Take 381# advantage of any shell optimizations that allow amortized linear growth over 382# repeated appends, instead of the typical quadratic growth present in naive 383# implementations. 384if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 385 eval 'as_fn_append () 386 { 387 eval $1+=\$2 388 }' 389else 390 as_fn_append () 391 { 392 eval $1=\$$1\$2 393 } 394fi # as_fn_append 395 396# as_fn_arith ARG... 397# ------------------ 398# Perform arithmetic evaluation on the ARGs, and store the result in the 399# global $as_val. Take advantage of shells that can avoid forks. The arguments 400# must be portable across $(()) and expr. 401if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 402 eval 'as_fn_arith () 403 { 404 as_val=$(( $* )) 405 }' 406else 407 as_fn_arith () 408 { 409 as_val=`expr "$@" || test $? -eq 1` 410 } 411fi # as_fn_arith 412 413 414# as_fn_error STATUS ERROR [LINENO LOG_FD] 415# ---------------------------------------- 416# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 417# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 418# script with STATUS, using 1 if that was 0. 419as_fn_error () 420{ 421 as_status=$1; test $as_status -eq 0 && as_status=1 422 if test "$4"; then 423 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 424 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 425 fi 426 $as_echo "$as_me: error: $2" >&2 427 as_fn_exit $as_status 428} # as_fn_error 429 430if expr a : '\(a\)' >/dev/null 2>&1 && 431 test "X`expr 00001 : '.*\(...\)'`" = X001; then 432 as_expr=expr 433else 434 as_expr=false 435fi 436 437if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 438 as_basename=basename 439else 440 as_basename=false 441fi 442 443if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 444 as_dirname=dirname 445else 446 as_dirname=false 447fi 448 449as_me=`$as_basename -- "$0" || 450$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 451 X"$0" : 'X\(//\)$' \| \ 452 X"$0" : 'X\(/\)' \| . 2>/dev/null || 453$as_echo X/"$0" | 454 sed '/^.*\/\([^/][^/]*\)\/*$/{ 455 s//\1/ 456 q 457 } 458 /^X\/\(\/\/\)$/{ 459 s//\1/ 460 q 461 } 462 /^X\/\(\/\).*/{ 463 s//\1/ 464 q 465 } 466 s/.*/./; q'` 467 468# Avoid depending upon Character Ranges. 469as_cr_letters='abcdefghijklmnopqrstuvwxyz' 470as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 471as_cr_Letters=$as_cr_letters$as_cr_LETTERS 472as_cr_digits='0123456789' 473as_cr_alnum=$as_cr_Letters$as_cr_digits 474 475 476 as_lineno_1=$LINENO as_lineno_1a=$LINENO 477 as_lineno_2=$LINENO as_lineno_2a=$LINENO 478 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" && 479 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || { 480 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-) 481 sed -n ' 482 p 483 /[$]LINENO/= 484 ' <$as_myself | 485 sed ' 486 s/[$]LINENO.*/&-/ 487 t lineno 488 b 489 :lineno 490 N 491 :loop 492 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/ 493 t loop 494 s/-\n.*// 495 ' >$as_me.lineno && 496 chmod +x "$as_me.lineno" || 497 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; } 498 499 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have 500 # already done that, so ensure we don't try to do so again and fall 501 # in an infinite loop. This has already happened in practice. 502 _as_can_reexec=no; export _as_can_reexec 503 # Don't try to exec as it changes $[0], causing all sort of problems 504 # (the dirname of $[0] is not the place where we might find the 505 # original and so on. Autoconf is especially sensitive to this). 506 . "./$as_me.lineno" 507 # Exit status is that of the last command. 508 exit 509} 510 511ECHO_C= ECHO_N= ECHO_T= 512case `echo -n x` in #((((( 513-n*) 514 case `echo 'xy\c'` in 515 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 516 xy) ECHO_C='\c';; 517 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 518 ECHO_T=' ';; 519 esac;; 520*) 521 ECHO_N='-n';; 522esac 523 524rm -f conf$$ conf$$.exe conf$$.file 525if test -d conf$$.dir; then 526 rm -f conf$$.dir/conf$$.file 527else 528 rm -f conf$$.dir 529 mkdir conf$$.dir 2>/dev/null 530fi 531if (echo >conf$$.file) 2>/dev/null; then 532 if ln -s conf$$.file conf$$ 2>/dev/null; then 533 as_ln_s='ln -s' 534 # ... but there are two gotchas: 535 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 536 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 537 # In both cases, we have to default to `cp -pR'. 538 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 539 as_ln_s='cp -pR' 540 elif ln conf$$.file conf$$ 2>/dev/null; then 541 as_ln_s=ln 542 else 543 as_ln_s='cp -pR' 544 fi 545else 546 as_ln_s='cp -pR' 547fi 548rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 549rmdir conf$$.dir 2>/dev/null 550 551if mkdir -p . 2>/dev/null; then 552 as_mkdir_p='mkdir -p "$as_dir"' 553else 554 test -d ./-p && rmdir ./-p 555 as_mkdir_p=false 556fi 557 558as_test_x='test -x' 559as_executable_p=as_fn_executable_p 560 561# Sed expression to map a string onto a valid CPP name. 562as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 563 564# Sed expression to map a string onto a valid variable name. 565as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 566 567SHELL=${CONFIG_SHELL-/bin/sh} 568 569 570test -n "$DJDIR" || exec 7<&0 </dev/null 571exec 6>&1 572 573# Name of the host. 574# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status, 575# so uname gets run too. 576ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` 577 578# 579# Initializations. 580# 581ac_default_prefix=/usr/local 582ac_clean_files= 583ac_config_libobj_dir=. 584LIBOBJS= 585cross_compiling=no 586subdirs= 587MFLAGS= 588MAKEFLAGS= 589 590# Identity of this package. 591PACKAGE_NAME='the fast lexical analyser generator' 592PACKAGE_TARNAME='flex' 593PACKAGE_VERSION='2.6.0' 594PACKAGE_STRING='the fast lexical analyser generator 2.6.0' 595PACKAGE_BUGREPORT='flex-help@lists.sourceforge.net' 596PACKAGE_URL='' 597 598ac_unique_file="src/scan.l" 599# Factoring default headers for most tests. 600ac_includes_default="\ 601#include <stdio.h> 602#ifdef HAVE_SYS_TYPES_H 603# include <sys/types.h> 604#endif 605#ifdef HAVE_SYS_STAT_H 606# include <sys/stat.h> 607#endif 608#ifdef STDC_HEADERS 609# include <stdlib.h> 610# include <stddef.h> 611#else 612# ifdef HAVE_STDLIB_H 613# include <stdlib.h> 614# endif 615#endif 616#ifdef HAVE_STRING_H 617# if !defined STDC_HEADERS && defined HAVE_MEMORY_H 618# include <memory.h> 619# endif 620# include <string.h> 621#endif 622#ifdef HAVE_STRINGS_H 623# include <strings.h> 624#endif 625#ifdef HAVE_INTTYPES_H 626# include <inttypes.h> 627#endif 628#ifdef HAVE_STDINT_H 629# include <stdint.h> 630#endif 631#ifdef HAVE_UNISTD_H 632# include <unistd.h> 633#endif" 634 635ac_config_libobj_dir=lib 636gt_needs= 637ac_subst_vars='am__EXEEXT_FALSE 638am__EXEEXT_TRUE 639LTLIBOBJS 640LIBOBJS 641ALLOCA 642want_pthread_FALSE 643want_pthread_TRUE 644INDENT 645M4 646HELP2MAN 647BISON 648am__fastdepCXX_FALSE 649am__fastdepCXX_TRUE 650CXXDEPMODE 651CXXCPP 652ac_ct_CXX 653CXXFLAGS 654CXX 655LEXLIB 656LEX_OUTPUT_ROOT 657LEX 658YFLAGS 659YACC 660POSUB 661LTLIBINTL 662LIBINTL 663INTLLIBS 664LTLIBICONV 665LIBICONV 666INTL_MACOSX_LIBS 667XGETTEXT_EXTRA_OPTIONS 668MSGMERGE 669XGETTEXT_015 670XGETTEXT 671GMSGFMT_015 672MSGFMT_015 673GMSGFMT 674MSGFMT 675GETTEXT_MACRO_VERSION 676USE_NLS 677SHARED_VERSION_INFO 678AM_BACKSLASH 679AM_DEFAULT_VERBOSITY 680AM_DEFAULT_V 681AM_V 682am__fastdepCC_FALSE 683am__fastdepCC_TRUE 684CCDEPMODE 685am__nodep 686AMDEPBACKSLASH 687AMDEP_FALSE 688AMDEP_TRUE 689am__quote 690am__include 691DEPDIR 692am__untar 693am__tar 694AMTAR 695am__leading_dot 696SET_MAKE 697mkdir_p 698MKDIR_P 699INSTALL_STRIP_PROGRAM 700install_sh 701MAKEINFO 702AUTOHEADER 703AUTOMAKE 704AUTOCONF 705ACLOCAL 706VERSION 707PACKAGE 708CYGPATH_W 709am__isrc 710INSTALL_DATA 711INSTALL_SCRIPT 712INSTALL_PROGRAM 713CPP 714LT_SYS_LIBRARY_PATH 715OTOOL64 716OTOOL 717LIPO 718NMEDIT 719DSYMUTIL 720MANIFEST_TOOL 721AWK 722RANLIB 723STRIP 724ac_ct_AR 725AR 726DLLTOOL 727OBJDUMP 728LN_S 729NM 730ac_ct_DUMPBIN 731DUMPBIN 732LD 733FGREP 734EGREP 735GREP 736SED 737OBJEXT 738EXEEXT 739ac_ct_CC 740CPPFLAGS 741LDFLAGS 742CFLAGS 743CC 744host_os 745host_vendor 746host_cpu 747host 748build_os 749build_vendor 750build_cpu 751build 752LIBTOOL 753target_alias 754host_alias 755build_alias 756LIBS 757ECHO_T 758ECHO_N 759ECHO_C 760DEFS 761mandir 762localedir 763libdir 764psdir 765pdfdir 766dvidir 767htmldir 768infodir 769docdir 770oldincludedir 771includedir 772localstatedir 773sharedstatedir 774sysconfdir 775datadir 776datarootdir 777libexecdir 778sbindir 779bindir 780program_transform_name 781prefix 782exec_prefix 783PACKAGE_URL 784PACKAGE_BUGREPORT 785PACKAGE_STRING 786PACKAGE_VERSION 787PACKAGE_TARNAME 788PACKAGE_NAME 789PATH_SEPARATOR 790SHELL' 791ac_subst_files='' 792ac_user_opts=' 793enable_option_checking 794enable_shared 795enable_static 796with_pic 797enable_fast_install 798with_aix_soname 799with_gnu_ld 800with_sysroot 801enable_libtool_lock 802enable_dependency_tracking 803enable_silent_rules 804enable_nls 805enable_rpath 806with_libiconv_prefix 807with_libintl_prefix 808' 809 ac_precious_vars='build_alias 810host_alias 811target_alias 812CC 813CFLAGS 814LDFLAGS 815LIBS 816CPPFLAGS 817LT_SYS_LIBRARY_PATH 818CPP 819YACC 820YFLAGS 821CXX 822CXXFLAGS 823CCC 824CXXCPP' 825 826 827# Initialize some variables set by options. 828ac_init_help= 829ac_init_version=false 830ac_unrecognized_opts= 831ac_unrecognized_sep= 832# The variables have the same names as the options, with 833# dashes changed to underlines. 834cache_file=/dev/null 835exec_prefix=NONE 836no_create= 837no_recursion= 838prefix=NONE 839program_prefix=NONE 840program_suffix=NONE 841program_transform_name=s,x,x, 842silent= 843site= 844srcdir= 845verbose= 846x_includes=NONE 847x_libraries=NONE 848 849# Installation directory options. 850# These are left unexpanded so users can "make install exec_prefix=/foo" 851# and all the variables that are supposed to be based on exec_prefix 852# by default will actually change. 853# Use braces instead of parens because sh, perl, etc. also accept them. 854# (The list follows the same order as the GNU Coding Standards.) 855bindir='${exec_prefix}/bin' 856sbindir='${exec_prefix}/sbin' 857libexecdir='${exec_prefix}/libexec' 858datarootdir='${prefix}/share' 859datadir='${datarootdir}' 860sysconfdir='${prefix}/etc' 861sharedstatedir='${prefix}/com' 862localstatedir='${prefix}/var' 863includedir='${prefix}/include' 864oldincludedir='/usr/include' 865docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' 866infodir='${datarootdir}/info' 867htmldir='${docdir}' 868dvidir='${docdir}' 869pdfdir='${docdir}' 870psdir='${docdir}' 871libdir='${exec_prefix}/lib' 872localedir='${datarootdir}/locale' 873mandir='${datarootdir}/man' 874 875ac_prev= 876ac_dashdash= 877for ac_option 878do 879 # If the previous option needs an argument, assign it. 880 if test -n "$ac_prev"; then 881 eval $ac_prev=\$ac_option 882 ac_prev= 883 continue 884 fi 885 886 case $ac_option in 887 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; 888 *=) ac_optarg= ;; 889 *) ac_optarg=yes ;; 890 esac 891 892 # Accept the important Cygnus configure options, so we can diagnose typos. 893 894 case $ac_dashdash$ac_option in 895 --) 896 ac_dashdash=yes ;; 897 898 -bindir | --bindir | --bindi | --bind | --bin | --bi) 899 ac_prev=bindir ;; 900 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) 901 bindir=$ac_optarg ;; 902 903 -build | --build | --buil | --bui | --bu) 904 ac_prev=build_alias ;; 905 -build=* | --build=* | --buil=* | --bui=* | --bu=*) 906 build_alias=$ac_optarg ;; 907 908 -cache-file | --cache-file | --cache-fil | --cache-fi \ 909 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) 910 ac_prev=cache_file ;; 911 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ 912 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) 913 cache_file=$ac_optarg ;; 914 915 --config-cache | -C) 916 cache_file=config.cache ;; 917 918 -datadir | --datadir | --datadi | --datad) 919 ac_prev=datadir ;; 920 -datadir=* | --datadir=* | --datadi=* | --datad=*) 921 datadir=$ac_optarg ;; 922 923 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ 924 | --dataroo | --dataro | --datar) 925 ac_prev=datarootdir ;; 926 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ 927 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) 928 datarootdir=$ac_optarg ;; 929 930 -disable-* | --disable-*) 931 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` 932 # Reject names that are not valid shell variable names. 933 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 934 as_fn_error $? "invalid feature name: $ac_useropt" 935 ac_useropt_orig=$ac_useropt 936 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 937 case $ac_user_opts in 938 *" 939"enable_$ac_useropt" 940"*) ;; 941 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" 942 ac_unrecognized_sep=', ';; 943 esac 944 eval enable_$ac_useropt=no ;; 945 946 -docdir | --docdir | --docdi | --doc | --do) 947 ac_prev=docdir ;; 948 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) 949 docdir=$ac_optarg ;; 950 951 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) 952 ac_prev=dvidir ;; 953 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) 954 dvidir=$ac_optarg ;; 955 956 -enable-* | --enable-*) 957 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` 958 # Reject names that are not valid shell variable names. 959 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 960 as_fn_error $? "invalid feature name: $ac_useropt" 961 ac_useropt_orig=$ac_useropt 962 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 963 case $ac_user_opts in 964 *" 965"enable_$ac_useropt" 966"*) ;; 967 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" 968 ac_unrecognized_sep=', ';; 969 esac 970 eval enable_$ac_useropt=\$ac_optarg ;; 971 972 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ 973 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ 974 | --exec | --exe | --ex) 975 ac_prev=exec_prefix ;; 976 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ 977 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ 978 | --exec=* | --exe=* | --ex=*) 979 exec_prefix=$ac_optarg ;; 980 981 -gas | --gas | --ga | --g) 982 # Obsolete; use --with-gas. 983 with_gas=yes ;; 984 985 -help | --help | --hel | --he | -h) 986 ac_init_help=long ;; 987 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) 988 ac_init_help=recursive ;; 989 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) 990 ac_init_help=short ;; 991 992 -host | --host | --hos | --ho) 993 ac_prev=host_alias ;; 994 -host=* | --host=* | --hos=* | --ho=*) 995 host_alias=$ac_optarg ;; 996 997 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) 998 ac_prev=htmldir ;; 999 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ 1000 | --ht=*) 1001 htmldir=$ac_optarg ;; 1002 1003 -includedir | --includedir | --includedi | --included | --include \ 1004 | --includ | --inclu | --incl | --inc) 1005 ac_prev=includedir ;; 1006 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ 1007 | --includ=* | --inclu=* | --incl=* | --inc=*) 1008 includedir=$ac_optarg ;; 1009 1010 -infodir | --infodir | --infodi | --infod | --info | --inf) 1011 ac_prev=infodir ;; 1012 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) 1013 infodir=$ac_optarg ;; 1014 1015 -libdir | --libdir | --libdi | --libd) 1016 ac_prev=libdir ;; 1017 -libdir=* | --libdir=* | --libdi=* | --libd=*) 1018 libdir=$ac_optarg ;; 1019 1020 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ 1021 | --libexe | --libex | --libe) 1022 ac_prev=libexecdir ;; 1023 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ 1024 | --libexe=* | --libex=* | --libe=*) 1025 libexecdir=$ac_optarg ;; 1026 1027 -localedir | --localedir | --localedi | --localed | --locale) 1028 ac_prev=localedir ;; 1029 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) 1030 localedir=$ac_optarg ;; 1031 1032 -localstatedir | --localstatedir | --localstatedi | --localstated \ 1033 | --localstate | --localstat | --localsta | --localst | --locals) 1034 ac_prev=localstatedir ;; 1035 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ 1036 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) 1037 localstatedir=$ac_optarg ;; 1038 1039 -mandir | --mandir | --mandi | --mand | --man | --ma | --m) 1040 ac_prev=mandir ;; 1041 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) 1042 mandir=$ac_optarg ;; 1043 1044 -nfp | --nfp | --nf) 1045 # Obsolete; use --without-fp. 1046 with_fp=no ;; 1047 1048 -no-create | --no-create | --no-creat | --no-crea | --no-cre \ 1049 | --no-cr | --no-c | -n) 1050 no_create=yes ;; 1051 1052 -no-recursion | --no-recursion | --no-recursio | --no-recursi \ 1053 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) 1054 no_recursion=yes ;; 1055 1056 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ 1057 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ 1058 | --oldin | --oldi | --old | --ol | --o) 1059 ac_prev=oldincludedir ;; 1060 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ 1061 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ 1062 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) 1063 oldincludedir=$ac_optarg ;; 1064 1065 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) 1066 ac_prev=prefix ;; 1067 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) 1068 prefix=$ac_optarg ;; 1069 1070 -program-prefix | --program-prefix | --program-prefi | --program-pref \ 1071 | --program-pre | --program-pr | --program-p) 1072 ac_prev=program_prefix ;; 1073 -program-prefix=* | --program-prefix=* | --program-prefi=* \ 1074 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) 1075 program_prefix=$ac_optarg ;; 1076 1077 -program-suffix | --program-suffix | --program-suffi | --program-suff \ 1078 | --program-suf | --program-su | --program-s) 1079 ac_prev=program_suffix ;; 1080 -program-suffix=* | --program-suffix=* | --program-suffi=* \ 1081 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) 1082 program_suffix=$ac_optarg ;; 1083 1084 -program-transform-name | --program-transform-name \ 1085 | --program-transform-nam | --program-transform-na \ 1086 | --program-transform-n | --program-transform- \ 1087 | --program-transform | --program-transfor \ 1088 | --program-transfo | --program-transf \ 1089 | --program-trans | --program-tran \ 1090 | --progr-tra | --program-tr | --program-t) 1091 ac_prev=program_transform_name ;; 1092 -program-transform-name=* | --program-transform-name=* \ 1093 | --program-transform-nam=* | --program-transform-na=* \ 1094 | --program-transform-n=* | --program-transform-=* \ 1095 | --program-transform=* | --program-transfor=* \ 1096 | --program-transfo=* | --program-transf=* \ 1097 | --program-trans=* | --program-tran=* \ 1098 | --progr-tra=* | --program-tr=* | --program-t=*) 1099 program_transform_name=$ac_optarg ;; 1100 1101 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) 1102 ac_prev=pdfdir ;; 1103 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) 1104 pdfdir=$ac_optarg ;; 1105 1106 -psdir | --psdir | --psdi | --psd | --ps) 1107 ac_prev=psdir ;; 1108 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) 1109 psdir=$ac_optarg ;; 1110 1111 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 1112 | -silent | --silent | --silen | --sile | --sil) 1113 silent=yes ;; 1114 1115 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) 1116 ac_prev=sbindir ;; 1117 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ 1118 | --sbi=* | --sb=*) 1119 sbindir=$ac_optarg ;; 1120 1121 -sharedstatedir | --sharedstatedir | --sharedstatedi \ 1122 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ 1123 | --sharedst | --shareds | --shared | --share | --shar \ 1124 | --sha | --sh) 1125 ac_prev=sharedstatedir ;; 1126 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ 1127 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ 1128 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ 1129 | --sha=* | --sh=*) 1130 sharedstatedir=$ac_optarg ;; 1131 1132 -site | --site | --sit) 1133 ac_prev=site ;; 1134 -site=* | --site=* | --sit=*) 1135 site=$ac_optarg ;; 1136 1137 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) 1138 ac_prev=srcdir ;; 1139 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) 1140 srcdir=$ac_optarg ;; 1141 1142 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ 1143 | --syscon | --sysco | --sysc | --sys | --sy) 1144 ac_prev=sysconfdir ;; 1145 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ 1146 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) 1147 sysconfdir=$ac_optarg ;; 1148 1149 -target | --target | --targe | --targ | --tar | --ta | --t) 1150 ac_prev=target_alias ;; 1151 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) 1152 target_alias=$ac_optarg ;; 1153 1154 -v | -verbose | --verbose | --verbos | --verbo | --verb) 1155 verbose=yes ;; 1156 1157 -version | --version | --versio | --versi | --vers | -V) 1158 ac_init_version=: ;; 1159 1160 -with-* | --with-*) 1161 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` 1162 # Reject names that are not valid shell variable names. 1163 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1164 as_fn_error $? "invalid package name: $ac_useropt" 1165 ac_useropt_orig=$ac_useropt 1166 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1167 case $ac_user_opts in 1168 *" 1169"with_$ac_useropt" 1170"*) ;; 1171 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" 1172 ac_unrecognized_sep=', ';; 1173 esac 1174 eval with_$ac_useropt=\$ac_optarg ;; 1175 1176 -without-* | --without-*) 1177 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` 1178 # Reject names that are not valid shell variable names. 1179 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && 1180 as_fn_error $? "invalid package name: $ac_useropt" 1181 ac_useropt_orig=$ac_useropt 1182 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` 1183 case $ac_user_opts in 1184 *" 1185"with_$ac_useropt" 1186"*) ;; 1187 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" 1188 ac_unrecognized_sep=', ';; 1189 esac 1190 eval with_$ac_useropt=no ;; 1191 1192 --x) 1193 # Obsolete; use --with-x. 1194 with_x=yes ;; 1195 1196 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ 1197 | --x-incl | --x-inc | --x-in | --x-i) 1198 ac_prev=x_includes ;; 1199 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ 1200 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) 1201 x_includes=$ac_optarg ;; 1202 1203 -x-libraries | --x-libraries | --x-librarie | --x-librari \ 1204 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) 1205 ac_prev=x_libraries ;; 1206 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ 1207 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) 1208 x_libraries=$ac_optarg ;; 1209 1210 -*) as_fn_error $? "unrecognized option: \`$ac_option' 1211Try \`$0 --help' for more information" 1212 ;; 1213 1214 *=*) 1215 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` 1216 # Reject names that are not valid shell variable names. 1217 case $ac_envvar in #( 1218 '' | [0-9]* | *[!_$as_cr_alnum]* ) 1219 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; 1220 esac 1221 eval $ac_envvar=\$ac_optarg 1222 export $ac_envvar ;; 1223 1224 *) 1225 # FIXME: should be removed in autoconf 3.0. 1226 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 1227 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && 1228 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 1229 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" 1230 ;; 1231 1232 esac 1233done 1234 1235if test -n "$ac_prev"; then 1236 ac_option=--`echo $ac_prev | sed 's/_/-/g'` 1237 as_fn_error $? "missing argument to $ac_option" 1238fi 1239 1240if test -n "$ac_unrecognized_opts"; then 1241 case $enable_option_checking in 1242 no) ;; 1243 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; 1244 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; 1245 esac 1246fi 1247 1248# Check all directory arguments for consistency. 1249for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ 1250 datadir sysconfdir sharedstatedir localstatedir includedir \ 1251 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ 1252 libdir localedir mandir 1253do 1254 eval ac_val=\$$ac_var 1255 # Remove trailing slashes. 1256 case $ac_val in 1257 */ ) 1258 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` 1259 eval $ac_var=\$ac_val;; 1260 esac 1261 # Be sure to have absolute directory names. 1262 case $ac_val in 1263 [\\/$]* | ?:[\\/]* ) continue;; 1264 NONE | '' ) case $ac_var in *prefix ) continue;; esac;; 1265 esac 1266 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" 1267done 1268 1269# There might be people who depend on the old broken behavior: `$host' 1270# used to hold the argument of --host etc. 1271# FIXME: To remove some day. 1272build=$build_alias 1273host=$host_alias 1274target=$target_alias 1275 1276# FIXME: To remove some day. 1277if test "x$host_alias" != x; then 1278 if test "x$build_alias" = x; then 1279 cross_compiling=maybe 1280 elif test "x$build_alias" != "x$host_alias"; then 1281 cross_compiling=yes 1282 fi 1283fi 1284 1285ac_tool_prefix= 1286test -n "$host_alias" && ac_tool_prefix=$host_alias- 1287 1288test "$silent" = yes && exec 6>/dev/null 1289 1290 1291ac_pwd=`pwd` && test -n "$ac_pwd" && 1292ac_ls_di=`ls -di .` && 1293ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || 1294 as_fn_error $? "working directory cannot be determined" 1295test "X$ac_ls_di" = "X$ac_pwd_ls_di" || 1296 as_fn_error $? "pwd does not report name of working directory" 1297 1298 1299# Find the source files, if location was not specified. 1300if test -z "$srcdir"; then 1301 ac_srcdir_defaulted=yes 1302 # Try the directory containing this script, then the parent directory. 1303 ac_confdir=`$as_dirname -- "$as_myself" || 1304$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 1305 X"$as_myself" : 'X\(//\)[^/]' \| \ 1306 X"$as_myself" : 'X\(//\)$' \| \ 1307 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || 1308$as_echo X"$as_myself" | 1309 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 1310 s//\1/ 1311 q 1312 } 1313 /^X\(\/\/\)[^/].*/{ 1314 s//\1/ 1315 q 1316 } 1317 /^X\(\/\/\)$/{ 1318 s//\1/ 1319 q 1320 } 1321 /^X\(\/\).*/{ 1322 s//\1/ 1323 q 1324 } 1325 s/.*/./; q'` 1326 srcdir=$ac_confdir 1327 if test ! -r "$srcdir/$ac_unique_file"; then 1328 srcdir=.. 1329 fi 1330else 1331 ac_srcdir_defaulted=no 1332fi 1333if test ! -r "$srcdir/$ac_unique_file"; then 1334 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." 1335 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" 1336fi 1337ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" 1338ac_abs_confdir=`( 1339 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" 1340 pwd)` 1341# When building in place, set srcdir=. 1342if test "$ac_abs_confdir" = "$ac_pwd"; then 1343 srcdir=. 1344fi 1345# Remove unnecessary trailing slashes from srcdir. 1346# Double slashes in file names in object file debugging info 1347# mess up M-x gdb in Emacs. 1348case $srcdir in 1349*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; 1350esac 1351for ac_var in $ac_precious_vars; do 1352 eval ac_env_${ac_var}_set=\${${ac_var}+set} 1353 eval ac_env_${ac_var}_value=\$${ac_var} 1354 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} 1355 eval ac_cv_env_${ac_var}_value=\$${ac_var} 1356done 1357 1358# 1359# Report the --help message. 1360# 1361if test "$ac_init_help" = "long"; then 1362 # Omit some internal or obsolete options to make the list less imposing. 1363 # This message is too long to be a string in the A/UX 3.1 sh. 1364 cat <<_ACEOF 1365\`configure' configures the fast lexical analyser generator 2.6.0 to adapt to many kinds of systems. 1366 1367Usage: $0 [OPTION]... [VAR=VALUE]... 1368 1369To assign environment variables (e.g., CC, CFLAGS...), specify them as 1370VAR=VALUE. See below for descriptions of some of the useful variables. 1371 1372Defaults for the options are specified in brackets. 1373 1374Configuration: 1375 -h, --help display this help and exit 1376 --help=short display options specific to this package 1377 --help=recursive display the short help of all the included packages 1378 -V, --version display version information and exit 1379 -q, --quiet, --silent do not print \`checking ...' messages 1380 --cache-file=FILE cache test results in FILE [disabled] 1381 -C, --config-cache alias for \`--cache-file=config.cache' 1382 -n, --no-create do not create output files 1383 --srcdir=DIR find the sources in DIR [configure dir or \`..'] 1384 1385Installation directories: 1386 --prefix=PREFIX install architecture-independent files in PREFIX 1387 [$ac_default_prefix] 1388 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX 1389 [PREFIX] 1390 1391By default, \`make install' will install all the files in 1392\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify 1393an installation prefix other than \`$ac_default_prefix' using \`--prefix', 1394for instance \`--prefix=\$HOME'. 1395 1396For better control, use the options below. 1397 1398Fine tuning of the installation directories: 1399 --bindir=DIR user executables [EPREFIX/bin] 1400 --sbindir=DIR system admin executables [EPREFIX/sbin] 1401 --libexecdir=DIR program executables [EPREFIX/libexec] 1402 --sysconfdir=DIR read-only single-machine data [PREFIX/etc] 1403 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] 1404 --localstatedir=DIR modifiable single-machine data [PREFIX/var] 1405 --libdir=DIR object code libraries [EPREFIX/lib] 1406 --includedir=DIR C header files [PREFIX/include] 1407 --oldincludedir=DIR C header files for non-gcc [/usr/include] 1408 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] 1409 --datadir=DIR read-only architecture-independent data [DATAROOTDIR] 1410 --infodir=DIR info documentation [DATAROOTDIR/info] 1411 --localedir=DIR locale-dependent data [DATAROOTDIR/locale] 1412 --mandir=DIR man documentation [DATAROOTDIR/man] 1413 --docdir=DIR documentation root [DATAROOTDIR/doc/flex] 1414 --htmldir=DIR html documentation [DOCDIR] 1415 --dvidir=DIR dvi documentation [DOCDIR] 1416 --pdfdir=DIR pdf documentation [DOCDIR] 1417 --psdir=DIR ps documentation [DOCDIR] 1418_ACEOF 1419 1420 cat <<\_ACEOF 1421 1422Program names: 1423 --program-prefix=PREFIX prepend PREFIX to installed program names 1424 --program-suffix=SUFFIX append SUFFIX to installed program names 1425 --program-transform-name=PROGRAM run sed PROGRAM on installed program names 1426 1427System types: 1428 --build=BUILD configure for building on BUILD [guessed] 1429 --host=HOST cross-compile to build programs to run on HOST [BUILD] 1430_ACEOF 1431fi 1432 1433if test -n "$ac_init_help"; then 1434 case $ac_init_help in 1435 short | recursive ) echo "Configuration of the fast lexical analyser generator 2.6.0:";; 1436 esac 1437 cat <<\_ACEOF 1438 1439Optional Features: 1440 --disable-option-checking ignore unrecognized --enable/--with options 1441 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) 1442 --enable-FEATURE[=ARG] include FEATURE [ARG=yes] 1443 --enable-shared[=PKGS] build shared libraries [default=yes] 1444 --enable-static[=PKGS] build static libraries [default=yes] 1445 --enable-fast-install[=PKGS] 1446 optimize for fast installation [default=yes] 1447 --disable-libtool-lock avoid locking (might break parallel builds) 1448 --enable-dependency-tracking 1449 do not reject slow dependency extractors 1450 --disable-dependency-tracking 1451 speeds up one-time build 1452 --enable-silent-rules less verbose build output (undo: "make V=1") 1453 --disable-silent-rules verbose build output (undo: "make V=0") 1454 --disable-nls do not use Native Language Support 1455 --disable-rpath do not hardcode runtime library paths 1456 1457Optional Packages: 1458 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] 1459 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1460 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use 1461 both] 1462 --with-aix-soname=aix|svr4|both 1463 shared library versioning (aka "SONAME") variant to 1464 provide on AIX, [default=aix]. 1465 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1466 --with-sysroot[=DIR] Search for dependent libraries within DIR (or the 1467 compiler's sysroot if not specified). 1468 --with-gnu-ld assume the C compiler uses GNU ld [default=no] 1469 --with-libiconv-prefix[=DIR] search for libiconv in DIR/include and DIR/lib 1470 --without-libiconv-prefix don't search for libiconv in includedir and libdir 1471 --with-libintl-prefix[=DIR] search for libintl in DIR/include and DIR/lib 1472 --without-libintl-prefix don't search for libintl in includedir and libdir 1473 1474Some influential environment variables: 1475 CC C compiler command 1476 CFLAGS C compiler flags 1477 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a 1478 nonstandard directory <lib dir> 1479 LIBS libraries to pass to the linker, e.g. -l<library> 1480 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if 1481 you have headers in a nonstandard directory <include dir> 1482 LT_SYS_LIBRARY_PATH 1483 User-defined run-time library search path. 1484 CPP C preprocessor 1485 YACC The `Yet Another Compiler Compiler' implementation to use. 1486 Defaults to the first program found out of: `bison -y', `byacc', 1487 `yacc'. 1488 YFLAGS The list of arguments that will be passed by default to $YACC. 1489 This script will default YFLAGS to the empty string to avoid a 1490 default value of `-d' given by some make applications. 1491 CXX C++ compiler command 1492 CXXFLAGS C++ compiler flags 1493 CXXCPP C++ preprocessor 1494 1495Use these variables to override the choices made by `configure' or to help 1496it to find libraries and programs with nonstandard names/locations. 1497 1498Report bugs to <flex-help@lists.sourceforge.net>. 1499_ACEOF 1500ac_status=$? 1501fi 1502 1503if test "$ac_init_help" = "recursive"; then 1504 # If there are subdirs, report their specific --help. 1505 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue 1506 test -d "$ac_dir" || 1507 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || 1508 continue 1509 ac_builddir=. 1510 1511case "$ac_dir" in 1512.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 1513*) 1514 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 1515 # A ".." for each directory in $ac_dir_suffix. 1516 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 1517 case $ac_top_builddir_sub in 1518 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 1519 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 1520 esac ;; 1521esac 1522ac_abs_top_builddir=$ac_pwd 1523ac_abs_builddir=$ac_pwd$ac_dir_suffix 1524# for backward compatibility: 1525ac_top_builddir=$ac_top_build_prefix 1526 1527case $srcdir in 1528 .) # We are building in place. 1529 ac_srcdir=. 1530 ac_top_srcdir=$ac_top_builddir_sub 1531 ac_abs_top_srcdir=$ac_pwd ;; 1532 [\\/]* | ?:[\\/]* ) # Absolute name. 1533 ac_srcdir=$srcdir$ac_dir_suffix; 1534 ac_top_srcdir=$srcdir 1535 ac_abs_top_srcdir=$srcdir ;; 1536 *) # Relative name. 1537 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 1538 ac_top_srcdir=$ac_top_build_prefix$srcdir 1539 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 1540esac 1541ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 1542 1543 cd "$ac_dir" || { ac_status=$?; continue; } 1544 # Check for guested configure. 1545 if test -f "$ac_srcdir/configure.gnu"; then 1546 echo && 1547 $SHELL "$ac_srcdir/configure.gnu" --help=recursive 1548 elif test -f "$ac_srcdir/configure"; then 1549 echo && 1550 $SHELL "$ac_srcdir/configure" --help=recursive 1551 else 1552 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 1553 fi || ac_status=$? 1554 cd "$ac_pwd" || { ac_status=$?; break; } 1555 done 1556fi 1557 1558test -n "$ac_init_help" && exit $ac_status 1559if $ac_init_version; then 1560 cat <<\_ACEOF 1561the fast lexical analyser generator configure 2.6.0 1562generated by GNU Autoconf 2.69 1563 1564Copyright (C) 2012 Free Software Foundation, Inc. 1565This configure script is free software; the Free Software Foundation 1566gives unlimited permission to copy, distribute and modify it. 1567_ACEOF 1568 exit 1569fi 1570 1571## ------------------------ ## 1572## Autoconf initialization. ## 1573## ------------------------ ## 1574 1575# ac_fn_c_try_compile LINENO 1576# -------------------------- 1577# Try to compile conftest.$ac_ext, and return whether this succeeded. 1578ac_fn_c_try_compile () 1579{ 1580 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1581 rm -f conftest.$ac_objext 1582 if { { ac_try="$ac_compile" 1583case "(($ac_try" in 1584 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1585 *) ac_try_echo=$ac_try;; 1586esac 1587eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1588$as_echo "$ac_try_echo"; } >&5 1589 (eval "$ac_compile") 2>conftest.err 1590 ac_status=$? 1591 if test -s conftest.err; then 1592 grep -v '^ *+' conftest.err >conftest.er1 1593 cat conftest.er1 >&5 1594 mv -f conftest.er1 conftest.err 1595 fi 1596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1597 test $ac_status = 0; } && { 1598 test -z "$ac_c_werror_flag" || 1599 test ! -s conftest.err 1600 } && test -s conftest.$ac_objext; then : 1601 ac_retval=0 1602else 1603 $as_echo "$as_me: failed program was:" >&5 1604sed 's/^/| /' conftest.$ac_ext >&5 1605 1606 ac_retval=1 1607fi 1608 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1609 as_fn_set_status $ac_retval 1610 1611} # ac_fn_c_try_compile 1612 1613# ac_fn_c_try_link LINENO 1614# ----------------------- 1615# Try to link conftest.$ac_ext, and return whether this succeeded. 1616ac_fn_c_try_link () 1617{ 1618 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1619 rm -f conftest.$ac_objext conftest$ac_exeext 1620 if { { ac_try="$ac_link" 1621case "(($ac_try" in 1622 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1623 *) ac_try_echo=$ac_try;; 1624esac 1625eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1626$as_echo "$ac_try_echo"; } >&5 1627 (eval "$ac_link") 2>conftest.err 1628 ac_status=$? 1629 if test -s conftest.err; then 1630 grep -v '^ *+' conftest.err >conftest.er1 1631 cat conftest.er1 >&5 1632 mv -f conftest.er1 conftest.err 1633 fi 1634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1635 test $ac_status = 0; } && { 1636 test -z "$ac_c_werror_flag" || 1637 test ! -s conftest.err 1638 } && test -s conftest$ac_exeext && { 1639 test "$cross_compiling" = yes || 1640 test -x conftest$ac_exeext 1641 }; then : 1642 ac_retval=0 1643else 1644 $as_echo "$as_me: failed program was:" >&5 1645sed 's/^/| /' conftest.$ac_ext >&5 1646 1647 ac_retval=1 1648fi 1649 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1650 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1651 # interfere with the next link command; also delete a directory that is 1652 # left behind by Apple's compiler. We do this before executing the actions. 1653 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1654 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1655 as_fn_set_status $ac_retval 1656 1657} # ac_fn_c_try_link 1658 1659# ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES 1660# ------------------------------------------------------- 1661# Tests whether HEADER exists and can be compiled using the include files in 1662# INCLUDES, setting the cache variable VAR accordingly. 1663ac_fn_c_check_header_compile () 1664{ 1665 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1667$as_echo_n "checking for $2... " >&6; } 1668if eval \${$3+:} false; then : 1669 $as_echo_n "(cached) " >&6 1670else 1671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1672/* end confdefs.h. */ 1673$4 1674#include <$2> 1675_ACEOF 1676if ac_fn_c_try_compile "$LINENO"; then : 1677 eval "$3=yes" 1678else 1679 eval "$3=no" 1680fi 1681rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1682fi 1683eval ac_res=\$$3 1684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1685$as_echo "$ac_res" >&6; } 1686 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1687 1688} # ac_fn_c_check_header_compile 1689 1690# ac_fn_c_try_cpp LINENO 1691# ---------------------- 1692# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1693ac_fn_c_try_cpp () 1694{ 1695 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1696 if { { ac_try="$ac_cpp conftest.$ac_ext" 1697case "(($ac_try" in 1698 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1699 *) ac_try_echo=$ac_try;; 1700esac 1701eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1702$as_echo "$ac_try_echo"; } >&5 1703 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1704 ac_status=$? 1705 if test -s conftest.err; then 1706 grep -v '^ *+' conftest.err >conftest.er1 1707 cat conftest.er1 >&5 1708 mv -f conftest.er1 conftest.err 1709 fi 1710 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1711 test $ac_status = 0; } > conftest.i && { 1712 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" || 1713 test ! -s conftest.err 1714 }; then : 1715 ac_retval=0 1716else 1717 $as_echo "$as_me: failed program was:" >&5 1718sed 's/^/| /' conftest.$ac_ext >&5 1719 1720 ac_retval=1 1721fi 1722 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1723 as_fn_set_status $ac_retval 1724 1725} # ac_fn_c_try_cpp 1726 1727# ac_fn_c_try_run LINENO 1728# ---------------------- 1729# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes 1730# that executables *can* be run. 1731ac_fn_c_try_run () 1732{ 1733 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1734 if { { ac_try="$ac_link" 1735case "(($ac_try" in 1736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1737 *) ac_try_echo=$ac_try;; 1738esac 1739eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1740$as_echo "$ac_try_echo"; } >&5 1741 (eval "$ac_link") 2>&5 1742 ac_status=$? 1743 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1744 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' 1745 { { case "(($ac_try" in 1746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1747 *) ac_try_echo=$ac_try;; 1748esac 1749eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1750$as_echo "$ac_try_echo"; } >&5 1751 (eval "$ac_try") 2>&5 1752 ac_status=$? 1753 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1754 test $ac_status = 0; }; }; then : 1755 ac_retval=0 1756else 1757 $as_echo "$as_me: program exited with status $ac_status" >&5 1758 $as_echo "$as_me: failed program was:" >&5 1759sed 's/^/| /' conftest.$ac_ext >&5 1760 1761 ac_retval=$ac_status 1762fi 1763 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1764 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1765 as_fn_set_status $ac_retval 1766 1767} # ac_fn_c_try_run 1768 1769# ac_fn_c_check_func LINENO FUNC VAR 1770# ---------------------------------- 1771# Tests whether FUNC exists, setting the cache variable VAR accordingly 1772ac_fn_c_check_func () 1773{ 1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1776$as_echo_n "checking for $2... " >&6; } 1777if eval \${$3+:} false; then : 1778 $as_echo_n "(cached) " >&6 1779else 1780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1781/* end confdefs.h. */ 1782/* Define $2 to an innocuous variant, in case <limits.h> declares $2. 1783 For example, HP-UX 11i <limits.h> declares gettimeofday. */ 1784#define $2 innocuous_$2 1785 1786/* System header to define __stub macros and hopefully few prototypes, 1787 which can conflict with char $2 (); below. 1788 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 1789 <limits.h> exists even on freestanding compilers. */ 1790 1791#ifdef __STDC__ 1792# include <limits.h> 1793#else 1794# include <assert.h> 1795#endif 1796 1797#undef $2 1798 1799/* Override any GCC internal prototype to avoid an error. 1800 Use char because int might match the return type of a GCC 1801 builtin and then its argument prototype would still apply. */ 1802#ifdef __cplusplus 1803extern "C" 1804#endif 1805char $2 (); 1806/* The GNU C library defines this for functions which it implements 1807 to always fail with ENOSYS. Some functions are actually named 1808 something starting with __ and the normal name is an alias. */ 1809#if defined __stub_$2 || defined __stub___$2 1810choke me 1811#endif 1812 1813int 1814main () 1815{ 1816return $2 (); 1817 ; 1818 return 0; 1819} 1820_ACEOF 1821if ac_fn_c_try_link "$LINENO"; then : 1822 eval "$3=yes" 1823else 1824 eval "$3=no" 1825fi 1826rm -f core conftest.err conftest.$ac_objext \ 1827 conftest$ac_exeext conftest.$ac_ext 1828fi 1829eval ac_res=\$$3 1830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1831$as_echo "$ac_res" >&6; } 1832 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1833 1834} # ac_fn_c_check_func 1835 1836# ac_fn_cxx_try_compile LINENO 1837# ---------------------------- 1838# Try to compile conftest.$ac_ext, and return whether this succeeded. 1839ac_fn_cxx_try_compile () 1840{ 1841 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1842 rm -f conftest.$ac_objext 1843 if { { ac_try="$ac_compile" 1844case "(($ac_try" in 1845 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1846 *) ac_try_echo=$ac_try;; 1847esac 1848eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1849$as_echo "$ac_try_echo"; } >&5 1850 (eval "$ac_compile") 2>conftest.err 1851 ac_status=$? 1852 if test -s conftest.err; then 1853 grep -v '^ *+' conftest.err >conftest.er1 1854 cat conftest.er1 >&5 1855 mv -f conftest.er1 conftest.err 1856 fi 1857 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1858 test $ac_status = 0; } && { 1859 test -z "$ac_cxx_werror_flag" || 1860 test ! -s conftest.err 1861 } && test -s conftest.$ac_objext; then : 1862 ac_retval=0 1863else 1864 $as_echo "$as_me: failed program was:" >&5 1865sed 's/^/| /' conftest.$ac_ext >&5 1866 1867 ac_retval=1 1868fi 1869 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1870 as_fn_set_status $ac_retval 1871 1872} # ac_fn_cxx_try_compile 1873 1874# ac_fn_cxx_try_cpp LINENO 1875# ------------------------ 1876# Try to preprocess conftest.$ac_ext, and return whether this succeeded. 1877ac_fn_cxx_try_cpp () 1878{ 1879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1880 if { { ac_try="$ac_cpp conftest.$ac_ext" 1881case "(($ac_try" in 1882 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1883 *) ac_try_echo=$ac_try;; 1884esac 1885eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1886$as_echo "$ac_try_echo"; } >&5 1887 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err 1888 ac_status=$? 1889 if test -s conftest.err; then 1890 grep -v '^ *+' conftest.err >conftest.er1 1891 cat conftest.er1 >&5 1892 mv -f conftest.er1 conftest.err 1893 fi 1894 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1895 test $ac_status = 0; } > conftest.i && { 1896 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || 1897 test ! -s conftest.err 1898 }; then : 1899 ac_retval=0 1900else 1901 $as_echo "$as_me: failed program was:" >&5 1902sed 's/^/| /' conftest.$ac_ext >&5 1903 1904 ac_retval=1 1905fi 1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1907 as_fn_set_status $ac_retval 1908 1909} # ac_fn_cxx_try_cpp 1910 1911# ac_fn_cxx_try_link LINENO 1912# ------------------------- 1913# Try to link conftest.$ac_ext, and return whether this succeeded. 1914ac_fn_cxx_try_link () 1915{ 1916 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1917 rm -f conftest.$ac_objext conftest$ac_exeext 1918 if { { ac_try="$ac_link" 1919case "(($ac_try" in 1920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 1921 *) ac_try_echo=$ac_try;; 1922esac 1923eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 1924$as_echo "$ac_try_echo"; } >&5 1925 (eval "$ac_link") 2>conftest.err 1926 ac_status=$? 1927 if test -s conftest.err; then 1928 grep -v '^ *+' conftest.err >conftest.er1 1929 cat conftest.er1 >&5 1930 mv -f conftest.er1 conftest.err 1931 fi 1932 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 1933 test $ac_status = 0; } && { 1934 test -z "$ac_cxx_werror_flag" || 1935 test ! -s conftest.err 1936 } && test -s conftest$ac_exeext && { 1937 test "$cross_compiling" = yes || 1938 test -x conftest$ac_exeext 1939 }; then : 1940 ac_retval=0 1941else 1942 $as_echo "$as_me: failed program was:" >&5 1943sed 's/^/| /' conftest.$ac_ext >&5 1944 1945 ac_retval=1 1946fi 1947 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information 1948 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would 1949 # interfere with the next link command; also delete a directory that is 1950 # left behind by Apple's compiler. We do this before executing the actions. 1951 rm -rf conftest.dSYM conftest_ipa8_conftest.oo 1952 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 1953 as_fn_set_status $ac_retval 1954 1955} # ac_fn_cxx_try_link 1956 1957# ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES 1958# ------------------------------------------------------- 1959# Tests whether HEADER exists, giving a warning if it cannot be compiled using 1960# the include files in INCLUDES and setting the cache variable VAR 1961# accordingly. 1962ac_fn_c_check_header_mongrel () 1963{ 1964 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 1965 if eval \${$3+:} false; then : 1966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 1967$as_echo_n "checking for $2... " >&6; } 1968if eval \${$3+:} false; then : 1969 $as_echo_n "(cached) " >&6 1970fi 1971eval ac_res=\$$3 1972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 1973$as_echo "$ac_res" >&6; } 1974else 1975 # Is the header compilable? 1976{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 1977$as_echo_n "checking $2 usability... " >&6; } 1978cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1979/* end confdefs.h. */ 1980$4 1981#include <$2> 1982_ACEOF 1983if ac_fn_c_try_compile "$LINENO"; then : 1984 ac_header_compiler=yes 1985else 1986 ac_header_compiler=no 1987fi 1988rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 1989{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 1990$as_echo "$ac_header_compiler" >&6; } 1991 1992# Is the header present? 1993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 1994$as_echo_n "checking $2 presence... " >&6; } 1995cat confdefs.h - <<_ACEOF >conftest.$ac_ext 1996/* end confdefs.h. */ 1997#include <$2> 1998_ACEOF 1999if ac_fn_c_try_cpp "$LINENO"; then : 2000 ac_header_preproc=yes 2001else 2002 ac_header_preproc=no 2003fi 2004rm -f conftest.err conftest.i conftest.$ac_ext 2005{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 2006$as_echo "$ac_header_preproc" >&6; } 2007 2008# So? What about this header? 2009case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #(( 2010 yes:no: ) 2011 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 2012$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} 2013 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2014$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2015 ;; 2016 no:yes:* ) 2017 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 2018$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} 2019 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 2020$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} 2021 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 2022$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} 2023 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 2024$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} 2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 2026$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} 2027( $as_echo "## ---------------------------------------------- ## 2028## Report this to flex-help@lists.sourceforge.net ## 2029## ---------------------------------------------- ##" 2030 ) | sed "s/^/$as_me: WARNING: /" >&2 2031 ;; 2032esac 2033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2034$as_echo_n "checking for $2... " >&6; } 2035if eval \${$3+:} false; then : 2036 $as_echo_n "(cached) " >&6 2037else 2038 eval "$3=\$ac_header_compiler" 2039fi 2040eval ac_res=\$$3 2041 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2042$as_echo "$ac_res" >&6; } 2043fi 2044 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2045 2046} # ac_fn_c_check_header_mongrel 2047 2048# ac_fn_c_check_type LINENO TYPE VAR INCLUDES 2049# ------------------------------------------- 2050# Tests whether TYPE exists after having included INCLUDES, setting cache 2051# variable VAR accordingly. 2052ac_fn_c_check_type () 2053{ 2054 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 2055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 2056$as_echo_n "checking for $2... " >&6; } 2057if eval \${$3+:} false; then : 2058 $as_echo_n "(cached) " >&6 2059else 2060 eval "$3=no" 2061 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2062/* end confdefs.h. */ 2063$4 2064int 2065main () 2066{ 2067if (sizeof ($2)) 2068 return 0; 2069 ; 2070 return 0; 2071} 2072_ACEOF 2073if ac_fn_c_try_compile "$LINENO"; then : 2074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2075/* end confdefs.h. */ 2076$4 2077int 2078main () 2079{ 2080if (sizeof (($2))) 2081 return 0; 2082 ; 2083 return 0; 2084} 2085_ACEOF 2086if ac_fn_c_try_compile "$LINENO"; then : 2087 2088else 2089 eval "$3=yes" 2090fi 2091rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2092fi 2093rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 2094fi 2095eval ac_res=\$$3 2096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 2097$as_echo "$ac_res" >&6; } 2098 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno 2099 2100} # ac_fn_c_check_type 2101cat >config.log <<_ACEOF 2102This file contains any messages produced by compilers while 2103running configure, to aid debugging if configure makes a mistake. 2104 2105It was created by the fast lexical analyser generator $as_me 2.6.0, which was 2106generated by GNU Autoconf 2.69. Invocation command line was 2107 2108 $ $0 $@ 2109 2110_ACEOF 2111exec 5>>config.log 2112{ 2113cat <<_ASUNAME 2114## --------- ## 2115## Platform. ## 2116## --------- ## 2117 2118hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` 2119uname -m = `(uname -m) 2>/dev/null || echo unknown` 2120uname -r = `(uname -r) 2>/dev/null || echo unknown` 2121uname -s = `(uname -s) 2>/dev/null || echo unknown` 2122uname -v = `(uname -v) 2>/dev/null || echo unknown` 2123 2124/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` 2125/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` 2126 2127/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` 2128/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` 2129/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` 2130/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` 2131/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` 2132/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` 2133/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` 2134 2135_ASUNAME 2136 2137as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2138for as_dir in $PATH 2139do 2140 IFS=$as_save_IFS 2141 test -z "$as_dir" && as_dir=. 2142 $as_echo "PATH: $as_dir" 2143 done 2144IFS=$as_save_IFS 2145 2146} >&5 2147 2148cat >&5 <<_ACEOF 2149 2150 2151## ----------- ## 2152## Core tests. ## 2153## ----------- ## 2154 2155_ACEOF 2156 2157 2158# Keep a trace of the command line. 2159# Strip out --no-create and --no-recursion so they do not pile up. 2160# Strip out --silent because we don't want to record it for future runs. 2161# Also quote any args containing shell meta-characters. 2162# Make two passes to allow for proper duplicate-argument suppression. 2163ac_configure_args= 2164ac_configure_args0= 2165ac_configure_args1= 2166ac_must_keep_next=false 2167for ac_pass in 1 2 2168do 2169 for ac_arg 2170 do 2171 case $ac_arg in 2172 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; 2173 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 2174 | -silent | --silent | --silen | --sile | --sil) 2175 continue ;; 2176 *\'*) 2177 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; 2178 esac 2179 case $ac_pass in 2180 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; 2181 2) 2182 as_fn_append ac_configure_args1 " '$ac_arg'" 2183 if test $ac_must_keep_next = true; then 2184 ac_must_keep_next=false # Got value, back to normal. 2185 else 2186 case $ac_arg in 2187 *=* | --config-cache | -C | -disable-* | --disable-* \ 2188 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ 2189 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ 2190 | -with-* | --with-* | -without-* | --without-* | --x) 2191 case "$ac_configure_args0 " in 2192 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; 2193 esac 2194 ;; 2195 -* ) ac_must_keep_next=true ;; 2196 esac 2197 fi 2198 as_fn_append ac_configure_args " '$ac_arg'" 2199 ;; 2200 esac 2201 done 2202done 2203{ ac_configure_args0=; unset ac_configure_args0;} 2204{ ac_configure_args1=; unset ac_configure_args1;} 2205 2206# When interrupted or exit'd, cleanup temporary files, and complete 2207# config.log. We remove comments because anyway the quotes in there 2208# would cause problems or look ugly. 2209# WARNING: Use '\'' to represent an apostrophe within the trap. 2210# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. 2211trap 'exit_status=$? 2212 # Save into config.log some information that might help in debugging. 2213 { 2214 echo 2215 2216 $as_echo "## ---------------- ## 2217## Cache variables. ## 2218## ---------------- ##" 2219 echo 2220 # The following way of writing the cache mishandles newlines in values, 2221( 2222 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do 2223 eval ac_val=\$$ac_var 2224 case $ac_val in #( 2225 *${as_nl}*) 2226 case $ac_var in #( 2227 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 2228$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 2229 esac 2230 case $ac_var in #( 2231 _ | IFS | as_nl) ;; #( 2232 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 2233 *) { eval $ac_var=; unset $ac_var;} ;; 2234 esac ;; 2235 esac 2236 done 2237 (set) 2>&1 | 2238 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( 2239 *${as_nl}ac_space=\ *) 2240 sed -n \ 2241 "s/'\''/'\''\\\\'\'''\''/g; 2242 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" 2243 ;; #( 2244 *) 2245 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 2246 ;; 2247 esac | 2248 sort 2249) 2250 echo 2251 2252 $as_echo "## ----------------- ## 2253## Output variables. ## 2254## ----------------- ##" 2255 echo 2256 for ac_var in $ac_subst_vars 2257 do 2258 eval ac_val=\$$ac_var 2259 case $ac_val in 2260 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2261 esac 2262 $as_echo "$ac_var='\''$ac_val'\''" 2263 done | sort 2264 echo 2265 2266 if test -n "$ac_subst_files"; then 2267 $as_echo "## ------------------- ## 2268## File substitutions. ## 2269## ------------------- ##" 2270 echo 2271 for ac_var in $ac_subst_files 2272 do 2273 eval ac_val=\$$ac_var 2274 case $ac_val in 2275 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; 2276 esac 2277 $as_echo "$ac_var='\''$ac_val'\''" 2278 done | sort 2279 echo 2280 fi 2281 2282 if test -s confdefs.h; then 2283 $as_echo "## ----------- ## 2284## confdefs.h. ## 2285## ----------- ##" 2286 echo 2287 cat confdefs.h 2288 echo 2289 fi 2290 test "$ac_signal" != 0 && 2291 $as_echo "$as_me: caught signal $ac_signal" 2292 $as_echo "$as_me: exit $exit_status" 2293 } >&5 2294 rm -f core *.core core.conftest.* && 2295 rm -f -r conftest* confdefs* conf$$* $ac_clean_files && 2296 exit $exit_status 2297' 0 2298for ac_signal in 1 2 13 15; do 2299 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal 2300done 2301ac_signal=0 2302 2303# confdefs.h avoids OS command line length limits that DEFS can exceed. 2304rm -f -r conftest* confdefs.h 2305 2306$as_echo "/* confdefs.h */" > confdefs.h 2307 2308# Predefined preprocessor variables. 2309 2310cat >>confdefs.h <<_ACEOF 2311#define PACKAGE_NAME "$PACKAGE_NAME" 2312_ACEOF 2313 2314cat >>confdefs.h <<_ACEOF 2315#define PACKAGE_TARNAME "$PACKAGE_TARNAME" 2316_ACEOF 2317 2318cat >>confdefs.h <<_ACEOF 2319#define PACKAGE_VERSION "$PACKAGE_VERSION" 2320_ACEOF 2321 2322cat >>confdefs.h <<_ACEOF 2323#define PACKAGE_STRING "$PACKAGE_STRING" 2324_ACEOF 2325 2326cat >>confdefs.h <<_ACEOF 2327#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" 2328_ACEOF 2329 2330cat >>confdefs.h <<_ACEOF 2331#define PACKAGE_URL "$PACKAGE_URL" 2332_ACEOF 2333 2334 2335# Let the site file select an alternate cache file if it wants to. 2336# Prefer an explicitly selected file to automatically selected ones. 2337ac_site_file1=NONE 2338ac_site_file2=NONE 2339if test -n "$CONFIG_SITE"; then 2340 # We do not want a PATH search for config.site. 2341 case $CONFIG_SITE in #(( 2342 -*) ac_site_file1=./$CONFIG_SITE;; 2343 */*) ac_site_file1=$CONFIG_SITE;; 2344 *) ac_site_file1=./$CONFIG_SITE;; 2345 esac 2346elif test "x$prefix" != xNONE; then 2347 ac_site_file1=$prefix/share/config.site 2348 ac_site_file2=$prefix/etc/config.site 2349else 2350 ac_site_file1=$ac_default_prefix/share/config.site 2351 ac_site_file2=$ac_default_prefix/etc/config.site 2352fi 2353for ac_site_file in "$ac_site_file1" "$ac_site_file2" 2354do 2355 test "x$ac_site_file" = xNONE && continue 2356 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then 2357 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 2358$as_echo "$as_me: loading site script $ac_site_file" >&6;} 2359 sed 's/^/| /' "$ac_site_file" >&5 2360 . "$ac_site_file" \ 2361 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2362$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2363as_fn_error $? "failed to load site script $ac_site_file 2364See \`config.log' for more details" "$LINENO" 5; } 2365 fi 2366done 2367 2368if test -r "$cache_file"; then 2369 # Some versions of bash will fail to source /dev/null (special files 2370 # actually), so we avoid doing that. DJGPP emulates it as a regular file. 2371 if test /dev/null != "$cache_file" && test -f "$cache_file"; then 2372 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 2373$as_echo "$as_me: loading cache $cache_file" >&6;} 2374 case $cache_file in 2375 [\\/]* | ?:[\\/]* ) . "$cache_file";; 2376 *) . "./$cache_file";; 2377 esac 2378 fi 2379else 2380 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 2381$as_echo "$as_me: creating cache $cache_file" >&6;} 2382 >$cache_file 2383fi 2384 2385gt_needs="$gt_needs " 2386# Check that the precious variables saved in the cache have kept the same 2387# value. 2388ac_cache_corrupted=false 2389for ac_var in $ac_precious_vars; do 2390 eval ac_old_set=\$ac_cv_env_${ac_var}_set 2391 eval ac_new_set=\$ac_env_${ac_var}_set 2392 eval ac_old_val=\$ac_cv_env_${ac_var}_value 2393 eval ac_new_val=\$ac_env_${ac_var}_value 2394 case $ac_old_set,$ac_new_set in 2395 set,) 2396 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 2397$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} 2398 ac_cache_corrupted=: ;; 2399 ,set) 2400 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 2401$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} 2402 ac_cache_corrupted=: ;; 2403 ,);; 2404 *) 2405 if test "x$ac_old_val" != "x$ac_new_val"; then 2406 # differences in whitespace do not lead to failure. 2407 ac_old_val_w=`echo x $ac_old_val` 2408 ac_new_val_w=`echo x $ac_new_val` 2409 if test "$ac_old_val_w" != "$ac_new_val_w"; then 2410 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 2411$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} 2412 ac_cache_corrupted=: 2413 else 2414 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 2415$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} 2416 eval $ac_var=\$ac_old_val 2417 fi 2418 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 2419$as_echo "$as_me: former value: \`$ac_old_val'" >&2;} 2420 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 2421$as_echo "$as_me: current value: \`$ac_new_val'" >&2;} 2422 fi;; 2423 esac 2424 # Pass precious variables to config.status. 2425 if test "$ac_new_set" = set; then 2426 case $ac_new_val in 2427 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; 2428 *) ac_arg=$ac_var=$ac_new_val ;; 2429 esac 2430 case " $ac_configure_args " in 2431 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. 2432 *) as_fn_append ac_configure_args " '$ac_arg'" ;; 2433 esac 2434 fi 2435done 2436if $ac_cache_corrupted; then 2437 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2438$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2439 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 2440$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} 2441 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 2442fi 2443## -------------------- ## 2444## Main body of script. ## 2445## -------------------- ## 2446 2447ac_ext=c 2448ac_cpp='$CPP $CPPFLAGS' 2449ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2450ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2451ac_compiler_gnu=$ac_cv_c_compiler_gnu 2452 2453 2454 2455ac_aux_dir= 2456for ac_dir in build-aux "$srcdir"/build-aux; do 2457 if test -f "$ac_dir/install-sh"; then 2458 ac_aux_dir=$ac_dir 2459 ac_install_sh="$ac_aux_dir/install-sh -c" 2460 break 2461 elif test -f "$ac_dir/install.sh"; then 2462 ac_aux_dir=$ac_dir 2463 ac_install_sh="$ac_aux_dir/install.sh -c" 2464 break 2465 elif test -f "$ac_dir/shtool"; then 2466 ac_aux_dir=$ac_dir 2467 ac_install_sh="$ac_aux_dir/shtool install -c" 2468 break 2469 fi 2470done 2471if test -z "$ac_aux_dir"; then 2472 as_fn_error $? "cannot find install-sh, install.sh, or shtool in build-aux \"$srcdir\"/build-aux" "$LINENO" 5 2473fi 2474 2475# These three variables are undocumented and unsupported, 2476# and are intended to be withdrawn in a future Autoconf release. 2477# They can cause serious problems if a builder's source tree is in a directory 2478# whose full name contains unusual characters. 2479ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. 2480ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. 2481ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. 2482 2483 2484case `pwd` in 2485 *\ * | *\ *) 2486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5 2487$as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;; 2488esac 2489 2490 2491 2492macro_version='2.4.6' 2493macro_revision='2.4.6' 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507ltmain=$ac_aux_dir/ltmain.sh 2508 2509# Make sure we can run config.sub. 2510$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || 2511 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 2512 2513{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 2514$as_echo_n "checking build system type... " >&6; } 2515if ${ac_cv_build+:} false; then : 2516 $as_echo_n "(cached) " >&6 2517else 2518 ac_build_alias=$build_alias 2519test "x$ac_build_alias" = x && 2520 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` 2521test "x$ac_build_alias" = x && 2522 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 2523ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || 2524 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 2525 2526fi 2527{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 2528$as_echo "$ac_cv_build" >&6; } 2529case $ac_cv_build in 2530*-*-*) ;; 2531*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; 2532esac 2533build=$ac_cv_build 2534ac_save_IFS=$IFS; IFS='-' 2535set x $ac_cv_build 2536shift 2537build_cpu=$1 2538build_vendor=$2 2539shift; shift 2540# Remember, the first character of IFS is used to create $*, 2541# except with old shells: 2542build_os=$* 2543IFS=$ac_save_IFS 2544case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac 2545 2546 2547{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 2548$as_echo_n "checking host system type... " >&6; } 2549if ${ac_cv_host+:} false; then : 2550 $as_echo_n "(cached) " >&6 2551else 2552 if test "x$host_alias" = x; then 2553 ac_cv_host=$ac_cv_build 2554else 2555 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || 2556 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 2557fi 2558 2559fi 2560{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 2561$as_echo "$ac_cv_host" >&6; } 2562case $ac_cv_host in 2563*-*-*) ;; 2564*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; 2565esac 2566host=$ac_cv_host 2567ac_save_IFS=$IFS; IFS='-' 2568set x $ac_cv_host 2569shift 2570host_cpu=$1 2571host_vendor=$2 2572shift; shift 2573# Remember, the first character of IFS is used to create $*, 2574# except with old shells: 2575host_os=$* 2576IFS=$ac_save_IFS 2577case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac 2578 2579 2580# Backslashify metacharacters that are still active within 2581# double-quoted strings. 2582sed_quote_subst='s/\(["`$\\]\)/\\\1/g' 2583 2584# Same as above, but do not quote variable references. 2585double_quote_subst='s/\(["`\\]\)/\\\1/g' 2586 2587# Sed substitution to delay expansion of an escaped shell variable in a 2588# double_quote_subst'ed string. 2589delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g' 2590 2591# Sed substitution to delay expansion of an escaped single quote. 2592delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g' 2593 2594# Sed substitution to avoid accidental globbing in evaled expressions 2595no_glob_subst='s/\*/\\\*/g' 2596 2597ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 2598ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO 2599ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO 2600 2601{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5 2602$as_echo_n "checking how to print strings... " >&6; } 2603# Test print first, because it will be a builtin if present. 2604if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \ 2605 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then 2606 ECHO='print -r --' 2607elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then 2608 ECHO='printf %s\n' 2609else 2610 # Use this function as a fallback that always works. 2611 func_fallback_echo () 2612 { 2613 eval 'cat <<_LTECHO_EOF 2614$1 2615_LTECHO_EOF' 2616 } 2617 ECHO='func_fallback_echo' 2618fi 2619 2620# func_echo_all arg... 2621# Invoke $ECHO with all args, space-separated. 2622func_echo_all () 2623{ 2624 $ECHO "" 2625} 2626 2627case $ECHO in 2628 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5 2629$as_echo "printf" >&6; } ;; 2630 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5 2631$as_echo "print -r" >&6; } ;; 2632 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5 2633$as_echo "cat" >&6; } ;; 2634esac 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649# Expand $ac_aux_dir to an absolute path. 2650am_aux_dir=`cd "$ac_aux_dir" && pwd` 2651 2652ac_ext=c 2653ac_cpp='$CPP $CPPFLAGS' 2654ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 2655ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 2656ac_compiler_gnu=$ac_cv_c_compiler_gnu 2657if test -n "$ac_tool_prefix"; then 2658 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 2659set dummy ${ac_tool_prefix}gcc; ac_word=$2 2660{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2661$as_echo_n "checking for $ac_word... " >&6; } 2662if ${ac_cv_prog_CC+:} false; then : 2663 $as_echo_n "(cached) " >&6 2664else 2665 if test -n "$CC"; then 2666 ac_cv_prog_CC="$CC" # Let the user override the test. 2667else 2668as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2669for as_dir in $PATH 2670do 2671 IFS=$as_save_IFS 2672 test -z "$as_dir" && as_dir=. 2673 for ac_exec_ext in '' $ac_executable_extensions; do 2674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2675 ac_cv_prog_CC="${ac_tool_prefix}gcc" 2676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2677 break 2 2678 fi 2679done 2680 done 2681IFS=$as_save_IFS 2682 2683fi 2684fi 2685CC=$ac_cv_prog_CC 2686if test -n "$CC"; then 2687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2688$as_echo "$CC" >&6; } 2689else 2690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2691$as_echo "no" >&6; } 2692fi 2693 2694 2695fi 2696if test -z "$ac_cv_prog_CC"; then 2697 ac_ct_CC=$CC 2698 # Extract the first word of "gcc", so it can be a program name with args. 2699set dummy gcc; ac_word=$2 2700{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2701$as_echo_n "checking for $ac_word... " >&6; } 2702if ${ac_cv_prog_ac_ct_CC+:} false; then : 2703 $as_echo_n "(cached) " >&6 2704else 2705 if test -n "$ac_ct_CC"; then 2706 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2707else 2708as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2709for as_dir in $PATH 2710do 2711 IFS=$as_save_IFS 2712 test -z "$as_dir" && as_dir=. 2713 for ac_exec_ext in '' $ac_executable_extensions; do 2714 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2715 ac_cv_prog_ac_ct_CC="gcc" 2716 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2717 break 2 2718 fi 2719done 2720 done 2721IFS=$as_save_IFS 2722 2723fi 2724fi 2725ac_ct_CC=$ac_cv_prog_ac_ct_CC 2726if test -n "$ac_ct_CC"; then 2727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2728$as_echo "$ac_ct_CC" >&6; } 2729else 2730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2731$as_echo "no" >&6; } 2732fi 2733 2734 if test "x$ac_ct_CC" = x; then 2735 CC="" 2736 else 2737 case $cross_compiling:$ac_tool_warned in 2738yes:) 2739{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2740$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2741ac_tool_warned=yes ;; 2742esac 2743 CC=$ac_ct_CC 2744 fi 2745else 2746 CC="$ac_cv_prog_CC" 2747fi 2748 2749if test -z "$CC"; then 2750 if test -n "$ac_tool_prefix"; then 2751 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 2752set dummy ${ac_tool_prefix}cc; ac_word=$2 2753{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2754$as_echo_n "checking for $ac_word... " >&6; } 2755if ${ac_cv_prog_CC+:} false; then : 2756 $as_echo_n "(cached) " >&6 2757else 2758 if test -n "$CC"; then 2759 ac_cv_prog_CC="$CC" # Let the user override the test. 2760else 2761as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2762for as_dir in $PATH 2763do 2764 IFS=$as_save_IFS 2765 test -z "$as_dir" && as_dir=. 2766 for ac_exec_ext in '' $ac_executable_extensions; do 2767 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2768 ac_cv_prog_CC="${ac_tool_prefix}cc" 2769 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2770 break 2 2771 fi 2772done 2773 done 2774IFS=$as_save_IFS 2775 2776fi 2777fi 2778CC=$ac_cv_prog_CC 2779if test -n "$CC"; then 2780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2781$as_echo "$CC" >&6; } 2782else 2783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2784$as_echo "no" >&6; } 2785fi 2786 2787 2788 fi 2789fi 2790if test -z "$CC"; then 2791 # Extract the first word of "cc", so it can be a program name with args. 2792set dummy cc; ac_word=$2 2793{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2794$as_echo_n "checking for $ac_word... " >&6; } 2795if ${ac_cv_prog_CC+:} false; then : 2796 $as_echo_n "(cached) " >&6 2797else 2798 if test -n "$CC"; then 2799 ac_cv_prog_CC="$CC" # Let the user override the test. 2800else 2801 ac_prog_rejected=no 2802as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2803for as_dir in $PATH 2804do 2805 IFS=$as_save_IFS 2806 test -z "$as_dir" && as_dir=. 2807 for ac_exec_ext in '' $ac_executable_extensions; do 2808 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2809 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 2810 ac_prog_rejected=yes 2811 continue 2812 fi 2813 ac_cv_prog_CC="cc" 2814 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2815 break 2 2816 fi 2817done 2818 done 2819IFS=$as_save_IFS 2820 2821if test $ac_prog_rejected = yes; then 2822 # We found a bogon in the path, so make sure we never use it. 2823 set dummy $ac_cv_prog_CC 2824 shift 2825 if test $# != 0; then 2826 # We chose a different compiler from the bogus one. 2827 # However, it has the same basename, so the bogon will be chosen 2828 # first if we set CC to just the basename; use the full file name. 2829 shift 2830 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 2831 fi 2832fi 2833fi 2834fi 2835CC=$ac_cv_prog_CC 2836if test -n "$CC"; then 2837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2838$as_echo "$CC" >&6; } 2839else 2840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2841$as_echo "no" >&6; } 2842fi 2843 2844 2845fi 2846if test -z "$CC"; then 2847 if test -n "$ac_tool_prefix"; then 2848 for ac_prog in cl.exe 2849 do 2850 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 2851set dummy $ac_tool_prefix$ac_prog; ac_word=$2 2852{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2853$as_echo_n "checking for $ac_word... " >&6; } 2854if ${ac_cv_prog_CC+:} false; then : 2855 $as_echo_n "(cached) " >&6 2856else 2857 if test -n "$CC"; then 2858 ac_cv_prog_CC="$CC" # Let the user override the test. 2859else 2860as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2861for as_dir in $PATH 2862do 2863 IFS=$as_save_IFS 2864 test -z "$as_dir" && as_dir=. 2865 for ac_exec_ext in '' $ac_executable_extensions; do 2866 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2867 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 2868 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2869 break 2 2870 fi 2871done 2872 done 2873IFS=$as_save_IFS 2874 2875fi 2876fi 2877CC=$ac_cv_prog_CC 2878if test -n "$CC"; then 2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 2880$as_echo "$CC" >&6; } 2881else 2882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2883$as_echo "no" >&6; } 2884fi 2885 2886 2887 test -n "$CC" && break 2888 done 2889fi 2890if test -z "$CC"; then 2891 ac_ct_CC=$CC 2892 for ac_prog in cl.exe 2893do 2894 # Extract the first word of "$ac_prog", so it can be a program name with args. 2895set dummy $ac_prog; ac_word=$2 2896{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 2897$as_echo_n "checking for $ac_word... " >&6; } 2898if ${ac_cv_prog_ac_ct_CC+:} false; then : 2899 $as_echo_n "(cached) " >&6 2900else 2901 if test -n "$ac_ct_CC"; then 2902 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 2903else 2904as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 2905for as_dir in $PATH 2906do 2907 IFS=$as_save_IFS 2908 test -z "$as_dir" && as_dir=. 2909 for ac_exec_ext in '' $ac_executable_extensions; do 2910 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 2911 ac_cv_prog_ac_ct_CC="$ac_prog" 2912 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 2913 break 2 2914 fi 2915done 2916 done 2917IFS=$as_save_IFS 2918 2919fi 2920fi 2921ac_ct_CC=$ac_cv_prog_ac_ct_CC 2922if test -n "$ac_ct_CC"; then 2923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 2924$as_echo "$ac_ct_CC" >&6; } 2925else 2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 2927$as_echo "no" >&6; } 2928fi 2929 2930 2931 test -n "$ac_ct_CC" && break 2932done 2933 2934 if test "x$ac_ct_CC" = x; then 2935 CC="" 2936 else 2937 case $cross_compiling:$ac_tool_warned in 2938yes:) 2939{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 2940$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 2941ac_tool_warned=yes ;; 2942esac 2943 CC=$ac_ct_CC 2944 fi 2945fi 2946 2947fi 2948 2949 2950test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 2951$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 2952as_fn_error $? "no acceptable C compiler found in \$PATH 2953See \`config.log' for more details" "$LINENO" 5; } 2954 2955# Provide some information about the compiler. 2956$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 2957set X $ac_compile 2958ac_compiler=$2 2959for ac_option in --version -v -V -qversion; do 2960 { { ac_try="$ac_compiler $ac_option >&5" 2961case "(($ac_try" in 2962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 2963 *) ac_try_echo=$ac_try;; 2964esac 2965eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 2966$as_echo "$ac_try_echo"; } >&5 2967 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 2968 ac_status=$? 2969 if test -s conftest.err; then 2970 sed '10a\ 2971... rest of stderr output deleted ... 2972 10q' conftest.err >conftest.er1 2973 cat conftest.er1 >&5 2974 fi 2975 rm -f conftest.er1 conftest.err 2976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 2977 test $ac_status = 0; } 2978done 2979 2980cat confdefs.h - <<_ACEOF >conftest.$ac_ext 2981/* end confdefs.h. */ 2982 2983int 2984main () 2985{ 2986 2987 ; 2988 return 0; 2989} 2990_ACEOF 2991ac_clean_files_save=$ac_clean_files 2992ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" 2993# Try to create an executable without -o first, disregard a.out. 2994# It will help us diagnose broken compilers, and finding out an intuition 2995# of exeext. 2996{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5 2997$as_echo_n "checking whether the C compiler works... " >&6; } 2998ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` 2999 3000# The possible output files: 3001ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" 3002 3003ac_rmfiles= 3004for ac_file in $ac_files 3005do 3006 case $ac_file in 3007 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3008 * ) ac_rmfiles="$ac_rmfiles $ac_file";; 3009 esac 3010done 3011rm -f $ac_rmfiles 3012 3013if { { ac_try="$ac_link_default" 3014case "(($ac_try" in 3015 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3016 *) ac_try_echo=$ac_try;; 3017esac 3018eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3019$as_echo "$ac_try_echo"; } >&5 3020 (eval "$ac_link_default") 2>&5 3021 ac_status=$? 3022 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3023 test $ac_status = 0; }; then : 3024 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. 3025# So ignore a value of `no', otherwise this would lead to `EXEEXT = no' 3026# in a Makefile. We should not override ac_cv_exeext if it was cached, 3027# so that the user can short-circuit this test for compilers unknown to 3028# Autoconf. 3029for ac_file in $ac_files '' 3030do 3031 test -f "$ac_file" || continue 3032 case $ac_file in 3033 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) 3034 ;; 3035 [ab].out ) 3036 # We found the default executable, but exeext='' is most 3037 # certainly right. 3038 break;; 3039 *.* ) 3040 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; 3041 then :; else 3042 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3043 fi 3044 # We set ac_cv_exeext here because the later test for it is not 3045 # safe: cross compilers may not add the suffix if given an `-o' 3046 # argument, so we may need to know it at that point already. 3047 # Even if this section looks crufty: it has the advantage of 3048 # actually working. 3049 break;; 3050 * ) 3051 break;; 3052 esac 3053done 3054test "$ac_cv_exeext" = no && ac_cv_exeext= 3055 3056else 3057 ac_file='' 3058fi 3059if test -z "$ac_file"; then : 3060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3061$as_echo "no" >&6; } 3062$as_echo "$as_me: failed program was:" >&5 3063sed 's/^/| /' conftest.$ac_ext >&5 3064 3065{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3066$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3067as_fn_error 77 "C compiler cannot create executables 3068See \`config.log' for more details" "$LINENO" 5; } 3069else 3070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 3071$as_echo "yes" >&6; } 3072fi 3073{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5 3074$as_echo_n "checking for C compiler default output file name... " >&6; } 3075{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 3076$as_echo "$ac_file" >&6; } 3077ac_exeext=$ac_cv_exeext 3078 3079rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out 3080ac_clean_files=$ac_clean_files_save 3081{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 3082$as_echo_n "checking for suffix of executables... " >&6; } 3083if { { ac_try="$ac_link" 3084case "(($ac_try" in 3085 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3086 *) ac_try_echo=$ac_try;; 3087esac 3088eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3089$as_echo "$ac_try_echo"; } >&5 3090 (eval "$ac_link") 2>&5 3091 ac_status=$? 3092 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3093 test $ac_status = 0; }; then : 3094 # If both `conftest.exe' and `conftest' are `present' (well, observable) 3095# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will 3096# work properly (i.e., refer to `conftest.exe'), while it won't with 3097# `rm'. 3098for ac_file in conftest.exe conftest conftest.*; do 3099 test -f "$ac_file" || continue 3100 case $ac_file in 3101 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; 3102 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` 3103 break;; 3104 * ) break;; 3105 esac 3106done 3107else 3108 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3109$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3110as_fn_error $? "cannot compute suffix of executables: cannot compile and link 3111See \`config.log' for more details" "$LINENO" 5; } 3112fi 3113rm -f conftest conftest$ac_cv_exeext 3114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 3115$as_echo "$ac_cv_exeext" >&6; } 3116 3117rm -f conftest.$ac_ext 3118EXEEXT=$ac_cv_exeext 3119ac_exeext=$EXEEXT 3120cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3121/* end confdefs.h. */ 3122#include <stdio.h> 3123int 3124main () 3125{ 3126FILE *f = fopen ("conftest.out", "w"); 3127 return ferror (f) || fclose (f) != 0; 3128 3129 ; 3130 return 0; 3131} 3132_ACEOF 3133ac_clean_files="$ac_clean_files conftest.out" 3134# Check that the compiler produces executables we can run. If not, either 3135# the compiler is broken, or we cross compile. 3136{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 3137$as_echo_n "checking whether we are cross compiling... " >&6; } 3138if test "$cross_compiling" != yes; then 3139 { { ac_try="$ac_link" 3140case "(($ac_try" in 3141 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3142 *) ac_try_echo=$ac_try;; 3143esac 3144eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3145$as_echo "$ac_try_echo"; } >&5 3146 (eval "$ac_link") 2>&5 3147 ac_status=$? 3148 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3149 test $ac_status = 0; } 3150 if { ac_try='./conftest$ac_cv_exeext' 3151 { { case "(($ac_try" in 3152 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3153 *) ac_try_echo=$ac_try;; 3154esac 3155eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3156$as_echo "$ac_try_echo"; } >&5 3157 (eval "$ac_try") 2>&5 3158 ac_status=$? 3159 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3160 test $ac_status = 0; }; }; then 3161 cross_compiling=no 3162 else 3163 if test "$cross_compiling" = maybe; then 3164 cross_compiling=yes 3165 else 3166 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3167$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3168as_fn_error $? "cannot run C compiled programs. 3169If you meant to cross compile, use \`--host'. 3170See \`config.log' for more details" "$LINENO" 5; } 3171 fi 3172 fi 3173fi 3174{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 3175$as_echo "$cross_compiling" >&6; } 3176 3177rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out 3178ac_clean_files=$ac_clean_files_save 3179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 3180$as_echo_n "checking for suffix of object files... " >&6; } 3181if ${ac_cv_objext+:} false; then : 3182 $as_echo_n "(cached) " >&6 3183else 3184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3185/* end confdefs.h. */ 3186 3187int 3188main () 3189{ 3190 3191 ; 3192 return 0; 3193} 3194_ACEOF 3195rm -f conftest.o conftest.obj 3196if { { ac_try="$ac_compile" 3197case "(($ac_try" in 3198 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 3199 *) ac_try_echo=$ac_try;; 3200esac 3201eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 3202$as_echo "$ac_try_echo"; } >&5 3203 (eval "$ac_compile") 2>&5 3204 ac_status=$? 3205 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 3206 test $ac_status = 0; }; then : 3207 for ac_file in conftest.o conftest.obj conftest.*; do 3208 test -f "$ac_file" || continue; 3209 case $ac_file in 3210 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; 3211 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` 3212 break;; 3213 esac 3214done 3215else 3216 $as_echo "$as_me: failed program was:" >&5 3217sed 's/^/| /' conftest.$ac_ext >&5 3218 3219{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 3220$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 3221as_fn_error $? "cannot compute suffix of object files: cannot compile 3222See \`config.log' for more details" "$LINENO" 5; } 3223fi 3224rm -f conftest.$ac_cv_objext conftest.$ac_ext 3225fi 3226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 3227$as_echo "$ac_cv_objext" >&6; } 3228OBJEXT=$ac_cv_objext 3229ac_objext=$OBJEXT 3230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 3231$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 3232if ${ac_cv_c_compiler_gnu+:} false; then : 3233 $as_echo_n "(cached) " >&6 3234else 3235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3236/* end confdefs.h. */ 3237 3238int 3239main () 3240{ 3241#ifndef __GNUC__ 3242 choke me 3243#endif 3244 3245 ; 3246 return 0; 3247} 3248_ACEOF 3249if ac_fn_c_try_compile "$LINENO"; then : 3250 ac_compiler_gnu=yes 3251else 3252 ac_compiler_gnu=no 3253fi 3254rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3255ac_cv_c_compiler_gnu=$ac_compiler_gnu 3256 3257fi 3258{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 3259$as_echo "$ac_cv_c_compiler_gnu" >&6; } 3260if test $ac_compiler_gnu = yes; then 3261 GCC=yes 3262else 3263 GCC= 3264fi 3265ac_test_CFLAGS=${CFLAGS+set} 3266ac_save_CFLAGS=$CFLAGS 3267{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 3268$as_echo_n "checking whether $CC accepts -g... " >&6; } 3269if ${ac_cv_prog_cc_g+:} false; then : 3270 $as_echo_n "(cached) " >&6 3271else 3272 ac_save_c_werror_flag=$ac_c_werror_flag 3273 ac_c_werror_flag=yes 3274 ac_cv_prog_cc_g=no 3275 CFLAGS="-g" 3276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3277/* end confdefs.h. */ 3278 3279int 3280main () 3281{ 3282 3283 ; 3284 return 0; 3285} 3286_ACEOF 3287if ac_fn_c_try_compile "$LINENO"; then : 3288 ac_cv_prog_cc_g=yes 3289else 3290 CFLAGS="" 3291 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3292/* end confdefs.h. */ 3293 3294int 3295main () 3296{ 3297 3298 ; 3299 return 0; 3300} 3301_ACEOF 3302if ac_fn_c_try_compile "$LINENO"; then : 3303 3304else 3305 ac_c_werror_flag=$ac_save_c_werror_flag 3306 CFLAGS="-g" 3307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3308/* end confdefs.h. */ 3309 3310int 3311main () 3312{ 3313 3314 ; 3315 return 0; 3316} 3317_ACEOF 3318if ac_fn_c_try_compile "$LINENO"; then : 3319 ac_cv_prog_cc_g=yes 3320fi 3321rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3322fi 3323rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3324fi 3325rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 3326 ac_c_werror_flag=$ac_save_c_werror_flag 3327fi 3328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 3329$as_echo "$ac_cv_prog_cc_g" >&6; } 3330if test "$ac_test_CFLAGS" = set; then 3331 CFLAGS=$ac_save_CFLAGS 3332elif test $ac_cv_prog_cc_g = yes; then 3333 if test "$GCC" = yes; then 3334 CFLAGS="-g -O2" 3335 else 3336 CFLAGS="-g" 3337 fi 3338else 3339 if test "$GCC" = yes; then 3340 CFLAGS="-O2" 3341 else 3342 CFLAGS= 3343 fi 3344fi 3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 3346$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 3347if ${ac_cv_prog_cc_c89+:} false; then : 3348 $as_echo_n "(cached) " >&6 3349else 3350 ac_cv_prog_cc_c89=no 3351ac_save_CC=$CC 3352cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3353/* end confdefs.h. */ 3354#include <stdarg.h> 3355#include <stdio.h> 3356struct stat; 3357/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 3358struct buf { int x; }; 3359FILE * (*rcsopen) (struct buf *, struct stat *, int); 3360static char *e (p, i) 3361 char **p; 3362 int i; 3363{ 3364 return p[i]; 3365} 3366static char *f (char * (*g) (char **, int), char **p, ...) 3367{ 3368 char *s; 3369 va_list v; 3370 va_start (v,p); 3371 s = g (p, va_arg (v,int)); 3372 va_end (v); 3373 return s; 3374} 3375 3376/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 3377 function prototypes and stuff, but not '\xHH' hex character constants. 3378 These don't provoke an error unfortunately, instead are silently treated 3379 as 'x'. The following induces an error, until -std is added to get 3380 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 3381 array size at least. It's necessary to write '\x00'==0 to get something 3382 that's true only with -std. */ 3383int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 3384 3385/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 3386 inside strings and character constants. */ 3387#define FOO(x) 'x' 3388int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 3389 3390int test (int i, double x); 3391struct s1 {int (*f) (int a);}; 3392struct s2 {int (*f) (double a);}; 3393int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 3394int argc; 3395char **argv; 3396int 3397main () 3398{ 3399return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 3400 ; 3401 return 0; 3402} 3403_ACEOF 3404for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 3405 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 3406do 3407 CC="$ac_save_CC $ac_arg" 3408 if ac_fn_c_try_compile "$LINENO"; then : 3409 ac_cv_prog_cc_c89=$ac_arg 3410fi 3411rm -f core conftest.err conftest.$ac_objext 3412 test "x$ac_cv_prog_cc_c89" != "xno" && break 3413done 3414rm -f conftest.$ac_ext 3415CC=$ac_save_CC 3416 3417fi 3418# AC_CACHE_VAL 3419case "x$ac_cv_prog_cc_c89" in 3420 x) 3421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 3422$as_echo "none needed" >&6; } ;; 3423 xno) 3424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 3425$as_echo "unsupported" >&6; } ;; 3426 *) 3427 CC="$CC $ac_cv_prog_cc_c89" 3428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 3429$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 3430esac 3431if test "x$ac_cv_prog_cc_c89" != xno; then : 3432 3433fi 3434 3435ac_ext=c 3436ac_cpp='$CPP $CPPFLAGS' 3437ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3438ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3439ac_compiler_gnu=$ac_cv_c_compiler_gnu 3440 3441ac_ext=c 3442ac_cpp='$CPP $CPPFLAGS' 3443ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3444ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3445ac_compiler_gnu=$ac_cv_c_compiler_gnu 3446{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 3447$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 3448if ${am_cv_prog_cc_c_o+:} false; then : 3449 $as_echo_n "(cached) " >&6 3450else 3451 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 3452/* end confdefs.h. */ 3453 3454int 3455main () 3456{ 3457 3458 ; 3459 return 0; 3460} 3461_ACEOF 3462 # Make sure it works both with $CC and with simple cc. 3463 # Following AC_PROG_CC_C_O, we do the test twice because some 3464 # compilers refuse to overwrite an existing .o file with -o, 3465 # though they will create one. 3466 am_cv_prog_cc_c_o=yes 3467 for am_i in 1 2; do 3468 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 3469 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 3470 ac_status=$? 3471 echo "$as_me:$LINENO: \$? = $ac_status" >&5 3472 (exit $ac_status); } \ 3473 && test -f conftest2.$ac_objext; then 3474 : OK 3475 else 3476 am_cv_prog_cc_c_o=no 3477 break 3478 fi 3479 done 3480 rm -f core conftest* 3481 unset am_i 3482fi 3483{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 3484$as_echo "$am_cv_prog_cc_c_o" >&6; } 3485if test "$am_cv_prog_cc_c_o" != yes; then 3486 # Losing compiler, so override with the script. 3487 # FIXME: It is wrong to rewrite CC. 3488 # But if we don't then we get into trouble of one sort or another. 3489 # A longer-term fix would be to have automake use am__CC in this case, 3490 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 3491 CC="$am_aux_dir/compile $CC" 3492fi 3493ac_ext=c 3494ac_cpp='$CPP $CPPFLAGS' 3495ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 3496ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 3497ac_compiler_gnu=$ac_cv_c_compiler_gnu 3498 3499 3500{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5 3501$as_echo_n "checking for a sed that does not truncate output... " >&6; } 3502if ${ac_cv_path_SED+:} false; then : 3503 $as_echo_n "(cached) " >&6 3504else 3505 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/ 3506 for ac_i in 1 2 3 4 5 6 7; do 3507 ac_script="$ac_script$as_nl$ac_script" 3508 done 3509 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed 3510 { ac_script=; unset ac_script;} 3511 if test -z "$SED"; then 3512 ac_path_SED_found=false 3513 # Loop through the user's path and test for each of PROGNAME-LIST 3514 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3515for as_dir in $PATH 3516do 3517 IFS=$as_save_IFS 3518 test -z "$as_dir" && as_dir=. 3519 for ac_prog in sed gsed; do 3520 for ac_exec_ext in '' $ac_executable_extensions; do 3521 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext" 3522 as_fn_executable_p "$ac_path_SED" || continue 3523# Check for GNU ac_path_SED and select it if it is found. 3524 # Check for GNU $ac_path_SED 3525case `"$ac_path_SED" --version 2>&1` in 3526*GNU*) 3527 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;; 3528*) 3529 ac_count=0 3530 $as_echo_n 0123456789 >"conftest.in" 3531 while : 3532 do 3533 cat "conftest.in" "conftest.in" >"conftest.tmp" 3534 mv "conftest.tmp" "conftest.in" 3535 cp "conftest.in" "conftest.nl" 3536 $as_echo '' >> "conftest.nl" 3537 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break 3538 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3539 as_fn_arith $ac_count + 1 && ac_count=$as_val 3540 if test $ac_count -gt ${ac_path_SED_max-0}; then 3541 # Best one so far, save it but keep looking for a better one 3542 ac_cv_path_SED="$ac_path_SED" 3543 ac_path_SED_max=$ac_count 3544 fi 3545 # 10*(2^10) chars as input seems more than enough 3546 test $ac_count -gt 10 && break 3547 done 3548 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3549esac 3550 3551 $ac_path_SED_found && break 3 3552 done 3553 done 3554 done 3555IFS=$as_save_IFS 3556 if test -z "$ac_cv_path_SED"; then 3557 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5 3558 fi 3559else 3560 ac_cv_path_SED=$SED 3561fi 3562 3563fi 3564{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5 3565$as_echo "$ac_cv_path_SED" >&6; } 3566 SED="$ac_cv_path_SED" 3567 rm -f conftest.sed 3568 3569test -z "$SED" && SED=sed 3570Xsed="$SED -e 1s/^X//" 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 3583$as_echo_n "checking for grep that handles long lines and -e... " >&6; } 3584if ${ac_cv_path_GREP+:} false; then : 3585 $as_echo_n "(cached) " >&6 3586else 3587 if test -z "$GREP"; then 3588 ac_path_GREP_found=false 3589 # Loop through the user's path and test for each of PROGNAME-LIST 3590 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3591for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3592do 3593 IFS=$as_save_IFS 3594 test -z "$as_dir" && as_dir=. 3595 for ac_prog in grep ggrep; do 3596 for ac_exec_ext in '' $ac_executable_extensions; do 3597 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" 3598 as_fn_executable_p "$ac_path_GREP" || continue 3599# Check for GNU ac_path_GREP and select it if it is found. 3600 # Check for GNU $ac_path_GREP 3601case `"$ac_path_GREP" --version 2>&1` in 3602*GNU*) 3603 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; 3604*) 3605 ac_count=0 3606 $as_echo_n 0123456789 >"conftest.in" 3607 while : 3608 do 3609 cat "conftest.in" "conftest.in" >"conftest.tmp" 3610 mv "conftest.tmp" "conftest.in" 3611 cp "conftest.in" "conftest.nl" 3612 $as_echo 'GREP' >> "conftest.nl" 3613 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3614 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3615 as_fn_arith $ac_count + 1 && ac_count=$as_val 3616 if test $ac_count -gt ${ac_path_GREP_max-0}; then 3617 # Best one so far, save it but keep looking for a better one 3618 ac_cv_path_GREP="$ac_path_GREP" 3619 ac_path_GREP_max=$ac_count 3620 fi 3621 # 10*(2^10) chars as input seems more than enough 3622 test $ac_count -gt 10 && break 3623 done 3624 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3625esac 3626 3627 $ac_path_GREP_found && break 3 3628 done 3629 done 3630 done 3631IFS=$as_save_IFS 3632 if test -z "$ac_cv_path_GREP"; then 3633 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3634 fi 3635else 3636 ac_cv_path_GREP=$GREP 3637fi 3638 3639fi 3640{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 3641$as_echo "$ac_cv_path_GREP" >&6; } 3642 GREP="$ac_cv_path_GREP" 3643 3644 3645{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 3646$as_echo_n "checking for egrep... " >&6; } 3647if ${ac_cv_path_EGREP+:} false; then : 3648 $as_echo_n "(cached) " >&6 3649else 3650 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 3651 then ac_cv_path_EGREP="$GREP -E" 3652 else 3653 if test -z "$EGREP"; then 3654 ac_path_EGREP_found=false 3655 # Loop through the user's path and test for each of PROGNAME-LIST 3656 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3657for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3658do 3659 IFS=$as_save_IFS 3660 test -z "$as_dir" && as_dir=. 3661 for ac_prog in egrep; do 3662 for ac_exec_ext in '' $ac_executable_extensions; do 3663 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" 3664 as_fn_executable_p "$ac_path_EGREP" || continue 3665# Check for GNU ac_path_EGREP and select it if it is found. 3666 # Check for GNU $ac_path_EGREP 3667case `"$ac_path_EGREP" --version 2>&1` in 3668*GNU*) 3669 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; 3670*) 3671 ac_count=0 3672 $as_echo_n 0123456789 >"conftest.in" 3673 while : 3674 do 3675 cat "conftest.in" "conftest.in" >"conftest.tmp" 3676 mv "conftest.tmp" "conftest.in" 3677 cp "conftest.in" "conftest.nl" 3678 $as_echo 'EGREP' >> "conftest.nl" 3679 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break 3680 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3681 as_fn_arith $ac_count + 1 && ac_count=$as_val 3682 if test $ac_count -gt ${ac_path_EGREP_max-0}; then 3683 # Best one so far, save it but keep looking for a better one 3684 ac_cv_path_EGREP="$ac_path_EGREP" 3685 ac_path_EGREP_max=$ac_count 3686 fi 3687 # 10*(2^10) chars as input seems more than enough 3688 test $ac_count -gt 10 && break 3689 done 3690 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3691esac 3692 3693 $ac_path_EGREP_found && break 3 3694 done 3695 done 3696 done 3697IFS=$as_save_IFS 3698 if test -z "$ac_cv_path_EGREP"; then 3699 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3700 fi 3701else 3702 ac_cv_path_EGREP=$EGREP 3703fi 3704 3705 fi 3706fi 3707{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 3708$as_echo "$ac_cv_path_EGREP" >&6; } 3709 EGREP="$ac_cv_path_EGREP" 3710 3711 3712{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5 3713$as_echo_n "checking for fgrep... " >&6; } 3714if ${ac_cv_path_FGREP+:} false; then : 3715 $as_echo_n "(cached) " >&6 3716else 3717 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1 3718 then ac_cv_path_FGREP="$GREP -F" 3719 else 3720 if test -z "$FGREP"; then 3721 ac_path_FGREP_found=false 3722 # Loop through the user's path and test for each of PROGNAME-LIST 3723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3724for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin 3725do 3726 IFS=$as_save_IFS 3727 test -z "$as_dir" && as_dir=. 3728 for ac_prog in fgrep; do 3729 for ac_exec_ext in '' $ac_executable_extensions; do 3730 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext" 3731 as_fn_executable_p "$ac_path_FGREP" || continue 3732# Check for GNU ac_path_FGREP and select it if it is found. 3733 # Check for GNU $ac_path_FGREP 3734case `"$ac_path_FGREP" --version 2>&1` in 3735*GNU*) 3736 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;; 3737*) 3738 ac_count=0 3739 $as_echo_n 0123456789 >"conftest.in" 3740 while : 3741 do 3742 cat "conftest.in" "conftest.in" >"conftest.tmp" 3743 mv "conftest.tmp" "conftest.in" 3744 cp "conftest.in" "conftest.nl" 3745 $as_echo 'FGREP' >> "conftest.nl" 3746 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break 3747 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break 3748 as_fn_arith $ac_count + 1 && ac_count=$as_val 3749 if test $ac_count -gt ${ac_path_FGREP_max-0}; then 3750 # Best one so far, save it but keep looking for a better one 3751 ac_cv_path_FGREP="$ac_path_FGREP" 3752 ac_path_FGREP_max=$ac_count 3753 fi 3754 # 10*(2^10) chars as input seems more than enough 3755 test $ac_count -gt 10 && break 3756 done 3757 rm -f conftest.in conftest.tmp conftest.nl conftest.out;; 3758esac 3759 3760 $ac_path_FGREP_found && break 3 3761 done 3762 done 3763 done 3764IFS=$as_save_IFS 3765 if test -z "$ac_cv_path_FGREP"; then 3766 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 3767 fi 3768else 3769 ac_cv_path_FGREP=$FGREP 3770fi 3771 3772 fi 3773fi 3774{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5 3775$as_echo "$ac_cv_path_FGREP" >&6; } 3776 FGREP="$ac_cv_path_FGREP" 3777 3778 3779test -z "$GREP" && GREP=grep 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799# Check whether --with-gnu-ld was given. 3800if test "${with_gnu_ld+set}" = set; then : 3801 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 3802else 3803 with_gnu_ld=no 3804fi 3805 3806ac_prog=ld 3807if test yes = "$GCC"; then 3808 # Check if gcc -print-prog-name=ld gives a path. 3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 3810$as_echo_n "checking for ld used by $CC... " >&6; } 3811 case $host in 3812 *-*-mingw*) 3813 # gcc leaves a trailing carriage return, which upsets mingw 3814 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 3815 *) 3816 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 3817 esac 3818 case $ac_prog in 3819 # Accept absolute paths. 3820 [\\/]* | ?:[\\/]*) 3821 re_direlt='/[^/][^/]*/\.\./' 3822 # Canonicalize the pathname of ld 3823 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 3824 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 3825 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 3826 done 3827 test -z "$LD" && LD=$ac_prog 3828 ;; 3829 "") 3830 # If it fails, then pretend we aren't using GCC. 3831 ac_prog=ld 3832 ;; 3833 *) 3834 # If it is relative, then search for the first ld in PATH. 3835 with_gnu_ld=unknown 3836 ;; 3837 esac 3838elif test yes = "$with_gnu_ld"; then 3839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 3840$as_echo_n "checking for GNU ld... " >&6; } 3841else 3842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 3843$as_echo_n "checking for non-GNU ld... " >&6; } 3844fi 3845if ${lt_cv_path_LD+:} false; then : 3846 $as_echo_n "(cached) " >&6 3847else 3848 if test -z "$LD"; then 3849 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3850 for ac_dir in $PATH; do 3851 IFS=$lt_save_ifs 3852 test -z "$ac_dir" && ac_dir=. 3853 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 3854 lt_cv_path_LD=$ac_dir/$ac_prog 3855 # Check to see if the program is GNU ld. I'd rather use --version, 3856 # but apparently some variants of GNU ld only accept -v. 3857 # Break only if it was the GNU/non-GNU ld that we prefer. 3858 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 3859 *GNU* | *'with BFD'*) 3860 test no != "$with_gnu_ld" && break 3861 ;; 3862 *) 3863 test yes != "$with_gnu_ld" && break 3864 ;; 3865 esac 3866 fi 3867 done 3868 IFS=$lt_save_ifs 3869else 3870 lt_cv_path_LD=$LD # Let the user override the test with a path. 3871fi 3872fi 3873 3874LD=$lt_cv_path_LD 3875if test -n "$LD"; then 3876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 3877$as_echo "$LD" >&6; } 3878else 3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3880$as_echo "no" >&6; } 3881fi 3882test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 3883{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 3884$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 3885if ${lt_cv_prog_gnu_ld+:} false; then : 3886 $as_echo_n "(cached) " >&6 3887else 3888 # I'd rather use --version here, but apparently some GNU lds only accept -v. 3889case `$LD -v 2>&1 </dev/null` in 3890*GNU* | *'with BFD'*) 3891 lt_cv_prog_gnu_ld=yes 3892 ;; 3893*) 3894 lt_cv_prog_gnu_ld=no 3895 ;; 3896esac 3897fi 3898{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 3899$as_echo "$lt_cv_prog_gnu_ld" >&6; } 3900with_gnu_ld=$lt_cv_prog_gnu_ld 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5 3911$as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; } 3912if ${lt_cv_path_NM+:} false; then : 3913 $as_echo_n "(cached) " >&6 3914else 3915 if test -n "$NM"; then 3916 # Let the user override the test. 3917 lt_cv_path_NM=$NM 3918else 3919 lt_nm_to_check=${ac_tool_prefix}nm 3920 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then 3921 lt_nm_to_check="$lt_nm_to_check nm" 3922 fi 3923 for lt_tmp_nm in $lt_nm_to_check; do 3924 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 3925 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do 3926 IFS=$lt_save_ifs 3927 test -z "$ac_dir" && ac_dir=. 3928 tmp_nm=$ac_dir/$lt_tmp_nm 3929 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext"; then 3930 # Check to see if the nm accepts a BSD-compat flag. 3931 # Adding the 'sed 1q' prevents false positives on HP-UX, which says: 3932 # nm: unknown option "B" ignored 3933 # Tru64's nm complains that /dev/null is an invalid object file 3934 # MSYS converts /dev/null to NUL, MinGW nm treats NUL as empty 3935 case $build_os in 3936 mingw*) lt_bad_file=conftest.nm/nofile ;; 3937 *) lt_bad_file=/dev/null ;; 3938 esac 3939 case `"$tmp_nm" -B $lt_bad_file 2>&1 | sed '1q'` in 3940 *$lt_bad_file* | *'Invalid file or object type'*) 3941 lt_cv_path_NM="$tmp_nm -B" 3942 break 2 3943 ;; 3944 *) 3945 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in 3946 */dev/null*) 3947 lt_cv_path_NM="$tmp_nm -p" 3948 break 2 3949 ;; 3950 *) 3951 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but 3952 continue # so that we can try to find one that supports BSD flags 3953 ;; 3954 esac 3955 ;; 3956 esac 3957 fi 3958 done 3959 IFS=$lt_save_ifs 3960 done 3961 : ${lt_cv_path_NM=no} 3962fi 3963fi 3964{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5 3965$as_echo "$lt_cv_path_NM" >&6; } 3966if test no != "$lt_cv_path_NM"; then 3967 NM=$lt_cv_path_NM 3968else 3969 # Didn't find any BSD compatible name lister, look for dumpbin. 3970 if test -n "$DUMPBIN"; then : 3971 # Let the user override the test. 3972 else 3973 if test -n "$ac_tool_prefix"; then 3974 for ac_prog in dumpbin "link -dump" 3975 do 3976 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 3977set dummy $ac_tool_prefix$ac_prog; ac_word=$2 3978{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3979$as_echo_n "checking for $ac_word... " >&6; } 3980if ${ac_cv_prog_DUMPBIN+:} false; then : 3981 $as_echo_n "(cached) " >&6 3982else 3983 if test -n "$DUMPBIN"; then 3984 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test. 3985else 3986as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3987for as_dir in $PATH 3988do 3989 IFS=$as_save_IFS 3990 test -z "$as_dir" && as_dir=. 3991 for ac_exec_ext in '' $ac_executable_extensions; do 3992 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3993 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog" 3994 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3995 break 2 3996 fi 3997done 3998 done 3999IFS=$as_save_IFS 4000 4001fi 4002fi 4003DUMPBIN=$ac_cv_prog_DUMPBIN 4004if test -n "$DUMPBIN"; then 4005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5 4006$as_echo "$DUMPBIN" >&6; } 4007else 4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4009$as_echo "no" >&6; } 4010fi 4011 4012 4013 test -n "$DUMPBIN" && break 4014 done 4015fi 4016if test -z "$DUMPBIN"; then 4017 ac_ct_DUMPBIN=$DUMPBIN 4018 for ac_prog in dumpbin "link -dump" 4019do 4020 # Extract the first word of "$ac_prog", so it can be a program name with args. 4021set dummy $ac_prog; ac_word=$2 4022{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4023$as_echo_n "checking for $ac_word... " >&6; } 4024if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then : 4025 $as_echo_n "(cached) " >&6 4026else 4027 if test -n "$ac_ct_DUMPBIN"; then 4028 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test. 4029else 4030as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4031for as_dir in $PATH 4032do 4033 IFS=$as_save_IFS 4034 test -z "$as_dir" && as_dir=. 4035 for ac_exec_ext in '' $ac_executable_extensions; do 4036 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4037 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog" 4038 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4039 break 2 4040 fi 4041done 4042 done 4043IFS=$as_save_IFS 4044 4045fi 4046fi 4047ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN 4048if test -n "$ac_ct_DUMPBIN"; then 4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5 4050$as_echo "$ac_ct_DUMPBIN" >&6; } 4051else 4052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4053$as_echo "no" >&6; } 4054fi 4055 4056 4057 test -n "$ac_ct_DUMPBIN" && break 4058done 4059 4060 if test "x$ac_ct_DUMPBIN" = x; then 4061 DUMPBIN=":" 4062 else 4063 case $cross_compiling:$ac_tool_warned in 4064yes:) 4065{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4066$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4067ac_tool_warned=yes ;; 4068esac 4069 DUMPBIN=$ac_ct_DUMPBIN 4070 fi 4071fi 4072 4073 case `$DUMPBIN -symbols -headers /dev/null 2>&1 | sed '1q'` in 4074 *COFF*) 4075 DUMPBIN="$DUMPBIN -symbols -headers" 4076 ;; 4077 *) 4078 DUMPBIN=: 4079 ;; 4080 esac 4081 fi 4082 4083 if test : != "$DUMPBIN"; then 4084 NM=$DUMPBIN 4085 fi 4086fi 4087test -z "$NM" && NM=nm 4088 4089 4090 4091 4092 4093 4094{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5 4095$as_echo_n "checking the name lister ($NM) interface... " >&6; } 4096if ${lt_cv_nm_interface+:} false; then : 4097 $as_echo_n "(cached) " >&6 4098else 4099 lt_cv_nm_interface="BSD nm" 4100 echo "int some_variable = 0;" > conftest.$ac_ext 4101 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5) 4102 (eval "$ac_compile" 2>conftest.err) 4103 cat conftest.err >&5 4104 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5) 4105 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out) 4106 cat conftest.err >&5 4107 (eval echo "\"\$as_me:$LINENO: output\"" >&5) 4108 cat conftest.out >&5 4109 if $GREP 'External.*some_variable' conftest.out > /dev/null; then 4110 lt_cv_nm_interface="MS dumpbin" 4111 fi 4112 rm -f conftest* 4113fi 4114{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5 4115$as_echo "$lt_cv_nm_interface" >&6; } 4116 4117{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 4118$as_echo_n "checking whether ln -s works... " >&6; } 4119LN_S=$as_ln_s 4120if test "$LN_S" = "ln -s"; then 4121 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 4122$as_echo "yes" >&6; } 4123else 4124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 4125$as_echo "no, using $LN_S" >&6; } 4126fi 4127 4128# find the maximum length of command line arguments 4129{ $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5 4130$as_echo_n "checking the maximum length of command line arguments... " >&6; } 4131if ${lt_cv_sys_max_cmd_len+:} false; then : 4132 $as_echo_n "(cached) " >&6 4133else 4134 i=0 4135 teststring=ABCD 4136 4137 case $build_os in 4138 msdosdjgpp*) 4139 # On DJGPP, this test can blow up pretty badly due to problems in libc 4140 # (any single argument exceeding 2000 bytes causes a buffer overrun 4141 # during glob expansion). Even if it were fixed, the result of this 4142 # check would be larger than it should be. 4143 lt_cv_sys_max_cmd_len=12288; # 12K is about right 4144 ;; 4145 4146 gnu*) 4147 # Under GNU Hurd, this test is not required because there is 4148 # no limit to the length of command line arguments. 4149 # Libtool will interpret -1 as no limit whatsoever 4150 lt_cv_sys_max_cmd_len=-1; 4151 ;; 4152 4153 cygwin* | mingw* | cegcc*) 4154 # On Win9x/ME, this test blows up -- it succeeds, but takes 4155 # about 5 minutes as the teststring grows exponentially. 4156 # Worse, since 9x/ME are not pre-emptively multitasking, 4157 # you end up with a "frozen" computer, even though with patience 4158 # the test eventually succeeds (with a max line length of 256k). 4159 # Instead, let's just punt: use the minimum linelength reported by 4160 # all of the supported platforms: 8192 (on NT/2K/XP). 4161 lt_cv_sys_max_cmd_len=8192; 4162 ;; 4163 4164 mint*) 4165 # On MiNT this can take a long time and run out of memory. 4166 lt_cv_sys_max_cmd_len=8192; 4167 ;; 4168 4169 amigaos*) 4170 # On AmigaOS with pdksh, this test takes hours, literally. 4171 # So we just punt and use a minimum line length of 8192. 4172 lt_cv_sys_max_cmd_len=8192; 4173 ;; 4174 4175 bitrig* | darwin* | dragonfly* | freebsd* | netbsd* | openbsd*) 4176 # This has been around since 386BSD, at least. Likely further. 4177 if test -x /sbin/sysctl; then 4178 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax` 4179 elif test -x /usr/sbin/sysctl; then 4180 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax` 4181 else 4182 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs 4183 fi 4184 # And add a safety zone 4185 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4186 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4187 ;; 4188 4189 interix*) 4190 # We know the value 262144 and hardcode it with a safety zone (like BSD) 4191 lt_cv_sys_max_cmd_len=196608 4192 ;; 4193 4194 os2*) 4195 # The test takes a long time on OS/2. 4196 lt_cv_sys_max_cmd_len=8192 4197 ;; 4198 4199 osf*) 4200 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure 4201 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not 4202 # nice to cause kernel panics so lets avoid the loop below. 4203 # First set a reasonable default. 4204 lt_cv_sys_max_cmd_len=16384 4205 # 4206 if test -x /sbin/sysconfig; then 4207 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in 4208 *1*) lt_cv_sys_max_cmd_len=-1 ;; 4209 esac 4210 fi 4211 ;; 4212 sco3.2v5*) 4213 lt_cv_sys_max_cmd_len=102400 4214 ;; 4215 sysv5* | sco5v6* | sysv4.2uw2*) 4216 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null` 4217 if test -n "$kargmax"; then 4218 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'` 4219 else 4220 lt_cv_sys_max_cmd_len=32768 4221 fi 4222 ;; 4223 *) 4224 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null` 4225 if test -n "$lt_cv_sys_max_cmd_len" && \ 4226 test undefined != "$lt_cv_sys_max_cmd_len"; then 4227 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4` 4228 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3` 4229 else 4230 # Make teststring a little bigger before we do anything with it. 4231 # a 1K string should be a reasonable start. 4232 for i in 1 2 3 4 5 6 7 8; do 4233 teststring=$teststring$teststring 4234 done 4235 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}} 4236 # If test is not a shell built-in, we'll probably end up computing a 4237 # maximum length that is only half of the actual maximum length, but 4238 # we can't tell. 4239 while { test X`env echo "$teststring$teststring" 2>/dev/null` \ 4240 = "X$teststring$teststring"; } >/dev/null 2>&1 && 4241 test 17 != "$i" # 1/2 MB should be enough 4242 do 4243 i=`expr $i + 1` 4244 teststring=$teststring$teststring 4245 done 4246 # Only check the string length outside the loop. 4247 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1` 4248 teststring= 4249 # Add a significant safety factor because C++ compilers can tack on 4250 # massive amounts of additional arguments before passing them to the 4251 # linker. It appears as though 1/2 is a usable value. 4252 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2` 4253 fi 4254 ;; 4255 esac 4256 4257fi 4258 4259if test -n "$lt_cv_sys_max_cmd_len"; then 4260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5 4261$as_echo "$lt_cv_sys_max_cmd_len" >&6; } 4262else 4263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5 4264$as_echo "none" >&6; } 4265fi 4266max_cmd_len=$lt_cv_sys_max_cmd_len 4267 4268 4269 4270 4271 4272 4273: ${CP="cp -f"} 4274: ${MV="mv -f"} 4275: ${RM="rm -f"} 4276 4277if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then 4278 lt_unset=unset 4279else 4280 lt_unset=false 4281fi 4282 4283 4284 4285 4286 4287# test EBCDIC or ASCII 4288case `echo X|tr X '\101'` in 4289 A) # ASCII based system 4290 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr 4291 lt_SP2NL='tr \040 \012' 4292 lt_NL2SP='tr \015\012 \040\040' 4293 ;; 4294 *) # EBCDIC based system 4295 lt_SP2NL='tr \100 \n' 4296 lt_NL2SP='tr \r\n \100\100' 4297 ;; 4298esac 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5 4309$as_echo_n "checking how to convert $build file names to $host format... " >&6; } 4310if ${lt_cv_to_host_file_cmd+:} false; then : 4311 $as_echo_n "(cached) " >&6 4312else 4313 case $host in 4314 *-*-mingw* ) 4315 case $build in 4316 *-*-mingw* ) # actually msys 4317 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32 4318 ;; 4319 *-*-cygwin* ) 4320 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32 4321 ;; 4322 * ) # otherwise, assume *nix 4323 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32 4324 ;; 4325 esac 4326 ;; 4327 *-*-cygwin* ) 4328 case $build in 4329 *-*-mingw* ) # actually msys 4330 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin 4331 ;; 4332 *-*-cygwin* ) 4333 lt_cv_to_host_file_cmd=func_convert_file_noop 4334 ;; 4335 * ) # otherwise, assume *nix 4336 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin 4337 ;; 4338 esac 4339 ;; 4340 * ) # unhandled hosts (and "normal" native builds) 4341 lt_cv_to_host_file_cmd=func_convert_file_noop 4342 ;; 4343esac 4344 4345fi 4346 4347to_host_file_cmd=$lt_cv_to_host_file_cmd 4348{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5 4349$as_echo "$lt_cv_to_host_file_cmd" >&6; } 4350 4351 4352 4353 4354 4355{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5 4356$as_echo_n "checking how to convert $build file names to toolchain format... " >&6; } 4357if ${lt_cv_to_tool_file_cmd+:} false; then : 4358 $as_echo_n "(cached) " >&6 4359else 4360 #assume ordinary cross tools, or native build. 4361lt_cv_to_tool_file_cmd=func_convert_file_noop 4362case $host in 4363 *-*-mingw* ) 4364 case $build in 4365 *-*-mingw* ) # actually msys 4366 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32 4367 ;; 4368 esac 4369 ;; 4370esac 4371 4372fi 4373 4374to_tool_file_cmd=$lt_cv_to_tool_file_cmd 4375{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5 4376$as_echo "$lt_cv_to_tool_file_cmd" >&6; } 4377 4378 4379 4380 4381 4382{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5 4383$as_echo_n "checking for $LD option to reload object files... " >&6; } 4384if ${lt_cv_ld_reload_flag+:} false; then : 4385 $as_echo_n "(cached) " >&6 4386else 4387 lt_cv_ld_reload_flag='-r' 4388fi 4389{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5 4390$as_echo "$lt_cv_ld_reload_flag" >&6; } 4391reload_flag=$lt_cv_ld_reload_flag 4392case $reload_flag in 4393"" | " "*) ;; 4394*) reload_flag=" $reload_flag" ;; 4395esac 4396reload_cmds='$LD$reload_flag -o $output$reload_objs' 4397case $host_os in 4398 cygwin* | mingw* | pw32* | cegcc*) 4399 if test yes != "$GCC"; then 4400 reload_cmds=false 4401 fi 4402 ;; 4403 darwin*) 4404 if test yes = "$GCC"; then 4405 reload_cmds='$LTCC $LTCFLAGS -nostdlib $wl-r -o $output$reload_objs' 4406 else 4407 reload_cmds='$LD$reload_flag -o $output$reload_objs' 4408 fi 4409 ;; 4410esac 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420if test -n "$ac_tool_prefix"; then 4421 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args. 4422set dummy ${ac_tool_prefix}objdump; ac_word=$2 4423{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4424$as_echo_n "checking for $ac_word... " >&6; } 4425if ${ac_cv_prog_OBJDUMP+:} false; then : 4426 $as_echo_n "(cached) " >&6 4427else 4428 if test -n "$OBJDUMP"; then 4429 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test. 4430else 4431as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4432for as_dir in $PATH 4433do 4434 IFS=$as_save_IFS 4435 test -z "$as_dir" && as_dir=. 4436 for ac_exec_ext in '' $ac_executable_extensions; do 4437 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4438 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump" 4439 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4440 break 2 4441 fi 4442done 4443 done 4444IFS=$as_save_IFS 4445 4446fi 4447fi 4448OBJDUMP=$ac_cv_prog_OBJDUMP 4449if test -n "$OBJDUMP"; then 4450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5 4451$as_echo "$OBJDUMP" >&6; } 4452else 4453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4454$as_echo "no" >&6; } 4455fi 4456 4457 4458fi 4459if test -z "$ac_cv_prog_OBJDUMP"; then 4460 ac_ct_OBJDUMP=$OBJDUMP 4461 # Extract the first word of "objdump", so it can be a program name with args. 4462set dummy objdump; ac_word=$2 4463{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4464$as_echo_n "checking for $ac_word... " >&6; } 4465if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then : 4466 $as_echo_n "(cached) " >&6 4467else 4468 if test -n "$ac_ct_OBJDUMP"; then 4469 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test. 4470else 4471as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4472for as_dir in $PATH 4473do 4474 IFS=$as_save_IFS 4475 test -z "$as_dir" && as_dir=. 4476 for ac_exec_ext in '' $ac_executable_extensions; do 4477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4478 ac_cv_prog_ac_ct_OBJDUMP="objdump" 4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4480 break 2 4481 fi 4482done 4483 done 4484IFS=$as_save_IFS 4485 4486fi 4487fi 4488ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP 4489if test -n "$ac_ct_OBJDUMP"; then 4490 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5 4491$as_echo "$ac_ct_OBJDUMP" >&6; } 4492else 4493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4494$as_echo "no" >&6; } 4495fi 4496 4497 if test "x$ac_ct_OBJDUMP" = x; then 4498 OBJDUMP="false" 4499 else 4500 case $cross_compiling:$ac_tool_warned in 4501yes:) 4502{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4503$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4504ac_tool_warned=yes ;; 4505esac 4506 OBJDUMP=$ac_ct_OBJDUMP 4507 fi 4508else 4509 OBJDUMP="$ac_cv_prog_OBJDUMP" 4510fi 4511 4512test -z "$OBJDUMP" && OBJDUMP=objdump 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5 4523$as_echo_n "checking how to recognize dependent libraries... " >&6; } 4524if ${lt_cv_deplibs_check_method+:} false; then : 4525 $as_echo_n "(cached) " >&6 4526else 4527 lt_cv_file_magic_cmd='$MAGIC_CMD' 4528lt_cv_file_magic_test_file= 4529lt_cv_deplibs_check_method='unknown' 4530# Need to set the preceding variable on all platforms that support 4531# interlibrary dependencies. 4532# 'none' -- dependencies not supported. 4533# 'unknown' -- same as none, but documents that we really don't know. 4534# 'pass_all' -- all dependencies passed with no checks. 4535# 'test_compile' -- check by making test program. 4536# 'file_magic [[regex]]' -- check by looking for files in library path 4537# that responds to the $file_magic_cmd with a given extended regex. 4538# If you have 'file' or equivalent on your system and you're not sure 4539# whether 'pass_all' will *always* work, you probably want this one. 4540 4541case $host_os in 4542aix[4-9]*) 4543 lt_cv_deplibs_check_method=pass_all 4544 ;; 4545 4546beos*) 4547 lt_cv_deplibs_check_method=pass_all 4548 ;; 4549 4550bsdi[45]*) 4551 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)' 4552 lt_cv_file_magic_cmd='/usr/bin/file -L' 4553 lt_cv_file_magic_test_file=/shlib/libc.so 4554 ;; 4555 4556cygwin*) 4557 # func_win32_libid is a shell function defined in ltmain.sh 4558 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4559 lt_cv_file_magic_cmd='func_win32_libid' 4560 ;; 4561 4562mingw* | pw32*) 4563 # Base MSYS/MinGW do not provide the 'file' command needed by 4564 # func_win32_libid shell function, so use a weaker test based on 'objdump', 4565 # unless we find 'file', for example because we are cross-compiling. 4566 if ( file / ) >/dev/null 2>&1; then 4567 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL' 4568 lt_cv_file_magic_cmd='func_win32_libid' 4569 else 4570 # Keep this pattern in sync with the one in func_win32_libid. 4571 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)' 4572 lt_cv_file_magic_cmd='$OBJDUMP -f' 4573 fi 4574 ;; 4575 4576cegcc*) 4577 # use the weaker test based on 'objdump'. See mingw*. 4578 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?' 4579 lt_cv_file_magic_cmd='$OBJDUMP -f' 4580 ;; 4581 4582darwin* | rhapsody*) 4583 lt_cv_deplibs_check_method=pass_all 4584 ;; 4585 4586freebsd* | dragonfly*) 4587 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4588 case $host_cpu in 4589 i*86 ) 4590 # Not sure whether the presence of OpenBSD here was a mistake. 4591 # Let's accept both of them until this is cleared up. 4592 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library' 4593 lt_cv_file_magic_cmd=/usr/bin/file 4594 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*` 4595 ;; 4596 esac 4597 else 4598 lt_cv_deplibs_check_method=pass_all 4599 fi 4600 ;; 4601 4602haiku*) 4603 lt_cv_deplibs_check_method=pass_all 4604 ;; 4605 4606hpux10.20* | hpux11*) 4607 lt_cv_file_magic_cmd=/usr/bin/file 4608 case $host_cpu in 4609 ia64*) 4610 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64' 4611 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so 4612 ;; 4613 hppa*64*) 4614 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]' 4615 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl 4616 ;; 4617 *) 4618 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library' 4619 lt_cv_file_magic_test_file=/usr/lib/libc.sl 4620 ;; 4621 esac 4622 ;; 4623 4624interix[3-9]*) 4625 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here 4626 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$' 4627 ;; 4628 4629irix5* | irix6* | nonstopux*) 4630 case $LD in 4631 *-32|*"-32 ") libmagic=32-bit;; 4632 *-n32|*"-n32 ") libmagic=N32;; 4633 *-64|*"-64 ") libmagic=64-bit;; 4634 *) libmagic=never-match;; 4635 esac 4636 lt_cv_deplibs_check_method=pass_all 4637 ;; 4638 4639# This must be glibc/ELF. 4640linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 4641 lt_cv_deplibs_check_method=pass_all 4642 ;; 4643 4644netbsd*) 4645 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then 4646 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4647 else 4648 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$' 4649 fi 4650 ;; 4651 4652newos6*) 4653 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)' 4654 lt_cv_file_magic_cmd=/usr/bin/file 4655 lt_cv_file_magic_test_file=/usr/lib/libnls.so 4656 ;; 4657 4658*nto* | *qnx*) 4659 lt_cv_deplibs_check_method=pass_all 4660 ;; 4661 4662openbsd* | bitrig*) 4663 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 4664 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$' 4665 else 4666 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$' 4667 fi 4668 ;; 4669 4670osf3* | osf4* | osf5*) 4671 lt_cv_deplibs_check_method=pass_all 4672 ;; 4673 4674rdos*) 4675 lt_cv_deplibs_check_method=pass_all 4676 ;; 4677 4678solaris*) 4679 lt_cv_deplibs_check_method=pass_all 4680 ;; 4681 4682sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 4683 lt_cv_deplibs_check_method=pass_all 4684 ;; 4685 4686sysv4 | sysv4.3*) 4687 case $host_vendor in 4688 motorola) 4689 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]' 4690 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*` 4691 ;; 4692 ncr) 4693 lt_cv_deplibs_check_method=pass_all 4694 ;; 4695 sequent) 4696 lt_cv_file_magic_cmd='/bin/file' 4697 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )' 4698 ;; 4699 sni) 4700 lt_cv_file_magic_cmd='/bin/file' 4701 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib" 4702 lt_cv_file_magic_test_file=/lib/libc.so 4703 ;; 4704 siemens) 4705 lt_cv_deplibs_check_method=pass_all 4706 ;; 4707 pc) 4708 lt_cv_deplibs_check_method=pass_all 4709 ;; 4710 esac 4711 ;; 4712 4713tpf*) 4714 lt_cv_deplibs_check_method=pass_all 4715 ;; 4716os2*) 4717 lt_cv_deplibs_check_method=pass_all 4718 ;; 4719esac 4720 4721fi 4722{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5 4723$as_echo "$lt_cv_deplibs_check_method" >&6; } 4724 4725file_magic_glob= 4726want_nocaseglob=no 4727if test "$build" = "$host"; then 4728 case $host_os in 4729 mingw* | pw32*) 4730 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then 4731 want_nocaseglob=yes 4732 else 4733 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"` 4734 fi 4735 ;; 4736 esac 4737fi 4738 4739file_magic_cmd=$lt_cv_file_magic_cmd 4740deplibs_check_method=$lt_cv_deplibs_check_method 4741test -z "$deplibs_check_method" && deplibs_check_method=unknown 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764if test -n "$ac_tool_prefix"; then 4765 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args. 4766set dummy ${ac_tool_prefix}dlltool; ac_word=$2 4767{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4768$as_echo_n "checking for $ac_word... " >&6; } 4769if ${ac_cv_prog_DLLTOOL+:} false; then : 4770 $as_echo_n "(cached) " >&6 4771else 4772 if test -n "$DLLTOOL"; then 4773 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test. 4774else 4775as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4776for as_dir in $PATH 4777do 4778 IFS=$as_save_IFS 4779 test -z "$as_dir" && as_dir=. 4780 for ac_exec_ext in '' $ac_executable_extensions; do 4781 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4782 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool" 4783 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4784 break 2 4785 fi 4786done 4787 done 4788IFS=$as_save_IFS 4789 4790fi 4791fi 4792DLLTOOL=$ac_cv_prog_DLLTOOL 4793if test -n "$DLLTOOL"; then 4794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5 4795$as_echo "$DLLTOOL" >&6; } 4796else 4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4798$as_echo "no" >&6; } 4799fi 4800 4801 4802fi 4803if test -z "$ac_cv_prog_DLLTOOL"; then 4804 ac_ct_DLLTOOL=$DLLTOOL 4805 # Extract the first word of "dlltool", so it can be a program name with args. 4806set dummy dlltool; ac_word=$2 4807{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4808$as_echo_n "checking for $ac_word... " >&6; } 4809if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then : 4810 $as_echo_n "(cached) " >&6 4811else 4812 if test -n "$ac_ct_DLLTOOL"; then 4813 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test. 4814else 4815as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4816for as_dir in $PATH 4817do 4818 IFS=$as_save_IFS 4819 test -z "$as_dir" && as_dir=. 4820 for ac_exec_ext in '' $ac_executable_extensions; do 4821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4822 ac_cv_prog_ac_ct_DLLTOOL="dlltool" 4823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4824 break 2 4825 fi 4826done 4827 done 4828IFS=$as_save_IFS 4829 4830fi 4831fi 4832ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL 4833if test -n "$ac_ct_DLLTOOL"; then 4834 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5 4835$as_echo "$ac_ct_DLLTOOL" >&6; } 4836else 4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4838$as_echo "no" >&6; } 4839fi 4840 4841 if test "x$ac_ct_DLLTOOL" = x; then 4842 DLLTOOL="false" 4843 else 4844 case $cross_compiling:$ac_tool_warned in 4845yes:) 4846{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4847$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 4848ac_tool_warned=yes ;; 4849esac 4850 DLLTOOL=$ac_ct_DLLTOOL 4851 fi 4852else 4853 DLLTOOL="$ac_cv_prog_DLLTOOL" 4854fi 4855 4856test -z "$DLLTOOL" && DLLTOOL=dlltool 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5 4868$as_echo_n "checking how to associate runtime and link libraries... " >&6; } 4869if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then : 4870 $as_echo_n "(cached) " >&6 4871else 4872 lt_cv_sharedlib_from_linklib_cmd='unknown' 4873 4874case $host_os in 4875cygwin* | mingw* | pw32* | cegcc*) 4876 # two different shell functions defined in ltmain.sh; 4877 # decide which one to use based on capabilities of $DLLTOOL 4878 case `$DLLTOOL --help 2>&1` in 4879 *--identify-strict*) 4880 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib 4881 ;; 4882 *) 4883 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback 4884 ;; 4885 esac 4886 ;; 4887*) 4888 # fallback: assume linklib IS sharedlib 4889 lt_cv_sharedlib_from_linklib_cmd=$ECHO 4890 ;; 4891esac 4892 4893fi 4894{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5 4895$as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; } 4896sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd 4897test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO 4898 4899 4900 4901 4902 4903 4904 4905 4906if test -n "$ac_tool_prefix"; then 4907 for ac_prog in ar 4908 do 4909 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 4910set dummy $ac_tool_prefix$ac_prog; ac_word=$2 4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4912$as_echo_n "checking for $ac_word... " >&6; } 4913if ${ac_cv_prog_AR+:} false; then : 4914 $as_echo_n "(cached) " >&6 4915else 4916 if test -n "$AR"; then 4917 ac_cv_prog_AR="$AR" # Let the user override the test. 4918else 4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4920for as_dir in $PATH 4921do 4922 IFS=$as_save_IFS 4923 test -z "$as_dir" && as_dir=. 4924 for ac_exec_ext in '' $ac_executable_extensions; do 4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4926 ac_cv_prog_AR="$ac_tool_prefix$ac_prog" 4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4928 break 2 4929 fi 4930done 4931 done 4932IFS=$as_save_IFS 4933 4934fi 4935fi 4936AR=$ac_cv_prog_AR 4937if test -n "$AR"; then 4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5 4939$as_echo "$AR" >&6; } 4940else 4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4942$as_echo "no" >&6; } 4943fi 4944 4945 4946 test -n "$AR" && break 4947 done 4948fi 4949if test -z "$AR"; then 4950 ac_ct_AR=$AR 4951 for ac_prog in ar 4952do 4953 # Extract the first word of "$ac_prog", so it can be a program name with args. 4954set dummy $ac_prog; ac_word=$2 4955{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 4956$as_echo_n "checking for $ac_word... " >&6; } 4957if ${ac_cv_prog_ac_ct_AR+:} false; then : 4958 $as_echo_n "(cached) " >&6 4959else 4960 if test -n "$ac_ct_AR"; then 4961 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test. 4962else 4963as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 4964for as_dir in $PATH 4965do 4966 IFS=$as_save_IFS 4967 test -z "$as_dir" && as_dir=. 4968 for ac_exec_ext in '' $ac_executable_extensions; do 4969 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 4970 ac_cv_prog_ac_ct_AR="$ac_prog" 4971 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 4972 break 2 4973 fi 4974done 4975 done 4976IFS=$as_save_IFS 4977 4978fi 4979fi 4980ac_ct_AR=$ac_cv_prog_ac_ct_AR 4981if test -n "$ac_ct_AR"; then 4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5 4983$as_echo "$ac_ct_AR" >&6; } 4984else 4985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 4986$as_echo "no" >&6; } 4987fi 4988 4989 4990 test -n "$ac_ct_AR" && break 4991done 4992 4993 if test "x$ac_ct_AR" = x; then 4994 AR="false" 4995 else 4996 case $cross_compiling:$ac_tool_warned in 4997yes:) 4998{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 4999$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5000ac_tool_warned=yes ;; 5001esac 5002 AR=$ac_ct_AR 5003 fi 5004fi 5005 5006: ${AR=ar} 5007: ${AR_FLAGS=cru} 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5 5020$as_echo_n "checking for archiver @FILE support... " >&6; } 5021if ${lt_cv_ar_at_file+:} false; then : 5022 $as_echo_n "(cached) " >&6 5023else 5024 lt_cv_ar_at_file=no 5025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 5026/* end confdefs.h. */ 5027 5028int 5029main () 5030{ 5031 5032 ; 5033 return 0; 5034} 5035_ACEOF 5036if ac_fn_c_try_compile "$LINENO"; then : 5037 echo conftest.$ac_objext > conftest.lst 5038 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5' 5039 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5040 (eval $lt_ar_try) 2>&5 5041 ac_status=$? 5042 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5043 test $ac_status = 0; } 5044 if test 0 -eq "$ac_status"; then 5045 # Ensure the archiver fails upon bogus file names. 5046 rm -f conftest.$ac_objext libconftest.a 5047 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5 5048 (eval $lt_ar_try) 2>&5 5049 ac_status=$? 5050 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5051 test $ac_status = 0; } 5052 if test 0 -ne "$ac_status"; then 5053 lt_cv_ar_at_file=@ 5054 fi 5055 fi 5056 rm -f conftest.* libconftest.a 5057 5058fi 5059rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 5060 5061fi 5062{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5 5063$as_echo "$lt_cv_ar_at_file" >&6; } 5064 5065if test no = "$lt_cv_ar_at_file"; then 5066 archiver_list_spec= 5067else 5068 archiver_list_spec=$lt_cv_ar_at_file 5069fi 5070 5071 5072 5073 5074 5075 5076 5077if test -n "$ac_tool_prefix"; then 5078 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 5079set dummy ${ac_tool_prefix}strip; ac_word=$2 5080{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5081$as_echo_n "checking for $ac_word... " >&6; } 5082if ${ac_cv_prog_STRIP+:} false; then : 5083 $as_echo_n "(cached) " >&6 5084else 5085 if test -n "$STRIP"; then 5086 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 5087else 5088as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5089for as_dir in $PATH 5090do 5091 IFS=$as_save_IFS 5092 test -z "$as_dir" && as_dir=. 5093 for ac_exec_ext in '' $ac_executable_extensions; do 5094 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5095 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 5096 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5097 break 2 5098 fi 5099done 5100 done 5101IFS=$as_save_IFS 5102 5103fi 5104fi 5105STRIP=$ac_cv_prog_STRIP 5106if test -n "$STRIP"; then 5107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 5108$as_echo "$STRIP" >&6; } 5109else 5110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5111$as_echo "no" >&6; } 5112fi 5113 5114 5115fi 5116if test -z "$ac_cv_prog_STRIP"; then 5117 ac_ct_STRIP=$STRIP 5118 # Extract the first word of "strip", so it can be a program name with args. 5119set dummy strip; ac_word=$2 5120{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5121$as_echo_n "checking for $ac_word... " >&6; } 5122if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 5123 $as_echo_n "(cached) " >&6 5124else 5125 if test -n "$ac_ct_STRIP"; then 5126 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 5127else 5128as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5129for as_dir in $PATH 5130do 5131 IFS=$as_save_IFS 5132 test -z "$as_dir" && as_dir=. 5133 for ac_exec_ext in '' $ac_executable_extensions; do 5134 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5135 ac_cv_prog_ac_ct_STRIP="strip" 5136 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5137 break 2 5138 fi 5139done 5140 done 5141IFS=$as_save_IFS 5142 5143fi 5144fi 5145ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 5146if test -n "$ac_ct_STRIP"; then 5147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 5148$as_echo "$ac_ct_STRIP" >&6; } 5149else 5150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5151$as_echo "no" >&6; } 5152fi 5153 5154 if test "x$ac_ct_STRIP" = x; then 5155 STRIP=":" 5156 else 5157 case $cross_compiling:$ac_tool_warned in 5158yes:) 5159{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5160$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5161ac_tool_warned=yes ;; 5162esac 5163 STRIP=$ac_ct_STRIP 5164 fi 5165else 5166 STRIP="$ac_cv_prog_STRIP" 5167fi 5168 5169test -z "$STRIP" && STRIP=: 5170 5171 5172 5173 5174 5175 5176if test -n "$ac_tool_prefix"; then 5177 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. 5178set dummy ${ac_tool_prefix}ranlib; ac_word=$2 5179{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5180$as_echo_n "checking for $ac_word... " >&6; } 5181if ${ac_cv_prog_RANLIB+:} false; then : 5182 $as_echo_n "(cached) " >&6 5183else 5184 if test -n "$RANLIB"; then 5185 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. 5186else 5187as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5188for as_dir in $PATH 5189do 5190 IFS=$as_save_IFS 5191 test -z "$as_dir" && as_dir=. 5192 for ac_exec_ext in '' $ac_executable_extensions; do 5193 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5194 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" 5195 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5196 break 2 5197 fi 5198done 5199 done 5200IFS=$as_save_IFS 5201 5202fi 5203fi 5204RANLIB=$ac_cv_prog_RANLIB 5205if test -n "$RANLIB"; then 5206 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5 5207$as_echo "$RANLIB" >&6; } 5208else 5209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5210$as_echo "no" >&6; } 5211fi 5212 5213 5214fi 5215if test -z "$ac_cv_prog_RANLIB"; then 5216 ac_ct_RANLIB=$RANLIB 5217 # Extract the first word of "ranlib", so it can be a program name with args. 5218set dummy ranlib; ac_word=$2 5219{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5220$as_echo_n "checking for $ac_word... " >&6; } 5221if ${ac_cv_prog_ac_ct_RANLIB+:} false; then : 5222 $as_echo_n "(cached) " >&6 5223else 5224 if test -n "$ac_ct_RANLIB"; then 5225 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. 5226else 5227as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5228for as_dir in $PATH 5229do 5230 IFS=$as_save_IFS 5231 test -z "$as_dir" && as_dir=. 5232 for ac_exec_ext in '' $ac_executable_extensions; do 5233 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5234 ac_cv_prog_ac_ct_RANLIB="ranlib" 5235 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5236 break 2 5237 fi 5238done 5239 done 5240IFS=$as_save_IFS 5241 5242fi 5243fi 5244ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB 5245if test -n "$ac_ct_RANLIB"; then 5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5 5247$as_echo "$ac_ct_RANLIB" >&6; } 5248else 5249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5250$as_echo "no" >&6; } 5251fi 5252 5253 if test "x$ac_ct_RANLIB" = x; then 5254 RANLIB=":" 5255 else 5256 case $cross_compiling:$ac_tool_warned in 5257yes:) 5258{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 5259$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 5260ac_tool_warned=yes ;; 5261esac 5262 RANLIB=$ac_ct_RANLIB 5263 fi 5264else 5265 RANLIB="$ac_cv_prog_RANLIB" 5266fi 5267 5268test -z "$RANLIB" && RANLIB=: 5269 5270 5271 5272 5273 5274 5275# Determine commands to create old-style static archives. 5276old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs' 5277old_postinstall_cmds='chmod 644 $oldlib' 5278old_postuninstall_cmds= 5279 5280if test -n "$RANLIB"; then 5281 case $host_os in 5282 bitrig* | openbsd*) 5283 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib" 5284 ;; 5285 *) 5286 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib" 5287 ;; 5288 esac 5289 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib" 5290fi 5291 5292case $host_os in 5293 darwin*) 5294 lock_old_archive_extraction=yes ;; 5295 *) 5296 lock_old_archive_extraction=no ;; 5297esac 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319for ac_prog in gawk mawk nawk awk 5320do 5321 # Extract the first word of "$ac_prog", so it can be a program name with args. 5322set dummy $ac_prog; ac_word=$2 5323{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 5324$as_echo_n "checking for $ac_word... " >&6; } 5325if ${ac_cv_prog_AWK+:} false; then : 5326 $as_echo_n "(cached) " >&6 5327else 5328 if test -n "$AWK"; then 5329 ac_cv_prog_AWK="$AWK" # Let the user override the test. 5330else 5331as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5332for as_dir in $PATH 5333do 5334 IFS=$as_save_IFS 5335 test -z "$as_dir" && as_dir=. 5336 for ac_exec_ext in '' $ac_executable_extensions; do 5337 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 5338 ac_cv_prog_AWK="$ac_prog" 5339 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 5340 break 2 5341 fi 5342done 5343 done 5344IFS=$as_save_IFS 5345 5346fi 5347fi 5348AWK=$ac_cv_prog_AWK 5349if test -n "$AWK"; then 5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 5351$as_echo "$AWK" >&6; } 5352else 5353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 5354$as_echo "no" >&6; } 5355fi 5356 5357 5358 test -n "$AWK" && break 5359done 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379# If no C compiler was specified, use CC. 5380LTCC=${LTCC-"$CC"} 5381 5382# If no C compiler flags were specified, use CFLAGS. 5383LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 5384 5385# Allow CC to be a program name with arguments. 5386compiler=$CC 5387 5388 5389# Check for command to grab the raw symbol name followed by C symbol from nm. 5390{ $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5 5391$as_echo_n "checking command to parse $NM output from $compiler object... " >&6; } 5392if ${lt_cv_sys_global_symbol_pipe+:} false; then : 5393 $as_echo_n "(cached) " >&6 5394else 5395 5396# These are sane defaults that work on at least a few old systems. 5397# [They come from Ultrix. What could be older than Ultrix?!! ;)] 5398 5399# Character class describing NM global symbol codes. 5400symcode='[BCDEGRST]' 5401 5402# Regexp to match symbols that can be accessed directly from C. 5403sympat='\([_A-Za-z][_A-Za-z0-9]*\)' 5404 5405# Define system-specific variables. 5406case $host_os in 5407aix*) 5408 symcode='[BCDT]' 5409 ;; 5410cygwin* | mingw* | pw32* | cegcc*) 5411 symcode='[ABCDGISTW]' 5412 ;; 5413hpux*) 5414 if test ia64 = "$host_cpu"; then 5415 symcode='[ABCDEGRST]' 5416 fi 5417 ;; 5418irix* | nonstopux*) 5419 symcode='[BCDEGRST]' 5420 ;; 5421osf*) 5422 symcode='[BCDEGQRST]' 5423 ;; 5424solaris*) 5425 symcode='[BDRT]' 5426 ;; 5427sco3.2v5*) 5428 symcode='[DT]' 5429 ;; 5430sysv4.2uw2*) 5431 symcode='[DT]' 5432 ;; 5433sysv5* | sco5v6* | unixware* | OpenUNIX*) 5434 symcode='[ABDT]' 5435 ;; 5436sysv4) 5437 symcode='[DFNSTU]' 5438 ;; 5439esac 5440 5441# If we're using GNU nm, then use its standard symbol codes. 5442case `$NM -V 2>&1` in 5443*GNU* | *'with BFD'*) 5444 symcode='[ABCDGIRSTW]' ;; 5445esac 5446 5447if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5448 # Gets list of data symbols to import. 5449 lt_cv_sys_global_symbol_to_import="sed -n -e 's/^I .* \(.*\)$/\1/p'" 5450 # Adjust the below global symbol transforms to fixup imported variables. 5451 lt_cdecl_hook=" -e 's/^I .* \(.*\)$/extern __declspec(dllimport) char \1;/p'" 5452 lt_c_name_hook=" -e 's/^I .* \(.*\)$/ {\"\1\", (void *) 0},/p'" 5453 lt_c_name_lib_hook="\ 5454 -e 's/^I .* \(lib.*\)$/ {\"\1\", (void *) 0},/p'\ 5455 -e 's/^I .* \(.*\)$/ {\"lib\1\", (void *) 0},/p'" 5456else 5457 # Disable hooks by default. 5458 lt_cv_sys_global_symbol_to_import= 5459 lt_cdecl_hook= 5460 lt_c_name_hook= 5461 lt_c_name_lib_hook= 5462fi 5463 5464# Transform an extracted symbol line into a proper C declaration. 5465# Some systems (esp. on ia64) link data and code symbols differently, 5466# so use this general approach. 5467lt_cv_sys_global_symbol_to_cdecl="sed -n"\ 5468$lt_cdecl_hook\ 5469" -e 's/^T .* \(.*\)$/extern int \1();/p'"\ 5470" -e 's/^$symcode$symcode* .* \(.*\)$/extern char \1;/p'" 5471 5472# Transform an extracted symbol line into symbol name and symbol address 5473lt_cv_sys_global_symbol_to_c_name_address="sed -n"\ 5474$lt_c_name_hook\ 5475" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5476" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/p'" 5477 5478# Transform an extracted symbol line into symbol name with lib prefix and 5479# symbol address. 5480lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n"\ 5481$lt_c_name_lib_hook\ 5482" -e 's/^: \(.*\) .*$/ {\"\1\", (void *) 0},/p'"\ 5483" -e 's/^$symcode$symcode* .* \(lib.*\)$/ {\"\1\", (void *) \&\1},/p'"\ 5484" -e 's/^$symcode$symcode* .* \(.*\)$/ {\"lib\1\", (void *) \&\1},/p'" 5485 5486# Handle CRLF in mingw tool chain 5487opt_cr= 5488case $build_os in 5489mingw*) 5490 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp 5491 ;; 5492esac 5493 5494# Try without a prefix underscore, then with it. 5495for ac_symprfx in "" "_"; do 5496 5497 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol. 5498 symxfrm="\\1 $ac_symprfx\\2 \\2" 5499 5500 # Write the raw and C identifiers. 5501 if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5502 # Fake it for dumpbin and say T for any non-static function, 5503 # D for any global variable and I for any imported variable. 5504 # Also find C++ and __fastcall symbols from MSVC++, 5505 # which start with @ or ?. 5506 lt_cv_sys_global_symbol_pipe="$AWK '"\ 5507" {last_section=section; section=\$ 3};"\ 5508" /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\ 5509" /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\ 5510" /^ *Symbol name *: /{split(\$ 0,sn,\":\"); si=substr(sn[2],2)};"\ 5511" /^ *Type *: code/{print \"T\",si,substr(si,length(prfx))};"\ 5512" /^ *Type *: data/{print \"I\",si,substr(si,length(prfx))};"\ 5513" \$ 0!~/External *\|/{next};"\ 5514" / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\ 5515" {if(hide[section]) next};"\ 5516" {f=\"D\"}; \$ 0~/\(\).*\|/{f=\"T\"};"\ 5517" {split(\$ 0,a,/\||\r/); split(a[2],s)};"\ 5518" s[1]~/^[@?]/{print f,s[1],s[1]; next};"\ 5519" s[1]~prfx {split(s[1],t,\"@\"); print f,t[1],substr(t[1],length(prfx))}"\ 5520" ' prfx=^$ac_symprfx" 5521 else 5522 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'" 5523 fi 5524 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'" 5525 5526 # Check to see that the pipe works correctly. 5527 pipe_works=no 5528 5529 rm -f conftest* 5530 cat > conftest.$ac_ext <<_LT_EOF 5531#ifdef __cplusplus 5532extern "C" { 5533#endif 5534char nm_test_var; 5535void nm_test_func(void); 5536void nm_test_func(void){} 5537#ifdef __cplusplus 5538} 5539#endif 5540int main(){nm_test_var='a';nm_test_func();return(0);} 5541_LT_EOF 5542 5543 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5544 (eval $ac_compile) 2>&5 5545 ac_status=$? 5546 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5547 test $ac_status = 0; }; then 5548 # Now try to grab the symbols. 5549 nlist=conftest.nm 5550 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5 5551 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5 5552 ac_status=$? 5553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5554 test $ac_status = 0; } && test -s "$nlist"; then 5555 # Try sorting and uniquifying the output. 5556 if sort "$nlist" | uniq > "$nlist"T; then 5557 mv -f "$nlist"T "$nlist" 5558 else 5559 rm -f "$nlist"T 5560 fi 5561 5562 # Make sure that we snagged all the symbols we need. 5563 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then 5564 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then 5565 cat <<_LT_EOF > conftest.$ac_ext 5566/* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */ 5567#if defined _WIN32 || defined __CYGWIN__ || defined _WIN32_WCE 5568/* DATA imports from DLLs on WIN32 can't be const, because runtime 5569 relocations are performed -- see ld's documentation on pseudo-relocs. */ 5570# define LT_DLSYM_CONST 5571#elif defined __osf__ 5572/* This system does not cope well with relocations in const data. */ 5573# define LT_DLSYM_CONST 5574#else 5575# define LT_DLSYM_CONST const 5576#endif 5577 5578#ifdef __cplusplus 5579extern "C" { 5580#endif 5581 5582_LT_EOF 5583 # Now generate the symbol file. 5584 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext' 5585 5586 cat <<_LT_EOF >> conftest.$ac_ext 5587 5588/* The mapping between symbol names and symbols. */ 5589LT_DLSYM_CONST struct { 5590 const char *name; 5591 void *address; 5592} 5593lt__PROGRAM__LTX_preloaded_symbols[] = 5594{ 5595 { "@PROGRAM@", (void *) 0 }, 5596_LT_EOF 5597 $SED "s/^$symcode$symcode* .* \(.*\)$/ {\"\1\", (void *) \&\1},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext 5598 cat <<\_LT_EOF >> conftest.$ac_ext 5599 {0, (void *) 0} 5600}; 5601 5602/* This works around a problem in FreeBSD linker */ 5603#ifdef FREEBSD_WORKAROUND 5604static const void *lt_preloaded_setup() { 5605 return lt__PROGRAM__LTX_preloaded_symbols; 5606} 5607#endif 5608 5609#ifdef __cplusplus 5610} 5611#endif 5612_LT_EOF 5613 # Now try linking the two files. 5614 mv conftest.$ac_objext conftstm.$ac_objext 5615 lt_globsym_save_LIBS=$LIBS 5616 lt_globsym_save_CFLAGS=$CFLAGS 5617 LIBS=conftstm.$ac_objext 5618 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag" 5619 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 5620 (eval $ac_link) 2>&5 5621 ac_status=$? 5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5623 test $ac_status = 0; } && test -s conftest$ac_exeext; then 5624 pipe_works=yes 5625 fi 5626 LIBS=$lt_globsym_save_LIBS 5627 CFLAGS=$lt_globsym_save_CFLAGS 5628 else 5629 echo "cannot find nm_test_func in $nlist" >&5 5630 fi 5631 else 5632 echo "cannot find nm_test_var in $nlist" >&5 5633 fi 5634 else 5635 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5 5636 fi 5637 else 5638 echo "$progname: failed program was:" >&5 5639 cat conftest.$ac_ext >&5 5640 fi 5641 rm -rf conftest* conftst* 5642 5643 # Do not use the global_symbol_pipe unless it works. 5644 if test yes = "$pipe_works"; then 5645 break 5646 else 5647 lt_cv_sys_global_symbol_pipe= 5648 fi 5649done 5650 5651fi 5652 5653if test -z "$lt_cv_sys_global_symbol_pipe"; then 5654 lt_cv_sys_global_symbol_to_cdecl= 5655fi 5656if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then 5657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5 5658$as_echo "failed" >&6; } 5659else 5660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5 5661$as_echo "ok" >&6; } 5662fi 5663 5664# Response file support. 5665if test "$lt_cv_nm_interface" = "MS dumpbin"; then 5666 nm_file_list_spec='@' 5667elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then 5668 nm_file_list_spec='@' 5669fi 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5 5708$as_echo_n "checking for sysroot... " >&6; } 5709 5710# Check whether --with-sysroot was given. 5711if test "${with_sysroot+set}" = set; then : 5712 withval=$with_sysroot; 5713else 5714 with_sysroot=no 5715fi 5716 5717 5718lt_sysroot= 5719case $with_sysroot in #( 5720 yes) 5721 if test yes = "$GCC"; then 5722 lt_sysroot=`$CC --print-sysroot 2>/dev/null` 5723 fi 5724 ;; #( 5725 /*) 5726 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"` 5727 ;; #( 5728 no|'') 5729 ;; #( 5730 *) 5731 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_sysroot" >&5 5732$as_echo "$with_sysroot" >&6; } 5733 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5 5734 ;; 5735esac 5736 5737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5 5738$as_echo "${lt_sysroot:-no}" >&6; } 5739 5740 5741 5742 5743 5744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a working dd" >&5 5745$as_echo_n "checking for a working dd... " >&6; } 5746if ${ac_cv_path_lt_DD+:} false; then : 5747 $as_echo_n "(cached) " >&6 5748else 5749 printf 0123456789abcdef0123456789abcdef >conftest.i 5750cat conftest.i conftest.i >conftest2.i 5751: ${lt_DD:=$DD} 5752if test -z "$lt_DD"; then 5753 ac_path_lt_DD_found=false 5754 # Loop through the user's path and test for each of PROGNAME-LIST 5755 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 5756for as_dir in $PATH 5757do 5758 IFS=$as_save_IFS 5759 test -z "$as_dir" && as_dir=. 5760 for ac_prog in dd; do 5761 for ac_exec_ext in '' $ac_executable_extensions; do 5762 ac_path_lt_DD="$as_dir/$ac_prog$ac_exec_ext" 5763 as_fn_executable_p "$ac_path_lt_DD" || continue 5764if "$ac_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5765 cmp -s conftest.i conftest.out \ 5766 && ac_cv_path_lt_DD="$ac_path_lt_DD" ac_path_lt_DD_found=: 5767fi 5768 $ac_path_lt_DD_found && break 3 5769 done 5770 done 5771 done 5772IFS=$as_save_IFS 5773 if test -z "$ac_cv_path_lt_DD"; then 5774 : 5775 fi 5776else 5777 ac_cv_path_lt_DD=$lt_DD 5778fi 5779 5780rm -f conftest.i conftest2.i conftest.out 5781fi 5782{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_lt_DD" >&5 5783$as_echo "$ac_cv_path_lt_DD" >&6; } 5784 5785 5786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to truncate binary pipes" >&5 5787$as_echo_n "checking how to truncate binary pipes... " >&6; } 5788if ${lt_cv_truncate_bin+:} false; then : 5789 $as_echo_n "(cached) " >&6 5790else 5791 printf 0123456789abcdef0123456789abcdef >conftest.i 5792cat conftest.i conftest.i >conftest2.i 5793lt_cv_truncate_bin= 5794if "$ac_cv_path_lt_DD" bs=32 count=1 <conftest2.i >conftest.out 2>/dev/null; then 5795 cmp -s conftest.i conftest.out \ 5796 && lt_cv_truncate_bin="$ac_cv_path_lt_DD bs=4096 count=1" 5797fi 5798rm -f conftest.i conftest2.i conftest.out 5799test -z "$lt_cv_truncate_bin" && lt_cv_truncate_bin="$SED -e 4q" 5800fi 5801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_truncate_bin" >&5 5802$as_echo "$lt_cv_truncate_bin" >&6; } 5803 5804 5805 5806 5807 5808 5809 5810# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 5811func_cc_basename () 5812{ 5813 for cc_temp in $*""; do 5814 case $cc_temp in 5815 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 5816 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 5817 \-*) ;; 5818 *) break;; 5819 esac 5820 done 5821 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 5822} 5823 5824# Check whether --enable-libtool-lock was given. 5825if test "${enable_libtool_lock+set}" = set; then : 5826 enableval=$enable_libtool_lock; 5827fi 5828 5829test no = "$enable_libtool_lock" || enable_libtool_lock=yes 5830 5831# Some flags need to be propagated to the compiler or linker for good 5832# libtool support. 5833case $host in 5834ia64-*-hpux*) 5835 # Find out what ABI is being produced by ac_compile, and set mode 5836 # options accordingly. 5837 echo 'int i;' > conftest.$ac_ext 5838 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5839 (eval $ac_compile) 2>&5 5840 ac_status=$? 5841 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5842 test $ac_status = 0; }; then 5843 case `/usr/bin/file conftest.$ac_objext` in 5844 *ELF-32*) 5845 HPUX_IA64_MODE=32 5846 ;; 5847 *ELF-64*) 5848 HPUX_IA64_MODE=64 5849 ;; 5850 esac 5851 fi 5852 rm -rf conftest* 5853 ;; 5854*-*-irix6*) 5855 # Find out what ABI is being produced by ac_compile, and set linker 5856 # options accordingly. 5857 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5858 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5859 (eval $ac_compile) 2>&5 5860 ac_status=$? 5861 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5862 test $ac_status = 0; }; then 5863 if test yes = "$lt_cv_prog_gnu_ld"; then 5864 case `/usr/bin/file conftest.$ac_objext` in 5865 *32-bit*) 5866 LD="${LD-ld} -melf32bsmip" 5867 ;; 5868 *N32*) 5869 LD="${LD-ld} -melf32bmipn32" 5870 ;; 5871 *64-bit*) 5872 LD="${LD-ld} -melf64bmip" 5873 ;; 5874 esac 5875 else 5876 case `/usr/bin/file conftest.$ac_objext` in 5877 *32-bit*) 5878 LD="${LD-ld} -32" 5879 ;; 5880 *N32*) 5881 LD="${LD-ld} -n32" 5882 ;; 5883 *64-bit*) 5884 LD="${LD-ld} -64" 5885 ;; 5886 esac 5887 fi 5888 fi 5889 rm -rf conftest* 5890 ;; 5891 5892mips64*-*linux*) 5893 # Find out what ABI is being produced by ac_compile, and set linker 5894 # options accordingly. 5895 echo '#line '$LINENO' "configure"' > conftest.$ac_ext 5896 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5897 (eval $ac_compile) 2>&5 5898 ac_status=$? 5899 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5900 test $ac_status = 0; }; then 5901 emul=elf 5902 case `/usr/bin/file conftest.$ac_objext` in 5903 *32-bit*) 5904 emul="${emul}32" 5905 ;; 5906 *64-bit*) 5907 emul="${emul}64" 5908 ;; 5909 esac 5910 case `/usr/bin/file conftest.$ac_objext` in 5911 *MSB*) 5912 emul="${emul}btsmip" 5913 ;; 5914 *LSB*) 5915 emul="${emul}ltsmip" 5916 ;; 5917 esac 5918 case `/usr/bin/file conftest.$ac_objext` in 5919 *N32*) 5920 emul="${emul}n32" 5921 ;; 5922 esac 5923 LD="${LD-ld} -m $emul" 5924 fi 5925 rm -rf conftest* 5926 ;; 5927 5928x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \ 5929s390*-*linux*|s390*-*tpf*|sparc*-*linux*) 5930 # Find out what ABI is being produced by ac_compile, and set linker 5931 # options accordingly. Note that the listed cases only cover the 5932 # situations where additional linker options are needed (such as when 5933 # doing 32-bit compilation for a host where ld defaults to 64-bit, or 5934 # vice versa); the common cases where no linker options are needed do 5935 # not appear in the list. 5936 echo 'int i;' > conftest.$ac_ext 5937 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 5938 (eval $ac_compile) 2>&5 5939 ac_status=$? 5940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 5941 test $ac_status = 0; }; then 5942 case `/usr/bin/file conftest.o` in 5943 *32-bit*) 5944 case $host in 5945 x86_64-*kfreebsd*-gnu) 5946 LD="${LD-ld} -m elf_i386_fbsd" 5947 ;; 5948 x86_64-*linux*) 5949 case `/usr/bin/file conftest.o` in 5950 *x86-64*) 5951 LD="${LD-ld} -m elf32_x86_64" 5952 ;; 5953 *) 5954 LD="${LD-ld} -m elf_i386" 5955 ;; 5956 esac 5957 ;; 5958 powerpc64le-*linux*) 5959 LD="${LD-ld} -m elf32lppclinux" 5960 ;; 5961 powerpc64-*linux*) 5962 LD="${LD-ld} -m elf32ppclinux" 5963 ;; 5964 s390x-*linux*) 5965 LD="${LD-ld} -m elf_s390" 5966 ;; 5967 sparc64-*linux*) 5968 LD="${LD-ld} -m elf32_sparc" 5969 ;; 5970 esac 5971 ;; 5972 *64-bit*) 5973 case $host in 5974 x86_64-*kfreebsd*-gnu) 5975 LD="${LD-ld} -m elf_x86_64_fbsd" 5976 ;; 5977 x86_64-*linux*) 5978 LD="${LD-ld} -m elf_x86_64" 5979 ;; 5980 powerpcle-*linux*) 5981 LD="${LD-ld} -m elf64lppc" 5982 ;; 5983 powerpc-*linux*) 5984 LD="${LD-ld} -m elf64ppc" 5985 ;; 5986 s390*-*linux*|s390*-*tpf*) 5987 LD="${LD-ld} -m elf64_s390" 5988 ;; 5989 sparc*-*linux*) 5990 LD="${LD-ld} -m elf64_sparc" 5991 ;; 5992 esac 5993 ;; 5994 esac 5995 fi 5996 rm -rf conftest* 5997 ;; 5998 5999*-*-sco3.2v5*) 6000 # On SCO OpenServer 5, we need -belf to get full-featured binaries. 6001 SAVE_CFLAGS=$CFLAGS 6002 CFLAGS="$CFLAGS -belf" 6003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5 6004$as_echo_n "checking whether the C compiler needs -belf... " >&6; } 6005if ${lt_cv_cc_needs_belf+:} false; then : 6006 $as_echo_n "(cached) " >&6 6007else 6008 ac_ext=c 6009ac_cpp='$CPP $CPPFLAGS' 6010ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6011ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6012ac_compiler_gnu=$ac_cv_c_compiler_gnu 6013 6014 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6015/* end confdefs.h. */ 6016 6017int 6018main () 6019{ 6020 6021 ; 6022 return 0; 6023} 6024_ACEOF 6025if ac_fn_c_try_link "$LINENO"; then : 6026 lt_cv_cc_needs_belf=yes 6027else 6028 lt_cv_cc_needs_belf=no 6029fi 6030rm -f core conftest.err conftest.$ac_objext \ 6031 conftest$ac_exeext conftest.$ac_ext 6032 ac_ext=c 6033ac_cpp='$CPP $CPPFLAGS' 6034ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6035ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6036ac_compiler_gnu=$ac_cv_c_compiler_gnu 6037 6038fi 6039{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5 6040$as_echo "$lt_cv_cc_needs_belf" >&6; } 6041 if test yes != "$lt_cv_cc_needs_belf"; then 6042 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf 6043 CFLAGS=$SAVE_CFLAGS 6044 fi 6045 ;; 6046*-*solaris*) 6047 # Find out what ABI is being produced by ac_compile, and set linker 6048 # options accordingly. 6049 echo 'int i;' > conftest.$ac_ext 6050 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 6051 (eval $ac_compile) 2>&5 6052 ac_status=$? 6053 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 6054 test $ac_status = 0; }; then 6055 case `/usr/bin/file conftest.o` in 6056 *64-bit*) 6057 case $lt_cv_prog_gnu_ld in 6058 yes*) 6059 case $host in 6060 i?86-*-solaris*|x86_64-*-solaris*) 6061 LD="${LD-ld} -m elf_x86_64" 6062 ;; 6063 sparc*-*-solaris*) 6064 LD="${LD-ld} -m elf64_sparc" 6065 ;; 6066 esac 6067 # GNU ld 2.21 introduced _sol2 emulations. Use them if available. 6068 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then 6069 LD=${LD-ld}_sol2 6070 fi 6071 ;; 6072 *) 6073 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then 6074 LD="${LD-ld} -64" 6075 fi 6076 ;; 6077 esac 6078 ;; 6079 esac 6080 fi 6081 rm -rf conftest* 6082 ;; 6083esac 6084 6085need_locks=$enable_libtool_lock 6086 6087if test -n "$ac_tool_prefix"; then 6088 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args. 6089set dummy ${ac_tool_prefix}mt; ac_word=$2 6090{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6091$as_echo_n "checking for $ac_word... " >&6; } 6092if ${ac_cv_prog_MANIFEST_TOOL+:} false; then : 6093 $as_echo_n "(cached) " >&6 6094else 6095 if test -n "$MANIFEST_TOOL"; then 6096 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test. 6097else 6098as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6099for as_dir in $PATH 6100do 6101 IFS=$as_save_IFS 6102 test -z "$as_dir" && as_dir=. 6103 for ac_exec_ext in '' $ac_executable_extensions; do 6104 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6105 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt" 6106 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6107 break 2 6108 fi 6109done 6110 done 6111IFS=$as_save_IFS 6112 6113fi 6114fi 6115MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL 6116if test -n "$MANIFEST_TOOL"; then 6117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5 6118$as_echo "$MANIFEST_TOOL" >&6; } 6119else 6120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6121$as_echo "no" >&6; } 6122fi 6123 6124 6125fi 6126if test -z "$ac_cv_prog_MANIFEST_TOOL"; then 6127 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL 6128 # Extract the first word of "mt", so it can be a program name with args. 6129set dummy mt; ac_word=$2 6130{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6131$as_echo_n "checking for $ac_word... " >&6; } 6132if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then : 6133 $as_echo_n "(cached) " >&6 6134else 6135 if test -n "$ac_ct_MANIFEST_TOOL"; then 6136 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test. 6137else 6138as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6139for as_dir in $PATH 6140do 6141 IFS=$as_save_IFS 6142 test -z "$as_dir" && as_dir=. 6143 for ac_exec_ext in '' $ac_executable_extensions; do 6144 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6145 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt" 6146 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6147 break 2 6148 fi 6149done 6150 done 6151IFS=$as_save_IFS 6152 6153fi 6154fi 6155ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL 6156if test -n "$ac_ct_MANIFEST_TOOL"; then 6157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5 6158$as_echo "$ac_ct_MANIFEST_TOOL" >&6; } 6159else 6160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6161$as_echo "no" >&6; } 6162fi 6163 6164 if test "x$ac_ct_MANIFEST_TOOL" = x; then 6165 MANIFEST_TOOL=":" 6166 else 6167 case $cross_compiling:$ac_tool_warned in 6168yes:) 6169{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6170$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6171ac_tool_warned=yes ;; 6172esac 6173 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL 6174 fi 6175else 6176 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL" 6177fi 6178 6179test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt 6180{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5 6181$as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; } 6182if ${lt_cv_path_mainfest_tool+:} false; then : 6183 $as_echo_n "(cached) " >&6 6184else 6185 lt_cv_path_mainfest_tool=no 6186 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5 6187 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out 6188 cat conftest.err >&5 6189 if $GREP 'Manifest Tool' conftest.out > /dev/null; then 6190 lt_cv_path_mainfest_tool=yes 6191 fi 6192 rm -f conftest* 6193fi 6194{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5 6195$as_echo "$lt_cv_path_mainfest_tool" >&6; } 6196if test yes != "$lt_cv_path_mainfest_tool"; then 6197 MANIFEST_TOOL=: 6198fi 6199 6200 6201 6202 6203 6204 6205 case $host_os in 6206 rhapsody* | darwin*) 6207 if test -n "$ac_tool_prefix"; then 6208 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args. 6209set dummy ${ac_tool_prefix}dsymutil; ac_word=$2 6210{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6211$as_echo_n "checking for $ac_word... " >&6; } 6212if ${ac_cv_prog_DSYMUTIL+:} false; then : 6213 $as_echo_n "(cached) " >&6 6214else 6215 if test -n "$DSYMUTIL"; then 6216 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test. 6217else 6218as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6219for as_dir in $PATH 6220do 6221 IFS=$as_save_IFS 6222 test -z "$as_dir" && as_dir=. 6223 for ac_exec_ext in '' $ac_executable_extensions; do 6224 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6225 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil" 6226 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6227 break 2 6228 fi 6229done 6230 done 6231IFS=$as_save_IFS 6232 6233fi 6234fi 6235DSYMUTIL=$ac_cv_prog_DSYMUTIL 6236if test -n "$DSYMUTIL"; then 6237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5 6238$as_echo "$DSYMUTIL" >&6; } 6239else 6240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6241$as_echo "no" >&6; } 6242fi 6243 6244 6245fi 6246if test -z "$ac_cv_prog_DSYMUTIL"; then 6247 ac_ct_DSYMUTIL=$DSYMUTIL 6248 # Extract the first word of "dsymutil", so it can be a program name with args. 6249set dummy dsymutil; ac_word=$2 6250{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6251$as_echo_n "checking for $ac_word... " >&6; } 6252if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then : 6253 $as_echo_n "(cached) " >&6 6254else 6255 if test -n "$ac_ct_DSYMUTIL"; then 6256 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test. 6257else 6258as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6259for as_dir in $PATH 6260do 6261 IFS=$as_save_IFS 6262 test -z "$as_dir" && as_dir=. 6263 for ac_exec_ext in '' $ac_executable_extensions; do 6264 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6265 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil" 6266 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6267 break 2 6268 fi 6269done 6270 done 6271IFS=$as_save_IFS 6272 6273fi 6274fi 6275ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL 6276if test -n "$ac_ct_DSYMUTIL"; then 6277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5 6278$as_echo "$ac_ct_DSYMUTIL" >&6; } 6279else 6280 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6281$as_echo "no" >&6; } 6282fi 6283 6284 if test "x$ac_ct_DSYMUTIL" = x; then 6285 DSYMUTIL=":" 6286 else 6287 case $cross_compiling:$ac_tool_warned in 6288yes:) 6289{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6290$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6291ac_tool_warned=yes ;; 6292esac 6293 DSYMUTIL=$ac_ct_DSYMUTIL 6294 fi 6295else 6296 DSYMUTIL="$ac_cv_prog_DSYMUTIL" 6297fi 6298 6299 if test -n "$ac_tool_prefix"; then 6300 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args. 6301set dummy ${ac_tool_prefix}nmedit; ac_word=$2 6302{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6303$as_echo_n "checking for $ac_word... " >&6; } 6304if ${ac_cv_prog_NMEDIT+:} false; then : 6305 $as_echo_n "(cached) " >&6 6306else 6307 if test -n "$NMEDIT"; then 6308 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test. 6309else 6310as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6311for as_dir in $PATH 6312do 6313 IFS=$as_save_IFS 6314 test -z "$as_dir" && as_dir=. 6315 for ac_exec_ext in '' $ac_executable_extensions; do 6316 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6317 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit" 6318 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6319 break 2 6320 fi 6321done 6322 done 6323IFS=$as_save_IFS 6324 6325fi 6326fi 6327NMEDIT=$ac_cv_prog_NMEDIT 6328if test -n "$NMEDIT"; then 6329 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5 6330$as_echo "$NMEDIT" >&6; } 6331else 6332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6333$as_echo "no" >&6; } 6334fi 6335 6336 6337fi 6338if test -z "$ac_cv_prog_NMEDIT"; then 6339 ac_ct_NMEDIT=$NMEDIT 6340 # Extract the first word of "nmedit", so it can be a program name with args. 6341set dummy nmedit; ac_word=$2 6342{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6343$as_echo_n "checking for $ac_word... " >&6; } 6344if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then : 6345 $as_echo_n "(cached) " >&6 6346else 6347 if test -n "$ac_ct_NMEDIT"; then 6348 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test. 6349else 6350as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6351for as_dir in $PATH 6352do 6353 IFS=$as_save_IFS 6354 test -z "$as_dir" && as_dir=. 6355 for ac_exec_ext in '' $ac_executable_extensions; do 6356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6357 ac_cv_prog_ac_ct_NMEDIT="nmedit" 6358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6359 break 2 6360 fi 6361done 6362 done 6363IFS=$as_save_IFS 6364 6365fi 6366fi 6367ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT 6368if test -n "$ac_ct_NMEDIT"; then 6369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5 6370$as_echo "$ac_ct_NMEDIT" >&6; } 6371else 6372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6373$as_echo "no" >&6; } 6374fi 6375 6376 if test "x$ac_ct_NMEDIT" = x; then 6377 NMEDIT=":" 6378 else 6379 case $cross_compiling:$ac_tool_warned in 6380yes:) 6381{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6382$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6383ac_tool_warned=yes ;; 6384esac 6385 NMEDIT=$ac_ct_NMEDIT 6386 fi 6387else 6388 NMEDIT="$ac_cv_prog_NMEDIT" 6389fi 6390 6391 if test -n "$ac_tool_prefix"; then 6392 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args. 6393set dummy ${ac_tool_prefix}lipo; ac_word=$2 6394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6395$as_echo_n "checking for $ac_word... " >&6; } 6396if ${ac_cv_prog_LIPO+:} false; then : 6397 $as_echo_n "(cached) " >&6 6398else 6399 if test -n "$LIPO"; then 6400 ac_cv_prog_LIPO="$LIPO" # Let the user override the test. 6401else 6402as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6403for as_dir in $PATH 6404do 6405 IFS=$as_save_IFS 6406 test -z "$as_dir" && as_dir=. 6407 for ac_exec_ext in '' $ac_executable_extensions; do 6408 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6409 ac_cv_prog_LIPO="${ac_tool_prefix}lipo" 6410 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6411 break 2 6412 fi 6413done 6414 done 6415IFS=$as_save_IFS 6416 6417fi 6418fi 6419LIPO=$ac_cv_prog_LIPO 6420if test -n "$LIPO"; then 6421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5 6422$as_echo "$LIPO" >&6; } 6423else 6424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6425$as_echo "no" >&6; } 6426fi 6427 6428 6429fi 6430if test -z "$ac_cv_prog_LIPO"; then 6431 ac_ct_LIPO=$LIPO 6432 # Extract the first word of "lipo", so it can be a program name with args. 6433set dummy lipo; ac_word=$2 6434{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6435$as_echo_n "checking for $ac_word... " >&6; } 6436if ${ac_cv_prog_ac_ct_LIPO+:} false; then : 6437 $as_echo_n "(cached) " >&6 6438else 6439 if test -n "$ac_ct_LIPO"; then 6440 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test. 6441else 6442as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6443for as_dir in $PATH 6444do 6445 IFS=$as_save_IFS 6446 test -z "$as_dir" && as_dir=. 6447 for ac_exec_ext in '' $ac_executable_extensions; do 6448 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6449 ac_cv_prog_ac_ct_LIPO="lipo" 6450 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6451 break 2 6452 fi 6453done 6454 done 6455IFS=$as_save_IFS 6456 6457fi 6458fi 6459ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO 6460if test -n "$ac_ct_LIPO"; then 6461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5 6462$as_echo "$ac_ct_LIPO" >&6; } 6463else 6464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6465$as_echo "no" >&6; } 6466fi 6467 6468 if test "x$ac_ct_LIPO" = x; then 6469 LIPO=":" 6470 else 6471 case $cross_compiling:$ac_tool_warned in 6472yes:) 6473{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6474$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6475ac_tool_warned=yes ;; 6476esac 6477 LIPO=$ac_ct_LIPO 6478 fi 6479else 6480 LIPO="$ac_cv_prog_LIPO" 6481fi 6482 6483 if test -n "$ac_tool_prefix"; then 6484 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args. 6485set dummy ${ac_tool_prefix}otool; ac_word=$2 6486{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6487$as_echo_n "checking for $ac_word... " >&6; } 6488if ${ac_cv_prog_OTOOL+:} false; then : 6489 $as_echo_n "(cached) " >&6 6490else 6491 if test -n "$OTOOL"; then 6492 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test. 6493else 6494as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6495for as_dir in $PATH 6496do 6497 IFS=$as_save_IFS 6498 test -z "$as_dir" && as_dir=. 6499 for ac_exec_ext in '' $ac_executable_extensions; do 6500 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6501 ac_cv_prog_OTOOL="${ac_tool_prefix}otool" 6502 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6503 break 2 6504 fi 6505done 6506 done 6507IFS=$as_save_IFS 6508 6509fi 6510fi 6511OTOOL=$ac_cv_prog_OTOOL 6512if test -n "$OTOOL"; then 6513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5 6514$as_echo "$OTOOL" >&6; } 6515else 6516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6517$as_echo "no" >&6; } 6518fi 6519 6520 6521fi 6522if test -z "$ac_cv_prog_OTOOL"; then 6523 ac_ct_OTOOL=$OTOOL 6524 # Extract the first word of "otool", so it can be a program name with args. 6525set dummy otool; ac_word=$2 6526{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6527$as_echo_n "checking for $ac_word... " >&6; } 6528if ${ac_cv_prog_ac_ct_OTOOL+:} false; then : 6529 $as_echo_n "(cached) " >&6 6530else 6531 if test -n "$ac_ct_OTOOL"; then 6532 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test. 6533else 6534as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6535for as_dir in $PATH 6536do 6537 IFS=$as_save_IFS 6538 test -z "$as_dir" && as_dir=. 6539 for ac_exec_ext in '' $ac_executable_extensions; do 6540 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6541 ac_cv_prog_ac_ct_OTOOL="otool" 6542 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6543 break 2 6544 fi 6545done 6546 done 6547IFS=$as_save_IFS 6548 6549fi 6550fi 6551ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL 6552if test -n "$ac_ct_OTOOL"; then 6553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5 6554$as_echo "$ac_ct_OTOOL" >&6; } 6555else 6556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6557$as_echo "no" >&6; } 6558fi 6559 6560 if test "x$ac_ct_OTOOL" = x; then 6561 OTOOL=":" 6562 else 6563 case $cross_compiling:$ac_tool_warned in 6564yes:) 6565{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6566$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6567ac_tool_warned=yes ;; 6568esac 6569 OTOOL=$ac_ct_OTOOL 6570 fi 6571else 6572 OTOOL="$ac_cv_prog_OTOOL" 6573fi 6574 6575 if test -n "$ac_tool_prefix"; then 6576 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args. 6577set dummy ${ac_tool_prefix}otool64; ac_word=$2 6578{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6579$as_echo_n "checking for $ac_word... " >&6; } 6580if ${ac_cv_prog_OTOOL64+:} false; then : 6581 $as_echo_n "(cached) " >&6 6582else 6583 if test -n "$OTOOL64"; then 6584 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test. 6585else 6586as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6587for as_dir in $PATH 6588do 6589 IFS=$as_save_IFS 6590 test -z "$as_dir" && as_dir=. 6591 for ac_exec_ext in '' $ac_executable_extensions; do 6592 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6593 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64" 6594 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6595 break 2 6596 fi 6597done 6598 done 6599IFS=$as_save_IFS 6600 6601fi 6602fi 6603OTOOL64=$ac_cv_prog_OTOOL64 6604if test -n "$OTOOL64"; then 6605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5 6606$as_echo "$OTOOL64" >&6; } 6607else 6608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6609$as_echo "no" >&6; } 6610fi 6611 6612 6613fi 6614if test -z "$ac_cv_prog_OTOOL64"; then 6615 ac_ct_OTOOL64=$OTOOL64 6616 # Extract the first word of "otool64", so it can be a program name with args. 6617set dummy otool64; ac_word=$2 6618{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 6619$as_echo_n "checking for $ac_word... " >&6; } 6620if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then : 6621 $as_echo_n "(cached) " >&6 6622else 6623 if test -n "$ac_ct_OTOOL64"; then 6624 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test. 6625else 6626as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 6627for as_dir in $PATH 6628do 6629 IFS=$as_save_IFS 6630 test -z "$as_dir" && as_dir=. 6631 for ac_exec_ext in '' $ac_executable_extensions; do 6632 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 6633 ac_cv_prog_ac_ct_OTOOL64="otool64" 6634 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 6635 break 2 6636 fi 6637done 6638 done 6639IFS=$as_save_IFS 6640 6641fi 6642fi 6643ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64 6644if test -n "$ac_ct_OTOOL64"; then 6645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5 6646$as_echo "$ac_ct_OTOOL64" >&6; } 6647else 6648 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 6649$as_echo "no" >&6; } 6650fi 6651 6652 if test "x$ac_ct_OTOOL64" = x; then 6653 OTOOL64=":" 6654 else 6655 case $cross_compiling:$ac_tool_warned in 6656yes:) 6657{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 6658$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 6659ac_tool_warned=yes ;; 6660esac 6661 OTOOL64=$ac_ct_OTOOL64 6662 fi 6663else 6664 OTOOL64="$ac_cv_prog_OTOOL64" 6665fi 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5 6694$as_echo_n "checking for -single_module linker flag... " >&6; } 6695if ${lt_cv_apple_cc_single_mod+:} false; then : 6696 $as_echo_n "(cached) " >&6 6697else 6698 lt_cv_apple_cc_single_mod=no 6699 if test -z "$LT_MULTI_MODULE"; then 6700 # By default we will add the -single_module flag. You can override 6701 # by either setting the environment variable LT_MULTI_MODULE 6702 # non-empty at configure time, or by adding -multi_module to the 6703 # link flags. 6704 rm -rf libconftest.dylib* 6705 echo "int foo(void){return 1;}" > conftest.c 6706 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6707-dynamiclib -Wl,-single_module conftest.c" >&5 6708 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \ 6709 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err 6710 _lt_result=$? 6711 # If there is a non-empty error log, and "single_module" 6712 # appears in it, assume the flag caused a linker warning 6713 if test -s conftest.err && $GREP single_module conftest.err; then 6714 cat conftest.err >&5 6715 # Otherwise, if the output was created with a 0 exit code from 6716 # the compiler, it worked. 6717 elif test -f libconftest.dylib && test 0 = "$_lt_result"; then 6718 lt_cv_apple_cc_single_mod=yes 6719 else 6720 cat conftest.err >&5 6721 fi 6722 rm -rf libconftest.dylib* 6723 rm -f conftest.* 6724 fi 6725fi 6726{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5 6727$as_echo "$lt_cv_apple_cc_single_mod" >&6; } 6728 6729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5 6730$as_echo_n "checking for -exported_symbols_list linker flag... " >&6; } 6731if ${lt_cv_ld_exported_symbols_list+:} false; then : 6732 $as_echo_n "(cached) " >&6 6733else 6734 lt_cv_ld_exported_symbols_list=no 6735 save_LDFLAGS=$LDFLAGS 6736 echo "_main" > conftest.sym 6737 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym" 6738 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6739/* end confdefs.h. */ 6740 6741int 6742main () 6743{ 6744 6745 ; 6746 return 0; 6747} 6748_ACEOF 6749if ac_fn_c_try_link "$LINENO"; then : 6750 lt_cv_ld_exported_symbols_list=yes 6751else 6752 lt_cv_ld_exported_symbols_list=no 6753fi 6754rm -f core conftest.err conftest.$ac_objext \ 6755 conftest$ac_exeext conftest.$ac_ext 6756 LDFLAGS=$save_LDFLAGS 6757 6758fi 6759{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5 6760$as_echo "$lt_cv_ld_exported_symbols_list" >&6; } 6761 6762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5 6763$as_echo_n "checking for -force_load linker flag... " >&6; } 6764if ${lt_cv_ld_force_load+:} false; then : 6765 $as_echo_n "(cached) " >&6 6766else 6767 lt_cv_ld_force_load=no 6768 cat > conftest.c << _LT_EOF 6769int forced_loaded() { return 2;} 6770_LT_EOF 6771 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5 6772 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5 6773 echo "$AR cru libconftest.a conftest.o" >&5 6774 $AR cru libconftest.a conftest.o 2>&5 6775 echo "$RANLIB libconftest.a" >&5 6776 $RANLIB libconftest.a 2>&5 6777 cat > conftest.c << _LT_EOF 6778int main() { return 0;} 6779_LT_EOF 6780 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5 6781 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err 6782 _lt_result=$? 6783 if test -s conftest.err && $GREP force_load conftest.err; then 6784 cat conftest.err >&5 6785 elif test -f conftest && test 0 = "$_lt_result" && $GREP forced_load conftest >/dev/null 2>&1; then 6786 lt_cv_ld_force_load=yes 6787 else 6788 cat conftest.err >&5 6789 fi 6790 rm -f conftest.err libconftest.a conftest conftest.c 6791 rm -rf conftest.dSYM 6792 6793fi 6794{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5 6795$as_echo "$lt_cv_ld_force_load" >&6; } 6796 case $host_os in 6797 rhapsody* | darwin1.[012]) 6798 _lt_dar_allow_undefined='$wl-undefined ${wl}suppress' ;; 6799 darwin1.*) 6800 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 6801 darwin*) # darwin 5.x on 6802 # if running on 10.5 or later, the deployment target defaults 6803 # to the OS version, if on x86, and 10.4, the deployment 6804 # target defaults to 10.4. Don't you love it? 6805 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in 6806 10.0,*86*-darwin8*|10.0,*-darwin[91]*) 6807 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 6808 10.[012][,.]*) 6809 _lt_dar_allow_undefined='$wl-flat_namespace $wl-undefined ${wl}suppress' ;; 6810 10.*) 6811 _lt_dar_allow_undefined='$wl-undefined ${wl}dynamic_lookup' ;; 6812 esac 6813 ;; 6814 esac 6815 if test yes = "$lt_cv_apple_cc_single_mod"; then 6816 _lt_dar_single_mod='$single_module' 6817 fi 6818 if test yes = "$lt_cv_ld_exported_symbols_list"; then 6819 _lt_dar_export_syms=' $wl-exported_symbols_list,$output_objdir/$libname-symbols.expsym' 6820 else 6821 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/$libname-symbols.expsym $lib' 6822 fi 6823 if test : != "$DSYMUTIL" && test no = "$lt_cv_ld_force_load"; then 6824 _lt_dsymutil='~$DSYMUTIL $lib || :' 6825 else 6826 _lt_dsymutil= 6827 fi 6828 ;; 6829 esac 6830 6831# func_munge_path_list VARIABLE PATH 6832# ----------------------------------- 6833# VARIABLE is name of variable containing _space_ separated list of 6834# directories to be munged by the contents of PATH, which is string 6835# having a format: 6836# "DIR[:DIR]:" 6837# string "DIR[ DIR]" will be prepended to VARIABLE 6838# ":DIR[:DIR]" 6839# string "DIR[ DIR]" will be appended to VARIABLE 6840# "DIRP[:DIRP]::[DIRA:]DIRA" 6841# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 6842# "DIRA[ DIRA]" will be appended to VARIABLE 6843# "DIR[:DIR]" 6844# VARIABLE will be replaced by "DIR[ DIR]" 6845func_munge_path_list () 6846{ 6847 case x$2 in 6848 x) 6849 ;; 6850 *:) 6851 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 6852 ;; 6853 x:*) 6854 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 6855 ;; 6856 *::*) 6857 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 6858 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 6859 ;; 6860 *) 6861 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 6862 ;; 6863 esac 6864} 6865 6866ac_ext=c 6867ac_cpp='$CPP $CPPFLAGS' 6868ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 6869ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 6870ac_compiler_gnu=$ac_cv_c_compiler_gnu 6871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5 6872$as_echo_n "checking how to run the C preprocessor... " >&6; } 6873# On Suns, sometimes $CPP names a directory. 6874if test -n "$CPP" && test -d "$CPP"; then 6875 CPP= 6876fi 6877if test -z "$CPP"; then 6878 if ${ac_cv_prog_CPP+:} false; then : 6879 $as_echo_n "(cached) " >&6 6880else 6881 # Double quotes because CPP needs to be expanded 6882 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" 6883 do 6884 ac_preproc_ok=false 6885for ac_c_preproc_warn_flag in '' yes 6886do 6887 # Use a header file that comes with gcc, so configuring glibc 6888 # with a fresh cross-compiler works. 6889 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6890 # <limits.h> exists even on freestanding compilers. 6891 # On the NeXT, cc -E runs the code through the compiler's parser, 6892 # not just through cpp. "Syntax error" is here to catch this case. 6893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6894/* end confdefs.h. */ 6895#ifdef __STDC__ 6896# include <limits.h> 6897#else 6898# include <assert.h> 6899#endif 6900 Syntax error 6901_ACEOF 6902if ac_fn_c_try_cpp "$LINENO"; then : 6903 6904else 6905 # Broken: fails on valid input. 6906continue 6907fi 6908rm -f conftest.err conftest.i conftest.$ac_ext 6909 6910 # OK, works on sane cases. Now check whether nonexistent headers 6911 # can be detected and how. 6912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6913/* end confdefs.h. */ 6914#include <ac_nonexistent.h> 6915_ACEOF 6916if ac_fn_c_try_cpp "$LINENO"; then : 6917 # Broken: success on invalid input. 6918continue 6919else 6920 # Passes both tests. 6921ac_preproc_ok=: 6922break 6923fi 6924rm -f conftest.err conftest.i conftest.$ac_ext 6925 6926done 6927# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6928rm -f conftest.i conftest.err conftest.$ac_ext 6929if $ac_preproc_ok; then : 6930 break 6931fi 6932 6933 done 6934 ac_cv_prog_CPP=$CPP 6935 6936fi 6937 CPP=$ac_cv_prog_CPP 6938else 6939 ac_cv_prog_CPP=$CPP 6940fi 6941{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5 6942$as_echo "$CPP" >&6; } 6943ac_preproc_ok=false 6944for ac_c_preproc_warn_flag in '' yes 6945do 6946 # Use a header file that comes with gcc, so configuring glibc 6947 # with a fresh cross-compiler works. 6948 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 6949 # <limits.h> exists even on freestanding compilers. 6950 # On the NeXT, cc -E runs the code through the compiler's parser, 6951 # not just through cpp. "Syntax error" is here to catch this case. 6952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6953/* end confdefs.h. */ 6954#ifdef __STDC__ 6955# include <limits.h> 6956#else 6957# include <assert.h> 6958#endif 6959 Syntax error 6960_ACEOF 6961if ac_fn_c_try_cpp "$LINENO"; then : 6962 6963else 6964 # Broken: fails on valid input. 6965continue 6966fi 6967rm -f conftest.err conftest.i conftest.$ac_ext 6968 6969 # OK, works on sane cases. Now check whether nonexistent headers 6970 # can be detected and how. 6971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 6972/* end confdefs.h. */ 6973#include <ac_nonexistent.h> 6974_ACEOF 6975if ac_fn_c_try_cpp "$LINENO"; then : 6976 # Broken: success on invalid input. 6977continue 6978else 6979 # Passes both tests. 6980ac_preproc_ok=: 6981break 6982fi 6983rm -f conftest.err conftest.i conftest.$ac_ext 6984 6985done 6986# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 6987rm -f conftest.i conftest.err conftest.$ac_ext 6988if $ac_preproc_ok; then : 6989 6990else 6991 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 6992$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 6993as_fn_error $? "C preprocessor \"$CPP\" fails sanity check 6994See \`config.log' for more details" "$LINENO" 5; } 6995fi 6996 6997ac_ext=c 6998ac_cpp='$CPP $CPPFLAGS' 6999ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7000ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7001ac_compiler_gnu=$ac_cv_c_compiler_gnu 7002 7003 7004{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 7005$as_echo_n "checking for ANSI C header files... " >&6; } 7006if ${ac_cv_header_stdc+:} false; then : 7007 $as_echo_n "(cached) " >&6 7008else 7009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7010/* end confdefs.h. */ 7011#include <stdlib.h> 7012#include <stdarg.h> 7013#include <string.h> 7014#include <float.h> 7015 7016int 7017main () 7018{ 7019 7020 ; 7021 return 0; 7022} 7023_ACEOF 7024if ac_fn_c_try_compile "$LINENO"; then : 7025 ac_cv_header_stdc=yes 7026else 7027 ac_cv_header_stdc=no 7028fi 7029rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 7030 7031if test $ac_cv_header_stdc = yes; then 7032 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 7033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7034/* end confdefs.h. */ 7035#include <string.h> 7036 7037_ACEOF 7038if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7039 $EGREP "memchr" >/dev/null 2>&1; then : 7040 7041else 7042 ac_cv_header_stdc=no 7043fi 7044rm -f conftest* 7045 7046fi 7047 7048if test $ac_cv_header_stdc = yes; then 7049 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 7050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7051/* end confdefs.h. */ 7052#include <stdlib.h> 7053 7054_ACEOF 7055if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 7056 $EGREP "free" >/dev/null 2>&1; then : 7057 7058else 7059 ac_cv_header_stdc=no 7060fi 7061rm -f conftest* 7062 7063fi 7064 7065if test $ac_cv_header_stdc = yes; then 7066 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 7067 if test "$cross_compiling" = yes; then : 7068 : 7069else 7070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 7071/* end confdefs.h. */ 7072#include <ctype.h> 7073#include <stdlib.h> 7074#if ((' ' & 0x0FF) == 0x020) 7075# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 7076# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 7077#else 7078# define ISLOWER(c) \ 7079 (('a' <= (c) && (c) <= 'i') \ 7080 || ('j' <= (c) && (c) <= 'r') \ 7081 || ('s' <= (c) && (c) <= 'z')) 7082# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 7083#endif 7084 7085#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 7086int 7087main () 7088{ 7089 int i; 7090 for (i = 0; i < 256; i++) 7091 if (XOR (islower (i), ISLOWER (i)) 7092 || toupper (i) != TOUPPER (i)) 7093 return 2; 7094 return 0; 7095} 7096_ACEOF 7097if ac_fn_c_try_run "$LINENO"; then : 7098 7099else 7100 ac_cv_header_stdc=no 7101fi 7102rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 7103 conftest.$ac_objext conftest.beam conftest.$ac_ext 7104fi 7105 7106fi 7107fi 7108{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 7109$as_echo "$ac_cv_header_stdc" >&6; } 7110if test $ac_cv_header_stdc = yes; then 7111 7112$as_echo "#define STDC_HEADERS 1" >>confdefs.h 7113 7114fi 7115 7116# On IRIX 5.3, sys/types and inttypes.h are conflicting. 7117for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ 7118 inttypes.h stdint.h unistd.h 7119do : 7120 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 7121ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default 7122" 7123if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 7124 cat >>confdefs.h <<_ACEOF 7125#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 7126_ACEOF 7127 7128fi 7129 7130done 7131 7132 7133for ac_header in dlfcn.h 7134do : 7135 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default 7136" 7137if test "x$ac_cv_header_dlfcn_h" = xyes; then : 7138 cat >>confdefs.h <<_ACEOF 7139#define HAVE_DLFCN_H 1 7140_ACEOF 7141 7142fi 7143 7144done 7145 7146 7147 7148 7149 7150# Set options 7151 7152 7153 7154 enable_dlopen=no 7155 7156 7157 enable_win32_dll=no 7158 7159 7160 # Check whether --enable-shared was given. 7161if test "${enable_shared+set}" = set; then : 7162 enableval=$enable_shared; p=${PACKAGE-default} 7163 case $enableval in 7164 yes) enable_shared=yes ;; 7165 no) enable_shared=no ;; 7166 *) 7167 enable_shared=no 7168 # Look at the argument we got. We use all the common list separators. 7169 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7170 for pkg in $enableval; do 7171 IFS=$lt_save_ifs 7172 if test "X$pkg" = "X$p"; then 7173 enable_shared=yes 7174 fi 7175 done 7176 IFS=$lt_save_ifs 7177 ;; 7178 esac 7179else 7180 enable_shared=yes 7181fi 7182 7183 7184 7185 7186 7187 7188 7189 7190 7191 # Check whether --enable-static was given. 7192if test "${enable_static+set}" = set; then : 7193 enableval=$enable_static; p=${PACKAGE-default} 7194 case $enableval in 7195 yes) enable_static=yes ;; 7196 no) enable_static=no ;; 7197 *) 7198 enable_static=no 7199 # Look at the argument we got. We use all the common list separators. 7200 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7201 for pkg in $enableval; do 7202 IFS=$lt_save_ifs 7203 if test "X$pkg" = "X$p"; then 7204 enable_static=yes 7205 fi 7206 done 7207 IFS=$lt_save_ifs 7208 ;; 7209 esac 7210else 7211 enable_static=yes 7212fi 7213 7214 7215 7216 7217 7218 7219 7220 7221 7222 7223# Check whether --with-pic was given. 7224if test "${with_pic+set}" = set; then : 7225 withval=$with_pic; lt_p=${PACKAGE-default} 7226 case $withval in 7227 yes|no) pic_mode=$withval ;; 7228 *) 7229 pic_mode=default 7230 # Look at the argument we got. We use all the common list separators. 7231 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7232 for lt_pkg in $withval; do 7233 IFS=$lt_save_ifs 7234 if test "X$lt_pkg" = "X$lt_p"; then 7235 pic_mode=yes 7236 fi 7237 done 7238 IFS=$lt_save_ifs 7239 ;; 7240 esac 7241else 7242 pic_mode=default 7243fi 7244 7245 7246 7247 7248 7249 7250 7251 7252 # Check whether --enable-fast-install was given. 7253if test "${enable_fast_install+set}" = set; then : 7254 enableval=$enable_fast_install; p=${PACKAGE-default} 7255 case $enableval in 7256 yes) enable_fast_install=yes ;; 7257 no) enable_fast_install=no ;; 7258 *) 7259 enable_fast_install=no 7260 # Look at the argument we got. We use all the common list separators. 7261 lt_save_ifs=$IFS; IFS=$IFS$PATH_SEPARATOR, 7262 for pkg in $enableval; do 7263 IFS=$lt_save_ifs 7264 if test "X$pkg" = "X$p"; then 7265 enable_fast_install=yes 7266 fi 7267 done 7268 IFS=$lt_save_ifs 7269 ;; 7270 esac 7271else 7272 enable_fast_install=yes 7273fi 7274 7275 7276 7277 7278 7279 7280 7281 7282 shared_archive_member_spec= 7283case $host,$enable_shared in 7284power*-*-aix[5-9]*,yes) 7285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variant of shared library versioning to provide" >&5 7286$as_echo_n "checking which variant of shared library versioning to provide... " >&6; } 7287 7288# Check whether --with-aix-soname was given. 7289if test "${with_aix_soname+set}" = set; then : 7290 withval=$with_aix_soname; case $withval in 7291 aix|svr4|both) 7292 ;; 7293 *) 7294 as_fn_error $? "Unknown argument to --with-aix-soname" "$LINENO" 5 7295 ;; 7296 esac 7297 lt_cv_with_aix_soname=$with_aix_soname 7298else 7299 if ${lt_cv_with_aix_soname+:} false; then : 7300 $as_echo_n "(cached) " >&6 7301else 7302 lt_cv_with_aix_soname=aix 7303fi 7304 7305 with_aix_soname=$lt_cv_with_aix_soname 7306fi 7307 7308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_aix_soname" >&5 7309$as_echo "$with_aix_soname" >&6; } 7310 if test aix != "$with_aix_soname"; then 7311 # For the AIX way of multilib, we name the shared archive member 7312 # based on the bitwidth used, traditionally 'shr.o' or 'shr_64.o', 7313 # and 'shr.imp' or 'shr_64.imp', respectively, for the Import File. 7314 # Even when GNU compilers ignore OBJECT_MODE but need '-maix64' flag, 7315 # the AIX toolchain works better with OBJECT_MODE set (default 32). 7316 if test 64 = "${OBJECT_MODE-32}"; then 7317 shared_archive_member_spec=shr_64 7318 else 7319 shared_archive_member_spec=shr 7320 fi 7321 fi 7322 ;; 7323*) 7324 with_aix_soname=aix 7325 ;; 7326esac 7327 7328 7329 7330 7331 7332 7333 7334 7335 7336 7337# This can be used to rebuild libtool when needed 7338LIBTOOL_DEPS=$ltmain 7339 7340# Always use our own libtool. 7341LIBTOOL='$(SHELL) $(top_builddir)/libtool' 7342 7343 7344 7345 7346 7347 7348 7349 7350 7351 7352 7353 7354 7355 7356 7357 7358 7359 7360 7361 7362 7363 7364 7365 7366 7367 7368 7369 7370 7371 7372test -z "$LN_S" && LN_S="ln -s" 7373 7374 7375 7376 7377 7378 7379 7380 7381 7382 7383 7384 7385 7386 7387if test -n "${ZSH_VERSION+set}"; then 7388 setopt NO_GLOB_SUBST 7389fi 7390 7391{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5 7392$as_echo_n "checking for objdir... " >&6; } 7393if ${lt_cv_objdir+:} false; then : 7394 $as_echo_n "(cached) " >&6 7395else 7396 rm -f .libs 2>/dev/null 7397mkdir .libs 2>/dev/null 7398if test -d .libs; then 7399 lt_cv_objdir=.libs 7400else 7401 # MS-DOS does not allow filenames that begin with a dot. 7402 lt_cv_objdir=_libs 7403fi 7404rmdir .libs 2>/dev/null 7405fi 7406{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5 7407$as_echo "$lt_cv_objdir" >&6; } 7408objdir=$lt_cv_objdir 7409 7410 7411 7412 7413 7414cat >>confdefs.h <<_ACEOF 7415#define LT_OBJDIR "$lt_cv_objdir/" 7416_ACEOF 7417 7418 7419 7420 7421case $host_os in 7422aix3*) 7423 # AIX sometimes has problems with the GCC collect2 program. For some 7424 # reason, if we set the COLLECT_NAMES environment variable, the problems 7425 # vanish in a puff of smoke. 7426 if test set != "${COLLECT_NAMES+set}"; then 7427 COLLECT_NAMES= 7428 export COLLECT_NAMES 7429 fi 7430 ;; 7431esac 7432 7433# Global variables: 7434ofile=libtool 7435can_build_shared=yes 7436 7437# All known linkers require a '.a' archive for static linking (except MSVC, 7438# which needs '.lib'). 7439libext=a 7440 7441with_gnu_ld=$lt_cv_prog_gnu_ld 7442 7443old_CC=$CC 7444old_CFLAGS=$CFLAGS 7445 7446# Set sane defaults for various variables 7447test -z "$CC" && CC=cc 7448test -z "$LTCC" && LTCC=$CC 7449test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS 7450test -z "$LD" && LD=ld 7451test -z "$ac_objext" && ac_objext=o 7452 7453func_cc_basename $compiler 7454cc_basename=$func_cc_basename_result 7455 7456 7457# Only perform the check for file, if the check method requires it 7458test -z "$MAGIC_CMD" && MAGIC_CMD=file 7459case $deplibs_check_method in 7460file_magic*) 7461 if test "$file_magic_cmd" = '$MAGIC_CMD'; then 7462 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5 7463$as_echo_n "checking for ${ac_tool_prefix}file... " >&6; } 7464if ${lt_cv_path_MAGIC_CMD+:} false; then : 7465 $as_echo_n "(cached) " >&6 7466else 7467 case $MAGIC_CMD in 7468[\\/*] | ?:[\\/]*) 7469 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7470 ;; 7471*) 7472 lt_save_MAGIC_CMD=$MAGIC_CMD 7473 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7474 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7475 for ac_dir in $ac_dummy; do 7476 IFS=$lt_save_ifs 7477 test -z "$ac_dir" && ac_dir=. 7478 if test -f "$ac_dir/${ac_tool_prefix}file"; then 7479 lt_cv_path_MAGIC_CMD=$ac_dir/"${ac_tool_prefix}file" 7480 if test -n "$file_magic_test_file"; then 7481 case $deplibs_check_method in 7482 "file_magic "*) 7483 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7484 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7485 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7486 $EGREP "$file_magic_regex" > /dev/null; then 7487 : 7488 else 7489 cat <<_LT_EOF 1>&2 7490 7491*** Warning: the command libtool uses to detect shared libraries, 7492*** $file_magic_cmd, produces output that libtool cannot recognize. 7493*** The result is that libtool may fail to recognize shared libraries 7494*** as such. This will affect the creation of libtool libraries that 7495*** depend on shared libraries, but programs linked with such libtool 7496*** libraries will work regardless of this problem. Nevertheless, you 7497*** may want to report the problem to your system manager and/or to 7498*** bug-libtool@gnu.org 7499 7500_LT_EOF 7501 fi ;; 7502 esac 7503 fi 7504 break 7505 fi 7506 done 7507 IFS=$lt_save_ifs 7508 MAGIC_CMD=$lt_save_MAGIC_CMD 7509 ;; 7510esac 7511fi 7512 7513MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7514if test -n "$MAGIC_CMD"; then 7515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7516$as_echo "$MAGIC_CMD" >&6; } 7517else 7518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7519$as_echo "no" >&6; } 7520fi 7521 7522 7523 7524 7525 7526if test -z "$lt_cv_path_MAGIC_CMD"; then 7527 if test -n "$ac_tool_prefix"; then 7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5 7529$as_echo_n "checking for file... " >&6; } 7530if ${lt_cv_path_MAGIC_CMD+:} false; then : 7531 $as_echo_n "(cached) " >&6 7532else 7533 case $MAGIC_CMD in 7534[\\/*] | ?:[\\/]*) 7535 lt_cv_path_MAGIC_CMD=$MAGIC_CMD # Let the user override the test with a path. 7536 ;; 7537*) 7538 lt_save_MAGIC_CMD=$MAGIC_CMD 7539 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 7540 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH" 7541 for ac_dir in $ac_dummy; do 7542 IFS=$lt_save_ifs 7543 test -z "$ac_dir" && ac_dir=. 7544 if test -f "$ac_dir/file"; then 7545 lt_cv_path_MAGIC_CMD=$ac_dir/"file" 7546 if test -n "$file_magic_test_file"; then 7547 case $deplibs_check_method in 7548 "file_magic "*) 7549 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"` 7550 MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7551 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null | 7552 $EGREP "$file_magic_regex" > /dev/null; then 7553 : 7554 else 7555 cat <<_LT_EOF 1>&2 7556 7557*** Warning: the command libtool uses to detect shared libraries, 7558*** $file_magic_cmd, produces output that libtool cannot recognize. 7559*** The result is that libtool may fail to recognize shared libraries 7560*** as such. This will affect the creation of libtool libraries that 7561*** depend on shared libraries, but programs linked with such libtool 7562*** libraries will work regardless of this problem. Nevertheless, you 7563*** may want to report the problem to your system manager and/or to 7564*** bug-libtool@gnu.org 7565 7566_LT_EOF 7567 fi ;; 7568 esac 7569 fi 7570 break 7571 fi 7572 done 7573 IFS=$lt_save_ifs 7574 MAGIC_CMD=$lt_save_MAGIC_CMD 7575 ;; 7576esac 7577fi 7578 7579MAGIC_CMD=$lt_cv_path_MAGIC_CMD 7580if test -n "$MAGIC_CMD"; then 7581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5 7582$as_echo "$MAGIC_CMD" >&6; } 7583else 7584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 7585$as_echo "no" >&6; } 7586fi 7587 7588 7589 else 7590 MAGIC_CMD=: 7591 fi 7592fi 7593 7594 fi 7595 ;; 7596esac 7597 7598# Use C for the default configuration in the libtool script 7599 7600lt_save_CC=$CC 7601ac_ext=c 7602ac_cpp='$CPP $CPPFLAGS' 7603ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 7604ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 7605ac_compiler_gnu=$ac_cv_c_compiler_gnu 7606 7607 7608# Source file extension for C test sources. 7609ac_ext=c 7610 7611# Object file extension for compiled C test sources. 7612objext=o 7613objext=$objext 7614 7615# Code to be used in simple compile tests 7616lt_simple_compile_test_code="int some_variable = 0;" 7617 7618# Code to be used in simple link tests 7619lt_simple_link_test_code='int main(){return(0);}' 7620 7621 7622 7623 7624 7625 7626 7627# If no C compiler was specified, use CC. 7628LTCC=${LTCC-"$CC"} 7629 7630# If no C compiler flags were specified, use CFLAGS. 7631LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 7632 7633# Allow CC to be a program name with arguments. 7634compiler=$CC 7635 7636# Save the default compiler, since it gets overwritten when the other 7637# tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP. 7638compiler_DEFAULT=$CC 7639 7640# save warnings/boilerplate of simple test code 7641ac_outfile=conftest.$ac_objext 7642echo "$lt_simple_compile_test_code" >conftest.$ac_ext 7643eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7644_lt_compiler_boilerplate=`cat conftest.err` 7645$RM conftest* 7646 7647ac_outfile=conftest.$ac_objext 7648echo "$lt_simple_link_test_code" >conftest.$ac_ext 7649eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 7650_lt_linker_boilerplate=`cat conftest.err` 7651$RM -r conftest* 7652 7653 7654## CAVEAT EMPTOR: 7655## There is no encapsulation within the following macros, do not change 7656## the running order or otherwise move them around unless you know exactly 7657## what you are doing... 7658if test -n "$compiler"; then 7659 7660lt_prog_compiler_no_builtin_flag= 7661 7662if test yes = "$GCC"; then 7663 case $cc_basename in 7664 nvcc*) 7665 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;; 7666 *) 7667 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;; 7668 esac 7669 7670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5 7671$as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; } 7672if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then : 7673 $as_echo_n "(cached) " >&6 7674else 7675 lt_cv_prog_compiler_rtti_exceptions=no 7676 ac_outfile=conftest.$ac_objext 7677 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 7678 lt_compiler_flag="-fno-rtti -fno-exceptions" ## exclude from sc_useless_quotes_in_assignment 7679 # Insert the option either (1) after the last *FLAGS variable, or 7680 # (2) before a word containing "conftest.", or (3) at the end. 7681 # Note that $ac_compile itself does not contain backslashes and begins 7682 # with a dollar sign (not a hyphen), so the echo should work correctly. 7683 # The option is referenced via a variable to avoid confusing sed. 7684 lt_compile=`echo "$ac_compile" | $SED \ 7685 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 7686 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 7687 -e 's:$: $lt_compiler_flag:'` 7688 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 7689 (eval "$lt_compile" 2>conftest.err) 7690 ac_status=$? 7691 cat conftest.err >&5 7692 echo "$as_me:$LINENO: \$? = $ac_status" >&5 7693 if (exit $ac_status) && test -s "$ac_outfile"; then 7694 # The compiler can only warn and ignore the option if not recognized 7695 # So say no if there are warnings other than the usual output. 7696 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 7697 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 7698 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 7699 lt_cv_prog_compiler_rtti_exceptions=yes 7700 fi 7701 fi 7702 $RM conftest* 7703 7704fi 7705{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5 7706$as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; } 7707 7708if test yes = "$lt_cv_prog_compiler_rtti_exceptions"; then 7709 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions" 7710else 7711 : 7712fi 7713 7714fi 7715 7716 7717 7718 7719 7720 7721 lt_prog_compiler_wl= 7722lt_prog_compiler_pic= 7723lt_prog_compiler_static= 7724 7725 7726 if test yes = "$GCC"; then 7727 lt_prog_compiler_wl='-Wl,' 7728 lt_prog_compiler_static='-static' 7729 7730 case $host_os in 7731 aix*) 7732 # All AIX code is PIC. 7733 if test ia64 = "$host_cpu"; then 7734 # AIX 5 now supports IA64 processor 7735 lt_prog_compiler_static='-Bstatic' 7736 fi 7737 lt_prog_compiler_pic='-fPIC' 7738 ;; 7739 7740 amigaos*) 7741 case $host_cpu in 7742 powerpc) 7743 # see comment about AmigaOS4 .so support 7744 lt_prog_compiler_pic='-fPIC' 7745 ;; 7746 m68k) 7747 # FIXME: we need at least 68020 code to build shared libraries, but 7748 # adding the '-m68020' flag to GCC prevents building anything better, 7749 # like '-m68040'. 7750 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4' 7751 ;; 7752 esac 7753 ;; 7754 7755 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 7756 # PIC is the default for these OSes. 7757 ;; 7758 7759 mingw* | cygwin* | pw32* | os2* | cegcc*) 7760 # This hack is so that the source file can tell whether it is being 7761 # built for inclusion in a dll (and should export symbols for example). 7762 # Although the cygwin gcc ignores -fPIC, still need this for old-style 7763 # (--disable-auto-import) libraries 7764 lt_prog_compiler_pic='-DDLL_EXPORT' 7765 case $host_os in 7766 os2*) 7767 lt_prog_compiler_static='$wl-static' 7768 ;; 7769 esac 7770 ;; 7771 7772 darwin* | rhapsody*) 7773 # PIC is the default on this platform 7774 # Common symbols not allowed in MH_DYLIB files 7775 lt_prog_compiler_pic='-fno-common' 7776 ;; 7777 7778 haiku*) 7779 # PIC is the default for Haiku. 7780 # The "-static" flag exists, but is broken. 7781 lt_prog_compiler_static= 7782 ;; 7783 7784 hpux*) 7785 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 7786 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 7787 # sets the default TLS model and affects inlining. 7788 case $host_cpu in 7789 hppa*64*) 7790 # +Z the default 7791 ;; 7792 *) 7793 lt_prog_compiler_pic='-fPIC' 7794 ;; 7795 esac 7796 ;; 7797 7798 interix[3-9]*) 7799 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 7800 # Instead, we relocate shared libraries at runtime. 7801 ;; 7802 7803 msdosdjgpp*) 7804 # Just because we use GCC doesn't mean we suddenly get shared libraries 7805 # on systems that don't support them. 7806 lt_prog_compiler_can_build_shared=no 7807 enable_shared=no 7808 ;; 7809 7810 *nto* | *qnx*) 7811 # QNX uses GNU C++, but need to define -shared option too, otherwise 7812 # it will coredump. 7813 lt_prog_compiler_pic='-fPIC -shared' 7814 ;; 7815 7816 sysv4*MP*) 7817 if test -d /usr/nec; then 7818 lt_prog_compiler_pic=-Kconform_pic 7819 fi 7820 ;; 7821 7822 *) 7823 lt_prog_compiler_pic='-fPIC' 7824 ;; 7825 esac 7826 7827 case $cc_basename in 7828 nvcc*) # Cuda Compiler Driver 2.2 7829 lt_prog_compiler_wl='-Xlinker ' 7830 if test -n "$lt_prog_compiler_pic"; then 7831 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic" 7832 fi 7833 ;; 7834 esac 7835 else 7836 # PORTME Check for flag to pass linker flags through the system compiler. 7837 case $host_os in 7838 aix*) 7839 lt_prog_compiler_wl='-Wl,' 7840 if test ia64 = "$host_cpu"; then 7841 # AIX 5 now supports IA64 processor 7842 lt_prog_compiler_static='-Bstatic' 7843 else 7844 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp' 7845 fi 7846 ;; 7847 7848 darwin* | rhapsody*) 7849 # PIC is the default on this platform 7850 # Common symbols not allowed in MH_DYLIB files 7851 lt_prog_compiler_pic='-fno-common' 7852 case $cc_basename in 7853 nagfor*) 7854 # NAG Fortran compiler 7855 lt_prog_compiler_wl='-Wl,-Wl,,' 7856 lt_prog_compiler_pic='-PIC' 7857 lt_prog_compiler_static='-Bstatic' 7858 ;; 7859 esac 7860 ;; 7861 7862 mingw* | cygwin* | pw32* | os2* | cegcc*) 7863 # This hack is so that the source file can tell whether it is being 7864 # built for inclusion in a dll (and should export symbols for example). 7865 lt_prog_compiler_pic='-DDLL_EXPORT' 7866 case $host_os in 7867 os2*) 7868 lt_prog_compiler_static='$wl-static' 7869 ;; 7870 esac 7871 ;; 7872 7873 hpux9* | hpux10* | hpux11*) 7874 lt_prog_compiler_wl='-Wl,' 7875 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but 7876 # not for PA HP-UX. 7877 case $host_cpu in 7878 hppa*64*|ia64*) 7879 # +Z the default 7880 ;; 7881 *) 7882 lt_prog_compiler_pic='+Z' 7883 ;; 7884 esac 7885 # Is there a better lt_prog_compiler_static that works with the bundled CC? 7886 lt_prog_compiler_static='$wl-a ${wl}archive' 7887 ;; 7888 7889 irix5* | irix6* | nonstopux*) 7890 lt_prog_compiler_wl='-Wl,' 7891 # PIC (with -KPIC) is the default. 7892 lt_prog_compiler_static='-non_shared' 7893 ;; 7894 7895 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 7896 case $cc_basename in 7897 # old Intel for x86_64, which still supported -KPIC. 7898 ecc*) 7899 lt_prog_compiler_wl='-Wl,' 7900 lt_prog_compiler_pic='-KPIC' 7901 lt_prog_compiler_static='-static' 7902 ;; 7903 # icc used to be incompatible with GCC. 7904 # ICC 10 doesn't accept -KPIC any more. 7905 icc* | ifort*) 7906 lt_prog_compiler_wl='-Wl,' 7907 lt_prog_compiler_pic='-fPIC' 7908 lt_prog_compiler_static='-static' 7909 ;; 7910 # Lahey Fortran 8.1. 7911 lf95*) 7912 lt_prog_compiler_wl='-Wl,' 7913 lt_prog_compiler_pic='--shared' 7914 lt_prog_compiler_static='--static' 7915 ;; 7916 nagfor*) 7917 # NAG Fortran compiler 7918 lt_prog_compiler_wl='-Wl,-Wl,,' 7919 lt_prog_compiler_pic='-PIC' 7920 lt_prog_compiler_static='-Bstatic' 7921 ;; 7922 tcc*) 7923 # Fabrice Bellard et al's Tiny C Compiler 7924 lt_prog_compiler_wl='-Wl,' 7925 lt_prog_compiler_pic='-fPIC' 7926 lt_prog_compiler_static='-static' 7927 ;; 7928 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*) 7929 # Portland Group compilers (*not* the Pentium gcc compiler, 7930 # which looks to be a dead project) 7931 lt_prog_compiler_wl='-Wl,' 7932 lt_prog_compiler_pic='-fpic' 7933 lt_prog_compiler_static='-Bstatic' 7934 ;; 7935 ccc*) 7936 lt_prog_compiler_wl='-Wl,' 7937 # All Alpha code is PIC. 7938 lt_prog_compiler_static='-non_shared' 7939 ;; 7940 xl* | bgxl* | bgf* | mpixl*) 7941 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene 7942 lt_prog_compiler_wl='-Wl,' 7943 lt_prog_compiler_pic='-qpic' 7944 lt_prog_compiler_static='-qstaticlink' 7945 ;; 7946 *) 7947 case `$CC -V 2>&1 | sed 5q` in 7948 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*) 7949 # Sun Fortran 8.3 passes all unrecognized flags to the linker 7950 lt_prog_compiler_pic='-KPIC' 7951 lt_prog_compiler_static='-Bstatic' 7952 lt_prog_compiler_wl='' 7953 ;; 7954 *Sun\ F* | *Sun*Fortran*) 7955 lt_prog_compiler_pic='-KPIC' 7956 lt_prog_compiler_static='-Bstatic' 7957 lt_prog_compiler_wl='-Qoption ld ' 7958 ;; 7959 *Sun\ C*) 7960 # Sun C 5.9 7961 lt_prog_compiler_pic='-KPIC' 7962 lt_prog_compiler_static='-Bstatic' 7963 lt_prog_compiler_wl='-Wl,' 7964 ;; 7965 *Intel*\ [CF]*Compiler*) 7966 lt_prog_compiler_wl='-Wl,' 7967 lt_prog_compiler_pic='-fPIC' 7968 lt_prog_compiler_static='-static' 7969 ;; 7970 *Portland\ Group*) 7971 lt_prog_compiler_wl='-Wl,' 7972 lt_prog_compiler_pic='-fpic' 7973 lt_prog_compiler_static='-Bstatic' 7974 ;; 7975 esac 7976 ;; 7977 esac 7978 ;; 7979 7980 newsos6) 7981 lt_prog_compiler_pic='-KPIC' 7982 lt_prog_compiler_static='-Bstatic' 7983 ;; 7984 7985 *nto* | *qnx*) 7986 # QNX uses GNU C++, but need to define -shared option too, otherwise 7987 # it will coredump. 7988 lt_prog_compiler_pic='-fPIC -shared' 7989 ;; 7990 7991 osf3* | osf4* | osf5*) 7992 lt_prog_compiler_wl='-Wl,' 7993 # All OSF/1 code is PIC. 7994 lt_prog_compiler_static='-non_shared' 7995 ;; 7996 7997 rdos*) 7998 lt_prog_compiler_static='-non_shared' 7999 ;; 8000 8001 solaris*) 8002 lt_prog_compiler_pic='-KPIC' 8003 lt_prog_compiler_static='-Bstatic' 8004 case $cc_basename in 8005 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*) 8006 lt_prog_compiler_wl='-Qoption ld ';; 8007 *) 8008 lt_prog_compiler_wl='-Wl,';; 8009 esac 8010 ;; 8011 8012 sunos4*) 8013 lt_prog_compiler_wl='-Qoption ld ' 8014 lt_prog_compiler_pic='-PIC' 8015 lt_prog_compiler_static='-Bstatic' 8016 ;; 8017 8018 sysv4 | sysv4.2uw2* | sysv4.3*) 8019 lt_prog_compiler_wl='-Wl,' 8020 lt_prog_compiler_pic='-KPIC' 8021 lt_prog_compiler_static='-Bstatic' 8022 ;; 8023 8024 sysv4*MP*) 8025 if test -d /usr/nec; then 8026 lt_prog_compiler_pic='-Kconform_pic' 8027 lt_prog_compiler_static='-Bstatic' 8028 fi 8029 ;; 8030 8031 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 8032 lt_prog_compiler_wl='-Wl,' 8033 lt_prog_compiler_pic='-KPIC' 8034 lt_prog_compiler_static='-Bstatic' 8035 ;; 8036 8037 unicos*) 8038 lt_prog_compiler_wl='-Wl,' 8039 lt_prog_compiler_can_build_shared=no 8040 ;; 8041 8042 uts4*) 8043 lt_prog_compiler_pic='-pic' 8044 lt_prog_compiler_static='-Bstatic' 8045 ;; 8046 8047 *) 8048 lt_prog_compiler_can_build_shared=no 8049 ;; 8050 esac 8051 fi 8052 8053case $host_os in 8054 # For platforms that do not support PIC, -DPIC is meaningless: 8055 *djgpp*) 8056 lt_prog_compiler_pic= 8057 ;; 8058 *) 8059 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC" 8060 ;; 8061esac 8062 8063{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 8064$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 8065if ${lt_cv_prog_compiler_pic+:} false; then : 8066 $as_echo_n "(cached) " >&6 8067else 8068 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic 8069fi 8070{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5 8071$as_echo "$lt_cv_prog_compiler_pic" >&6; } 8072lt_prog_compiler_pic=$lt_cv_prog_compiler_pic 8073 8074# 8075# Check to make sure the PIC flag actually works. 8076# 8077if test -n "$lt_prog_compiler_pic"; then 8078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5 8079$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; } 8080if ${lt_cv_prog_compiler_pic_works+:} false; then : 8081 $as_echo_n "(cached) " >&6 8082else 8083 lt_cv_prog_compiler_pic_works=no 8084 ac_outfile=conftest.$ac_objext 8085 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8086 lt_compiler_flag="$lt_prog_compiler_pic -DPIC" ## exclude from sc_useless_quotes_in_assignment 8087 # Insert the option either (1) after the last *FLAGS variable, or 8088 # (2) before a word containing "conftest.", or (3) at the end. 8089 # Note that $ac_compile itself does not contain backslashes and begins 8090 # with a dollar sign (not a hyphen), so the echo should work correctly. 8091 # The option is referenced via a variable to avoid confusing sed. 8092 lt_compile=`echo "$ac_compile" | $SED \ 8093 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8094 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8095 -e 's:$: $lt_compiler_flag:'` 8096 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8097 (eval "$lt_compile" 2>conftest.err) 8098 ac_status=$? 8099 cat conftest.err >&5 8100 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8101 if (exit $ac_status) && test -s "$ac_outfile"; then 8102 # The compiler can only warn and ignore the option if not recognized 8103 # So say no if there are warnings other than the usual output. 8104 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 8105 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8106 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 8107 lt_cv_prog_compiler_pic_works=yes 8108 fi 8109 fi 8110 $RM conftest* 8111 8112fi 8113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5 8114$as_echo "$lt_cv_prog_compiler_pic_works" >&6; } 8115 8116if test yes = "$lt_cv_prog_compiler_pic_works"; then 8117 case $lt_prog_compiler_pic in 8118 "" | " "*) ;; 8119 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;; 8120 esac 8121else 8122 lt_prog_compiler_pic= 8123 lt_prog_compiler_can_build_shared=no 8124fi 8125 8126fi 8127 8128 8129 8130 8131 8132 8133 8134 8135 8136 8137 8138# 8139# Check to make sure the static flag actually works. 8140# 8141wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\" 8142{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 8143$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 8144if ${lt_cv_prog_compiler_static_works+:} false; then : 8145 $as_echo_n "(cached) " >&6 8146else 8147 lt_cv_prog_compiler_static_works=no 8148 save_LDFLAGS=$LDFLAGS 8149 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 8150 echo "$lt_simple_link_test_code" > conftest.$ac_ext 8151 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 8152 # The linker can only warn and ignore the option if not recognized 8153 # So say no if there are warnings 8154 if test -s conftest.err; then 8155 # Append any errors to the config.log. 8156 cat conftest.err 1>&5 8157 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 8158 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 8159 if diff conftest.exp conftest.er2 >/dev/null; then 8160 lt_cv_prog_compiler_static_works=yes 8161 fi 8162 else 8163 lt_cv_prog_compiler_static_works=yes 8164 fi 8165 fi 8166 $RM -r conftest* 8167 LDFLAGS=$save_LDFLAGS 8168 8169fi 8170{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5 8171$as_echo "$lt_cv_prog_compiler_static_works" >&6; } 8172 8173if test yes = "$lt_cv_prog_compiler_static_works"; then 8174 : 8175else 8176 lt_prog_compiler_static= 8177fi 8178 8179 8180 8181 8182 8183 8184 8185 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8186$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8187if ${lt_cv_prog_compiler_c_o+:} false; then : 8188 $as_echo_n "(cached) " >&6 8189else 8190 lt_cv_prog_compiler_c_o=no 8191 $RM -r conftest 2>/dev/null 8192 mkdir conftest 8193 cd conftest 8194 mkdir out 8195 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8196 8197 lt_compiler_flag="-o out/conftest2.$ac_objext" 8198 # Insert the option either (1) after the last *FLAGS variable, or 8199 # (2) before a word containing "conftest.", or (3) at the end. 8200 # Note that $ac_compile itself does not contain backslashes and begins 8201 # with a dollar sign (not a hyphen), so the echo should work correctly. 8202 lt_compile=`echo "$ac_compile" | $SED \ 8203 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8204 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8205 -e 's:$: $lt_compiler_flag:'` 8206 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8207 (eval "$lt_compile" 2>out/conftest.err) 8208 ac_status=$? 8209 cat out/conftest.err >&5 8210 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8211 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8212 then 8213 # The compiler can only warn and ignore the option if not recognized 8214 # So say no if there are warnings 8215 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8216 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8217 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8218 lt_cv_prog_compiler_c_o=yes 8219 fi 8220 fi 8221 chmod u+w . 2>&5 8222 $RM conftest* 8223 # SGI C++ compiler will create directory out/ii_files/ for 8224 # template instantiation 8225 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8226 $RM out/* && rmdir out 8227 cd .. 8228 $RM -r conftest 8229 $RM conftest* 8230 8231fi 8232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8233$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8234 8235 8236 8237 8238 8239 8240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 8241$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 8242if ${lt_cv_prog_compiler_c_o+:} false; then : 8243 $as_echo_n "(cached) " >&6 8244else 8245 lt_cv_prog_compiler_c_o=no 8246 $RM -r conftest 2>/dev/null 8247 mkdir conftest 8248 cd conftest 8249 mkdir out 8250 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 8251 8252 lt_compiler_flag="-o out/conftest2.$ac_objext" 8253 # Insert the option either (1) after the last *FLAGS variable, or 8254 # (2) before a word containing "conftest.", or (3) at the end. 8255 # Note that $ac_compile itself does not contain backslashes and begins 8256 # with a dollar sign (not a hyphen), so the echo should work correctly. 8257 lt_compile=`echo "$ac_compile" | $SED \ 8258 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 8259 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 8260 -e 's:$: $lt_compiler_flag:'` 8261 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 8262 (eval "$lt_compile" 2>out/conftest.err) 8263 ac_status=$? 8264 cat out/conftest.err >&5 8265 echo "$as_me:$LINENO: \$? = $ac_status" >&5 8266 if (exit $ac_status) && test -s out/conftest2.$ac_objext 8267 then 8268 # The compiler can only warn and ignore the option if not recognized 8269 # So say no if there are warnings 8270 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 8271 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 8272 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 8273 lt_cv_prog_compiler_c_o=yes 8274 fi 8275 fi 8276 chmod u+w . 2>&5 8277 $RM conftest* 8278 # SGI C++ compiler will create directory out/ii_files/ for 8279 # template instantiation 8280 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 8281 $RM out/* && rmdir out 8282 cd .. 8283 $RM -r conftest 8284 $RM conftest* 8285 8286fi 8287{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5 8288$as_echo "$lt_cv_prog_compiler_c_o" >&6; } 8289 8290 8291 8292 8293hard_links=nottested 8294if test no = "$lt_cv_prog_compiler_c_o" && test no != "$need_locks"; then 8295 # do not overwrite the value of need_locks provided by the user 8296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 8297$as_echo_n "checking if we can lock with hard links... " >&6; } 8298 hard_links=yes 8299 $RM conftest* 8300 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8301 touch conftest.a 8302 ln conftest.a conftest.b 2>&5 || hard_links=no 8303 ln conftest.a conftest.b 2>/dev/null && hard_links=no 8304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 8305$as_echo "$hard_links" >&6; } 8306 if test no = "$hard_links"; then 8307 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 8308$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 8309 need_locks=warn 8310 fi 8311else 8312 need_locks=no 8313fi 8314 8315 8316 8317 8318 8319 8320 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 8321$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 8322 8323 runpath_var= 8324 allow_undefined_flag= 8325 always_export_symbols=no 8326 archive_cmds= 8327 archive_expsym_cmds= 8328 compiler_needs_object=no 8329 enable_shared_with_static_runtimes=no 8330 export_dynamic_flag_spec= 8331 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 8332 hardcode_automatic=no 8333 hardcode_direct=no 8334 hardcode_direct_absolute=no 8335 hardcode_libdir_flag_spec= 8336 hardcode_libdir_separator= 8337 hardcode_minus_L=no 8338 hardcode_shlibpath_var=unsupported 8339 inherit_rpath=no 8340 link_all_deplibs=unknown 8341 module_cmds= 8342 module_expsym_cmds= 8343 old_archive_from_new_cmds= 8344 old_archive_from_expsyms_cmds= 8345 thread_safe_flag_spec= 8346 whole_archive_flag_spec= 8347 # include_expsyms should be a list of space-separated symbols to be *always* 8348 # included in the symbol list 8349 include_expsyms= 8350 # exclude_expsyms can be an extended regexp of symbols to exclude 8351 # it will be wrapped by ' (' and ')$', so one must not match beginning or 8352 # end of line. Example: 'a|bc|.*d.*' will exclude the symbols 'a' and 'bc', 8353 # as well as any symbol that contains 'd'. 8354 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 8355 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out 8356 # platforms (ab)use it in PIC code, but their linkers get confused if 8357 # the symbol is explicitly referenced. Since portable code cannot 8358 # rely on this symbol name, it's probably fine to never include it in 8359 # preloaded symbol tables. 8360 # Exclude shared library initialization/finalization symbols. 8361 extract_expsyms_cmds= 8362 8363 case $host_os in 8364 cygwin* | mingw* | pw32* | cegcc*) 8365 # FIXME: the MSVC++ port hasn't been tested in a loooong time 8366 # When not using gcc, we currently assume that we are using 8367 # Microsoft Visual C++. 8368 if test yes != "$GCC"; then 8369 with_gnu_ld=no 8370 fi 8371 ;; 8372 interix*) 8373 # we just hope/assume this is gcc and not c89 (= MSVC++) 8374 with_gnu_ld=yes 8375 ;; 8376 openbsd* | bitrig*) 8377 with_gnu_ld=no 8378 ;; 8379 esac 8380 8381 ld_shlibs=yes 8382 8383 # On some targets, GNU ld is compatible enough with the native linker 8384 # that we're better off using the native interface for both. 8385 lt_use_gnu_ld_interface=no 8386 if test yes = "$with_gnu_ld"; then 8387 case $host_os in 8388 aix*) 8389 # The AIX port of GNU ld has always aspired to compatibility 8390 # with the native linker. However, as the warning in the GNU ld 8391 # block says, versions before 2.19.5* couldn't really create working 8392 # shared libraries, regardless of the interface used. 8393 case `$LD -v 2>&1` in 8394 *\ \(GNU\ Binutils\)\ 2.19.5*) ;; 8395 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;; 8396 *\ \(GNU\ Binutils\)\ [3-9]*) ;; 8397 *) 8398 lt_use_gnu_ld_interface=yes 8399 ;; 8400 esac 8401 ;; 8402 *) 8403 lt_use_gnu_ld_interface=yes 8404 ;; 8405 esac 8406 fi 8407 8408 if test yes = "$lt_use_gnu_ld_interface"; then 8409 # If archive_cmds runs LD, not CC, wlarc should be empty 8410 wlarc='$wl' 8411 8412 # Set some defaults for GNU ld with shared library support. These 8413 # are reset later if shared libraries are not supported. Putting them 8414 # here allows them to be overridden if necessary. 8415 runpath_var=LD_RUN_PATH 8416 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8417 export_dynamic_flag_spec='$wl--export-dynamic' 8418 # ancient GNU ld didn't support --whole-archive et. al. 8419 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then 8420 whole_archive_flag_spec=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 8421 else 8422 whole_archive_flag_spec= 8423 fi 8424 supports_anon_versioning=no 8425 case `$LD -v | $SED -e 's/(^)\+)\s\+//' 2>&1` in 8426 *GNU\ gold*) supports_anon_versioning=yes ;; 8427 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11 8428 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ... 8429 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ... 8430 *\ 2.11.*) ;; # other 2.11 versions 8431 *) supports_anon_versioning=yes ;; 8432 esac 8433 8434 # See if GNU ld supports shared libraries. 8435 case $host_os in 8436 aix[3-9]*) 8437 # On AIX/PPC, the GNU linker is very broken 8438 if test ia64 != "$host_cpu"; then 8439 ld_shlibs=no 8440 cat <<_LT_EOF 1>&2 8441 8442*** Warning: the GNU linker, at least up to release 2.19, is reported 8443*** to be unable to reliably create shared libraries on AIX. 8444*** Therefore, libtool is disabling shared libraries support. If you 8445*** really care for shared libraries, you may want to install binutils 8446*** 2.20 or above, or modify your PATH so that a non-GNU linker is found. 8447*** You will then need to restart the configuration process. 8448 8449_LT_EOF 8450 fi 8451 ;; 8452 8453 amigaos*) 8454 case $host_cpu in 8455 powerpc) 8456 # see comment about AmigaOS4 .so support 8457 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8458 archive_expsym_cmds='' 8459 ;; 8460 m68k) 8461 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)' 8462 hardcode_libdir_flag_spec='-L$libdir' 8463 hardcode_minus_L=yes 8464 ;; 8465 esac 8466 ;; 8467 8468 beos*) 8469 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8470 allow_undefined_flag=unsupported 8471 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 8472 # support --undefined. This deserves some investigation. FIXME 8473 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8474 else 8475 ld_shlibs=no 8476 fi 8477 ;; 8478 8479 cygwin* | mingw* | pw32* | cegcc*) 8480 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless, 8481 # as there is no search path for DLLs. 8482 hardcode_libdir_flag_spec='-L$libdir' 8483 export_dynamic_flag_spec='$wl--export-all-symbols' 8484 allow_undefined_flag=unsupported 8485 always_export_symbols=no 8486 enable_shared_with_static_runtimes=yes 8487 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' 8488 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 8489 8490 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 8491 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8492 # If the export-symbols file already is a .def file, use it as 8493 # is; otherwise, prepend EXPORTS... 8494 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 8495 cp $export_symbols $output_objdir/$soname.def; 8496 else 8497 echo EXPORTS > $output_objdir/$soname.def; 8498 cat $export_symbols >> $output_objdir/$soname.def; 8499 fi~ 8500 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname $wl--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib' 8501 else 8502 ld_shlibs=no 8503 fi 8504 ;; 8505 8506 haiku*) 8507 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8508 link_all_deplibs=yes 8509 ;; 8510 8511 os2*) 8512 hardcode_libdir_flag_spec='-L$libdir' 8513 hardcode_minus_L=yes 8514 allow_undefined_flag=unsupported 8515 shrext_cmds=.dll 8516 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8517 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8518 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8519 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8520 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 8521 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8522 emximp -o $lib $output_objdir/$libname.def' 8523 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 8524 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 8525 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 8526 $ECHO EXPORTS >> $output_objdir/$libname.def~ 8527 prefix_cmds="$SED"~ 8528 if test EXPORTS = "`$SED 1q $export_symbols`"; then 8529 prefix_cmds="$prefix_cmds -e 1d"; 8530 fi~ 8531 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 8532 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 8533 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 8534 emximp -o $lib $output_objdir/$libname.def' 8535 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 8536 enable_shared_with_static_runtimes=yes 8537 ;; 8538 8539 interix[3-9]*) 8540 hardcode_direct=no 8541 hardcode_shlibpath_var=no 8542 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 8543 export_dynamic_flag_spec='$wl-E' 8544 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 8545 # Instead, shared libraries are loaded at an image base (0x10000000 by 8546 # default) and relocated if they conflict, which is a slow very memory 8547 # consuming and fragmenting process. To avoid this, we pick a random, 8548 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 8549 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 8550 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-h,$soname $wl--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib' 8551 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' 8552 ;; 8553 8554 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu) 8555 tmp_diet=no 8556 if test linux-dietlibc = "$host_os"; then 8557 case $cc_basename in 8558 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn) 8559 esac 8560 fi 8561 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \ 8562 && test no = "$tmp_diet" 8563 then 8564 tmp_addflag=' $pic_flag' 8565 tmp_sharedflag='-shared' 8566 case $cc_basename,$host_cpu in 8567 pgcc*) # Portland Group C compiler 8568 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' 8569 tmp_addflag=' $pic_flag' 8570 ;; 8571 pgf77* | pgf90* | pgf95* | pgfortran*) 8572 # Portland Group f77 and f90 compilers 8573 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' 8574 tmp_addflag=' $pic_flag -Mnomain' ;; 8575 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64 8576 tmp_addflag=' -i_dynamic' ;; 8577 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64 8578 tmp_addflag=' -i_dynamic -nofor_main' ;; 8579 ifc* | ifort*) # Intel Fortran compiler 8580 tmp_addflag=' -nofor_main' ;; 8581 lf95*) # Lahey Fortran 8.1 8582 whole_archive_flag_spec= 8583 tmp_sharedflag='--shared' ;; 8584 nagfor*) # NAGFOR 5.3 8585 tmp_sharedflag='-Wl,-shared' ;; 8586 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below) 8587 tmp_sharedflag='-qmkshrobj' 8588 tmp_addflag= ;; 8589 nvcc*) # Cuda Compiler Driver 2.2 8590 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' 8591 compiler_needs_object=yes 8592 ;; 8593 esac 8594 case `$CC -V 2>&1 | sed 5q` in 8595 *Sun\ C*) # Sun C 5.9 8596 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' 8597 compiler_needs_object=yes 8598 tmp_sharedflag='-G' ;; 8599 *Sun\ F*) # Sun Fortran 8.3 8600 tmp_sharedflag='-G' ;; 8601 esac 8602 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8603 8604 if test yes = "$supports_anon_versioning"; then 8605 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8606 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8607 echo "local: *; };" >> $output_objdir/$libname.ver~ 8608 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 8609 fi 8610 8611 case $cc_basename in 8612 tcc*) 8613 export_dynamic_flag_spec='-rdynamic' 8614 ;; 8615 xlf* | bgf* | bgxlf* | mpixlf*) 8616 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself 8617 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive' 8618 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8619 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib' 8620 if test yes = "$supports_anon_versioning"; then 8621 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~ 8622 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 8623 echo "local: *; };" >> $output_objdir/$libname.ver~ 8624 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib' 8625 fi 8626 ;; 8627 esac 8628 else 8629 ld_shlibs=no 8630 fi 8631 ;; 8632 8633 netbsd*) 8634 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 8635 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib' 8636 wlarc= 8637 else 8638 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8639 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8640 fi 8641 ;; 8642 8643 solaris*) 8644 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then 8645 ld_shlibs=no 8646 cat <<_LT_EOF 1>&2 8647 8648*** Warning: The releases 2.8.* of the GNU linker cannot reliably 8649*** create shared libraries on Solaris systems. Therefore, libtool 8650*** is disabling shared libraries support. We urge you to upgrade GNU 8651*** binutils to release 2.9.1 or newer. Another option is to modify 8652*** your PATH or compiler configuration so that the native linker is 8653*** used, and then restart. 8654 8655_LT_EOF 8656 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8657 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8658 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8659 else 8660 ld_shlibs=no 8661 fi 8662 ;; 8663 8664 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*) 8665 case `$LD -v 2>&1` in 8666 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*) 8667 ld_shlibs=no 8668 cat <<_LT_EOF 1>&2 8669 8670*** Warning: Releases of the GNU linker prior to 2.16.91.0.3 cannot 8671*** reliably create shared libraries on SCO systems. Therefore, libtool 8672*** is disabling shared libraries support. We urge you to upgrade GNU 8673*** binutils to release 2.16.91.0.3 or newer. Another option is to modify 8674*** your PATH or compiler configuration so that the native linker is 8675*** used, and then restart. 8676 8677_LT_EOF 8678 ;; 8679 *) 8680 # For security reasons, it is highly recommended that you always 8681 # use absolute paths for naming shared libraries, and exclude the 8682 # DT_RUNPATH tag from executables and libraries. But doing so 8683 # requires that you compile everything twice, which is a pain. 8684 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8685 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 8686 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8687 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8688 else 8689 ld_shlibs=no 8690 fi 8691 ;; 8692 esac 8693 ;; 8694 8695 sunos4*) 8696 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags' 8697 wlarc= 8698 hardcode_direct=yes 8699 hardcode_shlibpath_var=no 8700 ;; 8701 8702 *) 8703 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 8704 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 8705 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-retain-symbols-file $wl$export_symbols -o $lib' 8706 else 8707 ld_shlibs=no 8708 fi 8709 ;; 8710 esac 8711 8712 if test no = "$ld_shlibs"; then 8713 runpath_var= 8714 hardcode_libdir_flag_spec= 8715 export_dynamic_flag_spec= 8716 whole_archive_flag_spec= 8717 fi 8718 else 8719 # PORTME fill in a description of your system's linker (not GNU ld) 8720 case $host_os in 8721 aix3*) 8722 allow_undefined_flag=unsupported 8723 always_export_symbols=yes 8724 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' 8725 # Note: this linker hardcodes the directories in LIBPATH if there 8726 # are no directories specified by -L. 8727 hardcode_minus_L=yes 8728 if test yes = "$GCC" && test -z "$lt_prog_compiler_static"; then 8729 # Neither direct hardcoding nor static linking is supported with a 8730 # broken collect2. 8731 hardcode_direct=unsupported 8732 fi 8733 ;; 8734 8735 aix[4-9]*) 8736 if test ia64 = "$host_cpu"; then 8737 # On IA64, the linker does run time linking by default, so we don't 8738 # have to do anything special. 8739 aix_use_runtimelinking=no 8740 exp_sym_flag='-Bexport' 8741 no_entry_flag= 8742 else 8743 # If we're using GNU nm, then we don't want the "-C" option. 8744 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 8745 # Without the "-l" option, or with the "-B" option, AIX nm treats 8746 # weak defined symbols like other global defined symbols, whereas 8747 # GNU nm marks them as "W". 8748 # While the 'weak' keyword is ignored in the Export File, we need 8749 # it in the Import File for the 'aix-soname' feature, so we have 8750 # to replace the "-B" option with "-P" for AIX nm. 8751 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 8752 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' 8753 else 8754 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' 8755 fi 8756 aix_use_runtimelinking=no 8757 8758 # Test if we are trying to use run time linking or normal 8759 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 8760 # have runtime linking enabled, and use it for executables. 8761 # For shared libraries, we enable/disable runtime linking 8762 # depending on the kind of the shared library created - 8763 # when "with_aix_soname,aix_use_runtimelinking" is: 8764 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 8765 # "aix,yes" lib.so shared, rtl:yes, for executables 8766 # lib.a static archive 8767 # "both,no" lib.so.V(shr.o) shared, rtl:yes 8768 # lib.a(lib.so.V) shared, rtl:no, for executables 8769 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 8770 # lib.a(lib.so.V) shared, rtl:no 8771 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 8772 # lib.a static archive 8773 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 8774 for ld_flag in $LDFLAGS; do 8775 if (test x-brtl = "x$ld_flag" || test x-Wl,-brtl = "x$ld_flag"); then 8776 aix_use_runtimelinking=yes 8777 break 8778 fi 8779 done 8780 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 8781 # With aix-soname=svr4, we create the lib.so.V shared archives only, 8782 # so we don't have lib.a shared libs to link our executables. 8783 # We have to force runtime linking in this case. 8784 aix_use_runtimelinking=yes 8785 LDFLAGS="$LDFLAGS -Wl,-brtl" 8786 fi 8787 ;; 8788 esac 8789 8790 exp_sym_flag='-bexport' 8791 no_entry_flag='-bnoentry' 8792 fi 8793 8794 # When large executables or shared objects are built, AIX ld can 8795 # have problems creating the table of contents. If linking a library 8796 # or program results in "error TOC overflow" add -mminimal-toc to 8797 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 8798 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 8799 8800 archive_cmds='' 8801 hardcode_direct=yes 8802 hardcode_direct_absolute=yes 8803 hardcode_libdir_separator=':' 8804 link_all_deplibs=yes 8805 file_list_spec='$wl-f,' 8806 case $with_aix_soname,$aix_use_runtimelinking in 8807 aix,*) ;; # traditional, no import file 8808 svr4,* | *,yes) # use import file 8809 # The Import File defines what to hardcode. 8810 hardcode_direct=no 8811 hardcode_direct_absolute=no 8812 ;; 8813 esac 8814 8815 if test yes = "$GCC"; then 8816 case $host_os in aix4.[012]|aix4.[012].*) 8817 # We only want to do this on AIX 4.2 and lower, the check 8818 # below for broken collect2 doesn't work under 4.3+ 8819 collect2name=`$CC -print-prog-name=collect2` 8820 if test -f "$collect2name" && 8821 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 8822 then 8823 # We have reworked collect2 8824 : 8825 else 8826 # We have old collect2 8827 hardcode_direct=unsupported 8828 # It fails to find uninstalled libraries when the uninstalled 8829 # path is not listed in the libpath. Setting hardcode_minus_L 8830 # to unsupported forces relinking 8831 hardcode_minus_L=yes 8832 hardcode_libdir_flag_spec='-L$libdir' 8833 hardcode_libdir_separator= 8834 fi 8835 ;; 8836 esac 8837 shared_flag='-shared' 8838 if test yes = "$aix_use_runtimelinking"; then 8839 shared_flag="$shared_flag "'$wl-G' 8840 fi 8841 # Need to ensure runtime linking is disabled for the traditional 8842 # shared library, or the linker may eventually find shared libraries 8843 # /with/ Import File - we do not want to mix them. 8844 shared_flag_aix='-shared' 8845 shared_flag_svr4='-shared $wl-G' 8846 else 8847 # not using gcc 8848 if test ia64 = "$host_cpu"; then 8849 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 8850 # chokes on -Wl,-G. The following line is correct: 8851 shared_flag='-G' 8852 else 8853 if test yes = "$aix_use_runtimelinking"; then 8854 shared_flag='$wl-G' 8855 else 8856 shared_flag='$wl-bM:SRE' 8857 fi 8858 shared_flag_aix='$wl-bM:SRE' 8859 shared_flag_svr4='$wl-G' 8860 fi 8861 fi 8862 8863 export_dynamic_flag_spec='$wl-bexpall' 8864 # It seems that -bexpall does not export symbols beginning with 8865 # underscore (_), so it is better to generate a list of symbols to export. 8866 always_export_symbols=yes 8867 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 8868 # Warning - without using the other runtime loading flags (-brtl), 8869 # -berok will link without error, but may produce a broken library. 8870 allow_undefined_flag='-berok' 8871 # Determine the default libpath from the value encoded in an 8872 # empty executable. 8873 if test set = "${lt_cv_aix_libpath+set}"; then 8874 aix_libpath=$lt_cv_aix_libpath 8875else 8876 if ${lt_cv_aix_libpath_+:} false; then : 8877 $as_echo_n "(cached) " >&6 8878else 8879 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8880/* end confdefs.h. */ 8881 8882int 8883main () 8884{ 8885 8886 ; 8887 return 0; 8888} 8889_ACEOF 8890if ac_fn_c_try_link "$LINENO"; then : 8891 8892 lt_aix_libpath_sed=' 8893 /Import File Strings/,/^$/ { 8894 /^0/ { 8895 s/^0 *\([^ ]*\) *$/\1/ 8896 p 8897 } 8898 }' 8899 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8900 # Check for a 64-bit object if we didn't find anything. 8901 if test -z "$lt_cv_aix_libpath_"; then 8902 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8903 fi 8904fi 8905rm -f core conftest.err conftest.$ac_objext \ 8906 conftest$ac_exeext conftest.$ac_ext 8907 if test -z "$lt_cv_aix_libpath_"; then 8908 lt_cv_aix_libpath_=/usr/lib:/lib 8909 fi 8910 8911fi 8912 8913 aix_libpath=$lt_cv_aix_libpath_ 8914fi 8915 8916 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 8917 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 8918 else 8919 if test ia64 = "$host_cpu"; then 8920 hardcode_libdir_flag_spec='$wl-R $libdir:/usr/lib:/lib' 8921 allow_undefined_flag="-z nodefs" 8922 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" 8923 else 8924 # Determine the default libpath from the value encoded in an 8925 # empty executable. 8926 if test set = "${lt_cv_aix_libpath+set}"; then 8927 aix_libpath=$lt_cv_aix_libpath 8928else 8929 if ${lt_cv_aix_libpath_+:} false; then : 8930 $as_echo_n "(cached) " >&6 8931else 8932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 8933/* end confdefs.h. */ 8934 8935int 8936main () 8937{ 8938 8939 ; 8940 return 0; 8941} 8942_ACEOF 8943if ac_fn_c_try_link "$LINENO"; then : 8944 8945 lt_aix_libpath_sed=' 8946 /Import File Strings/,/^$/ { 8947 /^0/ { 8948 s/^0 *\([^ ]*\) *$/\1/ 8949 p 8950 } 8951 }' 8952 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8953 # Check for a 64-bit object if we didn't find anything. 8954 if test -z "$lt_cv_aix_libpath_"; then 8955 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 8956 fi 8957fi 8958rm -f core conftest.err conftest.$ac_objext \ 8959 conftest$ac_exeext conftest.$ac_ext 8960 if test -z "$lt_cv_aix_libpath_"; then 8961 lt_cv_aix_libpath_=/usr/lib:/lib 8962 fi 8963 8964fi 8965 8966 aix_libpath=$lt_cv_aix_libpath_ 8967fi 8968 8969 hardcode_libdir_flag_spec='$wl-blibpath:$libdir:'"$aix_libpath" 8970 # Warning - without using the other run time loading flags, 8971 # -berok will link without error, but may produce a broken library. 8972 no_undefined_flag=' $wl-bernotok' 8973 allow_undefined_flag=' $wl-berok' 8974 if test yes = "$with_gnu_ld"; then 8975 # We only use this code for GNU lds that support --whole-archive. 8976 whole_archive_flag_spec='$wl--whole-archive$convenience $wl--no-whole-archive' 8977 else 8978 # Exported symbols can be pulled into shared objects from archives 8979 whole_archive_flag_spec='$convenience' 8980 fi 8981 archive_cmds_need_lc=yes 8982 archive_expsym_cmds='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 8983 # -brtl affects multiple linker settings, -berok does not and is overridden later 8984 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 8985 if test svr4 != "$with_aix_soname"; then 8986 # This is similar to how AIX traditionally builds its shared libraries. 8987 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' 8988 fi 8989 if test aix != "$with_aix_soname"; then 8990 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' 8991 else 8992 # used by -dlpreopen to get the symbols 8993 archive_expsym_cmds="$archive_expsym_cmds"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 8994 fi 8995 archive_expsym_cmds="$archive_expsym_cmds"'~$RM -r $output_objdir/$realname.d' 8996 fi 8997 fi 8998 ;; 8999 9000 amigaos*) 9001 case $host_cpu in 9002 powerpc) 9003 # see comment about AmigaOS4 .so support 9004 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 9005 archive_expsym_cmds='' 9006 ;; 9007 m68k) 9008 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)' 9009 hardcode_libdir_flag_spec='-L$libdir' 9010 hardcode_minus_L=yes 9011 ;; 9012 esac 9013 ;; 9014 9015 bsdi[45]*) 9016 export_dynamic_flag_spec=-rdynamic 9017 ;; 9018 9019 cygwin* | mingw* | pw32* | cegcc*) 9020 # When not using gcc, we currently assume that we are using 9021 # Microsoft Visual C++. 9022 # hardcode_libdir_flag_spec is actually meaningless, as there is 9023 # no search path for DLLs. 9024 case $cc_basename in 9025 cl*) 9026 # Native MSVC 9027 hardcode_libdir_flag_spec=' ' 9028 allow_undefined_flag=unsupported 9029 always_export_symbols=yes 9030 file_list_spec='@' 9031 # Tell ltmain to make .lib files, not .a files. 9032 libext=lib 9033 # Tell ltmain to make .dll files, not .so files. 9034 shrext_cmds=.dll 9035 # FIXME: Setting linknames here is a bad hack. 9036 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 9037 archive_expsym_cmds='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 9038 cp "$export_symbols" "$output_objdir/$soname.def"; 9039 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 9040 else 9041 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 9042 fi~ 9043 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 9044 linknames=' 9045 # The linker will not automatically build a static lib if we build a DLL. 9046 # _LT_TAGVAR(old_archive_from_new_cmds, )='true' 9047 enable_shared_with_static_runtimes=yes 9048 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 9049 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols' 9050 # Don't use ranlib 9051 old_postinstall_cmds='chmod 644 $oldlib' 9052 postlink_cmds='lt_outputfile="@OUTPUT@"~ 9053 lt_tool_outputfile="@TOOL_OUTPUT@"~ 9054 case $lt_outputfile in 9055 *.exe|*.EXE) ;; 9056 *) 9057 lt_outputfile=$lt_outputfile.exe 9058 lt_tool_outputfile=$lt_tool_outputfile.exe 9059 ;; 9060 esac~ 9061 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 9062 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 9063 $RM "$lt_outputfile.manifest"; 9064 fi' 9065 ;; 9066 *) 9067 # Assume MSVC wrapper 9068 hardcode_libdir_flag_spec=' ' 9069 allow_undefined_flag=unsupported 9070 # Tell ltmain to make .lib files, not .a files. 9071 libext=lib 9072 # Tell ltmain to make .dll files, not .so files. 9073 shrext_cmds=.dll 9074 # FIXME: Setting linknames here is a bad hack. 9075 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames=' 9076 # The linker will automatically build a .lib file if we build a DLL. 9077 old_archive_from_new_cmds='true' 9078 # FIXME: Should let the user specify the lib program. 9079 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs' 9080 enable_shared_with_static_runtimes=yes 9081 ;; 9082 esac 9083 ;; 9084 9085 darwin* | rhapsody*) 9086 9087 9088 archive_cmds_need_lc=no 9089 hardcode_direct=no 9090 hardcode_automatic=yes 9091 hardcode_shlibpath_var=unsupported 9092 if test yes = "$lt_cv_ld_force_load"; then 9093 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\"`' 9094 9095 else 9096 whole_archive_flag_spec='' 9097 fi 9098 link_all_deplibs=yes 9099 allow_undefined_flag=$_lt_dar_allow_undefined 9100 case $cc_basename in 9101 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 9102 *) _lt_dar_can_shared=$GCC ;; 9103 esac 9104 if test yes = "$_lt_dar_can_shared"; then 9105 output_verbose_link_cmd=func_echo_all 9106 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod$_lt_dsymutil" 9107 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 9108 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" 9109 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" 9110 9111 else 9112 ld_shlibs=no 9113 fi 9114 9115 ;; 9116 9117 dgux*) 9118 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9119 hardcode_libdir_flag_spec='-L$libdir' 9120 hardcode_shlibpath_var=no 9121 ;; 9122 9123 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor 9124 # support. Future versions do this automatically, but an explicit c++rt0.o 9125 # does not break anything, and helps significantly (at the cost of a little 9126 # extra space). 9127 freebsd2.2*) 9128 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o' 9129 hardcode_libdir_flag_spec='-R$libdir' 9130 hardcode_direct=yes 9131 hardcode_shlibpath_var=no 9132 ;; 9133 9134 # Unfortunately, older versions of FreeBSD 2 do not have this feature. 9135 freebsd2.*) 9136 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' 9137 hardcode_direct=yes 9138 hardcode_minus_L=yes 9139 hardcode_shlibpath_var=no 9140 ;; 9141 9142 # FreeBSD 3 and greater uses gcc -shared to do shared libraries. 9143 freebsd* | dragonfly*) 9144 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9145 hardcode_libdir_flag_spec='-R$libdir' 9146 hardcode_direct=yes 9147 hardcode_shlibpath_var=no 9148 ;; 9149 9150 hpux9*) 9151 if test yes = "$GCC"; then 9152 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' 9153 else 9154 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' 9155 fi 9156 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9157 hardcode_libdir_separator=: 9158 hardcode_direct=yes 9159 9160 # hardcode_minus_L: Not really in the search PATH, 9161 # but as the default location of the library. 9162 hardcode_minus_L=yes 9163 export_dynamic_flag_spec='$wl-E' 9164 ;; 9165 9166 hpux10*) 9167 if test yes,no = "$GCC,$with_gnu_ld"; then 9168 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9169 else 9170 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9171 fi 9172 if test no = "$with_gnu_ld"; then 9173 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9174 hardcode_libdir_separator=: 9175 hardcode_direct=yes 9176 hardcode_direct_absolute=yes 9177 export_dynamic_flag_spec='$wl-E' 9178 # hardcode_minus_L: Not really in the search PATH, 9179 # but as the default location of the library. 9180 hardcode_minus_L=yes 9181 fi 9182 ;; 9183 9184 hpux11*) 9185 if test yes,no = "$GCC,$with_gnu_ld"; then 9186 case $host_cpu in 9187 hppa*64*) 9188 archive_cmds='$CC -shared $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9189 ;; 9190 ia64*) 9191 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9192 ;; 9193 *) 9194 archive_cmds='$CC -shared $pic_flag $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9195 ;; 9196 esac 9197 else 9198 case $host_cpu in 9199 hppa*64*) 9200 archive_cmds='$CC -b $wl+h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9201 ;; 9202 ia64*) 9203 archive_cmds='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags' 9204 ;; 9205 *) 9206 9207 # Older versions of the 11.00 compiler do not understand -b yet 9208 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does) 9209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5 9210$as_echo_n "checking if $CC understands -b... " >&6; } 9211if ${lt_cv_prog_compiler__b+:} false; then : 9212 $as_echo_n "(cached) " >&6 9213else 9214 lt_cv_prog_compiler__b=no 9215 save_LDFLAGS=$LDFLAGS 9216 LDFLAGS="$LDFLAGS -b" 9217 echo "$lt_simple_link_test_code" > conftest.$ac_ext 9218 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 9219 # The linker can only warn and ignore the option if not recognized 9220 # So say no if there are warnings 9221 if test -s conftest.err; then 9222 # Append any errors to the config.log. 9223 cat conftest.err 1>&5 9224 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 9225 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 9226 if diff conftest.exp conftest.er2 >/dev/null; then 9227 lt_cv_prog_compiler__b=yes 9228 fi 9229 else 9230 lt_cv_prog_compiler__b=yes 9231 fi 9232 fi 9233 $RM -r conftest* 9234 LDFLAGS=$save_LDFLAGS 9235 9236fi 9237{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5 9238$as_echo "$lt_cv_prog_compiler__b" >&6; } 9239 9240if test yes = "$lt_cv_prog_compiler__b"; then 9241 archive_cmds='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $libobjs $deplibs $compiler_flags' 9242else 9243 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags' 9244fi 9245 9246 ;; 9247 esac 9248 fi 9249 if test no = "$with_gnu_ld"; then 9250 hardcode_libdir_flag_spec='$wl+b $wl$libdir' 9251 hardcode_libdir_separator=: 9252 9253 case $host_cpu in 9254 hppa*64*|ia64*) 9255 hardcode_direct=no 9256 hardcode_shlibpath_var=no 9257 ;; 9258 *) 9259 hardcode_direct=yes 9260 hardcode_direct_absolute=yes 9261 export_dynamic_flag_spec='$wl-E' 9262 9263 # hardcode_minus_L: Not really in the search PATH, 9264 # but as the default location of the library. 9265 hardcode_minus_L=yes 9266 ;; 9267 esac 9268 fi 9269 ;; 9270 9271 irix5* | irix6* | nonstopux*) 9272 if test yes = "$GCC"; then 9273 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' 9274 # Try to use the -exported_symbol ld option, if it does not 9275 # work, assume that -exports_file does not work either and 9276 # implicitly export all symbols. 9277 # This should be the same for all languages, so no per-tag cache variable. 9278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5 9279$as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; } 9280if ${lt_cv_irix_exported_symbol+:} false; then : 9281 $as_echo_n "(cached) " >&6 9282else 9283 save_LDFLAGS=$LDFLAGS 9284 LDFLAGS="$LDFLAGS -shared $wl-exported_symbol ${wl}foo $wl-update_registry $wl/dev/null" 9285 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 9286/* end confdefs.h. */ 9287int foo (void) { return 0; } 9288_ACEOF 9289if ac_fn_c_try_link "$LINENO"; then : 9290 lt_cv_irix_exported_symbol=yes 9291else 9292 lt_cv_irix_exported_symbol=no 9293fi 9294rm -f core conftest.err conftest.$ac_objext \ 9295 conftest$ac_exeext conftest.$ac_ext 9296 LDFLAGS=$save_LDFLAGS 9297fi 9298{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5 9299$as_echo "$lt_cv_irix_exported_symbol" >&6; } 9300 if test yes = "$lt_cv_irix_exported_symbol"; then 9301 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' 9302 fi 9303 else 9304 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' 9305 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' 9306 fi 9307 archive_cmds_need_lc='no' 9308 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9309 hardcode_libdir_separator=: 9310 inherit_rpath=yes 9311 link_all_deplibs=yes 9312 ;; 9313 9314 linux*) 9315 case $cc_basename in 9316 tcc*) 9317 # Fabrice Bellard et al's Tiny C Compiler 9318 ld_shlibs=yes 9319 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9320 ;; 9321 esac 9322 ;; 9323 9324 netbsd*) 9325 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 9326 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out 9327 else 9328 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF 9329 fi 9330 hardcode_libdir_flag_spec='-R$libdir' 9331 hardcode_direct=yes 9332 hardcode_shlibpath_var=no 9333 ;; 9334 9335 newsos6) 9336 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9337 hardcode_direct=yes 9338 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9339 hardcode_libdir_separator=: 9340 hardcode_shlibpath_var=no 9341 ;; 9342 9343 *nto* | *qnx*) 9344 ;; 9345 9346 openbsd* | bitrig*) 9347 if test -f /usr/libexec/ld.so; then 9348 hardcode_direct=yes 9349 hardcode_shlibpath_var=no 9350 hardcode_direct_absolute=yes 9351 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 9352 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9353 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags $wl-retain-symbols-file,$export_symbols' 9354 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9355 export_dynamic_flag_spec='$wl-E' 9356 else 9357 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags' 9358 hardcode_libdir_flag_spec='$wl-rpath,$libdir' 9359 fi 9360 else 9361 ld_shlibs=no 9362 fi 9363 ;; 9364 9365 os2*) 9366 hardcode_libdir_flag_spec='-L$libdir' 9367 hardcode_minus_L=yes 9368 allow_undefined_flag=unsupported 9369 shrext_cmds=.dll 9370 archive_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9371 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9372 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9373 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9374 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 9375 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9376 emximp -o $lib $output_objdir/$libname.def' 9377 archive_expsym_cmds='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 9378 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 9379 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 9380 $ECHO EXPORTS >> $output_objdir/$libname.def~ 9381 prefix_cmds="$SED"~ 9382 if test EXPORTS = "`$SED 1q $export_symbols`"; then 9383 prefix_cmds="$prefix_cmds -e 1d"; 9384 fi~ 9385 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 9386 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 9387 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 9388 emximp -o $lib $output_objdir/$libname.def' 9389 old_archive_From_new_cmds='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 9390 enable_shared_with_static_runtimes=yes 9391 ;; 9392 9393 osf3*) 9394 if test yes = "$GCC"; then 9395 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9396 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' 9397 else 9398 allow_undefined_flag=' -expect_unresolved \*' 9399 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' 9400 fi 9401 archive_cmds_need_lc='no' 9402 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9403 hardcode_libdir_separator=: 9404 ;; 9405 9406 osf4* | osf5*) # as osf3* with the addition of -msym flag 9407 if test yes = "$GCC"; then 9408 allow_undefined_flag=' $wl-expect_unresolved $wl\*' 9409 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' 9410 hardcode_libdir_flag_spec='$wl-rpath $wl$libdir' 9411 else 9412 allow_undefined_flag=' -expect_unresolved \*' 9413 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' 9414 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~ 9415 $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' 9416 9417 # Both c and cxx compiler support -rpath directly 9418 hardcode_libdir_flag_spec='-rpath $libdir' 9419 fi 9420 archive_cmds_need_lc='no' 9421 hardcode_libdir_separator=: 9422 ;; 9423 9424 solaris*) 9425 no_undefined_flag=' -z defs' 9426 if test yes = "$GCC"; then 9427 wlarc='$wl' 9428 archive_cmds='$CC -shared $pic_flag $wl-z ${wl}text $wl-h $wl$soname -o $lib $libobjs $deplibs $compiler_flags' 9429 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9430 $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' 9431 else 9432 case `$CC -V 2>&1` in 9433 *"Compilers 5.0"*) 9434 wlarc='' 9435 archive_cmds='$LD -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $linker_flags' 9436 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9437 $LD -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp' 9438 ;; 9439 *) 9440 wlarc='$wl' 9441 archive_cmds='$CC -G$allow_undefined_flag -h $soname -o $lib $libobjs $deplibs $compiler_flags' 9442 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 9443 $CC -G$allow_undefined_flag -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp' 9444 ;; 9445 esac 9446 fi 9447 hardcode_libdir_flag_spec='-R$libdir' 9448 hardcode_shlibpath_var=no 9449 case $host_os in 9450 solaris2.[0-5] | solaris2.[0-5].*) ;; 9451 *) 9452 # The compiler driver will combine and reorder linker options, 9453 # but understands '-z linker_flag'. GCC discards it without '$wl', 9454 # but is careful enough not to reorder. 9455 # Supported since Solaris 2.6 (maybe 2.5.1?) 9456 if test yes = "$GCC"; then 9457 whole_archive_flag_spec='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 9458 else 9459 whole_archive_flag_spec='-z allextract$convenience -z defaultextract' 9460 fi 9461 ;; 9462 esac 9463 link_all_deplibs=yes 9464 ;; 9465 9466 sunos4*) 9467 if test sequent = "$host_vendor"; then 9468 # Use $CC to link under sequent, because it throws in some extra .o 9469 # files that make .init and .fini sections work. 9470 archive_cmds='$CC -G $wl-h $soname -o $lib $libobjs $deplibs $compiler_flags' 9471 else 9472 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags' 9473 fi 9474 hardcode_libdir_flag_spec='-L$libdir' 9475 hardcode_direct=yes 9476 hardcode_minus_L=yes 9477 hardcode_shlibpath_var=no 9478 ;; 9479 9480 sysv4) 9481 case $host_vendor in 9482 sni) 9483 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9484 hardcode_direct=yes # is this really true??? 9485 ;; 9486 siemens) 9487 ## LD is ld it makes a PLAMLIB 9488 ## CC just makes a GrossModule. 9489 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags' 9490 reload_cmds='$CC -r -o $output$reload_objs' 9491 hardcode_direct=no 9492 ;; 9493 motorola) 9494 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9495 hardcode_direct=no #Motorola manual says yes, but my tests say they lie 9496 ;; 9497 esac 9498 runpath_var='LD_RUN_PATH' 9499 hardcode_shlibpath_var=no 9500 ;; 9501 9502 sysv4.3*) 9503 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9504 hardcode_shlibpath_var=no 9505 export_dynamic_flag_spec='-Bexport' 9506 ;; 9507 9508 sysv4*MP*) 9509 if test -d /usr/nec; then 9510 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9511 hardcode_shlibpath_var=no 9512 runpath_var=LD_RUN_PATH 9513 hardcode_runpath_var=yes 9514 ld_shlibs=yes 9515 fi 9516 ;; 9517 9518 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 9519 no_undefined_flag='$wl-z,text' 9520 archive_cmds_need_lc=no 9521 hardcode_shlibpath_var=no 9522 runpath_var='LD_RUN_PATH' 9523 9524 if test yes = "$GCC"; then 9525 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9526 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9527 else 9528 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9529 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9530 fi 9531 ;; 9532 9533 sysv5* | sco3.2v5* | sco5v6*) 9534 # Note: We CANNOT use -z defs as we might desire, because we do not 9535 # link with -lc, and that would cause any symbols used from libc to 9536 # always be unresolved, which means just about no library would 9537 # ever link correctly. If we're not using GNU ld we use -z text 9538 # though, which does catch some bad symbols but isn't as heavy-handed 9539 # as -z defs. 9540 no_undefined_flag='$wl-z,text' 9541 allow_undefined_flag='$wl-z,nodefs' 9542 archive_cmds_need_lc=no 9543 hardcode_shlibpath_var=no 9544 hardcode_libdir_flag_spec='$wl-R,$libdir' 9545 hardcode_libdir_separator=':' 9546 link_all_deplibs=yes 9547 export_dynamic_flag_spec='$wl-Bexport' 9548 runpath_var='LD_RUN_PATH' 9549 9550 if test yes = "$GCC"; then 9551 archive_cmds='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9552 archive_expsym_cmds='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9553 else 9554 archive_cmds='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9555 archive_expsym_cmds='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 9556 fi 9557 ;; 9558 9559 uts4*) 9560 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags' 9561 hardcode_libdir_flag_spec='-L$libdir' 9562 hardcode_shlibpath_var=no 9563 ;; 9564 9565 *) 9566 ld_shlibs=no 9567 ;; 9568 esac 9569 9570 if test sni = "$host_vendor"; then 9571 case $host in 9572 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*) 9573 export_dynamic_flag_spec='$wl-Blargedynsym' 9574 ;; 9575 esac 9576 fi 9577 fi 9578 9579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5 9580$as_echo "$ld_shlibs" >&6; } 9581test no = "$ld_shlibs" && can_build_shared=no 9582 9583with_gnu_ld=$with_gnu_ld 9584 9585 9586 9587 9588 9589 9590 9591 9592 9593 9594 9595 9596 9597 9598 9599# 9600# Do we need to explicitly link libc? 9601# 9602case "x$archive_cmds_need_lc" in 9603x|xyes) 9604 # Assume -lc should be added 9605 archive_cmds_need_lc=yes 9606 9607 if test yes,yes = "$GCC,$enable_shared"; then 9608 case $archive_cmds in 9609 *'~'*) 9610 # FIXME: we may have to deal with multi-command sequences. 9611 ;; 9612 '$CC '*) 9613 # Test whether the compiler implicitly links with -lc since on some 9614 # systems, -lgcc has to come before -lc. If gcc already passes -lc 9615 # to ld, don't add -lc before -lgcc. 9616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 9617$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 9618if ${lt_cv_archive_cmds_need_lc+:} false; then : 9619 $as_echo_n "(cached) " >&6 9620else 9621 $RM conftest* 9622 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 9623 9624 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 9625 (eval $ac_compile) 2>&5 9626 ac_status=$? 9627 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9628 test $ac_status = 0; } 2>conftest.err; then 9629 soname=conftest 9630 lib=conftest 9631 libobjs=conftest.$ac_objext 9632 deplibs= 9633 wl=$lt_prog_compiler_wl 9634 pic_flag=$lt_prog_compiler_pic 9635 compiler_flags=-v 9636 linker_flags=-v 9637 verstring= 9638 output_objdir=. 9639 libname=conftest 9640 lt_save_allow_undefined_flag=$allow_undefined_flag 9641 allow_undefined_flag= 9642 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 9643 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 9644 ac_status=$? 9645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 9646 test $ac_status = 0; } 9647 then 9648 lt_cv_archive_cmds_need_lc=no 9649 else 9650 lt_cv_archive_cmds_need_lc=yes 9651 fi 9652 allow_undefined_flag=$lt_save_allow_undefined_flag 9653 else 9654 cat conftest.err 1>&5 9655 fi 9656 $RM conftest* 9657 9658fi 9659{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5 9660$as_echo "$lt_cv_archive_cmds_need_lc" >&6; } 9661 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc 9662 ;; 9663 esac 9664 fi 9665 ;; 9666esac 9667 9668 9669 9670 9671 9672 9673 9674 9675 9676 9677 9678 9679 9680 9681 9682 9683 9684 9685 9686 9687 9688 9689 9690 9691 9692 9693 9694 9695 9696 9697 9698 9699 9700 9701 9702 9703 9704 9705 9706 9707 9708 9709 9710 9711 9712 9713 9714 9715 9716 9717 9718 9719 9720 9721 9722 9723 9724 9725 9726 9727 9728 9729 9730 9731 9732 9733 9734 9735 9736 9737 9738 9739 9740 9741 9742 9743 9744 9745 9746 9747 9748 9749 9750 9751 9752 9753 9754 9755 9756 9757 9758 9759 9760 9761 9762 9763 9764 9765 9766 9767 9768 9769 9770 9771 9772 9773 9774 9775 9776 9777 9778 9779 9780 9781 9782 9783 9784 9785 9786 9787 9788 9789 9790 9791 9792 9793 9794 9795 9796 9797 9798 9799 9800 9801 9802 9803 9804 9805 9806 9807 9808 9809 9810 9811 9812 9813 9814 9815 9816 9817 9818 9819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 9820$as_echo_n "checking dynamic linker characteristics... " >&6; } 9821 9822if test yes = "$GCC"; then 9823 case $host_os in 9824 darwin*) lt_awk_arg='/^libraries:/,/LR/' ;; 9825 *) lt_awk_arg='/^libraries:/' ;; 9826 esac 9827 case $host_os in 9828 mingw* | cegcc*) lt_sed_strip_eq='s|=\([A-Za-z]:\)|\1|g' ;; 9829 *) lt_sed_strip_eq='s|=/|/|g' ;; 9830 esac 9831 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq` 9832 case $lt_search_path_spec in 9833 *\;*) 9834 # if the path contains ";" then we assume it to be the separator 9835 # otherwise default to the standard path separator (i.e. ":") - it is 9836 # assumed that no part of a normal pathname contains ";" but that should 9837 # okay in the real world where ";" in dirpaths is itself problematic. 9838 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'` 9839 ;; 9840 *) 9841 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"` 9842 ;; 9843 esac 9844 # Ok, now we have the path, separated by spaces, we can step through it 9845 # and add multilib dir if necessary... 9846 lt_tmp_lt_search_path_spec= 9847 lt_multi_os_dir=/`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null` 9848 # ...but if some path component already ends with the multilib dir we assume 9849 # that all is fine and trust -print-search-dirs as is (GCC 4.2? or newer). 9850 case "$lt_multi_os_dir; $lt_search_path_spec " in 9851 "/; "* | "/.; "* | "/./; "* | *"$lt_multi_os_dir "* | *"$lt_multi_os_dir/ "*) 9852 lt_multi_os_dir= 9853 ;; 9854 esac 9855 for lt_sys_path in $lt_search_path_spec; do 9856 if test -d "$lt_sys_path$lt_multi_os_dir"; then 9857 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path$lt_multi_os_dir" 9858 elif test -n "$lt_multi_os_dir"; then 9859 test -d "$lt_sys_path" && \ 9860 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path" 9861 fi 9862 done 9863 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk ' 9864BEGIN {RS = " "; FS = "/|\n";} { 9865 lt_foo = ""; 9866 lt_count = 0; 9867 for (lt_i = NF; lt_i > 0; lt_i--) { 9868 if ($lt_i != "" && $lt_i != ".") { 9869 if ($lt_i == "..") { 9870 lt_count++; 9871 } else { 9872 if (lt_count == 0) { 9873 lt_foo = "/" $lt_i lt_foo; 9874 } else { 9875 lt_count--; 9876 } 9877 } 9878 } 9879 } 9880 if (lt_foo != "") { lt_freq[lt_foo]++; } 9881 if (lt_freq[lt_foo] == 1) { print lt_foo; } 9882}'` 9883 # AWK program above erroneously prepends '/' to C:/dos/paths 9884 # for these hosts. 9885 case $host_os in 9886 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\ 9887 $SED 's|/\([A-Za-z]:\)|\1|g'` ;; 9888 esac 9889 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP` 9890else 9891 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 9892fi 9893library_names_spec= 9894libname_spec='lib$name' 9895soname_spec= 9896shrext_cmds=.so 9897postinstall_cmds= 9898postuninstall_cmds= 9899finish_cmds= 9900finish_eval= 9901shlibpath_var= 9902shlibpath_overrides_runpath=unknown 9903version_type=none 9904dynamic_linker="$host_os ld.so" 9905sys_lib_dlsearch_path_spec="/lib /usr/lib" 9906need_lib_prefix=unknown 9907hardcode_into_libs=no 9908 9909# when you set need_version to no, make sure it does not cause -set_version 9910# flags to be left without arguments 9911need_version=unknown 9912 9913 9914 9915case $host_os in 9916aix3*) 9917 version_type=linux # correct to gnu/linux during the next big refactor 9918 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 9919 shlibpath_var=LIBPATH 9920 9921 # AIX 3 has no versioning support, so we append a major version to the name. 9922 soname_spec='$libname$release$shared_ext$major' 9923 ;; 9924 9925aix[4-9]*) 9926 version_type=linux # correct to gnu/linux during the next big refactor 9927 need_lib_prefix=no 9928 need_version=no 9929 hardcode_into_libs=yes 9930 if test ia64 = "$host_cpu"; then 9931 # AIX 5 supports IA64 9932 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 9933 shlibpath_var=LD_LIBRARY_PATH 9934 else 9935 # With GCC up to 2.95.x, collect2 would create an import file 9936 # for dependence libraries. The import file would start with 9937 # the line '#! .'. This would cause the generated library to 9938 # depend on '.', always an invalid library. This was fixed in 9939 # development snapshots of GCC prior to 3.0. 9940 case $host_os in 9941 aix4 | aix4.[01] | aix4.[01].*) 9942 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 9943 echo ' yes ' 9944 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 9945 : 9946 else 9947 can_build_shared=no 9948 fi 9949 ;; 9950 esac 9951 # Using Import Files as archive members, it is possible to support 9952 # filename-based versioning of shared library archives on AIX. While 9953 # this would work for both with and without runtime linking, it will 9954 # prevent static linking of such archives. So we do filename-based 9955 # shared library versioning with .so extension only, which is used 9956 # when both runtime linking and shared linking is enabled. 9957 # Unfortunately, runtime linking may impact performance, so we do 9958 # not want this to be the default eventually. Also, we use the 9959 # versioned .so libs for executables only if there is the -brtl 9960 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 9961 # To allow for filename-based versioning support, we need to create 9962 # libNAME.so.V as an archive file, containing: 9963 # *) an Import File, referring to the versioned filename of the 9964 # archive as well as the shared archive member, telling the 9965 # bitwidth (32 or 64) of that shared object, and providing the 9966 # list of exported symbols of that shared object, eventually 9967 # decorated with the 'weak' keyword 9968 # *) the shared object with the F_LOADONLY flag set, to really avoid 9969 # it being seen by the linker. 9970 # At run time we better use the real file rather than another symlink, 9971 # but for link time we create the symlink libNAME.so -> libNAME.so.V 9972 9973 case $with_aix_soname,$aix_use_runtimelinking in 9974 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 9975 # soname into executable. Probably we can add versioning support to 9976 # collect2, so additional links can be useful in future. 9977 aix,yes) # traditional libtool 9978 dynamic_linker='AIX unversionable lib.so' 9979 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 9980 # instead of lib<name>.a to let people know that these are not 9981 # typical AIX shared libraries. 9982 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 9983 ;; 9984 aix,no) # traditional AIX only 9985 dynamic_linker='AIX lib.a(lib.so.V)' 9986 # We preserve .a as extension for shared libraries through AIX4.2 9987 # and later when we are not doing run time linking. 9988 library_names_spec='$libname$release.a $libname.a' 9989 soname_spec='$libname$release$shared_ext$major' 9990 ;; 9991 svr4,*) # full svr4 only 9992 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 9993 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 9994 # We do not specify a path in Import Files, so LIBPATH fires. 9995 shlibpath_overrides_runpath=yes 9996 ;; 9997 *,yes) # both, prefer svr4 9998 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 9999 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 10000 # unpreferred sharedlib libNAME.a needs extra handling 10001 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"' 10002 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"' 10003 # We do not specify a path in Import Files, so LIBPATH fires. 10004 shlibpath_overrides_runpath=yes 10005 ;; 10006 *,no) # both, prefer aix 10007 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 10008 library_names_spec='$libname$release.a $libname.a' 10009 soname_spec='$libname$release$shared_ext$major' 10010 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 10011 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)' 10012 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"' 10013 ;; 10014 esac 10015 shlibpath_var=LIBPATH 10016 fi 10017 ;; 10018 10019amigaos*) 10020 case $host_cpu in 10021 powerpc) 10022 # Since July 2007 AmigaOS4 officially supports .so libraries. 10023 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 10024 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10025 ;; 10026 m68k) 10027 library_names_spec='$libname.ixlibrary $libname.a' 10028 # Create ${libname}_ixlibrary.a entries in /sys/libs. 10029 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' 10030 ;; 10031 esac 10032 ;; 10033 10034beos*) 10035 library_names_spec='$libname$shared_ext' 10036 dynamic_linker="$host_os ld.so" 10037 shlibpath_var=LIBRARY_PATH 10038 ;; 10039 10040bsdi[45]*) 10041 version_type=linux # correct to gnu/linux during the next big refactor 10042 need_version=no 10043 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10044 soname_spec='$libname$release$shared_ext$major' 10045 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 10046 shlibpath_var=LD_LIBRARY_PATH 10047 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 10048 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 10049 # the default ld.so.conf also contains /usr/contrib/lib and 10050 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 10051 # libtool to hard-code these into programs 10052 ;; 10053 10054cygwin* | mingw* | pw32* | cegcc*) 10055 version_type=windows 10056 shrext_cmds=.dll 10057 need_version=no 10058 need_lib_prefix=no 10059 10060 case $GCC,$cc_basename in 10061 yes,*) 10062 # gcc 10063 library_names_spec='$libname.dll.a' 10064 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10065 postinstall_cmds='base_file=`basename \$file`~ 10066 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10067 dldir=$destdir/`dirname \$dlpath`~ 10068 test -d \$dldir || mkdir -p \$dldir~ 10069 $install_prog $dir/$dlname \$dldir/$dlname~ 10070 chmod a+x \$dldir/$dlname~ 10071 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10072 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10073 fi' 10074 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10075 dlpath=$dir/\$dldll~ 10076 $RM \$dlpath' 10077 shlibpath_overrides_runpath=yes 10078 10079 case $host_os in 10080 cygwin*) 10081 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 10082 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10083 10084 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api" 10085 ;; 10086 mingw* | cegcc*) 10087 # MinGW DLLs use traditional 'lib' prefix 10088 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10089 ;; 10090 pw32*) 10091 # pw32 DLLs use 'pw' prefix rather than 'lib' 10092 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10093 ;; 10094 esac 10095 dynamic_linker='Win32 ld.exe' 10096 ;; 10097 10098 *,cl*) 10099 # Native MSVC 10100 libname_spec='$name' 10101 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 10102 library_names_spec='$libname.dll.lib' 10103 10104 case $build_os in 10105 mingw*) 10106 sys_lib_search_path_spec= 10107 lt_save_ifs=$IFS 10108 IFS=';' 10109 for lt_path in $LIB 10110 do 10111 IFS=$lt_save_ifs 10112 # Let DOS variable expansion print the short 8.3 style file name. 10113 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 10114 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 10115 done 10116 IFS=$lt_save_ifs 10117 # Convert to MSYS style. 10118 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 10119 ;; 10120 cygwin*) 10121 # Convert to unix form, then to dos form, then back to unix form 10122 # but this time dos style (no spaces!) so that the unix form looks 10123 # like /cygdrive/c/PROGRA~1:/cygdr... 10124 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 10125 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 10126 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10127 ;; 10128 *) 10129 sys_lib_search_path_spec=$LIB 10130 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 10131 # It is most probably a Windows format PATH. 10132 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 10133 else 10134 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 10135 fi 10136 # FIXME: find the short name or the path components, as spaces are 10137 # common. (e.g. "Program Files" -> "PROGRA~1") 10138 ;; 10139 esac 10140 10141 # DLL is installed to $(libdir)/../bin by postinstall_cmds 10142 postinstall_cmds='base_file=`basename \$file`~ 10143 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 10144 dldir=$destdir/`dirname \$dlpath`~ 10145 test -d \$dldir || mkdir -p \$dldir~ 10146 $install_prog $dir/$dlname \$dldir/$dlname' 10147 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 10148 dlpath=$dir/\$dldll~ 10149 $RM \$dlpath' 10150 shlibpath_overrides_runpath=yes 10151 dynamic_linker='Win32 link.exe' 10152 ;; 10153 10154 *) 10155 # Assume MSVC wrapper 10156 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 10157 dynamic_linker='Win32 ld.exe' 10158 ;; 10159 esac 10160 # FIXME: first we should search . and the directory the executable is in 10161 shlibpath_var=PATH 10162 ;; 10163 10164darwin* | rhapsody*) 10165 dynamic_linker="$host_os dyld" 10166 version_type=darwin 10167 need_lib_prefix=no 10168 need_version=no 10169 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 10170 soname_spec='$libname$release$major$shared_ext' 10171 shlibpath_overrides_runpath=yes 10172 shlibpath_var=DYLD_LIBRARY_PATH 10173 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 10174 10175 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib" 10176 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 10177 ;; 10178 10179dgux*) 10180 version_type=linux # correct to gnu/linux during the next big refactor 10181 need_lib_prefix=no 10182 need_version=no 10183 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10184 soname_spec='$libname$release$shared_ext$major' 10185 shlibpath_var=LD_LIBRARY_PATH 10186 ;; 10187 10188freebsd* | dragonfly*) 10189 # DragonFly does not have aout. When/if they implement a new 10190 # versioning mechanism, adjust this. 10191 if test -x /usr/bin/objformat; then 10192 objformat=`/usr/bin/objformat` 10193 else 10194 case $host_os in 10195 freebsd[23].*) objformat=aout ;; 10196 *) objformat=elf ;; 10197 esac 10198 fi 10199 version_type=freebsd-$objformat 10200 case $version_type in 10201 freebsd-elf*) 10202 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10203 soname_spec='$libname$release$shared_ext$major' 10204 need_version=no 10205 need_lib_prefix=no 10206 ;; 10207 freebsd-*) 10208 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10209 need_version=yes 10210 ;; 10211 esac 10212 shlibpath_var=LD_LIBRARY_PATH 10213 case $host_os in 10214 freebsd2.*) 10215 shlibpath_overrides_runpath=yes 10216 ;; 10217 freebsd3.[01]* | freebsdelf3.[01]*) 10218 shlibpath_overrides_runpath=yes 10219 hardcode_into_libs=yes 10220 ;; 10221 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 10222 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 10223 shlibpath_overrides_runpath=no 10224 hardcode_into_libs=yes 10225 ;; 10226 *) # from 4.6 on, and DragonFly 10227 shlibpath_overrides_runpath=yes 10228 hardcode_into_libs=yes 10229 ;; 10230 esac 10231 ;; 10232 10233haiku*) 10234 version_type=linux # correct to gnu/linux during the next big refactor 10235 need_lib_prefix=no 10236 need_version=no 10237 dynamic_linker="$host_os runtime_loader" 10238 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10239 soname_spec='$libname$release$shared_ext$major' 10240 shlibpath_var=LIBRARY_PATH 10241 shlibpath_overrides_runpath=no 10242 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 10243 hardcode_into_libs=yes 10244 ;; 10245 10246hpux9* | hpux10* | hpux11*) 10247 # Give a soname corresponding to the major version so that dld.sl refuses to 10248 # link against other versions. 10249 version_type=sunos 10250 need_lib_prefix=no 10251 need_version=no 10252 case $host_cpu in 10253 ia64*) 10254 shrext_cmds='.so' 10255 hardcode_into_libs=yes 10256 dynamic_linker="$host_os dld.so" 10257 shlibpath_var=LD_LIBRARY_PATH 10258 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10259 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10260 soname_spec='$libname$release$shared_ext$major' 10261 if test 32 = "$HPUX_IA64_MODE"; then 10262 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 10263 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 10264 else 10265 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 10266 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 10267 fi 10268 ;; 10269 hppa*64*) 10270 shrext_cmds='.sl' 10271 hardcode_into_libs=yes 10272 dynamic_linker="$host_os dld.sl" 10273 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 10274 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 10275 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10276 soname_spec='$libname$release$shared_ext$major' 10277 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 10278 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10279 ;; 10280 *) 10281 shrext_cmds='.sl' 10282 dynamic_linker="$host_os dld.sl" 10283 shlibpath_var=SHLIB_PATH 10284 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 10285 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10286 soname_spec='$libname$release$shared_ext$major' 10287 ;; 10288 esac 10289 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 10290 postinstall_cmds='chmod 555 $lib' 10291 # or fails outright, so override atomically: 10292 install_override_mode=555 10293 ;; 10294 10295interix[3-9]*) 10296 version_type=linux # correct to gnu/linux during the next big refactor 10297 need_lib_prefix=no 10298 need_version=no 10299 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10300 soname_spec='$libname$release$shared_ext$major' 10301 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 10302 shlibpath_var=LD_LIBRARY_PATH 10303 shlibpath_overrides_runpath=no 10304 hardcode_into_libs=yes 10305 ;; 10306 10307irix5* | irix6* | nonstopux*) 10308 case $host_os in 10309 nonstopux*) version_type=nonstopux ;; 10310 *) 10311 if test yes = "$lt_cv_prog_gnu_ld"; then 10312 version_type=linux # correct to gnu/linux during the next big refactor 10313 else 10314 version_type=irix 10315 fi ;; 10316 esac 10317 need_lib_prefix=no 10318 need_version=no 10319 soname_spec='$libname$release$shared_ext$major' 10320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 10321 case $host_os in 10322 irix5* | nonstopux*) 10323 libsuff= shlibsuff= 10324 ;; 10325 *) 10326 case $LD in # libtool.m4 will add one of these switches to LD 10327 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 10328 libsuff= shlibsuff= libmagic=32-bit;; 10329 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 10330 libsuff=32 shlibsuff=N32 libmagic=N32;; 10331 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 10332 libsuff=64 shlibsuff=64 libmagic=64-bit;; 10333 *) libsuff= shlibsuff= libmagic=never-match;; 10334 esac 10335 ;; 10336 esac 10337 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 10338 shlibpath_overrides_runpath=no 10339 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 10340 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 10341 hardcode_into_libs=yes 10342 ;; 10343 10344# No shared lib support for Linux oldld, aout, or coff. 10345linux*oldld* | linux*aout* | linux*coff*) 10346 dynamic_linker=no 10347 ;; 10348 10349linux*android*) 10350 version_type=none # Android doesn't support versioned libraries. 10351 need_lib_prefix=no 10352 need_version=no 10353 library_names_spec='$libname$release$shared_ext' 10354 soname_spec='$libname$release$shared_ext' 10355 finish_cmds= 10356 shlibpath_var=LD_LIBRARY_PATH 10357 shlibpath_overrides_runpath=yes 10358 10359 # This implies no fast_install, which is unacceptable. 10360 # Some rework will be needed to allow for fast_install 10361 # before this can be enabled. 10362 hardcode_into_libs=yes 10363 10364 dynamic_linker='Android linker' 10365 # Don't embed -rpath directories since the linker doesn't support them. 10366 hardcode_libdir_flag_spec='-L$libdir' 10367 ;; 10368 10369# This must be glibc/ELF. 10370linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 10371 version_type=linux # correct to gnu/linux during the next big refactor 10372 need_lib_prefix=no 10373 need_version=no 10374 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10375 soname_spec='$libname$release$shared_ext$major' 10376 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 10377 shlibpath_var=LD_LIBRARY_PATH 10378 shlibpath_overrides_runpath=no 10379 10380 # Some binutils ld are patched to set DT_RUNPATH 10381 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 10382 $as_echo_n "(cached) " >&6 10383else 10384 lt_cv_shlibpath_overrides_runpath=no 10385 save_LDFLAGS=$LDFLAGS 10386 save_libdir=$libdir 10387 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \ 10388 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\"" 10389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10390/* end confdefs.h. */ 10391 10392int 10393main () 10394{ 10395 10396 ; 10397 return 0; 10398} 10399_ACEOF 10400if ac_fn_c_try_link "$LINENO"; then : 10401 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 10402 lt_cv_shlibpath_overrides_runpath=yes 10403fi 10404fi 10405rm -f core conftest.err conftest.$ac_objext \ 10406 conftest$ac_exeext conftest.$ac_ext 10407 LDFLAGS=$save_LDFLAGS 10408 libdir=$save_libdir 10409 10410fi 10411 10412 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 10413 10414 # This implies no fast_install, which is unacceptable. 10415 # Some rework will be needed to allow for fast_install 10416 # before this can be enabled. 10417 hardcode_into_libs=yes 10418 10419 # Ideally, we could use ldconfig to report *all* directores which are 10420 # searched for libraries, however this is still not possible. Aside from not 10421 # being certain /sbin/ldconfig is available, command 10422 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 10423 # even though it is searched at run-time. Try to do the best guess by 10424 # appending ld.so.conf contents (and includes) to the search path. 10425 if test -f /etc/ld.so.conf; then 10426 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' ' '` 10427 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 10428 fi 10429 10430 # We used to test for /lib/ld.so.1 and disable shared libraries on 10431 # powerpc, because MkLinux only supported shared libraries with the 10432 # GNU dynamic linker. Since this was broken with cross compilers, 10433 # most powerpc-linux boxes support dynamic linking these days and 10434 # people can always --disable-shared, the test was removed, and we 10435 # assume the GNU/Linux dynamic linker is in use. 10436 dynamic_linker='GNU/Linux ld.so' 10437 ;; 10438 10439netbsd*) 10440 version_type=sunos 10441 need_lib_prefix=no 10442 need_version=no 10443 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 10444 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10445 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10446 dynamic_linker='NetBSD (a.out) ld.so' 10447 else 10448 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10449 soname_spec='$libname$release$shared_ext$major' 10450 dynamic_linker='NetBSD ld.elf_so' 10451 fi 10452 shlibpath_var=LD_LIBRARY_PATH 10453 shlibpath_overrides_runpath=yes 10454 hardcode_into_libs=yes 10455 ;; 10456 10457newsos6) 10458 version_type=linux # correct to gnu/linux during the next big refactor 10459 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10460 shlibpath_var=LD_LIBRARY_PATH 10461 shlibpath_overrides_runpath=yes 10462 ;; 10463 10464*nto* | *qnx*) 10465 version_type=qnx 10466 need_lib_prefix=no 10467 need_version=no 10468 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10469 soname_spec='$libname$release$shared_ext$major' 10470 shlibpath_var=LD_LIBRARY_PATH 10471 shlibpath_overrides_runpath=no 10472 hardcode_into_libs=yes 10473 dynamic_linker='ldqnx.so' 10474 ;; 10475 10476openbsd* | bitrig*) 10477 version_type=sunos 10478 sys_lib_dlsearch_path_spec=/usr/lib 10479 need_lib_prefix=no 10480 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 10481 need_version=no 10482 else 10483 need_version=yes 10484 fi 10485 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10486 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 10487 shlibpath_var=LD_LIBRARY_PATH 10488 shlibpath_overrides_runpath=yes 10489 ;; 10490 10491os2*) 10492 libname_spec='$name' 10493 version_type=windows 10494 shrext_cmds=.dll 10495 need_version=no 10496 need_lib_prefix=no 10497 # OS/2 can only load a DLL with a base name of 8 characters or less. 10498 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 10499 v=$($ECHO $release$versuffix | tr -d .-); 10500 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 10501 $ECHO $n$v`$shared_ext' 10502 library_names_spec='${libname}_dll.$libext' 10503 dynamic_linker='OS/2 ld.exe' 10504 shlibpath_var=BEGINLIBPATH 10505 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 10506 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10507 postinstall_cmds='base_file=`basename \$file`~ 10508 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 10509 dldir=$destdir/`dirname \$dlpath`~ 10510 test -d \$dldir || mkdir -p \$dldir~ 10511 $install_prog $dir/$dlname \$dldir/$dlname~ 10512 chmod a+x \$dldir/$dlname~ 10513 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 10514 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 10515 fi' 10516 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 10517 dlpath=$dir/\$dldll~ 10518 $RM \$dlpath' 10519 ;; 10520 10521osf3* | osf4* | osf5*) 10522 version_type=osf 10523 need_lib_prefix=no 10524 need_version=no 10525 soname_spec='$libname$release$shared_ext$major' 10526 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10527 shlibpath_var=LD_LIBRARY_PATH 10528 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 10529 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 10530 ;; 10531 10532rdos*) 10533 dynamic_linker=no 10534 ;; 10535 10536solaris*) 10537 version_type=linux # correct to gnu/linux during the next big refactor 10538 need_lib_prefix=no 10539 need_version=no 10540 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10541 soname_spec='$libname$release$shared_ext$major' 10542 shlibpath_var=LD_LIBRARY_PATH 10543 shlibpath_overrides_runpath=yes 10544 hardcode_into_libs=yes 10545 # ldd complains unless libraries are executable 10546 postinstall_cmds='chmod +x $lib' 10547 ;; 10548 10549sunos4*) 10550 version_type=sunos 10551 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 10552 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 10553 shlibpath_var=LD_LIBRARY_PATH 10554 shlibpath_overrides_runpath=yes 10555 if test yes = "$with_gnu_ld"; then 10556 need_lib_prefix=no 10557 fi 10558 need_version=yes 10559 ;; 10560 10561sysv4 | sysv4.3*) 10562 version_type=linux # correct to gnu/linux during the next big refactor 10563 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10564 soname_spec='$libname$release$shared_ext$major' 10565 shlibpath_var=LD_LIBRARY_PATH 10566 case $host_vendor in 10567 sni) 10568 shlibpath_overrides_runpath=no 10569 need_lib_prefix=no 10570 runpath_var=LD_RUN_PATH 10571 ;; 10572 siemens) 10573 need_lib_prefix=no 10574 ;; 10575 motorola) 10576 need_lib_prefix=no 10577 need_version=no 10578 shlibpath_overrides_runpath=no 10579 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 10580 ;; 10581 esac 10582 ;; 10583 10584sysv4*MP*) 10585 if test -d /usr/nec; then 10586 version_type=linux # correct to gnu/linux during the next big refactor 10587 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 10588 soname_spec='$libname$shared_ext.$major' 10589 shlibpath_var=LD_LIBRARY_PATH 10590 fi 10591 ;; 10592 10593sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 10594 version_type=sco 10595 need_lib_prefix=no 10596 need_version=no 10597 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 10598 soname_spec='$libname$release$shared_ext$major' 10599 shlibpath_var=LD_LIBRARY_PATH 10600 shlibpath_overrides_runpath=yes 10601 hardcode_into_libs=yes 10602 if test yes = "$with_gnu_ld"; then 10603 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 10604 else 10605 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 10606 case $host_os in 10607 sco3.2v5*) 10608 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 10609 ;; 10610 esac 10611 fi 10612 sys_lib_dlsearch_path_spec='/usr/lib' 10613 ;; 10614 10615tpf*) 10616 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 10617 version_type=linux # correct to gnu/linux during the next big refactor 10618 need_lib_prefix=no 10619 need_version=no 10620 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10621 shlibpath_var=LD_LIBRARY_PATH 10622 shlibpath_overrides_runpath=no 10623 hardcode_into_libs=yes 10624 ;; 10625 10626uts4*) 10627 version_type=linux # correct to gnu/linux during the next big refactor 10628 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 10629 soname_spec='$libname$release$shared_ext$major' 10630 shlibpath_var=LD_LIBRARY_PATH 10631 ;; 10632 10633*) 10634 dynamic_linker=no 10635 ;; 10636esac 10637{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 10638$as_echo "$dynamic_linker" >&6; } 10639test no = "$dynamic_linker" && can_build_shared=no 10640 10641variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 10642if test yes = "$GCC"; then 10643 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 10644fi 10645 10646if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 10647 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 10648fi 10649 10650if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 10651 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 10652fi 10653 10654# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 10655configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 10656 10657# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 10658func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 10659 10660# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 10661configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 10662 10663 10664 10665 10666 10667 10668 10669 10670 10671 10672 10673 10674 10675 10676 10677 10678 10679 10680 10681 10682 10683 10684 10685 10686 10687 10688 10689 10690 10691 10692 10693 10694 10695 10696 10697 10698 10699 10700 10701 10702 10703 10704 10705 10706 10707 10708 10709 10710 10711 10712 10713 10714 10715 10716 10717 10718 10719 10720 10721 10722 10723 10724 10725 10726 10727 10728 10729 10730 10731 10732 10733 10734 10735 10736 10737 10738 10739 10740 10741 10742 10743 10744 10745 10746 10747 10748 10749 10750 10751 10752 10753 10754 10755 10756 10757 10758 10759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 10760$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 10761hardcode_action= 10762if test -n "$hardcode_libdir_flag_spec" || 10763 test -n "$runpath_var" || 10764 test yes = "$hardcode_automatic"; then 10765 10766 # We can hardcode non-existent directories. 10767 if test no != "$hardcode_direct" && 10768 # If the only mechanism to avoid hardcoding is shlibpath_var, we 10769 # have to relink, otherwise we might link with an installed library 10770 # when we should be linking with a yet-to-be-installed one 10771 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, )" && 10772 test no != "$hardcode_minus_L"; then 10773 # Linking always hardcodes the temporary library directory. 10774 hardcode_action=relink 10775 else 10776 # We can link without hardcoding, and we can hardcode nonexisting dirs. 10777 hardcode_action=immediate 10778 fi 10779else 10780 # We cannot hardcode anything, or else we can only hardcode existing 10781 # directories. 10782 hardcode_action=unsupported 10783fi 10784{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5 10785$as_echo "$hardcode_action" >&6; } 10786 10787if test relink = "$hardcode_action" || 10788 test yes = "$inherit_rpath"; then 10789 # Fast installation is not supported 10790 enable_fast_install=no 10791elif test yes = "$shlibpath_overrides_runpath" || 10792 test no = "$enable_shared"; then 10793 # Fast installation is not necessary 10794 enable_fast_install=needless 10795fi 10796 10797 10798 10799 10800 10801 10802 if test yes != "$enable_dlopen"; then 10803 enable_dlopen=unknown 10804 enable_dlopen_self=unknown 10805 enable_dlopen_self_static=unknown 10806else 10807 lt_cv_dlopen=no 10808 lt_cv_dlopen_libs= 10809 10810 case $host_os in 10811 beos*) 10812 lt_cv_dlopen=load_add_on 10813 lt_cv_dlopen_libs= 10814 lt_cv_dlopen_self=yes 10815 ;; 10816 10817 mingw* | pw32* | cegcc*) 10818 lt_cv_dlopen=LoadLibrary 10819 lt_cv_dlopen_libs= 10820 ;; 10821 10822 cygwin*) 10823 lt_cv_dlopen=dlopen 10824 lt_cv_dlopen_libs= 10825 ;; 10826 10827 darwin*) 10828 # if libdl is installed we need to link against it 10829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10830$as_echo_n "checking for dlopen in -ldl... " >&6; } 10831if ${ac_cv_lib_dl_dlopen+:} false; then : 10832 $as_echo_n "(cached) " >&6 10833else 10834 ac_check_lib_save_LIBS=$LIBS 10835LIBS="-ldl $LIBS" 10836cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10837/* end confdefs.h. */ 10838 10839/* Override any GCC internal prototype to avoid an error. 10840 Use char because int might match the return type of a GCC 10841 builtin and then its argument prototype would still apply. */ 10842#ifdef __cplusplus 10843extern "C" 10844#endif 10845char dlopen (); 10846int 10847main () 10848{ 10849return dlopen (); 10850 ; 10851 return 0; 10852} 10853_ACEOF 10854if ac_fn_c_try_link "$LINENO"; then : 10855 ac_cv_lib_dl_dlopen=yes 10856else 10857 ac_cv_lib_dl_dlopen=no 10858fi 10859rm -f core conftest.err conftest.$ac_objext \ 10860 conftest$ac_exeext conftest.$ac_ext 10861LIBS=$ac_check_lib_save_LIBS 10862fi 10863{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10864$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10865if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10866 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 10867else 10868 10869 lt_cv_dlopen=dyld 10870 lt_cv_dlopen_libs= 10871 lt_cv_dlopen_self=yes 10872 10873fi 10874 10875 ;; 10876 10877 tpf*) 10878 # Don't try to run any link tests for TPF. We know it's impossible 10879 # because TPF is a cross-compiler, and we know how we open DSOs. 10880 lt_cv_dlopen=dlopen 10881 lt_cv_dlopen_libs= 10882 lt_cv_dlopen_self=no 10883 ;; 10884 10885 *) 10886 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load" 10887if test "x$ac_cv_func_shl_load" = xyes; then : 10888 lt_cv_dlopen=shl_load 10889else 10890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5 10891$as_echo_n "checking for shl_load in -ldld... " >&6; } 10892if ${ac_cv_lib_dld_shl_load+:} false; then : 10893 $as_echo_n "(cached) " >&6 10894else 10895 ac_check_lib_save_LIBS=$LIBS 10896LIBS="-ldld $LIBS" 10897cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10898/* end confdefs.h. */ 10899 10900/* Override any GCC internal prototype to avoid an error. 10901 Use char because int might match the return type of a GCC 10902 builtin and then its argument prototype would still apply. */ 10903#ifdef __cplusplus 10904extern "C" 10905#endif 10906char shl_load (); 10907int 10908main () 10909{ 10910return shl_load (); 10911 ; 10912 return 0; 10913} 10914_ACEOF 10915if ac_fn_c_try_link "$LINENO"; then : 10916 ac_cv_lib_dld_shl_load=yes 10917else 10918 ac_cv_lib_dld_shl_load=no 10919fi 10920rm -f core conftest.err conftest.$ac_objext \ 10921 conftest$ac_exeext conftest.$ac_ext 10922LIBS=$ac_check_lib_save_LIBS 10923fi 10924{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5 10925$as_echo "$ac_cv_lib_dld_shl_load" >&6; } 10926if test "x$ac_cv_lib_dld_shl_load" = xyes; then : 10927 lt_cv_dlopen=shl_load lt_cv_dlopen_libs=-ldld 10928else 10929 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen" 10930if test "x$ac_cv_func_dlopen" = xyes; then : 10931 lt_cv_dlopen=dlopen 10932else 10933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5 10934$as_echo_n "checking for dlopen in -ldl... " >&6; } 10935if ${ac_cv_lib_dl_dlopen+:} false; then : 10936 $as_echo_n "(cached) " >&6 10937else 10938 ac_check_lib_save_LIBS=$LIBS 10939LIBS="-ldl $LIBS" 10940cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10941/* end confdefs.h. */ 10942 10943/* Override any GCC internal prototype to avoid an error. 10944 Use char because int might match the return type of a GCC 10945 builtin and then its argument prototype would still apply. */ 10946#ifdef __cplusplus 10947extern "C" 10948#endif 10949char dlopen (); 10950int 10951main () 10952{ 10953return dlopen (); 10954 ; 10955 return 0; 10956} 10957_ACEOF 10958if ac_fn_c_try_link "$LINENO"; then : 10959 ac_cv_lib_dl_dlopen=yes 10960else 10961 ac_cv_lib_dl_dlopen=no 10962fi 10963rm -f core conftest.err conftest.$ac_objext \ 10964 conftest$ac_exeext conftest.$ac_ext 10965LIBS=$ac_check_lib_save_LIBS 10966fi 10967{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5 10968$as_echo "$ac_cv_lib_dl_dlopen" >&6; } 10969if test "x$ac_cv_lib_dl_dlopen" = xyes; then : 10970 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-ldl 10971else 10972 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5 10973$as_echo_n "checking for dlopen in -lsvld... " >&6; } 10974if ${ac_cv_lib_svld_dlopen+:} false; then : 10975 $as_echo_n "(cached) " >&6 10976else 10977 ac_check_lib_save_LIBS=$LIBS 10978LIBS="-lsvld $LIBS" 10979cat confdefs.h - <<_ACEOF >conftest.$ac_ext 10980/* end confdefs.h. */ 10981 10982/* Override any GCC internal prototype to avoid an error. 10983 Use char because int might match the return type of a GCC 10984 builtin and then its argument prototype would still apply. */ 10985#ifdef __cplusplus 10986extern "C" 10987#endif 10988char dlopen (); 10989int 10990main () 10991{ 10992return dlopen (); 10993 ; 10994 return 0; 10995} 10996_ACEOF 10997if ac_fn_c_try_link "$LINENO"; then : 10998 ac_cv_lib_svld_dlopen=yes 10999else 11000 ac_cv_lib_svld_dlopen=no 11001fi 11002rm -f core conftest.err conftest.$ac_objext \ 11003 conftest$ac_exeext conftest.$ac_ext 11004LIBS=$ac_check_lib_save_LIBS 11005fi 11006{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5 11007$as_echo "$ac_cv_lib_svld_dlopen" >&6; } 11008if test "x$ac_cv_lib_svld_dlopen" = xyes; then : 11009 lt_cv_dlopen=dlopen lt_cv_dlopen_libs=-lsvld 11010else 11011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5 11012$as_echo_n "checking for dld_link in -ldld... " >&6; } 11013if ${ac_cv_lib_dld_dld_link+:} false; then : 11014 $as_echo_n "(cached) " >&6 11015else 11016 ac_check_lib_save_LIBS=$LIBS 11017LIBS="-ldld $LIBS" 11018cat confdefs.h - <<_ACEOF >conftest.$ac_ext 11019/* end confdefs.h. */ 11020 11021/* Override any GCC internal prototype to avoid an error. 11022 Use char because int might match the return type of a GCC 11023 builtin and then its argument prototype would still apply. */ 11024#ifdef __cplusplus 11025extern "C" 11026#endif 11027char dld_link (); 11028int 11029main () 11030{ 11031return dld_link (); 11032 ; 11033 return 0; 11034} 11035_ACEOF 11036if ac_fn_c_try_link "$LINENO"; then : 11037 ac_cv_lib_dld_dld_link=yes 11038else 11039 ac_cv_lib_dld_dld_link=no 11040fi 11041rm -f core conftest.err conftest.$ac_objext \ 11042 conftest$ac_exeext conftest.$ac_ext 11043LIBS=$ac_check_lib_save_LIBS 11044fi 11045{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5 11046$as_echo "$ac_cv_lib_dld_dld_link" >&6; } 11047if test "x$ac_cv_lib_dld_dld_link" = xyes; then : 11048 lt_cv_dlopen=dld_link lt_cv_dlopen_libs=-ldld 11049fi 11050 11051 11052fi 11053 11054 11055fi 11056 11057 11058fi 11059 11060 11061fi 11062 11063 11064fi 11065 11066 ;; 11067 esac 11068 11069 if test no = "$lt_cv_dlopen"; then 11070 enable_dlopen=no 11071 else 11072 enable_dlopen=yes 11073 fi 11074 11075 case $lt_cv_dlopen in 11076 dlopen) 11077 save_CPPFLAGS=$CPPFLAGS 11078 test yes = "$ac_cv_header_dlfcn_h" && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H" 11079 11080 save_LDFLAGS=$LDFLAGS 11081 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\" 11082 11083 save_LIBS=$LIBS 11084 LIBS="$lt_cv_dlopen_libs $LIBS" 11085 11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5 11087$as_echo_n "checking whether a program can dlopen itself... " >&6; } 11088if ${lt_cv_dlopen_self+:} false; then : 11089 $as_echo_n "(cached) " >&6 11090else 11091 if test yes = "$cross_compiling"; then : 11092 lt_cv_dlopen_self=cross 11093else 11094 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11095 lt_status=$lt_dlunknown 11096 cat > conftest.$ac_ext <<_LT_EOF 11097#line $LINENO "configure" 11098#include "confdefs.h" 11099 11100#if HAVE_DLFCN_H 11101#include <dlfcn.h> 11102#endif 11103 11104#include <stdio.h> 11105 11106#ifdef RTLD_GLOBAL 11107# define LT_DLGLOBAL RTLD_GLOBAL 11108#else 11109# ifdef DL_GLOBAL 11110# define LT_DLGLOBAL DL_GLOBAL 11111# else 11112# define LT_DLGLOBAL 0 11113# endif 11114#endif 11115 11116/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11117 find out it does not work in some platform. */ 11118#ifndef LT_DLLAZY_OR_NOW 11119# ifdef RTLD_LAZY 11120# define LT_DLLAZY_OR_NOW RTLD_LAZY 11121# else 11122# ifdef DL_LAZY 11123# define LT_DLLAZY_OR_NOW DL_LAZY 11124# else 11125# ifdef RTLD_NOW 11126# define LT_DLLAZY_OR_NOW RTLD_NOW 11127# else 11128# ifdef DL_NOW 11129# define LT_DLLAZY_OR_NOW DL_NOW 11130# else 11131# define LT_DLLAZY_OR_NOW 0 11132# endif 11133# endif 11134# endif 11135# endif 11136#endif 11137 11138/* When -fvisibility=hidden is used, assume the code has been annotated 11139 correspondingly for the symbols needed. */ 11140#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11141int fnord () __attribute__((visibility("default"))); 11142#endif 11143 11144int fnord () { return 42; } 11145int main () 11146{ 11147 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11148 int status = $lt_dlunknown; 11149 11150 if (self) 11151 { 11152 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11153 else 11154 { 11155 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11156 else puts (dlerror ()); 11157 } 11158 /* dlclose (self); */ 11159 } 11160 else 11161 puts (dlerror ()); 11162 11163 return status; 11164} 11165_LT_EOF 11166 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11167 (eval $ac_link) 2>&5 11168 ac_status=$? 11169 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11170 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11171 (./conftest; exit; ) >&5 2>/dev/null 11172 lt_status=$? 11173 case x$lt_status in 11174 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;; 11175 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;; 11176 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;; 11177 esac 11178 else : 11179 # compilation failed 11180 lt_cv_dlopen_self=no 11181 fi 11182fi 11183rm -fr conftest* 11184 11185 11186fi 11187{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5 11188$as_echo "$lt_cv_dlopen_self" >&6; } 11189 11190 if test yes = "$lt_cv_dlopen_self"; then 11191 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\" 11192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5 11193$as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; } 11194if ${lt_cv_dlopen_self_static+:} false; then : 11195 $as_echo_n "(cached) " >&6 11196else 11197 if test yes = "$cross_compiling"; then : 11198 lt_cv_dlopen_self_static=cross 11199else 11200 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2 11201 lt_status=$lt_dlunknown 11202 cat > conftest.$ac_ext <<_LT_EOF 11203#line $LINENO "configure" 11204#include "confdefs.h" 11205 11206#if HAVE_DLFCN_H 11207#include <dlfcn.h> 11208#endif 11209 11210#include <stdio.h> 11211 11212#ifdef RTLD_GLOBAL 11213# define LT_DLGLOBAL RTLD_GLOBAL 11214#else 11215# ifdef DL_GLOBAL 11216# define LT_DLGLOBAL DL_GLOBAL 11217# else 11218# define LT_DLGLOBAL 0 11219# endif 11220#endif 11221 11222/* We may have to define LT_DLLAZY_OR_NOW in the command line if we 11223 find out it does not work in some platform. */ 11224#ifndef LT_DLLAZY_OR_NOW 11225# ifdef RTLD_LAZY 11226# define LT_DLLAZY_OR_NOW RTLD_LAZY 11227# else 11228# ifdef DL_LAZY 11229# define LT_DLLAZY_OR_NOW DL_LAZY 11230# else 11231# ifdef RTLD_NOW 11232# define LT_DLLAZY_OR_NOW RTLD_NOW 11233# else 11234# ifdef DL_NOW 11235# define LT_DLLAZY_OR_NOW DL_NOW 11236# else 11237# define LT_DLLAZY_OR_NOW 0 11238# endif 11239# endif 11240# endif 11241# endif 11242#endif 11243 11244/* When -fvisibility=hidden is used, assume the code has been annotated 11245 correspondingly for the symbols needed. */ 11246#if defined __GNUC__ && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3)) 11247int fnord () __attribute__((visibility("default"))); 11248#endif 11249 11250int fnord () { return 42; } 11251int main () 11252{ 11253 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW); 11254 int status = $lt_dlunknown; 11255 11256 if (self) 11257 { 11258 if (dlsym (self,"fnord")) status = $lt_dlno_uscore; 11259 else 11260 { 11261 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore; 11262 else puts (dlerror ()); 11263 } 11264 /* dlclose (self); */ 11265 } 11266 else 11267 puts (dlerror ()); 11268 11269 return status; 11270} 11271_LT_EOF 11272 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5 11273 (eval $ac_link) 2>&5 11274 ac_status=$? 11275 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 11276 test $ac_status = 0; } && test -s "conftest$ac_exeext" 2>/dev/null; then 11277 (./conftest; exit; ) >&5 2>/dev/null 11278 lt_status=$? 11279 case x$lt_status in 11280 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;; 11281 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;; 11282 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;; 11283 esac 11284 else : 11285 # compilation failed 11286 lt_cv_dlopen_self_static=no 11287 fi 11288fi 11289rm -fr conftest* 11290 11291 11292fi 11293{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5 11294$as_echo "$lt_cv_dlopen_self_static" >&6; } 11295 fi 11296 11297 CPPFLAGS=$save_CPPFLAGS 11298 LDFLAGS=$save_LDFLAGS 11299 LIBS=$save_LIBS 11300 ;; 11301 esac 11302 11303 case $lt_cv_dlopen_self in 11304 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;; 11305 *) enable_dlopen_self=unknown ;; 11306 esac 11307 11308 case $lt_cv_dlopen_self_static in 11309 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;; 11310 *) enable_dlopen_self_static=unknown ;; 11311 esac 11312fi 11313 11314 11315 11316 11317 11318 11319 11320 11321 11322 11323 11324 11325 11326 11327 11328 11329 11330striplib= 11331old_striplib= 11332{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5 11333$as_echo_n "checking whether stripping libraries is possible... " >&6; } 11334if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then 11335 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug" 11336 test -z "$striplib" && striplib="$STRIP --strip-unneeded" 11337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11338$as_echo "yes" >&6; } 11339else 11340# FIXME - insert some real tests, host_os isn't really good enough 11341 case $host_os in 11342 darwin*) 11343 if test -n "$STRIP"; then 11344 striplib="$STRIP -x" 11345 old_striplib="$STRIP -S" 11346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11347$as_echo "yes" >&6; } 11348 else 11349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11350$as_echo "no" >&6; } 11351 fi 11352 ;; 11353 *) 11354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11355$as_echo "no" >&6; } 11356 ;; 11357 esac 11358fi 11359 11360 11361 11362 11363 11364 11365 11366 11367 11368 11369 11370 11371 # Report what library types will actually be built 11372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5 11373$as_echo_n "checking if libtool supports shared libraries... " >&6; } 11374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5 11375$as_echo "$can_build_shared" >&6; } 11376 11377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5 11378$as_echo_n "checking whether to build shared libraries... " >&6; } 11379 test no = "$can_build_shared" && enable_shared=no 11380 11381 # On AIX, shared libraries and static libraries use the same namespace, and 11382 # are all built from PIC. 11383 case $host_os in 11384 aix3*) 11385 test yes = "$enable_shared" && enable_static=no 11386 if test -n "$RANLIB"; then 11387 archive_cmds="$archive_cmds~\$RANLIB \$lib" 11388 postinstall_cmds='$RANLIB $lib' 11389 fi 11390 ;; 11391 11392 aix[4-9]*) 11393 if test ia64 != "$host_cpu"; then 11394 case $enable_shared,$with_aix_soname,$aix_use_runtimelinking in 11395 yes,aix,yes) ;; # shared object as lib.so file only 11396 yes,svr4,*) ;; # shared object as lib.so archive member only 11397 yes,*) enable_static=no ;; # shared object in lib.a archive as well 11398 esac 11399 fi 11400 ;; 11401 esac 11402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5 11403$as_echo "$enable_shared" >&6; } 11404 11405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5 11406$as_echo_n "checking whether to build static libraries... " >&6; } 11407 # Make sure either enable_shared or enable_static is yes. 11408 test yes = "$enable_shared" || enable_static=yes 11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5 11410$as_echo "$enable_static" >&6; } 11411 11412 11413 11414 11415fi 11416ac_ext=c 11417ac_cpp='$CPP $CPPFLAGS' 11418ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 11419ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 11420ac_compiler_gnu=$ac_cv_c_compiler_gnu 11421 11422CC=$lt_save_CC 11423 11424 11425 11426 11427 11428 11429 11430 11431 11432 11433 11434 11435 11436 11437 11438 ac_config_commands="$ac_config_commands libtool" 11439 11440 11441 11442 11443# Only expand once: 11444 11445 11446am__api_version='1.15' 11447 11448# Find a good install program. We prefer a C program (faster), 11449# so one script is as good as another. But avoid the broken or 11450# incompatible versions: 11451# SysV /etc/install, /usr/sbin/install 11452# SunOS /usr/etc/install 11453# IRIX /sbin/install 11454# AIX /bin/install 11455# AmigaOS /C/install, which installs bootblocks on floppy discs 11456# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag 11457# AFS /usr/afsws/bin/install, which mishandles nonexistent args 11458# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" 11459# OS/2's system install, which has a completely different semantic 11460# ./install, which can be erroneously created by make from ./install.sh. 11461# Reject install programs that cannot install multiple files. 11462{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 11463$as_echo_n "checking for a BSD-compatible install... " >&6; } 11464if test -z "$INSTALL"; then 11465if ${ac_cv_path_install+:} false; then : 11466 $as_echo_n "(cached) " >&6 11467else 11468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11469for as_dir in $PATH 11470do 11471 IFS=$as_save_IFS 11472 test -z "$as_dir" && as_dir=. 11473 # Account for people who put trailing slashes in PATH elements. 11474case $as_dir/ in #(( 11475 ./ | .// | /[cC]/* | \ 11476 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ 11477 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ 11478 /usr/ucb/* ) ;; 11479 *) 11480 # OSF1 and SCO ODT 3.0 have their own names for install. 11481 # Don't use installbsd from OSF since it installs stuff as root 11482 # by default. 11483 for ac_prog in ginstall scoinst install; do 11484 for ac_exec_ext in '' $ac_executable_extensions; do 11485 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then 11486 if test $ac_prog = install && 11487 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11488 # AIX install. It has an incompatible calling convention. 11489 : 11490 elif test $ac_prog = install && 11491 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then 11492 # program-specific install script used by HP pwplus--don't use. 11493 : 11494 else 11495 rm -rf conftest.one conftest.two conftest.dir 11496 echo one > conftest.one 11497 echo two > conftest.two 11498 mkdir conftest.dir 11499 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && 11500 test -s conftest.one && test -s conftest.two && 11501 test -s conftest.dir/conftest.one && 11502 test -s conftest.dir/conftest.two 11503 then 11504 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" 11505 break 3 11506 fi 11507 fi 11508 fi 11509 done 11510 done 11511 ;; 11512esac 11513 11514 done 11515IFS=$as_save_IFS 11516 11517rm -rf conftest.one conftest.two conftest.dir 11518 11519fi 11520 if test "${ac_cv_path_install+set}" = set; then 11521 INSTALL=$ac_cv_path_install 11522 else 11523 # As a last resort, use the slow shell script. Don't cache a 11524 # value for INSTALL within a source directory, because that will 11525 # break other packages using the cache if that directory is 11526 # removed, or if the value is a relative name. 11527 INSTALL=$ac_install_sh 11528 fi 11529fi 11530{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 11531$as_echo "$INSTALL" >&6; } 11532 11533# Use test -z because SunOS4 sh mishandles braces in ${var-val}. 11534# It thinks the first close brace ends the variable substitution. 11535test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' 11536 11537test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' 11538 11539test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' 11540 11541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 11542$as_echo_n "checking whether build environment is sane... " >&6; } 11543# Reject unsafe characters in $srcdir or the absolute working directory 11544# name. Accept space and tab only in the latter. 11545am_lf=' 11546' 11547case `pwd` in 11548 *[\\\"\#\$\&\'\`$am_lf]*) 11549 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; 11550esac 11551case $srcdir in 11552 *[\\\"\#\$\&\'\`$am_lf\ \ ]*) 11553 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; 11554esac 11555 11556# Do 'set' in a subshell so we don't clobber the current shell's 11557# arguments. Must try -L first in case configure is actually a 11558# symlink; some systems play weird games with the mod time of symlinks 11559# (eg FreeBSD returns the mod time of the symlink's containing 11560# directory). 11561if ( 11562 am_has_slept=no 11563 for am_try in 1 2; do 11564 echo "timestamp, slept: $am_has_slept" > conftest.file 11565 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` 11566 if test "$*" = "X"; then 11567 # -L didn't work. 11568 set X `ls -t "$srcdir/configure" conftest.file` 11569 fi 11570 if test "$*" != "X $srcdir/configure conftest.file" \ 11571 && test "$*" != "X conftest.file $srcdir/configure"; then 11572 11573 # If neither matched, then we have a broken ls. This can happen 11574 # if, for instance, CONFIG_SHELL is bash and it inherits a 11575 # broken ls alias from the environment. This has actually 11576 # happened. Such a system could not be considered "sane". 11577 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken 11578 alias in your environment" "$LINENO" 5 11579 fi 11580 if test "$2" = conftest.file || test $am_try -eq 2; then 11581 break 11582 fi 11583 # Just in case. 11584 sleep 1 11585 am_has_slept=yes 11586 done 11587 test "$2" = conftest.file 11588 ) 11589then 11590 # Ok. 11591 : 11592else 11593 as_fn_error $? "newly created file is older than distributed files! 11594Check your system clock" "$LINENO" 5 11595fi 11596{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11597$as_echo "yes" >&6; } 11598# If we didn't sleep, we still need to ensure time stamps of config.status and 11599# generated files are strictly newer. 11600am_sleep_pid= 11601if grep 'slept: no' conftest.file >/dev/null 2>&1; then 11602 ( sleep 1 ) & 11603 am_sleep_pid=$! 11604fi 11605 11606rm -f conftest.file 11607 11608test "$program_prefix" != NONE && 11609 program_transform_name="s&^&$program_prefix&;$program_transform_name" 11610# Use a double $ so make ignores it. 11611test "$program_suffix" != NONE && 11612 program_transform_name="s&\$&$program_suffix&;$program_transform_name" 11613# Double any \ or $. 11614# By default was `s,x,x', remove it if useless. 11615ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' 11616program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` 11617 11618if test x"${MISSING+set}" != xset; then 11619 case $am_aux_dir in 11620 *\ * | *\ *) 11621 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; 11622 *) 11623 MISSING="\${SHELL} $am_aux_dir/missing" ;; 11624 esac 11625fi 11626# Use eval to expand $SHELL 11627if eval "$MISSING --is-lightweight"; then 11628 am_missing_run="$MISSING " 11629else 11630 am_missing_run= 11631 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 11632$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} 11633fi 11634 11635if test x"${install_sh+set}" != xset; then 11636 case $am_aux_dir in 11637 *\ * | *\ *) 11638 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; 11639 *) 11640 install_sh="\${SHELL} $am_aux_dir/install-sh" 11641 esac 11642fi 11643 11644# Installed binaries are usually stripped using 'strip' when the user 11645# run "make install-strip". However 'strip' might not be the right 11646# tool to use in cross-compilation environments, therefore Automake 11647# will honor the 'STRIP' environment variable to overrule this program. 11648if test "$cross_compiling" != no; then 11649 if test -n "$ac_tool_prefix"; then 11650 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. 11651set dummy ${ac_tool_prefix}strip; ac_word=$2 11652{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11653$as_echo_n "checking for $ac_word... " >&6; } 11654if ${ac_cv_prog_STRIP+:} false; then : 11655 $as_echo_n "(cached) " >&6 11656else 11657 if test -n "$STRIP"; then 11658 ac_cv_prog_STRIP="$STRIP" # Let the user override the test. 11659else 11660as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11661for as_dir in $PATH 11662do 11663 IFS=$as_save_IFS 11664 test -z "$as_dir" && as_dir=. 11665 for ac_exec_ext in '' $ac_executable_extensions; do 11666 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11667 ac_cv_prog_STRIP="${ac_tool_prefix}strip" 11668 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11669 break 2 11670 fi 11671done 11672 done 11673IFS=$as_save_IFS 11674 11675fi 11676fi 11677STRIP=$ac_cv_prog_STRIP 11678if test -n "$STRIP"; then 11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 11680$as_echo "$STRIP" >&6; } 11681else 11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11683$as_echo "no" >&6; } 11684fi 11685 11686 11687fi 11688if test -z "$ac_cv_prog_STRIP"; then 11689 ac_ct_STRIP=$STRIP 11690 # Extract the first word of "strip", so it can be a program name with args. 11691set dummy strip; ac_word=$2 11692{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 11693$as_echo_n "checking for $ac_word... " >&6; } 11694if ${ac_cv_prog_ac_ct_STRIP+:} false; then : 11695 $as_echo_n "(cached) " >&6 11696else 11697 if test -n "$ac_ct_STRIP"; then 11698 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. 11699else 11700as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11701for as_dir in $PATH 11702do 11703 IFS=$as_save_IFS 11704 test -z "$as_dir" && as_dir=. 11705 for ac_exec_ext in '' $ac_executable_extensions; do 11706 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 11707 ac_cv_prog_ac_ct_STRIP="strip" 11708 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 11709 break 2 11710 fi 11711done 11712 done 11713IFS=$as_save_IFS 11714 11715fi 11716fi 11717ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP 11718if test -n "$ac_ct_STRIP"; then 11719 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 11720$as_echo "$ac_ct_STRIP" >&6; } 11721else 11722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11723$as_echo "no" >&6; } 11724fi 11725 11726 if test "x$ac_ct_STRIP" = x; then 11727 STRIP=":" 11728 else 11729 case $cross_compiling:$ac_tool_warned in 11730yes:) 11731{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 11732$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 11733ac_tool_warned=yes ;; 11734esac 11735 STRIP=$ac_ct_STRIP 11736 fi 11737else 11738 STRIP="$ac_cv_prog_STRIP" 11739fi 11740 11741fi 11742INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" 11743 11744{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 11745$as_echo_n "checking for a thread-safe mkdir -p... " >&6; } 11746if test -z "$MKDIR_P"; then 11747 if ${ac_cv_path_mkdir+:} false; then : 11748 $as_echo_n "(cached) " >&6 11749else 11750 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 11751for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin 11752do 11753 IFS=$as_save_IFS 11754 test -z "$as_dir" && as_dir=. 11755 for ac_prog in mkdir gmkdir; do 11756 for ac_exec_ext in '' $ac_executable_extensions; do 11757 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue 11758 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( 11759 'mkdir (GNU coreutils) '* | \ 11760 'mkdir (coreutils) '* | \ 11761 'mkdir (fileutils) '4.1*) 11762 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext 11763 break 3;; 11764 esac 11765 done 11766 done 11767 done 11768IFS=$as_save_IFS 11769 11770fi 11771 11772 test -d ./--version && rmdir ./--version 11773 if test "${ac_cv_path_mkdir+set}" = set; then 11774 MKDIR_P="$ac_cv_path_mkdir -p" 11775 else 11776 # As a last resort, use the slow shell script. Don't cache a 11777 # value for MKDIR_P within a source directory, because that will 11778 # break other packages using the cache if that directory is 11779 # removed, or if the value is a relative name. 11780 MKDIR_P="$ac_install_sh -d" 11781 fi 11782fi 11783{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 11784$as_echo "$MKDIR_P" >&6; } 11785 11786{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 11787$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } 11788set x ${MAKE-make} 11789ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` 11790if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : 11791 $as_echo_n "(cached) " >&6 11792else 11793 cat >conftest.make <<\_ACEOF 11794SHELL = /bin/sh 11795all: 11796 @echo '@@@%%%=$(MAKE)=@@@%%%' 11797_ACEOF 11798# GNU make sometimes prints "make[1]: Entering ...", which would confuse us. 11799case `${MAKE-make} -f conftest.make 2>/dev/null` in 11800 *@@@%%%=?*=@@@%%%*) 11801 eval ac_cv_prog_make_${ac_make}_set=yes;; 11802 *) 11803 eval ac_cv_prog_make_${ac_make}_set=no;; 11804esac 11805rm -f conftest.make 11806fi 11807if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then 11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 11809$as_echo "yes" >&6; } 11810 SET_MAKE= 11811else 11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 11813$as_echo "no" >&6; } 11814 SET_MAKE="MAKE=${MAKE-make}" 11815fi 11816 11817rm -rf .tst 2>/dev/null 11818mkdir .tst 2>/dev/null 11819if test -d .tst; then 11820 am__leading_dot=. 11821else 11822 am__leading_dot=_ 11823fi 11824rmdir .tst 2>/dev/null 11825 11826DEPDIR="${am__leading_dot}deps" 11827 11828ac_config_commands="$ac_config_commands depfiles" 11829 11830 11831am_make=${MAKE-make} 11832cat > confinc << 'END' 11833am__doit: 11834 @echo this is the am__doit target 11835.PHONY: am__doit 11836END 11837# If we don't find an include directive, just comment out the code. 11838{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 11839$as_echo_n "checking for style of include used by $am_make... " >&6; } 11840am__include="#" 11841am__quote= 11842_am_result=none 11843# First try GNU make style include. 11844echo "include confinc" > confmf 11845# Ignore all kinds of additional output from 'make'. 11846case `$am_make -s -f confmf 2> /dev/null` in #( 11847*the\ am__doit\ target*) 11848 am__include=include 11849 am__quote= 11850 _am_result=GNU 11851 ;; 11852esac 11853# Now try BSD make style include. 11854if test "$am__include" = "#"; then 11855 echo '.include "confinc"' > confmf 11856 case `$am_make -s -f confmf 2> /dev/null` in #( 11857 *the\ am__doit\ target*) 11858 am__include=.include 11859 am__quote="\"" 11860 _am_result=BSD 11861 ;; 11862 esac 11863fi 11864 11865 11866{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 11867$as_echo "$_am_result" >&6; } 11868rm -f confinc confmf 11869 11870# Check whether --enable-dependency-tracking was given. 11871if test "${enable_dependency_tracking+set}" = set; then : 11872 enableval=$enable_dependency_tracking; 11873fi 11874 11875if test "x$enable_dependency_tracking" != xno; then 11876 am_depcomp="$ac_aux_dir/depcomp" 11877 AMDEPBACKSLASH='\' 11878 am__nodep='_no' 11879fi 11880 if test "x$enable_dependency_tracking" != xno; then 11881 AMDEP_TRUE= 11882 AMDEP_FALSE='#' 11883else 11884 AMDEP_TRUE='#' 11885 AMDEP_FALSE= 11886fi 11887 11888 11889# Check whether --enable-silent-rules was given. 11890if test "${enable_silent_rules+set}" = set; then : 11891 enableval=$enable_silent_rules; 11892fi 11893 11894case $enable_silent_rules in # ((( 11895 yes) AM_DEFAULT_VERBOSITY=0;; 11896 no) AM_DEFAULT_VERBOSITY=1;; 11897 *) AM_DEFAULT_VERBOSITY=1;; 11898esac 11899am_make=${MAKE-make} 11900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 11901$as_echo_n "checking whether $am_make supports nested variables... " >&6; } 11902if ${am_cv_make_support_nested_variables+:} false; then : 11903 $as_echo_n "(cached) " >&6 11904else 11905 if $as_echo 'TRUE=$(BAR$(V)) 11906BAR0=false 11907BAR1=true 11908V=1 11909am__doit: 11910 @$(TRUE) 11911.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then 11912 am_cv_make_support_nested_variables=yes 11913else 11914 am_cv_make_support_nested_variables=no 11915fi 11916fi 11917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 11918$as_echo "$am_cv_make_support_nested_variables" >&6; } 11919if test $am_cv_make_support_nested_variables = yes; then 11920 AM_V='$(V)' 11921 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' 11922else 11923 AM_V=$AM_DEFAULT_VERBOSITY 11924 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY 11925fi 11926AM_BACKSLASH='\' 11927 11928if test "`cd $srcdir && pwd`" != "`pwd`"; then 11929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output 11930 # is not polluted with repeated "-I." 11931 am__isrc=' -I$(srcdir)' 11932 # test to see if srcdir already configured 11933 if test -f $srcdir/config.status; then 11934 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 11935 fi 11936fi 11937 11938# test whether we have cygpath 11939if test -z "$CYGPATH_W"; then 11940 if (cygpath --version) >/dev/null 2>/dev/null; then 11941 CYGPATH_W='cygpath -w' 11942 else 11943 CYGPATH_W=echo 11944 fi 11945fi 11946 11947 11948# Define the identity of the package. 11949 PACKAGE='flex' 11950 VERSION='2.6.0' 11951 11952 11953cat >>confdefs.h <<_ACEOF 11954#define PACKAGE "$PACKAGE" 11955_ACEOF 11956 11957 11958cat >>confdefs.h <<_ACEOF 11959#define VERSION "$VERSION" 11960_ACEOF 11961 11962# Some tools Automake needs. 11963 11964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} 11965 11966 11967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} 11968 11969 11970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} 11971 11972 11973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} 11974 11975 11976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} 11977 11978# For better backward compatibility. To be removed once Automake 1.9.x 11979# dies out for good. For more background, see: 11980# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> 11981# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> 11982mkdir_p='$(MKDIR_P)' 11983 11984# We need awk for the "check" target (and possibly the TAP driver). The 11985# system "awk" is bad on some platforms. 11986# Always define AMTAR for backward compatibility. Yes, it's still used 11987# in the wild :-( We should find a proper way to deprecate it ... 11988AMTAR='$${TAR-tar}' 11989 11990 11991# We'll loop over all known methods to create a tar archive until one works. 11992_am_tools='gnutar pax cpio none' 11993 11994am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' 11995 11996 11997 11998 11999 12000depcc="$CC" am_compiler_list= 12001 12002{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 12003$as_echo_n "checking dependency style of $depcc... " >&6; } 12004if ${am_cv_CC_dependencies_compiler_type+:} false; then : 12005 $as_echo_n "(cached) " >&6 12006else 12007 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 12008 # We make a subdir and do the tests there. Otherwise we can end up 12009 # making bogus files that we don't know about and never remove. For 12010 # instance it was reported that on HP-UX the gcc test will end up 12011 # making a dummy file named 'D' -- because '-MD' means "put the output 12012 # in D". 12013 rm -rf conftest.dir 12014 mkdir conftest.dir 12015 # Copy depcomp to subdir because otherwise we won't find it if we're 12016 # using a relative directory. 12017 cp "$am_depcomp" conftest.dir 12018 cd conftest.dir 12019 # We will build objects and dependencies in a subdirectory because 12020 # it helps to detect inapplicable dependency modes. For instance 12021 # both Tru64's cc and ICC support -MD to output dependencies as a 12022 # side effect of compilation, but ICC will put the dependencies in 12023 # the current directory while Tru64 will put them in the object 12024 # directory. 12025 mkdir sub 12026 12027 am_cv_CC_dependencies_compiler_type=none 12028 if test "$am_compiler_list" = ""; then 12029 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 12030 fi 12031 am__universal=false 12032 case " $depcc " in #( 12033 *\ -arch\ *\ -arch\ *) am__universal=true ;; 12034 esac 12035 12036 for depmode in $am_compiler_list; do 12037 # Setup a source with many dependencies, because some compilers 12038 # like to wrap large dependency lists on column 80 (with \), and 12039 # we should not choose a depcomp mode which is confused by this. 12040 # 12041 # We need to recreate these files for each test, as the compiler may 12042 # overwrite some of them when testing with obscure command lines. 12043 # This happens at least with the AIX C compiler. 12044 : > sub/conftest.c 12045 for i in 1 2 3 4 5 6; do 12046 echo '#include "conftst'$i'.h"' >> sub/conftest.c 12047 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 12048 # Solaris 10 /bin/sh. 12049 echo '/* dummy */' > sub/conftst$i.h 12050 done 12051 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 12052 12053 # We check with '-c' and '-o' for the sake of the "dashmstdout" 12054 # mode. It turns out that the SunPro C++ compiler does not properly 12055 # handle '-M -o', and we need to detect this. Also, some Intel 12056 # versions had trouble with output in subdirs. 12057 am__obj=sub/conftest.${OBJEXT-o} 12058 am__minus_obj="-o $am__obj" 12059 case $depmode in 12060 gcc) 12061 # This depmode causes a compiler race in universal mode. 12062 test "$am__universal" = false || continue 12063 ;; 12064 nosideeffect) 12065 # After this tag, mechanisms are not by side-effect, so they'll 12066 # only be used when explicitly requested. 12067 if test "x$enable_dependency_tracking" = xyes; then 12068 continue 12069 else 12070 break 12071 fi 12072 ;; 12073 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 12074 # This compiler won't grok '-c -o', but also, the minuso test has 12075 # not run yet. These depmodes are late enough in the game, and 12076 # so weak that their functioning should not be impacted. 12077 am__obj=conftest.${OBJEXT-o} 12078 am__minus_obj= 12079 ;; 12080 none) break ;; 12081 esac 12082 if depmode=$depmode \ 12083 source=sub/conftest.c object=$am__obj \ 12084 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 12085 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 12086 >/dev/null 2>conftest.err && 12087 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 12088 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 12089 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 12090 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 12091 # icc doesn't choke on unknown options, it will just issue warnings 12092 # or remarks (even with -Werror). So we grep stderr for any message 12093 # that says an option was ignored or not supported. 12094 # When given -MP, icc 7.0 and 7.1 complain thusly: 12095 # icc: Command line warning: ignoring option '-M'; no argument required 12096 # The diagnosis changed in icc 8.0: 12097 # icc: Command line remark: option '-MP' not supported 12098 if (grep 'ignoring option' conftest.err || 12099 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 12100 am_cv_CC_dependencies_compiler_type=$depmode 12101 break 12102 fi 12103 fi 12104 done 12105 12106 cd .. 12107 rm -rf conftest.dir 12108else 12109 am_cv_CC_dependencies_compiler_type=none 12110fi 12111 12112fi 12113{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 12114$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } 12115CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type 12116 12117 if 12118 test "x$enable_dependency_tracking" != xno \ 12119 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then 12120 am__fastdepCC_TRUE= 12121 am__fastdepCC_FALSE='#' 12122else 12123 am__fastdepCC_TRUE='#' 12124 am__fastdepCC_FALSE= 12125fi 12126 12127 12128 12129# POSIX will say in a future version that running "rm -f" with no argument 12130# is OK; and we want to be able to make that assumption in our Makefile 12131# recipes. So use an aggressive probe to check that the usage we want is 12132# actually supported "in the wild" to an acceptable degree. 12133# See automake bug#10828. 12134# To make any issue more visible, cause the running configure to be aborted 12135# by default if the 'rm' program in use doesn't match our expectations; the 12136# user can still override this though. 12137if rm -f && rm -fr && rm -rf; then : OK; else 12138 cat >&2 <<'END' 12139Oops! 12140 12141Your 'rm' program seems unable to run without file operands specified 12142on the command line, even when the '-f' option is present. This is contrary 12143to the behaviour of most rm programs out there, and not conforming with 12144the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> 12145 12146Please tell bug-automake@gnu.org about your system, including the value 12147of your $PATH and any error possibly output before this message. This 12148can help us improve future automake versions. 12149 12150END 12151 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then 12152 echo 'Configuration will proceed anyway, since you have set the' >&2 12153 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 12154 echo >&2 12155 else 12156 cat >&2 <<'END' 12157Aborting the configuration process, to ensure you take notice of the issue. 12158 12159You can download and install GNU coreutils to get an 'rm' implementation 12160that behaves properly: <http://www.gnu.org/software/coreutils/>. 12161 12162If you want to complete the configuration process using your problematic 12163'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM 12164to "yes", and re-run configure. 12165 12166END 12167 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 12168 fi 12169fi 12170 12171ac_config_headers="$ac_config_headers src/config.h" 12172 12173 12174 12175SHARED_VERSION_INFO="2:0:0" 12176 12177 12178# checks for programs 12179 12180 12181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NLS is requested" >&5 12182$as_echo_n "checking whether NLS is requested... " >&6; } 12183 # Check whether --enable-nls was given. 12184if test "${enable_nls+set}" = set; then : 12185 enableval=$enable_nls; USE_NLS=$enableval 12186else 12187 USE_NLS=yes 12188fi 12189 12190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 12191$as_echo "$USE_NLS" >&6; } 12192 12193 12194 12195 12196 GETTEXT_MACRO_VERSION=0.19 12197 12198 12199 12200 12201# Prepare PATH_SEPARATOR. 12202# The user is always right. 12203if test "${PATH_SEPARATOR+set}" != set; then 12204 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12205 # contains only /bin. Note that ksh looks also at the FPATH variable, 12206 # so we have to set that as well for the test. 12207 PATH_SEPARATOR=: 12208 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12209 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12210 || PATH_SEPARATOR=';' 12211 } 12212fi 12213 12214# Find out how to test for executable files. Don't use a zero-byte file, 12215# as systems may use methods other than mode bits to determine executability. 12216cat >conf$$.file <<_ASEOF 12217#! /bin/sh 12218exit 0 12219_ASEOF 12220chmod +x conf$$.file 12221if test -x conf$$.file >/dev/null 2>&1; then 12222 ac_executable_p="test -x" 12223else 12224 ac_executable_p="test -f" 12225fi 12226rm -f conf$$.file 12227 12228# Extract the first word of "msgfmt", so it can be a program name with args. 12229set dummy msgfmt; ac_word=$2 12230{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12231$as_echo_n "checking for $ac_word... " >&6; } 12232if ${ac_cv_path_MSGFMT+:} false; then : 12233 $as_echo_n "(cached) " >&6 12234else 12235 case "$MSGFMT" in 12236 [\\/]* | ?:[\\/]*) 12237 ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. 12238 ;; 12239 *) 12240 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12241 for ac_dir in $PATH; do 12242 IFS="$ac_save_IFS" 12243 test -z "$ac_dir" && ac_dir=. 12244 for ac_exec_ext in '' $ac_executable_extensions; do 12245 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12246 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12247 if $ac_dir/$ac_word --statistics /dev/null >&5 2>&1 && 12248 (if $ac_dir/$ac_word --statistics /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12249 ac_cv_path_MSGFMT="$ac_dir/$ac_word$ac_exec_ext" 12250 break 2 12251 fi 12252 fi 12253 done 12254 done 12255 IFS="$ac_save_IFS" 12256 test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT=":" 12257 ;; 12258esac 12259fi 12260MSGFMT="$ac_cv_path_MSGFMT" 12261if test "$MSGFMT" != ":"; then 12262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5 12263$as_echo "$MSGFMT" >&6; } 12264else 12265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12266$as_echo "no" >&6; } 12267fi 12268 12269 # Extract the first word of "gmsgfmt", so it can be a program name with args. 12270set dummy gmsgfmt; ac_word=$2 12271{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12272$as_echo_n "checking for $ac_word... " >&6; } 12273if ${ac_cv_path_GMSGFMT+:} false; then : 12274 $as_echo_n "(cached) " >&6 12275else 12276 case $GMSGFMT in 12277 [\\/]* | ?:[\\/]*) 12278 ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. 12279 ;; 12280 *) 12281 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 12282for as_dir in $PATH 12283do 12284 IFS=$as_save_IFS 12285 test -z "$as_dir" && as_dir=. 12286 for ac_exec_ext in '' $ac_executable_extensions; do 12287 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 12288 ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" 12289 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 12290 break 2 12291 fi 12292done 12293 done 12294IFS=$as_save_IFS 12295 12296 test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" 12297 ;; 12298esac 12299fi 12300GMSGFMT=$ac_cv_path_GMSGFMT 12301if test -n "$GMSGFMT"; then 12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GMSGFMT" >&5 12303$as_echo "$GMSGFMT" >&6; } 12304else 12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12306$as_echo "no" >&6; } 12307fi 12308 12309 12310 12311 case `$MSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12312 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) MSGFMT_015=: ;; 12313 *) MSGFMT_015=$MSGFMT ;; 12314 esac 12315 12316 case `$GMSGFMT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12317 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) GMSGFMT_015=: ;; 12318 *) GMSGFMT_015=$GMSGFMT ;; 12319 esac 12320 12321 12322 12323# Prepare PATH_SEPARATOR. 12324# The user is always right. 12325if test "${PATH_SEPARATOR+set}" != set; then 12326 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12327 # contains only /bin. Note that ksh looks also at the FPATH variable, 12328 # so we have to set that as well for the test. 12329 PATH_SEPARATOR=: 12330 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12331 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12332 || PATH_SEPARATOR=';' 12333 } 12334fi 12335 12336# Find out how to test for executable files. Don't use a zero-byte file, 12337# as systems may use methods other than mode bits to determine executability. 12338cat >conf$$.file <<_ASEOF 12339#! /bin/sh 12340exit 0 12341_ASEOF 12342chmod +x conf$$.file 12343if test -x conf$$.file >/dev/null 2>&1; then 12344 ac_executable_p="test -x" 12345else 12346 ac_executable_p="test -f" 12347fi 12348rm -f conf$$.file 12349 12350# Extract the first word of "xgettext", so it can be a program name with args. 12351set dummy xgettext; ac_word=$2 12352{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12353$as_echo_n "checking for $ac_word... " >&6; } 12354if ${ac_cv_path_XGETTEXT+:} false; then : 12355 $as_echo_n "(cached) " >&6 12356else 12357 case "$XGETTEXT" in 12358 [\\/]* | ?:[\\/]*) 12359 ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. 12360 ;; 12361 *) 12362 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12363 for ac_dir in $PATH; do 12364 IFS="$ac_save_IFS" 12365 test -z "$ac_dir" && ac_dir=. 12366 for ac_exec_ext in '' $ac_executable_extensions; do 12367 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12368 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12369 if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null >&5 2>&1 && 12370 (if $ac_dir/$ac_word --omit-header --copyright-holder= --msgid-bugs-address= /dev/null 2>&1 >/dev/null | grep usage >/dev/null; then exit 1; else exit 0; fi); then 12371 ac_cv_path_XGETTEXT="$ac_dir/$ac_word$ac_exec_ext" 12372 break 2 12373 fi 12374 fi 12375 done 12376 done 12377 IFS="$ac_save_IFS" 12378 test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" 12379 ;; 12380esac 12381fi 12382XGETTEXT="$ac_cv_path_XGETTEXT" 12383if test "$XGETTEXT" != ":"; then 12384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5 12385$as_echo "$XGETTEXT" >&6; } 12386else 12387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12388$as_echo "no" >&6; } 12389fi 12390 12391 rm -f messages.po 12392 12393 case `$XGETTEXT --version | sed 1q | sed -e 's,^[^0-9]*,,'` in 12394 '' | 0.[0-9] | 0.[0-9].* | 0.1[0-4] | 0.1[0-4].*) XGETTEXT_015=: ;; 12395 *) XGETTEXT_015=$XGETTEXT ;; 12396 esac 12397 12398 12399 12400# Prepare PATH_SEPARATOR. 12401# The user is always right. 12402if test "${PATH_SEPARATOR+set}" != set; then 12403 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12404 # contains only /bin. Note that ksh looks also at the FPATH variable, 12405 # so we have to set that as well for the test. 12406 PATH_SEPARATOR=: 12407 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12408 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12409 || PATH_SEPARATOR=';' 12410 } 12411fi 12412 12413# Find out how to test for executable files. Don't use a zero-byte file, 12414# as systems may use methods other than mode bits to determine executability. 12415cat >conf$$.file <<_ASEOF 12416#! /bin/sh 12417exit 0 12418_ASEOF 12419chmod +x conf$$.file 12420if test -x conf$$.file >/dev/null 2>&1; then 12421 ac_executable_p="test -x" 12422else 12423 ac_executable_p="test -f" 12424fi 12425rm -f conf$$.file 12426 12427# Extract the first word of "msgmerge", so it can be a program name with args. 12428set dummy msgmerge; ac_word=$2 12429{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 12430$as_echo_n "checking for $ac_word... " >&6; } 12431if ${ac_cv_path_MSGMERGE+:} false; then : 12432 $as_echo_n "(cached) " >&6 12433else 12434 case "$MSGMERGE" in 12435 [\\/]* | ?:[\\/]*) 12436 ac_cv_path_MSGMERGE="$MSGMERGE" # Let the user override the test with a path. 12437 ;; 12438 *) 12439 ac_save_IFS="$IFS"; IFS=$PATH_SEPARATOR 12440 for ac_dir in $PATH; do 12441 IFS="$ac_save_IFS" 12442 test -z "$ac_dir" && ac_dir=. 12443 for ac_exec_ext in '' $ac_executable_extensions; do 12444 if $ac_executable_p "$ac_dir/$ac_word$ac_exec_ext"; then 12445 echo "$as_me: trying $ac_dir/$ac_word..." >&5 12446 if $ac_dir/$ac_word --update -q /dev/null /dev/null >&5 2>&1; then 12447 ac_cv_path_MSGMERGE="$ac_dir/$ac_word$ac_exec_ext" 12448 break 2 12449 fi 12450 fi 12451 done 12452 done 12453 IFS="$ac_save_IFS" 12454 test -z "$ac_cv_path_MSGMERGE" && ac_cv_path_MSGMERGE=":" 12455 ;; 12456esac 12457fi 12458MSGMERGE="$ac_cv_path_MSGMERGE" 12459if test "$MSGMERGE" != ":"; then 12460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5 12461$as_echo "$MSGMERGE" >&6; } 12462else 12463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12464$as_echo "no" >&6; } 12465fi 12466 12467 12468 test -n "$localedir" || localedir='${datadir}/locale' 12469 12470 12471 test -n "${XGETTEXT_EXTRA_OPTIONS+set}" || XGETTEXT_EXTRA_OPTIONS= 12472 12473 12474 ac_config_commands="$ac_config_commands po-directories" 12475 12476 12477 12478 if test "X$prefix" = "XNONE"; then 12479 acl_final_prefix="$ac_default_prefix" 12480 else 12481 acl_final_prefix="$prefix" 12482 fi 12483 if test "X$exec_prefix" = "XNONE"; then 12484 acl_final_exec_prefix='${prefix}' 12485 else 12486 acl_final_exec_prefix="$exec_prefix" 12487 fi 12488 acl_save_prefix="$prefix" 12489 prefix="$acl_final_prefix" 12490 eval acl_final_exec_prefix=\"$acl_final_exec_prefix\" 12491 prefix="$acl_save_prefix" 12492 12493 12494 12495# Check whether --with-gnu-ld was given. 12496if test "${with_gnu_ld+set}" = set; then : 12497 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes 12498else 12499 with_gnu_ld=no 12500fi 12501 12502# Prepare PATH_SEPARATOR. 12503# The user is always right. 12504if test "${PATH_SEPARATOR+set}" != set; then 12505 # Determine PATH_SEPARATOR by trying to find /bin/sh in a PATH which 12506 # contains only /bin. Note that ksh looks also at the FPATH variable, 12507 # so we have to set that as well for the test. 12508 PATH_SEPARATOR=: 12509 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12510 && { (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 \ 12511 || PATH_SEPARATOR=';' 12512 } 12513fi 12514 12515ac_prog=ld 12516if test "$GCC" = yes; then 12517 # Check if gcc -print-prog-name=ld gives a path. 12518 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 12519$as_echo_n "checking for ld used by $CC... " >&6; } 12520 case $host in 12521 *-*-mingw*) 12522 # gcc leaves a trailing carriage return which upsets mingw 12523 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 12524 *) 12525 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 12526 esac 12527 case $ac_prog in 12528 # Accept absolute paths. 12529 [\\/]* | ?:[\\/]*) 12530 re_direlt='/[^/][^/]*/\.\./' 12531 # Canonicalize the pathname of ld 12532 ac_prog=`echo "$ac_prog"| sed 's%\\\\%/%g'` 12533 while echo "$ac_prog" | grep "$re_direlt" > /dev/null 2>&1; do 12534 ac_prog=`echo $ac_prog| sed "s%$re_direlt%/%"` 12535 done 12536 test -z "$LD" && LD="$ac_prog" 12537 ;; 12538 "") 12539 # If it fails, then pretend we aren't using GCC. 12540 ac_prog=ld 12541 ;; 12542 *) 12543 # If it is relative, then search for the first ld in PATH. 12544 with_gnu_ld=unknown 12545 ;; 12546 esac 12547elif test "$with_gnu_ld" = yes; then 12548 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 12549$as_echo_n "checking for GNU ld... " >&6; } 12550else 12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 12552$as_echo_n "checking for non-GNU ld... " >&6; } 12553fi 12554if ${acl_cv_path_LD+:} false; then : 12555 $as_echo_n "(cached) " >&6 12556else 12557 if test -z "$LD"; then 12558 acl_save_ifs="$IFS"; IFS=$PATH_SEPARATOR 12559 for ac_dir in $PATH; do 12560 IFS="$acl_save_ifs" 12561 test -z "$ac_dir" && ac_dir=. 12562 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 12563 acl_cv_path_LD="$ac_dir/$ac_prog" 12564 # Check to see if the program is GNU ld. I'd rather use --version, 12565 # but apparently some variants of GNU ld only accept -v. 12566 # Break only if it was the GNU/non-GNU ld that we prefer. 12567 case `"$acl_cv_path_LD" -v 2>&1 </dev/null` in 12568 *GNU* | *'with BFD'*) 12569 test "$with_gnu_ld" != no && break 12570 ;; 12571 *) 12572 test "$with_gnu_ld" != yes && break 12573 ;; 12574 esac 12575 fi 12576 done 12577 IFS="$acl_save_ifs" 12578else 12579 acl_cv_path_LD="$LD" # Let the user override the test with a path. 12580fi 12581fi 12582 12583LD="$acl_cv_path_LD" 12584if test -n "$LD"; then 12585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 12586$as_echo "$LD" >&6; } 12587else 12588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 12589$as_echo "no" >&6; } 12590fi 12591test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 12592{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 12593$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 12594if ${acl_cv_prog_gnu_ld+:} false; then : 12595 $as_echo_n "(cached) " >&6 12596else 12597 # I'd rather use --version here, but apparently some GNU lds only accept -v. 12598case `$LD -v 2>&1 </dev/null` in 12599*GNU* | *'with BFD'*) 12600 acl_cv_prog_gnu_ld=yes 12601 ;; 12602*) 12603 acl_cv_prog_gnu_ld=no 12604 ;; 12605esac 12606fi 12607{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_prog_gnu_ld" >&5 12608$as_echo "$acl_cv_prog_gnu_ld" >&6; } 12609with_gnu_ld=$acl_cv_prog_gnu_ld 12610 12611 12612 12613 12614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shared library run path origin" >&5 12615$as_echo_n "checking for shared library run path origin... " >&6; } 12616if ${acl_cv_rpath+:} false; then : 12617 $as_echo_n "(cached) " >&6 12618else 12619 12620 CC="$CC" GCC="$GCC" LDFLAGS="$LDFLAGS" LD="$LD" with_gnu_ld="$with_gnu_ld" \ 12621 ${CONFIG_SHELL-/bin/sh} "$ac_aux_dir/config.rpath" "$host" > conftest.sh 12622 . ./conftest.sh 12623 rm -f ./conftest.sh 12624 acl_cv_rpath=done 12625 12626fi 12627{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $acl_cv_rpath" >&5 12628$as_echo "$acl_cv_rpath" >&6; } 12629 wl="$acl_cv_wl" 12630 acl_libext="$acl_cv_libext" 12631 acl_shlibext="$acl_cv_shlibext" 12632 acl_libname_spec="$acl_cv_libname_spec" 12633 acl_library_names_spec="$acl_cv_library_names_spec" 12634 acl_hardcode_libdir_flag_spec="$acl_cv_hardcode_libdir_flag_spec" 12635 acl_hardcode_libdir_separator="$acl_cv_hardcode_libdir_separator" 12636 acl_hardcode_direct="$acl_cv_hardcode_direct" 12637 acl_hardcode_minus_L="$acl_cv_hardcode_minus_L" 12638 # Check whether --enable-rpath was given. 12639if test "${enable_rpath+set}" = set; then : 12640 enableval=$enable_rpath; : 12641else 12642 enable_rpath=yes 12643fi 12644 12645 12646 12647 12648 acl_libdirstem=lib 12649 acl_libdirstem2= 12650 case "$host_os" in 12651 solaris*) 12652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64-bit host" >&5 12653$as_echo_n "checking for 64-bit host... " >&6; } 12654if ${gl_cv_solaris_64bit+:} false; then : 12655 $as_echo_n "(cached) " >&6 12656else 12657 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 12658/* end confdefs.h. */ 12659 12660#ifdef _LP64 12661sixtyfour bits 12662#endif 12663 12664_ACEOF 12665if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 12666 $EGREP "sixtyfour bits" >/dev/null 2>&1; then : 12667 gl_cv_solaris_64bit=yes 12668else 12669 gl_cv_solaris_64bit=no 12670fi 12671rm -f conftest* 12672 12673 12674fi 12675{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gl_cv_solaris_64bit" >&5 12676$as_echo "$gl_cv_solaris_64bit" >&6; } 12677 if test $gl_cv_solaris_64bit = yes; then 12678 acl_libdirstem=lib/64 12679 case "$host_cpu" in 12680 sparc*) acl_libdirstem2=lib/sparcv9 ;; 12681 i*86 | x86_64) acl_libdirstem2=lib/amd64 ;; 12682 esac 12683 fi 12684 ;; 12685 *) 12686 searchpath=`(LC_ALL=C $CC -print-search-dirs) 2>/dev/null | sed -n -e 's,^libraries: ,,p' | sed -e 's,^=,,'` 12687 if test -n "$searchpath"; then 12688 acl_save_IFS="${IFS= }"; IFS=":" 12689 for searchdir in $searchpath; do 12690 if test -d "$searchdir"; then 12691 case "$searchdir" in 12692 */lib64/ | */lib64 ) acl_libdirstem=lib64 ;; 12693 */../ | */.. ) 12694 # Better ignore directories of this form. They are misleading. 12695 ;; 12696 *) searchdir=`cd "$searchdir" && pwd` 12697 case "$searchdir" in 12698 */lib64 ) acl_libdirstem=lib64 ;; 12699 esac ;; 12700 esac 12701 fi 12702 done 12703 IFS="$acl_save_IFS" 12704 fi 12705 ;; 12706 esac 12707 test -n "$acl_libdirstem2" || acl_libdirstem2="$acl_libdirstem" 12708 12709 12710 12711 12712 12713 12714 12715 12716 12717 12718 12719 12720 use_additional=yes 12721 12722 acl_save_prefix="$prefix" 12723 prefix="$acl_final_prefix" 12724 acl_save_exec_prefix="$exec_prefix" 12725 exec_prefix="$acl_final_exec_prefix" 12726 12727 eval additional_includedir=\"$includedir\" 12728 eval additional_libdir=\"$libdir\" 12729 12730 exec_prefix="$acl_save_exec_prefix" 12731 prefix="$acl_save_prefix" 12732 12733 12734# Check whether --with-libiconv-prefix was given. 12735if test "${with_libiconv_prefix+set}" = set; then : 12736 withval=$with_libiconv_prefix; 12737 if test "X$withval" = "Xno"; then 12738 use_additional=no 12739 else 12740 if test "X$withval" = "X"; then 12741 12742 acl_save_prefix="$prefix" 12743 prefix="$acl_final_prefix" 12744 acl_save_exec_prefix="$exec_prefix" 12745 exec_prefix="$acl_final_exec_prefix" 12746 12747 eval additional_includedir=\"$includedir\" 12748 eval additional_libdir=\"$libdir\" 12749 12750 exec_prefix="$acl_save_exec_prefix" 12751 prefix="$acl_save_prefix" 12752 12753 else 12754 additional_includedir="$withval/include" 12755 additional_libdir="$withval/$acl_libdirstem" 12756 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 12757 && ! test -d "$withval/$acl_libdirstem"; then 12758 additional_libdir="$withval/$acl_libdirstem2" 12759 fi 12760 fi 12761 fi 12762 12763fi 12764 12765 LIBICONV= 12766 LTLIBICONV= 12767 INCICONV= 12768 LIBICONV_PREFIX= 12769 HAVE_LIBICONV= 12770 rpathdirs= 12771 ltrpathdirs= 12772 names_already_handled= 12773 names_next_round='iconv ' 12774 while test -n "$names_next_round"; do 12775 names_this_round="$names_next_round" 12776 names_next_round= 12777 for name in $names_this_round; do 12778 already_handled= 12779 for n in $names_already_handled; do 12780 if test "$n" = "$name"; then 12781 already_handled=yes 12782 break 12783 fi 12784 done 12785 if test -z "$already_handled"; then 12786 names_already_handled="$names_already_handled $name" 12787 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 12788 eval value=\"\$HAVE_LIB$uppername\" 12789 if test -n "$value"; then 12790 if test "$value" = yes; then 12791 eval value=\"\$LIB$uppername\" 12792 test -z "$value" || LIBICONV="${LIBICONV}${LIBICONV:+ }$value" 12793 eval value=\"\$LTLIB$uppername\" 12794 test -z "$value" || LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$value" 12795 else 12796 : 12797 fi 12798 else 12799 found_dir= 12800 found_la= 12801 found_so= 12802 found_a= 12803 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 12804 if test -n "$acl_shlibext"; then 12805 shrext=".$acl_shlibext" # typically: shrext=.so 12806 else 12807 shrext= 12808 fi 12809 if test $use_additional = yes; then 12810 dir="$additional_libdir" 12811 if test -n "$acl_shlibext"; then 12812 if test -f "$dir/$libname$shrext"; then 12813 found_dir="$dir" 12814 found_so="$dir/$libname$shrext" 12815 else 12816 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12817 ver=`(cd "$dir" && \ 12818 for f in "$libname$shrext".*; do echo "$f"; done \ 12819 | sed -e "s,^$libname$shrext\\\\.,," \ 12820 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12821 | sed 1q ) 2>/dev/null` 12822 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12823 found_dir="$dir" 12824 found_so="$dir/$libname$shrext.$ver" 12825 fi 12826 else 12827 eval library_names=\"$acl_library_names_spec\" 12828 for f in $library_names; do 12829 if test -f "$dir/$f"; then 12830 found_dir="$dir" 12831 found_so="$dir/$f" 12832 break 12833 fi 12834 done 12835 fi 12836 fi 12837 fi 12838 if test "X$found_dir" = "X"; then 12839 if test -f "$dir/$libname.$acl_libext"; then 12840 found_dir="$dir" 12841 found_a="$dir/$libname.$acl_libext" 12842 fi 12843 fi 12844 if test "X$found_dir" != "X"; then 12845 if test -f "$dir/$libname.la"; then 12846 found_la="$dir/$libname.la" 12847 fi 12848 fi 12849 fi 12850 if test "X$found_dir" = "X"; then 12851 for x in $LDFLAGS $LTLIBICONV; do 12852 12853 acl_save_prefix="$prefix" 12854 prefix="$acl_final_prefix" 12855 acl_save_exec_prefix="$exec_prefix" 12856 exec_prefix="$acl_final_exec_prefix" 12857 eval x=\"$x\" 12858 exec_prefix="$acl_save_exec_prefix" 12859 prefix="$acl_save_prefix" 12860 12861 case "$x" in 12862 -L*) 12863 dir=`echo "X$x" | sed -e 's/^X-L//'` 12864 if test -n "$acl_shlibext"; then 12865 if test -f "$dir/$libname$shrext"; then 12866 found_dir="$dir" 12867 found_so="$dir/$libname$shrext" 12868 else 12869 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 12870 ver=`(cd "$dir" && \ 12871 for f in "$libname$shrext".*; do echo "$f"; done \ 12872 | sed -e "s,^$libname$shrext\\\\.,," \ 12873 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 12874 | sed 1q ) 2>/dev/null` 12875 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 12876 found_dir="$dir" 12877 found_so="$dir/$libname$shrext.$ver" 12878 fi 12879 else 12880 eval library_names=\"$acl_library_names_spec\" 12881 for f in $library_names; do 12882 if test -f "$dir/$f"; then 12883 found_dir="$dir" 12884 found_so="$dir/$f" 12885 break 12886 fi 12887 done 12888 fi 12889 fi 12890 fi 12891 if test "X$found_dir" = "X"; then 12892 if test -f "$dir/$libname.$acl_libext"; then 12893 found_dir="$dir" 12894 found_a="$dir/$libname.$acl_libext" 12895 fi 12896 fi 12897 if test "X$found_dir" != "X"; then 12898 if test -f "$dir/$libname.la"; then 12899 found_la="$dir/$libname.la" 12900 fi 12901 fi 12902 ;; 12903 esac 12904 if test "X$found_dir" != "X"; then 12905 break 12906 fi 12907 done 12908 fi 12909 if test "X$found_dir" != "X"; then 12910 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$found_dir -l$name" 12911 if test "X$found_so" != "X"; then 12912 if test "$enable_rpath" = no \ 12913 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 12914 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 12915 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12916 else 12917 haveit= 12918 for x in $ltrpathdirs; do 12919 if test "X$x" = "X$found_dir"; then 12920 haveit=yes 12921 break 12922 fi 12923 done 12924 if test -z "$haveit"; then 12925 ltrpathdirs="$ltrpathdirs $found_dir" 12926 fi 12927 if test "$acl_hardcode_direct" = yes; then 12928 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12929 else 12930 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 12931 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12932 haveit= 12933 for x in $rpathdirs; do 12934 if test "X$x" = "X$found_dir"; then 12935 haveit=yes 12936 break 12937 fi 12938 done 12939 if test -z "$haveit"; then 12940 rpathdirs="$rpathdirs $found_dir" 12941 fi 12942 else 12943 haveit= 12944 for x in $LDFLAGS $LIBICONV; do 12945 12946 acl_save_prefix="$prefix" 12947 prefix="$acl_final_prefix" 12948 acl_save_exec_prefix="$exec_prefix" 12949 exec_prefix="$acl_final_exec_prefix" 12950 eval x=\"$x\" 12951 exec_prefix="$acl_save_exec_prefix" 12952 prefix="$acl_save_prefix" 12953 12954 if test "X$x" = "X-L$found_dir"; then 12955 haveit=yes 12956 break 12957 fi 12958 done 12959 if test -z "$haveit"; then 12960 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir" 12961 fi 12962 if test "$acl_hardcode_minus_L" != no; then 12963 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_so" 12964 else 12965 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 12966 fi 12967 fi 12968 fi 12969 fi 12970 else 12971 if test "X$found_a" != "X"; then 12972 LIBICONV="${LIBICONV}${LIBICONV:+ }$found_a" 12973 else 12974 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$found_dir -l$name" 12975 fi 12976 fi 12977 additional_includedir= 12978 case "$found_dir" in 12979 */$acl_libdirstem | */$acl_libdirstem/) 12980 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 12981 if test "$name" = 'iconv'; then 12982 LIBICONV_PREFIX="$basedir" 12983 fi 12984 additional_includedir="$basedir/include" 12985 ;; 12986 */$acl_libdirstem2 | */$acl_libdirstem2/) 12987 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 12988 if test "$name" = 'iconv'; then 12989 LIBICONV_PREFIX="$basedir" 12990 fi 12991 additional_includedir="$basedir/include" 12992 ;; 12993 esac 12994 if test "X$additional_includedir" != "X"; then 12995 if test "X$additional_includedir" != "X/usr/include"; then 12996 haveit= 12997 if test "X$additional_includedir" = "X/usr/local/include"; then 12998 if test -n "$GCC"; then 12999 case $host_os in 13000 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13001 esac 13002 fi 13003 fi 13004 if test -z "$haveit"; then 13005 for x in $CPPFLAGS $INCICONV; do 13006 13007 acl_save_prefix="$prefix" 13008 prefix="$acl_final_prefix" 13009 acl_save_exec_prefix="$exec_prefix" 13010 exec_prefix="$acl_final_exec_prefix" 13011 eval x=\"$x\" 13012 exec_prefix="$acl_save_exec_prefix" 13013 prefix="$acl_save_prefix" 13014 13015 if test "X$x" = "X-I$additional_includedir"; then 13016 haveit=yes 13017 break 13018 fi 13019 done 13020 if test -z "$haveit"; then 13021 if test -d "$additional_includedir"; then 13022 INCICONV="${INCICONV}${INCICONV:+ }-I$additional_includedir" 13023 fi 13024 fi 13025 fi 13026 fi 13027 fi 13028 if test -n "$found_la"; then 13029 save_libdir="$libdir" 13030 case "$found_la" in 13031 */* | *\\*) . "$found_la" ;; 13032 *) . "./$found_la" ;; 13033 esac 13034 libdir="$save_libdir" 13035 for dep in $dependency_libs; do 13036 case "$dep" in 13037 -L*) 13038 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13039 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13040 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13041 haveit= 13042 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13043 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13044 if test -n "$GCC"; then 13045 case $host_os in 13046 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13047 esac 13048 fi 13049 fi 13050 if test -z "$haveit"; then 13051 haveit= 13052 for x in $LDFLAGS $LIBICONV; do 13053 13054 acl_save_prefix="$prefix" 13055 prefix="$acl_final_prefix" 13056 acl_save_exec_prefix="$exec_prefix" 13057 exec_prefix="$acl_final_exec_prefix" 13058 eval x=\"$x\" 13059 exec_prefix="$acl_save_exec_prefix" 13060 prefix="$acl_save_prefix" 13061 13062 if test "X$x" = "X-L$additional_libdir"; then 13063 haveit=yes 13064 break 13065 fi 13066 done 13067 if test -z "$haveit"; then 13068 if test -d "$additional_libdir"; then 13069 LIBICONV="${LIBICONV}${LIBICONV:+ }-L$additional_libdir" 13070 fi 13071 fi 13072 haveit= 13073 for x in $LDFLAGS $LTLIBICONV; do 13074 13075 acl_save_prefix="$prefix" 13076 prefix="$acl_final_prefix" 13077 acl_save_exec_prefix="$exec_prefix" 13078 exec_prefix="$acl_final_exec_prefix" 13079 eval x=\"$x\" 13080 exec_prefix="$acl_save_exec_prefix" 13081 prefix="$acl_save_prefix" 13082 13083 if test "X$x" = "X-L$additional_libdir"; then 13084 haveit=yes 13085 break 13086 fi 13087 done 13088 if test -z "$haveit"; then 13089 if test -d "$additional_libdir"; then 13090 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-L$additional_libdir" 13091 fi 13092 fi 13093 fi 13094 fi 13095 ;; 13096 -R*) 13097 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13098 if test "$enable_rpath" != no; then 13099 haveit= 13100 for x in $rpathdirs; do 13101 if test "X$x" = "X$dir"; then 13102 haveit=yes 13103 break 13104 fi 13105 done 13106 if test -z "$haveit"; then 13107 rpathdirs="$rpathdirs $dir" 13108 fi 13109 haveit= 13110 for x in $ltrpathdirs; do 13111 if test "X$x" = "X$dir"; then 13112 haveit=yes 13113 break 13114 fi 13115 done 13116 if test -z "$haveit"; then 13117 ltrpathdirs="$ltrpathdirs $dir" 13118 fi 13119 fi 13120 ;; 13121 -l*) 13122 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 13123 ;; 13124 *.la) 13125 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 13126 ;; 13127 *) 13128 LIBICONV="${LIBICONV}${LIBICONV:+ }$dep" 13129 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }$dep" 13130 ;; 13131 esac 13132 done 13133 fi 13134 else 13135 LIBICONV="${LIBICONV}${LIBICONV:+ }-l$name" 13136 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-l$name" 13137 fi 13138 fi 13139 fi 13140 done 13141 done 13142 if test "X$rpathdirs" != "X"; then 13143 if test -n "$acl_hardcode_libdir_separator"; then 13144 alldirs= 13145 for found_dir in $rpathdirs; do 13146 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 13147 done 13148 acl_save_libdir="$libdir" 13149 libdir="$alldirs" 13150 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13151 libdir="$acl_save_libdir" 13152 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13153 else 13154 for found_dir in $rpathdirs; do 13155 acl_save_libdir="$libdir" 13156 libdir="$found_dir" 13157 eval flag=\"$acl_hardcode_libdir_flag_spec\" 13158 libdir="$acl_save_libdir" 13159 LIBICONV="${LIBICONV}${LIBICONV:+ }$flag" 13160 done 13161 fi 13162 fi 13163 if test "X$ltrpathdirs" != "X"; then 13164 for found_dir in $ltrpathdirs; do 13165 LTLIBICONV="${LTLIBICONV}${LTLIBICONV:+ }-R$found_dir" 13166 done 13167 fi 13168 13169 13170 13171 13172 13173 13174 13175 13176 13177 13178 13179 13180 13181 13182 13183 13184 13185 13186 13187 13188 13189 13190 13191 13192 13193 13194 13195 13196 13197 13198 13199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFPreferencesCopyAppValue" >&5 13200$as_echo_n "checking for CFPreferencesCopyAppValue... " >&6; } 13201if ${gt_cv_func_CFPreferencesCopyAppValue+:} false; then : 13202 $as_echo_n "(cached) " >&6 13203else 13204 gt_save_LIBS="$LIBS" 13205 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13206 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13207/* end confdefs.h. */ 13208#include <CoreFoundation/CFPreferences.h> 13209int 13210main () 13211{ 13212CFPreferencesCopyAppValue(NULL, NULL) 13213 ; 13214 return 0; 13215} 13216_ACEOF 13217if ac_fn_c_try_link "$LINENO"; then : 13218 gt_cv_func_CFPreferencesCopyAppValue=yes 13219else 13220 gt_cv_func_CFPreferencesCopyAppValue=no 13221fi 13222rm -f core conftest.err conftest.$ac_objext \ 13223 conftest$ac_exeext conftest.$ac_ext 13224 LIBS="$gt_save_LIBS" 13225fi 13226{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFPreferencesCopyAppValue" >&5 13227$as_echo "$gt_cv_func_CFPreferencesCopyAppValue" >&6; } 13228 if test $gt_cv_func_CFPreferencesCopyAppValue = yes; then 13229 13230$as_echo "#define HAVE_CFPREFERENCESCOPYAPPVALUE 1" >>confdefs.h 13231 13232 fi 13233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for CFLocaleCopyCurrent" >&5 13234$as_echo_n "checking for CFLocaleCopyCurrent... " >&6; } 13235if ${gt_cv_func_CFLocaleCopyCurrent+:} false; then : 13236 $as_echo_n "(cached) " >&6 13237else 13238 gt_save_LIBS="$LIBS" 13239 LIBS="$LIBS -Wl,-framework -Wl,CoreFoundation" 13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13241/* end confdefs.h. */ 13242#include <CoreFoundation/CFLocale.h> 13243int 13244main () 13245{ 13246CFLocaleCopyCurrent(); 13247 ; 13248 return 0; 13249} 13250_ACEOF 13251if ac_fn_c_try_link "$LINENO"; then : 13252 gt_cv_func_CFLocaleCopyCurrent=yes 13253else 13254 gt_cv_func_CFLocaleCopyCurrent=no 13255fi 13256rm -f core conftest.err conftest.$ac_objext \ 13257 conftest$ac_exeext conftest.$ac_ext 13258 LIBS="$gt_save_LIBS" 13259fi 13260{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_cv_func_CFLocaleCopyCurrent" >&5 13261$as_echo "$gt_cv_func_CFLocaleCopyCurrent" >&6; } 13262 if test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13263 13264$as_echo "#define HAVE_CFLOCALECOPYCURRENT 1" >>confdefs.h 13265 13266 fi 13267 INTL_MACOSX_LIBS= 13268 if test $gt_cv_func_CFPreferencesCopyAppValue = yes || test $gt_cv_func_CFLocaleCopyCurrent = yes; then 13269 INTL_MACOSX_LIBS="-Wl,-framework -Wl,CoreFoundation" 13270 fi 13271 13272 13273 13274 13275 13276 13277 LIBINTL= 13278 LTLIBINTL= 13279 POSUB= 13280 13281 case " $gt_needs " in 13282 *" need-formatstring-macros "*) gt_api_version=3 ;; 13283 *" need-ngettext "*) gt_api_version=2 ;; 13284 *) gt_api_version=1 ;; 13285 esac 13286 gt_func_gnugettext_libc="gt_cv_func_gnugettext${gt_api_version}_libc" 13287 gt_func_gnugettext_libintl="gt_cv_func_gnugettext${gt_api_version}_libintl" 13288 13289 if test "$USE_NLS" = "yes"; then 13290 gt_use_preinstalled_gnugettext=no 13291 13292 13293 if test $gt_api_version -ge 3; then 13294 gt_revision_test_code=' 13295#ifndef __GNU_GETTEXT_SUPPORTED_REVISION 13296#define __GNU_GETTEXT_SUPPORTED_REVISION(major) ((major) == 0 ? 0 : -1) 13297#endif 13298typedef int array [2 * (__GNU_GETTEXT_SUPPORTED_REVISION(0) >= 1) - 1]; 13299' 13300 else 13301 gt_revision_test_code= 13302 fi 13303 if test $gt_api_version -ge 2; then 13304 gt_expression_test_code=' + * ngettext ("", "", 0)' 13305 else 13306 gt_expression_test_code= 13307 fi 13308 13309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libc" >&5 13310$as_echo_n "checking for GNU gettext in libc... " >&6; } 13311if eval \${$gt_func_gnugettext_libc+:} false; then : 13312 $as_echo_n "(cached) " >&6 13313else 13314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13315/* end confdefs.h. */ 13316 13317#include <libintl.h> 13318$gt_revision_test_code 13319extern int _nl_msg_cat_cntr; 13320extern int *_nl_domain_bindings; 13321 13322int 13323main () 13324{ 13325 13326bindtextdomain ("", ""); 13327return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_domain_bindings 13328 13329 ; 13330 return 0; 13331} 13332_ACEOF 13333if ac_fn_c_try_link "$LINENO"; then : 13334 eval "$gt_func_gnugettext_libc=yes" 13335else 13336 eval "$gt_func_gnugettext_libc=no" 13337fi 13338rm -f core conftest.err conftest.$ac_objext \ 13339 conftest$ac_exeext conftest.$ac_ext 13340fi 13341eval ac_res=\$$gt_func_gnugettext_libc 13342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 13343$as_echo "$ac_res" >&6; } 13344 13345 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" != "yes"; }; then 13346 13347 13348 13349 13350 13351 am_save_CPPFLAGS="$CPPFLAGS" 13352 13353 for element in $INCICONV; do 13354 haveit= 13355 for x in $CPPFLAGS; do 13356 13357 acl_save_prefix="$prefix" 13358 prefix="$acl_final_prefix" 13359 acl_save_exec_prefix="$exec_prefix" 13360 exec_prefix="$acl_final_exec_prefix" 13361 eval x=\"$x\" 13362 exec_prefix="$acl_save_exec_prefix" 13363 prefix="$acl_save_prefix" 13364 13365 if test "X$x" = "X$element"; then 13366 haveit=yes 13367 break 13368 fi 13369 done 13370 if test -z "$haveit"; then 13371 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 13372 fi 13373 done 13374 13375 13376 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for iconv" >&5 13377$as_echo_n "checking for iconv... " >&6; } 13378if ${am_cv_func_iconv+:} false; then : 13379 $as_echo_n "(cached) " >&6 13380else 13381 13382 am_cv_func_iconv="no, consider installing GNU libiconv" 13383 am_cv_lib_iconv=no 13384 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13385/* end confdefs.h. */ 13386 13387#include <stdlib.h> 13388#include <iconv.h> 13389 13390int 13391main () 13392{ 13393iconv_t cd = iconv_open("",""); 13394 iconv(cd,NULL,NULL,NULL,NULL); 13395 iconv_close(cd); 13396 ; 13397 return 0; 13398} 13399_ACEOF 13400if ac_fn_c_try_link "$LINENO"; then : 13401 am_cv_func_iconv=yes 13402fi 13403rm -f core conftest.err conftest.$ac_objext \ 13404 conftest$ac_exeext conftest.$ac_ext 13405 if test "$am_cv_func_iconv" != yes; then 13406 am_save_LIBS="$LIBS" 13407 LIBS="$LIBS $LIBICONV" 13408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13409/* end confdefs.h. */ 13410 13411#include <stdlib.h> 13412#include <iconv.h> 13413 13414int 13415main () 13416{ 13417iconv_t cd = iconv_open("",""); 13418 iconv(cd,NULL,NULL,NULL,NULL); 13419 iconv_close(cd); 13420 ; 13421 return 0; 13422} 13423_ACEOF 13424if ac_fn_c_try_link "$LINENO"; then : 13425 am_cv_lib_iconv=yes 13426 am_cv_func_iconv=yes 13427fi 13428rm -f core conftest.err conftest.$ac_objext \ 13429 conftest$ac_exeext conftest.$ac_ext 13430 LIBS="$am_save_LIBS" 13431 fi 13432 13433fi 13434{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv" >&5 13435$as_echo "$am_cv_func_iconv" >&6; } 13436 if test "$am_cv_func_iconv" = yes; then 13437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working iconv" >&5 13438$as_echo_n "checking for working iconv... " >&6; } 13439if ${am_cv_func_iconv_works+:} false; then : 13440 $as_echo_n "(cached) " >&6 13441else 13442 13443 am_save_LIBS="$LIBS" 13444 if test $am_cv_lib_iconv = yes; then 13445 LIBS="$LIBS $LIBICONV" 13446 fi 13447 if test "$cross_compiling" = yes; then : 13448 13449 case "$host_os" in 13450 aix* | hpux*) am_cv_func_iconv_works="guessing no" ;; 13451 *) am_cv_func_iconv_works="guessing yes" ;; 13452 esac 13453 13454else 13455 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 13456/* end confdefs.h. */ 13457 13458#include <iconv.h> 13459#include <string.h> 13460int main () 13461{ 13462 int result = 0; 13463 /* Test against AIX 5.1 bug: Failures are not distinguishable from successful 13464 returns. */ 13465 { 13466 iconv_t cd_utf8_to_88591 = iconv_open ("ISO8859-1", "UTF-8"); 13467 if (cd_utf8_to_88591 != (iconv_t)(-1)) 13468 { 13469 static const char input[] = "\342\202\254"; /* EURO SIGN */ 13470 char buf[10]; 13471 const char *inptr = input; 13472 size_t inbytesleft = strlen (input); 13473 char *outptr = buf; 13474 size_t outbytesleft = sizeof (buf); 13475 size_t res = iconv (cd_utf8_to_88591, 13476 (char **) &inptr, &inbytesleft, 13477 &outptr, &outbytesleft); 13478 if (res == 0) 13479 result |= 1; 13480 iconv_close (cd_utf8_to_88591); 13481 } 13482 } 13483 /* Test against Solaris 10 bug: Failures are not distinguishable from 13484 successful returns. */ 13485 { 13486 iconv_t cd_ascii_to_88591 = iconv_open ("ISO8859-1", "646"); 13487 if (cd_ascii_to_88591 != (iconv_t)(-1)) 13488 { 13489 static const char input[] = "\263"; 13490 char buf[10]; 13491 const char *inptr = input; 13492 size_t inbytesleft = strlen (input); 13493 char *outptr = buf; 13494 size_t outbytesleft = sizeof (buf); 13495 size_t res = iconv (cd_ascii_to_88591, 13496 (char **) &inptr, &inbytesleft, 13497 &outptr, &outbytesleft); 13498 if (res == 0) 13499 result |= 2; 13500 iconv_close (cd_ascii_to_88591); 13501 } 13502 } 13503 /* Test against AIX 6.1..7.1 bug: Buffer overrun. */ 13504 { 13505 iconv_t cd_88591_to_utf8 = iconv_open ("UTF-8", "ISO-8859-1"); 13506 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13507 { 13508 static const char input[] = "\304"; 13509 static char buf[2] = { (char)0xDE, (char)0xAD }; 13510 const char *inptr = input; 13511 size_t inbytesleft = 1; 13512 char *outptr = buf; 13513 size_t outbytesleft = 1; 13514 size_t res = iconv (cd_88591_to_utf8, 13515 (char **) &inptr, &inbytesleft, 13516 &outptr, &outbytesleft); 13517 if (res != (size_t)(-1) || outptr - buf > 1 || buf[1] != (char)0xAD) 13518 result |= 4; 13519 iconv_close (cd_88591_to_utf8); 13520 } 13521 } 13522#if 0 /* This bug could be worked around by the caller. */ 13523 /* Test against HP-UX 11.11 bug: Positive return value instead of 0. */ 13524 { 13525 iconv_t cd_88591_to_utf8 = iconv_open ("utf8", "iso88591"); 13526 if (cd_88591_to_utf8 != (iconv_t)(-1)) 13527 { 13528 static const char input[] = "\304rger mit b\366sen B\374bchen ohne Augenma\337"; 13529 char buf[50]; 13530 const char *inptr = input; 13531 size_t inbytesleft = strlen (input); 13532 char *outptr = buf; 13533 size_t outbytesleft = sizeof (buf); 13534 size_t res = iconv (cd_88591_to_utf8, 13535 (char **) &inptr, &inbytesleft, 13536 &outptr, &outbytesleft); 13537 if ((int)res > 0) 13538 result |= 8; 13539 iconv_close (cd_88591_to_utf8); 13540 } 13541 } 13542#endif 13543 /* Test against HP-UX 11.11 bug: No converter from EUC-JP to UTF-8 is 13544 provided. */ 13545 if (/* Try standardized names. */ 13546 iconv_open ("UTF-8", "EUC-JP") == (iconv_t)(-1) 13547 /* Try IRIX, OSF/1 names. */ 13548 && iconv_open ("UTF-8", "eucJP") == (iconv_t)(-1) 13549 /* Try AIX names. */ 13550 && iconv_open ("UTF-8", "IBM-eucJP") == (iconv_t)(-1) 13551 /* Try HP-UX names. */ 13552 && iconv_open ("utf8", "eucJP") == (iconv_t)(-1)) 13553 result |= 16; 13554 return result; 13555} 13556_ACEOF 13557if ac_fn_c_try_run "$LINENO"; then : 13558 am_cv_func_iconv_works=yes 13559else 13560 am_cv_func_iconv_works=no 13561fi 13562rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 13563 conftest.$ac_objext conftest.beam conftest.$ac_ext 13564fi 13565 13566 LIBS="$am_save_LIBS" 13567 13568fi 13569{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_func_iconv_works" >&5 13570$as_echo "$am_cv_func_iconv_works" >&6; } 13571 case "$am_cv_func_iconv_works" in 13572 *no) am_func_iconv=no am_cv_lib_iconv=no ;; 13573 *) am_func_iconv=yes ;; 13574 esac 13575 else 13576 am_func_iconv=no am_cv_lib_iconv=no 13577 fi 13578 if test "$am_func_iconv" = yes; then 13579 13580$as_echo "#define HAVE_ICONV 1" >>confdefs.h 13581 13582 fi 13583 if test "$am_cv_lib_iconv" = yes; then 13584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libiconv" >&5 13585$as_echo_n "checking how to link with libiconv... " >&6; } 13586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBICONV" >&5 13587$as_echo "$LIBICONV" >&6; } 13588 else 13589 CPPFLAGS="$am_save_CPPFLAGS" 13590 LIBICONV= 13591 LTLIBICONV= 13592 fi 13593 13594 13595 13596 13597 13598 13599 13600 13601 13602 13603 13604 use_additional=yes 13605 13606 acl_save_prefix="$prefix" 13607 prefix="$acl_final_prefix" 13608 acl_save_exec_prefix="$exec_prefix" 13609 exec_prefix="$acl_final_exec_prefix" 13610 13611 eval additional_includedir=\"$includedir\" 13612 eval additional_libdir=\"$libdir\" 13613 13614 exec_prefix="$acl_save_exec_prefix" 13615 prefix="$acl_save_prefix" 13616 13617 13618# Check whether --with-libintl-prefix was given. 13619if test "${with_libintl_prefix+set}" = set; then : 13620 withval=$with_libintl_prefix; 13621 if test "X$withval" = "Xno"; then 13622 use_additional=no 13623 else 13624 if test "X$withval" = "X"; then 13625 13626 acl_save_prefix="$prefix" 13627 prefix="$acl_final_prefix" 13628 acl_save_exec_prefix="$exec_prefix" 13629 exec_prefix="$acl_final_exec_prefix" 13630 13631 eval additional_includedir=\"$includedir\" 13632 eval additional_libdir=\"$libdir\" 13633 13634 exec_prefix="$acl_save_exec_prefix" 13635 prefix="$acl_save_prefix" 13636 13637 else 13638 additional_includedir="$withval/include" 13639 additional_libdir="$withval/$acl_libdirstem" 13640 if test "$acl_libdirstem2" != "$acl_libdirstem" \ 13641 && ! test -d "$withval/$acl_libdirstem"; then 13642 additional_libdir="$withval/$acl_libdirstem2" 13643 fi 13644 fi 13645 fi 13646 13647fi 13648 13649 LIBINTL= 13650 LTLIBINTL= 13651 INCINTL= 13652 LIBINTL_PREFIX= 13653 HAVE_LIBINTL= 13654 rpathdirs= 13655 ltrpathdirs= 13656 names_already_handled= 13657 names_next_round='intl ' 13658 while test -n "$names_next_round"; do 13659 names_this_round="$names_next_round" 13660 names_next_round= 13661 for name in $names_this_round; do 13662 already_handled= 13663 for n in $names_already_handled; do 13664 if test "$n" = "$name"; then 13665 already_handled=yes 13666 break 13667 fi 13668 done 13669 if test -z "$already_handled"; then 13670 names_already_handled="$names_already_handled $name" 13671 uppername=`echo "$name" | sed -e 'y|abcdefghijklmnopqrstuvwxyz./+-|ABCDEFGHIJKLMNOPQRSTUVWXYZ____|'` 13672 eval value=\"\$HAVE_LIB$uppername\" 13673 if test -n "$value"; then 13674 if test "$value" = yes; then 13675 eval value=\"\$LIB$uppername\" 13676 test -z "$value" || LIBINTL="${LIBINTL}${LIBINTL:+ }$value" 13677 eval value=\"\$LTLIB$uppername\" 13678 test -z "$value" || LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$value" 13679 else 13680 : 13681 fi 13682 else 13683 found_dir= 13684 found_la= 13685 found_so= 13686 found_a= 13687 eval libname=\"$acl_libname_spec\" # typically: libname=lib$name 13688 if test -n "$acl_shlibext"; then 13689 shrext=".$acl_shlibext" # typically: shrext=.so 13690 else 13691 shrext= 13692 fi 13693 if test $use_additional = yes; then 13694 dir="$additional_libdir" 13695 if test -n "$acl_shlibext"; then 13696 if test -f "$dir/$libname$shrext"; then 13697 found_dir="$dir" 13698 found_so="$dir/$libname$shrext" 13699 else 13700 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13701 ver=`(cd "$dir" && \ 13702 for f in "$libname$shrext".*; do echo "$f"; done \ 13703 | sed -e "s,^$libname$shrext\\\\.,," \ 13704 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13705 | sed 1q ) 2>/dev/null` 13706 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13707 found_dir="$dir" 13708 found_so="$dir/$libname$shrext.$ver" 13709 fi 13710 else 13711 eval library_names=\"$acl_library_names_spec\" 13712 for f in $library_names; do 13713 if test -f "$dir/$f"; then 13714 found_dir="$dir" 13715 found_so="$dir/$f" 13716 break 13717 fi 13718 done 13719 fi 13720 fi 13721 fi 13722 if test "X$found_dir" = "X"; then 13723 if test -f "$dir/$libname.$acl_libext"; then 13724 found_dir="$dir" 13725 found_a="$dir/$libname.$acl_libext" 13726 fi 13727 fi 13728 if test "X$found_dir" != "X"; then 13729 if test -f "$dir/$libname.la"; then 13730 found_la="$dir/$libname.la" 13731 fi 13732 fi 13733 fi 13734 if test "X$found_dir" = "X"; then 13735 for x in $LDFLAGS $LTLIBINTL; do 13736 13737 acl_save_prefix="$prefix" 13738 prefix="$acl_final_prefix" 13739 acl_save_exec_prefix="$exec_prefix" 13740 exec_prefix="$acl_final_exec_prefix" 13741 eval x=\"$x\" 13742 exec_prefix="$acl_save_exec_prefix" 13743 prefix="$acl_save_prefix" 13744 13745 case "$x" in 13746 -L*) 13747 dir=`echo "X$x" | sed -e 's/^X-L//'` 13748 if test -n "$acl_shlibext"; then 13749 if test -f "$dir/$libname$shrext"; then 13750 found_dir="$dir" 13751 found_so="$dir/$libname$shrext" 13752 else 13753 if test "$acl_library_names_spec" = '$libname$shrext$versuffix'; then 13754 ver=`(cd "$dir" && \ 13755 for f in "$libname$shrext".*; do echo "$f"; done \ 13756 | sed -e "s,^$libname$shrext\\\\.,," \ 13757 | sort -t '.' -n -r -k1,1 -k2,2 -k3,3 -k4,4 -k5,5 \ 13758 | sed 1q ) 2>/dev/null` 13759 if test -n "$ver" && test -f "$dir/$libname$shrext.$ver"; then 13760 found_dir="$dir" 13761 found_so="$dir/$libname$shrext.$ver" 13762 fi 13763 else 13764 eval library_names=\"$acl_library_names_spec\" 13765 for f in $library_names; do 13766 if test -f "$dir/$f"; then 13767 found_dir="$dir" 13768 found_so="$dir/$f" 13769 break 13770 fi 13771 done 13772 fi 13773 fi 13774 fi 13775 if test "X$found_dir" = "X"; then 13776 if test -f "$dir/$libname.$acl_libext"; then 13777 found_dir="$dir" 13778 found_a="$dir/$libname.$acl_libext" 13779 fi 13780 fi 13781 if test "X$found_dir" != "X"; then 13782 if test -f "$dir/$libname.la"; then 13783 found_la="$dir/$libname.la" 13784 fi 13785 fi 13786 ;; 13787 esac 13788 if test "X$found_dir" != "X"; then 13789 break 13790 fi 13791 done 13792 fi 13793 if test "X$found_dir" != "X"; then 13794 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$found_dir -l$name" 13795 if test "X$found_so" != "X"; then 13796 if test "$enable_rpath" = no \ 13797 || test "X$found_dir" = "X/usr/$acl_libdirstem" \ 13798 || test "X$found_dir" = "X/usr/$acl_libdirstem2"; then 13799 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13800 else 13801 haveit= 13802 for x in $ltrpathdirs; do 13803 if test "X$x" = "X$found_dir"; then 13804 haveit=yes 13805 break 13806 fi 13807 done 13808 if test -z "$haveit"; then 13809 ltrpathdirs="$ltrpathdirs $found_dir" 13810 fi 13811 if test "$acl_hardcode_direct" = yes; then 13812 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13813 else 13814 if test -n "$acl_hardcode_libdir_flag_spec" && test "$acl_hardcode_minus_L" = no; then 13815 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13816 haveit= 13817 for x in $rpathdirs; do 13818 if test "X$x" = "X$found_dir"; then 13819 haveit=yes 13820 break 13821 fi 13822 done 13823 if test -z "$haveit"; then 13824 rpathdirs="$rpathdirs $found_dir" 13825 fi 13826 else 13827 haveit= 13828 for x in $LDFLAGS $LIBINTL; do 13829 13830 acl_save_prefix="$prefix" 13831 prefix="$acl_final_prefix" 13832 acl_save_exec_prefix="$exec_prefix" 13833 exec_prefix="$acl_final_exec_prefix" 13834 eval x=\"$x\" 13835 exec_prefix="$acl_save_exec_prefix" 13836 prefix="$acl_save_prefix" 13837 13838 if test "X$x" = "X-L$found_dir"; then 13839 haveit=yes 13840 break 13841 fi 13842 done 13843 if test -z "$haveit"; then 13844 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir" 13845 fi 13846 if test "$acl_hardcode_minus_L" != no; then 13847 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_so" 13848 else 13849 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 13850 fi 13851 fi 13852 fi 13853 fi 13854 else 13855 if test "X$found_a" != "X"; then 13856 LIBINTL="${LIBINTL}${LIBINTL:+ }$found_a" 13857 else 13858 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$found_dir -l$name" 13859 fi 13860 fi 13861 additional_includedir= 13862 case "$found_dir" in 13863 */$acl_libdirstem | */$acl_libdirstem/) 13864 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem/"'*$,,'` 13865 if test "$name" = 'intl'; then 13866 LIBINTL_PREFIX="$basedir" 13867 fi 13868 additional_includedir="$basedir/include" 13869 ;; 13870 */$acl_libdirstem2 | */$acl_libdirstem2/) 13871 basedir=`echo "X$found_dir" | sed -e 's,^X,,' -e "s,/$acl_libdirstem2/"'*$,,'` 13872 if test "$name" = 'intl'; then 13873 LIBINTL_PREFIX="$basedir" 13874 fi 13875 additional_includedir="$basedir/include" 13876 ;; 13877 esac 13878 if test "X$additional_includedir" != "X"; then 13879 if test "X$additional_includedir" != "X/usr/include"; then 13880 haveit= 13881 if test "X$additional_includedir" = "X/usr/local/include"; then 13882 if test -n "$GCC"; then 13883 case $host_os in 13884 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13885 esac 13886 fi 13887 fi 13888 if test -z "$haveit"; then 13889 for x in $CPPFLAGS $INCINTL; do 13890 13891 acl_save_prefix="$prefix" 13892 prefix="$acl_final_prefix" 13893 acl_save_exec_prefix="$exec_prefix" 13894 exec_prefix="$acl_final_exec_prefix" 13895 eval x=\"$x\" 13896 exec_prefix="$acl_save_exec_prefix" 13897 prefix="$acl_save_prefix" 13898 13899 if test "X$x" = "X-I$additional_includedir"; then 13900 haveit=yes 13901 break 13902 fi 13903 done 13904 if test -z "$haveit"; then 13905 if test -d "$additional_includedir"; then 13906 INCINTL="${INCINTL}${INCINTL:+ }-I$additional_includedir" 13907 fi 13908 fi 13909 fi 13910 fi 13911 fi 13912 if test -n "$found_la"; then 13913 save_libdir="$libdir" 13914 case "$found_la" in 13915 */* | *\\*) . "$found_la" ;; 13916 *) . "./$found_la" ;; 13917 esac 13918 libdir="$save_libdir" 13919 for dep in $dependency_libs; do 13920 case "$dep" in 13921 -L*) 13922 additional_libdir=`echo "X$dep" | sed -e 's/^X-L//'` 13923 if test "X$additional_libdir" != "X/usr/$acl_libdirstem" \ 13924 && test "X$additional_libdir" != "X/usr/$acl_libdirstem2"; then 13925 haveit= 13926 if test "X$additional_libdir" = "X/usr/local/$acl_libdirstem" \ 13927 || test "X$additional_libdir" = "X/usr/local/$acl_libdirstem2"; then 13928 if test -n "$GCC"; then 13929 case $host_os in 13930 linux* | gnu* | k*bsd*-gnu) haveit=yes;; 13931 esac 13932 fi 13933 fi 13934 if test -z "$haveit"; then 13935 haveit= 13936 for x in $LDFLAGS $LIBINTL; do 13937 13938 acl_save_prefix="$prefix" 13939 prefix="$acl_final_prefix" 13940 acl_save_exec_prefix="$exec_prefix" 13941 exec_prefix="$acl_final_exec_prefix" 13942 eval x=\"$x\" 13943 exec_prefix="$acl_save_exec_prefix" 13944 prefix="$acl_save_prefix" 13945 13946 if test "X$x" = "X-L$additional_libdir"; then 13947 haveit=yes 13948 break 13949 fi 13950 done 13951 if test -z "$haveit"; then 13952 if test -d "$additional_libdir"; then 13953 LIBINTL="${LIBINTL}${LIBINTL:+ }-L$additional_libdir" 13954 fi 13955 fi 13956 haveit= 13957 for x in $LDFLAGS $LTLIBINTL; do 13958 13959 acl_save_prefix="$prefix" 13960 prefix="$acl_final_prefix" 13961 acl_save_exec_prefix="$exec_prefix" 13962 exec_prefix="$acl_final_exec_prefix" 13963 eval x=\"$x\" 13964 exec_prefix="$acl_save_exec_prefix" 13965 prefix="$acl_save_prefix" 13966 13967 if test "X$x" = "X-L$additional_libdir"; then 13968 haveit=yes 13969 break 13970 fi 13971 done 13972 if test -z "$haveit"; then 13973 if test -d "$additional_libdir"; then 13974 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-L$additional_libdir" 13975 fi 13976 fi 13977 fi 13978 fi 13979 ;; 13980 -R*) 13981 dir=`echo "X$dep" | sed -e 's/^X-R//'` 13982 if test "$enable_rpath" != no; then 13983 haveit= 13984 for x in $rpathdirs; do 13985 if test "X$x" = "X$dir"; then 13986 haveit=yes 13987 break 13988 fi 13989 done 13990 if test -z "$haveit"; then 13991 rpathdirs="$rpathdirs $dir" 13992 fi 13993 haveit= 13994 for x in $ltrpathdirs; do 13995 if test "X$x" = "X$dir"; then 13996 haveit=yes 13997 break 13998 fi 13999 done 14000 if test -z "$haveit"; then 14001 ltrpathdirs="$ltrpathdirs $dir" 14002 fi 14003 fi 14004 ;; 14005 -l*) 14006 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's/^X-l//'` 14007 ;; 14008 *.la) 14009 names_next_round="$names_next_round "`echo "X$dep" | sed -e 's,^X.*/,,' -e 's,^lib,,' -e 's,\.la$,,'` 14010 ;; 14011 *) 14012 LIBINTL="${LIBINTL}${LIBINTL:+ }$dep" 14013 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }$dep" 14014 ;; 14015 esac 14016 done 14017 fi 14018 else 14019 LIBINTL="${LIBINTL}${LIBINTL:+ }-l$name" 14020 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-l$name" 14021 fi 14022 fi 14023 fi 14024 done 14025 done 14026 if test "X$rpathdirs" != "X"; then 14027 if test -n "$acl_hardcode_libdir_separator"; then 14028 alldirs= 14029 for found_dir in $rpathdirs; do 14030 alldirs="${alldirs}${alldirs:+$acl_hardcode_libdir_separator}$found_dir" 14031 done 14032 acl_save_libdir="$libdir" 14033 libdir="$alldirs" 14034 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14035 libdir="$acl_save_libdir" 14036 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14037 else 14038 for found_dir in $rpathdirs; do 14039 acl_save_libdir="$libdir" 14040 libdir="$found_dir" 14041 eval flag=\"$acl_hardcode_libdir_flag_spec\" 14042 libdir="$acl_save_libdir" 14043 LIBINTL="${LIBINTL}${LIBINTL:+ }$flag" 14044 done 14045 fi 14046 fi 14047 if test "X$ltrpathdirs" != "X"; then 14048 for found_dir in $ltrpathdirs; do 14049 LTLIBINTL="${LTLIBINTL}${LTLIBINTL:+ }-R$found_dir" 14050 done 14051 fi 14052 14053 14054 14055 14056 14057 14058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU gettext in libintl" >&5 14059$as_echo_n "checking for GNU gettext in libintl... " >&6; } 14060if eval \${$gt_func_gnugettext_libintl+:} false; then : 14061 $as_echo_n "(cached) " >&6 14062else 14063 gt_save_CPPFLAGS="$CPPFLAGS" 14064 CPPFLAGS="$CPPFLAGS $INCINTL" 14065 gt_save_LIBS="$LIBS" 14066 LIBS="$LIBS $LIBINTL" 14067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14068/* end confdefs.h. */ 14069 14070#include <libintl.h> 14071$gt_revision_test_code 14072extern int _nl_msg_cat_cntr; 14073extern 14074#ifdef __cplusplus 14075"C" 14076#endif 14077const char *_nl_expand_alias (const char *); 14078 14079int 14080main () 14081{ 14082 14083bindtextdomain ("", ""); 14084return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14085 14086 ; 14087 return 0; 14088} 14089_ACEOF 14090if ac_fn_c_try_link "$LINENO"; then : 14091 eval "$gt_func_gnugettext_libintl=yes" 14092else 14093 eval "$gt_func_gnugettext_libintl=no" 14094fi 14095rm -f core conftest.err conftest.$ac_objext \ 14096 conftest$ac_exeext conftest.$ac_ext 14097 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" != yes; } && test -n "$LIBICONV"; then 14098 LIBS="$LIBS $LIBICONV" 14099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14100/* end confdefs.h. */ 14101 14102#include <libintl.h> 14103$gt_revision_test_code 14104extern int _nl_msg_cat_cntr; 14105extern 14106#ifdef __cplusplus 14107"C" 14108#endif 14109const char *_nl_expand_alias (const char *); 14110 14111int 14112main () 14113{ 14114 14115bindtextdomain ("", ""); 14116return * gettext ("")$gt_expression_test_code + _nl_msg_cat_cntr + *_nl_expand_alias ("") 14117 14118 ; 14119 return 0; 14120} 14121_ACEOF 14122if ac_fn_c_try_link "$LINENO"; then : 14123 LIBINTL="$LIBINTL $LIBICONV" 14124 LTLIBINTL="$LTLIBINTL $LTLIBICONV" 14125 eval "$gt_func_gnugettext_libintl=yes" 14126 14127fi 14128rm -f core conftest.err conftest.$ac_objext \ 14129 conftest$ac_exeext conftest.$ac_ext 14130 fi 14131 CPPFLAGS="$gt_save_CPPFLAGS" 14132 LIBS="$gt_save_LIBS" 14133fi 14134eval ac_res=\$$gt_func_gnugettext_libintl 14135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 14136$as_echo "$ac_res" >&6; } 14137 fi 14138 14139 if { eval "gt_val=\$$gt_func_gnugettext_libc"; test "$gt_val" = "yes"; } \ 14140 || { { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; } \ 14141 && test "$PACKAGE" != gettext-runtime \ 14142 && test "$PACKAGE" != gettext-tools; }; then 14143 gt_use_preinstalled_gnugettext=yes 14144 else 14145 LIBINTL= 14146 LTLIBINTL= 14147 INCINTL= 14148 fi 14149 14150 14151 14152 if test -n "$INTL_MACOSX_LIBS"; then 14153 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14154 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14155 LIBINTL="$LIBINTL $INTL_MACOSX_LIBS" 14156 LTLIBINTL="$LTLIBINTL $INTL_MACOSX_LIBS" 14157 fi 14158 fi 14159 14160 if test "$gt_use_preinstalled_gnugettext" = "yes" \ 14161 || test "$nls_cv_use_gnu_gettext" = "yes"; then 14162 14163$as_echo "#define ENABLE_NLS 1" >>confdefs.h 14164 14165 else 14166 USE_NLS=no 14167 fi 14168 fi 14169 14170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use NLS" >&5 14171$as_echo_n "checking whether to use NLS... " >&6; } 14172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_NLS" >&5 14173$as_echo "$USE_NLS" >&6; } 14174 if test "$USE_NLS" = "yes"; then 14175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where the gettext function comes from" >&5 14176$as_echo_n "checking where the gettext function comes from... " >&6; } 14177 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14178 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14179 gt_source="external libintl" 14180 else 14181 gt_source="libc" 14182 fi 14183 else 14184 gt_source="included intl directory" 14185 fi 14186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gt_source" >&5 14187$as_echo "$gt_source" >&6; } 14188 fi 14189 14190 if test "$USE_NLS" = "yes"; then 14191 14192 if test "$gt_use_preinstalled_gnugettext" = "yes"; then 14193 if { eval "gt_val=\$$gt_func_gnugettext_libintl"; test "$gt_val" = "yes"; }; then 14194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to link with libintl" >&5 14195$as_echo_n "checking how to link with libintl... " >&6; } 14196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBINTL" >&5 14197$as_echo "$LIBINTL" >&6; } 14198 14199 for element in $INCINTL; do 14200 haveit= 14201 for x in $CPPFLAGS; do 14202 14203 acl_save_prefix="$prefix" 14204 prefix="$acl_final_prefix" 14205 acl_save_exec_prefix="$exec_prefix" 14206 exec_prefix="$acl_final_exec_prefix" 14207 eval x=\"$x\" 14208 exec_prefix="$acl_save_exec_prefix" 14209 prefix="$acl_save_prefix" 14210 14211 if test "X$x" = "X$element"; then 14212 haveit=yes 14213 break 14214 fi 14215 done 14216 if test -z "$haveit"; then 14217 CPPFLAGS="${CPPFLAGS}${CPPFLAGS:+ }$element" 14218 fi 14219 done 14220 14221 fi 14222 14223 14224$as_echo "#define HAVE_GETTEXT 1" >>confdefs.h 14225 14226 14227$as_echo "#define HAVE_DCGETTEXT 1" >>confdefs.h 14228 14229 fi 14230 14231 POSUB=po 14232 fi 14233 14234 14235 14236 INTLLIBS="$LIBINTL" 14237 14238 14239 14240 14241 14242 14243 14244for ac_prog in 'bison -y' byacc 14245do 14246 # Extract the first word of "$ac_prog", so it can be a program name with args. 14247set dummy $ac_prog; ac_word=$2 14248{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14249$as_echo_n "checking for $ac_word... " >&6; } 14250if ${ac_cv_prog_YACC+:} false; then : 14251 $as_echo_n "(cached) " >&6 14252else 14253 if test -n "$YACC"; then 14254 ac_cv_prog_YACC="$YACC" # Let the user override the test. 14255else 14256as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14257for as_dir in $PATH 14258do 14259 IFS=$as_save_IFS 14260 test -z "$as_dir" && as_dir=. 14261 for ac_exec_ext in '' $ac_executable_extensions; do 14262 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14263 ac_cv_prog_YACC="$ac_prog" 14264 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14265 break 2 14266 fi 14267done 14268 done 14269IFS=$as_save_IFS 14270 14271fi 14272fi 14273YACC=$ac_cv_prog_YACC 14274if test -n "$YACC"; then 14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5 14276$as_echo "$YACC" >&6; } 14277else 14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14279$as_echo "no" >&6; } 14280fi 14281 14282 14283 test -n "$YACC" && break 14284done 14285test -n "$YACC" || YACC="yacc" 14286 14287for ac_prog in flex lex 14288do 14289 # Extract the first word of "$ac_prog", so it can be a program name with args. 14290set dummy $ac_prog; ac_word=$2 14291{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14292$as_echo_n "checking for $ac_word... " >&6; } 14293if ${ac_cv_prog_LEX+:} false; then : 14294 $as_echo_n "(cached) " >&6 14295else 14296 if test -n "$LEX"; then 14297 ac_cv_prog_LEX="$LEX" # Let the user override the test. 14298else 14299as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14300for as_dir in $PATH 14301do 14302 IFS=$as_save_IFS 14303 test -z "$as_dir" && as_dir=. 14304 for ac_exec_ext in '' $ac_executable_extensions; do 14305 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14306 ac_cv_prog_LEX="$ac_prog" 14307 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14308 break 2 14309 fi 14310done 14311 done 14312IFS=$as_save_IFS 14313 14314fi 14315fi 14316LEX=$ac_cv_prog_LEX 14317if test -n "$LEX"; then 14318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5 14319$as_echo "$LEX" >&6; } 14320else 14321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14322$as_echo "no" >&6; } 14323fi 14324 14325 14326 test -n "$LEX" && break 14327done 14328test -n "$LEX" || LEX=":" 14329 14330if test "x$LEX" != "x:"; then 14331 cat >conftest.l <<_ACEOF 14332%% 14333a { ECHO; } 14334b { REJECT; } 14335c { yymore (); } 14336d { yyless (1); } 14337e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */ 14338 yyless ((input () != 0)); } 14339f { unput (yytext[0]); } 14340. { BEGIN INITIAL; } 14341%% 14342#ifdef YYTEXT_POINTER 14343extern char *yytext; 14344#endif 14345int 14346main (void) 14347{ 14348 return ! yylex () + ! yywrap (); 14349} 14350_ACEOF 14351{ { ac_try="$LEX conftest.l" 14352case "(($ac_try" in 14353 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14354 *) ac_try_echo=$ac_try;; 14355esac 14356eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14357$as_echo "$ac_try_echo"; } >&5 14358 (eval "$LEX conftest.l") 2>&5 14359 ac_status=$? 14360 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14361 test $ac_status = 0; } 14362{ $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5 14363$as_echo_n "checking lex output file root... " >&6; } 14364if ${ac_cv_prog_lex_root+:} false; then : 14365 $as_echo_n "(cached) " >&6 14366else 14367 14368if test -f lex.yy.c; then 14369 ac_cv_prog_lex_root=lex.yy 14370elif test -f lexyy.c; then 14371 ac_cv_prog_lex_root=lexyy 14372else 14373 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5 14374fi 14375fi 14376{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5 14377$as_echo "$ac_cv_prog_lex_root" >&6; } 14378LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root 14379 14380if test -z "${LEXLIB+set}"; then 14381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5 14382$as_echo_n "checking lex library... " >&6; } 14383if ${ac_cv_lib_lex+:} false; then : 14384 $as_echo_n "(cached) " >&6 14385else 14386 14387 ac_save_LIBS=$LIBS 14388 ac_cv_lib_lex='none needed' 14389 for ac_lib in '' -lfl -ll; do 14390 LIBS="$ac_lib $ac_save_LIBS" 14391 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14392/* end confdefs.h. */ 14393`cat $LEX_OUTPUT_ROOT.c` 14394_ACEOF 14395if ac_fn_c_try_link "$LINENO"; then : 14396 ac_cv_lib_lex=$ac_lib 14397fi 14398rm -f core conftest.err conftest.$ac_objext \ 14399 conftest$ac_exeext conftest.$ac_ext 14400 test "$ac_cv_lib_lex" != 'none needed' && break 14401 done 14402 LIBS=$ac_save_LIBS 14403 14404fi 14405{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5 14406$as_echo "$ac_cv_lib_lex" >&6; } 14407 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex 14408fi 14409 14410 14411{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5 14412$as_echo_n "checking whether yytext is a pointer... " >&6; } 14413if ${ac_cv_prog_lex_yytext_pointer+:} false; then : 14414 $as_echo_n "(cached) " >&6 14415else 14416 # POSIX says lex can declare yytext either as a pointer or an array; the 14417# default is implementation-dependent. Figure out which it is, since 14418# not all implementations provide the %pointer and %array declarations. 14419ac_cv_prog_lex_yytext_pointer=no 14420ac_save_LIBS=$LIBS 14421LIBS="$LEXLIB $ac_save_LIBS" 14422cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14423/* end confdefs.h. */ 14424 14425 #define YYTEXT_POINTER 1 14426`cat $LEX_OUTPUT_ROOT.c` 14427_ACEOF 14428if ac_fn_c_try_link "$LINENO"; then : 14429 ac_cv_prog_lex_yytext_pointer=yes 14430fi 14431rm -f core conftest.err conftest.$ac_objext \ 14432 conftest$ac_exeext conftest.$ac_ext 14433LIBS=$ac_save_LIBS 14434 14435fi 14436{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5 14437$as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; } 14438if test $ac_cv_prog_lex_yytext_pointer = yes; then 14439 14440$as_echo "#define YYTEXT_POINTER 1" >>confdefs.h 14441 14442fi 14443rm -f conftest.l $LEX_OUTPUT_ROOT.c 14444 14445fi 14446if test "$LEX" = :; then 14447 LEX=${am_missing_run}flex 14448fi 14449ac_ext=c 14450ac_cpp='$CPP $CPPFLAGS' 14451ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14452ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14453ac_compiler_gnu=$ac_cv_c_compiler_gnu 14454if test -n "$ac_tool_prefix"; then 14455 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. 14456set dummy ${ac_tool_prefix}gcc; ac_word=$2 14457{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14458$as_echo_n "checking for $ac_word... " >&6; } 14459if ${ac_cv_prog_CC+:} false; then : 14460 $as_echo_n "(cached) " >&6 14461else 14462 if test -n "$CC"; then 14463 ac_cv_prog_CC="$CC" # Let the user override the test. 14464else 14465as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14466for as_dir in $PATH 14467do 14468 IFS=$as_save_IFS 14469 test -z "$as_dir" && as_dir=. 14470 for ac_exec_ext in '' $ac_executable_extensions; do 14471 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14472 ac_cv_prog_CC="${ac_tool_prefix}gcc" 14473 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14474 break 2 14475 fi 14476done 14477 done 14478IFS=$as_save_IFS 14479 14480fi 14481fi 14482CC=$ac_cv_prog_CC 14483if test -n "$CC"; then 14484 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14485$as_echo "$CC" >&6; } 14486else 14487 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14488$as_echo "no" >&6; } 14489fi 14490 14491 14492fi 14493if test -z "$ac_cv_prog_CC"; then 14494 ac_ct_CC=$CC 14495 # Extract the first word of "gcc", so it can be a program name with args. 14496set dummy gcc; ac_word=$2 14497{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14498$as_echo_n "checking for $ac_word... " >&6; } 14499if ${ac_cv_prog_ac_ct_CC+:} false; then : 14500 $as_echo_n "(cached) " >&6 14501else 14502 if test -n "$ac_ct_CC"; then 14503 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14504else 14505as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14506for as_dir in $PATH 14507do 14508 IFS=$as_save_IFS 14509 test -z "$as_dir" && as_dir=. 14510 for ac_exec_ext in '' $ac_executable_extensions; do 14511 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14512 ac_cv_prog_ac_ct_CC="gcc" 14513 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14514 break 2 14515 fi 14516done 14517 done 14518IFS=$as_save_IFS 14519 14520fi 14521fi 14522ac_ct_CC=$ac_cv_prog_ac_ct_CC 14523if test -n "$ac_ct_CC"; then 14524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14525$as_echo "$ac_ct_CC" >&6; } 14526else 14527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14528$as_echo "no" >&6; } 14529fi 14530 14531 if test "x$ac_ct_CC" = x; then 14532 CC="" 14533 else 14534 case $cross_compiling:$ac_tool_warned in 14535yes:) 14536{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14537$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14538ac_tool_warned=yes ;; 14539esac 14540 CC=$ac_ct_CC 14541 fi 14542else 14543 CC="$ac_cv_prog_CC" 14544fi 14545 14546if test -z "$CC"; then 14547 if test -n "$ac_tool_prefix"; then 14548 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. 14549set dummy ${ac_tool_prefix}cc; ac_word=$2 14550{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14551$as_echo_n "checking for $ac_word... " >&6; } 14552if ${ac_cv_prog_CC+:} false; then : 14553 $as_echo_n "(cached) " >&6 14554else 14555 if test -n "$CC"; then 14556 ac_cv_prog_CC="$CC" # Let the user override the test. 14557else 14558as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14559for as_dir in $PATH 14560do 14561 IFS=$as_save_IFS 14562 test -z "$as_dir" && as_dir=. 14563 for ac_exec_ext in '' $ac_executable_extensions; do 14564 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14565 ac_cv_prog_CC="${ac_tool_prefix}cc" 14566 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14567 break 2 14568 fi 14569done 14570 done 14571IFS=$as_save_IFS 14572 14573fi 14574fi 14575CC=$ac_cv_prog_CC 14576if test -n "$CC"; then 14577 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14578$as_echo "$CC" >&6; } 14579else 14580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14581$as_echo "no" >&6; } 14582fi 14583 14584 14585 fi 14586fi 14587if test -z "$CC"; then 14588 # Extract the first word of "cc", so it can be a program name with args. 14589set dummy cc; ac_word=$2 14590{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14591$as_echo_n "checking for $ac_word... " >&6; } 14592if ${ac_cv_prog_CC+:} false; then : 14593 $as_echo_n "(cached) " >&6 14594else 14595 if test -n "$CC"; then 14596 ac_cv_prog_CC="$CC" # Let the user override the test. 14597else 14598 ac_prog_rejected=no 14599as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14600for as_dir in $PATH 14601do 14602 IFS=$as_save_IFS 14603 test -z "$as_dir" && as_dir=. 14604 for ac_exec_ext in '' $ac_executable_extensions; do 14605 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14606 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then 14607 ac_prog_rejected=yes 14608 continue 14609 fi 14610 ac_cv_prog_CC="cc" 14611 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14612 break 2 14613 fi 14614done 14615 done 14616IFS=$as_save_IFS 14617 14618if test $ac_prog_rejected = yes; then 14619 # We found a bogon in the path, so make sure we never use it. 14620 set dummy $ac_cv_prog_CC 14621 shift 14622 if test $# != 0; then 14623 # We chose a different compiler from the bogus one. 14624 # However, it has the same basename, so the bogon will be chosen 14625 # first if we set CC to just the basename; use the full file name. 14626 shift 14627 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" 14628 fi 14629fi 14630fi 14631fi 14632CC=$ac_cv_prog_CC 14633if test -n "$CC"; then 14634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14635$as_echo "$CC" >&6; } 14636else 14637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14638$as_echo "no" >&6; } 14639fi 14640 14641 14642fi 14643if test -z "$CC"; then 14644 if test -n "$ac_tool_prefix"; then 14645 for ac_prog in cl.exe 14646 do 14647 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 14648set dummy $ac_tool_prefix$ac_prog; ac_word=$2 14649{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14650$as_echo_n "checking for $ac_word... " >&6; } 14651if ${ac_cv_prog_CC+:} false; then : 14652 $as_echo_n "(cached) " >&6 14653else 14654 if test -n "$CC"; then 14655 ac_cv_prog_CC="$CC" # Let the user override the test. 14656else 14657as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14658for as_dir in $PATH 14659do 14660 IFS=$as_save_IFS 14661 test -z "$as_dir" && as_dir=. 14662 for ac_exec_ext in '' $ac_executable_extensions; do 14663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14664 ac_cv_prog_CC="$ac_tool_prefix$ac_prog" 14665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14666 break 2 14667 fi 14668done 14669 done 14670IFS=$as_save_IFS 14671 14672fi 14673fi 14674CC=$ac_cv_prog_CC 14675if test -n "$CC"; then 14676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 14677$as_echo "$CC" >&6; } 14678else 14679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14680$as_echo "no" >&6; } 14681fi 14682 14683 14684 test -n "$CC" && break 14685 done 14686fi 14687if test -z "$CC"; then 14688 ac_ct_CC=$CC 14689 for ac_prog in cl.exe 14690do 14691 # Extract the first word of "$ac_prog", so it can be a program name with args. 14692set dummy $ac_prog; ac_word=$2 14693{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 14694$as_echo_n "checking for $ac_word... " >&6; } 14695if ${ac_cv_prog_ac_ct_CC+:} false; then : 14696 $as_echo_n "(cached) " >&6 14697else 14698 if test -n "$ac_ct_CC"; then 14699 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. 14700else 14701as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 14702for as_dir in $PATH 14703do 14704 IFS=$as_save_IFS 14705 test -z "$as_dir" && as_dir=. 14706 for ac_exec_ext in '' $ac_executable_extensions; do 14707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 14708 ac_cv_prog_ac_ct_CC="$ac_prog" 14709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 14710 break 2 14711 fi 14712done 14713 done 14714IFS=$as_save_IFS 14715 14716fi 14717fi 14718ac_ct_CC=$ac_cv_prog_ac_ct_CC 14719if test -n "$ac_ct_CC"; then 14720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 14721$as_echo "$ac_ct_CC" >&6; } 14722else 14723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 14724$as_echo "no" >&6; } 14725fi 14726 14727 14728 test -n "$ac_ct_CC" && break 14729done 14730 14731 if test "x$ac_ct_CC" = x; then 14732 CC="" 14733 else 14734 case $cross_compiling:$ac_tool_warned in 14735yes:) 14736{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 14737$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 14738ac_tool_warned=yes ;; 14739esac 14740 CC=$ac_ct_CC 14741 fi 14742fi 14743 14744fi 14745 14746 14747test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 14748$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 14749as_fn_error $? "no acceptable C compiler found in \$PATH 14750See \`config.log' for more details" "$LINENO" 5; } 14751 14752# Provide some information about the compiler. 14753$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 14754set X $ac_compile 14755ac_compiler=$2 14756for ac_option in --version -v -V -qversion; do 14757 { { ac_try="$ac_compiler $ac_option >&5" 14758case "(($ac_try" in 14759 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 14760 *) ac_try_echo=$ac_try;; 14761esac 14762eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 14763$as_echo "$ac_try_echo"; } >&5 14764 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 14765 ac_status=$? 14766 if test -s conftest.err; then 14767 sed '10a\ 14768... rest of stderr output deleted ... 14769 10q' conftest.err >conftest.er1 14770 cat conftest.er1 >&5 14771 fi 14772 rm -f conftest.er1 conftest.err 14773 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 14774 test $ac_status = 0; } 14775done 14776 14777{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 14778$as_echo_n "checking whether we are using the GNU C compiler... " >&6; } 14779if ${ac_cv_c_compiler_gnu+:} false; then : 14780 $as_echo_n "(cached) " >&6 14781else 14782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14783/* end confdefs.h. */ 14784 14785int 14786main () 14787{ 14788#ifndef __GNUC__ 14789 choke me 14790#endif 14791 14792 ; 14793 return 0; 14794} 14795_ACEOF 14796if ac_fn_c_try_compile "$LINENO"; then : 14797 ac_compiler_gnu=yes 14798else 14799 ac_compiler_gnu=no 14800fi 14801rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14802ac_cv_c_compiler_gnu=$ac_compiler_gnu 14803 14804fi 14805{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 14806$as_echo "$ac_cv_c_compiler_gnu" >&6; } 14807if test $ac_compiler_gnu = yes; then 14808 GCC=yes 14809else 14810 GCC= 14811fi 14812ac_test_CFLAGS=${CFLAGS+set} 14813ac_save_CFLAGS=$CFLAGS 14814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 14815$as_echo_n "checking whether $CC accepts -g... " >&6; } 14816if ${ac_cv_prog_cc_g+:} false; then : 14817 $as_echo_n "(cached) " >&6 14818else 14819 ac_save_c_werror_flag=$ac_c_werror_flag 14820 ac_c_werror_flag=yes 14821 ac_cv_prog_cc_g=no 14822 CFLAGS="-g" 14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14824/* end confdefs.h. */ 14825 14826int 14827main () 14828{ 14829 14830 ; 14831 return 0; 14832} 14833_ACEOF 14834if ac_fn_c_try_compile "$LINENO"; then : 14835 ac_cv_prog_cc_g=yes 14836else 14837 CFLAGS="" 14838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14839/* end confdefs.h. */ 14840 14841int 14842main () 14843{ 14844 14845 ; 14846 return 0; 14847} 14848_ACEOF 14849if ac_fn_c_try_compile "$LINENO"; then : 14850 14851else 14852 ac_c_werror_flag=$ac_save_c_werror_flag 14853 CFLAGS="-g" 14854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14855/* end confdefs.h. */ 14856 14857int 14858main () 14859{ 14860 14861 ; 14862 return 0; 14863} 14864_ACEOF 14865if ac_fn_c_try_compile "$LINENO"; then : 14866 ac_cv_prog_cc_g=yes 14867fi 14868rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14869fi 14870rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14871fi 14872rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 14873 ac_c_werror_flag=$ac_save_c_werror_flag 14874fi 14875{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 14876$as_echo "$ac_cv_prog_cc_g" >&6; } 14877if test "$ac_test_CFLAGS" = set; then 14878 CFLAGS=$ac_save_CFLAGS 14879elif test $ac_cv_prog_cc_g = yes; then 14880 if test "$GCC" = yes; then 14881 CFLAGS="-g -O2" 14882 else 14883 CFLAGS="-g" 14884 fi 14885else 14886 if test "$GCC" = yes; then 14887 CFLAGS="-O2" 14888 else 14889 CFLAGS= 14890 fi 14891fi 14892{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 14893$as_echo_n "checking for $CC option to accept ISO C89... " >&6; } 14894if ${ac_cv_prog_cc_c89+:} false; then : 14895 $as_echo_n "(cached) " >&6 14896else 14897 ac_cv_prog_cc_c89=no 14898ac_save_CC=$CC 14899cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14900/* end confdefs.h. */ 14901#include <stdarg.h> 14902#include <stdio.h> 14903struct stat; 14904/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ 14905struct buf { int x; }; 14906FILE * (*rcsopen) (struct buf *, struct stat *, int); 14907static char *e (p, i) 14908 char **p; 14909 int i; 14910{ 14911 return p[i]; 14912} 14913static char *f (char * (*g) (char **, int), char **p, ...) 14914{ 14915 char *s; 14916 va_list v; 14917 va_start (v,p); 14918 s = g (p, va_arg (v,int)); 14919 va_end (v); 14920 return s; 14921} 14922 14923/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has 14924 function prototypes and stuff, but not '\xHH' hex character constants. 14925 These don't provoke an error unfortunately, instead are silently treated 14926 as 'x'. The following induces an error, until -std is added to get 14927 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an 14928 array size at least. It's necessary to write '\x00'==0 to get something 14929 that's true only with -std. */ 14930int osf4_cc_array ['\x00' == 0 ? 1 : -1]; 14931 14932/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters 14933 inside strings and character constants. */ 14934#define FOO(x) 'x' 14935int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; 14936 14937int test (int i, double x); 14938struct s1 {int (*f) (int a);}; 14939struct s2 {int (*f) (double a);}; 14940int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); 14941int argc; 14942char **argv; 14943int 14944main () 14945{ 14946return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; 14947 ; 14948 return 0; 14949} 14950_ACEOF 14951for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ 14952 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" 14953do 14954 CC="$ac_save_CC $ac_arg" 14955 if ac_fn_c_try_compile "$LINENO"; then : 14956 ac_cv_prog_cc_c89=$ac_arg 14957fi 14958rm -f core conftest.err conftest.$ac_objext 14959 test "x$ac_cv_prog_cc_c89" != "xno" && break 14960done 14961rm -f conftest.$ac_ext 14962CC=$ac_save_CC 14963 14964fi 14965# AC_CACHE_VAL 14966case "x$ac_cv_prog_cc_c89" in 14967 x) 14968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 14969$as_echo "none needed" >&6; } ;; 14970 xno) 14971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 14972$as_echo "unsupported" >&6; } ;; 14973 *) 14974 CC="$CC $ac_cv_prog_cc_c89" 14975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 14976$as_echo "$ac_cv_prog_cc_c89" >&6; } ;; 14977esac 14978if test "x$ac_cv_prog_cc_c89" != xno; then : 14979 14980fi 14981 14982ac_ext=c 14983ac_cpp='$CPP $CPPFLAGS' 14984ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14985ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14986ac_compiler_gnu=$ac_cv_c_compiler_gnu 14987 14988ac_ext=c 14989ac_cpp='$CPP $CPPFLAGS' 14990ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 14991ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 14992ac_compiler_gnu=$ac_cv_c_compiler_gnu 14993{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 14994$as_echo_n "checking whether $CC understands -c and -o together... " >&6; } 14995if ${am_cv_prog_cc_c_o+:} false; then : 14996 $as_echo_n "(cached) " >&6 14997else 14998 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 14999/* end confdefs.h. */ 15000 15001int 15002main () 15003{ 15004 15005 ; 15006 return 0; 15007} 15008_ACEOF 15009 # Make sure it works both with $CC and with simple cc. 15010 # Following AC_PROG_CC_C_O, we do the test twice because some 15011 # compilers refuse to overwrite an existing .o file with -o, 15012 # though they will create one. 15013 am_cv_prog_cc_c_o=yes 15014 for am_i in 1 2; do 15015 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 15016 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 15017 ac_status=$? 15018 echo "$as_me:$LINENO: \$? = $ac_status" >&5 15019 (exit $ac_status); } \ 15020 && test -f conftest2.$ac_objext; then 15021 : OK 15022 else 15023 am_cv_prog_cc_c_o=no 15024 break 15025 fi 15026 done 15027 rm -f core conftest* 15028 unset am_i 15029fi 15030{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 15031$as_echo "$am_cv_prog_cc_c_o" >&6; } 15032if test "$am_cv_prog_cc_c_o" != yes; then 15033 # Losing compiler, so override with the script. 15034 # FIXME: It is wrong to rewrite CC. 15035 # But if we don't then we get into trouble of one sort or another. 15036 # A longer-term fix would be to have automake use am__CC in this case, 15037 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" 15038 CC="$am_aux_dir/compile $CC" 15039fi 15040ac_ext=c 15041ac_cpp='$CPP $CPPFLAGS' 15042ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15043ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15044ac_compiler_gnu=$ac_cv_c_compiler_gnu 15045 15046 15047ac_ext=cpp 15048ac_cpp='$CXXCPP $CPPFLAGS' 15049ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15050ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15051ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15052if test -z "$CXX"; then 15053 if test -n "$CCC"; then 15054 CXX=$CCC 15055 else 15056 if test -n "$ac_tool_prefix"; then 15057 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 15058 do 15059 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. 15060set dummy $ac_tool_prefix$ac_prog; ac_word=$2 15061{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15062$as_echo_n "checking for $ac_word... " >&6; } 15063if ${ac_cv_prog_CXX+:} false; then : 15064 $as_echo_n "(cached) " >&6 15065else 15066 if test -n "$CXX"; then 15067 ac_cv_prog_CXX="$CXX" # Let the user override the test. 15068else 15069as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15070for as_dir in $PATH 15071do 15072 IFS=$as_save_IFS 15073 test -z "$as_dir" && as_dir=. 15074 for ac_exec_ext in '' $ac_executable_extensions; do 15075 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15076 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" 15077 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15078 break 2 15079 fi 15080done 15081 done 15082IFS=$as_save_IFS 15083 15084fi 15085fi 15086CXX=$ac_cv_prog_CXX 15087if test -n "$CXX"; then 15088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 15089$as_echo "$CXX" >&6; } 15090else 15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15092$as_echo "no" >&6; } 15093fi 15094 15095 15096 test -n "$CXX" && break 15097 done 15098fi 15099if test -z "$CXX"; then 15100 ac_ct_CXX=$CXX 15101 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC 15102do 15103 # Extract the first word of "$ac_prog", so it can be a program name with args. 15104set dummy $ac_prog; ac_word=$2 15105{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 15106$as_echo_n "checking for $ac_word... " >&6; } 15107if ${ac_cv_prog_ac_ct_CXX+:} false; then : 15108 $as_echo_n "(cached) " >&6 15109else 15110 if test -n "$ac_ct_CXX"; then 15111 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. 15112else 15113as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 15114for as_dir in $PATH 15115do 15116 IFS=$as_save_IFS 15117 test -z "$as_dir" && as_dir=. 15118 for ac_exec_ext in '' $ac_executable_extensions; do 15119 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 15120 ac_cv_prog_ac_ct_CXX="$ac_prog" 15121 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 15122 break 2 15123 fi 15124done 15125 done 15126IFS=$as_save_IFS 15127 15128fi 15129fi 15130ac_ct_CXX=$ac_cv_prog_ac_ct_CXX 15131if test -n "$ac_ct_CXX"; then 15132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 15133$as_echo "$ac_ct_CXX" >&6; } 15134else 15135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15136$as_echo "no" >&6; } 15137fi 15138 15139 15140 test -n "$ac_ct_CXX" && break 15141done 15142 15143 if test "x$ac_ct_CXX" = x; then 15144 CXX="g++" 15145 else 15146 case $cross_compiling:$ac_tool_warned in 15147yes:) 15148{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 15149$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} 15150ac_tool_warned=yes ;; 15151esac 15152 CXX=$ac_ct_CXX 15153 fi 15154fi 15155 15156 fi 15157fi 15158# Provide some information about the compiler. 15159$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 15160set X $ac_compile 15161ac_compiler=$2 15162for ac_option in --version -v -V -qversion; do 15163 { { ac_try="$ac_compiler $ac_option >&5" 15164case "(($ac_try" in 15165 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; 15166 *) ac_try_echo=$ac_try;; 15167esac 15168eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" 15169$as_echo "$ac_try_echo"; } >&5 15170 (eval "$ac_compiler $ac_option >&5") 2>conftest.err 15171 ac_status=$? 15172 if test -s conftest.err; then 15173 sed '10a\ 15174... rest of stderr output deleted ... 15175 10q' conftest.err >conftest.er1 15176 cat conftest.er1 >&5 15177 fi 15178 rm -f conftest.er1 conftest.err 15179 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 15180 test $ac_status = 0; } 15181done 15182 15183{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 15184$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } 15185if ${ac_cv_cxx_compiler_gnu+:} false; then : 15186 $as_echo_n "(cached) " >&6 15187else 15188 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15189/* end confdefs.h. */ 15190 15191int 15192main () 15193{ 15194#ifndef __GNUC__ 15195 choke me 15196#endif 15197 15198 ; 15199 return 0; 15200} 15201_ACEOF 15202if ac_fn_cxx_try_compile "$LINENO"; then : 15203 ac_compiler_gnu=yes 15204else 15205 ac_compiler_gnu=no 15206fi 15207rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15208ac_cv_cxx_compiler_gnu=$ac_compiler_gnu 15209 15210fi 15211{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 15212$as_echo "$ac_cv_cxx_compiler_gnu" >&6; } 15213if test $ac_compiler_gnu = yes; then 15214 GXX=yes 15215else 15216 GXX= 15217fi 15218ac_test_CXXFLAGS=${CXXFLAGS+set} 15219ac_save_CXXFLAGS=$CXXFLAGS 15220{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 15221$as_echo_n "checking whether $CXX accepts -g... " >&6; } 15222if ${ac_cv_prog_cxx_g+:} false; then : 15223 $as_echo_n "(cached) " >&6 15224else 15225 ac_save_cxx_werror_flag=$ac_cxx_werror_flag 15226 ac_cxx_werror_flag=yes 15227 ac_cv_prog_cxx_g=no 15228 CXXFLAGS="-g" 15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15230/* end confdefs.h. */ 15231 15232int 15233main () 15234{ 15235 15236 ; 15237 return 0; 15238} 15239_ACEOF 15240if ac_fn_cxx_try_compile "$LINENO"; then : 15241 ac_cv_prog_cxx_g=yes 15242else 15243 CXXFLAGS="" 15244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15245/* end confdefs.h. */ 15246 15247int 15248main () 15249{ 15250 15251 ; 15252 return 0; 15253} 15254_ACEOF 15255if ac_fn_cxx_try_compile "$LINENO"; then : 15256 15257else 15258 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 15259 CXXFLAGS="-g" 15260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15261/* end confdefs.h. */ 15262 15263int 15264main () 15265{ 15266 15267 ; 15268 return 0; 15269} 15270_ACEOF 15271if ac_fn_cxx_try_compile "$LINENO"; then : 15272 ac_cv_prog_cxx_g=yes 15273fi 15274rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15275fi 15276rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15277fi 15278rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 15279 ac_cxx_werror_flag=$ac_save_cxx_werror_flag 15280fi 15281{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 15282$as_echo "$ac_cv_prog_cxx_g" >&6; } 15283if test "$ac_test_CXXFLAGS" = set; then 15284 CXXFLAGS=$ac_save_CXXFLAGS 15285elif test $ac_cv_prog_cxx_g = yes; then 15286 if test "$GXX" = yes; then 15287 CXXFLAGS="-g -O2" 15288 else 15289 CXXFLAGS="-g" 15290 fi 15291else 15292 if test "$GXX" = yes; then 15293 CXXFLAGS="-O2" 15294 else 15295 CXXFLAGS= 15296 fi 15297fi 15298ac_ext=c 15299ac_cpp='$CPP $CPPFLAGS' 15300ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15301ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15302ac_compiler_gnu=$ac_cv_c_compiler_gnu 15303 15304 15305 15306func_stripname_cnf () 15307{ 15308 case $2 in 15309 .*) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%\\\\$2\$%%"`;; 15310 *) func_stripname_result=`$ECHO "$3" | $SED "s%^$1%%; s%$2\$%%"`;; 15311 esac 15312} # func_stripname_cnf 15313 15314 if test -n "$CXX" && ( test no != "$CXX" && 15315 ( (test g++ = "$CXX" && `g++ -v >/dev/null 2>&1` ) || 15316 (test g++ != "$CXX"))); then 15317 ac_ext=cpp 15318ac_cpp='$CXXCPP $CPPFLAGS' 15319ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15320ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15321ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15322{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 15323$as_echo_n "checking how to run the C++ preprocessor... " >&6; } 15324if test -z "$CXXCPP"; then 15325 if ${ac_cv_prog_CXXCPP+:} false; then : 15326 $as_echo_n "(cached) " >&6 15327else 15328 # Double quotes because CXXCPP needs to be expanded 15329 for CXXCPP in "$CXX -E" "/lib/cpp" 15330 do 15331 ac_preproc_ok=false 15332for ac_cxx_preproc_warn_flag in '' yes 15333do 15334 # Use a header file that comes with gcc, so configuring glibc 15335 # with a fresh cross-compiler works. 15336 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15337 # <limits.h> exists even on freestanding compilers. 15338 # On the NeXT, cc -E runs the code through the compiler's parser, 15339 # not just through cpp. "Syntax error" is here to catch this case. 15340 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15341/* end confdefs.h. */ 15342#ifdef __STDC__ 15343# include <limits.h> 15344#else 15345# include <assert.h> 15346#endif 15347 Syntax error 15348_ACEOF 15349if ac_fn_cxx_try_cpp "$LINENO"; then : 15350 15351else 15352 # Broken: fails on valid input. 15353continue 15354fi 15355rm -f conftest.err conftest.i conftest.$ac_ext 15356 15357 # OK, works on sane cases. Now check whether nonexistent headers 15358 # can be detected and how. 15359 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15360/* end confdefs.h. */ 15361#include <ac_nonexistent.h> 15362_ACEOF 15363if ac_fn_cxx_try_cpp "$LINENO"; then : 15364 # Broken: success on invalid input. 15365continue 15366else 15367 # Passes both tests. 15368ac_preproc_ok=: 15369break 15370fi 15371rm -f conftest.err conftest.i conftest.$ac_ext 15372 15373done 15374# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15375rm -f conftest.i conftest.err conftest.$ac_ext 15376if $ac_preproc_ok; then : 15377 break 15378fi 15379 15380 done 15381 ac_cv_prog_CXXCPP=$CXXCPP 15382 15383fi 15384 CXXCPP=$ac_cv_prog_CXXCPP 15385else 15386 ac_cv_prog_CXXCPP=$CXXCPP 15387fi 15388{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 15389$as_echo "$CXXCPP" >&6; } 15390ac_preproc_ok=false 15391for ac_cxx_preproc_warn_flag in '' yes 15392do 15393 # Use a header file that comes with gcc, so configuring glibc 15394 # with a fresh cross-compiler works. 15395 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since 15396 # <limits.h> exists even on freestanding compilers. 15397 # On the NeXT, cc -E runs the code through the compiler's parser, 15398 # not just through cpp. "Syntax error" is here to catch this case. 15399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15400/* end confdefs.h. */ 15401#ifdef __STDC__ 15402# include <limits.h> 15403#else 15404# include <assert.h> 15405#endif 15406 Syntax error 15407_ACEOF 15408if ac_fn_cxx_try_cpp "$LINENO"; then : 15409 15410else 15411 # Broken: fails on valid input. 15412continue 15413fi 15414rm -f conftest.err conftest.i conftest.$ac_ext 15415 15416 # OK, works on sane cases. Now check whether nonexistent headers 15417 # can be detected and how. 15418 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15419/* end confdefs.h. */ 15420#include <ac_nonexistent.h> 15421_ACEOF 15422if ac_fn_cxx_try_cpp "$LINENO"; then : 15423 # Broken: success on invalid input. 15424continue 15425else 15426 # Passes both tests. 15427ac_preproc_ok=: 15428break 15429fi 15430rm -f conftest.err conftest.i conftest.$ac_ext 15431 15432done 15433# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. 15434rm -f conftest.i conftest.err conftest.$ac_ext 15435if $ac_preproc_ok; then : 15436 15437else 15438 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 15439$as_echo "$as_me: error: in \`$ac_pwd':" >&2;} 15440as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check 15441See \`config.log' for more details" "$LINENO" 5; } 15442fi 15443 15444ac_ext=c 15445ac_cpp='$CPP $CPPFLAGS' 15446ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15447ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15448ac_compiler_gnu=$ac_cv_c_compiler_gnu 15449 15450else 15451 _lt_caught_CXX_error=yes 15452fi 15453 15454ac_ext=cpp 15455ac_cpp='$CXXCPP $CPPFLAGS' 15456ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' 15457ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 15458ac_compiler_gnu=$ac_cv_cxx_compiler_gnu 15459 15460archive_cmds_need_lc_CXX=no 15461allow_undefined_flag_CXX= 15462always_export_symbols_CXX=no 15463archive_expsym_cmds_CXX= 15464compiler_needs_object_CXX=no 15465export_dynamic_flag_spec_CXX= 15466hardcode_direct_CXX=no 15467hardcode_direct_absolute_CXX=no 15468hardcode_libdir_flag_spec_CXX= 15469hardcode_libdir_separator_CXX= 15470hardcode_minus_L_CXX=no 15471hardcode_shlibpath_var_CXX=unsupported 15472hardcode_automatic_CXX=no 15473inherit_rpath_CXX=no 15474module_cmds_CXX= 15475module_expsym_cmds_CXX= 15476link_all_deplibs_CXX=unknown 15477old_archive_cmds_CXX=$old_archive_cmds 15478reload_flag_CXX=$reload_flag 15479reload_cmds_CXX=$reload_cmds 15480no_undefined_flag_CXX= 15481whole_archive_flag_spec_CXX= 15482enable_shared_with_static_runtimes_CXX=no 15483 15484# Source file extension for C++ test sources. 15485ac_ext=cpp 15486 15487# Object file extension for compiled C++ test sources. 15488objext=o 15489objext_CXX=$objext 15490 15491# No sense in running all these tests if we already determined that 15492# the CXX compiler isn't working. Some variables (like enable_shared) 15493# are currently assumed to apply to all compilers on this platform, 15494# and will be corrupted by setting them based on a non-working compiler. 15495if test yes != "$_lt_caught_CXX_error"; then 15496 # Code to be used in simple compile tests 15497 lt_simple_compile_test_code="int some_variable = 0;" 15498 15499 # Code to be used in simple link tests 15500 lt_simple_link_test_code='int main(int, char *[]) { return(0); }' 15501 15502 # ltmain only uses $CC for tagged configurations so make sure $CC is set. 15503 15504 15505 15506 15507 15508 15509# If no C compiler was specified, use CC. 15510LTCC=${LTCC-"$CC"} 15511 15512# If no C compiler flags were specified, use CFLAGS. 15513LTCFLAGS=${LTCFLAGS-"$CFLAGS"} 15514 15515# Allow CC to be a program name with arguments. 15516compiler=$CC 15517 15518 15519 # save warnings/boilerplate of simple test code 15520 ac_outfile=conftest.$ac_objext 15521echo "$lt_simple_compile_test_code" >conftest.$ac_ext 15522eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15523_lt_compiler_boilerplate=`cat conftest.err` 15524$RM conftest* 15525 15526 ac_outfile=conftest.$ac_objext 15527echo "$lt_simple_link_test_code" >conftest.$ac_ext 15528eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err 15529_lt_linker_boilerplate=`cat conftest.err` 15530$RM -r conftest* 15531 15532 15533 # Allow CC to be a program name with arguments. 15534 lt_save_CC=$CC 15535 lt_save_CFLAGS=$CFLAGS 15536 lt_save_LD=$LD 15537 lt_save_GCC=$GCC 15538 GCC=$GXX 15539 lt_save_with_gnu_ld=$with_gnu_ld 15540 lt_save_path_LD=$lt_cv_path_LD 15541 if test -n "${lt_cv_prog_gnu_ldcxx+set}"; then 15542 lt_cv_prog_gnu_ld=$lt_cv_prog_gnu_ldcxx 15543 else 15544 $as_unset lt_cv_prog_gnu_ld 15545 fi 15546 if test -n "${lt_cv_path_LDCXX+set}"; then 15547 lt_cv_path_LD=$lt_cv_path_LDCXX 15548 else 15549 $as_unset lt_cv_path_LD 15550 fi 15551 test -z "${LDCXX+set}" || LD=$LDCXX 15552 CC=${CXX-"c++"} 15553 CFLAGS=$CXXFLAGS 15554 compiler=$CC 15555 compiler_CXX=$CC 15556 func_cc_basename $compiler 15557cc_basename=$func_cc_basename_result 15558 15559 15560 if test -n "$compiler"; then 15561 # We don't want -fno-exception when compiling C++ code, so set the 15562 # no_builtin_flag separately 15563 if test yes = "$GXX"; then 15564 lt_prog_compiler_no_builtin_flag_CXX=' -fno-builtin' 15565 else 15566 lt_prog_compiler_no_builtin_flag_CXX= 15567 fi 15568 15569 if test yes = "$GXX"; then 15570 # Set up default GNU C++ configuration 15571 15572 15573 15574# Check whether --with-gnu-ld was given. 15575if test "${with_gnu_ld+set}" = set; then : 15576 withval=$with_gnu_ld; test no = "$withval" || with_gnu_ld=yes 15577else 15578 with_gnu_ld=no 15579fi 15580 15581ac_prog=ld 15582if test yes = "$GCC"; then 15583 # Check if gcc -print-prog-name=ld gives a path. 15584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5 15585$as_echo_n "checking for ld used by $CC... " >&6; } 15586 case $host in 15587 *-*-mingw*) 15588 # gcc leaves a trailing carriage return, which upsets mingw 15589 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;; 15590 *) 15591 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;; 15592 esac 15593 case $ac_prog in 15594 # Accept absolute paths. 15595 [\\/]* | ?:[\\/]*) 15596 re_direlt='/[^/][^/]*/\.\./' 15597 # Canonicalize the pathname of ld 15598 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'` 15599 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do 15600 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"` 15601 done 15602 test -z "$LD" && LD=$ac_prog 15603 ;; 15604 "") 15605 # If it fails, then pretend we aren't using GCC. 15606 ac_prog=ld 15607 ;; 15608 *) 15609 # If it is relative, then search for the first ld in PATH. 15610 with_gnu_ld=unknown 15611 ;; 15612 esac 15613elif test yes = "$with_gnu_ld"; then 15614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5 15615$as_echo_n "checking for GNU ld... " >&6; } 15616else 15617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5 15618$as_echo_n "checking for non-GNU ld... " >&6; } 15619fi 15620if ${lt_cv_path_LD+:} false; then : 15621 $as_echo_n "(cached) " >&6 15622else 15623 if test -z "$LD"; then 15624 lt_save_ifs=$IFS; IFS=$PATH_SEPARATOR 15625 for ac_dir in $PATH; do 15626 IFS=$lt_save_ifs 15627 test -z "$ac_dir" && ac_dir=. 15628 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then 15629 lt_cv_path_LD=$ac_dir/$ac_prog 15630 # Check to see if the program is GNU ld. I'd rather use --version, 15631 # but apparently some variants of GNU ld only accept -v. 15632 # Break only if it was the GNU/non-GNU ld that we prefer. 15633 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in 15634 *GNU* | *'with BFD'*) 15635 test no != "$with_gnu_ld" && break 15636 ;; 15637 *) 15638 test yes != "$with_gnu_ld" && break 15639 ;; 15640 esac 15641 fi 15642 done 15643 IFS=$lt_save_ifs 15644else 15645 lt_cv_path_LD=$LD # Let the user override the test with a path. 15646fi 15647fi 15648 15649LD=$lt_cv_path_LD 15650if test -n "$LD"; then 15651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5 15652$as_echo "$LD" >&6; } 15653else 15654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 15655$as_echo "no" >&6; } 15656fi 15657test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5 15658{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5 15659$as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; } 15660if ${lt_cv_prog_gnu_ld+:} false; then : 15661 $as_echo_n "(cached) " >&6 15662else 15663 # I'd rather use --version here, but apparently some GNU lds only accept -v. 15664case `$LD -v 2>&1 </dev/null` in 15665*GNU* | *'with BFD'*) 15666 lt_cv_prog_gnu_ld=yes 15667 ;; 15668*) 15669 lt_cv_prog_gnu_ld=no 15670 ;; 15671esac 15672fi 15673{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5 15674$as_echo "$lt_cv_prog_gnu_ld" >&6; } 15675with_gnu_ld=$lt_cv_prog_gnu_ld 15676 15677 15678 15679 15680 15681 15682 15683 # Check if GNU C++ uses GNU ld as the underlying linker, since the 15684 # archiving commands below assume that GNU ld is being used. 15685 if test yes = "$with_gnu_ld"; then 15686 archive_cmds_CXX='$CC $pic_flag -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 15687 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' 15688 15689 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 15690 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 15691 15692 # If archive_cmds runs LD, not CC, wlarc should be empty 15693 # XXX I think wlarc can be eliminated in ltcf-cxx, but I need to 15694 # investigate it a little bit more. (MM) 15695 wlarc='$wl' 15696 15697 # ancient GNU ld didn't support --whole-archive et. al. 15698 if eval "`$CC -print-prog-name=ld` --help 2>&1" | 15699 $GREP 'no-whole-archive' > /dev/null; then 15700 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 15701 else 15702 whole_archive_flag_spec_CXX= 15703 fi 15704 else 15705 with_gnu_ld=no 15706 wlarc= 15707 15708 # A generic and very simple default shared library creation 15709 # command for GNU C++ for the case where it uses the native 15710 # linker, instead of GNU ld. If possible, this setting should 15711 # overridden to take advantage of the native linker features on 15712 # the platform it is being used on. 15713 archive_cmds_CXX='$CC -shared -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 15714 fi 15715 15716 # Commands to make compiler produce verbose output that lists 15717 # what "hidden" libraries, object files and flags are used when 15718 # linking a shared library. 15719 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 15720 15721 else 15722 GXX=no 15723 with_gnu_ld=no 15724 wlarc= 15725 fi 15726 15727 # PORTME: fill in a description of your system's C++ link characteristics 15728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 15729$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 15730 ld_shlibs_CXX=yes 15731 case $host_os in 15732 aix3*) 15733 # FIXME: insert proper C++ library support 15734 ld_shlibs_CXX=no 15735 ;; 15736 aix[4-9]*) 15737 if test ia64 = "$host_cpu"; then 15738 # On IA64, the linker does run time linking by default, so we don't 15739 # have to do anything special. 15740 aix_use_runtimelinking=no 15741 exp_sym_flag='-Bexport' 15742 no_entry_flag= 15743 else 15744 aix_use_runtimelinking=no 15745 15746 # Test if we are trying to use run time linking or normal 15747 # AIX style linking. If -brtl is somewhere in LDFLAGS, we 15748 # have runtime linking enabled, and use it for executables. 15749 # For shared libraries, we enable/disable runtime linking 15750 # depending on the kind of the shared library created - 15751 # when "with_aix_soname,aix_use_runtimelinking" is: 15752 # "aix,no" lib.a(lib.so.V) shared, rtl:no, for executables 15753 # "aix,yes" lib.so shared, rtl:yes, for executables 15754 # lib.a static archive 15755 # "both,no" lib.so.V(shr.o) shared, rtl:yes 15756 # lib.a(lib.so.V) shared, rtl:no, for executables 15757 # "both,yes" lib.so.V(shr.o) shared, rtl:yes, for executables 15758 # lib.a(lib.so.V) shared, rtl:no 15759 # "svr4,*" lib.so.V(shr.o) shared, rtl:yes, for executables 15760 # lib.a static archive 15761 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*) 15762 for ld_flag in $LDFLAGS; do 15763 case $ld_flag in 15764 *-brtl*) 15765 aix_use_runtimelinking=yes 15766 break 15767 ;; 15768 esac 15769 done 15770 if test svr4,no = "$with_aix_soname,$aix_use_runtimelinking"; then 15771 # With aix-soname=svr4, we create the lib.so.V shared archives only, 15772 # so we don't have lib.a shared libs to link our executables. 15773 # We have to force runtime linking in this case. 15774 aix_use_runtimelinking=yes 15775 LDFLAGS="$LDFLAGS -Wl,-brtl" 15776 fi 15777 ;; 15778 esac 15779 15780 exp_sym_flag='-bexport' 15781 no_entry_flag='-bnoentry' 15782 fi 15783 15784 # When large executables or shared objects are built, AIX ld can 15785 # have problems creating the table of contents. If linking a library 15786 # or program results in "error TOC overflow" add -mminimal-toc to 15787 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not 15788 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS. 15789 15790 archive_cmds_CXX='' 15791 hardcode_direct_CXX=yes 15792 hardcode_direct_absolute_CXX=yes 15793 hardcode_libdir_separator_CXX=':' 15794 link_all_deplibs_CXX=yes 15795 file_list_spec_CXX='$wl-f,' 15796 case $with_aix_soname,$aix_use_runtimelinking in 15797 aix,*) ;; # no import file 15798 svr4,* | *,yes) # use import file 15799 # The Import File defines what to hardcode. 15800 hardcode_direct_CXX=no 15801 hardcode_direct_absolute_CXX=no 15802 ;; 15803 esac 15804 15805 if test yes = "$GXX"; then 15806 case $host_os in aix4.[012]|aix4.[012].*) 15807 # We only want to do this on AIX 4.2 and lower, the check 15808 # below for broken collect2 doesn't work under 4.3+ 15809 collect2name=`$CC -print-prog-name=collect2` 15810 if test -f "$collect2name" && 15811 strings "$collect2name" | $GREP resolve_lib_name >/dev/null 15812 then 15813 # We have reworked collect2 15814 : 15815 else 15816 # We have old collect2 15817 hardcode_direct_CXX=unsupported 15818 # It fails to find uninstalled libraries when the uninstalled 15819 # path is not listed in the libpath. Setting hardcode_minus_L 15820 # to unsupported forces relinking 15821 hardcode_minus_L_CXX=yes 15822 hardcode_libdir_flag_spec_CXX='-L$libdir' 15823 hardcode_libdir_separator_CXX= 15824 fi 15825 esac 15826 shared_flag='-shared' 15827 if test yes = "$aix_use_runtimelinking"; then 15828 shared_flag=$shared_flag' $wl-G' 15829 fi 15830 # Need to ensure runtime linking is disabled for the traditional 15831 # shared library, or the linker may eventually find shared libraries 15832 # /with/ Import File - we do not want to mix them. 15833 shared_flag_aix='-shared' 15834 shared_flag_svr4='-shared $wl-G' 15835 else 15836 # not using gcc 15837 if test ia64 = "$host_cpu"; then 15838 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release 15839 # chokes on -Wl,-G. The following line is correct: 15840 shared_flag='-G' 15841 else 15842 if test yes = "$aix_use_runtimelinking"; then 15843 shared_flag='$wl-G' 15844 else 15845 shared_flag='$wl-bM:SRE' 15846 fi 15847 shared_flag_aix='$wl-bM:SRE' 15848 shared_flag_svr4='$wl-G' 15849 fi 15850 fi 15851 15852 export_dynamic_flag_spec_CXX='$wl-bexpall' 15853 # It seems that -bexpall does not export symbols beginning with 15854 # underscore (_), so it is better to generate a list of symbols to 15855 # export. 15856 always_export_symbols_CXX=yes 15857 if test aix,yes = "$with_aix_soname,$aix_use_runtimelinking"; then 15858 # Warning - without using the other runtime loading flags (-brtl), 15859 # -berok will link without error, but may produce a broken library. 15860 # The "-G" linker flag allows undefined symbols. 15861 no_undefined_flag_CXX='-bernotok' 15862 # Determine the default libpath from the value encoded in an empty 15863 # executable. 15864 if test set = "${lt_cv_aix_libpath+set}"; then 15865 aix_libpath=$lt_cv_aix_libpath 15866else 15867 if ${lt_cv_aix_libpath__CXX+:} false; then : 15868 $as_echo_n "(cached) " >&6 15869else 15870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15871/* end confdefs.h. */ 15872 15873int 15874main () 15875{ 15876 15877 ; 15878 return 0; 15879} 15880_ACEOF 15881if ac_fn_cxx_try_link "$LINENO"; then : 15882 15883 lt_aix_libpath_sed=' 15884 /Import File Strings/,/^$/ { 15885 /^0/ { 15886 s/^0 *\([^ ]*\) *$/\1/ 15887 p 15888 } 15889 }' 15890 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15891 # Check for a 64-bit object if we didn't find anything. 15892 if test -z "$lt_cv_aix_libpath__CXX"; then 15893 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15894 fi 15895fi 15896rm -f core conftest.err conftest.$ac_objext \ 15897 conftest$ac_exeext conftest.$ac_ext 15898 if test -z "$lt_cv_aix_libpath__CXX"; then 15899 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15900 fi 15901 15902fi 15903 15904 aix_libpath=$lt_cv_aix_libpath__CXX 15905fi 15906 15907 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15908 15909 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 15910 else 15911 if test ia64 = "$host_cpu"; then 15912 hardcode_libdir_flag_spec_CXX='$wl-R $libdir:/usr/lib:/lib' 15913 allow_undefined_flag_CXX="-z nodefs" 15914 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" 15915 else 15916 # Determine the default libpath from the value encoded in an 15917 # empty executable. 15918 if test set = "${lt_cv_aix_libpath+set}"; then 15919 aix_libpath=$lt_cv_aix_libpath 15920else 15921 if ${lt_cv_aix_libpath__CXX+:} false; then : 15922 $as_echo_n "(cached) " >&6 15923else 15924 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 15925/* end confdefs.h. */ 15926 15927int 15928main () 15929{ 15930 15931 ; 15932 return 0; 15933} 15934_ACEOF 15935if ac_fn_cxx_try_link "$LINENO"; then : 15936 15937 lt_aix_libpath_sed=' 15938 /Import File Strings/,/^$/ { 15939 /^0/ { 15940 s/^0 *\([^ ]*\) *$/\1/ 15941 p 15942 } 15943 }' 15944 lt_cv_aix_libpath__CXX=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15945 # Check for a 64-bit object if we didn't find anything. 15946 if test -z "$lt_cv_aix_libpath__CXX"; then 15947 lt_cv_aix_libpath__CXX=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"` 15948 fi 15949fi 15950rm -f core conftest.err conftest.$ac_objext \ 15951 conftest$ac_exeext conftest.$ac_ext 15952 if test -z "$lt_cv_aix_libpath__CXX"; then 15953 lt_cv_aix_libpath__CXX=/usr/lib:/lib 15954 fi 15955 15956fi 15957 15958 aix_libpath=$lt_cv_aix_libpath__CXX 15959fi 15960 15961 hardcode_libdir_flag_spec_CXX='$wl-blibpath:$libdir:'"$aix_libpath" 15962 # Warning - without using the other run time loading flags, 15963 # -berok will link without error, but may produce a broken library. 15964 no_undefined_flag_CXX=' $wl-bernotok' 15965 allow_undefined_flag_CXX=' $wl-berok' 15966 if test yes = "$with_gnu_ld"; then 15967 # We only use this code for GNU lds that support --whole-archive. 15968 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 15969 else 15970 # Exported symbols can be pulled into shared objects from archives 15971 whole_archive_flag_spec_CXX='$convenience' 15972 fi 15973 archive_cmds_need_lc_CXX=yes 15974 archive_expsym_cmds_CXX='$RM -r $output_objdir/$realname.d~$MKDIR $output_objdir/$realname.d' 15975 # -brtl affects multiple linker settings, -berok does not and is overridden later 15976 compiler_flags_filtered='`func_echo_all "$compiler_flags " | $SED -e "s%-brtl\\([, ]\\)%-berok\\1%g"`' 15977 if test svr4 != "$with_aix_soname"; then 15978 # This is similar to how AIX traditionally builds its shared 15979 # libraries. Need -bnortl late, we may have -brtl in LDFLAGS. 15980 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' 15981 fi 15982 if test aix != "$with_aix_soname"; then 15983 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' 15984 else 15985 # used by -dlpreopen to get the symbols 15986 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$MV $output_objdir/$realname.d/$soname $output_objdir' 15987 fi 15988 archive_expsym_cmds_CXX="$archive_expsym_cmds_CXX"'~$RM -r $output_objdir/$realname.d' 15989 fi 15990 fi 15991 ;; 15992 15993 beos*) 15994 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then 15995 allow_undefined_flag_CXX=unsupported 15996 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc 15997 # support --undefined. This deserves some investigation. FIXME 15998 archive_cmds_CXX='$CC -nostart $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 15999 else 16000 ld_shlibs_CXX=no 16001 fi 16002 ;; 16003 16004 chorus*) 16005 case $cc_basename in 16006 *) 16007 # FIXME: insert proper C++ library support 16008 ld_shlibs_CXX=no 16009 ;; 16010 esac 16011 ;; 16012 16013 cygwin* | mingw* | pw32* | cegcc*) 16014 case $GXX,$cc_basename in 16015 ,cl* | no,cl*) 16016 # Native MSVC 16017 # hardcode_libdir_flag_spec is actually meaningless, as there is 16018 # no search path for DLLs. 16019 hardcode_libdir_flag_spec_CXX=' ' 16020 allow_undefined_flag_CXX=unsupported 16021 always_export_symbols_CXX=yes 16022 file_list_spec_CXX='@' 16023 # Tell ltmain to make .lib files, not .a files. 16024 libext=lib 16025 # Tell ltmain to make .dll files, not .so files. 16026 shrext_cmds=.dll 16027 # FIXME: Setting linknames here is a bad hack. 16028 archive_cmds_CXX='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~linknames=' 16029 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16030 cp "$export_symbols" "$output_objdir/$soname.def"; 16031 echo "$tool_output_objdir$soname.def" > "$output_objdir/$soname.exp"; 16032 else 16033 $SED -e '\''s/^/-link -EXPORT:/'\'' < $export_symbols > $output_objdir/$soname.exp; 16034 fi~ 16035 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~ 16036 linknames=' 16037 # The linker will not automatically build a static lib if we build a DLL. 16038 # _LT_TAGVAR(old_archive_from_new_cmds, CXX)='true' 16039 enable_shared_with_static_runtimes_CXX=yes 16040 # Don't use ranlib 16041 old_postinstall_cmds_CXX='chmod 644 $oldlib' 16042 postlink_cmds_CXX='lt_outputfile="@OUTPUT@"~ 16043 lt_tool_outputfile="@TOOL_OUTPUT@"~ 16044 case $lt_outputfile in 16045 *.exe|*.EXE) ;; 16046 *) 16047 lt_outputfile=$lt_outputfile.exe 16048 lt_tool_outputfile=$lt_tool_outputfile.exe 16049 ;; 16050 esac~ 16051 func_to_tool_file "$lt_outputfile"~ 16052 if test : != "$MANIFEST_TOOL" && test -f "$lt_outputfile.manifest"; then 16053 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1; 16054 $RM "$lt_outputfile.manifest"; 16055 fi' 16056 ;; 16057 *) 16058 # g++ 16059 # _LT_TAGVAR(hardcode_libdir_flag_spec, CXX) is actually meaningless, 16060 # as there is no search path for DLLs. 16061 hardcode_libdir_flag_spec_CXX='-L$libdir' 16062 export_dynamic_flag_spec_CXX='$wl--export-all-symbols' 16063 allow_undefined_flag_CXX=unsupported 16064 always_export_symbols_CXX=no 16065 enable_shared_with_static_runtimes_CXX=yes 16066 16067 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then 16068 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' 16069 # If the export-symbols file already is a .def file, use it as 16070 # is; otherwise, prepend EXPORTS... 16071 archive_expsym_cmds_CXX='if test DEF = "`$SED -n -e '\''s/^[ ]*//'\'' -e '\''/^\(;.*\)*$/d'\'' -e '\''s/^\(EXPORTS\|LIBRARY\)\([ ].*\)*$/DEF/p'\'' -e q $export_symbols`" ; then 16072 cp $export_symbols $output_objdir/$soname.def; 16073 else 16074 echo EXPORTS > $output_objdir/$soname.def; 16075 cat $export_symbols >> $output_objdir/$soname.def; 16076 fi~ 16077 $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' 16078 else 16079 ld_shlibs_CXX=no 16080 fi 16081 ;; 16082 esac 16083 ;; 16084 darwin* | rhapsody*) 16085 16086 16087 archive_cmds_need_lc_CXX=no 16088 hardcode_direct_CXX=no 16089 hardcode_automatic_CXX=yes 16090 hardcode_shlibpath_var_CXX=unsupported 16091 if test yes = "$lt_cv_ld_force_load"; then 16092 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\"`' 16093 16094 else 16095 whole_archive_flag_spec_CXX='' 16096 fi 16097 link_all_deplibs_CXX=yes 16098 allow_undefined_flag_CXX=$_lt_dar_allow_undefined 16099 case $cc_basename in 16100 ifort*|nagfor*) _lt_dar_can_shared=yes ;; 16101 *) _lt_dar_can_shared=$GCC ;; 16102 esac 16103 if test yes = "$_lt_dar_can_shared"; then 16104 output_verbose_link_cmd=func_echo_all 16105 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" 16106 module_cmds_CXX="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags$_lt_dsymutil" 16107 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" 16108 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" 16109 if test yes != "$lt_cv_apple_cc_single_mod"; then 16110 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" 16111 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" 16112 fi 16113 16114 else 16115 ld_shlibs_CXX=no 16116 fi 16117 16118 ;; 16119 16120 os2*) 16121 hardcode_libdir_flag_spec_CXX='-L$libdir' 16122 hardcode_minus_L_CXX=yes 16123 allow_undefined_flag_CXX=unsupported 16124 shrext_cmds=.dll 16125 archive_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16126 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16127 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16128 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16129 emxexp $libobjs | $SED /"_DLL_InitTerm"/d >> $output_objdir/$libname.def~ 16130 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16131 emximp -o $lib $output_objdir/$libname.def' 16132 archive_expsym_cmds_CXX='$ECHO "LIBRARY ${soname%$shared_ext} INITINSTANCE TERMINSTANCE" > $output_objdir/$libname.def~ 16133 $ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~ 16134 $ECHO "DATA MULTIPLE NONSHARED" >> $output_objdir/$libname.def~ 16135 $ECHO EXPORTS >> $output_objdir/$libname.def~ 16136 prefix_cmds="$SED"~ 16137 if test EXPORTS = "`$SED 1q $export_symbols`"; then 16138 prefix_cmds="$prefix_cmds -e 1d"; 16139 fi~ 16140 prefix_cmds="$prefix_cmds -e \"s/^\(.*\)$/_\1/g\""~ 16141 cat $export_symbols | $prefix_cmds >> $output_objdir/$libname.def~ 16142 $CC -Zdll -Zcrtdll -o $output_objdir/$soname $libobjs $deplibs $compiler_flags $output_objdir/$libname.def~ 16143 emximp -o $lib $output_objdir/$libname.def' 16144 old_archive_From_new_cmds_CXX='emximp -o $output_objdir/${libname}_dll.a $output_objdir/$libname.def' 16145 enable_shared_with_static_runtimes_CXX=yes 16146 ;; 16147 16148 dgux*) 16149 case $cc_basename in 16150 ec++*) 16151 # FIXME: insert proper C++ library support 16152 ld_shlibs_CXX=no 16153 ;; 16154 ghcx*) 16155 # Green Hills C++ Compiler 16156 # FIXME: insert proper C++ library support 16157 ld_shlibs_CXX=no 16158 ;; 16159 *) 16160 # FIXME: insert proper C++ library support 16161 ld_shlibs_CXX=no 16162 ;; 16163 esac 16164 ;; 16165 16166 freebsd2.*) 16167 # C++ shared libraries reported to be fairly broken before 16168 # switch to ELF 16169 ld_shlibs_CXX=no 16170 ;; 16171 16172 freebsd-elf*) 16173 archive_cmds_need_lc_CXX=no 16174 ;; 16175 16176 freebsd* | dragonfly*) 16177 # FreeBSD 3 and later use GNU C++ and GNU ld with standard ELF 16178 # conventions 16179 ld_shlibs_CXX=yes 16180 ;; 16181 16182 haiku*) 16183 archive_cmds_CXX='$CC -shared $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16184 link_all_deplibs_CXX=yes 16185 ;; 16186 16187 hpux9*) 16188 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16189 hardcode_libdir_separator_CXX=: 16190 export_dynamic_flag_spec_CXX='$wl-E' 16191 hardcode_direct_CXX=yes 16192 hardcode_minus_L_CXX=yes # Not in the search PATH, 16193 # but as the default 16194 # location of the library. 16195 16196 case $cc_basename in 16197 CC*) 16198 # FIXME: insert proper C++ library support 16199 ld_shlibs_CXX=no 16200 ;; 16201 aCC*) 16202 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' 16203 # Commands to make compiler produce verbose output that lists 16204 # what "hidden" libraries, object files and flags are used when 16205 # linking a shared library. 16206 # 16207 # There doesn't appear to be a way to prevent this compiler from 16208 # explicitly linking system object files so we need to strip them 16209 # from the output so that they don't get included in the library 16210 # dependencies. 16211 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"' 16212 ;; 16213 *) 16214 if test yes = "$GXX"; then 16215 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' 16216 else 16217 # FIXME: insert proper C++ library support 16218 ld_shlibs_CXX=no 16219 fi 16220 ;; 16221 esac 16222 ;; 16223 16224 hpux10*|hpux11*) 16225 if test no = "$with_gnu_ld"; then 16226 hardcode_libdir_flag_spec_CXX='$wl+b $wl$libdir' 16227 hardcode_libdir_separator_CXX=: 16228 16229 case $host_cpu in 16230 hppa*64*|ia64*) 16231 ;; 16232 *) 16233 export_dynamic_flag_spec_CXX='$wl-E' 16234 ;; 16235 esac 16236 fi 16237 case $host_cpu in 16238 hppa*64*|ia64*) 16239 hardcode_direct_CXX=no 16240 hardcode_shlibpath_var_CXX=no 16241 ;; 16242 *) 16243 hardcode_direct_CXX=yes 16244 hardcode_direct_absolute_CXX=yes 16245 hardcode_minus_L_CXX=yes # Not in the search PATH, 16246 # but as the default 16247 # location of the library. 16248 ;; 16249 esac 16250 16251 case $cc_basename in 16252 CC*) 16253 # FIXME: insert proper C++ library support 16254 ld_shlibs_CXX=no 16255 ;; 16256 aCC*) 16257 case $host_cpu in 16258 hppa*64*) 16259 archive_cmds_CXX='$CC -b $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16260 ;; 16261 ia64*) 16262 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16263 ;; 16264 *) 16265 archive_cmds_CXX='$CC -b $wl+h $wl$soname $wl+b $wl$install_libdir -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16266 ;; 16267 esac 16268 # Commands to make compiler produce verbose output that lists 16269 # what "hidden" libraries, object files and flags are used when 16270 # linking a shared library. 16271 # 16272 # There doesn't appear to be a way to prevent this compiler from 16273 # explicitly linking system object files so we need to strip them 16274 # from the output so that they don't get included in the library 16275 # dependencies. 16276 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"' 16277 ;; 16278 *) 16279 if test yes = "$GXX"; then 16280 if test no = "$with_gnu_ld"; then 16281 case $host_cpu in 16282 hppa*64*) 16283 archive_cmds_CXX='$CC -shared -nostdlib -fPIC $wl+h $wl$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16284 ;; 16285 ia64*) 16286 archive_cmds_CXX='$CC -shared -nostdlib $pic_flag $wl+h $wl$soname $wl+nodefaultrpath -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16287 ;; 16288 *) 16289 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' 16290 ;; 16291 esac 16292 fi 16293 else 16294 # FIXME: insert proper C++ library support 16295 ld_shlibs_CXX=no 16296 fi 16297 ;; 16298 esac 16299 ;; 16300 16301 interix[3-9]*) 16302 hardcode_direct_CXX=no 16303 hardcode_shlibpath_var_CXX=no 16304 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16305 export_dynamic_flag_spec_CXX='$wl-E' 16306 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc. 16307 # Instead, shared libraries are loaded at an image base (0x10000000 by 16308 # default) and relocated if they conflict, which is a slow very memory 16309 # consuming and fragmenting process. To avoid this, we pick a random, 16310 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link 16311 # time. Moving up from 0x10000000 also allows more sbrk(2) space. 16312 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' 16313 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' 16314 ;; 16315 irix5* | irix6*) 16316 case $cc_basename in 16317 CC*) 16318 # SGI C++ 16319 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' 16320 16321 # Archives containing C++ object files must be created using 16322 # "CC -ar", where "CC" is the IRIX C++ compiler. This is 16323 # necessary to make sure instantiated templates are included 16324 # in the archive. 16325 old_archive_cmds_CXX='$CC -ar -WR,-u -o $oldlib $oldobjs' 16326 ;; 16327 *) 16328 if test yes = "$GXX"; then 16329 if test no = "$with_gnu_ld"; then 16330 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' 16331 else 16332 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' 16333 fi 16334 fi 16335 link_all_deplibs_CXX=yes 16336 ;; 16337 esac 16338 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16339 hardcode_libdir_separator_CXX=: 16340 inherit_rpath_CXX=yes 16341 ;; 16342 16343 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 16344 case $cc_basename in 16345 KCC*) 16346 # Kuck and Associates, Inc. (KAI) C++ Compiler 16347 16348 # KCC will only create a shared library if the output file 16349 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16350 # to its proper name (with version) after linking. 16351 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' 16352 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' 16353 # Commands to make compiler produce verbose output that lists 16354 # what "hidden" libraries, object files and flags are used when 16355 # linking a shared library. 16356 # 16357 # There doesn't appear to be a way to prevent this compiler from 16358 # explicitly linking system object files so we need to strip them 16359 # from the output so that they don't get included in the library 16360 # dependencies. 16361 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"' 16362 16363 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16364 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16365 16366 # Archives containing C++ object files must be created using 16367 # "CC -Bstatic", where "CC" is the KAI C++ compiler. 16368 old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' 16369 ;; 16370 icpc* | ecpc* ) 16371 # Intel C++ 16372 with_gnu_ld=yes 16373 # version 8.0 and above of icpc choke on multiply defined symbols 16374 # if we add $predep_objects and $postdep_objects, however 7.1 and 16375 # earlier do not add the objects themselves. 16376 case `$CC -V 2>&1` in 16377 *"Version 7."*) 16378 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16379 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' 16380 ;; 16381 *) # Version 8.0 or newer 16382 tmp_idyn= 16383 case $host_cpu in 16384 ia64*) tmp_idyn=' -i_dynamic';; 16385 esac 16386 archive_cmds_CXX='$CC -shared'"$tmp_idyn"' $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16387 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' 16388 ;; 16389 esac 16390 archive_cmds_need_lc_CXX=no 16391 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16392 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16393 whole_archive_flag_spec_CXX='$wl--whole-archive$convenience $wl--no-whole-archive' 16394 ;; 16395 pgCC* | pgcpp*) 16396 # Portland Group C++ compiler 16397 case `$CC -V` in 16398 *pgCC\ [1-5].* | *pgcpp\ [1-5].*) 16399 prelink_cmds_CXX='tpldir=Template.dir~ 16400 rm -rf $tpldir~ 16401 $CC --prelink_objects --instantiation_dir $tpldir $objs $libobjs $compile_deplibs~ 16402 compile_command="$compile_command `find $tpldir -name \*.o | sort | $NL2SP`"' 16403 old_archive_cmds_CXX='tpldir=Template.dir~ 16404 rm -rf $tpldir~ 16405 $CC --prelink_objects --instantiation_dir $tpldir $oldobjs$old_deplibs~ 16406 $AR $AR_FLAGS $oldlib$oldobjs$old_deplibs `find $tpldir -name \*.o | sort | $NL2SP`~ 16407 $RANLIB $oldlib' 16408 archive_cmds_CXX='tpldir=Template.dir~ 16409 rm -rf $tpldir~ 16410 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16411 $CC -shared $pic_flag $predep_objects $libobjs $deplibs `find $tpldir -name \*.o | sort | $NL2SP` $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16412 archive_expsym_cmds_CXX='tpldir=Template.dir~ 16413 rm -rf $tpldir~ 16414 $CC --prelink_objects --instantiation_dir $tpldir $predep_objects $libobjs $deplibs $convenience $postdep_objects~ 16415 $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' 16416 ;; 16417 *) # Version 6 and above use weak symbols 16418 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16419 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' 16420 ;; 16421 esac 16422 16423 hardcode_libdir_flag_spec_CXX='$wl--rpath $wl$libdir' 16424 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16425 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' 16426 ;; 16427 cxx*) 16428 # Compaq C++ 16429 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-soname $wl$soname -o $lib' 16430 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' 16431 16432 runpath_var=LD_RUN_PATH 16433 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16434 hardcode_libdir_separator_CXX=: 16435 16436 # Commands to make compiler produce verbose output that lists 16437 # what "hidden" libraries, object files and flags are used when 16438 # linking a shared library. 16439 # 16440 # There doesn't appear to be a way to prevent this compiler from 16441 # explicitly linking system object files so we need to strip them 16442 # from the output so that they don't get included in the library 16443 # dependencies. 16444 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' 16445 ;; 16446 xl* | mpixl* | bgxl*) 16447 # IBM XL 8.0 on PPC, with GNU ld 16448 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16449 export_dynamic_flag_spec_CXX='$wl--export-dynamic' 16450 archive_cmds_CXX='$CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname -o $lib' 16451 if test yes = "$supports_anon_versioning"; then 16452 archive_expsym_cmds_CXX='echo "{ global:" > $output_objdir/$libname.ver~ 16453 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~ 16454 echo "local: *; };" >> $output_objdir/$libname.ver~ 16455 $CC -qmkshrobj $libobjs $deplibs $compiler_flags $wl-soname $wl$soname $wl-version-script $wl$output_objdir/$libname.ver -o $lib' 16456 fi 16457 ;; 16458 *) 16459 case `$CC -V 2>&1 | sed 5q` in 16460 *Sun\ C*) 16461 # Sun C++ 5.9 16462 no_undefined_flag_CXX=' -zdefs' 16463 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16464 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' 16465 hardcode_libdir_flag_spec_CXX='-R$libdir' 16466 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' 16467 compiler_needs_object_CXX=yes 16468 16469 # Not sure whether something based on 16470 # $CC $CFLAGS -v conftest.$objext -o libconftest$shared_ext 2>&1 16471 # would be better. 16472 output_verbose_link_cmd='func_echo_all' 16473 16474 # Archives containing C++ object files must be created using 16475 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16476 # necessary to make sure instantiated templates are included 16477 # in the archive. 16478 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16479 ;; 16480 esac 16481 ;; 16482 esac 16483 ;; 16484 16485 lynxos*) 16486 # FIXME: insert proper C++ library support 16487 ld_shlibs_CXX=no 16488 ;; 16489 16490 m88k*) 16491 # FIXME: insert proper C++ library support 16492 ld_shlibs_CXX=no 16493 ;; 16494 16495 mvs*) 16496 case $cc_basename in 16497 cxx*) 16498 # FIXME: insert proper C++ library support 16499 ld_shlibs_CXX=no 16500 ;; 16501 *) 16502 # FIXME: insert proper C++ library support 16503 ld_shlibs_CXX=no 16504 ;; 16505 esac 16506 ;; 16507 16508 netbsd*) 16509 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 16510 archive_cmds_CXX='$LD -Bshareable -o $lib $predep_objects $libobjs $deplibs $postdep_objects $linker_flags' 16511 wlarc= 16512 hardcode_libdir_flag_spec_CXX='-R$libdir' 16513 hardcode_direct_CXX=yes 16514 hardcode_shlibpath_var_CXX=no 16515 fi 16516 # Workaround some broken pre-1.5 toolchains 16517 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP conftest.$objext | $SED -e "s:-lgcc -lc -lgcc::"' 16518 ;; 16519 16520 *nto* | *qnx*) 16521 ld_shlibs_CXX=yes 16522 ;; 16523 16524 openbsd* | bitrig*) 16525 if test -f /usr/libexec/ld.so; then 16526 hardcode_direct_CXX=yes 16527 hardcode_shlibpath_var_CXX=no 16528 hardcode_direct_absolute_CXX=yes 16529 archive_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags -o $lib' 16530 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16531 if test -z "`echo __ELF__ | $CC -E - | grep __ELF__`"; then 16532 archive_expsym_cmds_CXX='$CC -shared $pic_flag $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-retain-symbols-file,$export_symbols -o $lib' 16533 export_dynamic_flag_spec_CXX='$wl-E' 16534 whole_archive_flag_spec_CXX=$wlarc'--whole-archive$convenience '$wlarc'--no-whole-archive' 16535 fi 16536 output_verbose_link_cmd=func_echo_all 16537 else 16538 ld_shlibs_CXX=no 16539 fi 16540 ;; 16541 16542 osf3* | osf4* | osf5*) 16543 case $cc_basename in 16544 KCC*) 16545 # Kuck and Associates, Inc. (KAI) C++ Compiler 16546 16547 # KCC will only create a shared library if the output file 16548 # ends with ".so" (or ".sl" for HP-UX), so rename the library 16549 # to its proper name (with version) after linking. 16550 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' 16551 16552 hardcode_libdir_flag_spec_CXX='$wl-rpath,$libdir' 16553 hardcode_libdir_separator_CXX=: 16554 16555 # Archives containing C++ object files must be created using 16556 # the KAI C++ compiler. 16557 case $host in 16558 osf3*) old_archive_cmds_CXX='$CC -Bstatic -o $oldlib $oldobjs' ;; 16559 *) old_archive_cmds_CXX='$CC -o $oldlib $oldobjs' ;; 16560 esac 16561 ;; 16562 RCC*) 16563 # Rational C++ 2.4.1 16564 # FIXME: insert proper C++ library support 16565 ld_shlibs_CXX=no 16566 ;; 16567 cxx*) 16568 case $host in 16569 osf3*) 16570 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16571 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' 16572 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16573 ;; 16574 *) 16575 allow_undefined_flag_CXX=' -expect_unresolved \*' 16576 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' 16577 archive_expsym_cmds_CXX='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done~ 16578 echo "-hidden">> $lib.exp~ 16579 $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~ 16580 $RM $lib.exp' 16581 hardcode_libdir_flag_spec_CXX='-rpath $libdir' 16582 ;; 16583 esac 16584 16585 hardcode_libdir_separator_CXX=: 16586 16587 # Commands to make compiler produce verbose output that lists 16588 # what "hidden" libraries, object files and flags are used when 16589 # linking a shared library. 16590 # 16591 # There doesn't appear to be a way to prevent this compiler from 16592 # explicitly linking system object files so we need to strip them 16593 # from the output so that they don't get included in the library 16594 # dependencies. 16595 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"' 16596 ;; 16597 *) 16598 if test yes,no = "$GXX,$with_gnu_ld"; then 16599 allow_undefined_flag_CXX=' $wl-expect_unresolved $wl\*' 16600 case $host in 16601 osf3*) 16602 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' 16603 ;; 16604 *) 16605 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' 16606 ;; 16607 esac 16608 16609 hardcode_libdir_flag_spec_CXX='$wl-rpath $wl$libdir' 16610 hardcode_libdir_separator_CXX=: 16611 16612 # Commands to make compiler produce verbose output that lists 16613 # what "hidden" libraries, object files and flags are used when 16614 # linking a shared library. 16615 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16616 16617 else 16618 # FIXME: insert proper C++ library support 16619 ld_shlibs_CXX=no 16620 fi 16621 ;; 16622 esac 16623 ;; 16624 16625 psos*) 16626 # FIXME: insert proper C++ library support 16627 ld_shlibs_CXX=no 16628 ;; 16629 16630 sunos4*) 16631 case $cc_basename in 16632 CC*) 16633 # Sun C++ 4.x 16634 # FIXME: insert proper C++ library support 16635 ld_shlibs_CXX=no 16636 ;; 16637 lcc*) 16638 # Lucid 16639 # FIXME: insert proper C++ library support 16640 ld_shlibs_CXX=no 16641 ;; 16642 *) 16643 # FIXME: insert proper C++ library support 16644 ld_shlibs_CXX=no 16645 ;; 16646 esac 16647 ;; 16648 16649 solaris*) 16650 case $cc_basename in 16651 CC* | sunCC*) 16652 # Sun C++ 4.2, 5.x and Centerline C++ 16653 archive_cmds_need_lc_CXX=yes 16654 no_undefined_flag_CXX=' -zdefs' 16655 archive_cmds_CXX='$CC -G$allow_undefined_flag -h$soname -o $lib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags' 16656 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16657 $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' 16658 16659 hardcode_libdir_flag_spec_CXX='-R$libdir' 16660 hardcode_shlibpath_var_CXX=no 16661 case $host_os in 16662 solaris2.[0-5] | solaris2.[0-5].*) ;; 16663 *) 16664 # The compiler driver will combine and reorder linker options, 16665 # but understands '-z linker_flag'. 16666 # Supported since Solaris 2.6 (maybe 2.5.1?) 16667 whole_archive_flag_spec_CXX='-z allextract$convenience -z defaultextract' 16668 ;; 16669 esac 16670 link_all_deplibs_CXX=yes 16671 16672 output_verbose_link_cmd='func_echo_all' 16673 16674 # Archives containing C++ object files must be created using 16675 # "CC -xar", where "CC" is the Sun C++ compiler. This is 16676 # necessary to make sure instantiated templates are included 16677 # in the archive. 16678 old_archive_cmds_CXX='$CC -xar -o $oldlib $oldobjs' 16679 ;; 16680 gcx*) 16681 # Green Hills C++ Compiler 16682 archive_cmds_CXX='$CC -shared $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16683 16684 # The C++ compiler must be used to create the archive. 16685 old_archive_cmds_CXX='$CC $LDFLAGS -archive -o $oldlib $oldobjs' 16686 ;; 16687 *) 16688 # GNU C++ compiler with Solaris linker 16689 if test yes,no = "$GXX,$with_gnu_ld"; then 16690 no_undefined_flag_CXX=' $wl-z ${wl}defs' 16691 if $CC --version | $GREP -v '^2\.7' > /dev/null; then 16692 archive_cmds_CXX='$CC -shared $pic_flag -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16693 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16694 $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' 16695 16696 # Commands to make compiler produce verbose output that lists 16697 # what "hidden" libraries, object files and flags are used when 16698 # linking a shared library. 16699 output_verbose_link_cmd='$CC -shared $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16700 else 16701 # g++ 2.7 appears to require '-G' NOT '-shared' on this 16702 # platform. 16703 archive_cmds_CXX='$CC -G -nostdlib $predep_objects $libobjs $deplibs $postdep_objects $compiler_flags $wl-h $wl$soname -o $lib' 16704 archive_expsym_cmds_CXX='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~ 16705 $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' 16706 16707 # Commands to make compiler produce verbose output that lists 16708 # what "hidden" libraries, object files and flags are used when 16709 # linking a shared library. 16710 output_verbose_link_cmd='$CC -G $CFLAGS -v conftest.$objext 2>&1 | $GREP -v "^Configured with:" | $GREP "\-L"' 16711 fi 16712 16713 hardcode_libdir_flag_spec_CXX='$wl-R $wl$libdir' 16714 case $host_os in 16715 solaris2.[0-5] | solaris2.[0-5].*) ;; 16716 *) 16717 whole_archive_flag_spec_CXX='$wl-z ${wl}allextract$convenience $wl-z ${wl}defaultextract' 16718 ;; 16719 esac 16720 fi 16721 ;; 16722 esac 16723 ;; 16724 16725 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*) 16726 no_undefined_flag_CXX='$wl-z,text' 16727 archive_cmds_need_lc_CXX=no 16728 hardcode_shlibpath_var_CXX=no 16729 runpath_var='LD_RUN_PATH' 16730 16731 case $cc_basename in 16732 CC*) 16733 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16734 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16735 ;; 16736 *) 16737 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16738 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16739 ;; 16740 esac 16741 ;; 16742 16743 sysv5* | sco3.2v5* | sco5v6*) 16744 # Note: We CANNOT use -z defs as we might desire, because we do not 16745 # link with -lc, and that would cause any symbols used from libc to 16746 # always be unresolved, which means just about no library would 16747 # ever link correctly. If we're not using GNU ld we use -z text 16748 # though, which does catch some bad symbols but isn't as heavy-handed 16749 # as -z defs. 16750 no_undefined_flag_CXX='$wl-z,text' 16751 allow_undefined_flag_CXX='$wl-z,nodefs' 16752 archive_cmds_need_lc_CXX=no 16753 hardcode_shlibpath_var_CXX=no 16754 hardcode_libdir_flag_spec_CXX='$wl-R,$libdir' 16755 hardcode_libdir_separator_CXX=':' 16756 link_all_deplibs_CXX=yes 16757 export_dynamic_flag_spec_CXX='$wl-Bexport' 16758 runpath_var='LD_RUN_PATH' 16759 16760 case $cc_basename in 16761 CC*) 16762 archive_cmds_CXX='$CC -G $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16763 archive_expsym_cmds_CXX='$CC -G $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16764 old_archive_cmds_CXX='$CC -Tprelink_objects $oldobjs~ 16765 '"$old_archive_cmds_CXX" 16766 reload_cmds_CXX='$CC -Tprelink_objects $reload_objs~ 16767 '"$reload_cmds_CXX" 16768 ;; 16769 *) 16770 archive_cmds_CXX='$CC -shared $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16771 archive_expsym_cmds_CXX='$CC -shared $wl-Bexport:$export_symbols $wl-h,$soname -o $lib $libobjs $deplibs $compiler_flags' 16772 ;; 16773 esac 16774 ;; 16775 16776 tandem*) 16777 case $cc_basename in 16778 NCC*) 16779 # NonStop-UX NCC 3.20 16780 # FIXME: insert proper C++ library support 16781 ld_shlibs_CXX=no 16782 ;; 16783 *) 16784 # FIXME: insert proper C++ library support 16785 ld_shlibs_CXX=no 16786 ;; 16787 esac 16788 ;; 16789 16790 vxworks*) 16791 # FIXME: insert proper C++ library support 16792 ld_shlibs_CXX=no 16793 ;; 16794 16795 *) 16796 # FIXME: insert proper C++ library support 16797 ld_shlibs_CXX=no 16798 ;; 16799 esac 16800 16801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 16802$as_echo "$ld_shlibs_CXX" >&6; } 16803 test no = "$ld_shlibs_CXX" && can_build_shared=no 16804 16805 GCC_CXX=$GXX 16806 LD_CXX=$LD 16807 16808 ## CAVEAT EMPTOR: 16809 ## There is no encapsulation within the following macros, do not change 16810 ## the running order or otherwise move them around unless you know exactly 16811 ## what you are doing... 16812 # Dependencies to place before and after the object being linked: 16813predep_objects_CXX= 16814postdep_objects_CXX= 16815predeps_CXX= 16816postdeps_CXX= 16817compiler_lib_search_path_CXX= 16818 16819cat > conftest.$ac_ext <<_LT_EOF 16820class Foo 16821{ 16822public: 16823 Foo (void) { a = 0; } 16824private: 16825 int a; 16826}; 16827_LT_EOF 16828 16829 16830_lt_libdeps_save_CFLAGS=$CFLAGS 16831case "$CC $CFLAGS " in #( 16832*\ -flto*\ *) CFLAGS="$CFLAGS -fno-lto" ;; 16833*\ -fwhopr*\ *) CFLAGS="$CFLAGS -fno-whopr" ;; 16834*\ -fuse-linker-plugin*\ *) CFLAGS="$CFLAGS -fno-use-linker-plugin" ;; 16835esac 16836 16837if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 16838 (eval $ac_compile) 2>&5 16839 ac_status=$? 16840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 16841 test $ac_status = 0; }; then 16842 # Parse the compiler output and extract the necessary 16843 # objects, libraries and library flags. 16844 16845 # Sentinel used to keep track of whether or not we are before 16846 # the conftest object file. 16847 pre_test_object_deps_done=no 16848 16849 for p in `eval "$output_verbose_link_cmd"`; do 16850 case $prev$p in 16851 16852 -L* | -R* | -l*) 16853 # Some compilers place space between "-{L,R}" and the path. 16854 # Remove the space. 16855 if test x-L = "$p" || 16856 test x-R = "$p"; then 16857 prev=$p 16858 continue 16859 fi 16860 16861 # Expand the sysroot to ease extracting the directories later. 16862 if test -z "$prev"; then 16863 case $p in 16864 -L*) func_stripname_cnf '-L' '' "$p"; prev=-L; p=$func_stripname_result ;; 16865 -R*) func_stripname_cnf '-R' '' "$p"; prev=-R; p=$func_stripname_result ;; 16866 -l*) func_stripname_cnf '-l' '' "$p"; prev=-l; p=$func_stripname_result ;; 16867 esac 16868 fi 16869 case $p in 16870 =*) func_stripname_cnf '=' '' "$p"; p=$lt_sysroot$func_stripname_result ;; 16871 esac 16872 if test no = "$pre_test_object_deps_done"; then 16873 case $prev in 16874 -L | -R) 16875 # Internal compiler library paths should come after those 16876 # provided the user. The postdeps already come after the 16877 # user supplied libs so there is no need to process them. 16878 if test -z "$compiler_lib_search_path_CXX"; then 16879 compiler_lib_search_path_CXX=$prev$p 16880 else 16881 compiler_lib_search_path_CXX="${compiler_lib_search_path_CXX} $prev$p" 16882 fi 16883 ;; 16884 # The "-l" case would never come before the object being 16885 # linked, so don't bother handling this case. 16886 esac 16887 else 16888 if test -z "$postdeps_CXX"; then 16889 postdeps_CXX=$prev$p 16890 else 16891 postdeps_CXX="${postdeps_CXX} $prev$p" 16892 fi 16893 fi 16894 prev= 16895 ;; 16896 16897 *.lto.$objext) ;; # Ignore GCC LTO objects 16898 *.$objext) 16899 # This assumes that the test object file only shows up 16900 # once in the compiler output. 16901 if test "$p" = "conftest.$objext"; then 16902 pre_test_object_deps_done=yes 16903 continue 16904 fi 16905 16906 if test no = "$pre_test_object_deps_done"; then 16907 if test -z "$predep_objects_CXX"; then 16908 predep_objects_CXX=$p 16909 else 16910 predep_objects_CXX="$predep_objects_CXX $p" 16911 fi 16912 else 16913 if test -z "$postdep_objects_CXX"; then 16914 postdep_objects_CXX=$p 16915 else 16916 postdep_objects_CXX="$postdep_objects_CXX $p" 16917 fi 16918 fi 16919 ;; 16920 16921 *) ;; # Ignore the rest. 16922 16923 esac 16924 done 16925 16926 # Clean up. 16927 rm -f a.out a.exe 16928else 16929 echo "libtool.m4: error: problem compiling CXX test program" 16930fi 16931 16932$RM -f confest.$objext 16933CFLAGS=$_lt_libdeps_save_CFLAGS 16934 16935# PORTME: override above test on systems where it is broken 16936case $host_os in 16937interix[3-9]*) 16938 # Interix 3.5 installs completely hosed .la files for C++, so rather than 16939 # hack all around it, let's just trust "g++" to DTRT. 16940 predep_objects_CXX= 16941 postdep_objects_CXX= 16942 postdeps_CXX= 16943 ;; 16944esac 16945 16946 16947case " $postdeps_CXX " in 16948*" -lc "*) archive_cmds_need_lc_CXX=no ;; 16949esac 16950 compiler_lib_search_dirs_CXX= 16951if test -n "${compiler_lib_search_path_CXX}"; then 16952 compiler_lib_search_dirs_CXX=`echo " ${compiler_lib_search_path_CXX}" | $SED -e 's! -L! !g' -e 's!^ !!'` 16953fi 16954 16955 16956 16957 16958 16959 16960 16961 16962 16963 16964 16965 16966 16967 16968 16969 16970 16971 16972 16973 16974 16975 16976 16977 16978 16979 16980 16981 16982 16983 16984 16985 lt_prog_compiler_wl_CXX= 16986lt_prog_compiler_pic_CXX= 16987lt_prog_compiler_static_CXX= 16988 16989 16990 # C++ specific cases for pic, static, wl, etc. 16991 if test yes = "$GXX"; then 16992 lt_prog_compiler_wl_CXX='-Wl,' 16993 lt_prog_compiler_static_CXX='-static' 16994 16995 case $host_os in 16996 aix*) 16997 # All AIX code is PIC. 16998 if test ia64 = "$host_cpu"; then 16999 # AIX 5 now supports IA64 processor 17000 lt_prog_compiler_static_CXX='-Bstatic' 17001 fi 17002 lt_prog_compiler_pic_CXX='-fPIC' 17003 ;; 17004 17005 amigaos*) 17006 case $host_cpu in 17007 powerpc) 17008 # see comment about AmigaOS4 .so support 17009 lt_prog_compiler_pic_CXX='-fPIC' 17010 ;; 17011 m68k) 17012 # FIXME: we need at least 68020 code to build shared libraries, but 17013 # adding the '-m68020' flag to GCC prevents building anything better, 17014 # like '-m68040'. 17015 lt_prog_compiler_pic_CXX='-m68020 -resident32 -malways-restore-a4' 17016 ;; 17017 esac 17018 ;; 17019 17020 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*) 17021 # PIC is the default for these OSes. 17022 ;; 17023 mingw* | cygwin* | os2* | pw32* | cegcc*) 17024 # This hack is so that the source file can tell whether it is being 17025 # built for inclusion in a dll (and should export symbols for example). 17026 # Although the cygwin gcc ignores -fPIC, still need this for old-style 17027 # (--disable-auto-import) libraries 17028 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17029 case $host_os in 17030 os2*) 17031 lt_prog_compiler_static_CXX='$wl-static' 17032 ;; 17033 esac 17034 ;; 17035 darwin* | rhapsody*) 17036 # PIC is the default on this platform 17037 # Common symbols not allowed in MH_DYLIB files 17038 lt_prog_compiler_pic_CXX='-fno-common' 17039 ;; 17040 *djgpp*) 17041 # DJGPP does not support shared libraries at all 17042 lt_prog_compiler_pic_CXX= 17043 ;; 17044 haiku*) 17045 # PIC is the default for Haiku. 17046 # The "-static" flag exists, but is broken. 17047 lt_prog_compiler_static_CXX= 17048 ;; 17049 interix[3-9]*) 17050 # Interix 3.x gcc -fpic/-fPIC options generate broken code. 17051 # Instead, we relocate shared libraries at runtime. 17052 ;; 17053 sysv4*MP*) 17054 if test -d /usr/nec; then 17055 lt_prog_compiler_pic_CXX=-Kconform_pic 17056 fi 17057 ;; 17058 hpux*) 17059 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit 17060 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag 17061 # sets the default TLS model and affects inlining. 17062 case $host_cpu in 17063 hppa*64*) 17064 ;; 17065 *) 17066 lt_prog_compiler_pic_CXX='-fPIC' 17067 ;; 17068 esac 17069 ;; 17070 *qnx* | *nto*) 17071 # QNX uses GNU C++, but need to define -shared option too, otherwise 17072 # it will coredump. 17073 lt_prog_compiler_pic_CXX='-fPIC -shared' 17074 ;; 17075 *) 17076 lt_prog_compiler_pic_CXX='-fPIC' 17077 ;; 17078 esac 17079 else 17080 case $host_os in 17081 aix[4-9]*) 17082 # All AIX code is PIC. 17083 if test ia64 = "$host_cpu"; then 17084 # AIX 5 now supports IA64 processor 17085 lt_prog_compiler_static_CXX='-Bstatic' 17086 else 17087 lt_prog_compiler_static_CXX='-bnso -bI:/lib/syscalls.exp' 17088 fi 17089 ;; 17090 chorus*) 17091 case $cc_basename in 17092 cxch68*) 17093 # Green Hills C++ Compiler 17094 # _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" 17095 ;; 17096 esac 17097 ;; 17098 mingw* | cygwin* | os2* | pw32* | cegcc*) 17099 # This hack is so that the source file can tell whether it is being 17100 # built for inclusion in a dll (and should export symbols for example). 17101 lt_prog_compiler_pic_CXX='-DDLL_EXPORT' 17102 ;; 17103 dgux*) 17104 case $cc_basename in 17105 ec++*) 17106 lt_prog_compiler_pic_CXX='-KPIC' 17107 ;; 17108 ghcx*) 17109 # Green Hills C++ Compiler 17110 lt_prog_compiler_pic_CXX='-pic' 17111 ;; 17112 *) 17113 ;; 17114 esac 17115 ;; 17116 freebsd* | dragonfly*) 17117 # FreeBSD uses GNU C++ 17118 ;; 17119 hpux9* | hpux10* | hpux11*) 17120 case $cc_basename in 17121 CC*) 17122 lt_prog_compiler_wl_CXX='-Wl,' 17123 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17124 if test ia64 != "$host_cpu"; then 17125 lt_prog_compiler_pic_CXX='+Z' 17126 fi 17127 ;; 17128 aCC*) 17129 lt_prog_compiler_wl_CXX='-Wl,' 17130 lt_prog_compiler_static_CXX='$wl-a ${wl}archive' 17131 case $host_cpu in 17132 hppa*64*|ia64*) 17133 # +Z the default 17134 ;; 17135 *) 17136 lt_prog_compiler_pic_CXX='+Z' 17137 ;; 17138 esac 17139 ;; 17140 *) 17141 ;; 17142 esac 17143 ;; 17144 interix*) 17145 # This is c89, which is MS Visual C++ (no shared libs) 17146 # Anyone wants to do a port? 17147 ;; 17148 irix5* | irix6* | nonstopux*) 17149 case $cc_basename in 17150 CC*) 17151 lt_prog_compiler_wl_CXX='-Wl,' 17152 lt_prog_compiler_static_CXX='-non_shared' 17153 # CC pic flag -KPIC is the default. 17154 ;; 17155 *) 17156 ;; 17157 esac 17158 ;; 17159 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 17160 case $cc_basename in 17161 KCC*) 17162 # KAI C++ Compiler 17163 lt_prog_compiler_wl_CXX='--backend -Wl,' 17164 lt_prog_compiler_pic_CXX='-fPIC' 17165 ;; 17166 ecpc* ) 17167 # old Intel C++ for x86_64, which still supported -KPIC. 17168 lt_prog_compiler_wl_CXX='-Wl,' 17169 lt_prog_compiler_pic_CXX='-KPIC' 17170 lt_prog_compiler_static_CXX='-static' 17171 ;; 17172 icpc* ) 17173 # Intel C++, used to be incompatible with GCC. 17174 # ICC 10 doesn't accept -KPIC any more. 17175 lt_prog_compiler_wl_CXX='-Wl,' 17176 lt_prog_compiler_pic_CXX='-fPIC' 17177 lt_prog_compiler_static_CXX='-static' 17178 ;; 17179 pgCC* | pgcpp*) 17180 # Portland Group C++ compiler 17181 lt_prog_compiler_wl_CXX='-Wl,' 17182 lt_prog_compiler_pic_CXX='-fpic' 17183 lt_prog_compiler_static_CXX='-Bstatic' 17184 ;; 17185 cxx*) 17186 # Compaq C++ 17187 # Make sure the PIC flag is empty. It appears that all Alpha 17188 # Linux and Compaq Tru64 Unix objects are PIC. 17189 lt_prog_compiler_pic_CXX= 17190 lt_prog_compiler_static_CXX='-non_shared' 17191 ;; 17192 xlc* | xlC* | bgxl[cC]* | mpixl[cC]*) 17193 # IBM XL 8.0, 9.0 on PPC and BlueGene 17194 lt_prog_compiler_wl_CXX='-Wl,' 17195 lt_prog_compiler_pic_CXX='-qpic' 17196 lt_prog_compiler_static_CXX='-qstaticlink' 17197 ;; 17198 *) 17199 case `$CC -V 2>&1 | sed 5q` in 17200 *Sun\ C*) 17201 # Sun C++ 5.9 17202 lt_prog_compiler_pic_CXX='-KPIC' 17203 lt_prog_compiler_static_CXX='-Bstatic' 17204 lt_prog_compiler_wl_CXX='-Qoption ld ' 17205 ;; 17206 esac 17207 ;; 17208 esac 17209 ;; 17210 lynxos*) 17211 ;; 17212 m88k*) 17213 ;; 17214 mvs*) 17215 case $cc_basename in 17216 cxx*) 17217 lt_prog_compiler_pic_CXX='-W c,exportall' 17218 ;; 17219 *) 17220 ;; 17221 esac 17222 ;; 17223 netbsd*) 17224 ;; 17225 *qnx* | *nto*) 17226 # QNX uses GNU C++, but need to define -shared option too, otherwise 17227 # it will coredump. 17228 lt_prog_compiler_pic_CXX='-fPIC -shared' 17229 ;; 17230 osf3* | osf4* | osf5*) 17231 case $cc_basename in 17232 KCC*) 17233 lt_prog_compiler_wl_CXX='--backend -Wl,' 17234 ;; 17235 RCC*) 17236 # Rational C++ 2.4.1 17237 lt_prog_compiler_pic_CXX='-pic' 17238 ;; 17239 cxx*) 17240 # Digital/Compaq C++ 17241 lt_prog_compiler_wl_CXX='-Wl,' 17242 # Make sure the PIC flag is empty. It appears that all Alpha 17243 # Linux and Compaq Tru64 Unix objects are PIC. 17244 lt_prog_compiler_pic_CXX= 17245 lt_prog_compiler_static_CXX='-non_shared' 17246 ;; 17247 *) 17248 ;; 17249 esac 17250 ;; 17251 psos*) 17252 ;; 17253 solaris*) 17254 case $cc_basename in 17255 CC* | sunCC*) 17256 # Sun C++ 4.2, 5.x and Centerline C++ 17257 lt_prog_compiler_pic_CXX='-KPIC' 17258 lt_prog_compiler_static_CXX='-Bstatic' 17259 lt_prog_compiler_wl_CXX='-Qoption ld ' 17260 ;; 17261 gcx*) 17262 # Green Hills C++ Compiler 17263 lt_prog_compiler_pic_CXX='-PIC' 17264 ;; 17265 *) 17266 ;; 17267 esac 17268 ;; 17269 sunos4*) 17270 case $cc_basename in 17271 CC*) 17272 # Sun C++ 4.x 17273 lt_prog_compiler_pic_CXX='-pic' 17274 lt_prog_compiler_static_CXX='-Bstatic' 17275 ;; 17276 lcc*) 17277 # Lucid 17278 lt_prog_compiler_pic_CXX='-pic' 17279 ;; 17280 *) 17281 ;; 17282 esac 17283 ;; 17284 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*) 17285 case $cc_basename in 17286 CC*) 17287 lt_prog_compiler_wl_CXX='-Wl,' 17288 lt_prog_compiler_pic_CXX='-KPIC' 17289 lt_prog_compiler_static_CXX='-Bstatic' 17290 ;; 17291 esac 17292 ;; 17293 tandem*) 17294 case $cc_basename in 17295 NCC*) 17296 # NonStop-UX NCC 3.20 17297 lt_prog_compiler_pic_CXX='-KPIC' 17298 ;; 17299 *) 17300 ;; 17301 esac 17302 ;; 17303 vxworks*) 17304 ;; 17305 *) 17306 lt_prog_compiler_can_build_shared_CXX=no 17307 ;; 17308 esac 17309 fi 17310 17311case $host_os in 17312 # For platforms that do not support PIC, -DPIC is meaningless: 17313 *djgpp*) 17314 lt_prog_compiler_pic_CXX= 17315 ;; 17316 *) 17317 lt_prog_compiler_pic_CXX="$lt_prog_compiler_pic_CXX -DPIC" 17318 ;; 17319esac 17320 17321{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5 17322$as_echo_n "checking for $compiler option to produce PIC... " >&6; } 17323if ${lt_cv_prog_compiler_pic_CXX+:} false; then : 17324 $as_echo_n "(cached) " >&6 17325else 17326 lt_cv_prog_compiler_pic_CXX=$lt_prog_compiler_pic_CXX 17327fi 17328{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_CXX" >&5 17329$as_echo "$lt_cv_prog_compiler_pic_CXX" >&6; } 17330lt_prog_compiler_pic_CXX=$lt_cv_prog_compiler_pic_CXX 17331 17332# 17333# Check to make sure the PIC flag actually works. 17334# 17335if test -n "$lt_prog_compiler_pic_CXX"; then 17336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works" >&5 17337$as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic_CXX works... " >&6; } 17338if ${lt_cv_prog_compiler_pic_works_CXX+:} false; then : 17339 $as_echo_n "(cached) " >&6 17340else 17341 lt_cv_prog_compiler_pic_works_CXX=no 17342 ac_outfile=conftest.$ac_objext 17343 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17344 lt_compiler_flag="$lt_prog_compiler_pic_CXX -DPIC" ## exclude from sc_useless_quotes_in_assignment 17345 # Insert the option either (1) after the last *FLAGS variable, or 17346 # (2) before a word containing "conftest.", or (3) at the end. 17347 # Note that $ac_compile itself does not contain backslashes and begins 17348 # with a dollar sign (not a hyphen), so the echo should work correctly. 17349 # The option is referenced via a variable to avoid confusing sed. 17350 lt_compile=`echo "$ac_compile" | $SED \ 17351 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17352 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17353 -e 's:$: $lt_compiler_flag:'` 17354 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17355 (eval "$lt_compile" 2>conftest.err) 17356 ac_status=$? 17357 cat conftest.err >&5 17358 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17359 if (exit $ac_status) && test -s "$ac_outfile"; then 17360 # The compiler can only warn and ignore the option if not recognized 17361 # So say no if there are warnings other than the usual output. 17362 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp 17363 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17364 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then 17365 lt_cv_prog_compiler_pic_works_CXX=yes 17366 fi 17367 fi 17368 $RM conftest* 17369 17370fi 17371{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works_CXX" >&5 17372$as_echo "$lt_cv_prog_compiler_pic_works_CXX" >&6; } 17373 17374if test yes = "$lt_cv_prog_compiler_pic_works_CXX"; then 17375 case $lt_prog_compiler_pic_CXX in 17376 "" | " "*) ;; 17377 *) lt_prog_compiler_pic_CXX=" $lt_prog_compiler_pic_CXX" ;; 17378 esac 17379else 17380 lt_prog_compiler_pic_CXX= 17381 lt_prog_compiler_can_build_shared_CXX=no 17382fi 17383 17384fi 17385 17386 17387 17388 17389 17390# 17391# Check to make sure the static flag actually works. 17392# 17393wl=$lt_prog_compiler_wl_CXX eval lt_tmp_static_flag=\"$lt_prog_compiler_static_CXX\" 17394{ $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5 17395$as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; } 17396if ${lt_cv_prog_compiler_static_works_CXX+:} false; then : 17397 $as_echo_n "(cached) " >&6 17398else 17399 lt_cv_prog_compiler_static_works_CXX=no 17400 save_LDFLAGS=$LDFLAGS 17401 LDFLAGS="$LDFLAGS $lt_tmp_static_flag" 17402 echo "$lt_simple_link_test_code" > conftest.$ac_ext 17403 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then 17404 # The linker can only warn and ignore the option if not recognized 17405 # So say no if there are warnings 17406 if test -s conftest.err; then 17407 # Append any errors to the config.log. 17408 cat conftest.err 1>&5 17409 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp 17410 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2 17411 if diff conftest.exp conftest.er2 >/dev/null; then 17412 lt_cv_prog_compiler_static_works_CXX=yes 17413 fi 17414 else 17415 lt_cv_prog_compiler_static_works_CXX=yes 17416 fi 17417 fi 17418 $RM -r conftest* 17419 LDFLAGS=$save_LDFLAGS 17420 17421fi 17422{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works_CXX" >&5 17423$as_echo "$lt_cv_prog_compiler_static_works_CXX" >&6; } 17424 17425if test yes = "$lt_cv_prog_compiler_static_works_CXX"; then 17426 : 17427else 17428 lt_prog_compiler_static_CXX= 17429fi 17430 17431 17432 17433 17434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17435$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17436if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17437 $as_echo_n "(cached) " >&6 17438else 17439 lt_cv_prog_compiler_c_o_CXX=no 17440 $RM -r conftest 2>/dev/null 17441 mkdir conftest 17442 cd conftest 17443 mkdir out 17444 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17445 17446 lt_compiler_flag="-o out/conftest2.$ac_objext" 17447 # Insert the option either (1) after the last *FLAGS variable, or 17448 # (2) before a word containing "conftest.", or (3) at the end. 17449 # Note that $ac_compile itself does not contain backslashes and begins 17450 # with a dollar sign (not a hyphen), so the echo should work correctly. 17451 lt_compile=`echo "$ac_compile" | $SED \ 17452 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17453 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17454 -e 's:$: $lt_compiler_flag:'` 17455 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17456 (eval "$lt_compile" 2>out/conftest.err) 17457 ac_status=$? 17458 cat out/conftest.err >&5 17459 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17460 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17461 then 17462 # The compiler can only warn and ignore the option if not recognized 17463 # So say no if there are warnings 17464 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17465 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17466 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17467 lt_cv_prog_compiler_c_o_CXX=yes 17468 fi 17469 fi 17470 chmod u+w . 2>&5 17471 $RM conftest* 17472 # SGI C++ compiler will create directory out/ii_files/ for 17473 # template instantiation 17474 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17475 $RM out/* && rmdir out 17476 cd .. 17477 $RM -r conftest 17478 $RM conftest* 17479 17480fi 17481{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17482$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17483 17484 17485 17486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5 17487$as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; } 17488if ${lt_cv_prog_compiler_c_o_CXX+:} false; then : 17489 $as_echo_n "(cached) " >&6 17490else 17491 lt_cv_prog_compiler_c_o_CXX=no 17492 $RM -r conftest 2>/dev/null 17493 mkdir conftest 17494 cd conftest 17495 mkdir out 17496 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17497 17498 lt_compiler_flag="-o out/conftest2.$ac_objext" 17499 # Insert the option either (1) after the last *FLAGS variable, or 17500 # (2) before a word containing "conftest.", or (3) at the end. 17501 # Note that $ac_compile itself does not contain backslashes and begins 17502 # with a dollar sign (not a hyphen), so the echo should work correctly. 17503 lt_compile=`echo "$ac_compile" | $SED \ 17504 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \ 17505 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \ 17506 -e 's:$: $lt_compiler_flag:'` 17507 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5) 17508 (eval "$lt_compile" 2>out/conftest.err) 17509 ac_status=$? 17510 cat out/conftest.err >&5 17511 echo "$as_me:$LINENO: \$? = $ac_status" >&5 17512 if (exit $ac_status) && test -s out/conftest2.$ac_objext 17513 then 17514 # The compiler can only warn and ignore the option if not recognized 17515 # So say no if there are warnings 17516 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp 17517 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2 17518 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then 17519 lt_cv_prog_compiler_c_o_CXX=yes 17520 fi 17521 fi 17522 chmod u+w . 2>&5 17523 $RM conftest* 17524 # SGI C++ compiler will create directory out/ii_files/ for 17525 # template instantiation 17526 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files 17527 $RM out/* && rmdir out 17528 cd .. 17529 $RM -r conftest 17530 $RM conftest* 17531 17532fi 17533{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o_CXX" >&5 17534$as_echo "$lt_cv_prog_compiler_c_o_CXX" >&6; } 17535 17536 17537 17538 17539hard_links=nottested 17540if test no = "$lt_cv_prog_compiler_c_o_CXX" && test no != "$need_locks"; then 17541 # do not overwrite the value of need_locks provided by the user 17542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5 17543$as_echo_n "checking if we can lock with hard links... " >&6; } 17544 hard_links=yes 17545 $RM conftest* 17546 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17547 touch conftest.a 17548 ln conftest.a conftest.b 2>&5 || hard_links=no 17549 ln conftest.a conftest.b 2>/dev/null && hard_links=no 17550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5 17551$as_echo "$hard_links" >&6; } 17552 if test no = "$hard_links"; then 17553 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&5 17554$as_echo "$as_me: WARNING: '$CC' does not support '-c -o', so 'make -j' may be unsafe" >&2;} 17555 need_locks=warn 17556 fi 17557else 17558 need_locks=no 17559fi 17560 17561 17562 17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5 17564$as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; } 17565 17566 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17567 exclude_expsyms_CXX='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*' 17568 case $host_os in 17569 aix[4-9]*) 17570 # If we're using GNU nm, then we don't want the "-C" option. 17571 # -C means demangle to GNU nm, but means don't demangle to AIX nm. 17572 # Without the "-l" option, or with the "-B" option, AIX nm treats 17573 # weak defined symbols like other global defined symbols, whereas 17574 # GNU nm marks them as "W". 17575 # While the 'weak' keyword is ignored in the Export File, we need 17576 # it in the Import File for the 'aix-soname' feature, so we have 17577 # to replace the "-B" option with "-P" for AIX nm. 17578 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then 17579 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' 17580 else 17581 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' 17582 fi 17583 ;; 17584 pw32*) 17585 export_symbols_cmds_CXX=$ltdll_cmds 17586 ;; 17587 cygwin* | mingw* | cegcc*) 17588 case $cc_basename in 17589 cl*) 17590 exclude_expsyms_CXX='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*' 17591 ;; 17592 *) 17593 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' 17594 exclude_expsyms_CXX='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname' 17595 ;; 17596 esac 17597 ;; 17598 *) 17599 export_symbols_cmds_CXX='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols' 17600 ;; 17601 esac 17602 17603{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs_CXX" >&5 17604$as_echo "$ld_shlibs_CXX" >&6; } 17605test no = "$ld_shlibs_CXX" && can_build_shared=no 17606 17607with_gnu_ld_CXX=$with_gnu_ld 17608 17609 17610 17611 17612 17613 17614# 17615# Do we need to explicitly link libc? 17616# 17617case "x$archive_cmds_need_lc_CXX" in 17618x|xyes) 17619 # Assume -lc should be added 17620 archive_cmds_need_lc_CXX=yes 17621 17622 if test yes,yes = "$GCC,$enable_shared"; then 17623 case $archive_cmds_CXX in 17624 *'~'*) 17625 # FIXME: we may have to deal with multi-command sequences. 17626 ;; 17627 '$CC '*) 17628 # Test whether the compiler implicitly links with -lc since on some 17629 # systems, -lgcc has to come before -lc. If gcc already passes -lc 17630 # to ld, don't add -lc before -lgcc. 17631 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5 17632$as_echo_n "checking whether -lc should be explicitly linked in... " >&6; } 17633if ${lt_cv_archive_cmds_need_lc_CXX+:} false; then : 17634 $as_echo_n "(cached) " >&6 17635else 17636 $RM conftest* 17637 echo "$lt_simple_compile_test_code" > conftest.$ac_ext 17638 17639 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5 17640 (eval $ac_compile) 2>&5 17641 ac_status=$? 17642 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17643 test $ac_status = 0; } 2>conftest.err; then 17644 soname=conftest 17645 lib=conftest 17646 libobjs=conftest.$ac_objext 17647 deplibs= 17648 wl=$lt_prog_compiler_wl_CXX 17649 pic_flag=$lt_prog_compiler_pic_CXX 17650 compiler_flags=-v 17651 linker_flags=-v 17652 verstring= 17653 output_objdir=. 17654 libname=conftest 17655 lt_save_allow_undefined_flag=$allow_undefined_flag_CXX 17656 allow_undefined_flag_CXX= 17657 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5 17658 (eval $archive_cmds_CXX 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5 17659 ac_status=$? 17660 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 17661 test $ac_status = 0; } 17662 then 17663 lt_cv_archive_cmds_need_lc_CXX=no 17664 else 17665 lt_cv_archive_cmds_need_lc_CXX=yes 17666 fi 17667 allow_undefined_flag_CXX=$lt_save_allow_undefined_flag 17668 else 17669 cat conftest.err 1>&5 17670 fi 17671 $RM conftest* 17672 17673fi 17674{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc_CXX" >&5 17675$as_echo "$lt_cv_archive_cmds_need_lc_CXX" >&6; } 17676 archive_cmds_need_lc_CXX=$lt_cv_archive_cmds_need_lc_CXX 17677 ;; 17678 esac 17679 fi 17680 ;; 17681esac 17682 17683 17684 17685 17686 17687 17688 17689 17690 17691 17692 17693 17694 17695 17696 17697 17698 17699 17700 17701 17702 17703 17704 17705 17706 17707 17708 17709 17710 17711 17712 17713 17714 17715 17716 17717 17718 17719 17720 17721 17722 17723 17724 17725 17726 17727 17728 17729 17730 17731 17732 17733 17734 17735 17736 17737 17738 17739 17740 17741 17742 17743 17744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5 17745$as_echo_n "checking dynamic linker characteristics... " >&6; } 17746 17747library_names_spec= 17748libname_spec='lib$name' 17749soname_spec= 17750shrext_cmds=.so 17751postinstall_cmds= 17752postuninstall_cmds= 17753finish_cmds= 17754finish_eval= 17755shlibpath_var= 17756shlibpath_overrides_runpath=unknown 17757version_type=none 17758dynamic_linker="$host_os ld.so" 17759sys_lib_dlsearch_path_spec="/lib /usr/lib" 17760need_lib_prefix=unknown 17761hardcode_into_libs=no 17762 17763# when you set need_version to no, make sure it does not cause -set_version 17764# flags to be left without arguments 17765need_version=unknown 17766 17767 17768 17769case $host_os in 17770aix3*) 17771 version_type=linux # correct to gnu/linux during the next big refactor 17772 library_names_spec='$libname$release$shared_ext$versuffix $libname.a' 17773 shlibpath_var=LIBPATH 17774 17775 # AIX 3 has no versioning support, so we append a major version to the name. 17776 soname_spec='$libname$release$shared_ext$major' 17777 ;; 17778 17779aix[4-9]*) 17780 version_type=linux # correct to gnu/linux during the next big refactor 17781 need_lib_prefix=no 17782 need_version=no 17783 hardcode_into_libs=yes 17784 if test ia64 = "$host_cpu"; then 17785 # AIX 5 supports IA64 17786 library_names_spec='$libname$release$shared_ext$major $libname$release$shared_ext$versuffix $libname$shared_ext' 17787 shlibpath_var=LD_LIBRARY_PATH 17788 else 17789 # With GCC up to 2.95.x, collect2 would create an import file 17790 # for dependence libraries. The import file would start with 17791 # the line '#! .'. This would cause the generated library to 17792 # depend on '.', always an invalid library. This was fixed in 17793 # development snapshots of GCC prior to 3.0. 17794 case $host_os in 17795 aix4 | aix4.[01] | aix4.[01].*) 17796 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)' 17797 echo ' yes ' 17798 echo '#endif'; } | $CC -E - | $GREP yes > /dev/null; then 17799 : 17800 else 17801 can_build_shared=no 17802 fi 17803 ;; 17804 esac 17805 # Using Import Files as archive members, it is possible to support 17806 # filename-based versioning of shared library archives on AIX. While 17807 # this would work for both with and without runtime linking, it will 17808 # prevent static linking of such archives. So we do filename-based 17809 # shared library versioning with .so extension only, which is used 17810 # when both runtime linking and shared linking is enabled. 17811 # Unfortunately, runtime linking may impact performance, so we do 17812 # not want this to be the default eventually. Also, we use the 17813 # versioned .so libs for executables only if there is the -brtl 17814 # linker flag in LDFLAGS as well, or --with-aix-soname=svr4 only. 17815 # To allow for filename-based versioning support, we need to create 17816 # libNAME.so.V as an archive file, containing: 17817 # *) an Import File, referring to the versioned filename of the 17818 # archive as well as the shared archive member, telling the 17819 # bitwidth (32 or 64) of that shared object, and providing the 17820 # list of exported symbols of that shared object, eventually 17821 # decorated with the 'weak' keyword 17822 # *) the shared object with the F_LOADONLY flag set, to really avoid 17823 # it being seen by the linker. 17824 # At run time we better use the real file rather than another symlink, 17825 # but for link time we create the symlink libNAME.so -> libNAME.so.V 17826 17827 case $with_aix_soname,$aix_use_runtimelinking in 17828 # AIX (on Power*) has no versioning support, so currently we cannot hardcode correct 17829 # soname into executable. Probably we can add versioning support to 17830 # collect2, so additional links can be useful in future. 17831 aix,yes) # traditional libtool 17832 dynamic_linker='AIX unversionable lib.so' 17833 # If using run time linking (on AIX 4.2 or later) use lib<name>.so 17834 # instead of lib<name>.a to let people know that these are not 17835 # typical AIX shared libraries. 17836 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17837 ;; 17838 aix,no) # traditional AIX only 17839 dynamic_linker='AIX lib.a(lib.so.V)' 17840 # We preserve .a as extension for shared libraries through AIX4.2 17841 # and later when we are not doing run time linking. 17842 library_names_spec='$libname$release.a $libname.a' 17843 soname_spec='$libname$release$shared_ext$major' 17844 ;; 17845 svr4,*) # full svr4 only 17846 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o)" 17847 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17848 # We do not specify a path in Import Files, so LIBPATH fires. 17849 shlibpath_overrides_runpath=yes 17850 ;; 17851 *,yes) # both, prefer svr4 17852 dynamic_linker="AIX lib.so.V($shared_archive_member_spec.o), lib.a(lib.so.V)" 17853 library_names_spec='$libname$release$shared_ext$major $libname$shared_ext' 17854 # unpreferred sharedlib libNAME.a needs extra handling 17855 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"' 17856 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"' 17857 # We do not specify a path in Import Files, so LIBPATH fires. 17858 shlibpath_overrides_runpath=yes 17859 ;; 17860 *,no) # both, prefer aix 17861 dynamic_linker="AIX lib.a(lib.so.V), lib.so.V($shared_archive_member_spec.o)" 17862 library_names_spec='$libname$release.a $libname.a' 17863 soname_spec='$libname$release$shared_ext$major' 17864 # unpreferred sharedlib libNAME.so.V and symlink libNAME.so need extra handling 17865 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)' 17866 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"' 17867 ;; 17868 esac 17869 shlibpath_var=LIBPATH 17870 fi 17871 ;; 17872 17873amigaos*) 17874 case $host_cpu in 17875 powerpc) 17876 # Since July 2007 AmigaOS4 officially supports .so libraries. 17877 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline. 17878 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17879 ;; 17880 m68k) 17881 library_names_spec='$libname.ixlibrary $libname.a' 17882 # Create ${libname}_ixlibrary.a entries in /sys/libs. 17883 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' 17884 ;; 17885 esac 17886 ;; 17887 17888beos*) 17889 library_names_spec='$libname$shared_ext' 17890 dynamic_linker="$host_os ld.so" 17891 shlibpath_var=LIBRARY_PATH 17892 ;; 17893 17894bsdi[45]*) 17895 version_type=linux # correct to gnu/linux during the next big refactor 17896 need_version=no 17897 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 17898 soname_spec='$libname$release$shared_ext$major' 17899 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir' 17900 shlibpath_var=LD_LIBRARY_PATH 17901 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib" 17902 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib" 17903 # the default ld.so.conf also contains /usr/contrib/lib and 17904 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow 17905 # libtool to hard-code these into programs 17906 ;; 17907 17908cygwin* | mingw* | pw32* | cegcc*) 17909 version_type=windows 17910 shrext_cmds=.dll 17911 need_version=no 17912 need_lib_prefix=no 17913 17914 case $GCC,$cc_basename in 17915 yes,*) 17916 # gcc 17917 library_names_spec='$libname.dll.a' 17918 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17919 postinstall_cmds='base_file=`basename \$file`~ 17920 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17921 dldir=$destdir/`dirname \$dlpath`~ 17922 test -d \$dldir || mkdir -p \$dldir~ 17923 $install_prog $dir/$dlname \$dldir/$dlname~ 17924 chmod a+x \$dldir/$dlname~ 17925 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 17926 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 17927 fi' 17928 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 17929 dlpath=$dir/\$dldll~ 17930 $RM \$dlpath' 17931 shlibpath_overrides_runpath=yes 17932 17933 case $host_os in 17934 cygwin*) 17935 # Cygwin DLLs use 'cyg' prefix rather than 'lib' 17936 soname_spec='`echo $libname | sed -e 's/^lib/cyg/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17937 17938 ;; 17939 mingw* | cegcc*) 17940 # MinGW DLLs use traditional 'lib' prefix 17941 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17942 ;; 17943 pw32*) 17944 # pw32 DLLs use 'pw' prefix rather than 'lib' 17945 library_names_spec='`echo $libname | sed -e 's/^lib/pw/'``echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17946 ;; 17947 esac 17948 dynamic_linker='Win32 ld.exe' 17949 ;; 17950 17951 *,cl*) 17952 # Native MSVC 17953 libname_spec='$name' 17954 soname_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext' 17955 library_names_spec='$libname.dll.lib' 17956 17957 case $build_os in 17958 mingw*) 17959 sys_lib_search_path_spec= 17960 lt_save_ifs=$IFS 17961 IFS=';' 17962 for lt_path in $LIB 17963 do 17964 IFS=$lt_save_ifs 17965 # Let DOS variable expansion print the short 8.3 style file name. 17966 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"` 17967 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path" 17968 done 17969 IFS=$lt_save_ifs 17970 # Convert to MSYS style. 17971 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'` 17972 ;; 17973 cygwin*) 17974 # Convert to unix form, then to dos form, then back to unix form 17975 # but this time dos style (no spaces!) so that the unix form looks 17976 # like /cygdrive/c/PROGRA~1:/cygdr... 17977 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"` 17978 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null` 17979 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17980 ;; 17981 *) 17982 sys_lib_search_path_spec=$LIB 17983 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then 17984 # It is most probably a Windows format PATH. 17985 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'` 17986 else 17987 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"` 17988 fi 17989 # FIXME: find the short name or the path components, as spaces are 17990 # common. (e.g. "Program Files" -> "PROGRA~1") 17991 ;; 17992 esac 17993 17994 # DLL is installed to $(libdir)/../bin by postinstall_cmds 17995 postinstall_cmds='base_file=`basename \$file`~ 17996 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; echo \$dlname'\''`~ 17997 dldir=$destdir/`dirname \$dlpath`~ 17998 test -d \$dldir || mkdir -p \$dldir~ 17999 $install_prog $dir/$dlname \$dldir/$dlname' 18000 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~ 18001 dlpath=$dir/\$dldll~ 18002 $RM \$dlpath' 18003 shlibpath_overrides_runpath=yes 18004 dynamic_linker='Win32 link.exe' 18005 ;; 18006 18007 *) 18008 # Assume MSVC wrapper 18009 library_names_spec='$libname`echo $release | $SED -e 's/[.]/-/g'`$versuffix$shared_ext $libname.lib' 18010 dynamic_linker='Win32 ld.exe' 18011 ;; 18012 esac 18013 # FIXME: first we should search . and the directory the executable is in 18014 shlibpath_var=PATH 18015 ;; 18016 18017darwin* | rhapsody*) 18018 dynamic_linker="$host_os dyld" 18019 version_type=darwin 18020 need_lib_prefix=no 18021 need_version=no 18022 library_names_spec='$libname$release$major$shared_ext $libname$shared_ext' 18023 soname_spec='$libname$release$major$shared_ext' 18024 shlibpath_overrides_runpath=yes 18025 shlibpath_var=DYLD_LIBRARY_PATH 18026 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`' 18027 18028 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib' 18029 ;; 18030 18031dgux*) 18032 version_type=linux # correct to gnu/linux during the next big refactor 18033 need_lib_prefix=no 18034 need_version=no 18035 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18036 soname_spec='$libname$release$shared_ext$major' 18037 shlibpath_var=LD_LIBRARY_PATH 18038 ;; 18039 18040freebsd* | dragonfly*) 18041 # DragonFly does not have aout. When/if they implement a new 18042 # versioning mechanism, adjust this. 18043 if test -x /usr/bin/objformat; then 18044 objformat=`/usr/bin/objformat` 18045 else 18046 case $host_os in 18047 freebsd[23].*) objformat=aout ;; 18048 *) objformat=elf ;; 18049 esac 18050 fi 18051 version_type=freebsd-$objformat 18052 case $version_type in 18053 freebsd-elf*) 18054 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18055 soname_spec='$libname$release$shared_ext$major' 18056 need_version=no 18057 need_lib_prefix=no 18058 ;; 18059 freebsd-*) 18060 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18061 need_version=yes 18062 ;; 18063 esac 18064 shlibpath_var=LD_LIBRARY_PATH 18065 case $host_os in 18066 freebsd2.*) 18067 shlibpath_overrides_runpath=yes 18068 ;; 18069 freebsd3.[01]* | freebsdelf3.[01]*) 18070 shlibpath_overrides_runpath=yes 18071 hardcode_into_libs=yes 18072 ;; 18073 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \ 18074 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1) 18075 shlibpath_overrides_runpath=no 18076 hardcode_into_libs=yes 18077 ;; 18078 *) # from 4.6 on, and DragonFly 18079 shlibpath_overrides_runpath=yes 18080 hardcode_into_libs=yes 18081 ;; 18082 esac 18083 ;; 18084 18085haiku*) 18086 version_type=linux # correct to gnu/linux during the next big refactor 18087 need_lib_prefix=no 18088 need_version=no 18089 dynamic_linker="$host_os runtime_loader" 18090 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18091 soname_spec='$libname$release$shared_ext$major' 18092 shlibpath_var=LIBRARY_PATH 18093 shlibpath_overrides_runpath=no 18094 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib' 18095 hardcode_into_libs=yes 18096 ;; 18097 18098hpux9* | hpux10* | hpux11*) 18099 # Give a soname corresponding to the major version so that dld.sl refuses to 18100 # link against other versions. 18101 version_type=sunos 18102 need_lib_prefix=no 18103 need_version=no 18104 case $host_cpu in 18105 ia64*) 18106 shrext_cmds='.so' 18107 hardcode_into_libs=yes 18108 dynamic_linker="$host_os dld.so" 18109 shlibpath_var=LD_LIBRARY_PATH 18110 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18111 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18112 soname_spec='$libname$release$shared_ext$major' 18113 if test 32 = "$HPUX_IA64_MODE"; then 18114 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib" 18115 sys_lib_dlsearch_path_spec=/usr/lib/hpux32 18116 else 18117 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64" 18118 sys_lib_dlsearch_path_spec=/usr/lib/hpux64 18119 fi 18120 ;; 18121 hppa*64*) 18122 shrext_cmds='.sl' 18123 hardcode_into_libs=yes 18124 dynamic_linker="$host_os dld.sl" 18125 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH 18126 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified. 18127 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18128 soname_spec='$libname$release$shared_ext$major' 18129 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64" 18130 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18131 ;; 18132 *) 18133 shrext_cmds='.sl' 18134 dynamic_linker="$host_os dld.sl" 18135 shlibpath_var=SHLIB_PATH 18136 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH 18137 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18138 soname_spec='$libname$release$shared_ext$major' 18139 ;; 18140 esac 18141 # HP-UX runs *really* slowly unless shared libraries are mode 555, ... 18142 postinstall_cmds='chmod 555 $lib' 18143 # or fails outright, so override atomically: 18144 install_override_mode=555 18145 ;; 18146 18147interix[3-9]*) 18148 version_type=linux # correct to gnu/linux during the next big refactor 18149 need_lib_prefix=no 18150 need_version=no 18151 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18152 soname_spec='$libname$release$shared_ext$major' 18153 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)' 18154 shlibpath_var=LD_LIBRARY_PATH 18155 shlibpath_overrides_runpath=no 18156 hardcode_into_libs=yes 18157 ;; 18158 18159irix5* | irix6* | nonstopux*) 18160 case $host_os in 18161 nonstopux*) version_type=nonstopux ;; 18162 *) 18163 if test yes = "$lt_cv_prog_gnu_ld"; then 18164 version_type=linux # correct to gnu/linux during the next big refactor 18165 else 18166 version_type=irix 18167 fi ;; 18168 esac 18169 need_lib_prefix=no 18170 need_version=no 18171 soname_spec='$libname$release$shared_ext$major' 18172 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$release$shared_ext $libname$shared_ext' 18173 case $host_os in 18174 irix5* | nonstopux*) 18175 libsuff= shlibsuff= 18176 ;; 18177 *) 18178 case $LD in # libtool.m4 will add one of these switches to LD 18179 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ") 18180 libsuff= shlibsuff= libmagic=32-bit;; 18181 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ") 18182 libsuff=32 shlibsuff=N32 libmagic=N32;; 18183 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ") 18184 libsuff=64 shlibsuff=64 libmagic=64-bit;; 18185 *) libsuff= shlibsuff= libmagic=never-match;; 18186 esac 18187 ;; 18188 esac 18189 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH 18190 shlibpath_overrides_runpath=no 18191 sys_lib_search_path_spec="/usr/lib$libsuff /lib$libsuff /usr/local/lib$libsuff" 18192 sys_lib_dlsearch_path_spec="/usr/lib$libsuff /lib$libsuff" 18193 hardcode_into_libs=yes 18194 ;; 18195 18196# No shared lib support for Linux oldld, aout, or coff. 18197linux*oldld* | linux*aout* | linux*coff*) 18198 dynamic_linker=no 18199 ;; 18200 18201linux*android*) 18202 version_type=none # Android doesn't support versioned libraries. 18203 need_lib_prefix=no 18204 need_version=no 18205 library_names_spec='$libname$release$shared_ext' 18206 soname_spec='$libname$release$shared_ext' 18207 finish_cmds= 18208 shlibpath_var=LD_LIBRARY_PATH 18209 shlibpath_overrides_runpath=yes 18210 18211 # This implies no fast_install, which is unacceptable. 18212 # Some rework will be needed to allow for fast_install 18213 # before this can be enabled. 18214 hardcode_into_libs=yes 18215 18216 dynamic_linker='Android linker' 18217 # Don't embed -rpath directories since the linker doesn't support them. 18218 hardcode_libdir_flag_spec_CXX='-L$libdir' 18219 ;; 18220 18221# This must be glibc/ELF. 18222linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*) 18223 version_type=linux # correct to gnu/linux during the next big refactor 18224 need_lib_prefix=no 18225 need_version=no 18226 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18227 soname_spec='$libname$release$shared_ext$major' 18228 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir' 18229 shlibpath_var=LD_LIBRARY_PATH 18230 shlibpath_overrides_runpath=no 18231 18232 # Some binutils ld are patched to set DT_RUNPATH 18233 if ${lt_cv_shlibpath_overrides_runpath+:} false; then : 18234 $as_echo_n "(cached) " >&6 18235else 18236 lt_cv_shlibpath_overrides_runpath=no 18237 save_LDFLAGS=$LDFLAGS 18238 save_libdir=$libdir 18239 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl_CXX\"; \ 18240 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec_CXX\"" 18241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18242/* end confdefs.h. */ 18243 18244int 18245main () 18246{ 18247 18248 ; 18249 return 0; 18250} 18251_ACEOF 18252if ac_fn_cxx_try_link "$LINENO"; then : 18253 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then : 18254 lt_cv_shlibpath_overrides_runpath=yes 18255fi 18256fi 18257rm -f core conftest.err conftest.$ac_objext \ 18258 conftest$ac_exeext conftest.$ac_ext 18259 LDFLAGS=$save_LDFLAGS 18260 libdir=$save_libdir 18261 18262fi 18263 18264 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath 18265 18266 # This implies no fast_install, which is unacceptable. 18267 # Some rework will be needed to allow for fast_install 18268 # before this can be enabled. 18269 hardcode_into_libs=yes 18270 18271 # Ideally, we could use ldconfig to report *all* directores which are 18272 # searched for libraries, however this is still not possible. Aside from not 18273 # being certain /sbin/ldconfig is available, command 18274 # 'ldconfig -N -X -v | grep ^/' on 64bit Fedora does not report /usr/lib64, 18275 # even though it is searched at run-time. Try to do the best guess by 18276 # appending ld.so.conf contents (and includes) to the search path. 18277 if test -f /etc/ld.so.conf; then 18278 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' ' '` 18279 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra" 18280 fi 18281 18282 # We used to test for /lib/ld.so.1 and disable shared libraries on 18283 # powerpc, because MkLinux only supported shared libraries with the 18284 # GNU dynamic linker. Since this was broken with cross compilers, 18285 # most powerpc-linux boxes support dynamic linking these days and 18286 # people can always --disable-shared, the test was removed, and we 18287 # assume the GNU/Linux dynamic linker is in use. 18288 dynamic_linker='GNU/Linux ld.so' 18289 ;; 18290 18291netbsd*) 18292 version_type=sunos 18293 need_lib_prefix=no 18294 need_version=no 18295 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then 18296 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18297 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18298 dynamic_linker='NetBSD (a.out) ld.so' 18299 else 18300 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18301 soname_spec='$libname$release$shared_ext$major' 18302 dynamic_linker='NetBSD ld.elf_so' 18303 fi 18304 shlibpath_var=LD_LIBRARY_PATH 18305 shlibpath_overrides_runpath=yes 18306 hardcode_into_libs=yes 18307 ;; 18308 18309newsos6) 18310 version_type=linux # correct to gnu/linux during the next big refactor 18311 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18312 shlibpath_var=LD_LIBRARY_PATH 18313 shlibpath_overrides_runpath=yes 18314 ;; 18315 18316*nto* | *qnx*) 18317 version_type=qnx 18318 need_lib_prefix=no 18319 need_version=no 18320 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18321 soname_spec='$libname$release$shared_ext$major' 18322 shlibpath_var=LD_LIBRARY_PATH 18323 shlibpath_overrides_runpath=no 18324 hardcode_into_libs=yes 18325 dynamic_linker='ldqnx.so' 18326 ;; 18327 18328openbsd* | bitrig*) 18329 version_type=sunos 18330 sys_lib_dlsearch_path_spec=/usr/lib 18331 need_lib_prefix=no 18332 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`"; then 18333 need_version=no 18334 else 18335 need_version=yes 18336 fi 18337 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18338 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir' 18339 shlibpath_var=LD_LIBRARY_PATH 18340 shlibpath_overrides_runpath=yes 18341 ;; 18342 18343os2*) 18344 libname_spec='$name' 18345 version_type=windows 18346 shrext_cmds=.dll 18347 need_version=no 18348 need_lib_prefix=no 18349 # OS/2 can only load a DLL with a base name of 8 characters or less. 18350 soname_spec='`test -n "$os2dllname" && libname="$os2dllname"; 18351 v=$($ECHO $release$versuffix | tr -d .-); 18352 n=$($ECHO $libname | cut -b -$((8 - ${#v})) | tr . _); 18353 $ECHO $n$v`$shared_ext' 18354 library_names_spec='${libname}_dll.$libext' 18355 dynamic_linker='OS/2 ld.exe' 18356 shlibpath_var=BEGINLIBPATH 18357 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib" 18358 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18359 postinstall_cmds='base_file=`basename \$file`~ 18360 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\$base_file'\''i; $ECHO \$dlname'\''`~ 18361 dldir=$destdir/`dirname \$dlpath`~ 18362 test -d \$dldir || mkdir -p \$dldir~ 18363 $install_prog $dir/$dlname \$dldir/$dlname~ 18364 chmod a+x \$dldir/$dlname~ 18365 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then 18366 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?; 18367 fi' 18368 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; $ECHO \$dlname'\''`~ 18369 dlpath=$dir/\$dldll~ 18370 $RM \$dlpath' 18371 ;; 18372 18373osf3* | osf4* | osf5*) 18374 version_type=osf 18375 need_lib_prefix=no 18376 need_version=no 18377 soname_spec='$libname$release$shared_ext$major' 18378 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18379 shlibpath_var=LD_LIBRARY_PATH 18380 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib" 18381 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec 18382 ;; 18383 18384rdos*) 18385 dynamic_linker=no 18386 ;; 18387 18388solaris*) 18389 version_type=linux # correct to gnu/linux during the next big refactor 18390 need_lib_prefix=no 18391 need_version=no 18392 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18393 soname_spec='$libname$release$shared_ext$major' 18394 shlibpath_var=LD_LIBRARY_PATH 18395 shlibpath_overrides_runpath=yes 18396 hardcode_into_libs=yes 18397 # ldd complains unless libraries are executable 18398 postinstall_cmds='chmod +x $lib' 18399 ;; 18400 18401sunos4*) 18402 version_type=sunos 18403 library_names_spec='$libname$release$shared_ext$versuffix $libname$shared_ext$versuffix' 18404 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir' 18405 shlibpath_var=LD_LIBRARY_PATH 18406 shlibpath_overrides_runpath=yes 18407 if test yes = "$with_gnu_ld"; then 18408 need_lib_prefix=no 18409 fi 18410 need_version=yes 18411 ;; 18412 18413sysv4 | sysv4.3*) 18414 version_type=linux # correct to gnu/linux during the next big refactor 18415 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18416 soname_spec='$libname$release$shared_ext$major' 18417 shlibpath_var=LD_LIBRARY_PATH 18418 case $host_vendor in 18419 sni) 18420 shlibpath_overrides_runpath=no 18421 need_lib_prefix=no 18422 runpath_var=LD_RUN_PATH 18423 ;; 18424 siemens) 18425 need_lib_prefix=no 18426 ;; 18427 motorola) 18428 need_lib_prefix=no 18429 need_version=no 18430 shlibpath_overrides_runpath=no 18431 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib' 18432 ;; 18433 esac 18434 ;; 18435 18436sysv4*MP*) 18437 if test -d /usr/nec; then 18438 version_type=linux # correct to gnu/linux during the next big refactor 18439 library_names_spec='$libname$shared_ext.$versuffix $libname$shared_ext.$major $libname$shared_ext' 18440 soname_spec='$libname$shared_ext.$major' 18441 shlibpath_var=LD_LIBRARY_PATH 18442 fi 18443 ;; 18444 18445sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*) 18446 version_type=sco 18447 need_lib_prefix=no 18448 need_version=no 18449 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext $libname$shared_ext' 18450 soname_spec='$libname$release$shared_ext$major' 18451 shlibpath_var=LD_LIBRARY_PATH 18452 shlibpath_overrides_runpath=yes 18453 hardcode_into_libs=yes 18454 if test yes = "$with_gnu_ld"; then 18455 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib' 18456 else 18457 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib' 18458 case $host_os in 18459 sco3.2v5*) 18460 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib" 18461 ;; 18462 esac 18463 fi 18464 sys_lib_dlsearch_path_spec='/usr/lib' 18465 ;; 18466 18467tpf*) 18468 # TPF is a cross-target only. Preferred cross-host = GNU/Linux. 18469 version_type=linux # correct to gnu/linux during the next big refactor 18470 need_lib_prefix=no 18471 need_version=no 18472 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18473 shlibpath_var=LD_LIBRARY_PATH 18474 shlibpath_overrides_runpath=no 18475 hardcode_into_libs=yes 18476 ;; 18477 18478uts4*) 18479 version_type=linux # correct to gnu/linux during the next big refactor 18480 library_names_spec='$libname$release$shared_ext$versuffix $libname$release$shared_ext$major $libname$shared_ext' 18481 soname_spec='$libname$release$shared_ext$major' 18482 shlibpath_var=LD_LIBRARY_PATH 18483 ;; 18484 18485*) 18486 dynamic_linker=no 18487 ;; 18488esac 18489{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5 18490$as_echo "$dynamic_linker" >&6; } 18491test no = "$dynamic_linker" && can_build_shared=no 18492 18493variables_saved_for_relink="PATH $shlibpath_var $runpath_var" 18494if test yes = "$GCC"; then 18495 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH" 18496fi 18497 18498if test set = "${lt_cv_sys_lib_search_path_spec+set}"; then 18499 sys_lib_search_path_spec=$lt_cv_sys_lib_search_path_spec 18500fi 18501 18502if test set = "${lt_cv_sys_lib_dlsearch_path_spec+set}"; then 18503 sys_lib_dlsearch_path_spec=$lt_cv_sys_lib_dlsearch_path_spec 18504fi 18505 18506# remember unaugmented sys_lib_dlsearch_path content for libtool script decls... 18507configure_time_dlsearch_path=$sys_lib_dlsearch_path_spec 18508 18509# ... but it needs LT_SYS_LIBRARY_PATH munging for other configure-time code 18510func_munge_path_list sys_lib_dlsearch_path_spec "$LT_SYS_LIBRARY_PATH" 18511 18512# to be used as default LT_SYS_LIBRARY_PATH value in generated libtool 18513configure_time_lt_sys_library_path=$LT_SYS_LIBRARY_PATH 18514 18515 18516 18517 18518 18519 18520 18521 18522 18523 18524 18525 18526 18527 18528 18529 18530 18531 18532 18533 18534 18535 18536 18537 18538 18539 18540 18541 18542 18543 18544 18545 18546 18547 18548 18549 18550 18551 18552 18553 18554 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5 18555$as_echo_n "checking how to hardcode library paths into programs... " >&6; } 18556hardcode_action_CXX= 18557if test -n "$hardcode_libdir_flag_spec_CXX" || 18558 test -n "$runpath_var_CXX" || 18559 test yes = "$hardcode_automatic_CXX"; then 18560 18561 # We can hardcode non-existent directories. 18562 if test no != "$hardcode_direct_CXX" && 18563 # If the only mechanism to avoid hardcoding is shlibpath_var, we 18564 # have to relink, otherwise we might link with an installed library 18565 # when we should be linking with a yet-to-be-installed one 18566 ## test no != "$_LT_TAGVAR(hardcode_shlibpath_var, CXX)" && 18567 test no != "$hardcode_minus_L_CXX"; then 18568 # Linking always hardcodes the temporary library directory. 18569 hardcode_action_CXX=relink 18570 else 18571 # We can link without hardcoding, and we can hardcode nonexisting dirs. 18572 hardcode_action_CXX=immediate 18573 fi 18574else 18575 # We cannot hardcode anything, or else we can only hardcode existing 18576 # directories. 18577 hardcode_action_CXX=unsupported 18578fi 18579{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action_CXX" >&5 18580$as_echo "$hardcode_action_CXX" >&6; } 18581 18582if test relink = "$hardcode_action_CXX" || 18583 test yes = "$inherit_rpath_CXX"; then 18584 # Fast installation is not supported 18585 enable_fast_install=no 18586elif test yes = "$shlibpath_overrides_runpath" || 18587 test no = "$enable_shared"; then 18588 # Fast installation is not necessary 18589 enable_fast_install=needless 18590fi 18591 18592 18593 18594 18595 18596 18597 18598 fi # test -n "$compiler" 18599 18600 CC=$lt_save_CC 18601 CFLAGS=$lt_save_CFLAGS 18602 LDCXX=$LD 18603 LD=$lt_save_LD 18604 GCC=$lt_save_GCC 18605 with_gnu_ld=$lt_save_with_gnu_ld 18606 lt_cv_path_LDCXX=$lt_cv_path_LD 18607 lt_cv_path_LD=$lt_save_path_LD 18608 lt_cv_prog_gnu_ldcxx=$lt_cv_prog_gnu_ld 18609 lt_cv_prog_gnu_ld=$lt_save_with_gnu_ld 18610fi # test yes != "$_lt_caught_CXX_error" 18611 18612ac_ext=c 18613ac_cpp='$CPP $CPPFLAGS' 18614ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' 18615ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' 18616ac_compiler_gnu=$ac_cv_c_compiler_gnu 18617 18618 18619depcc="$CXX" am_compiler_list= 18620 18621{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 18622$as_echo_n "checking dependency style of $depcc... " >&6; } 18623if ${am_cv_CXX_dependencies_compiler_type+:} false; then : 18624 $as_echo_n "(cached) " >&6 18625else 18626 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then 18627 # We make a subdir and do the tests there. Otherwise we can end up 18628 # making bogus files that we don't know about and never remove. For 18629 # instance it was reported that on HP-UX the gcc test will end up 18630 # making a dummy file named 'D' -- because '-MD' means "put the output 18631 # in D". 18632 rm -rf conftest.dir 18633 mkdir conftest.dir 18634 # Copy depcomp to subdir because otherwise we won't find it if we're 18635 # using a relative directory. 18636 cp "$am_depcomp" conftest.dir 18637 cd conftest.dir 18638 # We will build objects and dependencies in a subdirectory because 18639 # it helps to detect inapplicable dependency modes. For instance 18640 # both Tru64's cc and ICC support -MD to output dependencies as a 18641 # side effect of compilation, but ICC will put the dependencies in 18642 # the current directory while Tru64 will put them in the object 18643 # directory. 18644 mkdir sub 18645 18646 am_cv_CXX_dependencies_compiler_type=none 18647 if test "$am_compiler_list" = ""; then 18648 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` 18649 fi 18650 am__universal=false 18651 case " $depcc " in #( 18652 *\ -arch\ *\ -arch\ *) am__universal=true ;; 18653 esac 18654 18655 for depmode in $am_compiler_list; do 18656 # Setup a source with many dependencies, because some compilers 18657 # like to wrap large dependency lists on column 80 (with \), and 18658 # we should not choose a depcomp mode which is confused by this. 18659 # 18660 # We need to recreate these files for each test, as the compiler may 18661 # overwrite some of them when testing with obscure command lines. 18662 # This happens at least with the AIX C compiler. 18663 : > sub/conftest.c 18664 for i in 1 2 3 4 5 6; do 18665 echo '#include "conftst'$i'.h"' >> sub/conftest.c 18666 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with 18667 # Solaris 10 /bin/sh. 18668 echo '/* dummy */' > sub/conftst$i.h 18669 done 18670 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf 18671 18672 # We check with '-c' and '-o' for the sake of the "dashmstdout" 18673 # mode. It turns out that the SunPro C++ compiler does not properly 18674 # handle '-M -o', and we need to detect this. Also, some Intel 18675 # versions had trouble with output in subdirs. 18676 am__obj=sub/conftest.${OBJEXT-o} 18677 am__minus_obj="-o $am__obj" 18678 case $depmode in 18679 gcc) 18680 # This depmode causes a compiler race in universal mode. 18681 test "$am__universal" = false || continue 18682 ;; 18683 nosideeffect) 18684 # After this tag, mechanisms are not by side-effect, so they'll 18685 # only be used when explicitly requested. 18686 if test "x$enable_dependency_tracking" = xyes; then 18687 continue 18688 else 18689 break 18690 fi 18691 ;; 18692 msvc7 | msvc7msys | msvisualcpp | msvcmsys) 18693 # This compiler won't grok '-c -o', but also, the minuso test has 18694 # not run yet. These depmodes are late enough in the game, and 18695 # so weak that their functioning should not be impacted. 18696 am__obj=conftest.${OBJEXT-o} 18697 am__minus_obj= 18698 ;; 18699 none) break ;; 18700 esac 18701 if depmode=$depmode \ 18702 source=sub/conftest.c object=$am__obj \ 18703 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ 18704 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ 18705 >/dev/null 2>conftest.err && 18706 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && 18707 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && 18708 grep $am__obj sub/conftest.Po > /dev/null 2>&1 && 18709 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then 18710 # icc doesn't choke on unknown options, it will just issue warnings 18711 # or remarks (even with -Werror). So we grep stderr for any message 18712 # that says an option was ignored or not supported. 18713 # When given -MP, icc 7.0 and 7.1 complain thusly: 18714 # icc: Command line warning: ignoring option '-M'; no argument required 18715 # The diagnosis changed in icc 8.0: 18716 # icc: Command line remark: option '-MP' not supported 18717 if (grep 'ignoring option' conftest.err || 18718 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else 18719 am_cv_CXX_dependencies_compiler_type=$depmode 18720 break 18721 fi 18722 fi 18723 done 18724 18725 cd .. 18726 rm -rf conftest.dir 18727else 18728 am_cv_CXX_dependencies_compiler_type=none 18729fi 18730 18731fi 18732{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 18733$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } 18734CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type 18735 18736 if 18737 test "x$enable_dependency_tracking" != xno \ 18738 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then 18739 am__fastdepCXX_TRUE= 18740 am__fastdepCXX_FALSE='#' 18741else 18742 am__fastdepCXX_TRUE='#' 18743 am__fastdepCXX_FALSE= 18744fi 18745 18746 18747 18748{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5 18749$as_echo_n "checking whether ln -s works... " >&6; } 18750LN_S=$as_ln_s 18751if test "$LN_S" = "ln -s"; then 18752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18753$as_echo "yes" >&6; } 18754else 18755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5 18756$as_echo "no, using $LN_S" >&6; } 18757fi 18758 18759for ac_prog in gawk mawk nawk awk 18760do 18761 # Extract the first word of "$ac_prog", so it can be a program name with args. 18762set dummy $ac_prog; ac_word=$2 18763{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18764$as_echo_n "checking for $ac_word... " >&6; } 18765if ${ac_cv_prog_AWK+:} false; then : 18766 $as_echo_n "(cached) " >&6 18767else 18768 if test -n "$AWK"; then 18769 ac_cv_prog_AWK="$AWK" # Let the user override the test. 18770else 18771as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18772for as_dir in $PATH 18773do 18774 IFS=$as_save_IFS 18775 test -z "$as_dir" && as_dir=. 18776 for ac_exec_ext in '' $ac_executable_extensions; do 18777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18778 ac_cv_prog_AWK="$ac_prog" 18779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18780 break 2 18781 fi 18782done 18783 done 18784IFS=$as_save_IFS 18785 18786fi 18787fi 18788AWK=$ac_cv_prog_AWK 18789if test -n "$AWK"; then 18790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 18791$as_echo "$AWK" >&6; } 18792else 18793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18794$as_echo "no" >&6; } 18795fi 18796 18797 18798 test -n "$AWK" && break 18799done 18800 18801 18802 18803# Extract the first word of "bison", so it can be a program name with args. 18804set dummy bison; ac_word=$2 18805{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18806$as_echo_n "checking for $ac_word... " >&6; } 18807if ${ac_cv_path_BISON+:} false; then : 18808 $as_echo_n "(cached) " >&6 18809else 18810 case $BISON in 18811 [\\/]* | ?:[\\/]*) 18812 ac_cv_path_BISON="$BISON" # Let the user override the test with a path. 18813 ;; 18814 *) 18815 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18816for as_dir in $PATH 18817do 18818 IFS=$as_save_IFS 18819 test -z "$as_dir" && as_dir=. 18820 for ac_exec_ext in '' $ac_executable_extensions; do 18821 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18822 ac_cv_path_BISON="$as_dir/$ac_word$ac_exec_ext" 18823 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18824 break 2 18825 fi 18826done 18827 done 18828IFS=$as_save_IFS 18829 18830 test -z "$ac_cv_path_BISON" && ac_cv_path_BISON="bison" 18831 ;; 18832esac 18833fi 18834BISON=$ac_cv_path_BISON 18835if test -n "$BISON"; then 18836 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BISON" >&5 18837$as_echo "$BISON" >&6; } 18838else 18839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18840$as_echo "no" >&6; } 18841fi 18842 18843 18844# Extract the first word of "help2man", so it can be a program name with args. 18845set dummy help2man; ac_word=$2 18846{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18847$as_echo_n "checking for $ac_word... " >&6; } 18848if ${ac_cv_path_HELP2MAN+:} false; then : 18849 $as_echo_n "(cached) " >&6 18850else 18851 case $HELP2MAN in 18852 [\\/]* | ?:[\\/]*) 18853 ac_cv_path_HELP2MAN="$HELP2MAN" # Let the user override the test with a path. 18854 ;; 18855 *) 18856 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18857for as_dir in $PATH 18858do 18859 IFS=$as_save_IFS 18860 test -z "$as_dir" && as_dir=. 18861 for ac_exec_ext in '' $ac_executable_extensions; do 18862 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18863 ac_cv_path_HELP2MAN="$as_dir/$ac_word$ac_exec_ext" 18864 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18865 break 2 18866 fi 18867done 18868 done 18869IFS=$as_save_IFS 18870 18871 test -z "$ac_cv_path_HELP2MAN" && ac_cv_path_HELP2MAN="help2man" 18872 ;; 18873esac 18874fi 18875HELP2MAN=$ac_cv_path_HELP2MAN 18876if test -n "$HELP2MAN"; then 18877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HELP2MAN" >&5 18878$as_echo "$HELP2MAN" >&6; } 18879else 18880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18881$as_echo "no" >&6; } 18882fi 18883 18884 18885 18886# Check for a m4 that supports -P 18887 18888{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for m4 that supports -P" >&5 18889$as_echo_n "checking for m4 that supports -P... " >&6; } 18890if ${ac_cv_path_M4+:} false; then : 18891 $as_echo_n "(cached) " >&6 18892else 18893 if test -z "$M4"; then 18894 ac_path_M4_found=false 18895 # Loop through the user's path and test for each of PROGNAME-LIST 18896 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18897for as_dir in $PATH 18898do 18899 IFS=$as_save_IFS 18900 test -z "$as_dir" && as_dir=. 18901 for ac_prog in gm4 gnum4 m4; do 18902 for ac_exec_ext in '' $ac_executable_extensions; do 18903 ac_path_M4="$as_dir/$ac_prog$ac_exec_ext" 18904 as_fn_executable_p "$ac_path_M4" || continue 18905m4out=`echo 'm''4_divnum' | $ac_path_M4 -P` 18906 test "x$m4out" = x0 \ 18907 && ac_cv_path_M4=$ac_path_M4 ac_path_M4_found=: 18908 $ac_path_M4_found && break 3 18909 done 18910 done 18911 done 18912IFS=$as_save_IFS 18913 if test -z "$ac_cv_path_M4"; then 18914 as_fn_error $? "could not find m4 that supports -P" "$LINENO" 5 18915 fi 18916else 18917 ac_cv_path_M4=$M4 18918fi 18919 18920fi 18921{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_M4" >&5 18922$as_echo "$ac_cv_path_M4" >&6; } 18923M4=$ac_cv_path_M4 18924 18925 18926cat >>confdefs.h <<_ACEOF 18927#define M4 "$M4" 18928_ACEOF 18929 18930 18931# Extract the first word of "indent", so it can be a program name with args. 18932set dummy indent; ac_word=$2 18933{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 18934$as_echo_n "checking for $ac_word... " >&6; } 18935if ${ac_cv_path_INDENT+:} false; then : 18936 $as_echo_n "(cached) " >&6 18937else 18938 case $INDENT in 18939 [\\/]* | ?:[\\/]*) 18940 ac_cv_path_INDENT="$INDENT" # Let the user override the test with a path. 18941 ;; 18942 *) 18943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 18944for as_dir in $PATH 18945do 18946 IFS=$as_save_IFS 18947 test -z "$as_dir" && as_dir=. 18948 for ac_exec_ext in '' $ac_executable_extensions; do 18949 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 18950 ac_cv_path_INDENT="$as_dir/$ac_word$ac_exec_ext" 18951 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 18952 break 2 18953 fi 18954done 18955 done 18956IFS=$as_save_IFS 18957 18958 test -z "$ac_cv_path_INDENT" && ac_cv_path_INDENT="indent" 18959 ;; 18960esac 18961fi 18962INDENT=$ac_cv_path_INDENT 18963if test -n "$INDENT"; then 18964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INDENT" >&5 18965$as_echo "$INDENT" >&6; } 18966else 18967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18968$as_echo "no" >&6; } 18969fi 18970 18971 18972# if INDENT is set to 'indent' then we didn't find indent 18973if test "$INDENT" != indent ; then 18974 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $INDENT is GNU indent" >&5 18975$as_echo_n "checking if $INDENT is GNU indent... " >&6; } 18976 if $INDENT --version 2>/dev/null | head -n 1|grep "GNU indent" > /dev/null ; then 18977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 18978$as_echo "yes" >&6; } 18979 else 18980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 18981$as_echo "no" >&6; } 18982 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $INDENT does not appear to be GNU indent." >&5 18983$as_echo "$as_me: WARNING: $INDENT does not appear to be GNU indent." >&2;} 18984 fi 18985else 18986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no indent program found: make indent target will not function" >&5 18987$as_echo "$as_me: WARNING: no indent program found: make indent target will not function" >&2;} 18988fi 18989 18990# checks for headers 18991 18992{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 18993$as_echo_n "checking for ANSI C header files... " >&6; } 18994if ${ac_cv_header_stdc+:} false; then : 18995 $as_echo_n "(cached) " >&6 18996else 18997 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 18998/* end confdefs.h. */ 18999#include <stdlib.h> 19000#include <stdarg.h> 19001#include <string.h> 19002#include <float.h> 19003 19004int 19005main () 19006{ 19007 19008 ; 19009 return 0; 19010} 19011_ACEOF 19012if ac_fn_c_try_compile "$LINENO"; then : 19013 ac_cv_header_stdc=yes 19014else 19015 ac_cv_header_stdc=no 19016fi 19017rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19018 19019if test $ac_cv_header_stdc = yes; then 19020 # SunOS 4.x string.h does not declare mem*, contrary to ANSI. 19021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19022/* end confdefs.h. */ 19023#include <string.h> 19024 19025_ACEOF 19026if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19027 $EGREP "memchr" >/dev/null 2>&1; then : 19028 19029else 19030 ac_cv_header_stdc=no 19031fi 19032rm -f conftest* 19033 19034fi 19035 19036if test $ac_cv_header_stdc = yes; then 19037 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. 19038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19039/* end confdefs.h. */ 19040#include <stdlib.h> 19041 19042_ACEOF 19043if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19044 $EGREP "free" >/dev/null 2>&1; then : 19045 19046else 19047 ac_cv_header_stdc=no 19048fi 19049rm -f conftest* 19050 19051fi 19052 19053if test $ac_cv_header_stdc = yes; then 19054 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. 19055 if test "$cross_compiling" = yes; then : 19056 : 19057else 19058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19059/* end confdefs.h. */ 19060#include <ctype.h> 19061#include <stdlib.h> 19062#if ((' ' & 0x0FF) == 0x020) 19063# define ISLOWER(c) ('a' <= (c) && (c) <= 'z') 19064# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) 19065#else 19066# define ISLOWER(c) \ 19067 (('a' <= (c) && (c) <= 'i') \ 19068 || ('j' <= (c) && (c) <= 'r') \ 19069 || ('s' <= (c) && (c) <= 'z')) 19070# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) 19071#endif 19072 19073#define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) 19074int 19075main () 19076{ 19077 int i; 19078 for (i = 0; i < 256; i++) 19079 if (XOR (islower (i), ISLOWER (i)) 19080 || toupper (i) != TOUPPER (i)) 19081 return 2; 19082 return 0; 19083} 19084_ACEOF 19085if ac_fn_c_try_run "$LINENO"; then : 19086 19087else 19088 ac_cv_header_stdc=no 19089fi 19090rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19091 conftest.$ac_objext conftest.beam conftest.$ac_ext 19092fi 19093 19094fi 19095fi 19096{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 19097$as_echo "$ac_cv_header_stdc" >&6; } 19098if test $ac_cv_header_stdc = yes; then 19099 19100$as_echo "#define STDC_HEADERS 1" >>confdefs.h 19101 19102fi 19103 19104{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5 19105$as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; } 19106if ${ac_cv_header_sys_wait_h+:} false; then : 19107 $as_echo_n "(cached) " >&6 19108else 19109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19110/* end confdefs.h. */ 19111#include <sys/types.h> 19112#include <sys/wait.h> 19113#ifndef WEXITSTATUS 19114# define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8) 19115#endif 19116#ifndef WIFEXITED 19117# define WIFEXITED(stat_val) (((stat_val) & 255) == 0) 19118#endif 19119 19120int 19121main () 19122{ 19123 int s; 19124 wait (&s); 19125 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1; 19126 ; 19127 return 0; 19128} 19129_ACEOF 19130if ac_fn_c_try_compile "$LINENO"; then : 19131 ac_cv_header_sys_wait_h=yes 19132else 19133 ac_cv_header_sys_wait_h=no 19134fi 19135rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19136fi 19137{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5 19138$as_echo "$ac_cv_header_sys_wait_h" >&6; } 19139if test $ac_cv_header_sys_wait_h = yes; then 19140 19141$as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h 19142 19143fi 19144 19145for ac_header in inttypes.h libintl.h limits.h locale.h malloc.h netinet/in.h regex.h stddef.h stdlib.h string.h strings.h unistd.h 19146do : 19147 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` 19148ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" 19149if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : 19150 cat >>confdefs.h <<_ACEOF 19151#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 19152_ACEOF 19153 19154fi 19155 19156done 19157 19158 19159# checks for libraries 19160 19161# The test test-pthread uses libpthread, so we check for it here, but 19162# all we need is the preprocessor symbol defined since we don't need 19163# LIBS to include libpthread for building flex. 19164 19165{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_lock in -lpthread" >&5 19166$as_echo_n "checking for pthread_mutex_lock in -lpthread... " >&6; } 19167if ${ac_cv_lib_pthread_pthread_mutex_lock+:} false; then : 19168 $as_echo_n "(cached) " >&6 19169else 19170 ac_check_lib_save_LIBS=$LIBS 19171LIBS="-lpthread $LIBS" 19172cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19173/* end confdefs.h. */ 19174 19175/* Override any GCC internal prototype to avoid an error. 19176 Use char because int might match the return type of a GCC 19177 builtin and then its argument prototype would still apply. */ 19178#ifdef __cplusplus 19179extern "C" 19180#endif 19181char pthread_mutex_lock (); 19182int 19183main () 19184{ 19185return pthread_mutex_lock (); 19186 ; 19187 return 0; 19188} 19189_ACEOF 19190if ac_fn_c_try_link "$LINENO"; then : 19191 ac_cv_lib_pthread_pthread_mutex_lock=yes 19192else 19193 ac_cv_lib_pthread_pthread_mutex_lock=no 19194fi 19195rm -f core conftest.err conftest.$ac_objext \ 19196 conftest$ac_exeext conftest.$ac_ext 19197LIBS=$ac_check_lib_save_LIBS 19198fi 19199{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_mutex_lock" >&5 19200$as_echo "$ac_cv_lib_pthread_pthread_mutex_lock" >&6; } 19201if test "x$ac_cv_lib_pthread_pthread_mutex_lock" = xyes; then : 19202 19203$as_echo "#define HAVE_LIBPTHREAD 1" >>confdefs.h 19204 19205else 19206 19207$as_echo "#define HAVE_LIBPTHREAD 0" >>confdefs.h 19208 19209 19210fi 19211 19212for ac_header in pthread.h 19213do : 19214 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default" 19215if test "x$ac_cv_header_pthread_h" = xyes; then : 19216 cat >>confdefs.h <<_ACEOF 19217#define HAVE_PTHREAD_H 1 19218_ACEOF 19219 19220fi 19221 19222done 19223 19224 if test x$ac_cv_lib_pthread_pthread_mutex_lock = xyes; then 19225 want_pthread_TRUE= 19226 want_pthread_FALSE='#' 19227else 19228 want_pthread_TRUE='#' 19229 want_pthread_FALSE= 19230fi 19231 19232 19233{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for log10 in -lm" >&5 19234$as_echo_n "checking for log10 in -lm... " >&6; } 19235if ${ac_cv_lib_m_log10+:} false; then : 19236 $as_echo_n "(cached) " >&6 19237else 19238 ac_check_lib_save_LIBS=$LIBS 19239LIBS="-lm $LIBS" 19240cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19241/* end confdefs.h. */ 19242 19243/* Override any GCC internal prototype to avoid an error. 19244 Use char because int might match the return type of a GCC 19245 builtin and then its argument prototype would still apply. */ 19246#ifdef __cplusplus 19247extern "C" 19248#endif 19249char log10 (); 19250int 19251main () 19252{ 19253return log10 (); 19254 ; 19255 return 0; 19256} 19257_ACEOF 19258if ac_fn_c_try_link "$LINENO"; then : 19259 ac_cv_lib_m_log10=yes 19260else 19261 ac_cv_lib_m_log10=no 19262fi 19263rm -f core conftest.err conftest.$ac_objext \ 19264 conftest$ac_exeext conftest.$ac_ext 19265LIBS=$ac_check_lib_save_LIBS 19266fi 19267{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_log10" >&5 19268$as_echo "$ac_cv_lib_m_log10" >&6; } 19269if test "x$ac_cv_lib_m_log10" = xyes; then : 19270 cat >>confdefs.h <<_ACEOF 19271#define HAVE_LIBM 1 19272_ACEOF 19273 19274 LIBS="-lm $LIBS" 19275 19276fi 19277 19278 19279# Checks for typedefs, structures, and compiler characteristics. 19280 19281{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5 19282$as_echo_n "checking for stdbool.h that conforms to C99... " >&6; } 19283if ${ac_cv_header_stdbool_h+:} false; then : 19284 $as_echo_n "(cached) " >&6 19285else 19286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19287/* end confdefs.h. */ 19288 19289 #include <stdbool.h> 19290 #ifndef bool 19291 "error: bool is not defined" 19292 #endif 19293 #ifndef false 19294 "error: false is not defined" 19295 #endif 19296 #if false 19297 "error: false is not 0" 19298 #endif 19299 #ifndef true 19300 "error: true is not defined" 19301 #endif 19302 #if true != 1 19303 "error: true is not 1" 19304 #endif 19305 #ifndef __bool_true_false_are_defined 19306 "error: __bool_true_false_are_defined is not defined" 19307 #endif 19308 19309 struct s { _Bool s: 1; _Bool t; } s; 19310 19311 char a[true == 1 ? 1 : -1]; 19312 char b[false == 0 ? 1 : -1]; 19313 char c[__bool_true_false_are_defined == 1 ? 1 : -1]; 19314 char d[(bool) 0.5 == true ? 1 : -1]; 19315 /* See body of main program for 'e'. */ 19316 char f[(_Bool) 0.0 == false ? 1 : -1]; 19317 char g[true]; 19318 char h[sizeof (_Bool)]; 19319 char i[sizeof s.t]; 19320 enum { j = false, k = true, l = false * true, m = true * 256 }; 19321 /* The following fails for 19322 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */ 19323 _Bool n[m]; 19324 char o[sizeof n == m * sizeof n[0] ? 1 : -1]; 19325 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1]; 19326 /* Catch a bug in an HP-UX C compiler. See 19327 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html 19328 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html 19329 */ 19330 _Bool q = true; 19331 _Bool *pq = &q; 19332 19333int 19334main () 19335{ 19336 19337 bool e = &s; 19338 *pq |= q; 19339 *pq |= ! q; 19340 /* Refer to every declared value, to avoid compiler optimizations. */ 19341 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l 19342 + !m + !n + !o + !p + !q + !pq); 19343 19344 ; 19345 return 0; 19346} 19347_ACEOF 19348if ac_fn_c_try_compile "$LINENO"; then : 19349 ac_cv_header_stdbool_h=yes 19350else 19351 ac_cv_header_stdbool_h=no 19352fi 19353rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19354fi 19355{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5 19356$as_echo "$ac_cv_header_stdbool_h" >&6; } 19357 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default" 19358if test "x$ac_cv_type__Bool" = xyes; then : 19359 19360cat >>confdefs.h <<_ACEOF 19361#define HAVE__BOOL 1 19362_ACEOF 19363 19364 19365fi 19366 19367 19368if test $ac_cv_header_stdbool_h = yes; then 19369 19370$as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h 19371 19372fi 19373 19374{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5 19375$as_echo_n "checking for an ANSI C-conforming const... " >&6; } 19376if ${ac_cv_c_const+:} false; then : 19377 $as_echo_n "(cached) " >&6 19378else 19379 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19380/* end confdefs.h. */ 19381 19382int 19383main () 19384{ 19385 19386#ifndef __cplusplus 19387 /* Ultrix mips cc rejects this sort of thing. */ 19388 typedef int charset[2]; 19389 const charset cs = { 0, 0 }; 19390 /* SunOS 4.1.1 cc rejects this. */ 19391 char const *const *pcpcc; 19392 char **ppc; 19393 /* NEC SVR4.0.2 mips cc rejects this. */ 19394 struct point {int x, y;}; 19395 static struct point const zero = {0,0}; 19396 /* AIX XL C 1.02.0.0 rejects this. 19397 It does not let you subtract one const X* pointer from another in 19398 an arm of an if-expression whose if-part is not a constant 19399 expression */ 19400 const char *g = "string"; 19401 pcpcc = &g + (g ? g-g : 0); 19402 /* HPUX 7.0 cc rejects these. */ 19403 ++pcpcc; 19404 ppc = (char**) pcpcc; 19405 pcpcc = (char const *const *) ppc; 19406 { /* SCO 3.2v4 cc rejects this sort of thing. */ 19407 char tx; 19408 char *t = &tx; 19409 char const *s = 0 ? (char *) 0 : (char const *) 0; 19410 19411 *t++ = 0; 19412 if (s) return 0; 19413 } 19414 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ 19415 int x[] = {25, 17}; 19416 const int *foo = &x[0]; 19417 ++foo; 19418 } 19419 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ 19420 typedef const int *iptr; 19421 iptr p = 0; 19422 ++p; 19423 } 19424 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying 19425 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ 19426 struct s { int j; const int *ap[3]; } bx; 19427 struct s *b = &bx; b->j = 5; 19428 } 19429 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ 19430 const int foo = 10; 19431 if (!foo) return 0; 19432 } 19433 return !cs[0] && !zero.x; 19434#endif 19435 19436 ; 19437 return 0; 19438} 19439_ACEOF 19440if ac_fn_c_try_compile "$LINENO"; then : 19441 ac_cv_c_const=yes 19442else 19443 ac_cv_c_const=no 19444fi 19445rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext 19446fi 19447{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5 19448$as_echo "$ac_cv_c_const" >&6; } 19449if test $ac_cv_c_const = no; then 19450 19451$as_echo "#define const /**/" >>confdefs.h 19452 19453fi 19454 19455ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default" 19456if test "x$ac_cv_type_size_t" = xyes; then : 19457 19458else 19459 19460cat >>confdefs.h <<_ACEOF 19461#define size_t unsigned int 19462_ACEOF 19463 19464fi 19465 19466 19467# Checks for library functions. 19468 19469# The Ultrix 4.2 mips builtin alloca declared by alloca.h only works 19470# for constant arguments. Useless! 19471{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for working alloca.h" >&5 19472$as_echo_n "checking for working alloca.h... " >&6; } 19473if ${ac_cv_working_alloca_h+:} false; then : 19474 $as_echo_n "(cached) " >&6 19475else 19476 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19477/* end confdefs.h. */ 19478#include <alloca.h> 19479int 19480main () 19481{ 19482char *p = (char *) alloca (2 * sizeof (int)); 19483 if (p) return 0; 19484 ; 19485 return 0; 19486} 19487_ACEOF 19488if ac_fn_c_try_link "$LINENO"; then : 19489 ac_cv_working_alloca_h=yes 19490else 19491 ac_cv_working_alloca_h=no 19492fi 19493rm -f core conftest.err conftest.$ac_objext \ 19494 conftest$ac_exeext conftest.$ac_ext 19495fi 19496{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_working_alloca_h" >&5 19497$as_echo "$ac_cv_working_alloca_h" >&6; } 19498if test $ac_cv_working_alloca_h = yes; then 19499 19500$as_echo "#define HAVE_ALLOCA_H 1" >>confdefs.h 19501 19502fi 19503 19504{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for alloca" >&5 19505$as_echo_n "checking for alloca... " >&6; } 19506if ${ac_cv_func_alloca_works+:} false; then : 19507 $as_echo_n "(cached) " >&6 19508else 19509 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19510/* end confdefs.h. */ 19511#ifdef __GNUC__ 19512# define alloca __builtin_alloca 19513#else 19514# ifdef _MSC_VER 19515# include <malloc.h> 19516# define alloca _alloca 19517# else 19518# ifdef HAVE_ALLOCA_H 19519# include <alloca.h> 19520# else 19521# ifdef _AIX 19522 #pragma alloca 19523# else 19524# ifndef alloca /* predefined by HP cc +Olibcalls */ 19525void *alloca (size_t); 19526# endif 19527# endif 19528# endif 19529# endif 19530#endif 19531 19532int 19533main () 19534{ 19535char *p = (char *) alloca (1); 19536 if (p) return 0; 19537 ; 19538 return 0; 19539} 19540_ACEOF 19541if ac_fn_c_try_link "$LINENO"; then : 19542 ac_cv_func_alloca_works=yes 19543else 19544 ac_cv_func_alloca_works=no 19545fi 19546rm -f core conftest.err conftest.$ac_objext \ 19547 conftest$ac_exeext conftest.$ac_ext 19548fi 19549{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_alloca_works" >&5 19550$as_echo "$ac_cv_func_alloca_works" >&6; } 19551 19552if test $ac_cv_func_alloca_works = yes; then 19553 19554$as_echo "#define HAVE_ALLOCA 1" >>confdefs.h 19555 19556else 19557 # The SVR3 libPW and SVR4 libucb both contain incompatible functions 19558# that cause trouble. Some versions do not even contain alloca or 19559# contain a buggy version. If you still want to use their alloca, 19560# use ar to extract alloca.o from them instead of compiling alloca.c. 19561 19562ALLOCA=\${LIBOBJDIR}alloca.$ac_objext 19563 19564$as_echo "#define C_ALLOCA 1" >>confdefs.h 19565 19566 19567{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether \`alloca.c' needs Cray hooks" >&5 19568$as_echo_n "checking whether \`alloca.c' needs Cray hooks... " >&6; } 19569if ${ac_cv_os_cray+:} false; then : 19570 $as_echo_n "(cached) " >&6 19571else 19572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19573/* end confdefs.h. */ 19574#if defined CRAY && ! defined CRAY2 19575webecray 19576#else 19577wenotbecray 19578#endif 19579 19580_ACEOF 19581if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | 19582 $EGREP "webecray" >/dev/null 2>&1; then : 19583 ac_cv_os_cray=yes 19584else 19585 ac_cv_os_cray=no 19586fi 19587rm -f conftest* 19588 19589fi 19590{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_os_cray" >&5 19591$as_echo "$ac_cv_os_cray" >&6; } 19592if test $ac_cv_os_cray = yes; then 19593 for ac_func in _getb67 GETB67 getb67; do 19594 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19595ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19596if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19597 19598cat >>confdefs.h <<_ACEOF 19599#define CRAY_STACKSEG_END $ac_func 19600_ACEOF 19601 19602 break 19603fi 19604 19605 done 19606fi 19607 19608{ $as_echo "$as_me:${as_lineno-$LINENO}: checking stack direction for C alloca" >&5 19609$as_echo_n "checking stack direction for C alloca... " >&6; } 19610if ${ac_cv_c_stack_direction+:} false; then : 19611 $as_echo_n "(cached) " >&6 19612else 19613 if test "$cross_compiling" = yes; then : 19614 ac_cv_c_stack_direction=0 19615else 19616 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19617/* end confdefs.h. */ 19618$ac_includes_default 19619int 19620find_stack_direction (int *addr, int depth) 19621{ 19622 int dir, dummy = 0; 19623 if (! addr) 19624 addr = &dummy; 19625 *addr = addr < &dummy ? 1 : addr == &dummy ? 0 : -1; 19626 dir = depth ? find_stack_direction (addr, depth - 1) : 0; 19627 return dir + dummy; 19628} 19629 19630int 19631main (int argc, char **argv) 19632{ 19633 return find_stack_direction (0, argc + !argv + 20) < 0; 19634} 19635_ACEOF 19636if ac_fn_c_try_run "$LINENO"; then : 19637 ac_cv_c_stack_direction=1 19638else 19639 ac_cv_c_stack_direction=-1 19640fi 19641rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19642 conftest.$ac_objext conftest.beam conftest.$ac_ext 19643fi 19644 19645fi 19646{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_stack_direction" >&5 19647$as_echo "$ac_cv_c_stack_direction" >&6; } 19648cat >>confdefs.h <<_ACEOF 19649#define STACK_DIRECTION $ac_cv_c_stack_direction 19650_ACEOF 19651 19652 19653fi 19654 19655ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default" 19656if test "x$ac_cv_type_pid_t" = xyes; then : 19657 19658else 19659 19660cat >>confdefs.h <<_ACEOF 19661#define pid_t int 19662_ACEOF 19663 19664fi 19665 19666for ac_header in vfork.h 19667do : 19668 ac_fn_c_check_header_mongrel "$LINENO" "vfork.h" "ac_cv_header_vfork_h" "$ac_includes_default" 19669if test "x$ac_cv_header_vfork_h" = xyes; then : 19670 cat >>confdefs.h <<_ACEOF 19671#define HAVE_VFORK_H 1 19672_ACEOF 19673 19674fi 19675 19676done 19677 19678for ac_func in fork vfork 19679do : 19680 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 19681ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 19682if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 19683 cat >>confdefs.h <<_ACEOF 19684#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 19685_ACEOF 19686 19687fi 19688done 19689 19690if test "x$ac_cv_func_fork" = xyes; then 19691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working fork" >&5 19692$as_echo_n "checking for working fork... " >&6; } 19693if ${ac_cv_func_fork_works+:} false; then : 19694 $as_echo_n "(cached) " >&6 19695else 19696 if test "$cross_compiling" = yes; then : 19697 ac_cv_func_fork_works=cross 19698else 19699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19700/* end confdefs.h. */ 19701$ac_includes_default 19702int 19703main () 19704{ 19705 19706 /* By Ruediger Kuhlmann. */ 19707 return fork () < 0; 19708 19709 ; 19710 return 0; 19711} 19712_ACEOF 19713if ac_fn_c_try_run "$LINENO"; then : 19714 ac_cv_func_fork_works=yes 19715else 19716 ac_cv_func_fork_works=no 19717fi 19718rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19719 conftest.$ac_objext conftest.beam conftest.$ac_ext 19720fi 19721 19722fi 19723{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fork_works" >&5 19724$as_echo "$ac_cv_func_fork_works" >&6; } 19725 19726else 19727 ac_cv_func_fork_works=$ac_cv_func_fork 19728fi 19729if test "x$ac_cv_func_fork_works" = xcross; then 19730 case $host in 19731 *-*-amigaos* | *-*-msdosdjgpp*) 19732 # Override, as these systems have only a dummy fork() stub 19733 ac_cv_func_fork_works=no 19734 ;; 19735 *) 19736 ac_cv_func_fork_works=yes 19737 ;; 19738 esac 19739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&5 19740$as_echo "$as_me: WARNING: result $ac_cv_func_fork_works guessed because of cross compilation" >&2;} 19741fi 19742ac_cv_func_vfork_works=$ac_cv_func_vfork 19743if test "x$ac_cv_func_vfork" = xyes; then 19744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working vfork" >&5 19745$as_echo_n "checking for working vfork... " >&6; } 19746if ${ac_cv_func_vfork_works+:} false; then : 19747 $as_echo_n "(cached) " >&6 19748else 19749 if test "$cross_compiling" = yes; then : 19750 ac_cv_func_vfork_works=cross 19751else 19752 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19753/* end confdefs.h. */ 19754/* Thanks to Paul Eggert for this test. */ 19755$ac_includes_default 19756#include <sys/wait.h> 19757#ifdef HAVE_VFORK_H 19758# include <vfork.h> 19759#endif 19760/* On some sparc systems, changes by the child to local and incoming 19761 argument registers are propagated back to the parent. The compiler 19762 is told about this with #include <vfork.h>, but some compilers 19763 (e.g. gcc -O) don't grok <vfork.h>. Test for this by using a 19764 static variable whose address is put into a register that is 19765 clobbered by the vfork. */ 19766static void 19767#ifdef __cplusplus 19768sparc_address_test (int arg) 19769# else 19770sparc_address_test (arg) int arg; 19771#endif 19772{ 19773 static pid_t child; 19774 if (!child) { 19775 child = vfork (); 19776 if (child < 0) { 19777 perror ("vfork"); 19778 _exit(2); 19779 } 19780 if (!child) { 19781 arg = getpid(); 19782 write(-1, "", 0); 19783 _exit (arg); 19784 } 19785 } 19786} 19787 19788int 19789main () 19790{ 19791 pid_t parent = getpid (); 19792 pid_t child; 19793 19794 sparc_address_test (0); 19795 19796 child = vfork (); 19797 19798 if (child == 0) { 19799 /* Here is another test for sparc vfork register problems. This 19800 test uses lots of local variables, at least as many local 19801 variables as main has allocated so far including compiler 19802 temporaries. 4 locals are enough for gcc 1.40.3 on a Solaris 19803 4.1.3 sparc, but we use 8 to be safe. A buggy compiler should 19804 reuse the register of parent for one of the local variables, 19805 since it will think that parent can't possibly be used any more 19806 in this routine. Assigning to the local variable will thus 19807 munge parent in the parent process. */ 19808 pid_t 19809 p = getpid(), p1 = getpid(), p2 = getpid(), p3 = getpid(), 19810 p4 = getpid(), p5 = getpid(), p6 = getpid(), p7 = getpid(); 19811 /* Convince the compiler that p..p7 are live; otherwise, it might 19812 use the same hardware register for all 8 local variables. */ 19813 if (p != p1 || p != p2 || p != p3 || p != p4 19814 || p != p5 || p != p6 || p != p7) 19815 _exit(1); 19816 19817 /* On some systems (e.g. IRIX 3.3), vfork doesn't separate parent 19818 from child file descriptors. If the child closes a descriptor 19819 before it execs or exits, this munges the parent's descriptor 19820 as well. Test for this by closing stdout in the child. */ 19821 _exit(close(fileno(stdout)) != 0); 19822 } else { 19823 int status; 19824 struct stat st; 19825 19826 while (wait(&status) != child) 19827 ; 19828 return ( 19829 /* Was there some problem with vforking? */ 19830 child < 0 19831 19832 /* Did the child fail? (This shouldn't happen.) */ 19833 || status 19834 19835 /* Did the vfork/compiler bug occur? */ 19836 || parent != getpid() 19837 19838 /* Did the file descriptor bug occur? */ 19839 || fstat(fileno(stdout), &st) != 0 19840 ); 19841 } 19842} 19843_ACEOF 19844if ac_fn_c_try_run "$LINENO"; then : 19845 ac_cv_func_vfork_works=yes 19846else 19847 ac_cv_func_vfork_works=no 19848fi 19849rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19850 conftest.$ac_objext conftest.beam conftest.$ac_ext 19851fi 19852 19853fi 19854{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_vfork_works" >&5 19855$as_echo "$ac_cv_func_vfork_works" >&6; } 19856 19857fi; 19858if test "x$ac_cv_func_fork_works" = xcross; then 19859 ac_cv_func_vfork_works=$ac_cv_func_vfork 19860 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&5 19861$as_echo "$as_me: WARNING: result $ac_cv_func_vfork_works guessed because of cross compilation" >&2;} 19862fi 19863 19864if test "x$ac_cv_func_vfork_works" = xyes; then 19865 19866$as_echo "#define HAVE_WORKING_VFORK 1" >>confdefs.h 19867 19868else 19869 19870$as_echo "#define vfork fork" >>confdefs.h 19871 19872fi 19873if test "x$ac_cv_func_fork_works" = xyes; then 19874 19875$as_echo "#define HAVE_WORKING_FORK 1" >>confdefs.h 19876 19877fi 19878 19879for ac_header in stdlib.h 19880do : 19881 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 19882if test "x$ac_cv_header_stdlib_h" = xyes; then : 19883 cat >>confdefs.h <<_ACEOF 19884#define HAVE_STDLIB_H 1 19885_ACEOF 19886 19887fi 19888 19889done 19890 19891{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible malloc" >&5 19892$as_echo_n "checking for GNU libc compatible malloc... " >&6; } 19893if ${ac_cv_func_malloc_0_nonnull+:} false; then : 19894 $as_echo_n "(cached) " >&6 19895else 19896 if test "$cross_compiling" = yes; then : 19897 ac_cv_func_malloc_0_nonnull=no 19898else 19899 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19900/* end confdefs.h. */ 19901#if defined STDC_HEADERS || defined HAVE_STDLIB_H 19902# include <stdlib.h> 19903#else 19904char *malloc (); 19905#endif 19906 19907int 19908main () 19909{ 19910return ! malloc (0); 19911 ; 19912 return 0; 19913} 19914_ACEOF 19915if ac_fn_c_try_run "$LINENO"; then : 19916 ac_cv_func_malloc_0_nonnull=yes 19917else 19918 ac_cv_func_malloc_0_nonnull=no 19919fi 19920rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19921 conftest.$ac_objext conftest.beam conftest.$ac_ext 19922fi 19923 19924fi 19925{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_malloc_0_nonnull" >&5 19926$as_echo "$ac_cv_func_malloc_0_nonnull" >&6; } 19927if test $ac_cv_func_malloc_0_nonnull = yes; then : 19928 19929$as_echo "#define HAVE_MALLOC 1" >>confdefs.h 19930 19931else 19932 $as_echo "#define HAVE_MALLOC 0" >>confdefs.h 19933 19934 case " $LIBOBJS " in 19935 *" malloc.$ac_objext "* ) ;; 19936 *) LIBOBJS="$LIBOBJS malloc.$ac_objext" 19937 ;; 19938esac 19939 19940 19941$as_echo "#define malloc rpl_malloc" >>confdefs.h 19942 19943fi 19944 19945 19946for ac_header in stdlib.h 19947do : 19948 ac_fn_c_check_header_mongrel "$LINENO" "stdlib.h" "ac_cv_header_stdlib_h" "$ac_includes_default" 19949if test "x$ac_cv_header_stdlib_h" = xyes; then : 19950 cat >>confdefs.h <<_ACEOF 19951#define HAVE_STDLIB_H 1 19952_ACEOF 19953 19954fi 19955 19956done 19957 19958{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU libc compatible realloc" >&5 19959$as_echo_n "checking for GNU libc compatible realloc... " >&6; } 19960if ${ac_cv_func_realloc_0_nonnull+:} false; then : 19961 $as_echo_n "(cached) " >&6 19962else 19963 if test "$cross_compiling" = yes; then : 19964 ac_cv_func_realloc_0_nonnull=no 19965else 19966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext 19967/* end confdefs.h. */ 19968#if defined STDC_HEADERS || defined HAVE_STDLIB_H 19969# include <stdlib.h> 19970#else 19971char *realloc (); 19972#endif 19973 19974int 19975main () 19976{ 19977return ! realloc (0, 0); 19978 ; 19979 return 0; 19980} 19981_ACEOF 19982if ac_fn_c_try_run "$LINENO"; then : 19983 ac_cv_func_realloc_0_nonnull=yes 19984else 19985 ac_cv_func_realloc_0_nonnull=no 19986fi 19987rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ 19988 conftest.$ac_objext conftest.beam conftest.$ac_ext 19989fi 19990 19991fi 19992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_realloc_0_nonnull" >&5 19993$as_echo "$ac_cv_func_realloc_0_nonnull" >&6; } 19994if test $ac_cv_func_realloc_0_nonnull = yes; then : 19995 19996$as_echo "#define HAVE_REALLOC 1" >>confdefs.h 19997 19998else 19999 $as_echo "#define HAVE_REALLOC 0" >>confdefs.h 20000 20001 case " $LIBOBJS " in 20002 *" realloc.$ac_objext "* ) ;; 20003 *) LIBOBJS="$LIBOBJS realloc.$ac_objext" 20004 ;; 20005esac 20006 20007 20008$as_echo "#define realloc rpl_realloc" >>confdefs.h 20009 20010fi 20011 20012 20013for ac_func in dup2 isascii memset pow regcomp setlocale strchr strtol 20014do : 20015 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` 20016ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var" 20017if eval test \"x\$"$as_ac_var"\" = x"yes"; then : 20018 cat >>confdefs.h <<_ACEOF 20019#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 20020_ACEOF 20021 20022fi 20023done 20024 20025 20026ac_config_files="$ac_config_files Makefile doc/Makefile examples/Makefile examples/fastwc/Makefile examples/manual/Makefile lib/Makefile po/Makefile.in src/Makefile tools/Makefile tests/Makefile" 20027 20028 20029cat >confcache <<\_ACEOF 20030# This file is a shell script that caches the results of configure 20031# tests run on this system so they can be shared between configure 20032# scripts and configure runs, see configure's option --config-cache. 20033# It is not useful on other systems. If it contains results you don't 20034# want to keep, you may remove or edit it. 20035# 20036# config.status only pays attention to the cache file if you give it 20037# the --recheck option to rerun configure. 20038# 20039# `ac_cv_env_foo' variables (set or unset) will be overridden when 20040# loading this file, other *unset* `ac_cv_foo' will be assigned the 20041# following values. 20042 20043_ACEOF 20044 20045# The following way of writing the cache mishandles newlines in values, 20046# but we know of no workaround that is simple, portable, and efficient. 20047# So, we kill variables containing newlines. 20048# Ultrix sh set writes to stderr and can't be redirected directly, 20049# and sets the high bit in the cache file unless we assign to the vars. 20050( 20051 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do 20052 eval ac_val=\$$ac_var 20053 case $ac_val in #( 20054 *${as_nl}*) 20055 case $ac_var in #( 20056 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 20057$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; 20058 esac 20059 case $ac_var in #( 20060 _ | IFS | as_nl) ;; #( 20061 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( 20062 *) { eval $ac_var=; unset $ac_var;} ;; 20063 esac ;; 20064 esac 20065 done 20066 20067 (set) 2>&1 | 20068 case $as_nl`(ac_space=' '; set) 2>&1` in #( 20069 *${as_nl}ac_space=\ *) 20070 # `set' does not quote correctly, so add quotes: double-quote 20071 # substitution turns \\\\ into \\, and sed turns \\ into \. 20072 sed -n \ 20073 "s/'/'\\\\''/g; 20074 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" 20075 ;; #( 20076 *) 20077 # `set' quotes correctly as required by POSIX, so do not add quotes. 20078 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" 20079 ;; 20080 esac | 20081 sort 20082) | 20083 sed ' 20084 /^ac_cv_env_/b end 20085 t clear 20086 :clear 20087 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ 20088 t end 20089 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ 20090 :end' >>confcache 20091if diff "$cache_file" confcache >/dev/null 2>&1; then :; else 20092 if test -w "$cache_file"; then 20093 if test "x$cache_file" != "x/dev/null"; then 20094 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 20095$as_echo "$as_me: updating cache $cache_file" >&6;} 20096 if test ! -f "$cache_file" || test -h "$cache_file"; then 20097 cat confcache >"$cache_file" 20098 else 20099 case $cache_file in #( 20100 */* | ?:*) 20101 mv -f confcache "$cache_file"$$ && 20102 mv -f "$cache_file"$$ "$cache_file" ;; #( 20103 *) 20104 mv -f confcache "$cache_file" ;; 20105 esac 20106 fi 20107 fi 20108 else 20109 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 20110$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} 20111 fi 20112fi 20113rm -f confcache 20114 20115test "x$prefix" = xNONE && prefix=$ac_default_prefix 20116# Let make expand exec_prefix. 20117test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' 20118 20119DEFS=-DHAVE_CONFIG_H 20120 20121ac_libobjs= 20122ac_ltlibobjs= 20123U= 20124for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue 20125 # 1. Remove the extension, and $U if already installed. 20126 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' 20127 ac_i=`$as_echo "$ac_i" | sed "$ac_script"` 20128 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR 20129 # will be set to the directory where LIBOBJS objects are built. 20130 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" 20131 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' 20132done 20133LIBOBJS=$ac_libobjs 20134 20135LTLIBOBJS=$ac_ltlibobjs 20136 20137 20138{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 20139$as_echo_n "checking that generated files are newer than configure... " >&6; } 20140 if test -n "$am_sleep_pid"; then 20141 # Hide warnings about reused PIDs. 20142 wait $am_sleep_pid 2>/dev/null 20143 fi 20144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 20145$as_echo "done" >&6; } 20146if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then 20147 as_fn_error $? "conditional \"AMDEP\" was never defined. 20148Usually this means the macro was only invoked conditionally." "$LINENO" 5 20149fi 20150if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then 20151 as_fn_error $? "conditional \"am__fastdepCC\" was never defined. 20152Usually this means the macro was only invoked conditionally." "$LINENO" 5 20153fi 20154 if test -n "$EXEEXT"; then 20155 am__EXEEXT_TRUE= 20156 am__EXEEXT_FALSE='#' 20157else 20158 am__EXEEXT_TRUE='#' 20159 am__EXEEXT_FALSE= 20160fi 20161 20162if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then 20163 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. 20164Usually this means the macro was only invoked conditionally." "$LINENO" 5 20165fi 20166if test -z "${want_pthread_TRUE}" && test -z "${want_pthread_FALSE}"; then 20167 as_fn_error $? "conditional \"want_pthread\" was never defined. 20168Usually this means the macro was only invoked conditionally." "$LINENO" 5 20169fi 20170 20171: "${CONFIG_STATUS=./config.status}" 20172ac_write_fail=0 20173ac_clean_files_save=$ac_clean_files 20174ac_clean_files="$ac_clean_files $CONFIG_STATUS" 20175{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 20176$as_echo "$as_me: creating $CONFIG_STATUS" >&6;} 20177as_write_fail=0 20178cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 20179#! $SHELL 20180# Generated by $as_me. 20181# Run this file to recreate the current configuration. 20182# Compiler output produced by configure, useful for debugging 20183# configure, is in config.log if it exists. 20184 20185debug=false 20186ac_cs_recheck=false 20187ac_cs_silent=false 20188 20189SHELL=\${CONFIG_SHELL-$SHELL} 20190export SHELL 20191_ASEOF 20192cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 20193## -------------------- ## 20194## M4sh Initialization. ## 20195## -------------------- ## 20196 20197# Be more Bourne compatible 20198DUALCASE=1; export DUALCASE # for MKS sh 20199if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : 20200 emulate sh 20201 NULLCMD=: 20202 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which 20203 # is contrary to our usage. Disable this feature. 20204 alias -g '${1+"$@"}'='"$@"' 20205 setopt NO_GLOB_SUBST 20206else 20207 case `(set -o) 2>/dev/null` in #( 20208 *posix*) : 20209 set -o posix ;; #( 20210 *) : 20211 ;; 20212esac 20213fi 20214 20215 20216as_nl=' 20217' 20218export as_nl 20219# Printing a long string crashes Solaris 7 /usr/bin/printf. 20220as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' 20221as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo 20222as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo 20223# Prefer a ksh shell builtin over an external printf program on Solaris, 20224# but without wasting forks for bash or zsh. 20225if test -z "$BASH_VERSION$ZSH_VERSION" \ 20226 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then 20227 as_echo='print -r --' 20228 as_echo_n='print -rn --' 20229elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then 20230 as_echo='printf %s\n' 20231 as_echo_n='printf %s' 20232else 20233 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then 20234 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' 20235 as_echo_n='/usr/ucb/echo -n' 20236 else 20237 as_echo_body='eval expr "X$1" : "X\\(.*\\)"' 20238 as_echo_n_body='eval 20239 arg=$1; 20240 case $arg in #( 20241 *"$as_nl"*) 20242 expr "X$arg" : "X\\(.*\\)$as_nl"; 20243 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; 20244 esac; 20245 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" 20246 ' 20247 export as_echo_n_body 20248 as_echo_n='sh -c $as_echo_n_body as_echo' 20249 fi 20250 export as_echo_body 20251 as_echo='sh -c $as_echo_body as_echo' 20252fi 20253 20254# The user is always right. 20255if test "${PATH_SEPARATOR+set}" != set; then 20256 PATH_SEPARATOR=: 20257 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { 20258 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || 20259 PATH_SEPARATOR=';' 20260 } 20261fi 20262 20263 20264# IFS 20265# We need space, tab and new line, in precisely that order. Quoting is 20266# there to prevent editors from complaining about space-tab. 20267# (If _AS_PATH_WALK were called with IFS unset, it would disable word 20268# splitting by setting IFS to empty value.) 20269IFS=" "" $as_nl" 20270 20271# Find who we are. Look in the path if we contain no directory separator. 20272as_myself= 20273case $0 in #(( 20274 *[\\/]* ) as_myself=$0 ;; 20275 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 20276for as_dir in $PATH 20277do 20278 IFS=$as_save_IFS 20279 test -z "$as_dir" && as_dir=. 20280 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break 20281 done 20282IFS=$as_save_IFS 20283 20284 ;; 20285esac 20286# We did not find ourselves, most probably we were run as `sh COMMAND' 20287# in which case we are not to be found in the path. 20288if test "x$as_myself" = x; then 20289 as_myself=$0 20290fi 20291if test ! -f "$as_myself"; then 20292 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 20293 exit 1 20294fi 20295 20296# Unset variables that we do not need and which cause bugs (e.g. in 20297# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" 20298# suppresses any "Segmentation fault" message there. '((' could 20299# trigger a bug in pdksh 5.2.14. 20300for as_var in BASH_ENV ENV MAIL MAILPATH 20301do eval test x\${$as_var+set} = xset \ 20302 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : 20303done 20304PS1='$ ' 20305PS2='> ' 20306PS4='+ ' 20307 20308# NLS nuisances. 20309LC_ALL=C 20310export LC_ALL 20311LANGUAGE=C 20312export LANGUAGE 20313 20314# CDPATH. 20315(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20316 20317 20318# as_fn_error STATUS ERROR [LINENO LOG_FD] 20319# ---------------------------------------- 20320# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are 20321# provided, also output the error to LOG_FD, referencing LINENO. Then exit the 20322# script with STATUS, using 1 if that was 0. 20323as_fn_error () 20324{ 20325 as_status=$1; test $as_status -eq 0 && as_status=1 20326 if test "$4"; then 20327 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack 20328 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 20329 fi 20330 $as_echo "$as_me: error: $2" >&2 20331 as_fn_exit $as_status 20332} # as_fn_error 20333 20334 20335# as_fn_set_status STATUS 20336# ----------------------- 20337# Set $? to STATUS, without forking. 20338as_fn_set_status () 20339{ 20340 return $1 20341} # as_fn_set_status 20342 20343# as_fn_exit STATUS 20344# ----------------- 20345# Exit the shell with STATUS, even in a "trap 0" or "set -e" context. 20346as_fn_exit () 20347{ 20348 set +e 20349 as_fn_set_status $1 20350 exit $1 20351} # as_fn_exit 20352 20353# as_fn_unset VAR 20354# --------------- 20355# Portably unset VAR. 20356as_fn_unset () 20357{ 20358 { eval $1=; unset $1;} 20359} 20360as_unset=as_fn_unset 20361# as_fn_append VAR VALUE 20362# ---------------------- 20363# Append the text in VALUE to the end of the definition contained in VAR. Take 20364# advantage of any shell optimizations that allow amortized linear growth over 20365# repeated appends, instead of the typical quadratic growth present in naive 20366# implementations. 20367if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : 20368 eval 'as_fn_append () 20369 { 20370 eval $1+=\$2 20371 }' 20372else 20373 as_fn_append () 20374 { 20375 eval $1=\$$1\$2 20376 } 20377fi # as_fn_append 20378 20379# as_fn_arith ARG... 20380# ------------------ 20381# Perform arithmetic evaluation on the ARGs, and store the result in the 20382# global $as_val. Take advantage of shells that can avoid forks. The arguments 20383# must be portable across $(()) and expr. 20384if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : 20385 eval 'as_fn_arith () 20386 { 20387 as_val=$(( $* )) 20388 }' 20389else 20390 as_fn_arith () 20391 { 20392 as_val=`expr "$@" || test $? -eq 1` 20393 } 20394fi # as_fn_arith 20395 20396 20397if expr a : '\(a\)' >/dev/null 2>&1 && 20398 test "X`expr 00001 : '.*\(...\)'`" = X001; then 20399 as_expr=expr 20400else 20401 as_expr=false 20402fi 20403 20404if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then 20405 as_basename=basename 20406else 20407 as_basename=false 20408fi 20409 20410if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then 20411 as_dirname=dirname 20412else 20413 as_dirname=false 20414fi 20415 20416as_me=`$as_basename -- "$0" || 20417$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ 20418 X"$0" : 'X\(//\)$' \| \ 20419 X"$0" : 'X\(/\)' \| . 2>/dev/null || 20420$as_echo X/"$0" | 20421 sed '/^.*\/\([^/][^/]*\)\/*$/{ 20422 s//\1/ 20423 q 20424 } 20425 /^X\/\(\/\/\)$/{ 20426 s//\1/ 20427 q 20428 } 20429 /^X\/\(\/\).*/{ 20430 s//\1/ 20431 q 20432 } 20433 s/.*/./; q'` 20434 20435# Avoid depending upon Character Ranges. 20436as_cr_letters='abcdefghijklmnopqrstuvwxyz' 20437as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' 20438as_cr_Letters=$as_cr_letters$as_cr_LETTERS 20439as_cr_digits='0123456789' 20440as_cr_alnum=$as_cr_Letters$as_cr_digits 20441 20442ECHO_C= ECHO_N= ECHO_T= 20443case `echo -n x` in #((((( 20444-n*) 20445 case `echo 'xy\c'` in 20446 *c*) ECHO_T=' ';; # ECHO_T is single tab character. 20447 xy) ECHO_C='\c';; 20448 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null 20449 ECHO_T=' ';; 20450 esac;; 20451*) 20452 ECHO_N='-n';; 20453esac 20454 20455rm -f conf$$ conf$$.exe conf$$.file 20456if test -d conf$$.dir; then 20457 rm -f conf$$.dir/conf$$.file 20458else 20459 rm -f conf$$.dir 20460 mkdir conf$$.dir 2>/dev/null 20461fi 20462if (echo >conf$$.file) 2>/dev/null; then 20463 if ln -s conf$$.file conf$$ 2>/dev/null; then 20464 as_ln_s='ln -s' 20465 # ... but there are two gotchas: 20466 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. 20467 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. 20468 # In both cases, we have to default to `cp -pR'. 20469 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || 20470 as_ln_s='cp -pR' 20471 elif ln conf$$.file conf$$ 2>/dev/null; then 20472 as_ln_s=ln 20473 else 20474 as_ln_s='cp -pR' 20475 fi 20476else 20477 as_ln_s='cp -pR' 20478fi 20479rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file 20480rmdir conf$$.dir 2>/dev/null 20481 20482 20483# as_fn_mkdir_p 20484# ------------- 20485# Create "$as_dir" as a directory, including parents if necessary. 20486as_fn_mkdir_p () 20487{ 20488 20489 case $as_dir in #( 20490 -*) as_dir=./$as_dir;; 20491 esac 20492 test -d "$as_dir" || eval $as_mkdir_p || { 20493 as_dirs= 20494 while :; do 20495 case $as_dir in #( 20496 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( 20497 *) as_qdir=$as_dir;; 20498 esac 20499 as_dirs="'$as_qdir' $as_dirs" 20500 as_dir=`$as_dirname -- "$as_dir" || 20501$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 20502 X"$as_dir" : 'X\(//\)[^/]' \| \ 20503 X"$as_dir" : 'X\(//\)$' \| \ 20504 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || 20505$as_echo X"$as_dir" | 20506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 20507 s//\1/ 20508 q 20509 } 20510 /^X\(\/\/\)[^/].*/{ 20511 s//\1/ 20512 q 20513 } 20514 /^X\(\/\/\)$/{ 20515 s//\1/ 20516 q 20517 } 20518 /^X\(\/\).*/{ 20519 s//\1/ 20520 q 20521 } 20522 s/.*/./; q'` 20523 test -d "$as_dir" && break 20524 done 20525 test -z "$as_dirs" || eval "mkdir $as_dirs" 20526 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" 20527 20528 20529} # as_fn_mkdir_p 20530if mkdir -p . 2>/dev/null; then 20531 as_mkdir_p='mkdir -p "$as_dir"' 20532else 20533 test -d ./-p && rmdir ./-p 20534 as_mkdir_p=false 20535fi 20536 20537 20538# as_fn_executable_p FILE 20539# ----------------------- 20540# Test if FILE is an executable regular file. 20541as_fn_executable_p () 20542{ 20543 test -f "$1" && test -x "$1" 20544} # as_fn_executable_p 20545as_test_x='test -x' 20546as_executable_p=as_fn_executable_p 20547 20548# Sed expression to map a string onto a valid CPP name. 20549as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" 20550 20551# Sed expression to map a string onto a valid variable name. 20552as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" 20553 20554 20555exec 6>&1 20556## ----------------------------------- ## 20557## Main body of $CONFIG_STATUS script. ## 20558## ----------------------------------- ## 20559_ASEOF 20560test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 20561 20562cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20563# Save the log message, to keep $0 and so on meaningful, and to 20564# report actual input values of CONFIG_FILES etc. instead of their 20565# values after options handling. 20566ac_log=" 20567This file was extended by the fast lexical analyser generator $as_me 2.6.0, which was 20568generated by GNU Autoconf 2.69. Invocation command line was 20569 20570 CONFIG_FILES = $CONFIG_FILES 20571 CONFIG_HEADERS = $CONFIG_HEADERS 20572 CONFIG_LINKS = $CONFIG_LINKS 20573 CONFIG_COMMANDS = $CONFIG_COMMANDS 20574 $ $0 $@ 20575 20576on `(hostname || uname -n) 2>/dev/null | sed 1q` 20577" 20578 20579_ACEOF 20580 20581case $ac_config_files in *" 20582"*) set x $ac_config_files; shift; ac_config_files=$*;; 20583esac 20584 20585case $ac_config_headers in *" 20586"*) set x $ac_config_headers; shift; ac_config_headers=$*;; 20587esac 20588 20589 20590cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20591# Files that config.status was made for. 20592config_files="$ac_config_files" 20593config_headers="$ac_config_headers" 20594config_commands="$ac_config_commands" 20595 20596_ACEOF 20597 20598cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20599ac_cs_usage="\ 20600\`$as_me' instantiates files and other configuration actions 20601from templates according to the current configuration. Unless the files 20602and actions are specified as TAGs, all are instantiated by default. 20603 20604Usage: $0 [OPTION]... [TAG]... 20605 20606 -h, --help print this help, then exit 20607 -V, --version print version number and configuration settings, then exit 20608 --config print configuration, then exit 20609 -q, --quiet, --silent 20610 do not print progress messages 20611 -d, --debug don't remove temporary files 20612 --recheck update $as_me by reconfiguring in the same conditions 20613 --file=FILE[:TEMPLATE] 20614 instantiate the configuration file FILE 20615 --header=FILE[:TEMPLATE] 20616 instantiate the configuration header FILE 20617 20618Configuration files: 20619$config_files 20620 20621Configuration headers: 20622$config_headers 20623 20624Configuration commands: 20625$config_commands 20626 20627Report bugs to <flex-help@lists.sourceforge.net>." 20628 20629_ACEOF 20630cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20631ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" 20632ac_cs_version="\\ 20633the fast lexical analyser generator config.status 2.6.0 20634configured by $0, generated by GNU Autoconf 2.69, 20635 with options \\"\$ac_cs_config\\" 20636 20637Copyright (C) 2012 Free Software Foundation, Inc. 20638This config.status script is free software; the Free Software Foundation 20639gives unlimited permission to copy, distribute and modify it." 20640 20641ac_pwd='$ac_pwd' 20642srcdir='$srcdir' 20643INSTALL='$INSTALL' 20644MKDIR_P='$MKDIR_P' 20645AWK='$AWK' 20646test -n "\$AWK" || AWK=awk 20647_ACEOF 20648 20649cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20650# The default lists apply if the user does not specify any file. 20651ac_need_defaults=: 20652while test $# != 0 20653do 20654 case $1 in 20655 --*=?*) 20656 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20657 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` 20658 ac_shift=: 20659 ;; 20660 --*=) 20661 ac_option=`expr "X$1" : 'X\([^=]*\)='` 20662 ac_optarg= 20663 ac_shift=: 20664 ;; 20665 *) 20666 ac_option=$1 20667 ac_optarg=$2 20668 ac_shift=shift 20669 ;; 20670 esac 20671 20672 case $ac_option in 20673 # Handling of the options. 20674 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) 20675 ac_cs_recheck=: ;; 20676 --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) 20677 $as_echo "$ac_cs_version"; exit ;; 20678 --config | --confi | --conf | --con | --co | --c ) 20679 $as_echo "$ac_cs_config"; exit ;; 20680 --debug | --debu | --deb | --de | --d | -d ) 20681 debug=: ;; 20682 --file | --fil | --fi | --f ) 20683 $ac_shift 20684 case $ac_optarg in 20685 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20686 '') as_fn_error $? "missing file argument" ;; 20687 esac 20688 as_fn_append CONFIG_FILES " '$ac_optarg'" 20689 ac_need_defaults=false;; 20690 --header | --heade | --head | --hea ) 20691 $ac_shift 20692 case $ac_optarg in 20693 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; 20694 esac 20695 as_fn_append CONFIG_HEADERS " '$ac_optarg'" 20696 ac_need_defaults=false;; 20697 --he | --h) 20698 # Conflict between --help and --header 20699 as_fn_error $? "ambiguous option: \`$1' 20700Try \`$0 --help' for more information.";; 20701 --help | --hel | -h ) 20702 $as_echo "$ac_cs_usage"; exit ;; 20703 -q | -quiet | --quiet | --quie | --qui | --qu | --q \ 20704 | -silent | --silent | --silen | --sile | --sil | --si | --s) 20705 ac_cs_silent=: ;; 20706 20707 # This is an error. 20708 -*) as_fn_error $? "unrecognized option: \`$1' 20709Try \`$0 --help' for more information." ;; 20710 20711 *) as_fn_append ac_config_targets " $1" 20712 ac_need_defaults=false ;; 20713 20714 esac 20715 shift 20716done 20717 20718ac_configure_extra_args= 20719 20720if $ac_cs_silent; then 20721 exec 6>/dev/null 20722 ac_configure_extra_args="$ac_configure_extra_args --silent" 20723fi 20724 20725_ACEOF 20726cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20727if \$ac_cs_recheck; then 20728 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion 20729 shift 20730 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 20731 CONFIG_SHELL='$SHELL' 20732 export CONFIG_SHELL 20733 exec "\$@" 20734fi 20735 20736_ACEOF 20737cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 20738exec 5>>config.log 20739{ 20740 echo 20741 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX 20742## Running $as_me. ## 20743_ASBOX 20744 $as_echo "$ac_log" 20745} >&5 20746 20747_ACEOF 20748cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 20749# 20750# INIT-COMMANDS 20751# 20752 20753 20754# The HP-UX ksh and POSIX shell print the target directory to stdout 20755# if CDPATH is set. 20756(unset CDPATH) >/dev/null 2>&1 && unset CDPATH 20757 20758sed_quote_subst='$sed_quote_subst' 20759double_quote_subst='$double_quote_subst' 20760delay_variable_subst='$delay_variable_subst' 20761macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`' 20762macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`' 20763enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`' 20764enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`' 20765pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`' 20766enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`' 20767shared_archive_member_spec='`$ECHO "$shared_archive_member_spec" | $SED "$delay_single_quote_subst"`' 20768SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`' 20769ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`' 20770PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`' 20771host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`' 20772host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`' 20773host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`' 20774build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`' 20775build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`' 20776build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`' 20777SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`' 20778Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`' 20779GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`' 20780EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`' 20781FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`' 20782LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`' 20783NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`' 20784LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`' 20785max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`' 20786ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`' 20787exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`' 20788lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`' 20789lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`' 20790lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`' 20791lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`' 20792lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`' 20793reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`' 20794reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`' 20795OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`' 20796deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`' 20797file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`' 20798file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`' 20799want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`' 20800DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`' 20801sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`' 20802AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`' 20803AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`' 20804archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`' 20805STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`' 20806RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`' 20807old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20808old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20809old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`' 20810lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`' 20811CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`' 20812CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`' 20813compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`' 20814GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`' 20815lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`' 20816lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`' 20817lt_cv_sys_global_symbol_to_import='`$ECHO "$lt_cv_sys_global_symbol_to_import" | $SED "$delay_single_quote_subst"`' 20818lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`' 20819lt_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"`' 20820lt_cv_nm_interface='`$ECHO "$lt_cv_nm_interface" | $SED "$delay_single_quote_subst"`' 20821nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`' 20822lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`' 20823lt_cv_truncate_bin='`$ECHO "$lt_cv_truncate_bin" | $SED "$delay_single_quote_subst"`' 20824objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`' 20825MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`' 20826lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`' 20827lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`' 20828lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`' 20829lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`' 20830lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`' 20831need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`' 20832MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`' 20833DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`' 20834NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`' 20835LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`' 20836OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`' 20837OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`' 20838libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`' 20839shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`' 20840extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20841archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`' 20842enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`' 20843export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`' 20844whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`' 20845compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`' 20846old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`' 20847old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`' 20848archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`' 20849archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20850module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`' 20851module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`' 20852with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`' 20853allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`' 20854no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`' 20855hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`' 20856hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`' 20857hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`' 20858hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`' 20859hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`' 20860hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`' 20861hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`' 20862inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`' 20863link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`' 20864always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`' 20865export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`' 20866exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`' 20867include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`' 20868prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`' 20869postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`' 20870file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`' 20871variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`' 20872need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`' 20873need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`' 20874version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`' 20875runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`' 20876shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`' 20877shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`' 20878libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`' 20879library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`' 20880soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`' 20881install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`' 20882postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`' 20883postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`' 20884finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`' 20885finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`' 20886hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`' 20887sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`' 20888configure_time_dlsearch_path='`$ECHO "$configure_time_dlsearch_path" | $SED "$delay_single_quote_subst"`' 20889configure_time_lt_sys_library_path='`$ECHO "$configure_time_lt_sys_library_path" | $SED "$delay_single_quote_subst"`' 20890hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`' 20891enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`' 20892enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`' 20893enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`' 20894old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`' 20895striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`' 20896compiler_lib_search_dirs='`$ECHO "$compiler_lib_search_dirs" | $SED "$delay_single_quote_subst"`' 20897predep_objects='`$ECHO "$predep_objects" | $SED "$delay_single_quote_subst"`' 20898postdep_objects='`$ECHO "$postdep_objects" | $SED "$delay_single_quote_subst"`' 20899predeps='`$ECHO "$predeps" | $SED "$delay_single_quote_subst"`' 20900postdeps='`$ECHO "$postdeps" | $SED "$delay_single_quote_subst"`' 20901compiler_lib_search_path='`$ECHO "$compiler_lib_search_path" | $SED "$delay_single_quote_subst"`' 20902LD_CXX='`$ECHO "$LD_CXX" | $SED "$delay_single_quote_subst"`' 20903reload_flag_CXX='`$ECHO "$reload_flag_CXX" | $SED "$delay_single_quote_subst"`' 20904reload_cmds_CXX='`$ECHO "$reload_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20905old_archive_cmds_CXX='`$ECHO "$old_archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20906compiler_CXX='`$ECHO "$compiler_CXX" | $SED "$delay_single_quote_subst"`' 20907GCC_CXX='`$ECHO "$GCC_CXX" | $SED "$delay_single_quote_subst"`' 20908lt_prog_compiler_no_builtin_flag_CXX='`$ECHO "$lt_prog_compiler_no_builtin_flag_CXX" | $SED "$delay_single_quote_subst"`' 20909lt_prog_compiler_pic_CXX='`$ECHO "$lt_prog_compiler_pic_CXX" | $SED "$delay_single_quote_subst"`' 20910lt_prog_compiler_wl_CXX='`$ECHO "$lt_prog_compiler_wl_CXX" | $SED "$delay_single_quote_subst"`' 20911lt_prog_compiler_static_CXX='`$ECHO "$lt_prog_compiler_static_CXX" | $SED "$delay_single_quote_subst"`' 20912lt_cv_prog_compiler_c_o_CXX='`$ECHO "$lt_cv_prog_compiler_c_o_CXX" | $SED "$delay_single_quote_subst"`' 20913archive_cmds_need_lc_CXX='`$ECHO "$archive_cmds_need_lc_CXX" | $SED "$delay_single_quote_subst"`' 20914enable_shared_with_static_runtimes_CXX='`$ECHO "$enable_shared_with_static_runtimes_CXX" | $SED "$delay_single_quote_subst"`' 20915export_dynamic_flag_spec_CXX='`$ECHO "$export_dynamic_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20916whole_archive_flag_spec_CXX='`$ECHO "$whole_archive_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20917compiler_needs_object_CXX='`$ECHO "$compiler_needs_object_CXX" | $SED "$delay_single_quote_subst"`' 20918old_archive_from_new_cmds_CXX='`$ECHO "$old_archive_from_new_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20919old_archive_from_expsyms_cmds_CXX='`$ECHO "$old_archive_from_expsyms_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20920archive_cmds_CXX='`$ECHO "$archive_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20921archive_expsym_cmds_CXX='`$ECHO "$archive_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20922module_cmds_CXX='`$ECHO "$module_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20923module_expsym_cmds_CXX='`$ECHO "$module_expsym_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20924with_gnu_ld_CXX='`$ECHO "$with_gnu_ld_CXX" | $SED "$delay_single_quote_subst"`' 20925allow_undefined_flag_CXX='`$ECHO "$allow_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20926no_undefined_flag_CXX='`$ECHO "$no_undefined_flag_CXX" | $SED "$delay_single_quote_subst"`' 20927hardcode_libdir_flag_spec_CXX='`$ECHO "$hardcode_libdir_flag_spec_CXX" | $SED "$delay_single_quote_subst"`' 20928hardcode_libdir_separator_CXX='`$ECHO "$hardcode_libdir_separator_CXX" | $SED "$delay_single_quote_subst"`' 20929hardcode_direct_CXX='`$ECHO "$hardcode_direct_CXX" | $SED "$delay_single_quote_subst"`' 20930hardcode_direct_absolute_CXX='`$ECHO "$hardcode_direct_absolute_CXX" | $SED "$delay_single_quote_subst"`' 20931hardcode_minus_L_CXX='`$ECHO "$hardcode_minus_L_CXX" | $SED "$delay_single_quote_subst"`' 20932hardcode_shlibpath_var_CXX='`$ECHO "$hardcode_shlibpath_var_CXX" | $SED "$delay_single_quote_subst"`' 20933hardcode_automatic_CXX='`$ECHO "$hardcode_automatic_CXX" | $SED "$delay_single_quote_subst"`' 20934inherit_rpath_CXX='`$ECHO "$inherit_rpath_CXX" | $SED "$delay_single_quote_subst"`' 20935link_all_deplibs_CXX='`$ECHO "$link_all_deplibs_CXX" | $SED "$delay_single_quote_subst"`' 20936always_export_symbols_CXX='`$ECHO "$always_export_symbols_CXX" | $SED "$delay_single_quote_subst"`' 20937export_symbols_cmds_CXX='`$ECHO "$export_symbols_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20938exclude_expsyms_CXX='`$ECHO "$exclude_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20939include_expsyms_CXX='`$ECHO "$include_expsyms_CXX" | $SED "$delay_single_quote_subst"`' 20940prelink_cmds_CXX='`$ECHO "$prelink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20941postlink_cmds_CXX='`$ECHO "$postlink_cmds_CXX" | $SED "$delay_single_quote_subst"`' 20942file_list_spec_CXX='`$ECHO "$file_list_spec_CXX" | $SED "$delay_single_quote_subst"`' 20943hardcode_action_CXX='`$ECHO "$hardcode_action_CXX" | $SED "$delay_single_quote_subst"`' 20944compiler_lib_search_dirs_CXX='`$ECHO "$compiler_lib_search_dirs_CXX" | $SED "$delay_single_quote_subst"`' 20945predep_objects_CXX='`$ECHO "$predep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20946postdep_objects_CXX='`$ECHO "$postdep_objects_CXX" | $SED "$delay_single_quote_subst"`' 20947predeps_CXX='`$ECHO "$predeps_CXX" | $SED "$delay_single_quote_subst"`' 20948postdeps_CXX='`$ECHO "$postdeps_CXX" | $SED "$delay_single_quote_subst"`' 20949compiler_lib_search_path_CXX='`$ECHO "$compiler_lib_search_path_CXX" | $SED "$delay_single_quote_subst"`' 20950 20951LTCC='$LTCC' 20952LTCFLAGS='$LTCFLAGS' 20953compiler='$compiler_DEFAULT' 20954 20955# A function that is used when there is no print builtin or printf. 20956func_fallback_echo () 20957{ 20958 eval 'cat <<_LTECHO_EOF 20959\$1 20960_LTECHO_EOF' 20961} 20962 20963# Quote evaled strings. 20964for var in SHELL \ 20965ECHO \ 20966PATH_SEPARATOR \ 20967SED \ 20968GREP \ 20969EGREP \ 20970FGREP \ 20971LD \ 20972NM \ 20973LN_S \ 20974lt_SP2NL \ 20975lt_NL2SP \ 20976reload_flag \ 20977OBJDUMP \ 20978deplibs_check_method \ 20979file_magic_cmd \ 20980file_magic_glob \ 20981want_nocaseglob \ 20982DLLTOOL \ 20983sharedlib_from_linklib_cmd \ 20984AR \ 20985AR_FLAGS \ 20986archiver_list_spec \ 20987STRIP \ 20988RANLIB \ 20989CC \ 20990CFLAGS \ 20991compiler \ 20992lt_cv_sys_global_symbol_pipe \ 20993lt_cv_sys_global_symbol_to_cdecl \ 20994lt_cv_sys_global_symbol_to_import \ 20995lt_cv_sys_global_symbol_to_c_name_address \ 20996lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \ 20997lt_cv_nm_interface \ 20998nm_file_list_spec \ 20999lt_cv_truncate_bin \ 21000lt_prog_compiler_no_builtin_flag \ 21001lt_prog_compiler_pic \ 21002lt_prog_compiler_wl \ 21003lt_prog_compiler_static \ 21004lt_cv_prog_compiler_c_o \ 21005need_locks \ 21006MANIFEST_TOOL \ 21007DSYMUTIL \ 21008NMEDIT \ 21009LIPO \ 21010OTOOL \ 21011OTOOL64 \ 21012shrext_cmds \ 21013export_dynamic_flag_spec \ 21014whole_archive_flag_spec \ 21015compiler_needs_object \ 21016with_gnu_ld \ 21017allow_undefined_flag \ 21018no_undefined_flag \ 21019hardcode_libdir_flag_spec \ 21020hardcode_libdir_separator \ 21021exclude_expsyms \ 21022include_expsyms \ 21023file_list_spec \ 21024variables_saved_for_relink \ 21025libname_spec \ 21026library_names_spec \ 21027soname_spec \ 21028install_override_mode \ 21029finish_eval \ 21030old_striplib \ 21031striplib \ 21032compiler_lib_search_dirs \ 21033predep_objects \ 21034postdep_objects \ 21035predeps \ 21036postdeps \ 21037compiler_lib_search_path \ 21038LD_CXX \ 21039reload_flag_CXX \ 21040compiler_CXX \ 21041lt_prog_compiler_no_builtin_flag_CXX \ 21042lt_prog_compiler_pic_CXX \ 21043lt_prog_compiler_wl_CXX \ 21044lt_prog_compiler_static_CXX \ 21045lt_cv_prog_compiler_c_o_CXX \ 21046export_dynamic_flag_spec_CXX \ 21047whole_archive_flag_spec_CXX \ 21048compiler_needs_object_CXX \ 21049with_gnu_ld_CXX \ 21050allow_undefined_flag_CXX \ 21051no_undefined_flag_CXX \ 21052hardcode_libdir_flag_spec_CXX \ 21053hardcode_libdir_separator_CXX \ 21054exclude_expsyms_CXX \ 21055include_expsyms_CXX \ 21056file_list_spec_CXX \ 21057compiler_lib_search_dirs_CXX \ 21058predep_objects_CXX \ 21059postdep_objects_CXX \ 21060predeps_CXX \ 21061postdeps_CXX \ 21062compiler_lib_search_path_CXX; do 21063 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21064 *[\\\\\\\`\\"\\\$]*) 21065 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21066 ;; 21067 *) 21068 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21069 ;; 21070 esac 21071done 21072 21073# Double-quote double-evaled strings. 21074for var in reload_cmds \ 21075old_postinstall_cmds \ 21076old_postuninstall_cmds \ 21077old_archive_cmds \ 21078extract_expsyms_cmds \ 21079old_archive_from_new_cmds \ 21080old_archive_from_expsyms_cmds \ 21081archive_cmds \ 21082archive_expsym_cmds \ 21083module_cmds \ 21084module_expsym_cmds \ 21085export_symbols_cmds \ 21086prelink_cmds \ 21087postlink_cmds \ 21088postinstall_cmds \ 21089postuninstall_cmds \ 21090finish_cmds \ 21091sys_lib_search_path_spec \ 21092configure_time_dlsearch_path \ 21093configure_time_lt_sys_library_path \ 21094reload_cmds_CXX \ 21095old_archive_cmds_CXX \ 21096old_archive_from_new_cmds_CXX \ 21097old_archive_from_expsyms_cmds_CXX \ 21098archive_cmds_CXX \ 21099archive_expsym_cmds_CXX \ 21100module_cmds_CXX \ 21101module_expsym_cmds_CXX \ 21102export_symbols_cmds_CXX \ 21103prelink_cmds_CXX \ 21104postlink_cmds_CXX; do 21105 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in 21106 *[\\\\\\\`\\"\\\$]*) 21107 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\"" ## exclude from sc_prohibit_nested_quotes 21108 ;; 21109 *) 21110 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\"" 21111 ;; 21112 esac 21113done 21114 21115ac_aux_dir='$ac_aux_dir' 21116 21117# See if we are running on zsh, and set the options that allow our 21118# commands through without removal of \ escapes INIT. 21119if test -n "\${ZSH_VERSION+set}"; then 21120 setopt NO_GLOB_SUBST 21121fi 21122 21123 21124 PACKAGE='$PACKAGE' 21125 VERSION='$VERSION' 21126 RM='$RM' 21127 ofile='$ofile' 21128 21129 21130 21131 21132 21133AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" 21134# Capture the value of obsolete ALL_LINGUAS because we need it to compute 21135 # POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES, CATALOGS. But hide it 21136 # from automake < 1.5. 21137 eval 'OBSOLETE_ALL_LINGUAS''="$ALL_LINGUAS"' 21138 # Capture the value of LINGUAS because we need it to compute CATALOGS. 21139 LINGUAS="${LINGUAS-%UNSET%}" 21140 21141 21142_ACEOF 21143 21144cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21145 21146# Handling of arguments. 21147for ac_config_target in $ac_config_targets 21148do 21149 case $ac_config_target in 21150 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;; 21151 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; 21152 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;; 21153 "po-directories") CONFIG_COMMANDS="$CONFIG_COMMANDS po-directories" ;; 21154 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; 21155 "doc/Makefile") CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;; 21156 "examples/Makefile") CONFIG_FILES="$CONFIG_FILES examples/Makefile" ;; 21157 "examples/fastwc/Makefile") CONFIG_FILES="$CONFIG_FILES examples/fastwc/Makefile" ;; 21158 "examples/manual/Makefile") CONFIG_FILES="$CONFIG_FILES examples/manual/Makefile" ;; 21159 "lib/Makefile") CONFIG_FILES="$CONFIG_FILES lib/Makefile" ;; 21160 "po/Makefile.in") CONFIG_FILES="$CONFIG_FILES po/Makefile.in" ;; 21161 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;; 21162 "tools/Makefile") CONFIG_FILES="$CONFIG_FILES tools/Makefile" ;; 21163 "tests/Makefile") CONFIG_FILES="$CONFIG_FILES tests/Makefile" ;; 21164 21165 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; 21166 esac 21167done 21168 21169 21170# If the user did not use the arguments to specify the items to instantiate, 21171# then the envvar interface is used. Set only those that are not. 21172# We use the long form for the default assignment because of an extremely 21173# bizarre bug on SunOS 4.1.3. 21174if $ac_need_defaults; then 21175 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files 21176 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers 21177 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands 21178fi 21179 21180# Have a temporary directory for convenience. Make it in the build tree 21181# simply because there is no reason against having it here, and in addition, 21182# creating and moving files from /tmp can sometimes cause problems. 21183# Hook for its removal unless debugging. 21184# Note that there is a small window in which the directory will not be cleaned: 21185# after its creation but before its name has been assigned to `$tmp'. 21186$debug || 21187{ 21188 tmp= ac_tmp= 21189 trap 'exit_status=$? 21190 : "${ac_tmp:=$tmp}" 21191 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status 21192' 0 21193 trap 'as_fn_exit 1' 1 2 13 15 21194} 21195# Create a (secure) tmp directory for tmp files. 21196 21197{ 21198 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && 21199 test -d "$tmp" 21200} || 21201{ 21202 tmp=./conf$$-$RANDOM 21203 (umask 077 && mkdir "$tmp") 21204} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 21205ac_tmp=$tmp 21206 21207# Set up the scripts for CONFIG_FILES section. 21208# No need to generate them if there are no CONFIG_FILES. 21209# This happens for instance with `./config.status config.h'. 21210if test -n "$CONFIG_FILES"; then 21211 21212 21213ac_cr=`echo X | tr X '\015'` 21214# On cygwin, bash can eat \r inside `` if the user requested igncr. 21215# But we know of no other shell where ac_cr would be empty at this 21216# point, so we can use a bashism as a fallback. 21217if test "x$ac_cr" = x; then 21218 eval ac_cr=\$\'\\r\' 21219fi 21220ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` 21221if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then 21222 ac_cs_awk_cr='\\r' 21223else 21224 ac_cs_awk_cr=$ac_cr 21225fi 21226 21227echo 'BEGIN {' >"$ac_tmp/subs1.awk" && 21228_ACEOF 21229 21230 21231{ 21232 echo "cat >conf$$subs.awk <<_ACEOF" && 21233 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && 21234 echo "_ACEOF" 21235} >conf$$subs.sh || 21236 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21237ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` 21238ac_delim='%!_!# ' 21239for ac_last_try in false false false false false :; do 21240 . ./conf$$subs.sh || 21241 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21242 21243 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` 21244 if test $ac_delim_n = $ac_delim_num; then 21245 break 21246 elif $ac_last_try; then 21247 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 21248 else 21249 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21250 fi 21251done 21252rm -f conf$$subs.sh 21253 21254cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21255cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && 21256_ACEOF 21257sed -n ' 21258h 21259s/^/S["/; s/!.*/"]=/ 21260p 21261g 21262s/^[^!]*!// 21263:repl 21264t repl 21265s/'"$ac_delim"'$// 21266t delim 21267:nl 21268h 21269s/\(.\{148\}\)..*/\1/ 21270t more1 21271s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ 21272p 21273n 21274b repl 21275:more1 21276s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21277p 21278g 21279s/.\{148\}// 21280t nl 21281:delim 21282h 21283s/\(.\{148\}\)..*/\1/ 21284t more2 21285s/["\\]/\\&/g; s/^/"/; s/$/"/ 21286p 21287b 21288:more2 21289s/["\\]/\\&/g; s/^/"/; s/$/"\\/ 21290p 21291g 21292s/.\{148\}// 21293t delim 21294' <conf$$subs.awk | sed ' 21295/^[^""]/{ 21296 N 21297 s/\n// 21298} 21299' >>$CONFIG_STATUS || ac_write_fail=1 21300rm -f conf$$subs.awk 21301cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21302_ACAWK 21303cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && 21304 for (key in S) S_is_set[key] = 1 21305 FS = "" 21306 21307} 21308{ 21309 line = $ 0 21310 nfields = split(line, field, "@") 21311 substed = 0 21312 len = length(field[1]) 21313 for (i = 2; i < nfields; i++) { 21314 key = field[i] 21315 keylen = length(key) 21316 if (S_is_set[key]) { 21317 value = S[key] 21318 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) 21319 len += length(value) + length(field[++i]) 21320 substed = 1 21321 } else 21322 len += 1 + keylen 21323 } 21324 21325 print line 21326} 21327 21328_ACAWK 21329_ACEOF 21330cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21331if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then 21332 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" 21333else 21334 cat 21335fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ 21336 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 21337_ACEOF 21338 21339# VPATH may cause trouble with some makes, so we remove sole $(srcdir), 21340# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and 21341# trailing colons and then remove the whole line if VPATH becomes empty 21342# (actually we leave an empty line to preserve line numbers). 21343if test "x$srcdir" = x.; then 21344 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ 21345h 21346s/// 21347s/^/:/ 21348s/[ ]*$/:/ 21349s/:\$(srcdir):/:/g 21350s/:\${srcdir}:/:/g 21351s/:@srcdir@:/:/g 21352s/^:*// 21353s/:*$// 21354x 21355s/\(=[ ]*\).*/\1/ 21356G 21357s/\n// 21358s/^[^=]*=[ ]*$// 21359}' 21360fi 21361 21362cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21363fi # test -n "$CONFIG_FILES" 21364 21365# Set up the scripts for CONFIG_HEADERS section. 21366# No need to generate them if there are no CONFIG_HEADERS. 21367# This happens for instance with `./config.status Makefile'. 21368if test -n "$CONFIG_HEADERS"; then 21369cat >"$ac_tmp/defines.awk" <<\_ACAWK || 21370BEGIN { 21371_ACEOF 21372 21373# Transform confdefs.h into an awk script `defines.awk', embedded as 21374# here-document in config.status, that substitutes the proper values into 21375# config.h.in to produce config.h. 21376 21377# Create a delimiter string that does not exist in confdefs.h, to ease 21378# handling of long lines. 21379ac_delim='%!_!# ' 21380for ac_last_try in false false :; do 21381 ac_tt=`sed -n "/$ac_delim/p" confdefs.h` 21382 if test -z "$ac_tt"; then 21383 break 21384 elif $ac_last_try; then 21385 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 21386 else 21387 ac_delim="$ac_delim!$ac_delim _$ac_delim!! " 21388 fi 21389done 21390 21391# For the awk script, D is an array of macro values keyed by name, 21392# likewise P contains macro parameters if any. Preserve backslash 21393# newline sequences. 21394 21395ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* 21396sed -n ' 21397s/.\{148\}/&'"$ac_delim"'/g 21398t rset 21399:rset 21400s/^[ ]*#[ ]*define[ ][ ]*/ / 21401t def 21402d 21403:def 21404s/\\$// 21405t bsnl 21406s/["\\]/\\&/g 21407s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21408D["\1"]=" \3"/p 21409s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p 21410d 21411:bsnl 21412s/["\\]/\\&/g 21413s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ 21414D["\1"]=" \3\\\\\\n"\\/p 21415t cont 21416s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p 21417t cont 21418d 21419:cont 21420n 21421s/.\{148\}/&'"$ac_delim"'/g 21422t clear 21423:clear 21424s/\\$// 21425t bsnlc 21426s/["\\]/\\&/g; s/^/"/; s/$/"/p 21427d 21428:bsnlc 21429s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p 21430b cont 21431' <confdefs.h | sed ' 21432s/'"$ac_delim"'/"\\\ 21433"/g' >>$CONFIG_STATUS || ac_write_fail=1 21434 21435cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21436 for (key in D) D_is_set[key] = 1 21437 FS = "" 21438} 21439/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { 21440 line = \$ 0 21441 split(line, arg, " ") 21442 if (arg[1] == "#") { 21443 defundef = arg[2] 21444 mac1 = arg[3] 21445 } else { 21446 defundef = substr(arg[1], 2) 21447 mac1 = arg[2] 21448 } 21449 split(mac1, mac2, "(") #) 21450 macro = mac2[1] 21451 prefix = substr(line, 1, index(line, defundef) - 1) 21452 if (D_is_set[macro]) { 21453 # Preserve the white space surrounding the "#". 21454 print prefix "define", macro P[macro] D[macro] 21455 next 21456 } else { 21457 # Replace #undef with comments. This is necessary, for example, 21458 # in the case of _POSIX_SOURCE, which is predefined and required 21459 # on some systems where configure will not decide to define it. 21460 if (defundef == "undef") { 21461 print "/*", prefix defundef, macro, "*/" 21462 next 21463 } 21464 } 21465} 21466{ print } 21467_ACAWK 21468_ACEOF 21469cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21470 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 21471fi # test -n "$CONFIG_HEADERS" 21472 21473 21474eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" 21475shift 21476for ac_tag 21477do 21478 case $ac_tag in 21479 :[FHLC]) ac_mode=$ac_tag; continue;; 21480 esac 21481 case $ac_mode$ac_tag in 21482 :[FHL]*:*);; 21483 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; 21484 :[FH]-) ac_tag=-:-;; 21485 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; 21486 esac 21487 ac_save_IFS=$IFS 21488 IFS=: 21489 set x $ac_tag 21490 IFS=$ac_save_IFS 21491 shift 21492 ac_file=$1 21493 shift 21494 21495 case $ac_mode in 21496 :L) ac_source=$1;; 21497 :[FH]) 21498 ac_file_inputs= 21499 for ac_f 21500 do 21501 case $ac_f in 21502 -) ac_f="$ac_tmp/stdin";; 21503 *) # Look for the file first in the build tree, then in the source tree 21504 # (if the path is not absolute). The absolute path cannot be DOS-style, 21505 # because $ac_f cannot contain `:'. 21506 test -f "$ac_f" || 21507 case $ac_f in 21508 [\\/$]*) false;; 21509 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; 21510 esac || 21511 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; 21512 esac 21513 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac 21514 as_fn_append ac_file_inputs " '$ac_f'" 21515 done 21516 21517 # Let's still pretend it is `configure' which instantiates (i.e., don't 21518 # use $as_me), people would be surprised to read: 21519 # /* config.h. Generated by config.status. */ 21520 configure_input='Generated from '` 21521 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' 21522 `' by configure.' 21523 if test x"$ac_file" != x-; then 21524 configure_input="$ac_file. $configure_input" 21525 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 21526$as_echo "$as_me: creating $ac_file" >&6;} 21527 fi 21528 # Neutralize special characters interpreted by sed in replacement strings. 21529 case $configure_input in #( 21530 *\&* | *\|* | *\\* ) 21531 ac_sed_conf_input=`$as_echo "$configure_input" | 21532 sed 's/[\\\\&|]/\\\\&/g'`;; #( 21533 *) ac_sed_conf_input=$configure_input;; 21534 esac 21535 21536 case $ac_tag in 21537 *:-:* | *:-) cat >"$ac_tmp/stdin" \ 21538 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; 21539 esac 21540 ;; 21541 esac 21542 21543 ac_dir=`$as_dirname -- "$ac_file" || 21544$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21545 X"$ac_file" : 'X\(//\)[^/]' \| \ 21546 X"$ac_file" : 'X\(//\)$' \| \ 21547 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || 21548$as_echo X"$ac_file" | 21549 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21550 s//\1/ 21551 q 21552 } 21553 /^X\(\/\/\)[^/].*/{ 21554 s//\1/ 21555 q 21556 } 21557 /^X\(\/\/\)$/{ 21558 s//\1/ 21559 q 21560 } 21561 /^X\(\/\).*/{ 21562 s//\1/ 21563 q 21564 } 21565 s/.*/./; q'` 21566 as_dir="$ac_dir"; as_fn_mkdir_p 21567 ac_builddir=. 21568 21569case "$ac_dir" in 21570.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; 21571*) 21572 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` 21573 # A ".." for each directory in $ac_dir_suffix. 21574 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` 21575 case $ac_top_builddir_sub in 21576 "") ac_top_builddir_sub=. ac_top_build_prefix= ;; 21577 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; 21578 esac ;; 21579esac 21580ac_abs_top_builddir=$ac_pwd 21581ac_abs_builddir=$ac_pwd$ac_dir_suffix 21582# for backward compatibility: 21583ac_top_builddir=$ac_top_build_prefix 21584 21585case $srcdir in 21586 .) # We are building in place. 21587 ac_srcdir=. 21588 ac_top_srcdir=$ac_top_builddir_sub 21589 ac_abs_top_srcdir=$ac_pwd ;; 21590 [\\/]* | ?:[\\/]* ) # Absolute name. 21591 ac_srcdir=$srcdir$ac_dir_suffix; 21592 ac_top_srcdir=$srcdir 21593 ac_abs_top_srcdir=$srcdir ;; 21594 *) # Relative name. 21595 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix 21596 ac_top_srcdir=$ac_top_build_prefix$srcdir 21597 ac_abs_top_srcdir=$ac_pwd/$srcdir ;; 21598esac 21599ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix 21600 21601 21602 case $ac_mode in 21603 :F) 21604 # 21605 # CONFIG_FILE 21606 # 21607 21608 case $INSTALL in 21609 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; 21610 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; 21611 esac 21612 ac_MKDIR_P=$MKDIR_P 21613 case $MKDIR_P in 21614 [\\/$]* | ?:[\\/]* ) ;; 21615 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; 21616 esac 21617_ACEOF 21618 21619cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21620# If the template does not know about datarootdir, expand it. 21621# FIXME: This hack should be removed a few years after 2.60. 21622ac_datarootdir_hack=; ac_datarootdir_seen= 21623ac_sed_dataroot=' 21624/datarootdir/ { 21625 p 21626 q 21627} 21628/@datadir@/p 21629/@docdir@/p 21630/@infodir@/p 21631/@localedir@/p 21632/@mandir@/p' 21633case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in 21634*datarootdir*) ac_datarootdir_seen=yes;; 21635*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) 21636 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 21637$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} 21638_ACEOF 21639cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21640 ac_datarootdir_hack=' 21641 s&@datadir@&$datadir&g 21642 s&@docdir@&$docdir&g 21643 s&@infodir@&$infodir&g 21644 s&@localedir@&$localedir&g 21645 s&@mandir@&$mandir&g 21646 s&\\\${datarootdir}&$datarootdir&g' ;; 21647esac 21648_ACEOF 21649 21650# Neutralize VPATH when `$srcdir' = `.'. 21651# Shell code in configure.ac might set extrasub. 21652# FIXME: do we really want to maintain this feature? 21653cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 21654ac_sed_extra="$ac_vpsub 21655$extrasub 21656_ACEOF 21657cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 21658:t 21659/@[a-zA-Z_][a-zA-Z_0-9]*@/!b 21660s|@configure_input@|$ac_sed_conf_input|;t t 21661s&@top_builddir@&$ac_top_builddir_sub&;t t 21662s&@top_build_prefix@&$ac_top_build_prefix&;t t 21663s&@srcdir@&$ac_srcdir&;t t 21664s&@abs_srcdir@&$ac_abs_srcdir&;t t 21665s&@top_srcdir@&$ac_top_srcdir&;t t 21666s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t 21667s&@builddir@&$ac_builddir&;t t 21668s&@abs_builddir@&$ac_abs_builddir&;t t 21669s&@abs_top_builddir@&$ac_abs_top_builddir&;t t 21670s&@INSTALL@&$ac_INSTALL&;t t 21671s&@MKDIR_P@&$ac_MKDIR_P&;t t 21672$ac_datarootdir_hack 21673" 21674eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ 21675 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21676 21677test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && 21678 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && 21679 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ 21680 "$ac_tmp/out"`; test -z "$ac_out"; } && 21681 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21682which seems to be undefined. Please make sure it is defined" >&5 21683$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' 21684which seems to be undefined. Please make sure it is defined" >&2;} 21685 21686 rm -f "$ac_tmp/stdin" 21687 case $ac_file in 21688 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; 21689 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; 21690 esac \ 21691 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21692 ;; 21693 :H) 21694 # 21695 # CONFIG_HEADER 21696 # 21697 if test x"$ac_file" != x-; then 21698 { 21699 $as_echo "/* $configure_input */" \ 21700 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" 21701 } >"$ac_tmp/config.h" \ 21702 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21703 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then 21704 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 21705$as_echo "$as_me: $ac_file is unchanged" >&6;} 21706 else 21707 rm -f "$ac_file" 21708 mv "$ac_tmp/config.h" "$ac_file" \ 21709 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 21710 fi 21711 else 21712 $as_echo "/* $configure_input */" \ 21713 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ 21714 || as_fn_error $? "could not create -" "$LINENO" 5 21715 fi 21716# Compute "$ac_file"'s index in $config_headers. 21717_am_arg="$ac_file" 21718_am_stamp_count=1 21719for _am_header in $config_headers :; do 21720 case $_am_header in 21721 $_am_arg | $_am_arg:* ) 21722 break ;; 21723 * ) 21724 _am_stamp_count=`expr $_am_stamp_count + 1` ;; 21725 esac 21726done 21727echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || 21728$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 21729 X"$_am_arg" : 'X\(//\)[^/]' \| \ 21730 X"$_am_arg" : 'X\(//\)$' \| \ 21731 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || 21732$as_echo X"$_am_arg" | 21733 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 21734 s//\1/ 21735 q 21736 } 21737 /^X\(\/\/\)[^/].*/{ 21738 s//\1/ 21739 q 21740 } 21741 /^X\(\/\/\)$/{ 21742 s//\1/ 21743 q 21744 } 21745 /^X\(\/\).*/{ 21746 s//\1/ 21747 q 21748 } 21749 s/.*/./; q'`/stamp-h$_am_stamp_count 21750 ;; 21751 21752 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 21753$as_echo "$as_me: executing $ac_file commands" >&6;} 21754 ;; 21755 esac 21756 21757 21758 case $ac_file$ac_mode in 21759 "libtool":C) 21760 21761 # See if we are running on zsh, and set the options that allow our 21762 # commands through without removal of \ escapes. 21763 if test -n "${ZSH_VERSION+set}"; then 21764 setopt NO_GLOB_SUBST 21765 fi 21766 21767 cfgfile=${ofile}T 21768 trap "$RM \"$cfgfile\"; exit 1" 1 2 15 21769 $RM "$cfgfile" 21770 21771 cat <<_LT_EOF >> "$cfgfile" 21772#! $SHELL 21773# Generated automatically by $as_me ($PACKAGE) $VERSION 21774# Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`: 21775# NOTE: Changes made to this file will be lost: look at ltmain.sh. 21776 21777# Provide generalized library-building support services. 21778# Written by Gordon Matzigkeit, 1996 21779 21780# Copyright (C) 2014 Free Software Foundation, Inc. 21781# This is free software; see the source for copying conditions. There is NO 21782# warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. 21783 21784# GNU Libtool is free software; you can redistribute it and/or modify 21785# it under the terms of the GNU General Public License as published by 21786# the Free Software Foundation; either version 2 of of the License, or 21787# (at your option) any later version. 21788# 21789# As a special exception to the GNU General Public License, if you 21790# distribute this file as part of a program or library that is built 21791# using GNU Libtool, you may include this file under the same 21792# distribution terms that you use for the rest of that program. 21793# 21794# GNU Libtool is distributed in the hope that it will be useful, but 21795# WITHOUT ANY WARRANTY; without even the implied warranty of 21796# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 21797# GNU General Public License for more details. 21798# 21799# You should have received a copy of the GNU General Public License 21800# along with this program. If not, see <http://www.gnu.org/licenses/>. 21801 21802 21803# The names of the tagged configurations supported by this script. 21804available_tags='CXX ' 21805 21806# Configured defaults for sys_lib_dlsearch_path munging. 21807: \${LT_SYS_LIBRARY_PATH="$configure_time_lt_sys_library_path"} 21808 21809# ### BEGIN LIBTOOL CONFIG 21810 21811# Which release of libtool.m4 was used? 21812macro_version=$macro_version 21813macro_revision=$macro_revision 21814 21815# Whether or not to build shared libraries. 21816build_libtool_libs=$enable_shared 21817 21818# Whether or not to build static libraries. 21819build_old_libs=$enable_static 21820 21821# What type of objects to build. 21822pic_mode=$pic_mode 21823 21824# Whether or not to optimize for fast installation. 21825fast_install=$enable_fast_install 21826 21827# Shared archive member basename,for filename based shared library versioning on AIX. 21828shared_archive_member_spec=$shared_archive_member_spec 21829 21830# Shell to use when invoking shell scripts. 21831SHELL=$lt_SHELL 21832 21833# An echo program that protects backslashes. 21834ECHO=$lt_ECHO 21835 21836# The PATH separator for the build system. 21837PATH_SEPARATOR=$lt_PATH_SEPARATOR 21838 21839# The host system. 21840host_alias=$host_alias 21841host=$host 21842host_os=$host_os 21843 21844# The build system. 21845build_alias=$build_alias 21846build=$build 21847build_os=$build_os 21848 21849# A sed program that does not truncate output. 21850SED=$lt_SED 21851 21852# Sed that helps us avoid accidentally triggering echo(1) options like -n. 21853Xsed="\$SED -e 1s/^X//" 21854 21855# A grep program that handles long lines. 21856GREP=$lt_GREP 21857 21858# An ERE matcher. 21859EGREP=$lt_EGREP 21860 21861# A literal string matcher. 21862FGREP=$lt_FGREP 21863 21864# A BSD- or MS-compatible name lister. 21865NM=$lt_NM 21866 21867# Whether we need soft or hard links. 21868LN_S=$lt_LN_S 21869 21870# What is the maximum length of a command? 21871max_cmd_len=$max_cmd_len 21872 21873# Object file suffix (normally "o"). 21874objext=$ac_objext 21875 21876# Executable file suffix (normally ""). 21877exeext=$exeext 21878 21879# whether the shell understands "unset". 21880lt_unset=$lt_unset 21881 21882# turn spaces into newlines. 21883SP2NL=$lt_lt_SP2NL 21884 21885# turn newlines into spaces. 21886NL2SP=$lt_lt_NL2SP 21887 21888# convert \$build file names to \$host format. 21889to_host_file_cmd=$lt_cv_to_host_file_cmd 21890 21891# convert \$build files to toolchain format. 21892to_tool_file_cmd=$lt_cv_to_tool_file_cmd 21893 21894# An object symbol dumper. 21895OBJDUMP=$lt_OBJDUMP 21896 21897# Method to check whether dependent libraries are shared objects. 21898deplibs_check_method=$lt_deplibs_check_method 21899 21900# Command to use when deplibs_check_method = "file_magic". 21901file_magic_cmd=$lt_file_magic_cmd 21902 21903# How to find potential files when deplibs_check_method = "file_magic". 21904file_magic_glob=$lt_file_magic_glob 21905 21906# Find potential files using nocaseglob when deplibs_check_method = "file_magic". 21907want_nocaseglob=$lt_want_nocaseglob 21908 21909# DLL creation program. 21910DLLTOOL=$lt_DLLTOOL 21911 21912# Command to associate shared and link libraries. 21913sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd 21914 21915# The archiver. 21916AR=$lt_AR 21917 21918# Flags to create an archive. 21919AR_FLAGS=$lt_AR_FLAGS 21920 21921# How to feed a file listing to the archiver. 21922archiver_list_spec=$lt_archiver_list_spec 21923 21924# A symbol stripping program. 21925STRIP=$lt_STRIP 21926 21927# Commands used to install an old-style archive. 21928RANLIB=$lt_RANLIB 21929old_postinstall_cmds=$lt_old_postinstall_cmds 21930old_postuninstall_cmds=$lt_old_postuninstall_cmds 21931 21932# Whether to use a lock for old archive extraction. 21933lock_old_archive_extraction=$lock_old_archive_extraction 21934 21935# A C compiler. 21936LTCC=$lt_CC 21937 21938# LTCC compiler flags. 21939LTCFLAGS=$lt_CFLAGS 21940 21941# Take the output of nm and produce a listing of raw symbols and C names. 21942global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe 21943 21944# Transform the output of nm in a proper C declaration. 21945global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl 21946 21947# Transform the output of nm into a list of symbols to manually relocate. 21948global_symbol_to_import=$lt_lt_cv_sys_global_symbol_to_import 21949 21950# Transform the output of nm in a C name address pair. 21951global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address 21952 21953# Transform the output of nm in a C name address pair when lib prefix is needed. 21954global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix 21955 21956# The name lister interface. 21957nm_interface=$lt_lt_cv_nm_interface 21958 21959# Specify filename containing input files for \$NM. 21960nm_file_list_spec=$lt_nm_file_list_spec 21961 21962# The root where to search for dependent libraries,and where our libraries should be installed. 21963lt_sysroot=$lt_sysroot 21964 21965# Command to truncate a binary pipe. 21966lt_truncate_bin=$lt_lt_cv_truncate_bin 21967 21968# The name of the directory that contains temporary libtool files. 21969objdir=$objdir 21970 21971# Used to examine libraries when file_magic_cmd begins with "file". 21972MAGIC_CMD=$MAGIC_CMD 21973 21974# Must we lock files when doing compilation? 21975need_locks=$lt_need_locks 21976 21977# Manifest tool. 21978MANIFEST_TOOL=$lt_MANIFEST_TOOL 21979 21980# Tool to manipulate archived DWARF debug symbol files on Mac OS X. 21981DSYMUTIL=$lt_DSYMUTIL 21982 21983# Tool to change global to local symbols on Mac OS X. 21984NMEDIT=$lt_NMEDIT 21985 21986# Tool to manipulate fat objects and archives on Mac OS X. 21987LIPO=$lt_LIPO 21988 21989# ldd/readelf like tool for Mach-O binaries on Mac OS X. 21990OTOOL=$lt_OTOOL 21991 21992# ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4. 21993OTOOL64=$lt_OTOOL64 21994 21995# Old archive suffix (normally "a"). 21996libext=$libext 21997 21998# Shared library suffix (normally ".so"). 21999shrext_cmds=$lt_shrext_cmds 22000 22001# The commands to extract the exported symbol list from a shared archive. 22002extract_expsyms_cmds=$lt_extract_expsyms_cmds 22003 22004# Variables whose values should be saved in libtool wrapper scripts and 22005# restored at link time. 22006variables_saved_for_relink=$lt_variables_saved_for_relink 22007 22008# Do we need the "lib" prefix for modules? 22009need_lib_prefix=$need_lib_prefix 22010 22011# Do we need a version for libraries? 22012need_version=$need_version 22013 22014# Library versioning type. 22015version_type=$version_type 22016 22017# Shared library runtime path variable. 22018runpath_var=$runpath_var 22019 22020# Shared library path variable. 22021shlibpath_var=$shlibpath_var 22022 22023# Is shlibpath searched before the hard-coded library search path? 22024shlibpath_overrides_runpath=$shlibpath_overrides_runpath 22025 22026# Format of library name prefix. 22027libname_spec=$lt_libname_spec 22028 22029# List of archive names. First name is the real one, the rest are links. 22030# The last name is the one that the linker finds with -lNAME 22031library_names_spec=$lt_library_names_spec 22032 22033# The coded name of the library, if different from the real name. 22034soname_spec=$lt_soname_spec 22035 22036# Permission mode override for installation of shared libraries. 22037install_override_mode=$lt_install_override_mode 22038 22039# Command to use after installation of a shared archive. 22040postinstall_cmds=$lt_postinstall_cmds 22041 22042# Command to use after uninstallation of a shared archive. 22043postuninstall_cmds=$lt_postuninstall_cmds 22044 22045# Commands used to finish a libtool library installation in a directory. 22046finish_cmds=$lt_finish_cmds 22047 22048# As "finish_cmds", except a single script fragment to be evaled but 22049# not shown. 22050finish_eval=$lt_finish_eval 22051 22052# Whether we should hardcode library paths into libraries. 22053hardcode_into_libs=$hardcode_into_libs 22054 22055# Compile-time system search path for libraries. 22056sys_lib_search_path_spec=$lt_sys_lib_search_path_spec 22057 22058# Detected run-time system search path for libraries. 22059sys_lib_dlsearch_path_spec=$lt_configure_time_dlsearch_path 22060 22061# Explicit LT_SYS_LIBRARY_PATH set during ./configure time. 22062configure_time_lt_sys_library_path=$lt_configure_time_lt_sys_library_path 22063 22064# Whether dlopen is supported. 22065dlopen_support=$enable_dlopen 22066 22067# Whether dlopen of programs is supported. 22068dlopen_self=$enable_dlopen_self 22069 22070# Whether dlopen of statically linked programs is supported. 22071dlopen_self_static=$enable_dlopen_self_static 22072 22073# Commands to strip libraries. 22074old_striplib=$lt_old_striplib 22075striplib=$lt_striplib 22076 22077 22078# The linker used to build libraries. 22079LD=$lt_LD 22080 22081# How to create reloadable object files. 22082reload_flag=$lt_reload_flag 22083reload_cmds=$lt_reload_cmds 22084 22085# Commands used to build an old-style archive. 22086old_archive_cmds=$lt_old_archive_cmds 22087 22088# A language specific compiler. 22089CC=$lt_compiler 22090 22091# Is the compiler the GNU compiler? 22092with_gcc=$GCC 22093 22094# Compiler flag to turn off builtin functions. 22095no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag 22096 22097# Additional compiler flags for building library objects. 22098pic_flag=$lt_lt_prog_compiler_pic 22099 22100# How to pass a linker flag through the compiler. 22101wl=$lt_lt_prog_compiler_wl 22102 22103# Compiler flag to prevent dynamic linking. 22104link_static_flag=$lt_lt_prog_compiler_static 22105 22106# Does compiler simultaneously support -c and -o options? 22107compiler_c_o=$lt_lt_cv_prog_compiler_c_o 22108 22109# Whether or not to add -lc for building shared libraries. 22110build_libtool_need_lc=$archive_cmds_need_lc 22111 22112# Whether or not to disallow shared libs when runtime libs are static. 22113allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes 22114 22115# Compiler flag to allow reflexive dlopens. 22116export_dynamic_flag_spec=$lt_export_dynamic_flag_spec 22117 22118# Compiler flag to generate shared objects directly from archives. 22119whole_archive_flag_spec=$lt_whole_archive_flag_spec 22120 22121# Whether the compiler copes with passing no objects directly. 22122compiler_needs_object=$lt_compiler_needs_object 22123 22124# Create an old-style archive from a shared archive. 22125old_archive_from_new_cmds=$lt_old_archive_from_new_cmds 22126 22127# Create a temporary old-style archive to link instead of a shared archive. 22128old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds 22129 22130# Commands used to build a shared archive. 22131archive_cmds=$lt_archive_cmds 22132archive_expsym_cmds=$lt_archive_expsym_cmds 22133 22134# Commands used to build a loadable module if different from building 22135# a shared archive. 22136module_cmds=$lt_module_cmds 22137module_expsym_cmds=$lt_module_expsym_cmds 22138 22139# Whether we are building with GNU ld or not. 22140with_gnu_ld=$lt_with_gnu_ld 22141 22142# Flag that allows shared libraries with undefined symbols to be built. 22143allow_undefined_flag=$lt_allow_undefined_flag 22144 22145# Flag that enforces no undefined symbols. 22146no_undefined_flag=$lt_no_undefined_flag 22147 22148# Flag to hardcode \$libdir into a binary during linking. 22149# This must work even if \$libdir does not exist 22150hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec 22151 22152# Whether we need a single "-rpath" flag with a separated argument. 22153hardcode_libdir_separator=$lt_hardcode_libdir_separator 22154 22155# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22156# DIR into the resulting binary. 22157hardcode_direct=$hardcode_direct 22158 22159# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22160# DIR into the resulting binary and the resulting library dependency is 22161# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22162# library is relocated. 22163hardcode_direct_absolute=$hardcode_direct_absolute 22164 22165# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22166# into the resulting binary. 22167hardcode_minus_L=$hardcode_minus_L 22168 22169# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22170# into the resulting binary. 22171hardcode_shlibpath_var=$hardcode_shlibpath_var 22172 22173# Set to "yes" if building a shared library automatically hardcodes DIR 22174# into the library and all subsequent libraries and executables linked 22175# against it. 22176hardcode_automatic=$hardcode_automatic 22177 22178# Set to yes if linker adds runtime paths of dependent libraries 22179# to runtime path list. 22180inherit_rpath=$inherit_rpath 22181 22182# Whether libtool must link a program against all its dependency libraries. 22183link_all_deplibs=$link_all_deplibs 22184 22185# Set to "yes" if exported symbols are required. 22186always_export_symbols=$always_export_symbols 22187 22188# The commands to list exported symbols. 22189export_symbols_cmds=$lt_export_symbols_cmds 22190 22191# Symbols that should not be listed in the preloaded symbols. 22192exclude_expsyms=$lt_exclude_expsyms 22193 22194# Symbols that must always be exported. 22195include_expsyms=$lt_include_expsyms 22196 22197# Commands necessary for linking programs (against libraries) with templates. 22198prelink_cmds=$lt_prelink_cmds 22199 22200# Commands necessary for finishing linking programs. 22201postlink_cmds=$lt_postlink_cmds 22202 22203# Specify filename containing input files. 22204file_list_spec=$lt_file_list_spec 22205 22206# How to hardcode a shared library path into an executable. 22207hardcode_action=$hardcode_action 22208 22209# The directories searched by this compiler when creating a shared library. 22210compiler_lib_search_dirs=$lt_compiler_lib_search_dirs 22211 22212# Dependencies to place before and after the objects being linked to 22213# create a shared library. 22214predep_objects=$lt_predep_objects 22215postdep_objects=$lt_postdep_objects 22216predeps=$lt_predeps 22217postdeps=$lt_postdeps 22218 22219# The library search path used internally by the compiler when linking 22220# a shared library. 22221compiler_lib_search_path=$lt_compiler_lib_search_path 22222 22223# ### END LIBTOOL CONFIG 22224 22225_LT_EOF 22226 22227 cat <<'_LT_EOF' >> "$cfgfile" 22228 22229# ### BEGIN FUNCTIONS SHARED WITH CONFIGURE 22230 22231# func_munge_path_list VARIABLE PATH 22232# ----------------------------------- 22233# VARIABLE is name of variable containing _space_ separated list of 22234# directories to be munged by the contents of PATH, which is string 22235# having a format: 22236# "DIR[:DIR]:" 22237# string "DIR[ DIR]" will be prepended to VARIABLE 22238# ":DIR[:DIR]" 22239# string "DIR[ DIR]" will be appended to VARIABLE 22240# "DIRP[:DIRP]::[DIRA:]DIRA" 22241# string "DIRP[ DIRP]" will be prepended to VARIABLE and string 22242# "DIRA[ DIRA]" will be appended to VARIABLE 22243# "DIR[:DIR]" 22244# VARIABLE will be replaced by "DIR[ DIR]" 22245func_munge_path_list () 22246{ 22247 case x$2 in 22248 x) 22249 ;; 22250 *:) 22251 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'` \$$1\" 22252 ;; 22253 x:*) 22254 eval $1=\"\$$1 `$ECHO $2 | $SED 's/:/ /g'`\" 22255 ;; 22256 *::*) 22257 eval $1=\"\$$1\ `$ECHO $2 | $SED -e 's/.*:://' -e 's/:/ /g'`\" 22258 eval $1=\"`$ECHO $2 | $SED -e 's/::.*//' -e 's/:/ /g'`\ \$$1\" 22259 ;; 22260 *) 22261 eval $1=\"`$ECHO $2 | $SED 's/:/ /g'`\" 22262 ;; 22263 esac 22264} 22265 22266 22267# Calculate cc_basename. Skip known compiler wrappers and cross-prefix. 22268func_cc_basename () 22269{ 22270 for cc_temp in $*""; do 22271 case $cc_temp in 22272 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;; 22273 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;; 22274 \-*) ;; 22275 *) break;; 22276 esac 22277 done 22278 func_cc_basename_result=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"` 22279} 22280 22281 22282# ### END FUNCTIONS SHARED WITH CONFIGURE 22283 22284_LT_EOF 22285 22286 case $host_os in 22287 aix3*) 22288 cat <<\_LT_EOF >> "$cfgfile" 22289# AIX sometimes has problems with the GCC collect2 program. For some 22290# reason, if we set the COLLECT_NAMES environment variable, the problems 22291# vanish in a puff of smoke. 22292if test set != "${COLLECT_NAMES+set}"; then 22293 COLLECT_NAMES= 22294 export COLLECT_NAMES 22295fi 22296_LT_EOF 22297 ;; 22298 esac 22299 22300 22301ltmain=$ac_aux_dir/ltmain.sh 22302 22303 22304 # We use sed instead of cat because bash on DJGPP gets confused if 22305 # if finds mixed CR/LF and LF-only lines. Since sed operates in 22306 # text mode, it properly converts lines to CR/LF. This bash problem 22307 # is reportedly fixed, but why not run on old versions too? 22308 sed '$q' "$ltmain" >> "$cfgfile" \ 22309 || (rm -f "$cfgfile"; exit 1) 22310 22311 mv -f "$cfgfile" "$ofile" || 22312 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile") 22313 chmod +x "$ofile" 22314 22315 22316 cat <<_LT_EOF >> "$ofile" 22317 22318# ### BEGIN LIBTOOL TAG CONFIG: CXX 22319 22320# The linker used to build libraries. 22321LD=$lt_LD_CXX 22322 22323# How to create reloadable object files. 22324reload_flag=$lt_reload_flag_CXX 22325reload_cmds=$lt_reload_cmds_CXX 22326 22327# Commands used to build an old-style archive. 22328old_archive_cmds=$lt_old_archive_cmds_CXX 22329 22330# A language specific compiler. 22331CC=$lt_compiler_CXX 22332 22333# Is the compiler the GNU compiler? 22334with_gcc=$GCC_CXX 22335 22336# Compiler flag to turn off builtin functions. 22337no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag_CXX 22338 22339# Additional compiler flags for building library objects. 22340pic_flag=$lt_lt_prog_compiler_pic_CXX 22341 22342# How to pass a linker flag through the compiler. 22343wl=$lt_lt_prog_compiler_wl_CXX 22344 22345# Compiler flag to prevent dynamic linking. 22346link_static_flag=$lt_lt_prog_compiler_static_CXX 22347 22348# Does compiler simultaneously support -c and -o options? 22349compiler_c_o=$lt_lt_cv_prog_compiler_c_o_CXX 22350 22351# Whether or not to add -lc for building shared libraries. 22352build_libtool_need_lc=$archive_cmds_need_lc_CXX 22353 22354# Whether or not to disallow shared libs when runtime libs are static. 22355allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes_CXX 22356 22357# Compiler flag to allow reflexive dlopens. 22358export_dynamic_flag_spec=$lt_export_dynamic_flag_spec_CXX 22359 22360# Compiler flag to generate shared objects directly from archives. 22361whole_archive_flag_spec=$lt_whole_archive_flag_spec_CXX 22362 22363# Whether the compiler copes with passing no objects directly. 22364compiler_needs_object=$lt_compiler_needs_object_CXX 22365 22366# Create an old-style archive from a shared archive. 22367old_archive_from_new_cmds=$lt_old_archive_from_new_cmds_CXX 22368 22369# Create a temporary old-style archive to link instead of a shared archive. 22370old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds_CXX 22371 22372# Commands used to build a shared archive. 22373archive_cmds=$lt_archive_cmds_CXX 22374archive_expsym_cmds=$lt_archive_expsym_cmds_CXX 22375 22376# Commands used to build a loadable module if different from building 22377# a shared archive. 22378module_cmds=$lt_module_cmds_CXX 22379module_expsym_cmds=$lt_module_expsym_cmds_CXX 22380 22381# Whether we are building with GNU ld or not. 22382with_gnu_ld=$lt_with_gnu_ld_CXX 22383 22384# Flag that allows shared libraries with undefined symbols to be built. 22385allow_undefined_flag=$lt_allow_undefined_flag_CXX 22386 22387# Flag that enforces no undefined symbols. 22388no_undefined_flag=$lt_no_undefined_flag_CXX 22389 22390# Flag to hardcode \$libdir into a binary during linking. 22391# This must work even if \$libdir does not exist 22392hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec_CXX 22393 22394# Whether we need a single "-rpath" flag with a separated argument. 22395hardcode_libdir_separator=$lt_hardcode_libdir_separator_CXX 22396 22397# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22398# DIR into the resulting binary. 22399hardcode_direct=$hardcode_direct_CXX 22400 22401# Set to "yes" if using DIR/libNAME\$shared_ext during linking hardcodes 22402# DIR into the resulting binary and the resulting library dependency is 22403# "absolute",i.e impossible to change by setting \$shlibpath_var if the 22404# library is relocated. 22405hardcode_direct_absolute=$hardcode_direct_absolute_CXX 22406 22407# Set to "yes" if using the -LDIR flag during linking hardcodes DIR 22408# into the resulting binary. 22409hardcode_minus_L=$hardcode_minus_L_CXX 22410 22411# Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR 22412# into the resulting binary. 22413hardcode_shlibpath_var=$hardcode_shlibpath_var_CXX 22414 22415# Set to "yes" if building a shared library automatically hardcodes DIR 22416# into the library and all subsequent libraries and executables linked 22417# against it. 22418hardcode_automatic=$hardcode_automatic_CXX 22419 22420# Set to yes if linker adds runtime paths of dependent libraries 22421# to runtime path list. 22422inherit_rpath=$inherit_rpath_CXX 22423 22424# Whether libtool must link a program against all its dependency libraries. 22425link_all_deplibs=$link_all_deplibs_CXX 22426 22427# Set to "yes" if exported symbols are required. 22428always_export_symbols=$always_export_symbols_CXX 22429 22430# The commands to list exported symbols. 22431export_symbols_cmds=$lt_export_symbols_cmds_CXX 22432 22433# Symbols that should not be listed in the preloaded symbols. 22434exclude_expsyms=$lt_exclude_expsyms_CXX 22435 22436# Symbols that must always be exported. 22437include_expsyms=$lt_include_expsyms_CXX 22438 22439# Commands necessary for linking programs (against libraries) with templates. 22440prelink_cmds=$lt_prelink_cmds_CXX 22441 22442# Commands necessary for finishing linking programs. 22443postlink_cmds=$lt_postlink_cmds_CXX 22444 22445# Specify filename containing input files. 22446file_list_spec=$lt_file_list_spec_CXX 22447 22448# How to hardcode a shared library path into an executable. 22449hardcode_action=$hardcode_action_CXX 22450 22451# The directories searched by this compiler when creating a shared library. 22452compiler_lib_search_dirs=$lt_compiler_lib_search_dirs_CXX 22453 22454# Dependencies to place before and after the objects being linked to 22455# create a shared library. 22456predep_objects=$lt_predep_objects_CXX 22457postdep_objects=$lt_postdep_objects_CXX 22458predeps=$lt_predeps_CXX 22459postdeps=$lt_postdeps_CXX 22460 22461# The library search path used internally by the compiler when linking 22462# a shared library. 22463compiler_lib_search_path=$lt_compiler_lib_search_path_CXX 22464 22465# ### END LIBTOOL TAG CONFIG: CXX 22466_LT_EOF 22467 22468 ;; 22469 "depfiles":C) test x"$AMDEP_TRUE" != x"" || { 22470 # Older Autoconf quotes --file arguments for eval, but not when files 22471 # are listed without --file. Let's play safe and only enable the eval 22472 # if we detect the quoting. 22473 case $CONFIG_FILES in 22474 *\'*) eval set x "$CONFIG_FILES" ;; 22475 *) set x $CONFIG_FILES ;; 22476 esac 22477 shift 22478 for mf 22479 do 22480 # Strip MF so we end up with the name of the file. 22481 mf=`echo "$mf" | sed -e 's/:.*$//'` 22482 # Check whether this is an Automake generated Makefile or not. 22483 # We used to match only the files named 'Makefile.in', but 22484 # some people rename them; so instead we look at the file content. 22485 # Grep'ing the first line is not enough: some people post-process 22486 # each Makefile.in and add a new line on top of each file to say so. 22487 # Grep'ing the whole file is not good either: AIX grep has a line 22488 # limit of 2048, but all sed's we know have understand at least 4000. 22489 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then 22490 dirpart=`$as_dirname -- "$mf" || 22491$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22492 X"$mf" : 'X\(//\)[^/]' \| \ 22493 X"$mf" : 'X\(//\)$' \| \ 22494 X"$mf" : 'X\(/\)' \| . 2>/dev/null || 22495$as_echo X"$mf" | 22496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22497 s//\1/ 22498 q 22499 } 22500 /^X\(\/\/\)[^/].*/{ 22501 s//\1/ 22502 q 22503 } 22504 /^X\(\/\/\)$/{ 22505 s//\1/ 22506 q 22507 } 22508 /^X\(\/\).*/{ 22509 s//\1/ 22510 q 22511 } 22512 s/.*/./; q'` 22513 else 22514 continue 22515 fi 22516 # Extract the definition of DEPDIR, am__include, and am__quote 22517 # from the Makefile without running 'make'. 22518 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` 22519 test -z "$DEPDIR" && continue 22520 am__include=`sed -n 's/^am__include = //p' < "$mf"` 22521 test -z "$am__include" && continue 22522 am__quote=`sed -n 's/^am__quote = //p' < "$mf"` 22523 # Find all dependency output files, they are included files with 22524 # $(DEPDIR) in their names. We invoke sed twice because it is the 22525 # simplest approach to changing $(DEPDIR) to its actual value in the 22526 # expansion. 22527 for file in `sed -n " 22528 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ 22529 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do 22530 # Make sure the directory exists. 22531 test -f "$dirpart/$file" && continue 22532 fdir=`$as_dirname -- "$file" || 22533$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ 22534 X"$file" : 'X\(//\)[^/]' \| \ 22535 X"$file" : 'X\(//\)$' \| \ 22536 X"$file" : 'X\(/\)' \| . 2>/dev/null || 22537$as_echo X"$file" | 22538 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ 22539 s//\1/ 22540 q 22541 } 22542 /^X\(\/\/\)[^/].*/{ 22543 s//\1/ 22544 q 22545 } 22546 /^X\(\/\/\)$/{ 22547 s//\1/ 22548 q 22549 } 22550 /^X\(\/\).*/{ 22551 s//\1/ 22552 q 22553 } 22554 s/.*/./; q'` 22555 as_dir=$dirpart/$fdir; as_fn_mkdir_p 22556 # echo "creating $dirpart/$file" 22557 echo '# dummy' > "$dirpart/$file" 22558 done 22559 done 22560} 22561 ;; 22562 "po-directories":C) 22563 for ac_file in $CONFIG_FILES; do 22564 # Support "outfile[:infile[:infile...]]" 22565 case "$ac_file" in 22566 *:*) ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;; 22567 esac 22568 # PO directories have a Makefile.in generated from Makefile.in.in. 22569 case "$ac_file" in */Makefile.in) 22570 # Adjust a relative srcdir. 22571 ac_dir=`echo "$ac_file"|sed 's%/[^/][^/]*$%%'` 22572 ac_dir_suffix=/`echo "$ac_dir"|sed 's%^\./%%'` 22573 ac_dots=`echo "$ac_dir_suffix"|sed 's%/[^/]*%../%g'` 22574 # In autoconf-2.13 it is called $ac_given_srcdir. 22575 # In autoconf-2.50 it is called $srcdir. 22576 test -n "$ac_given_srcdir" || ac_given_srcdir="$srcdir" 22577 case "$ac_given_srcdir" in 22578 .) top_srcdir=`echo $ac_dots|sed 's%/$%%'` ;; 22579 /*) top_srcdir="$ac_given_srcdir" ;; 22580 *) top_srcdir="$ac_dots$ac_given_srcdir" ;; 22581 esac 22582 # Treat a directory as a PO directory if and only if it has a 22583 # POTFILES.in file. This allows packages to have multiple PO 22584 # directories under different names or in different locations. 22585 if test -f "$ac_given_srcdir/$ac_dir/POTFILES.in"; then 22586 rm -f "$ac_dir/POTFILES" 22587 test -n "$as_me" && echo "$as_me: creating $ac_dir/POTFILES" || echo "creating $ac_dir/POTFILES" 22588 gt_tab=`printf '\t'` 22589 cat "$ac_given_srcdir/$ac_dir/POTFILES.in" | sed -e "/^#/d" -e "/^[ ${gt_tab}]*\$/d" -e "s,.*, $top_srcdir/& \\\\," | sed -e "\$s/\(.*\) \\\\/\1/" > "$ac_dir/POTFILES" 22590 POMAKEFILEDEPS="POTFILES.in" 22591 # ALL_LINGUAS, POFILES, UPDATEPOFILES, DUMMYPOFILES, GMOFILES depend 22592 # on $ac_dir but don't depend on user-specified configuration 22593 # parameters. 22594 if test -f "$ac_given_srcdir/$ac_dir/LINGUAS"; then 22595 # The LINGUAS file contains the set of available languages. 22596 if test -n "$OBSOLETE_ALL_LINGUAS"; then 22597 test -n "$as_me" && echo "$as_me: setting ALL_LINGUAS in configure.in is obsolete" || echo "setting ALL_LINGUAS in configure.in is obsolete" 22598 fi 22599 ALL_LINGUAS_=`sed -e "/^#/d" -e "s/#.*//" "$ac_given_srcdir/$ac_dir/LINGUAS"` 22600 # Hide the ALL_LINGUAS assignment from automake < 1.5. 22601 eval 'ALL_LINGUAS''=$ALL_LINGUAS_' 22602 POMAKEFILEDEPS="$POMAKEFILEDEPS LINGUAS" 22603 else 22604 # The set of available languages was given in configure.in. 22605 # Hide the ALL_LINGUAS assignment from automake < 1.5. 22606 eval 'ALL_LINGUAS''=$OBSOLETE_ALL_LINGUAS' 22607 fi 22608 # Compute POFILES 22609 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).po) 22610 # Compute UPDATEPOFILES 22611 # as $(foreach lang, $(ALL_LINGUAS), $(lang).po-update) 22612 # Compute DUMMYPOFILES 22613 # as $(foreach lang, $(ALL_LINGUAS), $(lang).nop) 22614 # Compute GMOFILES 22615 # as $(foreach lang, $(ALL_LINGUAS), $(srcdir)/$(lang).gmo) 22616 case "$ac_given_srcdir" in 22617 .) srcdirpre= ;; 22618 *) srcdirpre='$(srcdir)/' ;; 22619 esac 22620 POFILES= 22621 UPDATEPOFILES= 22622 DUMMYPOFILES= 22623 GMOFILES= 22624 for lang in $ALL_LINGUAS; do 22625 POFILES="$POFILES $srcdirpre$lang.po" 22626 UPDATEPOFILES="$UPDATEPOFILES $lang.po-update" 22627 DUMMYPOFILES="$DUMMYPOFILES $lang.nop" 22628 GMOFILES="$GMOFILES $srcdirpre$lang.gmo" 22629 done 22630 # CATALOGS depends on both $ac_dir and the user's LINGUAS 22631 # environment variable. 22632 INST_LINGUAS= 22633 if test -n "$ALL_LINGUAS"; then 22634 for presentlang in $ALL_LINGUAS; do 22635 useit=no 22636 if test "%UNSET%" != "$LINGUAS"; then 22637 desiredlanguages="$LINGUAS" 22638 else 22639 desiredlanguages="$ALL_LINGUAS" 22640 fi 22641 for desiredlang in $desiredlanguages; do 22642 # Use the presentlang catalog if desiredlang is 22643 # a. equal to presentlang, or 22644 # b. a variant of presentlang (because in this case, 22645 # presentlang can be used as a fallback for messages 22646 # which are not translated in the desiredlang catalog). 22647 case "$desiredlang" in 22648 "$presentlang"*) useit=yes;; 22649 esac 22650 done 22651 if test $useit = yes; then 22652 INST_LINGUAS="$INST_LINGUAS $presentlang" 22653 fi 22654 done 22655 fi 22656 CATALOGS= 22657 if test -n "$INST_LINGUAS"; then 22658 for lang in $INST_LINGUAS; do 22659 CATALOGS="$CATALOGS $lang.gmo" 22660 done 22661 fi 22662 test -n "$as_me" && echo "$as_me: creating $ac_dir/Makefile" || echo "creating $ac_dir/Makefile" 22663 sed -e "/^POTFILES =/r $ac_dir/POTFILES" -e "/^# Makevars/r $ac_given_srcdir/$ac_dir/Makevars" -e "s|@POFILES@|$POFILES|g" -e "s|@UPDATEPOFILES@|$UPDATEPOFILES|g" -e "s|@DUMMYPOFILES@|$DUMMYPOFILES|g" -e "s|@GMOFILES@|$GMOFILES|g" -e "s|@CATALOGS@|$CATALOGS|g" -e "s|@POMAKEFILEDEPS@|$POMAKEFILEDEPS|g" "$ac_dir/Makefile.in" > "$ac_dir/Makefile" 22664 for f in "$ac_given_srcdir/$ac_dir"/Rules-*; do 22665 if test -f "$f"; then 22666 case "$f" in 22667 *.orig | *.bak | *~) ;; 22668 *) cat "$f" >> "$ac_dir/Makefile" ;; 22669 esac 22670 fi 22671 done 22672 fi 22673 ;; 22674 esac 22675 done ;; 22676 22677 esac 22678done # for ac_tag 22679 22680 22681as_fn_exit 0 22682_ACEOF 22683ac_clean_files=$ac_clean_files_save 22684 22685test $ac_write_fail = 0 || 22686 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 22687 22688 22689# configure is writing to config.log, and then calls config.status. 22690# config.status does its own redirection, appending to config.log. 22691# Unfortunately, on DOS this fails, as config.log is still kept open 22692# by configure, so config.status won't be able to write to it; its 22693# output is simply discarded. So we exec the FD to /dev/null, 22694# effectively closing config.log, so it can be properly (re)opened and 22695# appended to by config.status. When coming back to configure, we 22696# need to make the FD available again. 22697if test "$no_create" != yes; then 22698 ac_cs_success=: 22699 ac_config_status_args= 22700 test "$silent" = yes && 22701 ac_config_status_args="$ac_config_status_args --quiet" 22702 exec 5>/dev/null 22703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false 22704 exec 5>>config.log 22705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which 22706 # would make configure fail if this is the last instruction. 22707 $ac_cs_success || as_fn_exit 1 22708fi 22709if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then 22710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 22711$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} 22712fi 22713 22714